Search in sources :

Example 91 with Period

use of org.hl7.fhir.r4b.model.Period in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeEncounterClassHistoryComponent.

protected void composeEncounterClassHistoryComponent(Complex parent, String parentType, String name, Encounter.ClassHistoryComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "classHistory", name, element, index);
    if (element.hasClass_())
        composeCoding(t, "Encounter", "class", element.getClass_(), -1);
    if (element.hasPeriod())
        composePeriod(t, "Encounter", "period", element.getPeriod(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 92 with Period

use of org.hl7.fhir.r4b.model.Period in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeEncounterEncounterLocationComponent.

protected void composeEncounterEncounterLocationComponent(Complex parent, String parentType, String name, Encounter.EncounterLocationComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "location", name, element, index);
    if (element.hasLocation())
        composeReference(t, "Encounter", "location", element.getLocation(), -1);
    if (element.hasStatusElement())
        composeEnum(t, "Encounter", "status", element.getStatusElement(), -1);
    if (element.hasPeriod())
        composePeriod(t, "Encounter", "period", element.getPeriod(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 93 with Period

use of org.hl7.fhir.r4b.model.Period in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeMeasureReport.

protected void composeMeasureReport(Complex parent, String parentType, String name, MeasureReport element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "MeasureReport", name, element, index);
    if (element.hasIdentifier())
        composeIdentifier(t, "MeasureReport", "identifier", element.getIdentifier(), -1);
    if (element.hasStatusElement())
        composeEnum(t, "MeasureReport", "status", element.getStatusElement(), -1);
    if (element.hasTypeElement())
        composeEnum(t, "MeasureReport", "type", element.getTypeElement(), -1);
    if (element.hasMeasure())
        composeReference(t, "MeasureReport", "measure", element.getMeasure(), -1);
    if (element.hasPatient())
        composeReference(t, "MeasureReport", "patient", element.getPatient(), -1);
    if (element.hasDateElement())
        composeDateTime(t, "MeasureReport", "date", element.getDateElement(), -1);
    if (element.hasReportingOrganization())
        composeReference(t, "MeasureReport", "reportingOrganization", element.getReportingOrganization(), -1);
    if (element.hasPeriod())
        composePeriod(t, "MeasureReport", "period", element.getPeriod(), -1);
    for (int i = 0; i < element.getGroup().size(); i++) composeMeasureReportMeasureReportGroupComponent(t, "MeasureReport", "group", element.getGroup().get(i), i);
    if (element.hasEvaluatedResources())
        composeReference(t, "MeasureReport", "evaluatedResources", element.getEvaluatedResources(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 94 with Period

use of org.hl7.fhir.r4b.model.Period in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeGroupGroupMemberComponent.

protected void composeGroupGroupMemberComponent(Complex parent, String parentType, String name, Group.GroupMemberComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "member", name, element, index);
    if (element.hasEntity())
        composeReference(t, "Group", "entity", element.getEntity(), -1);
    if (element.hasPeriod())
        composePeriod(t, "Group", "period", element.getPeriod(), -1);
    if (element.hasInactiveElement())
        composeBoolean(t, "Group", "inactive", element.getInactiveElement(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 95 with Period

use of org.hl7.fhir.r4b.model.Period in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeFlag.

protected void composeFlag(Complex parent, String parentType, String name, Flag element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "Flag", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Flag", "identifier", element.getIdentifier().get(i), i);
    if (element.hasStatusElement())
        composeEnum(t, "Flag", "status", element.getStatusElement(), -1);
    if (element.hasCategory())
        composeCodeableConcept(t, "Flag", "category", element.getCategory(), -1);
    if (element.hasCode())
        composeCodeableConcept(t, "Flag", "code", element.getCode(), -1);
    if (element.hasSubject())
        composeReference(t, "Flag", "subject", element.getSubject(), -1);
    if (element.hasPeriod())
        composePeriod(t, "Flag", "period", element.getPeriod(), -1);
    if (element.hasEncounter())
        composeReference(t, "Flag", "encounter", element.getEncounter(), -1);
    if (element.hasAuthor())
        composeReference(t, "Flag", "author", element.getAuthor(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Aggregations

Period (org.hl7.fhir.r4.model.Period)87 Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)44 Date (java.util.Date)42 Test (org.junit.Test)42 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)40 Coding (org.hl7.fhir.r4.model.Coding)34 Test (org.junit.jupiter.api.Test)34 Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)32 Period (org.hl7.fhir.dstu3.model.Period)30 ArrayList (java.util.ArrayList)29 CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)27 DateTimeType (org.hl7.fhir.r4.model.DateTimeType)20 Encounter (org.hl7.fhir.r4.model.Encounter)20 Reference (org.hl7.fhir.r4.model.Reference)20 Patient (org.hl7.fhir.r4.model.Patient)19 Reference (org.hl7.fhir.dstu3.model.Reference)18 HashMap (java.util.HashMap)17 Identifier (org.hl7.fhir.r4.model.Identifier)17 NotImplementedException (org.apache.commons.lang3.NotImplementedException)15 List (java.util.List)14