Exemple #1
0
        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);
        }
Exemple #2
0
 /// <summary>
 /// Add the default message handlers - include the Information Model that should be used.
 /// </summary>
 /// <param name="modalityWorklistInformationModel">Modality Worklist Information Model.</param>
 public void AddDefaultMessageHandlers(ModalityWorklistInformationModel modalityWorklistInformationModel)
 {
     // add the CFindHandler with the Information Models
     AddToBack(new CFindHandler(modalityWorklistInformationModel));
 }