Search in sources :

Example 21 with Communication

use of org.hl7.fhir.dstu3.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);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 22 with Communication

use of org.hl7.fhir.dstu3.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);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 23 with Communication

use of org.hl7.fhir.dstu3.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);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 24 with Communication

use of org.hl7.fhir.dstu3.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);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 25 with Communication

use of org.hl7.fhir.dstu3.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"));
}
Also used : Turtle(org.hl7.fhir.dstu3.utils.formats.Turtle) Test(org.junit.jupiter.api.Test)

Aggregations

Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)8 Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)5 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)5 ArrayList (java.util.ArrayList)4 Date (java.util.Date)4 Reference (org.hl7.fhir.r4.model.Reference)4 Meta (org.hl7.fhir.r4.model.Meta)3 Patient (org.hl7.fhir.r4.model.Patient)3 StringType (org.hl7.fhir.r4.model.StringType)3 Point2D (java.awt.geom.Point2D)2 HashMap (java.util.HashMap)2 LinkedHashMap (java.util.LinkedHashMap)2 Map (java.util.Map)2 BooleanType (org.hl7.fhir.dstu3.model.BooleanType)2 Reference (org.hl7.fhir.dstu3.model.Reference)2 IBaseResource (org.hl7.fhir.instance.model.api.IBaseResource)2 Address (org.hl7.fhir.r4.model.Address)2 BooleanType (org.hl7.fhir.r4.model.BooleanType)2 Coding (org.hl7.fhir.r4.model.Coding)2 Extension (org.hl7.fhir.r4.model.Extension)2