diff --git a/ev_to_dicom/ev_to_dcm.py b/ev_to_dicom/ev_to_dcm.py index 2f9199d..edb4ef8 100644 --- a/ev_to_dicom/ev_to_dcm.py +++ b/ev_to_dicom/ev_to_dcm.py @@ -1,5 +1,5 @@ # ev-to-dicom -# Copyright © 2023 Lee Yingtong Li +# Copyright © 2023–2024 Lee Yingtong Li # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -45,6 +45,8 @@ def ev_files_to_dcm_file(study_uid, series_uid, series_number, image_number, inp file_meta.MediaStorageSOPClassUID = '1.2.840.10008.5.1.4.1.1.6.1' # Ultrasound Image Storage else: file_meta.MediaStorageSOPClassUID = '1.2.840.10008.5.1.4.1.1.3.1' # Ultrasound Multi-frame Image Storage + elif metadata['metadata']['modality'] == 'PX': + file_meta.MediaStorageSOPClassUID = '1.2.840.10008.5.1.4.1.1.1.1' # Digital X-Ray Image Storage - For Presentation else: raise Exception('Unknown modality {}'.format(metadata['metadata']['modality']))