Ejemplo n.º 1
0
 def test_procedure_step_uids(self):
     """Test that the Procedure SOP Class UIDs work correctly."""
     for uid in _PROCEDURE_STEP_CLASSES.values():
         assert uid_to_service_class(uid) == ProcedureStepServiceClass
Ejemplo n.º 2
0
 def test_protocol_approval_uids(self):
     """Test that Protocol Approval SOP Class UIDs work correctly."""
     for uid in _PROTOCOL_APPROVAL_CLASSES.values():
         assert (uid_to_service_class(uid) ==
                 ProtocolApprovalQueryRetrieveServiceClass)
Ejemplo n.º 3
0
 def test_app_logging_uids(self):
     """Test that the Application Event SOP Class UIDs work correctly."""
     for uid in _APPLICATION_EVENT_CLASSES.values():
         assert uid_to_service_class(
             uid) == ApplicationEventLoggingServiceClass
Ejemplo n.º 4
0
 def test_print_uids(self):
     """Test that the Print SOP Class UIDs work correctly."""
     for uid in _PRINT_MANAGEMENT_CLASSES.values():
         assert uid_to_service_class(uid) == PrintManagementServiceClass
Ejemplo n.º 5
0
 def test_substance_admin_uids(self):
     """Test that the Substance Administration SOP Class UIDs work correctly."""
     for uid in _SUBSTANCE_ADMINISTRATION_CLASSES.values():
         assert uid_to_service_class(
             uid) == SubstanceAdministrationQueryServiceClass
Ejemplo n.º 6
0
 def test_verification_uids(self):
     """Test that the Verification SOP Class UIDs work correctly."""
     for uid in _VERIFICATION_CLASSES.values():
         assert uid_to_service_class(uid) == VerificationServiceClass
Ejemplo n.º 7
0
 def test_implant_template_uids(self):
     """Test that the Implant Template SOP Class UIDs work correctly."""
     for uid in _IMPLANT_TEMPLATE_CLASSES.values():
         assert uid_to_service_class(
             uid) == ImplantTemplateQueryRetrieveServiceClass
Ejemplo n.º 8
0
 def test_rt_machine_uids(self):
     """Test that the RT Verification SOP Class UIDs work correctly."""
     for uid in _RT_MACHINE_VERIFICATION_CLASSES.values():
         assert uid_to_service_class(
             uid) == RTMachineVerificationServiceClass
Ejemplo n.º 9
0
 def test_display_system_uids(self):
     """Test that Display System SOP Class UIDs work correctly."""
     for uid in _DISPLAY_SYSTEM_CLASSES.values():
         assert uid_to_service_class(
             uid) == DisplaySystemManagementServiceClass
Ejemplo n.º 10
0
 def test_hanging_protocol_uids(self):
     """Test that the Hanging Protocol SOP Class UIDs work correctly."""
     for uid in _HANGING_PROTOCOL_CLASSES.values():
         assert uid_to_service_class(
             uid) == HangingProtocolQueryRetrieveServiceClass
Ejemplo n.º 11
0
 def test_defined_procedure_uids(self):
     """Test that the Defined Procedure SOP Class UIDs work correctly."""
     for uid in _DEFINED_PROCEDURE_CLASSES.values():
         assert (uid_to_service_class(uid) ==
                 DefinedProcedureProtocolQueryRetrieveServiceClass)
Ejemplo n.º 12
0
 def test_color_palette_uids(self):
     """Test that the Color Paletter SOP Class UIDs work correctly."""
     for uid in _COLOR_PALETTE_CLASSES.values():
         assert uid_to_service_class(
             uid) == ColorPaletteQueryRetrieveServiceClass
Ejemplo n.º 13
0
 def test_basic_worklist_uids(self):
     """Test that the Basic Worklist SOP Class UIDs work correctly."""
     for uid in _BASIC_WORKLIST_CLASSES.values():
         assert uid_to_service_class(
             uid) == BasicWorklistManagementServiceClass
Ejemplo n.º 14
0
 def test_qr_uids(self):
     """Test that the QR SOP Class UIDs work correctly."""
     for uid in _QR_CLASSES.values():
         assert uid_to_service_class(uid) == QueryRetrieveServiceClass
Ejemplo n.º 15
0
 def test_instance_uids(self):
     """Test that the Instance Availability SOP Class UIDs work correctly."""
     for uid in _INSTANCE_AVAILABILITY_CLASSES.values():
         assert (uid_to_service_class(uid) ==
                 InstanceAvailabilityNotificationServiceClass)
Ejemplo n.º 16
0
 def test_relevant_patient_uids(self):
     """Test that the Relevant Patient SOP Class UIDs work correctly."""
     for uid in _RELEVANT_PATIENT_QUERY_CLASSES.values():
         assert (uid_to_service_class(uid) ==
                 RelevantPatientInformationQueryServiceClass)
Ejemplo n.º 17
0
 def test_media_creation_uids(self):
     """Test that the Media Creation SOP Class UIDs work correctly."""
     for uid in _MEDIA_CREATION_CLASSES.values():
         assert uid_to_service_class(
             uid) == MediaCreationManagementServiceClass
Ejemplo n.º 18
0
 def test_storage_commitment_uids(self):
     """Test that the Storage Commitment SOP Class UIDs work correctly."""
     for uid in _STORAGE_COMMITMENT_CLASSES.values():
         assert uid_to_service_class(uid) == StorageCommitmentServiceClass
Ejemplo n.º 19
0
 def test_media_storage_uids(self):
     """Test that the Media Storage SOP Class UIDs work correctly."""
     for uid in _MEDIA_STORAGE_CLASSES.values():
         assert uid_to_service_class(uid) == ServiceClass
Ejemplo n.º 20
0
 def test_ups_uids(self):
     """Test that the UPS SOP Class UIDs work correctly."""
     for uid in _UNIFIED_PROCEDURE_STEP_CLASSES.values():
         assert uid_to_service_class(
             uid) == UnifiedProcedureStepServiceClass
Ejemplo n.º 21
0
 def test_non_patient_uids(self):
     """Test that the Non-Patient Object SOP Class UIDs work correctly."""
     for uid in _NON_PATIENT_OBJECT_CLASSES.values():
         assert uid_to_service_class(
             uid) == NonPatientObjectStorageServiceClass
Ejemplo n.º 22
0
 def test_unknown_uid(self):
     """Test that an unknown UID returns default service class."""
     assert uid_to_service_class("1.2.3") == ServiceClass
Ejemplo n.º 23
0
 def test_service_class_uid(self):
     uid = "1.2.840.10008.4.2"
     assert uid_to_service_class(uid) == StorageServiceClass