Search in sources :

Example 6 with HealthcareService

use of org.hl7.fhir.r4.model.HealthcareService in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeHealthcareServiceHealthcareServiceNotAvailableComponent.

protected void composeHealthcareServiceHealthcareServiceNotAvailableComponent(Complex parent, String parentType, String name, HealthcareService.HealthcareServiceNotAvailableComponent 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, "HealthcareService", "description", element.getDescriptionElement(), -1);
    if (element.hasDuring())
        composePeriod(t, "HealthcareService", "during", element.getDuring(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 7 with HealthcareService

use of org.hl7.fhir.r4.model.HealthcareService in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeHealthcareServiceHealthcareServiceAvailableTimeComponent.

protected void composeHealthcareServiceHealthcareServiceAvailableTimeComponent(Complex parent, String parentType, String name, HealthcareService.HealthcareServiceAvailableTimeComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "availableTime", name, element, index);
    for (int i = 0; i < element.getDaysOfWeek().size(); i++) composeEnum(t, "HealthcareService", "daysOfWeek", element.getDaysOfWeek().get(i), i);
    if (element.hasAllDayElement())
        composeBoolean(t, "HealthcareService", "allDay", element.getAllDayElement(), -1);
    if (element.hasAvailableStartTimeElement())
        composeTime(t, "HealthcareService", "availableStartTime", element.getAvailableStartTimeElement(), -1);
    if (element.hasAvailableEndTimeElement())
        composeTime(t, "HealthcareService", "availableEndTime", element.getAvailableEndTimeElement(), -1);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 8 with HealthcareService

use of org.hl7.fhir.r4.model.HealthcareService in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeHealthcareServiceHealthcareServiceAvailableTimeComponent.

protected void composeHealthcareServiceHealthcareServiceAvailableTimeComponent(Complex parent, String parentType, String name, HealthcareService.HealthcareServiceAvailableTimeComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "availableTime", name, element, index);
    for (int i = 0; i < element.getDaysOfWeek().size(); i++) composeEnum(t, "HealthcareService", "daysOfWeek", element.getDaysOfWeek().get(i), i);
    if (element.hasAllDayElement())
        composeBoolean(t, "HealthcareService", "allDay", element.getAllDayElement(), -1);
    if (element.hasAvailableStartTimeElement())
        composeTime(t, "HealthcareService", "availableStartTime", element.getAvailableStartTimeElement(), -1);
    if (element.hasAvailableEndTimeElement())
        composeTime(t, "HealthcareService", "availableEndTime", element.getAvailableEndTimeElement(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 9 with HealthcareService

use of org.hl7.fhir.r4.model.HealthcareService in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeHealthcareServiceHealthcareServiceNotAvailableComponent.

protected void composeHealthcareServiceHealthcareServiceNotAvailableComponent(Complex parent, String parentType, String name, HealthcareService.HealthcareServiceNotAvailableComponent 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, "HealthcareService", "description", element.getDescriptionElement(), -1);
    if (element.hasDuring())
        composePeriod(t, "HealthcareService", "during", element.getDuring(), -1);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 10 with HealthcareService

use of org.hl7.fhir.r4.model.HealthcareService in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeHealthcareServiceHealthcareServiceNotAvailableComponent.

protected void composeHealthcareServiceHealthcareServiceNotAvailableComponent(Complex parent, String parentType, String name, HealthcareService.HealthcareServiceNotAvailableComponent 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, "HealthcareService", "description", element.getDescriptionElement(), -1);
    if (element.hasDuring())
        composePeriod(t, "HealthcareService", "during", element.getDuring(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Aggregations

Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)6 Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)5 HealthcareService (org.hl7.fhir.dstu3.model.HealthcareService)5 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)4 IdType (org.hl7.fhir.dstu3.model.IdType)3 Encounter (org.hl7.fhir.dstu3.model.Encounter)2 QuestionnaireResponse (org.hl7.fhir.dstu3.model.QuestionnaireResponse)2 ReferralRequest (org.hl7.fhir.dstu3.model.ReferralRequest)2 Location (org.hl7.fhir.r4.model.Location)2 Test (org.junit.jupiter.api.Test)2 Operation (ca.uhn.fhir.rest.annotation.Operation)1 ArrayList (java.util.ArrayList)1 Bundle (org.hl7.fhir.dstu3.model.Bundle)1 CarePlan (org.hl7.fhir.dstu3.model.CarePlan)1 Composition (org.hl7.fhir.dstu3.model.Composition)1 Condition (org.hl7.fhir.dstu3.model.Condition)1 Consent (org.hl7.fhir.dstu3.model.Consent)1 Device (org.hl7.fhir.dstu3.model.Device)1 ListResource (org.hl7.fhir.dstu3.model.ListResource)1 Location (org.hl7.fhir.dstu3.model.Location)1