use of org.hl7.fhir.utilities.turtle.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeCode.
protected void composeCode(Complex parent, String parentType, String name, CodeType 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);
decorateCode(t, value);
}
use of org.hl7.fhir.utilities.turtle.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeConformanceConformanceMessagingEndpointComponent.
protected void composeConformanceConformanceMessagingEndpointComponent(Complex parent, String parentType, String name, Conformance.ConformanceMessagingEndpointComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "endpoint", name, element, index);
if (element.hasProtocol())
composeCoding(t, "Conformance", "protocol", element.getProtocol(), -1);
if (element.hasAddressElement())
composeUri(t, "Conformance", "address", element.getAddressElement(), -1);
}
use of org.hl7.fhir.utilities.turtle.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeMedicationDispenseMedicationDispenseSubstitutionComponent.
protected void composeMedicationDispenseMedicationDispenseSubstitutionComponent(Complex parent, String parentType, String name, MedicationDispense.MedicationDispenseSubstitutionComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "substitution", name, element, index);
if (element.hasType())
composeCodeableConcept(t, "MedicationDispense", "type", element.getType(), -1);
for (int i = 0; i < element.getReason().size(); i++) composeCodeableConcept(t, "MedicationDispense", "reason", element.getReason().get(i), i);
for (int i = 0; i < element.getResponsibleParty().size(); i++) composeReference(t, "MedicationDispense", "responsibleParty", element.getResponsibleParty().get(i), i);
}
use of org.hl7.fhir.utilities.turtle.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeImagingExcerptSeriesComponent.
protected void composeImagingExcerptSeriesComponent(Complex parent, String parentType, String name, ImagingExcerpt.SeriesComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "series", name, element, index);
if (element.hasUidElement())
composeOid(t, "ImagingExcerpt", "uid", element.getUidElement(), -1);
for (int i = 0; i < element.getDicom().size(); i++) composeImagingExcerptSeriesDicomComponent(t, "ImagingExcerpt", "dicom", element.getDicom().get(i), i);
for (int i = 0; i < element.getInstance().size(); i++) composeImagingExcerptInstanceComponent(t, "ImagingExcerpt", "instance", element.getInstance().get(i), i);
}
use of org.hl7.fhir.utilities.turtle.Turtle.Complex in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeEncounterEncounterStatusHistoryComponent.
protected void composeEncounterEncounterStatusHistoryComponent(Complex parent, String parentType, String name, Encounter.EncounterStatusHistoryComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "statusHistory", name, element, index);
if (element.hasStatusElement())
composeEnum(t, "Encounter", "status", element.getStatusElement(), -1);
if (element.hasPeriod())
composePeriod(t, "Encounter", "period", element.getPeriod(), -1);
}
Aggregations