use of org.hl7.fhir.r4.model.Period 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);
}
use of org.hl7.fhir.r4.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeNamingSystemNamingSystemUniqueIdComponent.
protected void composeNamingSystemNamingSystemUniqueIdComponent(Complex parent, String parentType, String name, NamingSystem.NamingSystemUniqueIdComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "uniqueId", name, element, index);
if (element.hasTypeElement())
composeEnum(t, "NamingSystem", "type", element.getTypeElement(), -1);
if (element.hasValueElement())
composeString(t, "NamingSystem", "value", element.getValueElement(), -1);
if (element.hasPreferredElement())
composeBoolean(t, "NamingSystem", "preferred", element.getPreferredElement(), -1);
if (element.hasPeriod())
composePeriod(t, "NamingSystem", "period", element.getPeriod(), -1);
}
use of org.hl7.fhir.r4.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePeriod.
protected void composePeriod(Complex parent, String parentType, String name, Period element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeElement(t, "Period", name, element, index);
if (element.hasStartElement())
composeDateTime(t, "Period", "start", element.getStartElement(), -1);
if (element.hasEndElement())
composeDateTime(t, "Period", "end", element.getEndElement(), -1);
}
use of org.hl7.fhir.r4.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.hasCategory())
composeCodeableConcept(t, "Flag", "category", element.getCategory(), -1);
if (element.hasStatusElement())
composeEnum(t, "Flag", "status", element.getStatusElement(), -1);
if (element.hasPeriod())
composePeriod(t, "Flag", "period", element.getPeriod(), -1);
if (element.hasSubject())
composeReference(t, "Flag", "subject", element.getSubject(), -1);
if (element.hasEncounter())
composeReference(t, "Flag", "encounter", element.getEncounter(), -1);
if (element.hasAuthor())
composeReference(t, "Flag", "author", element.getAuthor(), -1);
if (element.hasCode())
composeCodeableConcept(t, "Flag", "code", element.getCode(), -1);
}
use of org.hl7.fhir.r4.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePractitionerRole.
protected void composePractitionerRole(Complex parent, String parentType, String name, PractitionerRole element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "PractitionerRole", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "PractitionerRole", "identifier", element.getIdentifier().get(i), i);
if (element.hasActiveElement())
composeBoolean(t, "PractitionerRole", "active", element.getActiveElement(), -1);
if (element.hasPractitioner())
composeReference(t, "PractitionerRole", "practitioner", element.getPractitioner(), -1);
if (element.hasOrganization())
composeReference(t, "PractitionerRole", "organization", element.getOrganization(), -1);
for (int i = 0; i < element.getRole().size(); i++) composeCodeableConcept(t, "PractitionerRole", "role", element.getRole().get(i), i);
for (int i = 0; i < element.getSpecialty().size(); i++) composeCodeableConcept(t, "PractitionerRole", "specialty", element.getSpecialty().get(i), i);
for (int i = 0; i < element.getLocation().size(); i++) composeReference(t, "PractitionerRole", "location", element.getLocation().get(i), i);
for (int i = 0; i < element.getHealthcareService().size(); i++) composeReference(t, "PractitionerRole", "healthcareService", element.getHealthcareService().get(i), i);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "PractitionerRole", "telecom", element.getTelecom().get(i), i);
if (element.hasPeriod())
composePeriod(t, "PractitionerRole", "period", element.getPeriod(), -1);
for (int i = 0; i < element.getAvailableTime().size(); i++) composePractitionerRolePractitionerRoleAvailableTimeComponent(t, "PractitionerRole", "availableTime", element.getAvailableTime().get(i), i);
for (int i = 0; i < element.getNotAvailable().size(); i++) composePractitionerRolePractitionerRoleNotAvailableComponent(t, "PractitionerRole", "notAvailable", element.getNotAvailable().get(i), i);
if (element.hasAvailabilityExceptionsElement())
composeString(t, "PractitionerRole", "availabilityExceptions", element.getAvailabilityExceptionsElement(), -1);
}
Aggregations