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()))); }
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)); }
public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel, IReferenceNormalizationService referenceNormalizationService = null) { _collection = mongoIndexStore.Collection; _localhost = localhost; _fhirModel = fhirModel; _referenceNormalizationService = referenceNormalizationService; }
public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel) { _collection = mongoIndexStore.Collection; _localhost = localhost; _fhirModel = fhirModel; }