fli-iam / shanoir-ng

Shanoir (SHAring iN vivO Imaging Resources)
GNU General Public License v3.0
22 stars 22 forks source link

Add NumberOfFrames Metadata to DICOM file when it does not exists during Import #2178

Open LaurentPV opened 7 months ago

LaurentPV commented 7 months ago

The metadata NumberOfFrames (0028,0008) is important to DICOM data users that want to filter DICOM files depending on the number of images they are made of and the thickness of those "slices".

Some constructors add this value in NumberOfSlices (2001,1018) and some in NumberOf Frames but those metadata are not always in imported DICOM files, maybe because of anonymization processes before importing files in Shanoir.

This issue proposes to set the value of this metadata in cases it is empty during the import process of Shanoir and Shanoir uploader.

LaurentPV commented 7 months ago

With NumberOfFrames I found another metadata that proved to be even more useful : DataElements (07A1,1002) For the CAN studies it would be useful to have it in the quality card menu.