Health Cloud Financial System API - Implementation Template

(0 reviews)

Developer guide

The Financial application uses the following DataWeave modules to map between HealthCloud and FHIR formats.

ModuleDescription
CoverageEligibilityResponseLibThis module defines functions needed to convert a FHIR CoverageEligibilityResponse resource into it's representation within Health Cloud.
UtilA library with needed dataweave utility functions.

CoverageEligibilityResponseLib

This module defines functions needed to convert a
FHIR CoverageEligibilityResponse resource into it's representation
within Health Cloud.

Functions

fun getResultIds ( res)

param res is a Salesforce query result.
return An array with a list of Ids found.

This function takes the results of a Salesforce query and returns a list of IDs.

fun getMemberPlan ( fhirObj)

param fhirObj is a FHIR CoverageEligibilityResponse object.
return A HealthCloud MemberPlan object.

Converts the provided CoverageEligibilityResponse FHIR object to the HealthCloud MemberPlan object.

fun getCoverageBenefit ( insurance, memberPlanId)

param insurance is a FHIR CoverageEligibilityResponse insurance object.
param memberPlanId is a string with the MemberPlan id.
return A list of HealthCloud CoverageBenefit objects.

Converts the provided CoverageEligibilityResponse insurance object to a list of HealthCloud CoverageBenefit objects.

fun getCoverageBenefitImpl ( insurance, memberPlanId)

param insurance is a FHIR CoverageEligibilityResponse insurance object.
param memberPlanId is a string with the MemberPlan id.
return A list of HealthCloud CoverageBenefit objects.

Converts the provided CoverageEligibilityResponse insurance object to a list of HealthCloud CoverageBenefit objects. This is the implementation function that's called by getCoverageBenefit. This implementation requires Salesforce version 52.

fun allowedCategory ( item)

param item is a CoverageEligibilityResponse item object.
return A boolean with true if supported and false if not.

Checks to see if the provided item is one of the 3 that are supported.

fun getCoverage ( memberPlan, coverageBenefits)

param memberPlan is a HC MemberPlan object.
param coverageBenefits is a list of HC CoverageBenefit objects.
return A FHIR formatted CoverageEligibilityResponse object.

Converts the provided HC MemberPlan and any CoverageBenefit objects into a FHIR CoverageEligibilityResponse object.

fun getCategory ( CoverageType)

param CoverageType is a String with 'Medical', 'Dental', or 'Vision'.
return The FHIR code for the category.

Gets the category code with the provided SF CoverageType.

fun getLinkSelf ( attr:Object)

param attr is an object with the attributes.
return A string with the self link.

Gets the URL to the current web resource.

fun getEntryUrl ( item:Object, attr:Object)

param item is an object with the item that's being returned.
param attr is an object with the attributes.
return A string with the entry URL.

Gets the URL for the entry provided.

Util

A library with needed dataweave utility functions.

Functions

fun clean ( obj:Object)

param obj is an Object to clean.
return A cleaned object.

Cleans the provided object of blank strings, null values, empty objects, and empty arrays.

fun clean ( arr:Array)

param arr is an Array to clean.
return A cleaned Array.

Cleans the provided array of blank strings, null values, empty objects, and empty arrays.

fun removeNull ( arr:Array)

param arr is an array.
return An array with null items removed.

Removes all null items from an array.

fun removeNull ( obj:Object)

param obj is an object.
return An object with null values removed.

Removes all null values from an object.

fun matchReferenceReference ( resource:String, ref:String)

param resource is a String with the resource to match. (ie Location)
param ref is the reference String to match in.
return The matched ID or null if not found.

Matches a standard reference and returns the ID portion.

fun matchReferenceUrl ( resource:String, ref:String)

param resource is a String with the resource to match. (ie Location)
param ref is the reference String to match in.
return The matched ID or null if not found.

Matches a URL reference and returns the ID portion.

fun matchReference ( resource:String, ref:String)

param resource is a String with the resource to match. (ie Location)
param ref is the reference String to match in.
return The matched ID or null if not found.

Matches any reference and returns the ID portion.

fun hasReference ( resource:String, ref:String)

param resource is a String with the resource to match. (ie Location)
param ref is the reference String to match in.
return True if found and false if not.

Checks to see if the reference exists in the provide ref String with the provided resource String name.

fun getReferenceId ( fhirObj, objName:String, refName:String)

param fhirObj is a FHIR object to search.
param refName is a String with the reference name to match on. (Location, Practitioner ...)
return An array of reference Ids.

This function a FHIR object and gets the reference value for the provided refName.

fun getReferenceListId ( fhirObj, objName:String, refName:String)

param fhirObj is a FHIR object to search.
param refName is a String with the reference name to match on. (Location, Practitioner ...)
return An array of reference Ids.

This function a FHIR object and gets the reference value for the provided refName.


Reviews

TypeTemplate
OrganizationMulesoft
Published by
MuleSoft Organization
Published onDec 14, 2022
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.2