Is it possible to find number of images in a DICOM study by reading a DICOM header of a file in that study?
I am developing a Java application that receives DICOM studies from different sources. I just want to check if a study has been received completely.
Unfortunately I cannot rely on reading DICOMDIR as in many cases the studies do not have that file. I am also familiar with dcm4che and imageJ libraries.
Cheers, Arash
The number of study related instances tag (0020, 1208) is intended to be able to communicate this information. As you noted in a previous response, however, this is not reliable. The problem is that you are looking at a single instance of the study. It is effectively impossible to guarantee that the creator of that file knew (knows) about all current instances in that study. For example, a modality may know how many instances it creates and sends to the archive. However, at some later date evidence objects (such as presentation states, key objects or structured reports) can be added. This changes the number of instances in the study, but does not (necessarily) change any existing part 10 files.