use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeQuestionnaireQuestionnaireItemOptionComponent.
protected void composeQuestionnaireQuestionnaireItemOptionComponent(Complex parent, String parentType, String name, Questionnaire.QuestionnaireItemOptionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "option", name, element, index);
if (element.hasValue())
composeType(t, "Questionnaire", "value", element.getValue(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeListResourceListEntryComponent.
protected void composeListResourceListEntryComponent(Complex parent, String parentType, String name, ListResource.ListEntryComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "entry", name, element, index);
if (element.hasFlag())
composeCodeableConcept(t, "List", "flag", element.getFlag(), -1);
if (element.hasDeletedElement())
composeBoolean(t, "List", "deleted", element.getDeletedElement(), -1);
if (element.hasDateElement())
composeDateTime(t, "List", "date", element.getDateElement(), -1);
if (element.hasItem())
composeReference(t, "List", "item", element.getItem(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePositiveInt.
protected void composePositiveInt(Complex parent, String parentType, String name, PositiveIntType 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 composeExpansionProfileDesignationIncludeDesignationComponent.
protected void composeExpansionProfileDesignationIncludeDesignationComponent(Complex parent, String parentType, String name, ExpansionProfile.DesignationIncludeDesignationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "designation", name, element, index);
if (element.hasLanguageElement())
composeCode(t, "ExpansionProfile", "language", element.getLanguageElement(), -1);
if (element.hasUse())
composeCoding(t, "ExpansionProfile", "use", element.getUse(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeAuditEventAuditEventAgentNetworkComponent.
protected void composeAuditEventAuditEventAgentNetworkComponent(Complex parent, String parentType, String name, AuditEvent.AuditEventAgentNetworkComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "network", name, element, index);
if (element.hasAddressElement())
composeString(t, "AuditEvent", "address", element.getAddressElement(), -1);
if (element.hasTypeElement())
composeEnum(t, "AuditEvent", "type", element.getTypeElement(), -1);
}
Aggregations