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.
| Resource | Medication |
|---|---|
| FHIR version | R4 (4.0.1) |
| Canonical URL | http://hl7.org/fhir/StructureDefinition/Medication |
| Required elements | none; every top-level element is optional (min 0) in base R4 |
| IG profiles in this catalog | 1 |
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 MedicationWire it into your AI agent:
claude mcp add pidgeon -- npx -y @pidgeonhealth/mcpDownload Post free to browse this reference with generation attached.