Flexpa
Talk to us

Guides

  • Overview
  • Quickstart
  • Patient accessNew
  • Test mode
  • Searching Coverage
  • Viewing medications
  • Explanation of Benefits

SDK

  • Link
  • API

FHIR Resources New

  • CareTeam
  • Condition
  • Coverage
  • Encounter
  • ExplanationOfBenefit
  • MedicationRequest
  • Observation
  • Procedure

Reference

  • Endpoints

About

  • ChangelogNew
  • FAQ
  • Join us
  • Brand
  • Privacy policy
  • Terms of service

Searching Coverage

Coverage is a FHIR Resource that describes the financial terms of a specific health insurance plan for a specific person.

We will use Flexpa Link and Flexpa API to search for Coverage belonging to a specific patient. Accessing a patient's coverage can aid in workflows such as:

  • Recommending services based on costs, co-pays, or features of a specific health plan
  • Validating that a patient has an active health plan
  • Retrieving information commonly found on an health insurance card such as Member ID and Group ID

Getting started

Coverage is directly represented in patient access APIs as a FHIR Resource. We can make HTTP requests to Flexpa API to search for and find coverage belonging to a particular patient. Patients authorize your app to access their Coverage via Flexpa Link. At the end of the Flexpa Link flow you'll have:

  • An access token that is required for all requests to Flexpa API

Searching for a patient's Coverage

Flexpa API can be used to search for Coverage after a patient has authorized access via Flexpa Link. Searches on Flexpa API follow the RESTful style of the FHIR specification by submitting a GET HTTP request to the base URL of the resource. To search for coverage belonging to a particular patient, you can use an API wildcard parameter: $PATIENT_ID. Flexpa swaps this for a context-based value before we route it to the destination.

You can retrieve the patient id by either:

  • Using the $PATIENT_ID wildcard parameter and inspecting the response
    • Example: GET /Patient/$PATIENT_ID
  • Introspecting the access token
ACCESS_TOKEN=... # replace with the access token you obtained at the end of the Flexpa Link flow

curl "https://api.flexpa.com/fhir/Coverage?patient=$PATIENT_ID" \
  -H "Authorization: $ACCESS_TOKEN"

Response type

The return type of querying the coverage endpoint is a searchset bundle. Technically, a searchset bundle may contain different types of resources (e.g., Coverage, Patient, etc) in the entry field. When iterating through entry it is best practice to inspect each resourceType field to ensure you are dealing with the expected resource.

Sample response

Notable fields

A coverage response contains many fields. You can get an exhaustive list and explanation of each field here. Some notable fields:

  • entry - A collection of coverages (see response type on best practice of checking resourceType)
  • entry[i].status - A string representing the status of the coverage, can have a value of "active", "cancelled", "draft", "entered-in-error"
  • entry[i].type - An object describing the coverage category (e.g., drug policy, dental policy, automobile injury policy, etc)
  • entry[i].period - A period datatype describing the coverage's start and end date
  • entry[i].identifier - (optional) The primary identifier of the insured and the coverage. May contain the insured's member id, group id, etc.

Next steps

Flexpa Link

Flexpa Link is a client-side component to help your users link health plan data sources
Build with Flexpa Link →

API Reference

Use Flexpa API as a unified API to access Explanation of Benefits and more
Build with Flexpa API →
TwitterGitHubDiscord

© 2022 Flexpa. All rights reserved.

On this page
  • Getting started
  • Searching for a patient's Coverage
  • Response type
  • Sample response
  • Notable fields
  • Next steps