Пример #1
0
 public SearchService(ILocalhost localhost, IFhirModel fhirModel, IFhirIndex fhirIndex, IIndexService indexService)
 {
     this.fhirModel    = fhirModel;
     this.localhost    = localhost;
     this.indexService = indexService;
     this.fhirIndex    = fhirIndex;
 }
        public static void Import(TestContext unused)
        {
            Dependencies.Register();
            Settings.AppSettings = ConfigurationManager.AppSettings;
            FhirMaintenanceService maintenance = Factory.GetFhirMaintenanceService();

            index = Factory.GetIndex();
        }
Пример #3
0
 public InitializeHub()
 {
     this.localhost = InfrastructureProvider.Mongo.Localhost;
     this.service = InfrastructureProvider.Mongo.CreateService();
     this.store = InfrastructureProvider.Mongo.Store;
     this.index = InfrastructureProvider.Mongo.Index;
     this.resources = null;
 }
Пример #4
0
 public InitializeHub(FhirService fhirService, ILocalhost localhost, IFhirStore fhirStore, IFhirIndex fhirIndex)
 {
     this.localhost   = localhost;
     this.fhirService = fhirService;
     this.fhirStore   = fhirStore;
     this.fhirIndex   = fhirIndex;
     this.resources   = null;
 }
Пример #5
0
 public MaintenanceService(FhirService fhirService, ILocalhost localhost, IGenerator keyGenerator, IFhirStore fhirStore, IFhirIndex fhirIndex)
 {
     this.fhirService = fhirService;
     this.localhost = localhost;
     this.keyGenerator = keyGenerator;
     this.fhirStore = fhirStore;
     this.fhirIndex = fhirIndex;
 }
Пример #6
0
 public InitializeHub()
 {
     this.localhost = InfrastructureProvider.Mongo.Localhost;
     this.service   = InfrastructureProvider.Mongo.CreateService();
     this.store     = InfrastructureProvider.Mongo.Store;
     this.index     = InfrastructureProvider.Mongo.Index;
     this.resources = null;
 }
Пример #7
0
 public MaintenanceService(Infrastructure infrastructure, FhirService service)
 {
     this.service   = service;
     this.localhost = infrastructure.Localhost;
     this.generator = infrastructure.Generator;
     this.store     = infrastructure.Store;
     this.index     = infrastructure.Index;
 }
 public MaintenanceService(FhirService fhirService, ILocalhost localhost, IGenerator keyGenerator, IFhirStore fhirStore, IFhirIndex fhirIndex)
 {
     this.fhirService  = fhirService;
     this.localhost    = localhost;
     this.keyGenerator = keyGenerator;
     this.fhirStore    = fhirStore;
     this.fhirIndex    = fhirIndex;
 }
Пример #9
0
 public MaintenanceService(Infrastructure infrastructure, FhirService service)
 {
     this.service = service;
     this.localhost = infrastructure.Localhost;
     this.generator = infrastructure.Generator;
     this.store = infrastructure.Store;
     this.index = infrastructure.Index;
 }
Пример #10
0
 public MaintenanceService(IFhirService _fhirServiceFull, ILocalhost localhost, IGenerator keyGenerator, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
 {
     this._fhirServiceFull        = _fhirServiceFull;
     this.localhost               = localhost;
     this.keyGenerator            = keyGenerator;
     this.fhirStoreAdministration = fhirStoreAdministration;
     this.fhirIndex               = fhirIndex;
 }
Пример #11
0
 public InitializeHub(FhirService fhirService, ILocalhost localhost, IFhirStore fhirStore, IFhirIndex fhirIndex)
 {
     this.localhost = localhost;
     this.fhirService = fhirService;
     this.fhirStore = fhirStore;
     this.fhirIndex = fhirIndex;
     this.resources = null;
 }
Пример #12
0
 public MaintenanceHub(IFhirService fhirService, ILocalhost localhost, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex, ExamplesSettings examplesSettings)
 {
     _localhost               = localhost;
     _fhirService             = fhirService;
     _fhirStoreAdministration = fhirStoreAdministration;
     _fhirIndex               = fhirIndex;
     _examplesSettings        = examplesSettings;
 }
Пример #13
0
 public InitializerHub(IFhirService fhirService, ILocalhost localhost, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
 {
     this.localhost               = localhost;
     this.fhirService             = fhirService;
     this.fhirStoreAdministration = fhirStoreAdministration;
     this.fhirIndex               = fhirIndex;
     this.resources               = null;
 }
        public static void Import(TestContext unused)
        {
            Dependencies.Register();
            Settings.AppSettings = ConfigurationManager.AppSettings;
            FhirMaintenanceService maintenance = Factory.GetFhirMaintenanceService();

            index = Spark.Search.MongoSearchFactory.GetIndex();
        }
Пример #15
0
 public FhirService(Uri serviceBase)
 {
     _store    = DependencyCoupler.Inject <IFhirStore>(); // new MongoFhirStore();
     _index    = DependencyCoupler.Inject <IFhirIndex>(); // Factory.Index;
     _importer = DependencyCoupler.Inject <ResourceImporter>();
     _exporter = DependencyCoupler.Inject <ResourceExporter>();
     _pager    = new Pager(_store);
     Endpoint  = serviceBase;
 }
Пример #16
0
 public FhirService(Uri serviceBase)
 {
     store = DependencyCoupler.Inject<IFhirStore>(); // new MongoFhirStore();
     _index = DependencyCoupler.Inject<IFhirIndex>(); // Factory.Index;
     _importer = DependencyCoupler.Inject<ResourceImporter>();
     exporter = DependencyCoupler.Inject<ResourceExporter>();
     pager = new Pager(store);
     Endpoint = serviceBase;
 }
Пример #17
0
        protected virtual IFhirServiceExtension GetSearch()
        {
            IFhirIndex fhirStore = fhirStoreBuilder.GetStore <IFhirIndex>();

            if (fhirStore != null)
            {
                return(new SearchService(new Localhost(baseUri), new FhirModel(), fhirStore));
            }
            return(null);
        }
Пример #18
0
 public IndexRebuildService(
     IIndexStore indexStore,
     IFhirIndex indexService,
     IFhirStorePagedReader entryReader,
     SparkSettings sparkSettings)
 {
     _indexStore    = indexStore ?? throw new ArgumentNullException(nameof(indexStore));
     _indexService  = indexService ?? throw new ArgumentNullException(nameof(indexService));
     _entryReader   = entryReader ?? throw new ArgumentNullException(nameof(entryReader));
     _sparkSettings = sparkSettings ?? throw new ArgumentNullException(nameof(sparkSettings));
 }
Пример #19
0
 public SearchService(
     ILocalhost localhost,
     IFhirModel fhirModel,
     IFhirIndex fhirIndex,
     IIndexService indexService)
 {
     _fhirModel    = fhirModel;
     _localhost    = localhost;
     _indexService = indexService;
     _fhirIndex    = fhirIndex;
 }
Пример #20
0
        public FhirService(Infrastructure infrastructure)
        {
            this.localhost     = infrastructure.Localhost;
            this.store         = infrastructure.Store;
            this.snapshotstore = infrastructure.SnapshotStore;
            this.generator     = infrastructure.Generator;
            this.index         = infrastructure.Index;
            this.listener      = infrastructure.ServiceListener;

            transfer = new Transfer(generator, localhost);
            pager    = new Pager(store, snapshotstore, localhost, transfer);
        }
Пример #21
0
        public FhirService(Infrastructure infrastructure)
        {
            this.localhost = infrastructure.Localhost;
            this.store = infrastructure.Store;
            this.snapshotstore = infrastructure.SnapshotStore;
            this.generator = infrastructure.Generator;
            this.index = infrastructure.Index;
            this.listener = infrastructure.ServiceListener;

            transfer = new Transfer(generator, localhost);
            pager = new Pager(store, snapshotstore, localhost, transfer);
        }
Пример #22
0
        public FhirService(Uri endpoint)
        {
            //refac: store = DependencyCoupler.Inject<IFhirStore>(); // new MongoFhirStore();

            store     = DependencyCoupler.Inject <IFhirStore>();
            tagstore  = DependencyCoupler.Inject <ITagStore>();
            generator = DependencyCoupler.Inject <IGenerator>();
            index     = DependencyCoupler.Inject <IFhirIndex>(); // Factory.Index;
            importer  = DependencyCoupler.Inject <ResourceImporter>();
            exporter  = DependencyCoupler.Inject <ResourceExporter>();
            pager     = new Pager(store, exporter);
            Endpoint  = endpoint;
        }
Пример #23
0
        public FhirService(Uri endpoint)
        {
            //refac: store = DependencyCoupler.Inject<IFhirStore>(); // new MongoFhirStore();

            store = DependencyCoupler.Inject<IFhirStore>();
            tagstore = DependencyCoupler.Inject<ITagStore>();
            generator = DependencyCoupler.Inject<IGenerator>();
            index = DependencyCoupler.Inject<IFhirIndex>(); // Factory.Index;
            importer = DependencyCoupler.Inject<ResourceImporter>();
            exporter = DependencyCoupler.Inject<ResourceExporter>();
            pager = new Pager(store, exporter);
            Endpoint = endpoint;
        }
Пример #24
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.
        }
Пример #25
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.
        }
Пример #26
0
 public MaintenanceHub(
     IAsyncFhirService fhirService,
     IFhirStoreAdministration fhirStoreAdministration,
     IFhirIndex fhirIndex,
     ExamplesSettings examplesSettings,
     IIndexRebuildService indexRebuildService,
     ILogger <MaintenanceHub> logger,
     IHubContext <MaintenanceHub> hubContext)
 {
     _fhirService             = fhirService;
     _fhirStoreAdministration = fhirStoreAdministration;
     _fhirIndex           = fhirIndex;
     _examplesSettings    = examplesSettings;
     _indexRebuildService = indexRebuildService;
     _logger     = logger;
     _hubContext = hubContext;
 }
Пример #27
0
 public MaintenanceApiController(IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
 {
     this.fhirStoreAdministration = fhirStoreAdministration;
     this.fhirIndex = fhirIndex;
 }
Пример #28
0
 public MaintenanceService(IFhirService fhirService, ILocalhost localhost, IGenerator keyGenerator, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
     : this(fhirService, fhirStoreAdministration, fhirIndex)
 {
 }
Пример #29
0
 public MaintenanceService(IFhirService fhirService, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
 {
     _fhirService             = fhirService;
     _fhirStoreAdministration = fhirStoreAdministration;
     _fhirIndex = fhirIndex;
 }