예제 #1
0
        protected override TextQueryResponse <TItem> DoQuery(WorklistSearchParams query, int specificityThreshold)
        {
            var options = WorklistItemTextQueryOptions.PatientOrder;

            if (DowntimeRecovery.InDowntimeRecoveryMode)
            {
                options = options | WorklistItemTextQueryOptions.DowntimeRecovery;
            }
            if (FolderSystemSettings.Default.EnablePartialMatchingOnIdentifierSearch)
            {
                options = options | WorklistItemTextQueryOptions.EnablePartialMatchingOnIdentifiers;
            }

            return(DoQueryCore(query, specificityThreshold, options, this.ProcedureStepClassName));
        }
예제 #2
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);
        }