use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePractitioner.
protected void composePractitioner(Complex parent, String parentType, String name, Practitioner element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Practitioner", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Practitioner", "identifier", element.getIdentifier().get(i), i);
if (element.hasActiveElement())
composeBoolean(t, "Practitioner", "active", element.getActiveElement(), -1);
for (int i = 0; i < element.getName().size(); i++) composeHumanName(t, "Practitioner", "name", element.getName().get(i), i);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "Practitioner", "telecom", element.getTelecom().get(i), i);
for (int i = 0; i < element.getAddress().size(); i++) composeAddress(t, "Practitioner", "address", element.getAddress().get(i), i);
if (element.hasGenderElement())
composeEnum(t, "Practitioner", "gender", element.getGenderElement(), -1);
if (element.hasBirthDateElement())
composeDate(t, "Practitioner", "birthDate", element.getBirthDateElement(), -1);
for (int i = 0; i < element.getPhoto().size(); i++) composeAttachment(t, "Practitioner", "photo", element.getPhoto().get(i), i);
for (int i = 0; i < element.getQualification().size(); i++) composePractitionerPractitionerQualificationComponent(t, "Practitioner", "qualification", element.getQualification().get(i), i);
for (int i = 0; i < element.getCommunication().size(); i++) composeCodeableConcept(t, "Practitioner", "communication", element.getCommunication().get(i), i);
}
use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePatient.
protected void composePatient(Complex parent, String parentType, String name, Patient element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Patient", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Patient", "identifier", element.getIdentifier().get(i), i);
if (element.hasActiveElement())
composeBoolean(t, "Patient", "active", element.getActiveElement(), -1);
for (int i = 0; i < element.getName().size(); i++) composeHumanName(t, "Patient", "name", element.getName().get(i), i);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "Patient", "telecom", element.getTelecom().get(i), i);
if (element.hasGenderElement())
composeEnum(t, "Patient", "gender", element.getGenderElement(), -1);
if (element.hasBirthDateElement())
composeDate(t, "Patient", "birthDate", element.getBirthDateElement(), -1);
if (element.hasDeceased())
composeType(t, "Patient", "deceased", element.getDeceased(), -1);
for (int i = 0; i < element.getAddress().size(); i++) composeAddress(t, "Patient", "address", element.getAddress().get(i), i);
if (element.hasMaritalStatus())
composeCodeableConcept(t, "Patient", "maritalStatus", element.getMaritalStatus(), -1);
if (element.hasMultipleBirth())
composeType(t, "Patient", "multipleBirth", element.getMultipleBirth(), -1);
for (int i = 0; i < element.getPhoto().size(); i++) composeAttachment(t, "Patient", "photo", element.getPhoto().get(i), i);
for (int i = 0; i < element.getContact().size(); i++) composePatientContactComponent(t, "Patient", "contact", element.getContact().get(i), i);
if (element.hasAnimal())
composePatientAnimalComponent(t, "Patient", "animal", element.getAnimal(), -1);
for (int i = 0; i < element.getCommunication().size(); i++) composePatientPatientCommunicationComponent(t, "Patient", "communication", element.getCommunication().get(i), i);
for (int i = 0; i < element.getCareProvider().size(); i++) composeReference(t, "Patient", "careProvider", element.getCareProvider().get(i), i);
if (element.hasManagingOrganization())
composeReference(t, "Patient", "managingOrganization", element.getManagingOrganization(), -1);
for (int i = 0; i < element.getLink().size(); i++) composePatientPatientLinkComponent(t, "Patient", "link", element.getLink().get(i), i);
}
use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeCommunicationCommunicationPayloadComponent.
protected void composeCommunicationCommunicationPayloadComponent(Complex parent, String parentType, String name, Communication.CommunicationPayloadComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "payload", name, element, index);
if (element.hasContent())
composeType(t, "Communication", "content", element.getContent(), -1);
}
use of org.hl7.fhir.r4.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composePractitioner.
protected void composePractitioner(Complex parent, String parentType, String name, Practitioner element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Practitioner", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Practitioner", "identifier", element.getIdentifier().get(i), i);
if (element.hasActiveElement())
composeBoolean(t, "Practitioner", "active", element.getActiveElement(), -1);
for (int i = 0; i < element.getName().size(); i++) composeHumanName(t, "Practitioner", "name", element.getName().get(i), i);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "Practitioner", "telecom", element.getTelecom().get(i), i);
for (int i = 0; i < element.getAddress().size(); i++) composeAddress(t, "Practitioner", "address", element.getAddress().get(i), i);
if (element.hasGenderElement())
composeEnum(t, "Practitioner", "gender", element.getGenderElement(), -1);
if (element.hasBirthDateElement())
composeDate(t, "Practitioner", "birthDate", element.getBirthDateElement(), -1);
for (int i = 0; i < element.getPhoto().size(); i++) composeAttachment(t, "Practitioner", "photo", element.getPhoto().get(i), i);
for (int i = 0; i < element.getQualification().size(); i++) composePractitionerPractitionerQualificationComponent(t, "Practitioner", "qualification", element.getQualification().get(i), i);
for (int i = 0; i < element.getCommunication().size(); i++) composeCodeableConcept(t, "Practitioner", "communication", element.getCommunication().get(i), i);
}
Aggregations