Search in sources :

Example 31 with ClaimResponse

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

the class RdfParser method composeClaimResponse.

protected void composeClaimResponse(Complex parent, String parentType, String name, ClaimResponse element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "ClaimResponse", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "ClaimResponse", "identifier", element.getIdentifier().get(i), i);
    if (element.hasRequest())
        composeType(t, "ClaimResponse", "request", element.getRequest(), -1);
    if (element.hasRuleset())
        composeCoding(t, "ClaimResponse", "ruleset", element.getRuleset(), -1);
    if (element.hasOriginalRuleset())
        composeCoding(t, "ClaimResponse", "originalRuleset", element.getOriginalRuleset(), -1);
    if (element.hasCreatedElement())
        composeDateTime(t, "ClaimResponse", "created", element.getCreatedElement(), -1);
    if (element.hasOrganization())
        composeType(t, "ClaimResponse", "organization", element.getOrganization(), -1);
    if (element.hasRequestProvider())
        composeType(t, "ClaimResponse", "requestProvider", element.getRequestProvider(), -1);
    if (element.hasRequestOrganization())
        composeType(t, "ClaimResponse", "requestOrganization", element.getRequestOrganization(), -1);
    if (element.hasOutcomeElement())
        composeEnum(t, "ClaimResponse", "outcome", element.getOutcomeElement(), -1);
    if (element.hasDispositionElement())
        composeString(t, "ClaimResponse", "disposition", element.getDispositionElement(), -1);
    if (element.hasPayeeType())
        composeCoding(t, "ClaimResponse", "payeeType", element.getPayeeType(), -1);
    for (int i = 0; i < element.getItem().size(); i++) composeClaimResponseItemsComponent(t, "ClaimResponse", "item", element.getItem().get(i), i);
    for (int i = 0; i < element.getAddItem().size(); i++) composeClaimResponseAddedItemComponent(t, "ClaimResponse", "addItem", element.getAddItem().get(i), i);
    for (int i = 0; i < element.getError().size(); i++) composeClaimResponseErrorsComponent(t, "ClaimResponse", "error", element.getError().get(i), i);
    if (element.hasTotalCost())
        composeQuantity(t, "ClaimResponse", "totalCost", element.getTotalCost(), -1);
    if (element.hasUnallocDeductable())
        composeQuantity(t, "ClaimResponse", "unallocDeductable", element.getUnallocDeductable(), -1);
    if (element.hasTotalBenefit())
        composeQuantity(t, "ClaimResponse", "totalBenefit", element.getTotalBenefit(), -1);
    if (element.hasPaymentAdjustment())
        composeQuantity(t, "ClaimResponse", "paymentAdjustment", element.getPaymentAdjustment(), -1);
    if (element.hasPaymentAdjustmentReason())
        composeCoding(t, "ClaimResponse", "paymentAdjustmentReason", element.getPaymentAdjustmentReason(), -1);
    if (element.hasPaymentDateElement())
        composeDate(t, "ClaimResponse", "paymentDate", element.getPaymentDateElement(), -1);
    if (element.hasPaymentAmount())
        composeQuantity(t, "ClaimResponse", "paymentAmount", element.getPaymentAmount(), -1);
    if (element.hasPaymentRef())
        composeIdentifier(t, "ClaimResponse", "paymentRef", element.getPaymentRef(), -1);
    if (element.hasReserved())
        composeCoding(t, "ClaimResponse", "reserved", element.getReserved(), -1);
    if (element.hasForm())
        composeCoding(t, "ClaimResponse", "form", element.getForm(), -1);
    for (int i = 0; i < element.getNote().size(); i++) composeClaimResponseNotesComponent(t, "ClaimResponse", "note", element.getNote().get(i), i);
    for (int i = 0; i < element.getCoverage().size(); i++) composeClaimResponseCoverageComponent(t, "ClaimResponse", "coverage", element.getCoverage().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)

Example 32 with ClaimResponse

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

the class RdfParser method composeClaimResponseItemComponent.

protected void composeClaimResponseItemComponent(Complex parent, String parentType, String name, ClaimResponse.ItemComponent 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);
    if (element.hasSequenceLinkIdElement())
        composePositiveInt(t, "ClaimResponse", "sequenceLinkId", element.getSequenceLinkIdElement(), -1);
    for (int i = 0; i < element.getNoteNumber().size(); i++) composePositiveInt(t, "ClaimResponse", "noteNumber", element.getNoteNumber().get(i), i);
    for (int i = 0; i < element.getAdjudication().size(); i++) composeClaimResponseAdjudicationComponent(t, "ClaimResponse", "adjudication", element.getAdjudication().get(i), i);
    for (int i = 0; i < element.getDetail().size(); i++) composeClaimResponseItemDetailComponent(t, "ClaimResponse", "detail", element.getDetail().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 33 with ClaimResponse

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

the class RdfParser method composeClaimResponseSubDetailComponent.

protected void composeClaimResponseSubDetailComponent(Complex parent, String parentType, String name, ClaimResponse.SubDetailComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "subDetail", name, element, index);
    if (element.hasSequenceLinkIdElement())
        composePositiveInt(t, "ClaimResponse", "sequenceLinkId", element.getSequenceLinkIdElement(), -1);
    for (int i = 0; i < element.getNoteNumber().size(); i++) composePositiveInt(t, "ClaimResponse", "noteNumber", element.getNoteNumber().get(i), i);
    for (int i = 0; i < element.getAdjudication().size(); i++) composeClaimResponseAdjudicationComponent(t, "ClaimResponse", "adjudication", element.getAdjudication().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 34 with ClaimResponse

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

the class RdfParser method composeClaimResponseAddedItemComponent.

protected void composeClaimResponseAddedItemComponent(Complex parent, String parentType, String name, ClaimResponse.AddedItemComponent element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeBackboneElement(t, "addItem", name, element, index);
    for (int i = 0; i < element.getSequenceLinkId().size(); i++) composePositiveInt(t, "ClaimResponse", "sequenceLinkId", element.getSequenceLinkId().get(i), i);
    if (element.hasRevenue())
        composeCodeableConcept(t, "ClaimResponse", "revenue", element.getRevenue(), -1);
    if (element.hasCategory())
        composeCodeableConcept(t, "ClaimResponse", "category", element.getCategory(), -1);
    if (element.hasService())
        composeCodeableConcept(t, "ClaimResponse", "service", element.getService(), -1);
    for (int i = 0; i < element.getModifier().size(); i++) composeCodeableConcept(t, "ClaimResponse", "modifier", element.getModifier().get(i), i);
    if (element.hasFee())
        composeMoney(t, "ClaimResponse", "fee", element.getFee(), -1);
    for (int i = 0; i < element.getNoteNumber().size(); i++) composePositiveInt(t, "ClaimResponse", "noteNumber", element.getNoteNumber().get(i), i);
    for (int i = 0; i < element.getAdjudication().size(); i++) composeClaimResponseAdjudicationComponent(t, "ClaimResponse", "adjudication", element.getAdjudication().get(i), i);
    for (int i = 0; i < element.getDetail().size(); i++) composeClaimResponseAddedItemsDetailComponent(t, "ClaimResponse", "detail", element.getDetail().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Example 35 with ClaimResponse

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

the class RdfParser method composeClaimResponse.

protected void composeClaimResponse(Complex parent, String parentType, String name, ClaimResponse element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "ClaimResponse", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "ClaimResponse", "identifier", element.getIdentifier().get(i), i);
    if (element.hasStatusElement())
        composeEnum(t, "ClaimResponse", "status", element.getStatusElement(), -1);
    if (element.hasPatient())
        composeReference(t, "ClaimResponse", "patient", element.getPatient(), -1);
    if (element.hasCreatedElement())
        composeDateTime(t, "ClaimResponse", "created", element.getCreatedElement(), -1);
    if (element.hasInsurer())
        composeReference(t, "ClaimResponse", "insurer", element.getInsurer(), -1);
    if (element.hasRequestProvider())
        composeReference(t, "ClaimResponse", "requestProvider", element.getRequestProvider(), -1);
    if (element.hasRequestOrganization())
        composeReference(t, "ClaimResponse", "requestOrganization", element.getRequestOrganization(), -1);
    if (element.hasRequest())
        composeReference(t, "ClaimResponse", "request", element.getRequest(), -1);
    if (element.hasOutcome())
        composeCodeableConcept(t, "ClaimResponse", "outcome", element.getOutcome(), -1);
    if (element.hasDispositionElement())
        composeString(t, "ClaimResponse", "disposition", element.getDispositionElement(), -1);
    if (element.hasPayeeType())
        composeCodeableConcept(t, "ClaimResponse", "payeeType", element.getPayeeType(), -1);
    for (int i = 0; i < element.getItem().size(); i++) composeClaimResponseItemComponent(t, "ClaimResponse", "item", element.getItem().get(i), i);
    for (int i = 0; i < element.getAddItem().size(); i++) composeClaimResponseAddedItemComponent(t, "ClaimResponse", "addItem", element.getAddItem().get(i), i);
    for (int i = 0; i < element.getError().size(); i++) composeClaimResponseErrorComponent(t, "ClaimResponse", "error", element.getError().get(i), i);
    if (element.hasTotalCost())
        composeMoney(t, "ClaimResponse", "totalCost", element.getTotalCost(), -1);
    if (element.hasUnallocDeductable())
        composeMoney(t, "ClaimResponse", "unallocDeductable", element.getUnallocDeductable(), -1);
    if (element.hasTotalBenefit())
        composeMoney(t, "ClaimResponse", "totalBenefit", element.getTotalBenefit(), -1);
    if (element.hasPayment())
        composeClaimResponsePaymentComponent(t, "ClaimResponse", "payment", element.getPayment(), -1);
    if (element.hasReserved())
        composeCoding(t, "ClaimResponse", "reserved", element.getReserved(), -1);
    if (element.hasForm())
        composeCodeableConcept(t, "ClaimResponse", "form", element.getForm(), -1);
    for (int i = 0; i < element.getProcessNote().size(); i++) composeClaimResponseNoteComponent(t, "ClaimResponse", "processNote", element.getProcessNote().get(i), i);
    for (int i = 0; i < element.getCommunicationRequest().size(); i++) composeReference(t, "ClaimResponse", "communicationRequest", element.getCommunicationRequest().get(i), i);
    for (int i = 0; i < element.getInsurance().size(); i++) composeClaimResponseInsuranceComponent(t, "ClaimResponse", "insurance", element.getInsurance().get(i), i);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Aggregations

Complex (org.hl7.fhir.dstu2016may.formats.RdfGenerator.Complex)16 Complex (org.hl7.fhir.r4.utils.formats.Turtle.Complex)15 Complex (org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)13 ClaimResponse (org.hl7.fhir.r4.model.ClaimResponse)4 Test (org.junit.jupiter.api.Test)3 IGenericClient (ca.uhn.fhir.rest.client.api.IGenericClient)2 Date (java.util.Date)2 Identifier (org.hl7.fhir.r4.model.Identifier)2 Meta (org.hl7.fhir.r4.model.Meta)2 Reference (org.hl7.fhir.r4.model.Reference)2 FhirResource (org.hl7.davinci.endpoint.database.FhirResource)1 Turtle (org.hl7.fhir.dstu3.utils.formats.Turtle)1 IBaseResource (org.hl7.fhir.instance.model.api.IBaseResource)1