use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeExpansionProfileExpansionProfileContactComponent.
protected void composeExpansionProfileExpansionProfileContactComponent(Complex parent, String parentType, String name, ExpansionProfile.ExpansionProfileContactComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "contact", name, element, index);
if (element.hasNameElement())
composeString(t, "ExpansionProfile", "name", element.getNameElement(), -1);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "ExpansionProfile", "telecom", element.getTelecom().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 composeActionDefinitionActionDefinitionCustomizationComponent.
protected void composeActionDefinitionActionDefinitionCustomizationComponent(Complex parent, String parentType, String name, ActionDefinition.ActionDefinitionCustomizationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeElement(t, "customization", name, element, index);
if (element.hasPathElement())
composeString(t, "ActionDefinition", "path", element.getPathElement(), -1);
if (element.hasExpressionElement())
composeString(t, "ActionDefinition", "expression", element.getExpressionElement(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeAccount.
protected void composeAccount(Complex parent, String parentType, String name, Account element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Account", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Account", "identifier", element.getIdentifier().get(i), i);
if (element.hasNameElement())
composeString(t, "Account", "name", element.getNameElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "Account", "type", element.getType(), -1);
if (element.hasStatusElement())
composeEnum(t, "Account", "status", element.getStatusElement(), -1);
if (element.hasActivePeriod())
composePeriod(t, "Account", "activePeriod", element.getActivePeriod(), -1);
if (element.hasCurrency())
composeCoding(t, "Account", "currency", element.getCurrency(), -1);
if (element.hasBalance())
composeQuantity(t, "Account", "balance", element.getBalance(), -1);
if (element.hasCoveragePeriod())
composePeriod(t, "Account", "coveragePeriod", element.getCoveragePeriod(), -1);
if (element.hasSubject())
composeReference(t, "Account", "subject", element.getSubject(), -1);
if (element.hasOwner())
composeReference(t, "Account", "owner", element.getOwner(), -1);
if (element.hasDescriptionElement())
composeString(t, "Account", "description", element.getDescriptionElement(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimRelatedClaimsComponent.
protected void composeClaimRelatedClaimsComponent(Complex parent, String parentType, String name, Claim.RelatedClaimsComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "related", name, element, index);
if (element.hasClaim())
composeType(t, "Claim", "claim", element.getClaim(), -1);
if (element.hasRelationship())
composeCoding(t, "Claim", "relationship", element.getRelationship(), -1);
if (element.hasReference())
composeIdentifier(t, "Claim", "reference", element.getReference(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeSubscriptionSubscriptionChannelComponent.
protected void composeSubscriptionSubscriptionChannelComponent(Complex parent, String parentType, String name, Subscription.SubscriptionChannelComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "channel", name, element, index);
if (element.hasTypeElement())
composeEnum(t, "Subscription", "type", element.getTypeElement(), -1);
if (element.hasEndpointElement())
composeUri(t, "Subscription", "endpoint", element.getEndpointElement(), -1);
if (element.hasPayloadElement())
composeString(t, "Subscription", "payload", element.getPayloadElement(), -1);
if (element.hasHeaderElement())
composeString(t, "Subscription", "header", element.getHeaderElement(), -1);
}
Aggregations