Exemplo n.º 1
0
 public SearchService(ILocalhost localhost, IFhirModel fhirModel, IFhirIndex fhirIndex, IIndexService indexService)
 {
     this.fhirModel    = fhirModel;
     this.localhost    = localhost;
     this.indexService = indexService;
     this.fhirIndex    = fhirIndex;
 }
Exemplo n.º 2
0
 public IndexService(IFhirModel fhirModel, ResourceVisitor resourceVisitor, ElementIndexer elementIndexer, IIndexStore indexStore)
 {
     _fhirModel       = fhirModel;
     _resourceVisitor = resourceVisitor;
     _elementIndexer  = elementIndexer;
     _indexStore      = indexStore;
 }
Exemplo n.º 3
0
 public IndexService(IFhirModel fhirModel, FhirPropertyIndex propIndex, ResourceVisitor resourceVisitor, ElementIndexer elementIndexer, IIndexStore indexStore)
 {
     _fhirModel       = fhirModel;
     _propIndex       = propIndex;
     _resourceVisitor = resourceVisitor;
     _elementIndexer  = elementIndexer;
     _indexStore      = indexStore;
 }
Exemplo n.º 4
0
 public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel,
                      IReferenceNormalizationService referenceNormalizationService = null)
 {
     _collection = mongoIndexStore.Collection;
     _localhost  = localhost;
     _fhirModel  = fhirModel;
     _referenceNormalizationService = referenceNormalizationService;
 }
Exemplo n.º 5
0
 public IndexService(IFhirModel fhirModel, FhirPropertyIndex propIndex, ResourceVisitor resourceVisitor, ElementIndexer elementIndexer, IIndexStore indexStore)
 {
     _fhirModel = fhirModel;
     _propIndex = propIndex;
     _resourceVisitor = resourceVisitor;
     _elementIndexer = elementIndexer;
     _indexStore = indexStore;
 }
Exemplo n.º 6
0
 public ElementIndexer(
     IFhirModel fhirModel,
     ILogger <ElementIndexer> logger,
     IReferenceNormalizationService referenceNormalizationService = null)
 {
     _fhirModel = fhirModel;
     _logger    = logger;
     _referenceNormalizationService = referenceNormalizationService;
 }
Exemplo n.º 7
0
 /// <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();
     }
 }
Exemplo n.º 8
0
 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"));
 }
Exemplo n.º 9
0
 public SearchService(
     ILocalhost localhost,
     IFhirModel fhirModel,
     IFhirIndex fhirIndex,
     IIndexService indexService)
 {
     _fhirModel    = fhirModel;
     _localhost    = localhost;
     _indexService = indexService;
     _fhirIndex    = fhirIndex;
 }
Exemplo n.º 10
0
 /// <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();
 }
Exemplo n.º 11
0
 public IndexService(IFhirModel fhirModel, IIndexStore indexStore, ElementIndexer elementIndexer)
 {
     _fhirModel      = fhirModel;
     _indexStore     = indexStore;
     _elementIndexer = elementIndexer;
 }
Exemplo n.º 12
0
 public ElementIndexer(IFhirModel fhirModel, IReferenceNormalizationService referenceNormalizationService = null)
 {
     _fhirModel = fhirModel;
     _referenceNormalizationService = referenceNormalizationService;
 }
Exemplo n.º 13
0
 public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel)
 {
     _collection = mongoIndexStore.Collection;
     _localhost = localhost;
     _fhirModel = fhirModel;
 }
Exemplo n.º 14
0
 /// <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();
 }
Exemplo n.º 15
0
 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"));
 }
Exemplo n.º 16
0
 public ElementIndexer(IFhirModel fhirModel)
 {
     _fhirModel = fhirModel;
 }
Exemplo n.º 17
0
 /// <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)))
 {
 }
Exemplo n.º 18
0
 /// <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))
 {
 }
Exemplo n.º 19
0
 /// <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)))
 {
 }
Exemplo n.º 20
0
 public MongoSearcher(MongoIndexStore mongoIndexStore, ILocalhost localhost, IFhirModel fhirModel)
 {
     _collection = mongoIndexStore.Collection;
     _localhost  = localhost;
     _fhirModel  = fhirModel;
 }
Exemplo n.º 21
0
 /// <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))
 {
 }