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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations