Search in sources :

Example 1 with CoverageEligibilityRequest

use of org.hl7.fhir.r4.model.CoverageEligibilityRequest in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeCoverageEligibilityRequest.

protected void composeCoverageEligibilityRequest(Complex parent, String parentType, String name, CoverageEligibilityRequest element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "CoverageEligibilityRequest", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "CoverageEligibilityRequest", "identifier", element.getIdentifier().get(i), i);
    if (element.hasStatusElement())
        composeEnum(t, "CoverageEligibilityRequest", "status", element.getStatusElement(), -1);
    if (element.hasPriority())
        composeCodeableConcept(t, "CoverageEligibilityRequest", "priority", element.getPriority(), -1);
    for (int i = 0; i < element.getPurpose().size(); i++) composeEnum(t, "CoverageEligibilityRequest", "purpose", element.getPurpose().get(i), i);
    if (element.hasPatient())
        composeReference(t, "CoverageEligibilityRequest", "patient", element.getPatient(), -1);
    if (element.hasServiced())
        composeType(t, "CoverageEligibilityRequest", "serviced", element.getServiced(), -1);
    if (element.hasCreatedElement())
        composeDateTime(t, "CoverageEligibilityRequest", "created", element.getCreatedElement(), -1);
    if (element.hasEnterer())
        composeReference(t, "CoverageEligibilityRequest", "enterer", element.getEnterer(), -1);
    if (element.hasProvider())
        composeReference(t, "CoverageEligibilityRequest", "provider", element.getProvider(), -1);
    if (element.hasInsurer())
        composeReference(t, "CoverageEligibilityRequest", "insurer", element.getInsurer(), -1);
    if (element.hasFacility())
        composeReference(t, "CoverageEligibilityRequest", "facility", element.getFacility(), -1);
    for (int i = 0; i < element.getSupportingInfo().size(); i++) composeCoverageEligibilityRequestSupportingInformationComponent(t, "CoverageEligibilityRequest", "supportingInfo", element.getSupportingInfo().get(i), i);
    for (int i = 0; i < element.getInsurance().size(); i++) composeCoverageEligibilityRequestInsuranceComponent(t, "CoverageEligibilityRequest", "insurance", element.getInsurance().get(i), i);
    for (int i = 0; i < element.getItem().size(); i++) composeCoverageEligibilityRequestDetailsComponent(t, "CoverageEligibilityRequest", "item", element.getItem().get(i), i);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 2 with CoverageEligibilityRequest

use of org.hl7.fhir.r4.model.CoverageEligibilityRequest in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeCoverageEligibilityRequestDiagnosisComponent.

protected void composeCoverageEligibilityRequestDiagnosisComponent(Complex parent, String parentType, String name, CoverageEligibilityRequest.DiagnosisComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "diagnosis", name, element, index);
    if (element.hasDiagnosis())
        composeType(t, "CoverageEligibilityRequest", "diagnosis", element.getDiagnosis(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 3 with CoverageEligibilityRequest

use of org.hl7.fhir.r4.model.CoverageEligibilityRequest in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeCoverageEligibilityRequestSupportingInformationComponent.

protected void composeCoverageEligibilityRequestSupportingInformationComponent(Complex parent, String parentType, String name, CoverageEligibilityRequest.SupportingInformationComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "supportingInfo", name, element, index);
    if (element.hasSequenceElement())
        composePositiveInt(t, "CoverageEligibilityRequest", "sequence", element.getSequenceElement(), -1);
    if (element.hasInformation())
        composeReference(t, "CoverageEligibilityRequest", "information", element.getInformation(), -1);
    if (element.hasAppliesToAllElement())
        composeBoolean(t, "CoverageEligibilityRequest", "appliesToAll", element.getAppliesToAllElement(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 4 with CoverageEligibilityRequest

use of org.hl7.fhir.r4.model.CoverageEligibilityRequest in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeCoverageEligibilityRequestInsuranceComponent.

protected void composeCoverageEligibilityRequestInsuranceComponent(Complex parent, String parentType, String name, CoverageEligibilityRequest.InsuranceComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "insurance", name, element, index);
    if (element.hasFocalElement())
        composeBoolean(t, "CoverageEligibilityRequest", "focal", element.getFocalElement(), -1);
    if (element.hasCoverage())
        composeReference(t, "CoverageEligibilityRequest", "coverage", element.getCoverage(), -1);
    if (element.hasBusinessArrangementElement())
        composeString(t, "CoverageEligibilityRequest", "businessArrangement", element.getBusinessArrangementElement(), -1);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Example 5 with CoverageEligibilityRequest

use of org.hl7.fhir.r4.model.CoverageEligibilityRequest in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeCoverageEligibilityRequestDetailsComponent.

protected void composeCoverageEligibilityRequestDetailsComponent(Complex parent, String parentType, String name, CoverageEligibilityRequest.DetailsComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "item", name, element, index);
    for (int i = 0; i < element.getSupportingInfoSequence().size(); i++) composePositiveInt(t, "CoverageEligibilityRequest", "supportingInfoSequence", element.getSupportingInfoSequence().get(i), i);
    if (element.hasCategory())
        composeCodeableConcept(t, "CoverageEligibilityRequest", "category", element.getCategory(), -1);
    if (element.hasProductOrService())
        composeCodeableConcept(t, "CoverageEligibilityRequest", "productOrService", element.getProductOrService(), -1);
    for (int i = 0; i < element.getModifier().size(); i++) composeCodeableConcept(t, "CoverageEligibilityRequest", "modifier", element.getModifier().get(i), i);
    if (element.hasProvider())
        composeReference(t, "CoverageEligibilityRequest", "provider", element.getProvider(), -1);
    if (element.hasQuantity())
        composeQuantity(t, "CoverageEligibilityRequest", "quantity", element.getQuantity(), -1);
    if (element.hasUnitPrice())
        composeMoney(t, "CoverageEligibilityRequest", "unitPrice", element.getUnitPrice(), -1);
    if (element.hasFacility())
        composeReference(t, "CoverageEligibilityRequest", "facility", element.getFacility(), -1);
    for (int i = 0; i < element.getDiagnosis().size(); i++) composeCoverageEligibilityRequestDiagnosisComponent(t, "CoverageEligibilityRequest", "diagnosis", element.getDiagnosis().get(i), i);
    for (int i = 0; i < element.getDetail().size(); i++) composeReference(t, "CoverageEligibilityRequest", "detail", element.getDetail().get(i), i);
}
Also used : Complex(org.hl7.fhir.r4.utils.formats.Turtle.Complex)

Aggregations

Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)5 Operation (ca.uhn.fhir.rest.annotation.Operation)1 CoverageRequirementsDiscoveryOperationHardCodedResponse (org.hl7.davinci.CoverageRequirementsDiscoveryOperationHardCodedResponse)1 Coverage (org.hl7.fhir.r4.model.Coverage)1 CoverageEligibilityRequest (org.hl7.fhir.r4.model.CoverageEligibilityRequest)1 CoverageEligibilityResponse (org.hl7.fhir.r4.model.CoverageEligibilityResponse)1 Device (org.hl7.fhir.r4.model.Device)1 Endpoint (org.hl7.fhir.r4.model.Endpoint)1 Location (org.hl7.fhir.r4.model.Location)1 Organization (org.hl7.fhir.r4.model.Organization)1 Parameters (org.hl7.fhir.r4.model.Parameters)1 Patient (org.hl7.fhir.r4.model.Patient)1 Practitioner (org.hl7.fhir.r4.model.Practitioner)1 Procedure (org.hl7.fhir.r4.model.Procedure)1 ResourceType (org.hl7.fhir.r4.model.ResourceType)1 DisplayName (org.junit.jupiter.api.DisplayName)1 Test (org.junit.jupiter.api.Test)1