Beispiel #1
0
        public FhirService(IFhirServiceExtension[] extensions,
                           IFhirResponseFactory responseFactory,             //TODO: can we remove this dependency?
                           ITransfer transfer,
                           ICompositeServiceListener serviceListener = null) //TODO: can we remove this dependency? - CCR
        {
            this.responseFactory = responseFactory;
            this.transfer        = transfer;
            this.serviceListener = serviceListener;

            foreach (IFhirServiceExtension serviceExtension in extensions)
            {
                this.AddExtension(serviceExtension);
            }
        }
Beispiel #2
0
        public FhirService(ILocalhost localhost, IFhirStore fhirStore, ISnapshotStore snapshotStore, IGenerator keyGenerator,
            IFhirIndex fhirIndex, IServiceListener serviceListener, IFhirResponseFactory responseFactory, IndexService indexService)
        {
            this.localhost = localhost;
            this.fhirStore = fhirStore;
            this.snapshotstore = snapshotStore;
            this.keyGenerator = keyGenerator;
            this.fhirIndex = fhirIndex;
            this.serviceListener = serviceListener;
            this.responseFactory = responseFactory;
            _indexService = indexService;

            transfer = new Transfer(this.keyGenerator, localhost);
            pager = new Pager(this.fhirStore, snapshotstore, localhost, transfer, ModelInfo.SearchParameters);
            //TODO: Use FhirModel instead of ModelInfo for the searchparameters.
        }
Beispiel #3
0
        public FhirService(ILocalhost localhost, IFhirStore fhirStore, ISnapshotStore snapshotStore, IGenerator keyGenerator,
                           IFhirIndex fhirIndex, IServiceListener serviceListener, IFhirResponseFactory responseFactory, IndexService indexService)
        {
            this.localhost       = localhost;
            this.fhirStore       = fhirStore;
            this.snapshotstore   = snapshotStore;
            this.keyGenerator    = keyGenerator;
            this.fhirIndex       = fhirIndex;
            this.serviceListener = serviceListener;
            this.responseFactory = responseFactory;
            _indexService        = indexService;

            transfer = new Transfer(this.keyGenerator, localhost);
            pager    = new Pager(this.fhirStore, snapshotstore, localhost, transfer, ModelInfo.SearchParameters);
            //TODO: Use FhirModel instead of ModelInfo for the searchparameters.
        }
Beispiel #4
0
 public AsyncFhirService(
     IResourceStorageService storageService,
     IPagingService pagingService,
     ISearchService searchService,
     ITransactionService transactionService,
     ICapabilityStatementService capabilityStatementService,
     IHistoryStore historyService,
     IFhirResponseFactory responseFactory,
     ICompositeServiceListener serviceListener,
     IPatchService patchService)
 {
     _storageService             = storageService;
     _pagingService              = pagingService;
     _searchService              = searchService;
     _transactionService         = transactionService;
     _capabilityStatementService = capabilityStatementService;
     _historyService             = historyService;
     _responseFactory            = responseFactory;
     _serviceListener            = serviceListener;
     _patchService = patchService;
 }