Skip to content

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_…'
Append ?format=fhir to any drug fetch and receive a Medication resource with codes and identifiers in their correct FHIR homes.Make your first call

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"  }}
A real United States product, rendered by the same mapper the API uses (row checked 23 Nov 2026).Open the Atorvastatin calcium record

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 }
  ]
}
Trimmed, with illustrative values — the live example above is a real row.Every field in the reference

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 information
  • HPRA medicines register
  • AEMPS medicines register
  • FDA drug shortages
  • Swissmedic authorised medicines
  • FDA National Drug Codes
  • URPL medicines register
Sources passing their checks, as of 24 Nov, 08:32 UTC.Every source and its status

Questions

Before you build. Answered plainly.

Which FHIR version?
FHIR R4. The resource declares the base http://hl7.org/fhir/StructureDefinition/Medication profile and validates as a standard Medication resource.
How are codes split between coding[] and identifier[]?
Codes with a recognised public codesystem URI — ATC, GTIN, NDC, PZN, CIP13, dm+d AMPP-ID — go into code.coding[]. Jurisdiction-internal identifiers like Pharmacode and Swissmedic-No go into identifier[] with their de-facto system URIs.
What about Swiss-specific fields?
Swissmedic dispensing category (A–E) and BAG-SL reimbursement status are carried as typed FHIR extensions, so they round-trip without polluting the standard 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.