haau3 FHIR Implementation Guide (HFIG)
1.0.0 - ci-build United States of America flag

haau3 FHIR Implementation Guide (HFIG) - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Pharmacy Benefits

Pharmacy Benefits is the pharmacy benefit check of the CARIN Consumer Real-Time Pharmacy Benefit Check guide (STU2 ballot, 2.0.0-ballot), served at https://api.haau3.com/v1/fhir/r4/$process-message. It answers what a medication would cost, in real time, from the sources it connects to. It is one of haau3's two Benefits services; the other, Medical Benefits, answers what a Medicare Advantage or Marketplace plan covers, from CMS's plan files.

Try it in the Sandbox. A member's request can be tried with no key and no agreement at https://sandbox.haau3.com/v1/fhir/r4/$process-message, where Example Health Plan, a test insurer, answers for its test members. Send test members only, never a real person. The Sandbox and Example Health Plan list them and what each one gets.

One operation, two messages

A caller POSTs a FHIR message Bundle to $process-message, as the CARIN guide specifies, and gets the answer in the same exchange. Nothing a request carries is stored: each check is a point-in-time exchange.

  • Without patient details (event rtpbc-request-non-phi): a product, a quantity, and a pharmacy, up to three ZIP codes (the preferredPharmacyPostalCode extension), or both. The patient and the coverage are masked with data-absent-reason. This message is answered by the cash-price sources haau3 connects to, each named in the notes on its prices. Example request; its answer with prices, for a caller no price source is yet available to, and when no price source has a price.
  • For a member (event rtpbc-request): the member's Patient and Coverage, the prescription and its prescriber, a pharmacy, a product and a quantity. This message is answered by the member's insurer or pharmacy benefit manager, found by the coverage's payer, so the Coverage carries payor.identifier. It carries patient data, so send it only under an executed agreement, or as test data marked as such: the request and every resource in it labelled with meta.security HTEST from http://terminology.hl7.org/CodeSystem/v3-ActReason, as the example is. Example request, its answer.

The product is an NDC (11 digits, no dashes) or an RxNorm code. A ZIP code is five digits, or ZIP+4.

What comes back

A message Bundle whose MessageHeader answers the request's MessageHeader (response.identifier is its id), with one ClaimResponse that carries either prices and coverage in item, or the reason there are none in error, never both, as the CARIN guide requires. The answer to a member's request echoes the request's Patient as it was sent.

An answer with prices carries them this way:

  • item is the lowest price at a pharmacy near the ZIP codes, or at the pharmacy the request named. When only mail order has a price for a request naming ZIP codes, item is the mail-order price.
  • Every price returned, the one in item included, is also an addItem with isAlternative set, naming its pharmacy in provider by an Organization in the Bundle, sorted from the lowest total. A mail-order price names no pharmacy.
  • Each addItem names its price source in programCode, from Pharmacy Benefits Price Source: Cost Plus Drugs mail order, the Team Cuban Card from Cost Plus Drugs, or ClixRx.
  • Each price's adjudications are the drug's price (cash-price) when the source gives it apart from its fees, each fee as an other-cost with its name in reason, and the total.
  • processNote says where each price came from and when it was read, how it is paid (each retail price is paid with a free discount card the note names), and why a source's prices are missing. Each price is an estimate; the pharmacy confirms the price.

When no connected source can answer, the ClaimResponse's error carries a code from Pharmacy Benefits Processing Code: no-responder-for-coverage when no insurer this service connects to answers for the coverage's payer, no-price-source when every price source asked answered and none returned a price, and source-not-available-to-caller when the connected price sources are not yet available to the caller's organization. None is a statement about whether a medication is covered or what it costs. An NCPDP reject code in an answer comes from the source that sent it.

A request the service cannot read at all, such as one missing an element the CARIN profiles require, is answered with an OperationOutcome and HTTP 400, naming the element. When no price was returned and a source asked did not answer, the answer is an OperationOutcome and HTTP 503 with Retry-After, coded source-unavailable: a later request may be answered.

Conformance

The examples here claim the CARIN ballot's profiles in meta.profile. This guide does not depend on the ballot, which builds on a newer US Core than this guide's, so the examples are checked against hl7.fhir.us.carin-rtpbc#2.0.0-ballot with the HL7 validator rather than by this guide's build.