Open cpinter opened 7 years ago
Andras Lasso Potential solution: Save patient, study, series level fields (patient name, study secription, etc.) at the image level. This would allow storage of all information in the DB without any data loss At the end of any DB importing or editing go through all the updated patients and save the consolidated (appended descriptions, most recent non-empty patient name, etc.) values at the patient, study, series level
2012-12-14 11:06 pieper Can you point to a study that has this property? (i.e. a study where the patient data is different between two series in the same study). Ideally if you could attach two files that demonstrate this issue it would help with testing.
I think the best solution here is to refactor the insert method of ctkDICOMDatabase (it is long an hard to understand). As part of that we could better isolate code that deals with optimizing the insert mechanism and also doublecheck for inconsistencies in the data. Probably we should generate a warning for this situation, but also try to auto-correct it if the answer seems obvious (by obvious I mean that the patient name is blank for a given patient ID, but then later a non-blank name is provided).
2012-12-14 12:30 Andras Lasso All RT studies are like this: the CT series typically contains much more information than the RT dose, structure set, etc. series. Fields that are present in CT but usually missing from RT series: institution, referring physician, study description, ...
Specific example: https://subversion.assembla.com/svn/slicerrt/trunk/SlicerRt/data/pinnacle3-9.9-phantom-imrt/
CT: (0008,0020) DA [20070315] # 8, 1 StudyDate (0008,0030) TM [131213] # 6, 1 StudyTime (0008,0080) LO [PrincessMargaretHosp] # 20, 1 InstitutionName (0008,1030) LO [test] # 4, 1 StudyDescription
RTDOSE: (0008,0020) DA (no value available) # 0, 0 StudyDate (0008,0030) TM (no value available) # 0, 0 StudyTime
Certain study-level fields (such as study description, institution name, etc.) are defined only for anatomical images, but not for RTSTRUCT (and other RT IODs). If RTSTRUCT is parsed first then the tree doesn't contain the study info.
Migrated from https://app.assembla.com/spaces/slicerrt/tickets/36-dicom-files-without-complete-patient-and-study-info-can-cause-incomplete-dicom/details