Skip to content

Medication resource (FHIR R4)

Medication is the FHIR R4 resource for this resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use.

ResourceMedication
FHIR versionR4 (4.0.1)
Canonical URLhttp://hl7.org/fhir/StructureDefinition/Medication
Required elementsnone; every top-level element is optional (min 0) in base R4
IG profiles in this catalog1

Example

{
  "resourceType": "Medication",
  "id": "medication-bef757911e5b0ff41205997b66c25c7a",
  "code": {
    "coding": [
      {
        "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
        "code": "omitted",
        "display": "RxNorm code omitted from this published example"
      },
      {
        "system": "http://hl7.org/fhir/sid/ndc",
        "code": "0378-8260-93",
        "display": "Ritalin 5mg"
      }
    ],
    "text": "Ritalin 5mg"
  },
  "status": "active",
  "form": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "omitted",
        "display": "SNOMED CT code omitted from this published example"
      }
    ],
    "text": "tablet"
  }
}

Generated by the Pidgeon engine: pidgeon generate Medication --seed 20260722. Codes from licensed terminologies (LOINC, SNOMED CT, CPT, RxNorm) are omitted from published examples.

Validation context

  • strict pidgeon validate grades a Medication instance against the base R4 structure definition: missing required elements raise REQUIRED_FIELD_MISSING and cardinality violations raise CARDINALITY_MIN or CARDINALITY_MAX.(REQUIRED_FIELD_MISSING)
  • strict Profile validation grades the same instance against an installed IG profile: profile cardinality findings carry FHIR-PROFILE-CARDINALITY and terminology binding findings carry FHIR-PROFILE-BINDING.(FHIR-PROFILE-CARDINALITY)

This answer, in your terminal

pidgeon lookup Medication

Wire it into your AI agent:

claude mcp add pidgeon -- npx -y @pidgeonhealth/mcp

Download Post free to browse this reference with generation attached.

FHIR® R4 © Health Level Seven International. FHIR R4 specification content is used under its CC0 license; this page is a derivative work and is not endorsed by HL7 International.

HL7® and FHIR® are registered trademarks of Health Level Seven International.

Published by Pattern Engine LLC (Pidgeon Health).

Rendered from the same machine-readable definitions the Pidgeon engine validates against. Exported from the Pidgeon engine's FHIR R4 definitions (CC0); example generated with seed 20260722.