FHIR R4 Medication API
Drug records as FHIR resources. No mapping layer.
Add ?format=fhir to a drug fetch and receive a standards-valid FHIR R4 Medication — no mapping layer on your side.
GET /v1/drugs/{id}?format=fhir
curl 'https://drug-database.com/v1/drugs/\
3f8a1c2d-1b4e-4c7a-9d2f-0a1b2c3d4e5f?format=fhir' \
-H 'Authorization: Bearer dd_live_…'Live data
A real product. As FHIR R4 Medication.
Add ?format=fhir to a drug fetch and the API returns a FHIR R4 Medication resource instead of the native shape — ready to drop into an EHR, a CDS-Hooks service, or any HL7-aware pipeline. No mapping layer on your side.
- Standard R4 Medication. Validates against the base HL7 Medication profile — no proprietary resourceType.
- Correct code/identifier split. Public codesystems in coding[], jurisdiction-internal codes in identifier[], each with its system URI.
- Swiss fields as extensions. Dispensing category and BAG-SL reimbursement carried as typed extensions, not stuffed into core fields.
{ "resourceType": "Medication", "id": "0258e483-2703-4141-911b-cab0b814b65a", "meta": { "source": "drug-database:drug/0258e483-2703-4141-911b-cab0b814b65a", "profile": [ "http://hl7.org/fhir/StructureDefinition/Medication" ] }, "code": { "coding": [ { "system": "http://www.whocc.no/atc", "code": "C10AA05", "display": "Atorvastatin calcium" }, { "system": "http://hl7.org/fhir/sid/ndc", "code": "72603-403-02", "display": "Atorvastatin calcium" }, { "system": "http://hl7.org/fhir/sid/ndc", "code": "7260340302", "display": "Atorvastatin calcium" } ], "text": "Atorvastatin calcium" }, "status": "active", "identifier": [ { "system": "urn:drug-database:register:us", "value": "US:72603-403_e84506d1-dcd8-478c-ac0b-4328b0709494", "use": "official" } ], "manufacturer": { "display": "NorthStar RxLLC" }}The response
The shape you get back. Every row with its source.
Every market identifier we hold is mapped to its correct FHIR home. Codes with a recognised codesystem (ATC, GTIN, NDC, PZN, CIP13, dm+d AMPP-ID) become code.coding[] entries; Pharmacode and Swissmedic-No become identifier[] entries. Swiss dispensing category and BAG-SL reimbursement ride along as typed extensions.
- 666,680 products from 19 countries’ registers
- Every row carries its source and last-checked date
{
"resourceType": "Medication",
"id": "3f8a1c2d-1b4e-4c7a-9d2f-0a1b2c3d4e5f",
"meta": {
"profile": ["http://hl7.org/fhir/StructureDefinition/Medication"]
},
"status": "active",
"code": {
"text": "Aspirin Cardio 100 mg",
"coding": [
{ "system": "http://www.whocc.no/atc", "code": "B01AC06" },
{ "system": "https://www.gs1.org/gtin", "code": "7680651870019" }
]
},
"identifier": [
{ "system": "https://swissmedic.ch/swissmedic-no", "value": "65187" },
{ "system": "https://www.refdata.ch/pharmacode", "value": "1234567" }
],
"manufacturer": { "display": "Bayer (Schweiz) AG" },
"extension": [
{ "url": "…/swissmedic-dispensing-category", "valueCode": "B" },
{ "url": "…/bag-sl-reimbursed", "valueBoolean": true }
]
}Where it comes from
Standards & freshness. Each with its last sync.
- FHIR R4, base HL7 Medication profile — validates with standard tooling.
- code.coding[] covers ATC, GTIN, NDC, PZN, CIP13 and dm+d AMPP-ID, each with its system URI.
- Swiss data (dispensing category, BAG-SL reimbursement) carried as typed extensions.
- The FHIR view is ETag-cached and revalidatable via the changes feed.
- FHIR fetches need the drugs:read scope.
- See the docs for the full coding-system URI table.
- Swissmedic product informationRegister
- HPRA medicines registerRegister
- AEMPS medicines registerRegister
- FDA drug shortagesRegister
- Swissmedic authorised medicinesRegister
- FDA National Drug CodesRegister
- URPL medicines registerRegister
Questions
Before you build. Answered plainly.
Which FHIR version?
How are codes split between coding[] and identifier[]?
What about Swiss-specific fields?
Start building with the FHIR Medication API.
A free key includes 10 lookups in total — enough to judge the data. Pro is $29/month when you build on it.
No card required.