use of org.hl7.fhir.dstu2.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeEpisodeOfCare.
protected void composeEpisodeOfCare(Complex parent, String parentType, String name, EpisodeOfCare element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "EpisodeOfCare", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "EpisodeOfCare", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "EpisodeOfCare", "status", element.getStatusElement(), -1);
for (int i = 0; i < element.getStatusHistory().size(); i++) composeEpisodeOfCareEpisodeOfCareStatusHistoryComponent(t, "EpisodeOfCare", "statusHistory", element.getStatusHistory().get(i), i);
for (int i = 0; i < element.getType().size(); i++) composeCodeableConcept(t, "EpisodeOfCare", "type", element.getType().get(i), i);
for (int i = 0; i < element.getCondition().size(); i++) composeReference(t, "EpisodeOfCare", "condition", element.getCondition().get(i), i);
if (element.hasPatient())
composeReference(t, "EpisodeOfCare", "patient", element.getPatient(), -1);
if (element.hasManagingOrganization())
composeReference(t, "EpisodeOfCare", "managingOrganization", element.getManagingOrganization(), -1);
if (element.hasPeriod())
composePeriod(t, "EpisodeOfCare", "period", element.getPeriod(), -1);
for (int i = 0; i < element.getReferralRequest().size(); i++) composeReference(t, "EpisodeOfCare", "referralRequest", element.getReferralRequest().get(i), i);
if (element.hasCareManager())
composeReference(t, "EpisodeOfCare", "careManager", element.getCareManager(), -1);
for (int i = 0; i < element.getTeam().size(); i++) composeReference(t, "EpisodeOfCare", "team", element.getTeam().get(i), i);
}
use of org.hl7.fhir.dstu2.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeEpisodeOfCareEpisodeOfCareStatusHistoryComponent.
protected void composeEpisodeOfCareEpisodeOfCareStatusHistoryComponent(Complex parent, String parentType, String name, EpisodeOfCare.EpisodeOfCareStatusHistoryComponent 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, "EpisodeOfCare", "status", element.getStatusElement(), -1);
if (element.hasPeriod())
composePeriod(t, "EpisodeOfCare", "period", element.getPeriod(), -1);
}
use of org.hl7.fhir.dstu2.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePatientContactComponent.
protected void composePatientContactComponent(Complex parent, String parentType, String name, Patient.ContactComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "contact", name, element, index);
for (int i = 0; i < element.getRelationship().size(); i++) composeCodeableConcept(t, "Patient", "relationship", element.getRelationship().get(i), i);
if (element.hasName())
composeHumanName(t, "Patient", "name", element.getName(), -1);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "Patient", "telecom", element.getTelecom().get(i), i);
if (element.hasAddress())
composeAddress(t, "Patient", "address", element.getAddress(), -1);
if (element.hasGenderElement())
composeEnum(t, "Patient", "gender", element.getGenderElement(), -1);
if (element.hasOrganization())
composeReference(t, "Patient", "organization", element.getOrganization(), -1);
if (element.hasPeriod())
composePeriod(t, "Patient", "period", element.getPeriod(), -1);
}
use of org.hl7.fhir.dstu2.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeProvenance.
protected void composeProvenance(Complex parent, String parentType, String name, Provenance element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Provenance", name, element, index);
for (int i = 0; i < element.getTarget().size(); i++) composeReference(t, "Provenance", "target", element.getTarget().get(i), i);
if (element.hasPeriod())
composePeriod(t, "Provenance", "period", element.getPeriod(), -1);
if (element.hasRecordedElement())
composeInstant(t, "Provenance", "recorded", element.getRecordedElement(), -1);
for (int i = 0; i < element.getPolicy().size(); i++) composeUri(t, "Provenance", "policy", element.getPolicy().get(i), i);
if (element.hasLocation())
composeReference(t, "Provenance", "location", element.getLocation(), -1);
for (int i = 0; i < element.getReason().size(); i++) composeCoding(t, "Provenance", "reason", element.getReason().get(i), i);
if (element.hasActivity())
composeCoding(t, "Provenance", "activity", element.getActivity(), -1);
for (int i = 0; i < element.getAgent().size(); i++) composeProvenanceProvenanceAgentComponent(t, "Provenance", "agent", element.getAgent().get(i), i);
for (int i = 0; i < element.getEntity().size(); i++) composeProvenanceProvenanceEntityComponent(t, "Provenance", "entity", element.getEntity().get(i), i);
for (int i = 0; i < element.getSignature().size(); i++) composeSignature(t, "Provenance", "signature", element.getSignature().get(i), i);
}
use of org.hl7.fhir.dstu2.model.Period in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeAccountGuarantorComponent.
protected void composeAccountGuarantorComponent(Complex parent, String parentType, String name, Account.GuarantorComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "guarantor", name, element, index);
if (element.hasParty())
composeReference(t, "Account", "party", element.getParty(), -1);
if (element.hasOnHoldElement())
composeBoolean(t, "Account", "onHold", element.getOnHoldElement(), -1);
if (element.hasPeriod())
composePeriod(t, "Account", "period", element.getPeriod(), -1);
}
Aggregations