id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc 453,Incorrect registration of case if consent form is registered before blood referral form and no pathology referral form exists,Nicklas Nordborg,Nicklas Nordborg," A. The usual order of registration is that blood is registered before consent and results in one 'patient' item and one 'blood' item with the consent information stored as annotations to the blood item. B. A less common case is that the consent form is registered before the blood referral form. This results in one 'case' item, one 'patient' item and one 'blood' item. The consent information is stored as annotations to both the blood and case items. The cause of this is that when the consent form is registered first a 'temporary' case is created since there is otherwise no place to store the information. The assumption is that a pathology referral form will be received later and the pathology registration wizard handles this case and link or delete the temporary case as needed. The blood registration wizard must be fixed to handle this situation in a similar manner. Eg. the case should be deleted so that the irrespective of the order of registration (A or B) the end result is always the same (one patient and one blood). All currently incorrectly registered 'case' items should be deleted manually. Unfortunately there is no easy way to find which cases that should be deleted. Use the following procedure as a starting point: * List all sample with type='case' and no parent item. * For each of the found items, check if a blood item with the same name + '.b' exists or not. If a blood item exists, the case can be deleted. If no blood exists, the case should be kept. This should be possible to do manually given that the number of cases is not too high, otherwise an external program might be needed to help filtering. By exporting the above list with case names and also a list with all blood sample names, it should be possible to find out which names that are found in both lists (eg. with Excel). ",defect,closed,major,Reggie v2.10.2,net.sf.basedb.reggie,fixed,,