public RawDataIod(IDicomAttributeProvider dicomAttributeProvider) { _dicomAttributeProvider = dicomAttributeProvider; _patientModule = new PatientModuleIod(_dicomAttributeProvider); _clinicalTrialSubjectModule = new ClinicalTrialSubjectModuleIod(_dicomAttributeProvider); _generalStudyModule = new GeneralStudyModuleIod(_dicomAttributeProvider); _patientStudyModule = new PatientStudyModuleIod(_dicomAttributeProvider); _clinicalTrialStudyModule = new ClinicalTrialStudyModuleIod(_dicomAttributeProvider); _generalSeriesModule = new GeneralSeriesModuleIod(_dicomAttributeProvider); _clinicalTrialSeriesModule = new ClinicalTrialSeriesModuleIod(_dicomAttributeProvider); _generalEquipmentModule = new GeneralEquipmentModuleIod(_dicomAttributeProvider); _acquisitionContextModule = new AcquisitionContextModuleIod(_dicomAttributeProvider); _rawDataModule = new RawDataModule(_dicomAttributeProvider); _sopCommonModule = new SopCommonModuleIod(_dicomAttributeProvider); }
/// <summary> /// Initializes a new instance of the <see cref="EncapsulatedPdfIod"/> class. /// </summary> /// <param name="dicomAttributeProvider">The DICOM attribute provider.</param> public EncapsulatedPdfIod(IDicomAttributeProvider dicomAttributeProvider) { _dicomAttributeProvider = dicomAttributeProvider; _patientModule = new PatientModuleIod(_dicomAttributeProvider); _clinicalTrialSubjectModule = new ClinicalTrialSubjectModuleIod(_dicomAttributeProvider); _generalStudyModule = new GeneralStudyModuleIod(_dicomAttributeProvider); _patientStudyModule = new PatientStudyModuleIod(_dicomAttributeProvider); _clinicalTrialStudyModule = new ClinicalTrialStudyModuleIod(_dicomAttributeProvider); _encapsulatedDocumentSeriesModule = new EncapsulatedDocumentSeriesModuleIod(_dicomAttributeProvider); _clinicalTrialSeriesModule = new ClinicalTrialSeriesModuleIod(_dicomAttributeProvider); _generalEquipmentModule = new GeneralEquipmentModuleIod(_dicomAttributeProvider); _scEquipmentModule = new ScEquipmentModuleIod(_dicomAttributeProvider); _encapsulatedDocumentModule = new EncapsulatedDocumentModuleIod(_dicomAttributeProvider); _sopCommonModule = new SopCommonModuleIod(_dicomAttributeProvider); }
public KeyObjectSelectionDocumentIod(IDicomAttributeProvider dicomAttributeProvider) { _dicomAttributeProvider = dicomAttributeProvider; _patientModule = new PatientModuleIod(_dicomAttributeProvider); _specimenIdentificationModule = new SpecimenIdentificationModuleIod(_dicomAttributeProvider); _clinicalTrialSubjectModule = new ClinicalTrialSubjectModuleIod(_dicomAttributeProvider); _generalStudyModule = new GeneralStudyModuleIod(_dicomAttributeProvider); _patientStudyModule = new PatientStudyModuleIod(_dicomAttributeProvider); _clinicalTrialStudyModule = new ClinicalTrialStudyModuleIod(_dicomAttributeProvider); _keyObjectDocumentSeriesModule = new KeyObjectDocumentSeriesModuleIod(_dicomAttributeProvider); _clinicalTrialSeriesModule = new ClinicalTrialSeriesModuleIod(_dicomAttributeProvider); _generalEquipmentModule = new GeneralEquipmentModuleIod(_dicomAttributeProvider); _keyObjectDocumentModule = new KeyObjectDocumentModuleIod(_dicomAttributeProvider); _srDocumentContentModule = new SrDocumentContentModuleIod(_dicomAttributeProvider); _sopCommonModule = new SopCommonModuleIod(_dicomAttributeProvider); }
/// <summary> /// Initializes a new instance of the <see cref="ScImageIod"/> class. /// </summary> /// <param name="dicomAttributeProvider">The DICOM attribute provider.</param> public ScImageIod(IDicomAttributeProvider dicomAttributeProvider) { _dicomAttributeProvider = dicomAttributeProvider; _patientModule = new PatientModuleIod(_dicomAttributeProvider); _clinicalTrialSubjectModule = new ClinicalTrialSubjectModuleIod(_dicomAttributeProvider); _generalStudyModule = new GeneralStudyModuleIod(_dicomAttributeProvider); _patientStudyModule = new PatientStudyModuleIod(_dicomAttributeProvider); _clinicalTrialStudyModule = new ClinicalTrialStudyModuleIod(_dicomAttributeProvider); _generalSeriesModule = new GeneralSeriesModuleIod(_dicomAttributeProvider); _clinicalTrialSeriesModule = new ClinicalTrialSeriesModuleIod(_dicomAttributeProvider); _generalEquipmentModule = new GeneralEquipmentModuleIod(_dicomAttributeProvider); _scEquipmentModule = new ScEquipmentModuleIod(_dicomAttributeProvider); _generalImageModule = new GeneralImageModuleIod(_dicomAttributeProvider); _imagePixelModule = new ImagePixelMacroIod(_dicomAttributeProvider); _deviceModule = new DeviceModuleIod(_dicomAttributeProvider); _scImageModule = new ScImageModuleIod(_dicomAttributeProvider); _overlayPlaneModule = new OverlayPlaneModuleIod(_dicomAttributeProvider); _modalityLutModule = new ModalityLutModuleIod(_dicomAttributeProvider); _voiLutModule = new VoiLutModuleIod(_dicomAttributeProvider); _iccProfileModule = new IccProfileModuleIod(_dicomAttributeProvider); _sopCommonModule = new SopCommonModuleIod(_dicomAttributeProvider); }
public SegmentationDocumentIod(IDicomAttributeProvider dicomAttributeProvider) { _dicomAttributeProvider = dicomAttributeProvider; _patientModule = new PatientModuleIod(_dicomAttributeProvider); _clinicalTrialSubjectModule = new ClinicalTrialSubjectModuleIod(_dicomAttributeProvider); _generalStudyModule = new GeneralStudyModuleIod(_dicomAttributeProvider); _patientStudyModule = new PatientStudyModuleIod(_dicomAttributeProvider); _clinicalTrialStudyModule = new ClinicalTrialStudyModuleIod(_dicomAttributeProvider); _generalSeriesModule = new GeneralSeriesModuleIod(_dicomAttributeProvider); _segmentationSeriesModule = new SegmentationSeriesModuleIod(_dicomAttributeProvider); _clinicalTrialSeriesModule = new ClinicalTrialSeriesModuleIod(_dicomAttributeProvider); _frameOfReferenceModule = new FrameOfReferenceModuleIod(_dicomAttributeProvider); _generalEquipmentModule = new GeneralEquipmentModuleIod(_dicomAttributeProvider); //_enhanceGeneralEquipmentModule = new EnhanceGeneralEquipmentModuleIod(_dicomAttributeProvider); _generalImageModule = new GeneralImageModuleIod(_dicomAttributeProvider); _imagePixelModule = new ImagePixelMacroIod(_dicomAttributeProvider); _segmentationImageModule = new SegmentationImageModuleIod(_dicomAttributeProvider); _multiFrameFunctionalGroupsModule = new MultiFrameFunctionalGroupsModuleIod(_dicomAttributeProvider); _multiFrameDimensionModule = new MultiFrameDimensionModuleIod(_dicomAttributeProvider); _specimenModule = new SpecimenModuleIod(_dicomAttributeProvider); _commonInstanceReferenceModule = new CommonInstanceReferenceModuleIod(_dicomAttributeProvider); _sopCommonModule = new SopCommonModuleIod(_dicomAttributeProvider); _frameExtractionModule = new FrameExtractionModuleIod(_dicomAttributeProvider); }
protected static bool CopyPatientModule(IDicomAttributeProvider source, IDicomAttributeProvider target) { var sourcePatient = new PatientModuleIod(source); if (!sourcePatient.HasValues()) return false; var targetPatient = new PatientModuleIod(target); targetPatient.BreedRegistrationSequence = sourcePatient.BreedRegistrationSequence; targetPatient.DeIdentificationMethod = sourcePatient.DeIdentificationMethod; targetPatient.DeIdentificationMethodCodeSequence = sourcePatient.DeIdentificationMethodCodeSequence; targetPatient.EthnicGroup = sourcePatient.EthnicGroup; targetPatient.IssuerOfPatientId = sourcePatient.IssuerOfPatientId; targetPatient.OtherPatientIds = sourcePatient.OtherPatientIds; targetPatient.OtherPatientIdsSequence = sourcePatient.OtherPatientIdsSequence; targetPatient.OtherPatientNames = sourcePatient.OtherPatientNames; targetPatient.PatientBreedCodeSequence = sourcePatient.PatientBreedCodeSequence; targetPatient.PatientBreedDescription = sourcePatient.PatientBreedDescription; targetPatient.PatientComments = sourcePatient.PatientComments; targetPatient.PatientId = sourcePatient.PatientId; targetPatient.PatientIdentityRemoved = sourcePatient.PatientIdentityRemoved; targetPatient.PatientsBirthDateTime = sourcePatient.PatientsBirthDateTime; targetPatient.PatientsName = sourcePatient.PatientsName; targetPatient.PatientSpeciesCodeSequence = sourcePatient.PatientSpeciesCodeSequence; targetPatient.PatientSpeciesDescription = sourcePatient.PatientSpeciesDescription; targetPatient.PatientsSex = sourcePatient.PatientsSex; targetPatient.ReferencedPatientSequence = sourcePatient.ReferencedPatientSequence; targetPatient.ResponsibleOrganization = sourcePatient.ResponsibleOrganization; targetPatient.ResponsiblePerson = sourcePatient.ResponsiblePerson; targetPatient.ResponsiblePersonRole = sourcePatient.ResponsiblePersonRole; return true; }
public void TestPatientModuleIod() { var dicomFile = new DicomFile(); var module = new PatientModuleIod(dicomFile.DataSet); module.ResponsibleOrganization = "Walt Disney"; module.ResponsiblePerson = "Roger Radcliffe"; module.ResponsiblePersonRole = ResponsiblePersonRole.Owner; module.PatientSpeciesDescription = "Canine species"; module.PatientSpeciesCodeSequence = SpeciesContextGroup.CanineSpecies; module.PatientBreedDescription = "Dalmatian dog"; module.PatientBreedCodeSequence = new[] {BreedContextGroup.DalmatianDog}; module.BreedRegistrationSequence = new[] { new BreedRegistrationSequence { BreedRegistrationNumber = "101", BreedRegistryCodeSequence = new BreedRegistry( "WD", "101", "WALT_DISNESY_101", "One hundred and one dalmatians") } }; Assert.AreEqual(module.ResponsibleOrganization, "Walt Disney"); Assert.AreEqual(module.ResponsiblePerson, "Roger Radcliffe"); Assert.AreEqual(module.ResponsiblePersonRole, ResponsiblePersonRole.Owner); Assert.AreEqual(module.PatientSpeciesDescription, "Canine species"); Assert.AreEqual(module.PatientSpeciesCodeSequence, SpeciesContextGroup.CanineSpecies); Assert.AreEqual(module.PatientBreedDescription, "Dalmatian dog"); Assert.AreEqual(module.PatientBreedCodeSequence.Length, 1); Assert.AreEqual(module.PatientBreedCodeSequence[0], BreedContextGroup.DalmatianDog); Assert.AreEqual(module.BreedRegistrationSequence.Length, 1); Assert.AreEqual(module.BreedRegistrationSequence[0].BreedRegistrationNumber, "101"); Assert.AreEqual(module.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodingSchemeDesignator, "WD"); Assert.AreEqual(module.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodingSchemeVersion, "101"); Assert.AreEqual(module.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodeValue, "WALT_DISNESY_101"); Assert.AreEqual(module.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodeMeaning, "One hundred and one dalmatians"); dicomFile.Save("TestPatientModuleIod.dcm"); var reloadedDicomFile = new DicomFile("TestPatientModuleIod.dcm"); reloadedDicomFile.Load(); var realoadedModule = new PatientModuleIod(reloadedDicomFile.DataSet); Assert.AreEqual(realoadedModule.ResponsibleOrganization, "Walt Disney"); Assert.AreEqual(realoadedModule.ResponsiblePerson, "Roger Radcliffe"); Assert.AreEqual(realoadedModule.ResponsiblePersonRole, ResponsiblePersonRole.Owner); Assert.AreEqual(realoadedModule.PatientSpeciesDescription, "Canine species"); Assert.AreEqual(realoadedModule.PatientSpeciesCodeSequence, SpeciesContextGroup.CanineSpecies); Assert.AreEqual(realoadedModule.PatientBreedDescription, "Dalmatian dog"); Assert.AreEqual(realoadedModule.PatientBreedCodeSequence.Length, 1); Assert.AreEqual(realoadedModule.PatientBreedCodeSequence[0], BreedContextGroup.DalmatianDog); Assert.AreEqual(realoadedModule.BreedRegistrationSequence.Length, 1); Assert.AreEqual(realoadedModule.BreedRegistrationSequence[0].BreedRegistrationNumber, "101"); Assert.AreEqual(realoadedModule.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodingSchemeDesignator, "WD"); Assert.AreEqual(realoadedModule.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodingSchemeVersion, "101"); Assert.AreEqual(realoadedModule.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodeValue, "WALT_DISNESY_101"); Assert.AreEqual(realoadedModule.BreedRegistrationSequence[0].BreedRegistryCodeSequence.CodeMeaning, "One hundred and one dalmatians"); }
public void TestGeneralSeriesModuleIod() { var dicomFile = new DicomFile(); var module = new GeneralSeriesModuleIod(dicomFile.DataSet); Assert.AreEqual(module.AnatomicalOrientationType, AnatomicalOrientationType.None); module.AnatomicalOrientationType = AnatomicalOrientationType.Quadruped; Assert.AreEqual(module.AnatomicalOrientationType, AnatomicalOrientationType.Quadruped); dicomFile.Save("TestGeneralSeriesModuleIod.dcm"); var reloadedDicomFile = new DicomFile("TestGeneralSeriesModuleIod.dcm"); reloadedDicomFile.Load(); var realoadedModule = new PatientModuleIod(reloadedDicomFile.DataSet); Assert.AreEqual(module.AnatomicalOrientationType, AnatomicalOrientationType.Quadruped); }