use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePatientPatientCommunicationComponent.
protected void composePatientPatientCommunicationComponent(Complex parent, String parentType, String name, Patient.PatientCommunicationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "communication", name, element, index);
if (element.hasLanguage())
composeCodeableConcept(t, "Patient", "language", element.getLanguage(), -1);
if (element.hasPreferredElement())
composeBoolean(t, "Patient", "preferred", element.getPreferredElement(), -1);
}
use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePatientPatientCommunicationComponent.
protected void composePatientPatientCommunicationComponent(Complex parent, String parentType, String name, Patient.PatientCommunicationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "communication", name, element, index);
if (element.hasLanguage())
composeCodeableConcept(t, "Patient", "language", element.getLanguage(), -1);
if (element.hasPreferredElement())
composeBoolean(t, "Patient", "preferred", element.getPreferredElement(), -1);
}
use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeCommunicationCommunicationPayloadComponent.
protected void composeCommunicationCommunicationPayloadComponent(Complex parent, String parentType, String name, Communication.CommunicationPayloadComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "payload", name, element, index);
if (element.hasContent())
composeType(t, "Communication", "content", element.getContent(), -1);
}
use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePatientPatientCommunicationComponent.
protected void composePatientPatientCommunicationComponent(Complex parent, String parentType, String name, Patient.PatientCommunicationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "communication", name, element, index);
if (element.hasLanguage())
composeCodeableConcept(t, "Patient", "language", element.getLanguage(), -1);
if (element.hasPreferredElement())
composeBoolean(t, "Patient", "preferred", element.getPreferredElement(), -1);
}
use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class TurtleTests method test_communication_example.
@Test
public void test_communication_example() throws FileNotFoundException, IOException, Exception {
System.out.println("communication-example.ttl");
new Turtle().parse(TextFile.fileToString("C:\\work\\org.hl7.fhir\\build\\publish\\communication-example.ttl"));
}
Aggregations