コード例 #1
0
 public FHIRRepository()
 {
     client             = new FhirClient("http://localhost:8080/hapi/baseDstu3");//http://localhost:8080/hapi-fhir-jpaserver-example/baseDstu3");
     cache              = new MongoRepository();
     calc               = new PatientAnalytics();
     obsHandler         = new FHIRObservationHandler(client, cache, calc);
     QRHandler          = new FHIRQRHandler(client, cache);
     chartSelectionRepo = new ChartSelectionRepository();
     log = new Logger();
 }
コード例 #2
0
        private Dictionary <long, string> getSummaries(IAggregationFunction aggFunc)
        {
            calc = new PatientAnalytics();
            Dictionary <long, string> summaries = new Dictionary <long, string>();

            foreach (var kvp in patientData)
            {
                summaries[kvp.Key] = calc.calculateSummary(kvp, aggFunc);
            }
            return(summaries);
        }
コード例 #3
0
 public FHIRObservationHandler(FhirClient client, MongoRepository cache, PatientAnalytics calc)
 {
     this.client = client;
     this.cache  = cache;
     this.calc   = calc;
 }