Ejemplo n.º 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();
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 12
0
 public MaintenanceHub(IFhirService fhirService, ILocalhost localhost, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex, ExamplesSettings examplesSettings)
 {
     _localhost               = localhost;
     _fhirService             = fhirService;
     _fhirStoreAdministration = fhirStoreAdministration;
     _fhirIndex               = fhirIndex;
     _examplesSettings        = examplesSettings;
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 19
0
 public SearchService(
     ILocalhost localhost,
     IFhirModel fhirModel,
     IFhirIndex fhirIndex,
     IIndexService indexService)
 {
     _fhirModel    = fhirModel;
     _localhost    = localhost;
     _indexService = indexService;
     _fhirIndex    = fhirIndex;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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.
        }
Ejemplo n.º 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.
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 27
0
 public MaintenanceApiController(IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
 {
     this.fhirStoreAdministration = fhirStoreAdministration;
     this.fhirIndex = fhirIndex;
 }
Ejemplo n.º 28
0
 public MaintenanceService(IFhirService fhirService, ILocalhost localhost, IGenerator keyGenerator, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
     : this(fhirService, fhirStoreAdministration, fhirIndex)
 {
 }
Ejemplo n.º 29
0
 public MaintenanceService(IFhirService fhirService, IFhirStoreAdministration fhirStoreAdministration, IFhirIndex fhirIndex)
 {
     _fhirService             = fhirService;
     _fhirStoreAdministration = fhirStoreAdministration;
     _fhirIndex = fhirIndex;
 }