Search in sources :

Example 11 with BooleanParameter

use of com.ibm.cohort.cql.evaluation.parameters.BooleanParameter in project quality-measure-and-cohort-service by Alvearie.

the class MeasureEvaluatorTest method not_in_initial_population___caregaps_evaluated_correctly.

@Test
public void not_in_initial_population___caregaps_evaluated_correctly() throws Exception {
    Map<String, Parameter> parameters = new HashMap<>();
    parameters.put("InInitialPopulation", new BooleanParameter(false));
    expectationsByPopulationType.put(MeasurePopulationType.INITIALPOPULATION, 0);
    expectationsByPopulationType.put(MeasurePopulationType.DENOMINATOR, 0);
    Map<String, Integer> expectationsByCareGap = new HashMap<>();
    expectationsByCareGap.put("CareGap1", 0);
    expectationsByCareGap.put("CareGap2", 0);
    runCareGapTest(parameters, expectationsByCareGap);
}
Also used : HashMap(java.util.HashMap) ConceptParameter(com.ibm.cohort.cql.evaluation.parameters.ConceptParameter) RatioParameter(com.ibm.cohort.cql.evaluation.parameters.RatioParameter) IntegerParameter(com.ibm.cohort.cql.evaluation.parameters.IntegerParameter) DateParameter(com.ibm.cohort.cql.evaluation.parameters.DateParameter) CodeParameter(com.ibm.cohort.cql.evaluation.parameters.CodeParameter) Parameter(com.ibm.cohort.cql.evaluation.parameters.Parameter) DatetimeParameter(com.ibm.cohort.cql.evaluation.parameters.DatetimeParameter) IntervalParameter(com.ibm.cohort.cql.evaluation.parameters.IntervalParameter) DecimalParameter(com.ibm.cohort.cql.evaluation.parameters.DecimalParameter) QuantityParameter(com.ibm.cohort.cql.evaluation.parameters.QuantityParameter) StringParameter(com.ibm.cohort.cql.evaluation.parameters.StringParameter) TimeParameter(com.ibm.cohort.cql.evaluation.parameters.TimeParameter) BooleanParameter(com.ibm.cohort.cql.evaluation.parameters.BooleanParameter) BooleanParameter(com.ibm.cohort.cql.evaluation.parameters.BooleanParameter) Test(org.junit.Test)

Aggregations

BooleanParameter (com.ibm.cohort.cql.evaluation.parameters.BooleanParameter)11 CodeParameter (com.ibm.cohort.cql.evaluation.parameters.CodeParameter)10 DatetimeParameter (com.ibm.cohort.cql.evaluation.parameters.DatetimeParameter)10 DecimalParameter (com.ibm.cohort.cql.evaluation.parameters.DecimalParameter)10 IntegerParameter (com.ibm.cohort.cql.evaluation.parameters.IntegerParameter)10 IntervalParameter (com.ibm.cohort.cql.evaluation.parameters.IntervalParameter)10 Parameter (com.ibm.cohort.cql.evaluation.parameters.Parameter)10 QuantityParameter (com.ibm.cohort.cql.evaluation.parameters.QuantityParameter)10 StringParameter (com.ibm.cohort.cql.evaluation.parameters.StringParameter)10 TimeParameter (com.ibm.cohort.cql.evaluation.parameters.TimeParameter)10 Test (org.junit.Test)10 ConceptParameter (com.ibm.cohort.cql.evaluation.parameters.ConceptParameter)9 DateParameter (com.ibm.cohort.cql.evaluation.parameters.DateParameter)9 RatioParameter (com.ibm.cohort.cql.evaluation.parameters.RatioParameter)9 HashMap (java.util.HashMap)8 ArrayList (java.util.ArrayList)4 Library (org.hl7.fhir.r4.model.Library)4 Measure (org.hl7.fhir.r4.model.Measure)4 MeasureReport (org.hl7.fhir.r4.model.MeasureReport)4 Patient (org.hl7.fhir.r4.model.Patient)4