public SearchService(ILocalhost localhost, IFhirModel fhirModel, IFhirIndex fhirIndex, IIndexService indexService) { this.fhirModel = fhirModel; this.localhost = localhost; this.indexService = indexService; this.fhirIndex = fhirIndex; }
public IndexService(IFhirModel fhirModel, ResourceVisitor resourceVisitor, ElementIndexer elementIndexer, IIndexStore indexStore) { _fhirModel = fhirModel; _resourceVisitor = resourceVisitor; _elementIndexer = elementIndexer; _indexStore = indexStore; }
public IndexService(IFhirModel fhirModel, FhirPropertyIndex propIndex, ResourceVisitor resourceVisitor, ElementIndexer elementIndexer, IIndexStore indexStore) { _fhirModel = fhirModel; _propIndex = propIndex; _resourceVisitor = resourceVisitor; _elementIndexer = elementIndexer; _indexStore = indexStore; }
public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel, IReferenceNormalizationService referenceNormalizationService = null) { _collection = mongoIndexStore.Collection; _localhost = localhost; _fhirModel = fhirModel; _referenceNormalizationService = referenceNormalizationService; }
public ElementIndexer( IFhirModel fhirModel, ILogger <ElementIndexer> logger, IReferenceNormalizationService referenceNormalizationService = null) { _fhirModel = fhirModel; _logger = logger; _referenceNormalizationService = referenceNormalizationService; }
/// <summary> /// Build up an index of properties in the <paramref name="supportedFhirTypes"/>. /// </summary> /// <param name="fhirModel">IFhirModel that can provide mapping from resource names to .Net types</param> /// <param name="supportedFhirTypes">List of (resource and element) types to be indexed.</param> public FhirPropertyIndex(IFhirModel fhirModel, IEnumerable <Type> supportedFhirTypes) //Hint: supply all Resource and Element types from an assembly { _fhirModel = fhirModel; _fhirTypeInfoList = supportedFhirTypes?.Select(sr => CreateFhirTypeInfo(sr)).ToList(); foreach (var ti in _fhirTypeInfoList) { ti.properties = ti.FhirType.GetProperties().Select(p => CreateFhirPropertyInfo(p)).ToList(); } }
public void TestInitialize() { _fhirModel = new FhirModel(); _index = new FhirPropertyIndex(_fhirModel, new List <Type> { typeof(Patient), typeof(ClinicalImpression), typeof(HumanName), typeof(CodeableConcept), typeof(Coding) }); _sut = new ResourceVisitor(_index); _patient = new Patient(); _patient.Name.Add(new HumanName().WithGiven("Sjors").AndFamily("Jansen")); }
public SearchService( ILocalhost localhost, IFhirModel fhirModel, IFhirIndex fhirIndex, IIndexService indexService) { _fhirModel = fhirModel; _localhost = localhost; _indexService = indexService; _fhirIndex = fhirIndex; }
/// <summary> /// Build up an index of properties in the <paramref name="supportedFhirTypes"/>. /// </summary> /// <param name="fhirModel">IFhirModel that can provide mapping from resource names to .Net types</param> /// <param name="supportedFhirTypes">List of (resource and element) types to be indexed.</param> public FhirPropertyIndex(IFhirModel fhirModel, IEnumerable<Type> supportedFhirTypes) //Hint: supply all Resource and Element types from an assembly { _fhirModel = fhirModel; _fhirTypeInfoList = supportedFhirTypes?.Select(sr => CreateFhirTypeInfo(sr)).ToList(); }
public IndexService(IFhirModel fhirModel, IIndexStore indexStore, ElementIndexer elementIndexer) { _fhirModel = fhirModel; _indexStore = indexStore; _elementIndexer = elementIndexer; }
public ElementIndexer(IFhirModel fhirModel, IReferenceNormalizationService referenceNormalizationService = null) { _fhirModel = fhirModel; _referenceNormalizationService = referenceNormalizationService; }
public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel) { _collection = mongoIndexStore.Collection; _localhost = localhost; _fhirModel = fhirModel; }
/// <summary> /// Build up an index of properties in the <paramref name="supportedFhirTypes"/>. /// </summary> /// <param name="fhirModel">IFhirModel that can provide mapping from resource names to .Net types</param> /// <param name="supportedFhirTypes">List of (resource and element) types to be indexed.</param> public FhirPropertyIndex(IFhirModel fhirModel, IEnumerable <Type> supportedFhirTypes) //Hint: supply all Resource and Element types from an assembly { _fhirModel = fhirModel; _fhirTypeInfoList = supportedFhirTypes?.Select(sr => CreateFhirTypeInfo(sr)).ToList(); }
public void TestInitialize() { _fhirModel = new FhirModel(); _index = new FhirPropertyIndex(_fhirModel, new List<Type> { typeof(Patient), typeof(ClinicalImpression), typeof(HumanName), typeof(CodeableConcept), typeof(Coding) }); _sut = new ResourceVisitor(_index); _patient = new Patient(); _patient.Name.Add(new HumanName().WithGiven("Sjors").AndFamily("Jansen")); }
public ElementIndexer(IFhirModel fhirModel) { _fhirModel = fhirModel; }
/// <summary> /// Build up an index of properties in the Resource and Element types in Hl7.Fhir.Core. /// </summary> /// <param name="fhirModel">IFhirModel that can provide mapping from resource names to .Net types</param> public FhirPropertyIndex(IFhirModel fhirModel) : this(fhirModel, Assembly.GetAssembly(typeof(Resource))) { }
/// <summary> /// Build up an index of properties in the Resource and Element types in <param name="fhirAssembly"/>. /// </summary> /// <param name="fhirModel">IFhirModel that can provide mapping from resource names to .Net types</param> public FhirPropertyIndex(IFhirModel fhirModel, Assembly fhirAssembly) : this(fhirModel, LoadSupportedTypesFromAssembly(fhirAssembly)) { }