Ejemplo n.º 1
0
        public IFhirIndex GetFhirIndex()
        {
            MongoIndexStore indexStore = new MongoIndexStore(mongoUrl, new MongoIndexMapper());

            return(new MongoFhirIndex(indexStore, new MongoIndexer(indexStore, new Definitions()),
                                      new MongoSearcher(indexStore, localhost, new FhirModel())));
        }
Ejemplo n.º 2
0
        public static MongoFhirIndex GetMongoFhirIndex(MongoDatabase database, IEnumerable <ModelInfo.SearchParamDefinition> searchparameters)
        {
            MongoIndexStore store       = new MongoIndexStore(database);
            Definitions     definitions = DefinitionsFactory.Generate(searchparameters);

            return(new MongoFhirIndex(store, definitions));
        }
Ejemplo n.º 3
0
 public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel,
                      IReferenceNormalizationService referenceNormalizationService = null)
 {
     _collection = mongoIndexStore.Collection;
     _localhost  = localhost;
     _fhirModel  = fhirModel;
     _referenceNormalizationService = referenceNormalizationService;
 }
Ejemplo n.º 4
0
 public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel)
 {
     _collection = mongoIndexStore.Collection;
     _localhost  = localhost;
     _fhirModel  = fhirModel;
 }