use of org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupComponent in project quality-measure-and-cohort-service by Alvearie.
the class R4MeasureEvaluatorBuilderTest method validateMeasureEvaluator.
private void validateMeasureEvaluator(MeasureEvaluator evaluator) {
MeasureReport report = evaluator.evaluatePatientMeasure(MEASURE_NAME, PATIENT_ID, null, new MeasureEvidenceOptions());
List<MeasureReportGroupComponent> groups = report.getGroup();
Assert.assertEquals(1, groups.size());
MeasureReportGroupPopulationComponent component = groups.get(0).getPopulationFirstRep();
List<Coding> codings = component.getCode().getCoding();
Assert.assertEquals(1, codings.size());
Coding coding = codings.get(0);
Assert.assertEquals("initial-population", coding.getCode());
int count = component.getCount();
Assert.assertEquals(1, count);
}
Aggregations