Beispiel #1
0
        /// <summary>
        /// Apply the Dicom Configuration to the Client,
        /// </summary>
        /// <param name="commonConfig">Common Configuration.</param>
        /// <param name="config">Dicom Configuration.</param>
        public override void ApplyConfig(CommonConfig commonConfig, DicomPeerToPeerConfig config)
        {
            // set up the storage SCP
            StorageScp storageScp = new StorageScp();

            // update supported transfer syntaxes here
            //storageScp.ClearTransferSyntaxes();
            //storageScp.AddTransferSyntax(HliScp.IMPLICIT_VR_LITTLE_ENDIAN);

            // Save the SCP and apply the configuration
            Scp = storageScp;
            base.ApplyConfig(commonConfig, config);

            // add the default message handlers
            storageScp.AddDefaultMessageHandlers();
        }
        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");

            // set up the storage SCP
            StorageScp storageScp = new StorageScp();

            Scp = storageScp;

            // apply the remaining configuration
            base.ApplyConfig(config);

            // add the default message handlers with the information models
            storageScp.AddDefaultMessageHandlers(informationModels);
        }