niprov.dcm module

class niprov.dcm.DicomFile(location, **kwargs)

Bases: niprov.basefile.BaseFile

getSeriesId()

Return the DICOM “SeriesInstanceUID” that all files in this series have in common.

Returns:A string uniquely identifying files belonging to this series.
Return type:str
hasFile(other)
inspect()

Inspect the DICOM file attributes.

If a general AcquisitionDateTime attribute is not present, the SeriesDate and SeriesTime will be used to set the acquired provenance field.

Returns:Provenance for the inspected file.
Return type:dict
mergeWith(img)

Add a single DICOM file object to this series.

The file will be stored in provenance in the ‘filesInSeries’ list.