use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.ORGANIZATION in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeEnrollmentRequest.
protected void composeEnrollmentRequest(Complex parent, String parentType, String name, EnrollmentRequest element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "EnrollmentRequest", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "EnrollmentRequest", "identifier", element.getIdentifier().get(i), i);
if (element.hasRuleset())
composeCoding(t, "EnrollmentRequest", "ruleset", element.getRuleset(), -1);
if (element.hasOriginalRuleset())
composeCoding(t, "EnrollmentRequest", "originalRuleset", element.getOriginalRuleset(), -1);
if (element.hasCreatedElement())
composeDateTime(t, "EnrollmentRequest", "created", element.getCreatedElement(), -1);
if (element.hasTarget())
composeReference(t, "EnrollmentRequest", "target", element.getTarget(), -1);
if (element.hasProvider())
composeReference(t, "EnrollmentRequest", "provider", element.getProvider(), -1);
if (element.hasOrganization())
composeReference(t, "EnrollmentRequest", "organization", element.getOrganization(), -1);
if (element.hasSubject())
composeReference(t, "EnrollmentRequest", "subject", element.getSubject(), -1);
if (element.hasCoverage())
composeReference(t, "EnrollmentRequest", "coverage", element.getCoverage(), -1);
if (element.hasRelationship())
composeCoding(t, "EnrollmentRequest", "relationship", element.getRelationship(), -1);
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.ORGANIZATION 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);
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.ORGANIZATION in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeEnrollmentResponse.
protected void composeEnrollmentResponse(Complex parent, String parentType, String name, EnrollmentResponse element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "EnrollmentResponse", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "EnrollmentResponse", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "EnrollmentResponse", "status", element.getStatusElement(), -1);
if (element.hasRequest())
composeReference(t, "EnrollmentResponse", "request", element.getRequest(), -1);
if (element.hasOutcome())
composeCodeableConcept(t, "EnrollmentResponse", "outcome", element.getOutcome(), -1);
if (element.hasDispositionElement())
composeString(t, "EnrollmentResponse", "disposition", element.getDispositionElement(), -1);
if (element.hasCreatedElement())
composeDateTime(t, "EnrollmentResponse", "created", element.getCreatedElement(), -1);
if (element.hasOrganization())
composeReference(t, "EnrollmentResponse", "organization", element.getOrganization(), -1);
if (element.hasRequestProvider())
composeReference(t, "EnrollmentResponse", "requestProvider", element.getRequestProvider(), -1);
if (element.hasRequestOrganization())
composeReference(t, "EnrollmentResponse", "requestOrganization", element.getRequestOrganization(), -1);
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.ORGANIZATION in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeExplanationOfBenefit.
protected void composeExplanationOfBenefit(Complex parent, String parentType, String name, ExplanationOfBenefit element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "ExplanationOfBenefit", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "ExplanationOfBenefit", "identifier", element.getIdentifier().get(i), i);
if (element.hasStatusElement())
composeEnum(t, "ExplanationOfBenefit", "status", element.getStatusElement(), -1);
if (element.hasType())
composeCodeableConcept(t, "ExplanationOfBenefit", "type", element.getType(), -1);
for (int i = 0; i < element.getSubType().size(); i++) composeCodeableConcept(t, "ExplanationOfBenefit", "subType", element.getSubType().get(i), i);
if (element.hasPatient())
composeReference(t, "ExplanationOfBenefit", "patient", element.getPatient(), -1);
if (element.hasBillablePeriod())
composePeriod(t, "ExplanationOfBenefit", "billablePeriod", element.getBillablePeriod(), -1);
if (element.hasCreatedElement())
composeDateTime(t, "ExplanationOfBenefit", "created", element.getCreatedElement(), -1);
if (element.hasEnterer())
composeReference(t, "ExplanationOfBenefit", "enterer", element.getEnterer(), -1);
if (element.hasInsurer())
composeReference(t, "ExplanationOfBenefit", "insurer", element.getInsurer(), -1);
if (element.hasProvider())
composeReference(t, "ExplanationOfBenefit", "provider", element.getProvider(), -1);
if (element.hasOrganization())
composeReference(t, "ExplanationOfBenefit", "organization", element.getOrganization(), -1);
if (element.hasReferral())
composeReference(t, "ExplanationOfBenefit", "referral", element.getReferral(), -1);
if (element.hasFacility())
composeReference(t, "ExplanationOfBenefit", "facility", element.getFacility(), -1);
if (element.hasClaim())
composeReference(t, "ExplanationOfBenefit", "claim", element.getClaim(), -1);
if (element.hasClaimResponse())
composeReference(t, "ExplanationOfBenefit", "claimResponse", element.getClaimResponse(), -1);
if (element.hasOutcome())
composeCodeableConcept(t, "ExplanationOfBenefit", "outcome", element.getOutcome(), -1);
if (element.hasDispositionElement())
composeString(t, "ExplanationOfBenefit", "disposition", element.getDispositionElement(), -1);
for (int i = 0; i < element.getRelated().size(); i++) composeExplanationOfBenefitRelatedClaimComponent(t, "ExplanationOfBenefit", "related", element.getRelated().get(i), i);
if (element.hasPrescription())
composeReference(t, "ExplanationOfBenefit", "prescription", element.getPrescription(), -1);
if (element.hasOriginalPrescription())
composeReference(t, "ExplanationOfBenefit", "originalPrescription", element.getOriginalPrescription(), -1);
if (element.hasPayee())
composeExplanationOfBenefitPayeeComponent(t, "ExplanationOfBenefit", "payee", element.getPayee(), -1);
for (int i = 0; i < element.getInformation().size(); i++) composeExplanationOfBenefitSupportingInformationComponent(t, "ExplanationOfBenefit", "information", element.getInformation().get(i), i);
for (int i = 0; i < element.getCareTeam().size(); i++) composeExplanationOfBenefitCareTeamComponent(t, "ExplanationOfBenefit", "careTeam", element.getCareTeam().get(i), i);
for (int i = 0; i < element.getDiagnosis().size(); i++) composeExplanationOfBenefitDiagnosisComponent(t, "ExplanationOfBenefit", "diagnosis", element.getDiagnosis().get(i), i);
for (int i = 0; i < element.getProcedure().size(); i++) composeExplanationOfBenefitProcedureComponent(t, "ExplanationOfBenefit", "procedure", element.getProcedure().get(i), i);
if (element.hasPrecedenceElement())
composePositiveInt(t, "ExplanationOfBenefit", "precedence", element.getPrecedenceElement(), -1);
if (element.hasInsurance())
composeExplanationOfBenefitInsuranceComponent(t, "ExplanationOfBenefit", "insurance", element.getInsurance(), -1);
if (element.hasAccident())
composeExplanationOfBenefitAccidentComponent(t, "ExplanationOfBenefit", "accident", element.getAccident(), -1);
if (element.hasEmploymentImpacted())
composePeriod(t, "ExplanationOfBenefit", "employmentImpacted", element.getEmploymentImpacted(), -1);
if (element.hasHospitalization())
composePeriod(t, "ExplanationOfBenefit", "hospitalization", element.getHospitalization(), -1);
for (int i = 0; i < element.getItem().size(); i++) composeExplanationOfBenefitItemComponent(t, "ExplanationOfBenefit", "item", element.getItem().get(i), i);
for (int i = 0; i < element.getAddItem().size(); i++) composeExplanationOfBenefitAddedItemComponent(t, "ExplanationOfBenefit", "addItem", element.getAddItem().get(i), i);
if (element.hasTotalCost())
composeMoney(t, "ExplanationOfBenefit", "totalCost", element.getTotalCost(), -1);
if (element.hasUnallocDeductable())
composeMoney(t, "ExplanationOfBenefit", "unallocDeductable", element.getUnallocDeductable(), -1);
if (element.hasTotalBenefit())
composeMoney(t, "ExplanationOfBenefit", "totalBenefit", element.getTotalBenefit(), -1);
if (element.hasPayment())
composeExplanationOfBenefitPaymentComponent(t, "ExplanationOfBenefit", "payment", element.getPayment(), -1);
if (element.hasForm())
composeCodeableConcept(t, "ExplanationOfBenefit", "form", element.getForm(), -1);
for (int i = 0; i < element.getProcessNote().size(); i++) composeExplanationOfBenefitNoteComponent(t, "ExplanationOfBenefit", "processNote", element.getProcessNote().get(i), i);
for (int i = 0; i < element.getBenefitBalance().size(); i++) composeExplanationOfBenefitBenefitBalanceComponent(t, "ExplanationOfBenefit", "benefitBalance", element.getBenefitBalance().get(i), i);
}
use of org.hl7.fhir.r4.model.codesystems.ResourceTypes.ORGANIZATION in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeOrganization.
protected void composeOrganization(Complex parent, String parentType, String name, Organization element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeDomainResource(t, "Organization", name, element, index);
for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "Organization", "identifier", element.getIdentifier().get(i), i);
if (element.hasActiveElement())
composeBoolean(t, "Organization", "active", element.getActiveElement(), -1);
for (int i = 0; i < element.getType().size(); i++) composeCodeableConcept(t, "Organization", "type", element.getType().get(i), i);
if (element.hasNameElement())
composeString(t, "Organization", "name", element.getNameElement(), -1);
for (int i = 0; i < element.getAlias().size(); i++) composeString(t, "Organization", "alias", element.getAlias().get(i), i);
for (int i = 0; i < element.getTelecom().size(); i++) composeContactPoint(t, "Organization", "telecom", element.getTelecom().get(i), i);
for (int i = 0; i < element.getAddress().size(); i++) composeAddress(t, "Organization", "address", element.getAddress().get(i), i);
if (element.hasPartOf())
composeReference(t, "Organization", "partOf", element.getPartOf(), -1);
for (int i = 0; i < element.getContact().size(); i++) composeOrganizationOrganizationContactComponent(t, "Organization", "contact", element.getContact().get(i), i);
for (int i = 0; i < element.getEndpoint().size(); i++) composeReference(t, "Organization", "endpoint", element.getEndpoint().get(i), i);
}
Aggregations