use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeFamilyMemberHistory.
protected void composeFamilyMemberHistory(Complex parent, String parentType, String name, FamilyMemberHistory element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "FamilyMemberHistory", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "FamilyMemberHistory", "identifier", element.getIdentifier().get(i), i);
if (element.hasPatient())
composeReference(t, "FamilyMemberHistory", "patient", element.getPatient(), -1);
if (element.hasDateElement())
composeDateTime(t, "FamilyMemberHistory", "date", element.getDateElement(), -1);
if (element.hasStatusElement())
composeEnum(t, "FamilyMemberHistory", "status", element.getStatusElement(), -1);
if (element.hasNameElement())
composeString(t, "FamilyMemberHistory", "name", element.getNameElement(), -1);
if (element.hasRelationship())
composeCodeableConcept(t, "FamilyMemberHistory", "relationship", element.getRelationship(), -1);
if (element.hasGenderElement())
composeEnum(t, "FamilyMemberHistory", "gender", element.getGenderElement(), -1);
if (element.hasBorn())
composeType(t, "FamilyMemberHistory", "born", element.getBorn(), -1);
if (element.hasAge())
composeType(t, "FamilyMemberHistory", "age", element.getAge(), -1);
if (element.hasDeceased())
composeType(t, "FamilyMemberHistory", "deceased", element.getDeceased(), -1);
if (element.hasNote())
composeAnnotation(t, "FamilyMemberHistory", "note", element.getNote(), -1);
for (int i = 0; i < element.getCondition().size(); i++) composeFamilyMemberHistoryFamilyMemberHistoryConditionComponent(t, "FamilyMemberHistory", "condition", element.getCondition().get(i), i);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeTime.
protected void composeTime(Complex parent, String parentType, String name, TimeType value, int index) {
if (value == null)
return;
Complex t = parent.predicate("fhir:" + parentType + "." + name);
t.predicate("fhir:value", ttlLiteral(value.asStringValue()));
composeElement(t, parentType, name, value, index);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeExplanationOfBenefitAddedItemsDetailComponent.
protected void composeExplanationOfBenefitAddedItemsDetailComponent(Complex parent, String parentType, String name, ExplanationOfBenefit.AddedItemsDetailComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "detail", name, element, index);
if (element.hasService())
composeCoding(t, "ExplanationOfBenefit", "service", element.getService(), -1);
if (element.hasFee())
composeQuantity(t, "ExplanationOfBenefit", "fee", element.getFee(), -1);
for (int i = 0; i < element.getAdjudication().size(); i++) composeExplanationOfBenefitAddedItemDetailAdjudicationComponent(t, "ExplanationOfBenefit", "adjudication", element.getAdjudication().get(i), i);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMedicationDispenseMedicationDispenseDosageInstructionComponent.
protected void composeMedicationDispenseMedicationDispenseDosageInstructionComponent(Complex parent, String parentType, String name, MedicationDispense.MedicationDispenseDosageInstructionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "dosageInstruction", name, element, index);
if (element.hasTextElement())
composeString(t, "MedicationDispense", "text", element.getTextElement(), -1);
if (element.hasAdditionalInstructions())
composeCodeableConcept(t, "MedicationDispense", "additionalInstructions", element.getAdditionalInstructions(), -1);
if (element.hasTiming())
composeTiming(t, "MedicationDispense", "timing", element.getTiming(), -1);
if (element.hasAsNeeded())
composeType(t, "MedicationDispense", "asNeeded", element.getAsNeeded(), -1);
if (element.hasSite())
composeType(t, "MedicationDispense", "site", element.getSite(), -1);
if (element.hasRoute())
composeCodeableConcept(t, "MedicationDispense", "route", element.getRoute(), -1);
if (element.hasMethod())
composeCodeableConcept(t, "MedicationDispense", "method", element.getMethod(), -1);
if (element.hasDose())
composeType(t, "MedicationDispense", "dose", element.getDose(), -1);
if (element.hasRate())
composeType(t, "MedicationDispense", "rate", element.getRate(), -1);
if (element.hasMaxDosePerPeriod())
composeRatio(t, "MedicationDispense", "maxDosePerPeriod", element.getMaxDosePerPeriod(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeNamingSystemNamingSystemUniqueIdComponent.
protected void composeNamingSystemNamingSystemUniqueIdComponent(Complex parent, String parentType, String name, NamingSystem.NamingSystemUniqueIdComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "uniqueId", name, element, index);
if (element.hasTypeElement())
composeEnum(t, "NamingSystem", "type", element.getTypeElement(), -1);
if (element.hasValueElement())
composeString(t, "NamingSystem", "value", element.getValueElement(), -1);
if (element.hasPreferredElement())
composeBoolean(t, "NamingSystem", "preferred", element.getPreferredElement(), -1);
if (element.hasPeriod())
composePeriod(t, "NamingSystem", "period", element.getPeriod(), -1);
}
Aggregations