/// <summary>
 /// Constructor.
 /// </summary>
 public WorklistItemTextQueryHelper(
     IWorklistItemBroker broker,
     Converter <TDomainItem, TSummary> summaryAssembler,
     Type procedureStepClass,
     WorklistItemProjection projection,
     WorklistItemTextQueryOptions options,
     IPersistenceContext context)
     : this(broker, summaryAssembler, new [] { procedureStepClass }, projection, options, context)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public WorklistItemTextQueryHelper(
     IWorklistItemBroker broker,
     Converter <TDomainItem, TSummary> summaryAssembler,
     Type[] procedureStepClasses,
     WorklistItemProjection projection,
     WorklistItemTextQueryOptions options,
     IPersistenceContext context)
     : base(null, summaryAssembler, null, null)
 {
     _broker = broker;
     _procedureStepClasses = procedureStepClasses;
     _projection           = projection;
     _options = options;
     _context = context;
 }
Beispiel #3
0
            protected override TextQueryResponse <ReportingWorklistItemSummary> DoQuery(WorklistSearchParams query, int specificityThreshold)
            {
                TextQueryResponse <ReportingWorklistItemSummary> response;

                WorklistItemTextQueryOptions options = WorklistItemTextQueryOptions.ProcedureStepStaff
                                                       | (DowntimeRecovery.InDowntimeRecoveryMode ? WorklistItemTextQueryOptions.DowntimeRecovery : 0);

                response = DoQueryCore(query, specificityThreshold, options, "ReportingProcedureStep");
                if (response.TooManyMatches)
                {
                    return(response);
                }

                List <ReportingWorklistItemSummary> storeMatches = new List <ReportingWorklistItemSummary>(response.Matches);

                response = DoQueryCore(query, specificityThreshold, options, "ProtocolAssignmentStep");

                if (!response.TooManyMatches)
                {
                    response.Matches.AddRange(storeMatches);
                }

                return(response);
            }
Beispiel #4
0
        protected static TextQueryResponse <TItem> DoQueryCore(WorklistSearchParams query, int specificityThreshold, WorklistItemTextQueryOptions options, string procedureStepClassName)
        {
            TextQueryResponse <TItem> response = null;

            var request = new WorklistItemTextQueryRequest(
                query.TextSearch, specificityThreshold, procedureStepClassName, options);

            if (query.UseAdvancedSearch)
            {
                request.UseAdvancedSearch = query.UseAdvancedSearch;
                request.SearchFields      = query.SearchFields;
            }

            Platform.GetService <TWorklistService>(
                service => response = service.SearchWorklists(request));

            return(response);
        }
Beispiel #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="textQuery"></param>
 /// <param name="specificityThreshold"></param>
 /// <param name="procedureStepClassName"></param>
 /// <param name="options"></param>
 public WorklistItemTextQueryRequest(string textQuery, int specificityThreshold, string procedureStepClassName, WorklistItemTextQueryOptions options)
     : base(textQuery, specificityThreshold)
 {
     ProcedureStepClassName = procedureStepClassName;
     Options = options;
 }
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="textQuery"></param>
		/// <param name="specificityThreshold"></param>
		/// <param name="procedureStepClassName"></param>
		/// <param name="options"></param>
		public WorklistItemTextQueryRequest(string textQuery, int specificityThreshold, string procedureStepClassName, WorklistItemTextQueryOptions options)
			: base(textQuery, specificityThreshold)
		{
			ProcedureStepClassName = procedureStepClassName;
			Options = options;
		}