public MongoFhirIndex(MongoIndexStore store, Definitions definitions) { this.definitions = definitions; this.indexStore = store; this.indexer = new MongoIndexer(store, definitions); this.searcher = new MongoSearcher(store.Collection); }
public MongoFhirIndex(MongoIndexStore indexStore, MongoIndexer indexer, MongoSearcher searcher) { _indexStore = indexStore; _indexer = indexer; _searcher = searcher; }
public MongoIndexer(MongoIndexStore store, Definitions definitions) { this.store = store; this.definitions = definitions; }
public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel) { _collection = mongoIndexStore.Collection; _localhost = localhost; _fhirModel = fhirModel; }
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); }