Search in sources :

Example 11 with BenefitCategory

use of org.hl7.fhir.dstu3.model.codesystems.BenefitCategory in project org.hl7.fhir.core by hapifhir.

the class RdfParser method composeEligibilityRequest.

protected void composeEligibilityRequest(Complex parent, String parentType, String name, EligibilityRequest element, int index) {
    if (element == null)
        return;
    Complex t;
    if (Utilities.noString(parentType))
        t = parent;
    else {
        t = parent.predicate("fhir:" + parentType + '.' + name);
    }
    composeDomainResource(t, "EligibilityRequest", name, element, index);
    for (int i = 0; i < element.getIdentifier().size(); i++) composeIdentifier(t, "EligibilityRequest", "identifier", element.getIdentifier().get(i), i);
    if (element.hasStatusElement())
        composeEnum(t, "EligibilityRequest", "status", element.getStatusElement(), -1);
    if (element.hasPriority())
        composeCodeableConcept(t, "EligibilityRequest", "priority", element.getPriority(), -1);
    if (element.hasPatient())
        composeReference(t, "EligibilityRequest", "patient", element.getPatient(), -1);
    if (element.hasServiced())
        composeType(t, "EligibilityRequest", "serviced", element.getServiced(), -1);
    if (element.hasCreatedElement())
        composeDateTime(t, "EligibilityRequest", "created", element.getCreatedElement(), -1);
    if (element.hasEnterer())
        composeReference(t, "EligibilityRequest", "enterer", element.getEnterer(), -1);
    if (element.hasProvider())
        composeReference(t, "EligibilityRequest", "provider", element.getProvider(), -1);
    if (element.hasOrganization())
        composeReference(t, "EligibilityRequest", "organization", element.getOrganization(), -1);
    if (element.hasInsurer())
        composeReference(t, "EligibilityRequest", "insurer", element.getInsurer(), -1);
    if (element.hasFacility())
        composeReference(t, "EligibilityRequest", "facility", element.getFacility(), -1);
    if (element.hasCoverage())
        composeReference(t, "EligibilityRequest", "coverage", element.getCoverage(), -1);
    if (element.hasBusinessArrangementElement())
        composeString(t, "EligibilityRequest", "businessArrangement", element.getBusinessArrangementElement(), -1);
    if (element.hasBenefitCategory())
        composeCodeableConcept(t, "EligibilityRequest", "benefitCategory", element.getBenefitCategory(), -1);
    if (element.hasBenefitSubCategory())
        composeCodeableConcept(t, "EligibilityRequest", "benefitSubCategory", element.getBenefitSubCategory(), -1);
}
Also used : Complex(org.hl7.fhir.dstu3.utils.formats.Turtle.Complex)

Aggregations

CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)5 Coding (org.hl7.fhir.r4.model.Coding)5 Test (org.junit.jupiter.api.Test)4 TemporalPrecisionEnum (ca.uhn.fhir.model.api.TemporalPrecisionEnum)3 CcwCodebookVariable (gov.cms.bfd.model.codebook.data.CcwCodebookVariable)3 CcwCodebookInterface (gov.cms.bfd.model.codebook.model.CcwCodebookInterface)3 CarrierClaim (gov.cms.bfd.model.rif.CarrierClaim)3 CCWUtils (gov.cms.bfd.server.war.commons.CCWUtils)3 IdDt (ca.uhn.fhir.model.primitive.IdDt)2 DataFormatException (ca.uhn.fhir.parser.DataFormatException)2 Constants (ca.uhn.fhir.rest.api.Constants)2 RequestDetails (ca.uhn.fhir.rest.api.server.RequestDetails)2 Strings (com.google.common.base.Strings)2 CcwCodebookMissingVariable (gov.cms.bfd.model.codebook.data.CcwCodebookMissingVariable)2 Value (gov.cms.bfd.model.codebook.model.Value)2 Beneficiary (gov.cms.bfd.model.rif.Beneficiary)2 CarrierClaimColumn (gov.cms.bfd.model.rif.CarrierClaimColumn)2 CarrierClaimLine (gov.cms.bfd.model.rif.CarrierClaimLine)2 DMEClaim (gov.cms.bfd.model.rif.DMEClaim)2 DMEClaimColumn (gov.cms.bfd.model.rif.DMEClaimColumn)2