Skip to main content

Medication

ResourceClinical · MedicationsTrial useMaturity 3

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.

Tested supportFull test results →
Backends
PostgreSQLElasticsearch
Interactions
CreateReadUpdatePatchDelete
Search
9 of 9 parameters tested

Structure​

ElementCard.TypeDescription
identifierΣ
0..*IdentifierBusiness identifier for this medication
codeΣ
0..1CodeableConceptCodes that identify this medicationBinding (example): medication-codes
status?!Σ
0..1codeactive | inactive | entered-in-errorBinding (required): medication-status
manufacturerΣ
0..1Reference(Organization)Manufacturer of the item
form
0..1CodeableConceptpowder | tablets | capsule +Binding (example): medication-form-codes
amountΣ
0..1RatioAmount of drug in package
ingredient
0..*BackboneElementActive or inactive ingredient
item[x]Required
1..1CodeableConcept | Reference(Substance | Medication)The actual ingredient or content
isActive
0..1booleanActive ingredient indicator
strength
0..1RatioQuantity of ingredient present
batch
0..1BackboneElementDetails about packaged medications
lotNumber
0..1stringIdentifier assigned to batch
expirationDate
0..1dateTimeWhen batch will expire

Σ in _summary results · ?! modifier element · 1.. required · inherited elements in grey

Search parameters​

Query with GET [base]/Medication?[parameter]=[value]. Type decides which modifiers and prefixes apply, see search features.

ParameterTypeDescriptionPGES
codetoken

Returns medications for a specific code

Medication.code
expiration-datedate

Returns medications in a batch with this expiration date

Medication.batch.expirationDate
formtoken

Returns medications for a specific dose form

Medication.form
identifiertoken

Returns medications with this external identifier

Medication.identifier
ingredientreference

Returns medications for this ingredient reference

(Medication.ingredient.item.ofType(Reference))
ingredient-codetoken

Returns medications for this ingredient code

(Medication.ingredient.item.ofType(CodeableConcept))
lot-numbertoken

Returns medications in a batch with this lot number

Medication.batch.lotNumber
manufacturerreference

Returns medications made or sold for this manufacturer

Medication.manufacturer
statustoken

Returns medications for this status

Medication.status

PG: PostgreSQL, ES: Elasticsearch. passes its TestScript checks, fails, not tested yet.

Common parameters on every resource (8)
_haste-health-authorreference

The author of the resource

_idtoken

Logical id of this artifact

_lastUpdateddate

When the resource version last changed

_profileuri

Profiles this resource claims to conform to

_securitytoken

Security Labels applied to this resource

_sourceuri

Identifies where the resource comes from

_tagtoken

Tags applied to this resource

_typetoken

Derived from the R4B Definition