curl "https://api.haau3.com/v1/fhir/r4/Basic?formulary=InsurancePlan/Formulary-00027002&subject=MedicationKnowledge/FormularyDrug-311354&_include=Basic:formulary&_include=Basic:subject" \
-H "Authorization: Bearer $HAAU3_API_KEY"{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://api.haau3.com/v1/fhir/r4/Basic?formulary=InsurancePlan%2FFormulary-00027002&subject=MedicationKnowledge%2FFormularyDrug-311354&_include=Basic%3Aformulary&_include=Basic%3Asubject"
}
],
"entry": [
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Basic/FormularyItem-00027002-311354",
"resource": {
"resourceType": "Basic",
"id": "FormularyItem-00027002-311354",
"meta": {
"lastUpdated": "2026-12-01T23:00:45.878Z",
"source": "https://data.cms.gov/sites/default/files/2026-11/796eebd3-4f54-43e3-90a4-c20cc0696767/2027_20261118.zip",
"profile": [
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyItem|2.1.0"
]
},
"extension": [
{
"url": "https://fhir.haau3.com/platform/StructureDefinition/part-d-data-month",
"valueDate": "2026-11"
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyReference-extension",
"valueReference": {
"reference": "InsurancePlan/Formulary-00027002"
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-AvailabilityStatus-extension",
"valueCode": "active"
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-AvailabilityPeriod-extension",
"valuePeriod": {
"start": "2027-01-01",
"end": "2027-12-31"
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PharmacyBenefitType-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyBenefitTypeCS-TEMPORARY-TRIAL-USE",
"code": "1-month-in-retail",
"display": "1 month in network retail"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PharmacyBenefitType-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyBenefitTypeCS-TEMPORARY-TRIAL-USE",
"code": "3-month-in-retail",
"display": "3 month in network retail"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PharmacyBenefitType-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyBenefitTypeCS-TEMPORARY-TRIAL-USE",
"code": "3-month-in-mail",
"display": "3 month in network mail order"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "https://fhir.haau3.com/platform/CodeSystem/part-d-drug-tier",
"code": "1",
"display": "Tier 1"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension",
"valueBoolean": false
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension",
"valueBoolean": false
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension",
"valueBoolean": true
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimitDetail-extension",
"extension": [
{
"url": "Rolling",
"valueTiming": {
"repeat": {
"count": 60,
"period": 30,
"periodUnit": "d"
}
}
}
]
}
],
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-InsuranceItemTypeCS",
"code": "formulary-item",
"display": "Formulary Item"
}
]
},
"subject": {
"reference": "MedicationKnowledge/FormularyDrug-311354"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/InsurancePlan/Formulary-00027002",
"resource": {
"resourceType": "InsurancePlan",
"id": "Formulary-00027002",
"meta": {
"lastUpdated": "2026-12-01T23:00:45.878Z",
"source": "https://data.cms.gov/sites/default/files/2026-11/796eebd3-4f54-43e3-90a4-c20cc0696767/2027_20261118.zip",
"profile": [
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Formulary|2.1.0"
]
},
"extension": [
{
"url": "https://fhir.haau3.com/platform/StructureDefinition/part-d-data-month",
"valueDate": "2026-11"
}
],
"identifier": [
{
"value": "00027002"
}
],
"status": "active",
"type": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "DRUGPOL"
}
]
}
],
"name": "Medicare Part D formulary 00027002, contract year 2027",
"period": {
"start": "2027-01-01",
"end": "2027-12-31"
}
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/MedicationKnowledge/FormularyDrug-311354",
"resource": {
"resourceType": "MedicationKnowledge",
"id": "FormularyDrug-311354",
"meta": {
"lastUpdated": "2026-12-01T23:00:45.878Z",
"source": "https://data.cms.gov/sites/default/files/2026-11/796eebd3-4f54-43e3-90a4-c20cc0696767/2027_20261118.zip",
"profile": [
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|2.1.0"
]
},
"code": {
"coding": [
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "311354",
"display": "lisinopril 5 MG Oral Tablet"
},
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "1164689",
"display": "lisinopril Oral Product"
},
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "1164690",
"display": "lisinopril Pill"
}
]
},
"status": "active"
},
"search": {
"mode": "include"
}
}
]
}Find drugs on a Part D formulary
Search the items of the Medicare Part D formularies in CMS’s monthly file: each a drug on one formulary, as the FormularyItem of HL7’s Da Vinci US Drug Formulary guide, 2.1.0 (a Basic). An item states the drug’s tier (1 to 6, from https://fhir.haau3.com/platform/CodeSystem/part-d-drug-tier), whether it needs prior authorization or step therapy, its quantity limit, and the ways to fill it that every plan on the formulary prices, and names the month of CMS’s file in the https://fhir.haau3.com/platform/StructureDefinition/part-d-data-month extension. A search needs formulary, subject or _id; drug-tier and pharmacy-benefit-type narrow it. _include=Basic:formulary adds each item’s formulary and _include=Basic:subject its drug; total counts the items only.
A search that finds no item answers 200 with an OperationOutcome entry saying so, with the month of CMS’s file: a drug not on a formulary is an answer. A formulary that does not exist is refused by name. A formulary lists what a plan covers; it is not a statement of what a member will pay or be given. Follow the next link to continue: its cursor belongs to the one search, and answers 410 once a newer month is served.
curl "https://api.haau3.com/v1/fhir/r4/Basic?formulary=InsurancePlan/Formulary-00027002&subject=MedicationKnowledge/FormularyDrug-311354&_include=Basic:formulary&_include=Basic:subject" \
-H "Authorization: Bearer $HAAU3_API_KEY"{
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://api.haau3.com/v1/fhir/r4/Basic?formulary=InsurancePlan%2FFormulary-00027002&subject=MedicationKnowledge%2FFormularyDrug-311354&_include=Basic%3Aformulary&_include=Basic%3Asubject"
}
],
"entry": [
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/Basic/FormularyItem-00027002-311354",
"resource": {
"resourceType": "Basic",
"id": "FormularyItem-00027002-311354",
"meta": {
"lastUpdated": "2026-12-01T23:00:45.878Z",
"source": "https://data.cms.gov/sites/default/files/2026-11/796eebd3-4f54-43e3-90a4-c20cc0696767/2027_20261118.zip",
"profile": [
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyItem|2.1.0"
]
},
"extension": [
{
"url": "https://fhir.haau3.com/platform/StructureDefinition/part-d-data-month",
"valueDate": "2026-11"
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyReference-extension",
"valueReference": {
"reference": "InsurancePlan/Formulary-00027002"
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-AvailabilityStatus-extension",
"valueCode": "active"
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-AvailabilityPeriod-extension",
"valuePeriod": {
"start": "2027-01-01",
"end": "2027-12-31"
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PharmacyBenefitType-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyBenefitTypeCS-TEMPORARY-TRIAL-USE",
"code": "1-month-in-retail",
"display": "1 month in network retail"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PharmacyBenefitType-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyBenefitTypeCS-TEMPORARY-TRIAL-USE",
"code": "3-month-in-retail",
"display": "3 month in network retail"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PharmacyBenefitType-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-PharmacyBenefitTypeCS-TEMPORARY-TRIAL-USE",
"code": "3-month-in-mail",
"display": "3 month in network mail order"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension",
"valueCodeableConcept": {
"coding": [
{
"system": "https://fhir.haau3.com/platform/CodeSystem/part-d-drug-tier",
"code": "1",
"display": "Tier 1"
}
]
}
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension",
"valueBoolean": false
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension",
"valueBoolean": false
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension",
"valueBoolean": true
},
{
"url": "http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-QuantityLimitDetail-extension",
"extension": [
{
"url": "Rolling",
"valueTiming": {
"repeat": {
"count": 60,
"period": 30,
"periodUnit": "d"
}
}
}
]
}
],
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/us/davinci-drug-formulary/CodeSystem/usdf-InsuranceItemTypeCS",
"code": "formulary-item",
"display": "Formulary Item"
}
]
},
"subject": {
"reference": "MedicationKnowledge/FormularyDrug-311354"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/InsurancePlan/Formulary-00027002",
"resource": {
"resourceType": "InsurancePlan",
"id": "Formulary-00027002",
"meta": {
"lastUpdated": "2026-12-01T23:00:45.878Z",
"source": "https://data.cms.gov/sites/default/files/2026-11/796eebd3-4f54-43e3-90a4-c20cc0696767/2027_20261118.zip",
"profile": [
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-Formulary|2.1.0"
]
},
"extension": [
{
"url": "https://fhir.haau3.com/platform/StructureDefinition/part-d-data-month",
"valueDate": "2026-11"
}
],
"identifier": [
{
"value": "00027002"
}
],
"status": "active",
"type": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "DRUGPOL"
}
]
}
],
"name": "Medicare Part D formulary 00027002, contract year 2027",
"period": {
"start": "2027-01-01",
"end": "2027-12-31"
}
},
"search": {
"mode": "include"
}
},
{
"fullUrl": "https://api.haau3.com/v1/fhir/r4/MedicationKnowledge/FormularyDrug-311354",
"resource": {
"resourceType": "MedicationKnowledge",
"id": "FormularyDrug-311354",
"meta": {
"lastUpdated": "2026-12-01T23:00:45.878Z",
"source": "https://data.cms.gov/sites/default/files/2026-11/796eebd3-4f54-43e3-90a4-c20cc0696767/2027_20261118.zip",
"profile": [
"http://hl7.org/fhir/us/davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug|2.1.0"
]
},
"code": {
"coding": [
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "311354",
"display": "lisinopril 5 MG Oral Tablet"
},
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "1164689",
"display": "lisinopril Oral Product"
},
{
"system": "http://www.nlm.nih.gov/research/umls/rxnorm",
"code": "1164690",
"display": "lisinopril Pill"
}
]
},
"status": "active"
},
"search": {
"mode": "include"
}
}
]
}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
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.
Query Parameters
A way to fill the drug that every plan on the formulary prices: 1-month-in-retail, 1-month-in-mail, 3-month-in-retail, 3-month-in-mail, bare or with the system of HL7's Da Vinci US Drug Formulary guide, several separated by commas, up to 20. Narrows a search; it is not one by itself.
Response
A searchset Bundle with total set: the matching items, then the resources _include asked for, then an OperationOutcome when no item matched.
A FHIR R4 Bundle.