use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeDevice.
protected void composeDevice(Complex parent, String parentType, String name, Device element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Device", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Device", "identifier", element.getIdentifier().get(i), i);
if (element.hasUdiCarrier())
composeIdentifier(t, "Device", "udiCarrier", element.getUdiCarrier(), -1);
if (element.hasStatusElement())
composeEnum(t, "Device", "status", element.getStatusElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "Device", "type", element.getType(), -1);
if (element.hasLotNumberElement())
composeString(t, "Device", "lotNumber", element.getLotNumberElement(), -1);
if (element.hasManufacturerElement())
composeString(t, "Device", "manufacturer", element.getManufacturerElement(), -1);
if (element.hasManufactureDateElement())
composeDateTime(t, "Device", "manufactureDate", element.getManufactureDateElement(), -1);
if (element.hasExpirationDateElement())
composeDateTime(t, "Device", "expirationDate", element.getExpirationDateElement(), -1);
if (element.hasModelElement())
composeString(t, "Device", "model", element.getModelElement(), -1);
if (element.hasVersionElement())
composeString(t, "Device", "version", element.getVersionElement(), -1);
if (element.hasPatient())
composeReference(t, "Device", "patient", element.getPatient(), -1);
if (element.hasOwner())
composeReference(t, "Device", "owner", element.getOwner(), -1);
for (int i = 0; i < element.getContact().size(); i++) composeContactPoint(t, "Device", "contact", element.getContact().get(i), i);
if (element.hasLocation())
composeReference(t, "Device", "location", element.getLocation(), -1);
if (element.hasUrlElement())
composeUri(t, "Device", "url", element.getUrlElement(), -1);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "Device", "note", element.getNote().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 composeMeasureMeasureSupplementalDataComponent.
protected void composeMeasureMeasureSupplementalDataComponent(Complex parent, String parentType, String name, Measure.MeasureSupplementalDataComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "supplementalData", name, element, index);
if (element.hasIdentifier())
composeIdentifier(t, "Measure", "identifier", element.getIdentifier(), -1);
for (int i = 0; i < element.getUsage().size(); i++) composeEnum(t, "Measure", "usage", element.getUsage().get(i), i);
if (element.hasCriteriaElement())
composeString(t, "Measure", "criteria", element.getCriteriaElement(), -1);
if (element.hasPathElement())
composeString(t, "Measure", "path", element.getPathElement(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeExpansionProfileCodeSystemIncludeComponent.
protected void composeExpansionProfileCodeSystemIncludeComponent(Complex parent, String parentType, String name, ExpansionProfile.CodeSystemIncludeComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "include", name, element, index);
for (int i = 0; i < element.getCodeSystem().size(); i++) composeExpansionProfileCodeSystemIncludeCodeSystemComponent(t, "ExpansionProfile", "codeSystem", element.getCodeSystem().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 composePractitionerRolePractitionerRoleNotAvailableComponent.
protected void composePractitionerRolePractitionerRoleNotAvailableComponent(Complex parent, String parentType, String name, PractitionerRole.PractitionerRoleNotAvailableComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "notAvailable", name, element, index);
if (element.hasDescriptionElement())
composeString(t, "PractitionerRole", "description", element.getDescriptionElement(), -1);
if (element.hasDuring())
composePeriod(t, "PractitionerRole", "during", element.getDuring(), -1);
}
use of org.hl7.fhir.r4.utils.formats.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeConformanceConformanceRestResourceComponent.
protected void composeConformanceConformanceRestResourceComponent(Complex parent, String parentType, String name, Conformance.ConformanceRestResourceComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "resource", name, element, index);
if (element.hasTypeElement())
composeCode(t, "Conformance", "type", element.getTypeElement(), -1);
if (element.hasProfile())
composeReference(t, "Conformance", "profile", element.getProfile(), -1);
for (int i = 0; i < element.getInteraction().size(); i++) composeConformanceResourceInteractionComponent(t, "Conformance", "interaction", element.getInteraction().get(i), i);
if (element.hasVersioningElement())
composeEnum(t, "Conformance", "versioning", element.getVersioningElement(), -1);
if (element.hasReadHistoryElement())
composeBoolean(t, "Conformance", "readHistory", element.getReadHistoryElement(), -1);
if (element.hasUpdateCreateElement())
composeBoolean(t, "Conformance", "updateCreate", element.getUpdateCreateElement(), -1);
if (element.hasConditionalCreateElement())
composeBoolean(t, "Conformance", "conditionalCreate", element.getConditionalCreateElement(), -1);
if (element.hasConditionalUpdateElement())
composeBoolean(t, "Conformance", "conditionalUpdate", element.getConditionalUpdateElement(), -1);
if (element.hasConditionalDeleteElement())
composeEnum(t, "Conformance", "conditionalDelete", element.getConditionalDeleteElement(), -1);
for (int i = 0; i < element.getSearchInclude().size(); i++) composeString(t, "Conformance", "searchInclude", element.getSearchInclude().get(i), i);
for (int i = 0; i < element.getSearchRevInclude().size(); i++) composeString(t, "Conformance", "searchRevInclude", element.getSearchRevInclude().get(i), i);
for (int i = 0; i < element.getSearchParam().size(); i++) composeConformanceConformanceRestResourceSearchParamComponent(t, "Conformance", "searchParam", element.getSearchParam().get(i), i);
}
Aggregations