use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeEnrollmentRequest.
protected void composeEnrollmentRequest(Complex parent, String parentType, String name, EnrollmentRequest element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "EnrollmentRequest", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "EnrollmentRequest", "identifier", element.getIdentifier().get(i), i);
if (element.hasRuleset())
composeCoding(t, "EnrollmentRequest", "ruleset", element.getRuleset(), -1);
if (element.hasOriginalRuleset())
composeCoding(t, "EnrollmentRequest", "originalRuleset", element.getOriginalRuleset(), -1);
if (element.hasCreatedElement())
composeDateTime(t, "EnrollmentRequest", "created", element.getCreatedElement(), -1);
if (element.hasTarget())
composeReference(t, "EnrollmentRequest", "target", element.getTarget(), -1);
if (element.hasProvider())
composeReference(t, "EnrollmentRequest", "provider", element.getProvider(), -1);
if (element.hasOrganization())
composeReference(t, "EnrollmentRequest", "organization", element.getOrganization(), -1);
if (element.hasSubject())
composeReference(t, "EnrollmentRequest", "subject", element.getSubject(), -1);
if (element.hasCoverage())
composeReference(t, "EnrollmentRequest", "coverage", element.getCoverage(), -1);
if (element.hasRelationship())
composeCoding(t, "EnrollmentRequest", "relationship", element.getRelationship(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePaymentReconciliationNotesComponent.
protected void composePaymentReconciliationNotesComponent(Complex parent, String parentType, String name, PaymentReconciliation.NotesComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "note", name, element, index);
if (element.hasType())
composeCoding(t, "PaymentReconciliation", "type", element.getType(), -1);
if (element.hasTextElement())
composeString(t, "PaymentReconciliation", "text", element.getTextElement(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeElementDefinitionTypeRefComponent.
protected void composeElementDefinitionTypeRefComponent(Complex parent, String parentType, String name, ElementDefinition.TypeRefComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeElement(t, "type", name, element, index);
if (element.hasCodeElement())
composeCode(t, "ElementDefinition", "code", element.getCodeElement(), -1);
for (int i = 0; i < element.getProfile().size(); i++) composeUri(t, "ElementDefinition", "profile", element.getProfile().get(i), i);
for (int i = 0; i < element.getAggregation().size(); i++) composeEnum(t, "ElementDefinition", "aggregation", element.getAggregation().get(i), i);
if (element.hasVersioningElement())
composeEnum(t, "ElementDefinition", "versioning", element.getVersioningElement(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDocumentManifestDocumentManifestContentComponent.
protected void composeDocumentManifestDocumentManifestContentComponent(Complex parent, String parentType, String name, DocumentManifest.DocumentManifestContentComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "content", name, element, index);
if (element.hasP())
composeType(t, "DocumentManifest", "p", element.getP(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeExpansionProfileDesignationExcludeComponent.
protected void composeExpansionProfileDesignationExcludeComponent(Complex parent, String parentType, String name, ExpansionProfile.DesignationExcludeComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "exclude", name, element, index);
for (int i = 0; i < element.getDesignation().size(); i++) composeExpansionProfileDesignationExcludeDesignationComponent(t, "ExpansionProfile", "designation", element.getDesignation().get(i), i);
}
Aggregations