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(); }
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); }
public FHIRObservationHandler(FhirClient client, MongoRepository cache, PatientAnalytics calc) { this.client = client; this.cache = cache; this.calc = calc; }