Benefits Eligibility Verification System API - Implementation Template
Developer guide
Availity Dev Guide
The Availity application uses the following DataWeave modules to be used in Coverage search
Module | Description |
---|---|
CoverageFHIRTools | AvailityFHIRTools DataWeave library contains functions used for Coverage search in Availity |
CoverageFHIRTools
AvailityFHIRTools DataWeave library contains functions used for Coverage search
in Availity
Source:
.src/main/resources/dwl/coverage/CoverageFHIRTools.dwl
Functions
fun createCoverageEligibilityResponse (coverageResp, activeCoveragesList, amountTypes, networkTypes)
Create CoverageEligibilityResponse from Availity Coverage Response
param
coverageResp
response from Availity
paramactiveCoveragesList
a list of Status Codes for Active Coverages
paramamountTypes
is a list of amountTypes being mapped
paramnetworkTypes
is the types of networks being mapped
return FHIR R4 CoverageEligibilityResponse
fun createFHIRR4Benefit (benefit, amtDescription)
Create benefit array using payload.plans.amounts and amountTypes, and networkTypes
param
benefit
is array of amounts grouped by amountType
paramamtDescription
is the type of amount
return Return FHIR R4 formatted benefit array
fun getAmountsArray (benefitArray, amountTypes)
Filter amounts from Availity to include only amounts that are present
param
benefitArray
is the input from plans.amounts
paramamountTypes
return Filtered list of non empty amounts matching amountTypes
fun benTypeCrossRef (benefitType)
Cross Reference benefits types between Availity and FHIR R4
param
benefitType
is the Availity benefit type
return Benefit Type and Name for FHIR R4 using Availity benefit type
fun termCodeLookup (termCode)
Cross Reference term types between Availity and FHIR R4
param
termCode
is the Availity term code
return FHIR R4 term code using Availity term code
fun bnftPayableLookup (bnftCode, bnftUnit)
Cross Reference benefit amount type between Availity and FHIR R4
param
benifitType
is the Availity benefitType (coPayment,coInsurance,deductible
return FHIR R4 term code using Availity term code
fun coverageStatus (coverageRespPayload, activeCoveragesList)
Function to lookup plan status from activeCoverageList and set coverage status at root level
param
coverageRespPayload
is the Availity Coverage Response
paramactiveCoveragesList
is the list of Availity Active Coverage statuses
return A boolean indicating coverage status
fun outcomeLookup (availityStatusCode)
Cross Reference function to convert Availity Coverage Status Code at root level to FHIR outcomes
param
availityStatusCode
is the status code from Availity
return FHIR R4 Outcome looked up from Availity Coverage Status code