curl -X POST "https://api.haau3.com/v1/fhir/r4/\$process-message" \
-H "Authorization: Bearer $HAAU3_API_KEY" \
-H "Content-Type: application/fhir+json" \
-d '{
"resourceType": "Bundle",
"id": "pharmacy-benefits-request-non-phi",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-request-bundle-non-phi|2.0.0-ballot"
]
},
"entry": [
{
"fullUrl": "https://app.example.test/fhir/MessageHeader/non-phi-request",
"resource": {
"resourceType": "MessageHeader",
"id": "non-phi-request",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-request-messageheader-non-phi|2.0.0-ballot"
]
},
"source": { "name": "Example app", "endpoint": "https://app.example.test" },
"focus": [{ "reference": "https://app.example.test/fhir/Claim/non-phi-claim" }],
"eventCoding": {
"code": "rtpbc-request-non-phi",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-event-type",
"display": "RTPBC Non-PHI Request"
},
"definition": "http://hl7.org/fhir/us/carin-rtpbc/MessageDefinition/rtpbc-request-non-phi"
}
},
{
"fullUrl": "https://app.example.test/fhir/Claim/non-phi-claim",
"resource": {
"resourceType": "Claim",
"id": "non-phi-claim",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-request-claim-non-phi|2.0.0-ballot"
]
},
"identifier": [{ "value": "price-check-0001" }],
"patient": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"provider": {
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-preferredPharmacyPostalCode",
"valueString": "33131"
}
]
},
"insurance": [
{
"coverage": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"sequence": 1,
"focal": false
}
],
"item": [
{
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
],
"text": "lisinopril 5 mg tablet"
},
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"sequence": 1
}
],
"status": "active",
"type": {
"coding": [
{
"code": "pharmacy",
"system": "http://terminology.hl7.org/CodeSystem/claim-type",
"display": "Pharmacy"
}
]
},
"use": "predetermination",
"created": "2026-10-20T14:00:00Z",
"priority": {
"coding": [
{
"code": "normal",
"system": "http://terminology.hl7.org/CodeSystem/processpriority",
"display": "Normal"
}
]
}
}
}
],
"type": "message",
"timestamp": "2026-10-20T14:00:00Z"
}'import { readFile } from "node:fs/promises";
import { Haau3, type fhir4 } from "@haau3/sdk";
const haau3 = new Haau3(); // reads HAAU3_API_KEY
// request.json holds a pharmacy benefit check without patient details, as a Bundle.
const body: fhir4.Bundle = JSON.parse(await readFile("request.json", "utf8"));
const bundle = await haau3.processMessage(body);
console.log(bundle.entry?.length ?? 0);
import json
from haau3 import Haau3, fhir
client = Haau3() # reads HAAU3_API_KEY
# request.json holds a pharmacy benefit check without patient details, as a Bundle.
with open("request.json") as file:
body: fhir.Bundle = json.load(file)
bundle = client.process_message(body)
print(len(bundle.get("entry", [])))
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
"github.com/haau3/haau3-go"
"github.com/haau3/haau3-go/fhir"
)
func main() {
ctx := context.Background()
client, err := haau3.NewClient() // reads HAAU3_API_KEY
if err != nil {
log.Fatal(err)
}
data, err := os.ReadFile("request.json") // a pharmacy benefit check without patient details
if err != nil {
log.Fatal(err)
}
var body fhir.Bundle
if err := json.Unmarshal(data, &body); err != nil {
log.Fatal(err)
}
bundle, err := client.ProcessMessage(ctx, &body)
if err != nil {
log.Fatal(err)
}
fmt.Println(len(bundle.Entry))
}
{
"resourceType": "Bundle",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-bundle-non-phi|2.0.0-ballot"
]
},
"entry": [
{
"fullUrl": "urn:uuid:558a39f8-4087-4955-afac-76c9857eb785",
"resource": {
"resourceType": "MessageHeader",
"id": "558a39f8-4087-4955-afac-76c9857eb785",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-messageheader-non-phi|2.0.0-ballot"
]
},
"source": {
"name": "haau3 Pharmacy Benefits",
"endpoint": "https://api.haau3.com/v1/fhir/r4"
},
"response": {
"identifier": "non-phi-request",
"code": "ok"
},
"focus": [
{
"reference": "urn:uuid:ee066a10-e861-4d09-bde5-909163793433"
}
],
"eventCoding": {
"code": "rtpbc-response-non-phi",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-event-type",
"display": "RTPBC Non-PHI Response"
},
"definition": "http://hl7.org/fhir/us/carin-rtpbc/MessageDefinition/rtpbc-response-non-phi"
}
},
{
"fullUrl": "urn:uuid:ee066a10-e861-4d09-bde5-909163793433",
"resource": {
"resourceType": "ClaimResponse",
"id": "ee066a10-e861-4d09-bde5-909163793433",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-claimresponse-non-phi|2.0.0-ballot"
]
},
"identifier": [
{
"value": "ee066a10-e861-4d09-bde5-909163793433"
}
],
"patient": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"insurer": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"request": {
"identifier": {
"value": "price-check-0001"
}
},
"item": [
{
"noteNumber": [
1,
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"itemSequence": 1
}
],
"addItem": [
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-mail-order",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "Cost Plus Drugs mail order"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
2
],
"adjudication": [
{
"amount": {
"value": 0.21,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 5,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Shipping"
},
"amount": {
"value": 5.25,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 10.46,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"provider": [
{
"reference": "urn:uuid:5b9b9e3e-da94-48c5-aa09-0f30c45dfab9"
}
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-team-cuban-card",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "The Team Cuban Card from Cost Plus Drugs"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"provider": [
{
"reference": "urn:uuid:deb1747a-a225-423c-b45a-d335f86f245f"
}
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-team-cuban-card",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "The Team Cuban Card from Cost Plus Drugs"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"provider": [
{
"reference": "urn:uuid:0f871261-d9c4-4459-8911-4a309c4da536"
}
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-team-cuban-card",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "The Team Cuban Card from Cost Plus Drugs"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
}
],
"processNote": [
{
"number": 1,
"text": "The lowest price returned at a pharmacy near the ZIP codes searched, at PUBLIX PHARMACY #0581. Every price returned is also listed as an alternative, this one included."
},
{
"number": 2,
"text": "Cost Plus Drugs mail order, from its price list as read at 2026-10-20T16:00:16Z. The price follows Cost Plus Drugs' published unit price for the quantity asked for, with its dispensing fee and standard shipping. Cost Plus Drugs fills the prescription with an equivalent medication it stocks. Order at costplusdrugs.com, with a prescription sent to Cost Plus Drugs. An estimate; the pharmacy confirms the price."
},
{
"number": 3,
"text": "The Team Cuban Card from Cost Plus Drugs, read at 2026-10-20T16:00:16Z for NDC 63304053201. Each price follows Cost Plus Drugs' published unit price for the quantity asked for, with that pharmacy's dispensing fee and the card's admin fee. Pay with the free Team Cuban Card from costplusdrugs.com. An estimate; the pharmacy confirms the price."
}
],
"status": "active",
"type": {
"coding": [
{
"code": "pharmacy",
"system": "http://terminology.hl7.org/CodeSystem/claim-type",
"display": "Pharmacy"
}
]
},
"use": "predetermination",
"created": "2026-10-20T16:00:16Z",
"outcome": "complete",
"disposition": "Cash prices from the price sources this service connects to. Each is an estimate; the pharmacy confirms the price."
}
},
{
"fullUrl": "urn:uuid:5b9b9e3e-da94-48c5-aa09-0f30c45dfab9",
"resource": {
"resourceType": "Organization",
"id": "5b9b9e3e-da94-48c5-aa09-0f30c45dfab9",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-pharmacy-organization|2.0.0-ballot"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1043636558"
}
],
"type": [
{
"coding": [
{
"code": "R",
"system": "http://terminology.hl7.org/CodeSystem/NCPDPPharmacyType",
"display": "Retail"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "(305) 860-7770"
}
],
"address": [
{
"line": [
"120 S.W. 13th Street"
],
"city": "Miami",
"state": "FL",
"postalCode": "33130",
"country": "US"
}
],
"active": true,
"name": "PUBLIX PHARMACY #0581"
}
},
{
"fullUrl": "urn:uuid:deb1747a-a225-423c-b45a-d335f86f245f",
"resource": {
"resourceType": "Organization",
"id": "deb1747a-a225-423c-b45a-d335f86f245f",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-pharmacy-organization|2.0.0-ballot"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1275944951"
}
],
"type": [
{
"coding": [
{
"code": "R",
"system": "http://terminology.hl7.org/CodeSystem/NCPDPPharmacyType",
"display": "Retail"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "(305) 856-9990"
}
],
"address": [
{
"line": [
"311 SW 7th St"
],
"city": "Miami",
"state": "FL",
"postalCode": "33130",
"country": "US"
}
],
"active": true,
"name": "PUBLIX PHARMACY #0054"
}
},
{
"fullUrl": "urn:uuid:0f871261-d9c4-4459-8911-4a309c4da536",
"resource": {
"resourceType": "Organization",
"id": "0f871261-d9c4-4459-8911-4a309c4da536",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-pharmacy-organization|2.0.0-ballot"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1649814211"
}
],
"type": [
{
"coding": [
{
"code": "R",
"system": "http://terminology.hl7.org/CodeSystem/NCPDPPharmacyType",
"display": "Retail"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "(305) 341-9629"
}
],
"address": [
{
"line": [
"601 NW 2nd Avenue"
],
"city": "Miami",
"state": "FL",
"postalCode": "33136",
"country": "US"
}
],
"active": true,
"name": "PUBLIX PHARMACY #1614"
}
}
],
"type": "message",
"timestamp": "2026-10-20T16:00:16Z"
}Check what a medication costs (pharmacy benefit check)
FHIR system-level operation $process-message, as the CARIN Consumer Real-Time Pharmacy Benefit Check (STU2 ballot, 2.0.0-ballot) specifies. Not yet open to customers: while its price sources are being licensed, every request from a customer’s organization, with or without patient details, is refused with 403 forbidden. POST a FHIR Bundle of type message whose first entry is a MessageHeader with one of two events. rtpbc-request-non-phi asks for a medication’s price without patient details: a Claim naming the product (an NDC of 11 digits with no dashes, or an RxNorm code) and the quantity, with the patient and the coverage masked, and a pharmacy, up to three ZIP codes, or both. It is answered by the cash-price sources haau3 connects to, each named in the notes on its prices. rtpbc-request asks what a medication would cost a member under their coverage: the member’s Patient and Coverage, with the payer’s identifier in payor.identifier, the prescription and its prescriber, and a pharmacy. It is answered by the member’s insurer, found by the payer’s Payer ID: a payor.identifier whose type is payerid from http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBIdentifierType. An insurer that answers only with the member’s own authorization is sent the access token from the member’s login with that insurer, in the Payer-Authorization header, for that one request; it is never stored, logged or sent anywhere else. No insurer is connected yet. The answer is a message Bundle whose MessageHeader answers the request’s, with one ClaimResponse that carries either prices and coverage in item or the reason there are none in error, and for a member’s request the request’s Patient as it was sent. With prices, item is the lowest price at a pharmacy near the ZIP codes or at the pharmacy named, every price is also an addItem alternative naming its pharmacy by an Organization in the Bundle and its price source in programCode, from https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source, and processNote says where each price came from, when, and which free discount card pays it. Each price repeats the request’s product coding, which CARIN requires to carry a display: an RxNorm code sent without one is answered with the display haau3’s RxNorm release gives it, and an NDC needs its display sent with it. A check no connected source can answer carries no-responder-for-coverage, no-price-source or source-not-available-to-caller from https://haau3.com/fhir/CodeSystem/pharmacy-benefits-processing-code, and a member’s request to an insurer that needs the member’s authorization carries payer-authorization-required when none was sent and payer-authorization-rejected when the insurer refused it. A member’s request the insurer declines under its own rules carries insurer-declined-request, and sending it again gives the same answer. An insurer that prices by NDC is asked about the request’s NDC, or, for an RxNorm code, an NDC haau3’s RxNorm release holds for the code or one of its branded forms, named in the answer’s note; with none held it is not asked and the answer carries ndc-required, so send the NDC. Send the prescription’s days supply in MedicationRequest.dispenseRequest.expectedSupplyDuration, as a whole number of days with the UCUM code d; any other days supply is refused with 400, and an insurer that requires one is not asked about a request without one: the answer carries days-supply-required, beside ndc-required when the NDC is missing too. A price is an estimate; the pharmacy confirms the price. A member’s request receives patient data, so send real patient data only under an executed business associate agreement (BAA) on the Team or Scale plan. Without both, send a member’s request only as test data marked as such, the request and every resource in it labelled with the meta.security coding HTEST from http://terminology.hl7.org/CodeSystem/v3-ActReason; anything else is refused with 403 phi-agreement-required. A request without patient details needs neither. Nothing a request carries is stored or logged, apart from the request’s ids, and every answer is sent with Cache-Control: no-store. The operation takes no query parameters and is not offered inside a batch. The contract is published at https://fhir.haau3.com/pharmacy-benefits.html.
curl -X POST "https://api.haau3.com/v1/fhir/r4/\$process-message" \
-H "Authorization: Bearer $HAAU3_API_KEY" \
-H "Content-Type: application/fhir+json" \
-d '{
"resourceType": "Bundle",
"id": "pharmacy-benefits-request-non-phi",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-request-bundle-non-phi|2.0.0-ballot"
]
},
"entry": [
{
"fullUrl": "https://app.example.test/fhir/MessageHeader/non-phi-request",
"resource": {
"resourceType": "MessageHeader",
"id": "non-phi-request",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-request-messageheader-non-phi|2.0.0-ballot"
]
},
"source": { "name": "Example app", "endpoint": "https://app.example.test" },
"focus": [{ "reference": "https://app.example.test/fhir/Claim/non-phi-claim" }],
"eventCoding": {
"code": "rtpbc-request-non-phi",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-event-type",
"display": "RTPBC Non-PHI Request"
},
"definition": "http://hl7.org/fhir/us/carin-rtpbc/MessageDefinition/rtpbc-request-non-phi"
}
},
{
"fullUrl": "https://app.example.test/fhir/Claim/non-phi-claim",
"resource": {
"resourceType": "Claim",
"id": "non-phi-claim",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-request-claim-non-phi|2.0.0-ballot"
]
},
"identifier": [{ "value": "price-check-0001" }],
"patient": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"provider": {
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-preferredPharmacyPostalCode",
"valueString": "33131"
}
]
},
"insurance": [
{
"coverage": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"sequence": 1,
"focal": false
}
],
"item": [
{
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
],
"text": "lisinopril 5 mg tablet"
},
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"sequence": 1
}
],
"status": "active",
"type": {
"coding": [
{
"code": "pharmacy",
"system": "http://terminology.hl7.org/CodeSystem/claim-type",
"display": "Pharmacy"
}
]
},
"use": "predetermination",
"created": "2026-10-20T14:00:00Z",
"priority": {
"coding": [
{
"code": "normal",
"system": "http://terminology.hl7.org/CodeSystem/processpriority",
"display": "Normal"
}
]
}
}
}
],
"type": "message",
"timestamp": "2026-10-20T14:00:00Z"
}'import { readFile } from "node:fs/promises";
import { Haau3, type fhir4 } from "@haau3/sdk";
const haau3 = new Haau3(); // reads HAAU3_API_KEY
// request.json holds a pharmacy benefit check without patient details, as a Bundle.
const body: fhir4.Bundle = JSON.parse(await readFile("request.json", "utf8"));
const bundle = await haau3.processMessage(body);
console.log(bundle.entry?.length ?? 0);
import json
from haau3 import Haau3, fhir
client = Haau3() # reads HAAU3_API_KEY
# request.json holds a pharmacy benefit check without patient details, as a Bundle.
with open("request.json") as file:
body: fhir.Bundle = json.load(file)
bundle = client.process_message(body)
print(len(bundle.get("entry", [])))
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
"github.com/haau3/haau3-go"
"github.com/haau3/haau3-go/fhir"
)
func main() {
ctx := context.Background()
client, err := haau3.NewClient() // reads HAAU3_API_KEY
if err != nil {
log.Fatal(err)
}
data, err := os.ReadFile("request.json") // a pharmacy benefit check without patient details
if err != nil {
log.Fatal(err)
}
var body fhir.Bundle
if err := json.Unmarshal(data, &body); err != nil {
log.Fatal(err)
}
bundle, err := client.ProcessMessage(ctx, &body)
if err != nil {
log.Fatal(err)
}
fmt.Println(len(bundle.Entry))
}
{
"resourceType": "Bundle",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-bundle-non-phi|2.0.0-ballot"
]
},
"entry": [
{
"fullUrl": "urn:uuid:558a39f8-4087-4955-afac-76c9857eb785",
"resource": {
"resourceType": "MessageHeader",
"id": "558a39f8-4087-4955-afac-76c9857eb785",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-messageheader-non-phi|2.0.0-ballot"
]
},
"source": {
"name": "haau3 Pharmacy Benefits",
"endpoint": "https://api.haau3.com/v1/fhir/r4"
},
"response": {
"identifier": "non-phi-request",
"code": "ok"
},
"focus": [
{
"reference": "urn:uuid:ee066a10-e861-4d09-bde5-909163793433"
}
],
"eventCoding": {
"code": "rtpbc-response-non-phi",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-event-type",
"display": "RTPBC Non-PHI Response"
},
"definition": "http://hl7.org/fhir/us/carin-rtpbc/MessageDefinition/rtpbc-response-non-phi"
}
},
{
"fullUrl": "urn:uuid:ee066a10-e861-4d09-bde5-909163793433",
"resource": {
"resourceType": "ClaimResponse",
"id": "ee066a10-e861-4d09-bde5-909163793433",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-claimresponse-non-phi|2.0.0-ballot"
]
},
"identifier": [
{
"value": "ee066a10-e861-4d09-bde5-909163793433"
}
],
"patient": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"insurer": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "masked"
}
]
},
"request": {
"identifier": {
"value": "price-check-0001"
}
},
"item": [
{
"noteNumber": [
1,
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"itemSequence": 1
}
],
"addItem": [
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-mail-order",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "Cost Plus Drugs mail order"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
2
],
"adjudication": [
{
"amount": {
"value": 0.21,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 5,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Shipping"
},
"amount": {
"value": 5.25,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 10.46,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"provider": [
{
"reference": "urn:uuid:5b9b9e3e-da94-48c5-aa09-0f30c45dfab9"
}
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-team-cuban-card",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "The Team Cuban Card from Cost Plus Drugs"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"provider": [
{
"reference": "urn:uuid:deb1747a-a225-423c-b45a-d335f86f245f"
}
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-team-cuban-card",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "The Team Cuban Card from Cost Plus Drugs"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
},
{
"extension": [
{
"url": "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-isAlternative",
"valueBoolean": true
}
],
"itemSequence": [
1
],
"provider": [
{
"reference": "urn:uuid:0f871261-d9c4-4459-8911-4a309c4da536"
}
],
"programCode": [
{
"coding": [
{
"code": "cost-plus-team-cuban-card",
"system": "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-price-source",
"display": "The Team Cuban Card from Cost Plus Drugs"
}
]
}
],
"quantity": {
"value": 30,
"unit": "{Each}",
"system": "http://unitsofmeasure.org",
"code": "{Each}"
},
"noteNumber": [
3
],
"adjudication": [
{
"amount": {
"value": 0.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "cash-price",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Full product cash price"
}
]
}
},
{
"reason": {
"text": "Dispensing fee"
},
"amount": {
"value": 12,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"reason": {
"text": "Card admin fee"
},
"amount": {
"value": 1,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "other-cost",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Other cost"
}
]
}
},
{
"amount": {
"value": 13.29,
"currency": "USD"
},
"category": {
"coding": [
{
"code": "total",
"system": "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-patient-pay-type-temporary",
"display": "Total patient responsibility"
}
]
}
}
],
"productOrService": {
"coding": [
{
"code": "311354",
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"display": "lisinopril 5 MG Oral Tablet"
}
]
}
}
],
"processNote": [
{
"number": 1,
"text": "The lowest price returned at a pharmacy near the ZIP codes searched, at PUBLIX PHARMACY #0581. Every price returned is also listed as an alternative, this one included."
},
{
"number": 2,
"text": "Cost Plus Drugs mail order, from its price list as read at 2026-10-20T16:00:16Z. The price follows Cost Plus Drugs' published unit price for the quantity asked for, with its dispensing fee and standard shipping. Cost Plus Drugs fills the prescription with an equivalent medication it stocks. Order at costplusdrugs.com, with a prescription sent to Cost Plus Drugs. An estimate; the pharmacy confirms the price."
},
{
"number": 3,
"text": "The Team Cuban Card from Cost Plus Drugs, read at 2026-10-20T16:00:16Z for NDC 63304053201. Each price follows Cost Plus Drugs' published unit price for the quantity asked for, with that pharmacy's dispensing fee and the card's admin fee. Pay with the free Team Cuban Card from costplusdrugs.com. An estimate; the pharmacy confirms the price."
}
],
"status": "active",
"type": {
"coding": [
{
"code": "pharmacy",
"system": "http://terminology.hl7.org/CodeSystem/claim-type",
"display": "Pharmacy"
}
]
},
"use": "predetermination",
"created": "2026-10-20T16:00:16Z",
"outcome": "complete",
"disposition": "Cash prices from the price sources this service connects to. Each is an estimate; the pharmacy confirms the price."
}
},
{
"fullUrl": "urn:uuid:5b9b9e3e-da94-48c5-aa09-0f30c45dfab9",
"resource": {
"resourceType": "Organization",
"id": "5b9b9e3e-da94-48c5-aa09-0f30c45dfab9",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-pharmacy-organization|2.0.0-ballot"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1043636558"
}
],
"type": [
{
"coding": [
{
"code": "R",
"system": "http://terminology.hl7.org/CodeSystem/NCPDPPharmacyType",
"display": "Retail"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "(305) 860-7770"
}
],
"address": [
{
"line": [
"120 S.W. 13th Street"
],
"city": "Miami",
"state": "FL",
"postalCode": "33130",
"country": "US"
}
],
"active": true,
"name": "PUBLIX PHARMACY #0581"
}
},
{
"fullUrl": "urn:uuid:deb1747a-a225-423c-b45a-d335f86f245f",
"resource": {
"resourceType": "Organization",
"id": "deb1747a-a225-423c-b45a-d335f86f245f",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-pharmacy-organization|2.0.0-ballot"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1275944951"
}
],
"type": [
{
"coding": [
{
"code": "R",
"system": "http://terminology.hl7.org/CodeSystem/NCPDPPharmacyType",
"display": "Retail"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "(305) 856-9990"
}
],
"address": [
{
"line": [
"311 SW 7th St"
],
"city": "Miami",
"state": "FL",
"postalCode": "33130",
"country": "US"
}
],
"active": true,
"name": "PUBLIX PHARMACY #0054"
}
},
{
"fullUrl": "urn:uuid:0f871261-d9c4-4459-8911-4a309c4da536",
"resource": {
"resourceType": "Organization",
"id": "0f871261-d9c4-4459-8911-4a309c4da536",
"meta": {
"profile": [
"http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-pharmacy-organization|2.0.0-ballot"
]
},
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1649814211"
}
],
"type": [
{
"coding": [
{
"code": "R",
"system": "http://terminology.hl7.org/CodeSystem/NCPDPPharmacyType",
"display": "Retail"
}
]
}
],
"telecom": [
{
"system": "phone",
"value": "(305) 341-9629"
}
],
"address": [
{
"line": [
"601 NW 2nd Avenue"
],
"city": "Miami",
"state": "FL",
"postalCode": "33136",
"country": "US"
}
],
"active": true,
"name": "PUBLIX PHARMACY #1614"
}
}
],
"type": "message",
"timestamp": "2026-10-20T16:00:16Z"
}Authorizations
A live platform API key (haau3_sk_live_…), sent as Authorization: Bearer <key>. It works for every service outside the Sandbox. Create one on the API keys page at https://platform.haau3.com.
Headers
A member's own authorization at their insurer, for a member's request (event rtpbc-request) to an insurer that answers only with it: Bearer and the access token your app obtained from the member's login with that insurer, as an Authorization header carries one. It is forwarded once, to that insurer, for this request, and is never stored, logged or sent anywhere else. Without it, such a request is answered payer-authorization-required; a token the insurer refuses is answered payer-authorization-rejected. A request without patient details that carries it is refused.
4096^[Bb][Ee][Aa][Rr][Ee][Rr] +[A-Za-z0-9\-._~+/]+=*$An id of your own for this request, as a UUID. It comes back in the X-Correlation-Id header and is kept with haau3's record of the request. Any value that is not a UUID is ignored. See https://docs.haau3.com/errors#request-ids.
Body
A FHIR R4 Bundle.
Response
The answer: a FHIR Bundle of type message with a MessageHeader, one ClaimResponse and the pharmacy Organizations its prices name, returned as the response body itself.
A FHIR R4 Bundle.