Esempio n. 1
0
        public IOutboundRule[] GetRules()
        {
            DicomMappingHelper.CleanMappingList
            <MWLQueryCriteriaItem, MWLQueryResultItem>(Program.ConfigMgt.Config.Rule);
            WorklistSCPHelper.ModifyQCMappingList_CS
            <MWLQueryCriteriaItem>(Program.ConfigMgt.Config.Rule.QueryCriteria.MappingList, true);
            DicomMappingHelper.ModifyQCMappingList_DateTime
            <MWLQueryCriteriaItem>(Program.ConfigMgt.Config.Rule.QueryCriteria.MappingList, true);
            DicomMappingHelper.ModifyQCMappingList_FixValue
            <MWLQueryCriteriaItem>(Program.ConfigMgt.Config.Rule.QueryCriteria.MappingList);
            DicomMappingHelper.SetDataIDMapping
            <MWLQueryResultItem>(Program.ConfigMgt.Config.Rule.QueryResult.MappingList);
            WorklistSCPHelper.SetAdditionalQueryCriteria
            <MWLQueryCriteriaItem>(Program.ConfigMgt.Config.Rule.QueryCriteria.MappingList,
                                   Program.ConfigMgt.Config.AdditionalQueryCriteria,
                                   Program.ConfigMgt.Config.AdditionalQueryCriteriaJoinType);

            return(new IOutboundRule[] { Program.ConfigMgt.Config.Rule });
        }
Esempio n. 2
0
        public bool Initialize(string[] arguments)
        {
            Program.PreLoading();
            Program.Log.Write(Program.AppName + " is running in Adapter.Service host.");


            DicomMappingHelper.PersonNameRule = Program.ConfigMgt.Config.PersonNameRule;

            WorklistSCPHelper.ModifyQCMappingList_CS
            <MWLQueryCriteriaItem>(Program.ConfigMgt.Config.Rule.QueryCriteria.MappingList, false);
            DicomMappingHelper.ModifyQCMappingList_DateTime
            <MWLQueryCriteriaItem>(Program.ConfigMgt.Config.Rule.QueryCriteria.MappingList, false);

            DicomMappingHelper.PreperatMappingList <MWLQueryResultItem>(QRList, Program.ConfigMgt.Config.Rule.QueryResult.MappingList);
            DicomMappingHelper.PreperatMappingList <MWLQueryCriteriaItem>(QCList, Program.ConfigMgt.Config.Rule.QueryCriteria.MappingList);


            DicomMappingHelper.CleanMappingList
            <MWLQueryCriteriaItem, MWLQueryResultItem>(Program.ConfigMgt.Config.Rule);

            return(true);
        }