use of org.hl7.fhir.r4.model.RiskAssessment in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeRiskAssessment.
protected void composeRiskAssessment(Complex parent, String parentType, String name, RiskAssessment element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "RiskAssessment", name, element, index);
if (element.hasIdentifier())
composeIdentifier(t, "RiskAssessment", "identifier", element.getIdentifier(), -1);
if (element.hasBasedOn())
composeReference(t, "RiskAssessment", "basedOn", element.getBasedOn(), -1);
if (element.hasParent())
composeReference(t, "RiskAssessment", "parent", element.getParent(), -1);
if (element.hasStatusElement())
composeEnum(t, "RiskAssessment", "status", element.getStatusElement(), -1);
if (element.hasMethod())
composeCodeableConcept(t, "RiskAssessment", "method", element.getMethod(), -1);
if (element.hasCode())
composeCodeableConcept(t, "RiskAssessment", "code", element.getCode(), -1);
if (element.hasSubject())
composeReference(t, "RiskAssessment", "subject", element.getSubject(), -1);
if (element.hasContext())
composeReference(t, "RiskAssessment", "context", element.getContext(), -1);
if (element.hasOccurrence())
composeType(t, "RiskAssessment", "occurrence", element.getOccurrence(), -1);
if (element.hasCondition())
composeReference(t, "RiskAssessment", "condition", element.getCondition(), -1);
if (element.hasPerformer())
composeReference(t, "RiskAssessment", "performer", element.getPerformer(), -1);
if (element.hasReason())
composeType(t, "RiskAssessment", "reason", element.getReason(), -1);
for (int i = 0; i < element.getBasis().size(); i++) composeReference(t, "RiskAssessment", "basis", element.getBasis().get(i), i);
for (int i = 0; i < element.getPrediction().size(); i++) composeRiskAssessmentRiskAssessmentPredictionComponent(t, "RiskAssessment", "prediction", element.getPrediction().get(i), i);
if (element.hasMitigationElement())
composeString(t, "RiskAssessment", "mitigation", element.getMitigationElement(), -1);
if (element.hasCommentElement())
composeString(t, "RiskAssessment", "comment", element.getCommentElement(), -1);
}
use of org.hl7.fhir.r4.model.RiskAssessment in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_riskassessment_example.
@Test
public void test_riskassessment_example() throws FileNotFoundException, IOException, Exception {
System.out.println("riskassessment-example.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\riskassessment-example.ttl"));
}
use of org.hl7.fhir.r4.model.RiskAssessment in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_riskassessment_example_prognosis.
@Test
public void test_riskassessment_example_prognosis() throws FileNotFoundException, IOException, Exception {
System.out.println("riskassessment-example-prognosis.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\riskassessment-example-prognosis.ttl"));
}
use of org.hl7.fhir.r4.model.RiskAssessment in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_riskassessment_example_cardiac.
@Test
public void test_riskassessment_example_cardiac() throws FileNotFoundException, IOException, Exception {
System.out.println("riskassessment-example-cardiac.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\riskassessment-example-cardiac.ttl"));
}
use of org.hl7.fhir.r4.model.RiskAssessment in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeRiskAssessmentRiskAssessmentPredictionComponent.
protected void composeRiskAssessmentRiskAssessmentPredictionComponent(Complex parent, String parentType, String name, RiskAssessment.RiskAssessmentPredictionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "prediction", name, element, index);
if (element.hasOutcome())
composeCodeableConcept(t, "RiskAssessment", "outcome", element.getOutcome(), -1);
if (element.hasProbability())
composeType(t, "RiskAssessment", "probability", element.getProbability(), -1);
if (element.hasRelativeRiskElement())
composeDecimal(t, "RiskAssessment", "relativeRisk", element.getRelativeRiskElement(), -1);
if (element.hasWhen())
composeType(t, "RiskAssessment", "when", element.getWhen(), -1);
if (element.hasRationaleElement())
composeString(t, "RiskAssessment", "rationale", element.getRationaleElement(), -1);
}
Aggregations