public override void ApplyConfig(DicomConfig config) { // set up the Query/Retrieve information models QueryRetrieveInformationModels informationModels = new QueryRetrieveInformationModels(); // load the information models informationModels.Load(config.DataDirectory); // add any default attribute values to the information models informationModels.AddDefaultAttribute("0x00080005", DvtkData.Dimse.VR.CS, "ISO IR 6"); informationModels.AddDefaultAttribute("0x00080090", DvtkData.Dimse.VR.PN, "Referring^Physician^Dr"); // add any additional attribute values to the information models informationModels.AddAdditionalAttribute("0x00080054", DvtkData.Dimse.VR.AE, config.DvtAeTitle); // set up the query/retrieve SCP QueryRetrieveScp queryRetrieveScp = new QueryRetrieveScp(); Scp = queryRetrieveScp; // apply the remaining configuration base.ApplyConfig(config); // add the default message handlers with the information models queryRetrieveScp.AddDefaultMessageHandlers(informationModels); }
public override void ApplyConfig(DicomConfig config) { // set up the Modality Worklist information models ModalityWorklistInformationModel modalityWorklistInformationModel = new ModalityWorklistInformationModel(); // load the information models modalityWorklistInformationModel.LoadInformationModel(config.DataDirectory); // add any default attribute values to the information models modalityWorklistInformationModel.AddDefaultAttributeToInformationModel("0x00400001", DvtkData.Dimse.VR.AE, config.SutAeTitle); modalityWorklistInformationModel.AddDefaultAttributeToInformationModel("0x00400002", DvtkData.Dimse.VR.DA, System.DateTime.Now.ToString("yyyyMMdd", System.Globalization.CultureInfo.InvariantCulture)); modalityWorklistInformationModel.AddDefaultAttributeToInformationModel("0x00400002", DvtkData.Dimse.VR.TM, System.DateTime.Now.ToString("HHmmss", System.Globalization.CultureInfo.InvariantCulture)); // add any additional attribute values to the information models // modalityWorklistInformationModel.AddAdditionalAttributeToInformationModel("0x00080054", DvtkData.Dimse.VR.AE, config.DvtAeTitle); // set up the worklist SCP WorklistScp worklistScp = new WorklistScp(); Scp = worklistScp; // apply the remaining configuration base.ApplyConfig(config); // add the default message handlers with the information model worklistScp.AddDefaultMessageHandlers(modalityWorklistInformationModel); }
public override void ApplyConfig(DicomConfig config) { PrintScp printScp = new PrintScp(); printScp.AddDefaultMessageHandlers(); Scp = printScp; base.ApplyConfig(config); }
public override void ApplyConfig(DicomConfig config) { MppsScp mppsScp = new MppsScp(); mppsScp.AddDefaultMessageHandlers(); Scp = mppsScp; base.ApplyConfig(config); }
public override void ApplyConfig(DicomConfig config) { // load the information models _informationModels.Load(config.DataDirectory); // add any default attribute values to the information models _informationModels.AddDefaultAttribute("0x00080005", DvtkData.Dimse.VR.CS, "ISO IR 6"); _informationModels.AddDefaultAttribute("0x00080090", DvtkData.Dimse.VR.PN, "Referring^Physician^Dr"); // set up the storage commit SCP StorageCommitScp storageCommitScp = new StorageCommitScp(); Scp = storageCommitScp; // apply the remaining configuration base.ApplyConfig(config); // add the default message handlers storageCommitScp.AddDefaultMessageHandlers(); }