예제 #1
0
 public static FhirIndex GetIndex()
 {
     if (index == null)
     {
         index = CreateIndex();
     }
     return(index);
 }
        public static void Import(TestContext unused)
        {
            Dependencies.Register();
            Settings.AppSettings = ConfigurationManager.AppSettings;

            //FhirMaintenanceService maintenance = Factory.GetFhirMaintenceService();
            //maintenance.Initialize();

            index = Factory.GetIndex();
        }
예제 #3
0
        public static FhirIndex CreateIndex()
        {
            MongoDatabase database = MongoDbConnector.Database;
            MongoCollection<BsonDocument> collection = database.GetCollection(Spark.Search.Config.MONGOINDEXCOLLECTION);

            Definitions definitions = DefinitionsFactory.GenerateFromMetadata();
            ISearcher searcher = new MongoSearcher(collection);
            IIndexer indexer = new MongoIndexer(collection, definitions);

            FhirIndex index = new FhirIndex(definitions, indexer, searcher);
            return index;
        }
예제 #4
0
        public static void Import(TestContext unused)
        {
            Dependencies.Register();
            Settings.AppSettings = ConfigurationManager.AppSettings;

            FhirMaintenanceService maintainance = Factory.GetFhirMaintenanceService();
            maintainance.Initialize(false);

            index = Spark.Search.MongoSearchFactory.GetIndex();

            AddTaggedPatient();
        }
예제 #5
0
        public static FhirIndex CreateIndex()
        {
            MongoDatabase database = MongoDbConnector.Database;
            MongoCollection <BsonDocument> collection = database.GetCollection(Spark.Search.Config.MONGOINDEXCOLLECTION);

            Definitions definitions = DefinitionsFactory.GenerateFromMetadata();
            ISearcher   searcher    = new MongoSearcher(collection);
            IIndexer    indexer     = new MongoIndexer(collection, definitions);

            FhirIndex index = new FhirIndex(definitions, indexer, searcher);

            return(index);
        }
예제 #6
0
 public static FhirIndex GetIndex()
 {
     if (index == null)
         index = CreateIndex();
     return index;
 }