def test_all_sop_classes(): """Test that all the SOP Class UIDs are correct.""" for uid in _VERIFICATION_CLASSES.values(): assert uid in UID_dictionary for uid in _STORAGE_CLASSES.values(): assert uid in UID_dictionary for uid in _QR_CLASSES.values(): assert uid in UID_dictionary for uid in _BASIC_WORKLIST_CLASSES.values(): assert uid in UID_dictionary for uid in _RELEVANT_PATIENT_QUERY_CLASSES.values(): assert uid in UID_dictionary for uid in _SUBSTANCE_ADMINISTRATION_CLASSES.values(): assert uid in UID_dictionary for uid in _NON_PATIENT_OBJECT_CLASSES.values(): assert uid in UID_dictionary for uid in _PRINT_MANAGEMENT_CLASSES.values(): assert uid in UID_dictionary for uid in _PROCEDURE_STEP_CLASSES.values(): assert uid in UID_dictionary for uid in _DISPLAY_SYSTEM_CLASSES.values(): assert uid in UID_dictionary for uid in _MEDIA_STORAGE_CLASSES.values(): assert uid in UID_dictionary for uid in _UNIFIED_PROCEDURE_STEP_CLASSES.values(): assert uid in UID_dictionary for uid in _RT_MACHINE_VERIFICATION_CLASSES.values(): assert uid in UID_dictionary
def test_all_sop_classes(): """Test that all the SOP Class UIDs are correct.""" for uid in _APPLICATION_EVENT_CLASSES.values(): assert uid in UID_dictionary for uid in _BASIC_WORKLIST_CLASSES.values(): assert uid in UID_dictionary for uid in _COLOR_PALETTE_CLASSES.values(): assert uid in UID_dictionary for uid in _DEFINED_PROCEDURE_CLASSES.values(): assert uid in UID_dictionary for uid in _DISPLAY_SYSTEM_CLASSES.values(): assert uid in UID_dictionary for uid in _HANGING_PROTOCOL_CLASSES.values(): assert uid in UID_dictionary for uid in _IMPLANT_TEMPLATE_CLASSES.values(): assert uid in UID_dictionary for uid in _INSTANCE_AVAILABILITY_CLASSES.values(): assert uid in UID_dictionary for uid in _MEDIA_CREATION_CLASSES.values(): assert uid in UID_dictionary for uid in _MEDIA_STORAGE_CLASSES.values(): assert uid in UID_dictionary for uid in _NON_PATIENT_OBJECT_CLASSES.values(): assert uid in UID_dictionary for uid in _PRINT_MANAGEMENT_CLASSES.values(): assert uid in UID_dictionary for uid in _PROCEDURE_STEP_CLASSES.values(): assert uid in UID_dictionary for uid in _PROTOCOL_APPROVAL_CLASSES.values(): assert uid in UID_dictionary for uid in _QR_CLASSES.values(): assert uid in UID_dictionary for uid in _RELEVANT_PATIENT_QUERY_CLASSES.values(): assert uid in UID_dictionary for uid in _RT_MACHINE_VERIFICATION_CLASSES.values(): assert uid in UID_dictionary if PYDICOM_VERSION >= ["2", "2"]: for uid in _STORAGE_CLASSES.values(): assert uid in UID_dictionary for uid in _STORAGE_COMMITMENT_CLASSES.values(): assert uid in UID_dictionary for uid in _SUBSTANCE_ADMINISTRATION_CLASSES.values(): assert uid in UID_dictionary for uid in _UNIFIED_PROCEDURE_STEP_CLASSES.values(): assert uid in UID_dictionary for uid in _VERIFICATION_CLASSES.values(): assert uid in UID_dictionary
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
build_context(uid) for uid in sorted(_PROTOCOL_APPROVAL_CLASSES.values()) ] QueryRetrievePresentationContexts = [ build_context(uid) for uid in sorted(_QR_CLASSES.values()) ] RelevantPatientInformationPresentationContexts = [ build_context(uid) for uid in sorted(_RELEVANT_PATIENT_QUERY_CLASSES.values()) ] RTMachineVerificationPresentationContexts = [ build_context(uid) for uid in sorted(_RT_MACHINE_VERIFICATION_CLASSES.values()) ] StoragePresentationContexts = [ build_context(uid) for uid in sorted(_STORAGE_CLASSES.values())[:128] ] StorageCommitmentPresentationContexts = [ build_context(uid) for uid in sorted(_STORAGE_COMMITMENT_CLASSES.values()) ] SubstanceAdministrationPresentationContexts = [ build_context(uid) for uid in sorted(_SUBSTANCE_ADMINISTRATION_CLASSES.values()) ] UnifiedProcedurePresentationContexts = [ build_context(uid) for uid in sorted(_UNIFIED_PROCEDURE_STEP_CLASSES.values()) ] VerificationPresentationContexts = [ build_context(uid) for uid in sorted(_VERIFICATION_CLASSES.values()) ]
ProcedureStepPresentationContexts = [ build_context(uid) for uid in sorted(_PROCEDURE_STEP_CLASSES.values()) ] ProtocolApprovalPresentationContexts = [ build_context(uid) for uid in sorted(_PROTOCOL_APPROVAL_CLASSES.values()) ] QueryRetrievePresentationContexts = [ build_context(uid) for uid in sorted(_QR_CLASSES.values()) ] RelevantPatientInformationPresentationContexts = [ build_context(uid) for uid in sorted(_RELEVANT_PATIENT_QUERY_CLASSES.values()) ] RTMachineVerificationPresentationContexts = [ build_context(uid) for uid in sorted(_RT_MACHINE_VERIFICATION_CLASSES.values()) ] StoragePresentationContexts = [ build_context(uid) for uid in sorted(_STORAGE_CLASSES.values())[:128] ] StorageCommitmentPresentationContexts = [ build_context(uid) for uid in sorted(_STORAGE_COMMITMENT_CLASSES.values()) ] SubstanceAdministrationPresentationContexts = [ build_context(uid) for uid in sorted(_SUBSTANCE_ADMINISTRATION_CLASSES.values()) ] UnifiedProcedurePresentationContexts = [ build_context(uid) for uid in sorted(_UNIFIED_PROCEDURE_STEP_CLASSES.values()) ] VerificationPresentationContexts = [ build_context(uid) for uid in sorted(_VERIFICATION_CLASSES.values()) ]