use of org.hl7.fhir.dstu3.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.dstu3.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);
for (int i = 0; i < element.getCommunication().size(); i++) composePatientPatientCommunicationComponent(t, "Patient", "communication", element.getCommunication().get(i), i);
for (int i = 0; i < element.getGeneralPractitioner().size(); i++) composeReference(t, "Patient", "generalPractitioner", element.getGeneralPractitioner().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.dstu3.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeHealthcareService.
protected void composeHealthcareService(Complex parent, String parentType, String name, HealthcareService element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "HealthcareService", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "HealthcareService", "identifier", element.getIdentifier().get(i), i);
if (element.hasActiveElement())
composeBoolean(t, "HealthcareService", "active", element.getActiveElement(), -1);
if (element.hasProvidedBy())
composeReference(t, "HealthcareService", "providedBy", element.getProvidedBy(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "HealthcareService", "category", element.getCategory().get(i), i);
for (int i = 0; i < element.getType().size(); i++) composeCodeableConcept(t, "HealthcareService", "type", element.getType().get(i), i);
for (int i = 0; i < element.getSpecialty().size(); i++) composeCodeableConcept(t, "HealthcareService", "specialty", element.getSpecialty().get(i), i);
for (int i = 0; i < element.getLocation().size(); i++) composeReference(t, "HealthcareService", "location", element.getLocation().get(i), i);
if (element.hasNameElement())
composeString(t, "HealthcareService", "name", element.getNameElement(), -1);
if (element.hasCommentElement())
composeString(t, "HealthcareService", "comment", element.getCommentElement(), -1);
if (element.hasExtraDetailsElement())
composeMarkdown(t, "HealthcareService", "extraDetails", element.getExtraDetailsElement(), -1);
if (element.hasPhoto())
composeAttachment(t, "HealthcareService", "photo", element.getPhoto(), -1);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "HealthcareService", "telecom", element.getTelecom().get(i), i);
for (int i = 0; i < element.getCoverageArea().size(); i++) composeReference(t, "HealthcareService", "coverageArea", element.getCoverageArea().get(i), i);
for (int i = 0; i < element.getServiceProvisionCode().size(); i++) composeCodeableConcept(t, "HealthcareService", "serviceProvisionCode", element.getServiceProvisionCode().get(i), i);
for (int i = 0; i < element.getEligibility().size(); i++) composeHealthcareServiceHealthcareServiceEligibilityComponent(t, "HealthcareService", "eligibility", element.getEligibility().get(i), i);
for (int i = 0; i < element.getProgram().size(); i++) composeCodeableConcept(t, "HealthcareService", "program", element.getProgram().get(i), i);
for (int i = 0; i < element.getCharacteristic().size(); i++) composeCodeableConcept(t, "HealthcareService", "characteristic", element.getCharacteristic().get(i), i);
for (int i = 0; i < element.getCommunication().size(); i++) composeCodeableConcept(t, "HealthcareService", "communication", element.getCommunication().get(i), i);
for (int i = 0; i < element.getReferralMethod().size(); i++) composeCodeableConcept(t, "HealthcareService", "referralMethod", element.getReferralMethod().get(i), i);
if (element.hasAppointmentRequiredElement())
composeBoolean(t, "HealthcareService", "appointmentRequired", element.getAppointmentRequiredElement(), -1);
for (int i = 0; i < element.getAvailableTime().size(); i++) composeHealthcareServiceHealthcareServiceAvailableTimeComponent(t, "HealthcareService", "availableTime", element.getAvailableTime().get(i), i);
for (int i = 0; i < element.getNotAvailable().size(); i++) composeHealthcareServiceHealthcareServiceNotAvailableComponent(t, "HealthcareService", "notAvailable", element.getNotAvailable().get(i), i);
if (element.hasAvailabilityExceptionsElement())
composeString(t, "HealthcareService", "availabilityExceptions", element.getAvailabilityExceptionsElement(), -1);
for (int i = 0; i < element.getEndpoint().size(); i++) composeReference(t, "HealthcareService", "endpoint", element.getEndpoint().get(i), i);
}
use of org.hl7.fhir.dstu3.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeRelatedPersonRelatedPersonCommunicationComponent.
protected void composeRelatedPersonRelatedPersonCommunicationComponent(Complex parent, String parentType, String name, RelatedPerson.RelatedPersonCommunicationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "communication", name, element, index);
if (element.hasLanguage())
composeCodeableConcept(t, "RelatedPerson", "language", element.getLanguage(), -1);
if (element.hasPreferredElement())
composeBoolean(t, "RelatedPerson", "preferred", element.getPreferredElement(), -1);
}
use of org.hl7.fhir.dstu3.model.Communication in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeCommunication.
protected void composeCommunication(Complex parent, String parentType, String name, Communication element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Communication", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Communication", "identifier", element.getIdentifier().get(i), i);
for (int i = 0; i < element.getInstantiatesCanonical().size(); i++) composeCanonical(t, "Communication", "instantiatesCanonical", element.getInstantiatesCanonical().get(i), i);
for (int i = 0; i < element.getInstantiatesUri().size(); i++) composeUri(t, "Communication", "instantiatesUri", element.getInstantiatesUri().get(i), i);
for (int i = 0; i < element.getBasedOn().size(); i++) composeReference(t, "Communication", "basedOn", element.getBasedOn().get(i), i);
for (int i = 0; i < element.getPartOf().size(); i++) composeReference(t, "Communication", "partOf", element.getPartOf().get(i), i);
for (int i = 0; i < element.getInResponseTo().size(); i++) composeReference(t, "Communication", "inResponseTo", element.getInResponseTo().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "Communication", "status", element.getStatusElement(), -1);
if (element.hasStatusReason())
composeCodeableConcept(t, "Communication", "statusReason", element.getStatusReason(), -1);
for (int i = 0; i < element.getCategory().size(); i++) composeCodeableConcept(t, "Communication", "category", element.getCategory().get(i), i);
if (element.hasPriorityElement())
composeEnum(t, "Communication", "priority", element.getPriorityElement(), -1);
for (int i = 0; i < element.getMedium().size(); i++) composeCodeableConcept(t, "Communication", "medium", element.getMedium().get(i), i);
if (element.hasSubject())
composeReference(t, "Communication", "subject", element.getSubject(), -1);
if (element.hasTopic())
composeCodeableConcept(t, "Communication", "topic", element.getTopic(), -1);
for (int i = 0; i < element.getAbout().size(); i++) composeReference(t, "Communication", "about", element.getAbout().get(i), i);
if (element.hasEncounter())
composeReference(t, "Communication", "encounter", element.getEncounter(), -1);
if (element.hasSentElement())
composeDateTime(t, "Communication", "sent", element.getSentElement(), -1);
if (element.hasReceivedElement())
composeDateTime(t, "Communication", "received", element.getReceivedElement(), -1);
for (int i = 0; i < element.getRecipient().size(); i++) composeReference(t, "Communication", "recipient", element.getRecipient().get(i), i);
if (element.hasSender())
composeReference(t, "Communication", "sender", element.getSender(), -1);
for (int i = 0; i < element.getReasonCode().size(); i++) composeCodeableConcept(t, "Communication", "reasonCode", element.getReasonCode().get(i), i);
for (int i = 0; i < element.getReasonReference().size(); i++) composeReference(t, "Communication", "reasonReference", element.getReasonReference().get(i), i);
for (int i = 0; i < element.getPayload().size(); i++) composeCommunicationCommunicationPayloadComponent(t, "Communication", "payload", element.getPayload().get(i), i);
for (int i = 0; i < element.getNote().size(); i++) composeAnnotation(t, "Communication", "note", element.getNote().get(i), i);
}
Aggregations