Example #1
0
        private static void ConfigureQueryCFindCommand
        (
            DicomCommand command,
            QueryAddInConfigurationElement queryConfig
        )
        {
            QueryCFindCommand queryFindCommand;


            queryFindCommand = command as QueryCFindCommand;

            if (null != queryFindCommand)
            {
                queryFindCommand.QueryConfiguration.IncludePatientRelatedInstances = queryConfig.DataSetResponseOptions.IncludeNumberOfPatientInstances;
                queryFindCommand.QueryConfiguration.IncludePatientRelatedSeries    = queryConfig.DataSetResponseOptions.IncludeNumberOfPatientSeries;
                queryFindCommand.QueryConfiguration.IncludePatientRelatedStudies   = queryConfig.DataSetResponseOptions.IncludeNumberOfPatientStudies;
                queryFindCommand.QueryConfiguration.IncludeSeriesRelatedInstances  = queryConfig.DataSetResponseOptions.IncludeNumberOfSeriesInstances;
                queryFindCommand.QueryConfiguration.IncludeStudyRelatedInstances   = queryConfig.DataSetResponseOptions.IncludeNumberOfStudyInstances;
                queryFindCommand.QueryConfiguration.IncludeStudyRelatedSeries      = queryConfig.DataSetResponseOptions.IncludeNumberOfStudySeries;
                queryFindCommand.QueryConfiguration.QueryIODPath = queryConfig.QueryIODPath;

                queryFindCommand.LimitResponses   = queryConfig.LimitCFindRsp;
                queryFindCommand.MaximumResponses = queryConfig.MaximumCFindRspCount;
                queryFindCommand.ServiceStatus    = queryConfig.ServiceStatus;
            }
        }
Example #2
0
        private static void ConfigureCFindCommand
        (
            DicomCommand command,
            QueryAddInConfigurationElement findConfig
        )
        {
            CFindCommand findCommand;


            findCommand = command as CFindCommand;

            if (null != findCommand)
            {
                findCommand.Configuration.AllowExtraElements   = findConfig.DataSetRequestValidation.AllowExtraElements;
                findCommand.Configuration.AllowMultipleItems   = findConfig.DataSetRequestValidation.AllowMultipleItemsSequence;
                findCommand.Configuration.AllowPrivateElements = findConfig.DataSetRequestValidation.AllowPrivateElements;
                findCommand.Configuration.AllowZeroItemCount   = findConfig.DataSetRequestValidation.AllowZeroItemsSequence;
            }
        }