This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2
Pharmacy Work Group | Maturity Level: 3 | Trial Use | Compartments: Not linked to any defined compartments |
This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.
Representing medications in the majority of healthcare settings is a matter of identifying an item from a list and then conveying a reference for the item selected either into a patient related resource or to other applications. Additional information about the medication is frequently provided for human verification, but a full representation of the details of composition and efficacy of the medicine is conveyed by referring to drug dictionaries by means of the codes they define. There are some occasions where it is necessary to identify slightly more detail, such as when dispensing a package containing a particular medicine requires identification both of the medicine and the package at once. There are also some occasions (e.g. custom formulations) where the composition of a medicine must be represented. In these cases the ingredients of the medicine have to be specified together with the amount contained, though the medication resource does not provide full details.
The Medication resource allows for medications to be characterized by the form of the drug and the ingredient (or ingredients), as well as how it is packaged. The medication will include the ingredient(s) and their strength(s) and the package can include the amount (for example, number of tablets, volume, etc.) that is contained in a particular container (for example, 100 capsules of Amoxicillin 500mg per bottle).
The medication resource can be used to describe a compounded (aka extemporaneous or magistral) product that is manufactured by the pharmacy at the time of dispensing. In this case there will be multiple ingredients which are typically base chemicals (for example, hydrocortisone powder) and there may be other ingredients that are manufactured products (for example, Glaxal Base).
If medication includes a package, further details about the composition can be provided. A package has a container (vacuum packed box, jar, etc.) and a list of the products or other packages that are in the package.
This resource is referenced by ActivityDefinition, AdverseEvent, CarePlan, Flag, Group, MedicationAdministration, MedicationDispense, MedicationRequest, MedicationStatement, Procedure, SupplyDelivery and SupplyRequest
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Medication | DomainResource | Definition of a Medication Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | ||
code | Σ | 0..1 | CodeableConcept | Codes that identify this medication SNOMED CT Medication Codes (Example) |
status | Σ | 0..1 | code | active | inactive | entered-in-error MedicationStatus (Required) |
isBrand | Σ | 0..1 | boolean | True if a brand |
isOverTheCounter | Σ | 0..1 | boolean | True if medication does not require a prescription |
manufacturer | Σ | 0..1 | Reference(Organization) | Manufacturer of the item |
form | 0..1 | CodeableConcept | powder | tablets | capsule + SNOMED CT Form Codes (Example) | |
ingredient | 0..* | BackboneElement | Active or inactive ingredient | |
item[x] | 1..1 | The product contained | ||
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(Substance | Medication) | |||
isActive | 0..1 | boolean | Active ingredient indicator | |
amount | 0..1 | Ratio | Quantity of ingredient present | |
package | 0..1 | BackboneElement | Details about packaged medications | |
container | 0..1 | CodeableConcept | E.g. box, vial, blister-pack MedicationContainer (Example) | |
content | 0..* | BackboneElement | What is in the package | |
item[x] | 1..1 | The item in the package | ||
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(Medication) | |||
amount | 0..1 | SimpleQuantity | Quantity present in the package | |
batch | 0..* | BackboneElement | Identifies a single production run | |
lotNumber | 0..1 | string | Identifier assigned to batch | |
expirationDate | 0..1 | dateTime | When batch will expire | |
image | 0..* | Attachment | Picture of the medication | |
Documentation for this format |
UML Diagram (Legend)
XML Template
<Medication xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <code><!-- 0..1 CodeableConcept Codes that identify this medication --></code> <status value="[code]"/><!-- 0..1 active | inactive | entered-in-error --> <isBrand value="[boolean]"/><!-- 0..1 True if a brand --> <isOverTheCounter value="[boolean]"/><!-- 0..1 True if medication does not require a prescription --> <manufacturer><!-- 0..1 Reference(Organization) Manufacturer of the item --></manufacturer> <form><!-- 0..1 CodeableConcept powder | tablets | capsule + --></form> <ingredient> <!-- 0..* Active or inactive ingredient --> <item[x]><!-- 1..1 CodeableConcept|Reference(Substance|Medication) The product contained --></item[x]> <isActive value="[boolean]"/><!-- 0..1 Active ingredient indicator --> <amount><!-- 0..1 Ratio Quantity of ingredient present --></amount> </ingredient> <package> <!-- 0..1 Details about packaged medications --> <container><!-- 0..1 CodeableConcept E.g. box, vial, blister-pack --></container> <content> <!-- 0..* What is in the package --> <item[x]><!-- 1..1 CodeableConcept|Reference(Medication) The item in the package --></item[x]> <amount><!-- 0..1 Quantity(SimpleQuantity) Quantity present in the package --></amount> </content> <batch> <!-- 0..* Identifies a single production run --> <lotNumber value="[string]"/><!-- 0..1 Identifier assigned to batch --> <expirationDate value="[dateTime]"/><!-- 0..1 When batch will expire --> </batch> </package> <image><!-- 0..* Attachment Picture of the medication --></image> </Medication>
JSON Template
{ "resourceType" : "Medication", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "code" : { CodeableConcept }, // Codes that identify this medication "status" : "<code>", // active | inactive | entered-in-error "isBrand" : <boolean>, // True if a brand "isOverTheCounter" : <boolean>, // True if medication does not require a prescription "manufacturer" : { Reference(Organization) }, // Manufacturer of the item "form" : { CodeableConcept }, // powder | tablets | capsule + "ingredient" : [{ // Active or inactive ingredient // item[x]: The product contained. One of these 2: "itemCodeableConcept" : { CodeableConcept }, "itemReference" : { Reference(Substance|Medication) }, "isActive" : <boolean>, // Active ingredient indicator "amount" : { Ratio } // Quantity of ingredient present }], "package" : { // Details about packaged medications "container" : { CodeableConcept }, // E.g. box, vial, blister-pack "content" : [{ // What is in the package // item[x]: The item in the package. One of these 2: "itemCodeableConcept" : { CodeableConcept }, "itemReference" : { Reference(Medication) }, "amount" : { Quantity(SimpleQuantity) } // Quantity present in the package }], "batch" : [{ // Identifies a single production run "lotNumber" : "<string>", // Identifier assigned to batch "expirationDate" : "<dateTime>" // When batch will expire }] }, "image" : [{ Attachment }] // Picture of the medication }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:Medication; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:Medication.code [ CodeableConcept ]; # 0..1 Codes that identify this medication fhir:Medication.status [ code ]; # 0..1 active | inactive | entered-in-error fhir:Medication.isBrand [ boolean ]; # 0..1 True if a brand fhir:Medication.isOverTheCounter [ boolean ]; # 0..1 True if medication does not require a prescription fhir:Medication.manufacturer [ Reference(Organization) ]; # 0..1 Manufacturer of the item fhir:Medication.form [ CodeableConcept ]; # 0..1 powder | tablets | capsule + fhir:Medication.ingredient [ # 0..* Active or inactive ingredient # Medication.ingredient.item[x] : 1..1 The product contained. One of these 2 fhir:Medication.ingredient.itemCodeableConcept [ CodeableConcept ] fhir:Medication.ingredient.itemReference [ Reference(Substance|Medication) ] fhir:Medication.ingredient.isActive [ boolean ]; # 0..1 Active ingredient indicator fhir:Medication.ingredient.amount [ Ratio ]; # 0..1 Quantity of ingredient present ], ...; fhir:Medication.package [ # 0..1 Details about packaged medications fhir:Medication.package.container [ CodeableConcept ]; # 0..1 E.g. box, vial, blister-pack fhir:Medication.package.content [ # 0..* What is in the package # Medication.package.content.item[x] : 1..1 The item in the package. One of these 2 fhir:Medication.package.content.itemCodeableConcept [ CodeableConcept ] fhir:Medication.package.content.itemReference [ Reference(Medication) ] fhir:Medication.package.content.amount [ Quantity(SimpleQuantity) ]; # 0..1 Quantity present in the package ], ...; fhir:Medication.package.batch [ # 0..* Identifies a single production run fhir:Medication.package.batch.lotNumber [ string ]; # 0..1 Identifier assigned to batch fhir:Medication.package.batch.expirationDate [ dateTime ]; # 0..1 When batch will expire ], ...; ]; fhir:Medication.image [ Attachment ], ... ; # 0..* Picture of the medication ]
Changes since DSTU2
Medication | |
Medication.status |
|
Medication.isOverTheCounter |
|
Medication.form |
|
Medication.ingredient |
|
Medication.ingredient.item[x] |
|
Medication.ingredient.isActive |
|
Medication.ingredient.amount |
|
Medication.package.content.item[x] |
|
Medication.package.batch |
|
Medication.package.batch.lotNumber |
|
Medication.package.batch.expirationDate |
|
Medication.image |
|
Medication.product |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R2 <--> R3 Conversion Maps (status = 23 tests that all execute ok. 16 fail round-trip testing and 1 r3 resources are invalid (1 errors).).
Structure
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Medication | DomainResource | Definition of a Medication Elements defined in Ancestors: id, meta, implicitRules, language, text, contained, extension, modifierExtension | ||
code | Σ | 0..1 | CodeableConcept | Codes that identify this medication SNOMED CT Medication Codes (Example) |
status | Σ | 0..1 | code | active | inactive | entered-in-error MedicationStatus (Required) |
isBrand | Σ | 0..1 | boolean | True if a brand |
isOverTheCounter | Σ | 0..1 | boolean | True if medication does not require a prescription |
manufacturer | Σ | 0..1 | Reference(Organization) | Manufacturer of the item |
form | 0..1 | CodeableConcept | powder | tablets | capsule + SNOMED CT Form Codes (Example) | |
ingredient | 0..* | BackboneElement | Active or inactive ingredient | |
item[x] | 1..1 | The product contained | ||
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(Substance | Medication) | |||
isActive | 0..1 | boolean | Active ingredient indicator | |
amount | 0..1 | Ratio | Quantity of ingredient present | |
package | 0..1 | BackboneElement | Details about packaged medications | |
container | 0..1 | CodeableConcept | E.g. box, vial, blister-pack MedicationContainer (Example) | |
content | 0..* | BackboneElement | What is in the package | |
item[x] | 1..1 | The item in the package | ||
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(Medication) | |||
amount | 0..1 | SimpleQuantity | Quantity present in the package | |
batch | 0..* | BackboneElement | Identifies a single production run | |
lotNumber | 0..1 | string | Identifier assigned to batch | |
expirationDate | 0..1 | dateTime | When batch will expire | |
image | 0..* | Attachment | Picture of the medication | |
Documentation for this format |
XML Template
<Medication xmlns="http://hl7.org/fhir"> <!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <code><!-- 0..1 CodeableConcept Codes that identify this medication --></code> <status value="[code]"/><!-- 0..1 active | inactive | entered-in-error --> <isBrand value="[boolean]"/><!-- 0..1 True if a brand --> <isOverTheCounter value="[boolean]"/><!-- 0..1 True if medication does not require a prescription --> <manufacturer><!-- 0..1 Reference(Organization) Manufacturer of the item --></manufacturer> <form><!-- 0..1 CodeableConcept powder | tablets | capsule + --></form> <ingredient> <!-- 0..* Active or inactive ingredient --> <item[x]><!-- 1..1 CodeableConcept|Reference(Substance|Medication) The product contained --></item[x]> <isActive value="[boolean]"/><!-- 0..1 Active ingredient indicator --> <amount><!-- 0..1 Ratio Quantity of ingredient present --></amount> </ingredient> <package> <!-- 0..1 Details about packaged medications --> <container><!-- 0..1 CodeableConcept E.g. box, vial, blister-pack --></container> <content> <!-- 0..* What is in the package --> <item[x]><!-- 1..1 CodeableConcept|Reference(Medication) The item in the package --></item[x]> <amount><!-- 0..1 Quantity(SimpleQuantity) Quantity present in the package --></amount> </content> <batch> <!-- 0..* Identifies a single production run --> <lotNumber value="[string]"/><!-- 0..1 Identifier assigned to batch --> <expirationDate value="[dateTime]"/><!-- 0..1 When batch will expire --> </batch> </package> <image><!-- 0..* Attachment Picture of the medication --></image> </Medication>
JSON Template
{ "resourceType" : "Medication", // from Resource: id, meta, implicitRules, and language // from DomainResource: text, contained, extension, and modifierExtension "code" : { CodeableConcept }, // Codes that identify this medication "status" : "<code>", // active | inactive | entered-in-error "isBrand" : <boolean>, // True if a brand "isOverTheCounter" : <boolean>, // True if medication does not require a prescription "manufacturer" : { Reference(Organization) }, // Manufacturer of the item "form" : { CodeableConcept }, // powder | tablets | capsule + "ingredient" : [{ // Active or inactive ingredient // item[x]: The product contained. One of these 2: "itemCodeableConcept" : { CodeableConcept }, "itemReference" : { Reference(Substance|Medication) }, "isActive" : <boolean>, // Active ingredient indicator "amount" : { Ratio } // Quantity of ingredient present }], "package" : { // Details about packaged medications "container" : { CodeableConcept }, // E.g. box, vial, blister-pack "content" : [{ // What is in the package // item[x]: The item in the package. One of these 2: "itemCodeableConcept" : { CodeableConcept }, "itemReference" : { Reference(Medication) }, "amount" : { Quantity(SimpleQuantity) } // Quantity present in the package }], "batch" : [{ // Identifies a single production run "lotNumber" : "<string>", // Identifier assigned to batch "expirationDate" : "<dateTime>" // When batch will expire }] }, "image" : [{ Attachment }] // Picture of the medication }
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> . [ a fhir:Medication; fhir:nodeRole fhir:treeRoot; # if this is the parser root # from Resource: .id, .meta, .implicitRules, and .language # from DomainResource: .text, .contained, .extension, and .modifierExtension fhir:Medication.code [ CodeableConcept ]; # 0..1 Codes that identify this medication fhir:Medication.status [ code ]; # 0..1 active | inactive | entered-in-error fhir:Medication.isBrand [ boolean ]; # 0..1 True if a brand fhir:Medication.isOverTheCounter [ boolean ]; # 0..1 True if medication does not require a prescription fhir:Medication.manufacturer [ Reference(Organization) ]; # 0..1 Manufacturer of the item fhir:Medication.form [ CodeableConcept ]; # 0..1 powder | tablets | capsule + fhir:Medication.ingredient [ # 0..* Active or inactive ingredient # Medication.ingredient.item[x] : 1..1 The product contained. One of these 2 fhir:Medication.ingredient.itemCodeableConcept [ CodeableConcept ] fhir:Medication.ingredient.itemReference [ Reference(Substance|Medication) ] fhir:Medication.ingredient.isActive [ boolean ]; # 0..1 Active ingredient indicator fhir:Medication.ingredient.amount [ Ratio ]; # 0..1 Quantity of ingredient present ], ...; fhir:Medication.package [ # 0..1 Details about packaged medications fhir:Medication.package.container [ CodeableConcept ]; # 0..1 E.g. box, vial, blister-pack fhir:Medication.package.content [ # 0..* What is in the package # Medication.package.content.item[x] : 1..1 The item in the package. One of these 2 fhir:Medication.package.content.itemCodeableConcept [ CodeableConcept ] fhir:Medication.package.content.itemReference [ Reference(Medication) ] fhir:Medication.package.content.amount [ Quantity(SimpleQuantity) ]; # 0..1 Quantity present in the package ], ...; fhir:Medication.package.batch [ # 0..* Identifies a single production run fhir:Medication.package.batch.lotNumber [ string ]; # 0..1 Identifier assigned to batch fhir:Medication.package.batch.expirationDate [ dateTime ]; # 0..1 When batch will expire ], ...; ]; fhir:Medication.image [ Attachment ], ... ; # 0..* Picture of the medication ]
Changes since DSTU2
Medication | |
Medication.status |
|
Medication.isOverTheCounter |
|
Medication.form |
|
Medication.ingredient |
|
Medication.ingredient.item[x] |
|
Medication.ingredient.isActive |
|
Medication.ingredient.amount |
|
Medication.package.content.item[x] |
|
Medication.package.batch |
|
Medication.package.batch.lotNumber |
|
Medication.package.batch.expirationDate |
|
Medication.image |
|
Medication.product |
|
See the Full Difference for further information
This analysis is available as XML or JSON.
See R2 <--> R3 Conversion Maps (status = 23 tests that all execute ok. 16 fail round-trip testing and 1 r3 resources are invalid (1 errors).).
Alternate definitions: Master Definition (XML, JSON), XML Schema/Schematron (for ) + JSON Schema, ShEx (for Turtle)
Path | Definition | Type | Reference |
---|---|---|---|
Medication.code | A coded concept that defines the type of a medication | Example | SNOMED CT Medication Codes |
Medication.status | A coded concept defining if the medication is in active use | Required | MedicationStatus |
Medication.form | A coded concept defining the form of a medication | Example | SNOMED CT Form Codes |
Medication.package.container | A coded concept defining the kind of container a medication package is packaged in | Example | MedicationContainer |
Medication does not have a status. Pharmacy is evaluating formulary use cases. Feedback is encouraged to the Pharmacy working group committee.
Search parameters for this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services.
Name | Type | Description | Expression | In Common |
code | token | Codes that identify this medication | Medication.code | 4 Resources |
container | token | E.g. box, vial, blister-pack | Medication.package.container | |
form | token | powder | tablets | capsule + | Medication.form | |
ingredient | reference | The product contained | Medication.ingredient.item.as(Reference) (Medication, Substance) | |
ingredient-code | token | The product contained | Medication.ingredient.item.as(CodeableConcept) | |
manufacturer | reference | Manufacturer of the item | Medication.manufacturer (Organization) | |
over-the-counter | token | True if medication does not require a prescription | Medication.isOverTheCounter | |
package-item | reference | The item in the package | Medication.package.content.item.as(Reference) (Medication) | |
package-item-code | token | The item in the package | Medication.package.content.item.as(CodeableConcept) | |
status | token | active | inactive | entered-in-error | Medication.status |