
Series_description='Measurement Reports', Procedure_reported=CT_UNSPECIFIED_BODY_REGION, Imaging_measurements = PlanarROIMeasurementsAndQualitativeEvaluations(

Tracking_identifier=TrackingIdentifier(uid=generate_uid()), Sop_instance_uid=ref_dataset.SOPInstanceUID Observer_person_context=observer_person_context, Observation_context = ObservationContext(

Observer_identifying_attributes=DeviceObserverIdentifyingAttributes( Observer_device_context = ObserverContext( Observer_identifying_attributes=PersonObserverIdentifyingAttributes( Observer_person_context = ObserverContext(

Ref_filename = 'pydicom/data/test_files/CT_small.dcm' VolumetricROIMeasurementsAndQualitativeEvaluations,įrom pydicom.sr.value_types import GraphicTypes PlanarROIMeasurementsAndQualitativeEvaluations, We had several discussions on how to implement SR at the 2019 NA-MIC project week and beyond.īelow is an example for creating a SR document using pydicom.sr (the resulting DICOM PS3.10 file is also included in the repository: pydicom/data/test_files/SR_comprehensive3d.dcm: from pydicom.filereader import dcmreadįrom pydicom.sr.context_groups.cid_4 import CERVICOTHORACIC_SPINEįrom pydicom.sr.context_groups.cid_100 import CT_UNSPECIFIED_BODY_REGIONįrom pydicom.sr.context_groups.cid_218 import AREA_OF_DEFINED_REGIONįrom pydicom.sr.context_groups.cid_220 import NOT_SIGNIFICANTįrom pydicom.sr.context_groups.cid_222 import NORMALįrom pydicom.sr.context_groups.cid_270 import PERSON, DEVICEįrom pydicom.sr.context_groups.cid_6115 import VERTEBRAL_FORAMENįrom pydicom.sr.context_groups.cid_7151 import SPINAL_CORDįrom pydicom.sr.context_groups.cid_7461 import SQUARE_CENTIMETERįrom pydicom.sr.document import Comprehensive3DSR However, I was hoping to already get your feedback on the approach in general and whether you would be interested in including this code into the pydicom package. Context Groups (autogenerated from FHIR value set resources): pydicom.sr.context_groupsĪ few things still need to be completed.Value Types of the SR Document Content Macro: pydicom.sr.value_types.Template TID 1500 Measurement Report and other templates that may be included in the root template: pydicom.sr.templates.This pull request is intended to facilitate the creation of DICOM Structured Reports (SR).
