Search in sources :

Example 1 with MeasureSupplementalDataComponent

use of org.hl7.fhir.dstu3.model.Measure.MeasureSupplementalDataComponent in project cqf-ruler by DBCG.

the class MeasureBuilder method addSDE.

public MeasureBuilder addSDE(String sdeId, String expression) {
    MeasureSupplementalDataComponent sde = measure.getSupplementalDataFirstRep();
    sde.getCode().setText(sdeId);
    sde.getCriteria().setLanguage("text/cql").setExpression(expression);
    return this;
}
Also used : MeasureSupplementalDataComponent(org.hl7.fhir.r4.model.Measure.MeasureSupplementalDataComponent)

Example 2 with MeasureSupplementalDataComponent

use of org.hl7.fhir.dstu3.model.Measure.MeasureSupplementalDataComponent in project quality-measure-and-cohort-service by Alvearie.

the class FhirTestBase method createSupplementalDataComponent.

protected MeasureSupplementalDataComponent createSupplementalDataComponent(String defineName, String text) {
    MeasureSupplementalDataComponent supplementalDataComponent = new MeasureSupplementalDataComponent();
    CodeableConcept supplementalCC = new CodeableConcept();
    Coding supplementalCoding = new Coding();
    supplementalCoding.setCode("supplemental-data-coding");
    supplementalCC.setCoding(Arrays.asList(supplementalCoding));
    supplementalCC.setText(text);
    supplementalDataComponent.setCode(supplementalCC);
    CodeableConcept usage = new CodeableConcept();
    Coding usageCoding = new Coding();
    usageCoding.setCode("supplemental-data");
    usage.setCoding(Arrays.asList(usageCoding));
    supplementalDataComponent.setUsage(Arrays.asList(usage));
    Expression supplementalExpression = new Expression();
    supplementalExpression.setExpression(defineName);
    supplementalExpression.setLanguage("text/cql.identifier");
    supplementalDataComponent.setCriteria(supplementalExpression);
    return supplementalDataComponent;
}
Also used : Coding(org.hl7.fhir.r4.model.Coding) Expression(org.hl7.fhir.r4.model.Expression) MeasureSupplementalDataComponent(org.hl7.fhir.r4.model.Measure.MeasureSupplementalDataComponent) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept)

Example 3 with MeasureSupplementalDataComponent

use of org.hl7.fhir.dstu3.model.Measure.MeasureSupplementalDataComponent in project cqf-ruler by DBCG.

the class MeasureBuilder method addSDE.

public MeasureBuilder addSDE(String sdeId, String expression) {
    MeasureSupplementalDataComponent sde = measure.getSupplementalDataFirstRep();
    sde.setId(sdeId);
    sde.setCriteria(expression);
    return this;
}
Also used : MeasureSupplementalDataComponent(org.hl7.fhir.dstu3.model.Measure.MeasureSupplementalDataComponent)

Aggregations

MeasureSupplementalDataComponent (org.hl7.fhir.r4.model.Measure.MeasureSupplementalDataComponent)2 MeasureSupplementalDataComponent (org.hl7.fhir.dstu3.model.Measure.MeasureSupplementalDataComponent)1 CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)1 Coding (org.hl7.fhir.r4.model.Coding)1 Expression (org.hl7.fhir.r4.model.Expression)1