Search in sources :

Example 1 with MeasureReportGroupPopulationComponent

use of org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupPopulationComponent 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);
}
Also used : MeasureReportGroupPopulationComponent(org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupPopulationComponent) Coding(org.hl7.fhir.r4.model.Coding) MeasureReportGroupComponent(org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupComponent) MeasureReport(org.hl7.fhir.r4.model.MeasureReport) MeasureEvidenceOptions(com.ibm.cohort.engine.measure.evidence.MeasureEvidenceOptions)

Aggregations

MeasureEvidenceOptions (com.ibm.cohort.engine.measure.evidence.MeasureEvidenceOptions)1 Coding (org.hl7.fhir.r4.model.Coding)1 MeasureReport (org.hl7.fhir.r4.model.MeasureReport)1 MeasureReportGroupComponent (org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupComponent)1 MeasureReportGroupPopulationComponent (org.hl7.fhir.r4.model.MeasureReport.MeasureReportGroupPopulationComponent)1