QI-Core Implementation Guide - This is the current published version.. See the Directory of published versions
define function "GetMedicationCode"(request MedicationRequest):
if request.medication is CodeableConcept then
request.medication as CodeableConcept
else
(singleton from ([Medication] M where M.id = GetId((request.medication as Reference).reference))).code
Example of an IV medication - Alemtuzumab |
The official URL for this profile is:
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication
Profile of Medication for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.
This profile builds on USCoreMedicationProfile.
This profile was published on Wed Aug 22 00:00:00 UTC 2018 as a draft by Health Level Seven, Inc. - CQI WG.
Description of Profiles, Differentials, and Snapshots.
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Medication | 0..* | USCoreMedicationProfile | ||
code | S | 1..1 | CodeableConcept | Binding: US Core Medication Codes (RxNorm) (preferred) |
manufacturer | 0..1 | Reference(QICoreOrganization) | ||
form | 0..1 | CodeableConcept | Binding: SNOMEDCTFormCodes (example) | |
ingredient | 0..* | BackboneElement | ||
item[x] | 1..1 | |||
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(QICoreSubstance | QICoreMedication) | |||
isActive | 0..1 | boolean | ||
Documentation for this format |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Medication | I | 0..* | USCoreMedicationProfile | Definition of a Medication |
id | Σ | 0..1 | string | Logical id of this artifact |
meta | ΣI | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!ΣI | 0..1 | uri | A set of rules under which this content was created |
language | I | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | I | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!I | 0..* | Extension | Extensions that cannot be ignored |
identifier | ΣI | 0..* | Identifier | Business identifier for this medication |
code | SΣI | 1..1 | CodeableConcept | Codes that identify this medication Binding: US Core Medication Codes (RxNorm) (preferred) |
status | ?!ΣI | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required) |
manufacturer | ΣI | 0..1 | Reference(QICoreOrganization) | Manufacturer of the item |
form | I | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: SNOMEDCTFormCodes (example) |
amount | ΣI | 0..1 | Ratio | Amount of drug in package |
ingredient | I | 0..* | BackboneElement | Active or inactive ingredient |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | I | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
item[x] | I | 1..1 | The actual ingredient or content | |
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(QICoreSubstance | QICoreMedication) | |||
isActive | I | 0..1 | boolean | Active ingredient indicator |
strength | I | 0..1 | Ratio | Quantity of ingredient present |
batch | I | 0..1 | BackboneElement | Details about packaged medications |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | I | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
lotNumber | I | 0..1 | string | Identifier assigned to batch |
expirationDate | I | 0..1 | dateTime | When batch will expire |
Documentation for this format |
Differential View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Medication | 0..* | USCoreMedicationProfile | ||
code | S | 1..1 | CodeableConcept | Binding: US Core Medication Codes (RxNorm) (preferred) |
manufacturer | 0..1 | Reference(QICoreOrganization) | ||
form | 0..1 | CodeableConcept | Binding: SNOMEDCTFormCodes (example) | |
ingredient | 0..* | BackboneElement | ||
item[x] | 1..1 | |||
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(QICoreSubstance | QICoreMedication) | |||
isActive | 0..1 | boolean | ||
Documentation for this format |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Medication | I | 0..* | USCoreMedicationProfile | Definition of a Medication |
id | Σ | 0..1 | string | Logical id of this artifact |
meta | ΣI | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!ΣI | 0..1 | uri | A set of rules under which this content was created |
language | I | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | I | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!I | 0..* | Extension | Extensions that cannot be ignored |
identifier | ΣI | 0..* | Identifier | Business identifier for this medication |
code | SΣI | 1..1 | CodeableConcept | Codes that identify this medication Binding: US Core Medication Codes (RxNorm) (preferred) |
status | ?!ΣI | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required) |
manufacturer | ΣI | 0..1 | Reference(QICoreOrganization) | Manufacturer of the item |
form | I | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: SNOMEDCTFormCodes (example) |
amount | ΣI | 0..1 | Ratio | Amount of drug in package |
ingredient | I | 0..* | BackboneElement | Active or inactive ingredient |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | I | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
item[x] | I | 1..1 | The actual ingredient or content | |
itemCodeableConcept | CodeableConcept | |||
itemReference | Reference(QICoreSubstance | QICoreMedication) | |||
isActive | I | 0..1 | boolean | Active ingredient indicator |
strength | I | 0..1 | Ratio | Quantity of ingredient present |
batch | I | 0..1 | BackboneElement | Details about packaged medications |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | I | 0..* | Extension | Additional content defined by implementations |
modifierExtension | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
lotNumber | I | 0..1 | string | Identifier assigned to batch |
expirationDate | I | 0..1 | dateTime | When batch will expire |
Documentation for this format |
Path | Conformance | ValueSet |
Medication.language | preferred | CommonLanguages Max Binding: AllLanguages |
Medication.code | preferred | USCoreMedicationCodes |
Medication.status | required | Medication Status Codes |
Medication.form | example | SNOMEDCTFormCodes |
Id | Path | Details | Requirements |
dom-2 | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | Medication | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource : contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty() | |
dom-4 | Medication | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
dom-5 | Medication | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | Medication | A resource should have narrative for robust management : text.`div`.exists() | |
ele-1 | Medication.meta | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.implicitRules | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.language | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.text | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | Medication.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | Medication.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | Medication.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | Medication.identifier | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.code | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.status | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.manufacturer | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.form | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.amount | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.ingredient | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.ingredient.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | Medication.ingredient.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | Medication.ingredient.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | Medication.ingredient.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | Medication.ingredient.item[x] | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.ingredient.isActive | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.ingredient.strength | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.batch | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.batch.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | Medication.batch.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | Medication.batch.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | Medication.batch.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | Medication.batch.lotNumber | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | Medication.batch.expirationDate | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |