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.hasType())
composeCodeableConcept(t, "ClaimResponse", "type", element.getType(), -1);
if (element.hasSubType())
composeCodeableConcept(t, "ClaimResponse", "subType", element.getSubType(), -1);
if (element.hasUseElement())
composeEnum(t, "ClaimResponse", "use", element.getUseElement(), -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.hasRequestor())
composeReference(t, "ClaimResponse", "requestor", element.getRequestor(), -1);
if (element.hasRequest())
composeReference(t, "ClaimResponse", "request", element.getRequest(), -1);
if (element.hasOutcomeElement())
composeEnum(t, "ClaimResponse", "outcome", element.getOutcomeElement(), -1);
if (element.hasDispositionElement())
composeString(t, "ClaimResponse", "disposition", element.getDispositionElement(), -1);
if (element.hasPreAuthRefElement())
composeString(t, "ClaimResponse", "preAuthRef", element.getPreAuthRefElement(), -1);
if (element.hasPreAuthPeriod())
composePeriod(t, "ClaimResponse", "preAuthPeriod", element.getPreAuthPeriod(), -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.getAdjudication().size(); i++) composeClaimResponseAdjudicationComponent(t, "ClaimResponse", "adjudication", element.getAdjudication().get(i), i);
for (int i = 0; i < element.getTotal().size(); i++) composeClaimResponseTotalComponent(t, "ClaimResponse", "total", element.getTotal().get(i), i);
if (element.hasPayment())
composeClaimResponsePaymentComponent(t, "ClaimResponse", "payment", element.getPayment(), -1);
if (element.hasFundsReserve())
composeCodeableConcept(t, "ClaimResponse", "fundsReserve", element.getFundsReserve(), -1);
if (element.hasFormCode())
composeCodeableConcept(t, "ClaimResponse", "formCode", element.getFormCode(), -1);
if (element.hasForm())
composeAttachment(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);
for (int i = 0; i < element.getError().size(); i++) composeClaimResponseErrorComponent(t, "ClaimResponse", "error", element.getError().get(i), i);
}
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.hasItemSequenceElement())
composePositiveInt(t, "ClaimResponse", "itemSequence", element.getItemSequenceElement(), -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);
}
use of org.hl7.fhir.r4.model.ClaimResponse in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseAddedItemDetailAdjudicationComponent.
protected void composeClaimResponseAddedItemDetailAdjudicationComponent(Complex parent, String parentType, String name, ClaimResponse.AddedItemDetailAdjudicationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "adjudication", name, element, index);
if (element.hasCategory())
composeCoding(t, "ClaimResponse", "category", element.getCategory(), -1);
if (element.hasReason())
composeCoding(t, "ClaimResponse", "reason", element.getReason(), -1);
if (element.hasAmount())
composeQuantity(t, "ClaimResponse", "amount", element.getAmount(), -1);
if (element.hasValueElement())
composeDecimal(t, "ClaimResponse", "value", element.getValueElement(), -1);
}
use of org.hl7.fhir.r4.model.ClaimResponse in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeClaimResponseErrorsComponent.
protected void composeClaimResponseErrorsComponent(Complex parent, String parentType, String name, ClaimResponse.ErrorsComponent 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.hasSequenceLinkIdElement())
composePositiveInt(t, "ClaimResponse", "sequenceLinkId", element.getSequenceLinkIdElement(), -1);
if (element.hasDetailSequenceLinkIdElement())
composePositiveInt(t, "ClaimResponse", "detailSequenceLinkId", element.getDetailSequenceLinkIdElement(), -1);
if (element.hasSubdetailSequenceLinkIdElement())
composePositiveInt(t, "ClaimResponse", "subdetailSequenceLinkId", element.getSubdetailSequenceLinkIdElement(), -1);
if (element.hasCode())
composeCoding(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 composeClaimResponseSubdetailAdjudicationComponent.
protected void composeClaimResponseSubdetailAdjudicationComponent(Complex parent, String parentType, String name, ClaimResponse.SubdetailAdjudicationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "adjudication", name, element, index);
if (element.hasCategory())
composeCoding(t, "ClaimResponse", "category", element.getCategory(), -1);
if (element.hasReason())
composeCoding(t, "ClaimResponse", "reason", element.getReason(), -1);
if (element.hasAmount())
composeQuantity(t, "ClaimResponse", "amount", element.getAmount(), -1);
if (element.hasValueElement())
composeDecimal(t, "ClaimResponse", "value", element.getValueElement(), -1);
}
Aggregations