use of org.hl7.fhir.dstu3.model.MeasureReport in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_measurereport_cms146_cat2_example.
@Test
public void test_measurereport_cms146_cat2_example() throws FileNotFoundException, IOException, Exception {
System.out.println("measurereport-cms146-cat2-example.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\measurereport-cms146-cat2-example.ttl"));
}
use of org.hl7.fhir.dstu3.model.MeasureReport in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMeasureReportStratifierGroupComponentComponent.
protected void composeMeasureReportStratifierGroupComponentComponent(Complex parent, String parentType, String name, MeasureReport.StratifierGroupComponentComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "component", name, element, index);
if (element.hasCode())
composeCodeableConcept(t, "MeasureReport", "code", element.getCode(), -1);
if (element.hasValue())
composeCodeableConcept(t, "MeasureReport", "value", element.getValue(), -1);
}
use of org.hl7.fhir.dstu3.model.MeasureReport in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMeasureReportStratifierGroupPopulationComponent.
protected void composeMeasureReportStratifierGroupPopulationComponent(Complex parent, String parentType, String name, MeasureReport.StratifierGroupPopulationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "population", name, element, index);
if (element.hasCode())
composeCodeableConcept(t, "MeasureReport", "code", element.getCode(), -1);
if (element.hasCountElement())
composeInteger(t, "MeasureReport", "count", element.getCountElement(), -1);
if (element.hasSubjectResults())
composeReference(t, "MeasureReport", "subjectResults", element.getSubjectResults(), -1);
}
use of org.hl7.fhir.dstu3.model.MeasureReport in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMeasureReportMeasureReportGroupComponent.
protected void composeMeasureReportMeasureReportGroupComponent(Complex parent, String parentType, String name, MeasureReport.MeasureReportGroupComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "group", name, element, index);
if (element.hasIdentifier())
composeIdentifier(t, "MeasureReport", "identifier", element.getIdentifier(), -1);
for (int i = 0; i < element.getPopulation().size(); i++) composeMeasureReportMeasureReportGroupPopulationComponent(t, "MeasureReport", "population", element.getPopulation().get(i), i);
if (element.hasMeasureScoreElement())
composeDecimal(t, "MeasureReport", "measureScore", element.getMeasureScoreElement(), -1);
for (int i = 0; i < element.getStratifier().size(); i++) composeMeasureReportMeasureReportGroupStratifierComponent(t, "MeasureReport", "stratifier", element.getStratifier().get(i), i);
for (int i = 0; i < element.getSupplementalData().size(); i++) composeMeasureReportMeasureReportGroupSupplementalDataComponent(t, "MeasureReport", "supplementalData", element.getSupplementalData().get(i), i);
}
Aggregations