From 2f76ace0b75f0337b610baf38408adc5787d9c47 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sat, 1 Jun 2024 18:19:57 +1000 Subject: [PATCH] Support PX modality --- ev_to_dicom/ev_to_dcm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']))