use of org.hl7.fhir.r4.model.ClaimResponse in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponsePaymentComponent.
protected void composeClaimResponsePaymentComponent(Complex parent, String parentType, String name, ClaimResponse.PaymentComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "payment", name, element, index);
if (element.hasType())
composeCodeableConcept(t, "ClaimResponse", "type", element.getType(), -1);
if (element.hasAdjustment())
composeMoney(t, "ClaimResponse", "adjustment", element.getAdjustment(), -1);
if (element.hasAdjustmentReason())
composeCodeableConcept(t, "ClaimResponse", "adjustmentReason", element.getAdjustmentReason(), -1);
if (element.hasDateElement())
composeDate(t, "ClaimResponse", "date", element.getDateElement(), -1);
if (element.hasAmount())
composeMoney(t, "ClaimResponse", "amount", element.getAmount(), -1);
if (element.hasIdentifier())
composeIdentifier(t, "ClaimResponse", "identifier", element.getIdentifier(), -1);
}
use of org.hl7.fhir.r4.model.ClaimResponse in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseAddedItemDetailComponent.
protected void composeClaimResponseAddedItemDetailComponent(Complex parent, String parentType, String name, ClaimResponse.AddedItemDetailComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "detail", name, element, index);
if (element.hasProductOrService())
composeCodeableConcept(t, "ClaimResponse", "productOrService", element.getProductOrService(), -1);
for (int i = 0; i < element.getModifier().size(); i++) composeCodeableConcept(t, "ClaimResponse", "modifier", element.getModifier().get(i), i);
if (element.hasQuantity())
composeQuantity(t, "ClaimResponse", "quantity", element.getQuantity(), -1);
if (element.hasUnitPrice())
composeMoney(t, "ClaimResponse", "unitPrice", element.getUnitPrice(), -1);
if (element.hasFactorElement())
composeDecimal(t, "ClaimResponse", "factor", element.getFactorElement(), -1);
if (element.hasNet())
composeMoney(t, "ClaimResponse", "net", element.getNet(), -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.getSubDetail().size(); i++) composeClaimResponseAddedItemSubDetailComponent(t, "ClaimResponse", "subDetail", element.getSubDetail().get(i), i);
}
use of org.hl7.fhir.r4.model.ClaimResponse in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseTotalComponent.
protected void composeClaimResponseTotalComponent(Complex parent, String parentType, String name, ClaimResponse.TotalComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "total", name, element, index);
if (element.hasCategory())
composeCodeableConcept(t, "ClaimResponse", "category", element.getCategory(), -1);
if (element.hasAmount())
composeMoney(t, "ClaimResponse", "amount", element.getAmount(), -1);
}
use of org.hl7.fhir.r4.model.ClaimResponse in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseErrorComponent.
protected void composeClaimResponseErrorComponent(Complex parent, String parentType, String name, ClaimResponse.ErrorComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "error", name, element, index);
if (element.hasItemSequenceElement())
composePositiveInt(t, "ClaimResponse", "itemSequence", element.getItemSequenceElement(), -1);
if (element.hasDetailSequenceElement())
composePositiveInt(t, "ClaimResponse", "detailSequence", element.getDetailSequenceElement(), -1);
if (element.hasSubDetailSequenceElement())
composePositiveInt(t, "ClaimResponse", "subDetailSequence", element.getSubDetailSequenceElement(), -1);
if (element.hasCode())
composeCodeableConcept(t, "ClaimResponse", "code", element.getCode(), -1);
}
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.getItemSequence().size(); i++) composePositiveInt(t, "ClaimResponse", "itemSequence", element.getItemSequence().get(i), i);
for (int i = 0; i < element.getDetailSequence().size(); i++) composePositiveInt(t, "ClaimResponse", "detailSequence", element.getDetailSequence().get(i), i);
for (int i = 0; i < element.getSubdetailSequence().size(); i++) composePositiveInt(t, "ClaimResponse", "subdetailSequence", element.getSubdetailSequence().get(i), i);
for (int i = 0; i < element.getProvider().size(); i++) composeReference(t, "ClaimResponse", "provider", element.getProvider().get(i), i);
if (element.hasProductOrService())
composeCodeableConcept(t, "ClaimResponse", "productOrService", element.getProductOrService(), -1);
for (int i = 0; i < element.getModifier().size(); i++) composeCodeableConcept(t, "ClaimResponse", "modifier", element.getModifier().get(i), i);
for (int i = 0; i < element.getProgramCode().size(); i++) composeCodeableConcept(t, "ClaimResponse", "programCode", element.getProgramCode().get(i), i);
if (element.hasServiced())
composeType(t, "ClaimResponse", "serviced", element.getServiced(), -1);
if (element.hasLocation())
composeType(t, "ClaimResponse", "location", element.getLocation(), -1);
if (element.hasQuantity())
composeQuantity(t, "ClaimResponse", "quantity", element.getQuantity(), -1);
if (element.hasUnitPrice())
composeMoney(t, "ClaimResponse", "unitPrice", element.getUnitPrice(), -1);
if (element.hasFactorElement())
composeDecimal(t, "ClaimResponse", "factor", element.getFactorElement(), -1);
if (element.hasNet())
composeMoney(t, "ClaimResponse", "net", element.getNet(), -1);
if (element.hasBodySite())
composeCodeableConcept(t, "ClaimResponse", "bodySite", element.getBodySite(), -1);
for (int i = 0; i < element.getSubSite().size(); i++) composeCodeableConcept(t, "ClaimResponse", "subSite", element.getSubSite().get(i), i);
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++) composeClaimResponseAddedItemDetailComponent(t, "ClaimResponse", "detail", element.getDetail().get(i), i);
}
Aggregations