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![]() |
---|---|---|---|---|
![]() ![]() | 0..* | USCoreMedicationProfile | ||
![]() ![]() ![]() | S | 1..1 | CodeableConcept | Binding: US Core Medication Codes (RxNorm) (preferred) |
![]() ![]() ![]() | 0..1 | Reference(QICoreOrganization) | ||
![]() ![]() ![]() | 0..1 | CodeableConcept | Binding: SNOMEDCTFormCodes (example) | |
![]() ![]() ![]() | 0..* | BackboneElement | ||
![]() ![]() ![]() ![]() | 1..1 | |||
![]() ![]() ![]() ![]() ![]() | CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() | Reference(QICoreSubstance | QICoreMedication) | |||
![]() ![]() ![]() ![]() | 0..1 | boolean | ||
![]() |
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | I | 0..* | USCoreMedicationProfile | Definition of a Medication |
![]() ![]() ![]() | Σ | 0..1 | string | Logical id of this artifact |
![]() ![]() ![]() | ΣI | 0..1 | Meta | Metadata about the resource |
![]() ![]() ![]() | ?!ΣI | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() ![]() | I | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages |
![]() ![]() ![]() | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
![]() ![]() ![]() | 0..* | Resource | Contained, inline Resources | |
![]() ![]() ![]() | I | 0..* | Extension | Additional content defined by implementations |
![]() ![]() ![]() | ?!I | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() ![]() | ΣI | 0..* | Identifier | Business identifier for this medication |
![]() ![]() ![]() | SΣI | 1..1 | CodeableConcept | Codes that identify this medication Binding: US Core Medication Codes (RxNorm) (preferred) |
![]() ![]() ![]() | ?!ΣI | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required) |
![]() ![]() ![]() | ΣI | 0..1 | Reference(QICoreOrganization) | Manufacturer of the item |
![]() ![]() ![]() | I | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: SNOMEDCTFormCodes (example) |
![]() ![]() ![]() | ΣI | 0..1 | Ratio | Amount of drug in package |
![]() ![]() ![]() | I | 0..* | BackboneElement | Active or inactive ingredient |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | I | 0..* | Extension | Additional content defined by implementations |
![]() ![]() ![]() ![]() | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() | I | 1..1 | The actual ingredient or content | |
![]() ![]() ![]() ![]() ![]() | CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() | Reference(QICoreSubstance | QICoreMedication) | |||
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Active ingredient indicator |
![]() ![]() ![]() ![]() | I | 0..1 | Ratio | Quantity of ingredient present |
![]() ![]() ![]() | I | 0..1 | BackboneElement | Details about packaged medications |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | I | 0..* | Extension | Additional content defined by implementations |
![]() ![]() ![]() ![]() | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() | I | 0..1 | string | Identifier assigned to batch |
![]() ![]() ![]() ![]() | I | 0..1 | dateTime | When batch will expire |
![]() |
Differential View
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | 0..* | USCoreMedicationProfile | ||
![]() ![]() ![]() | S | 1..1 | CodeableConcept | Binding: US Core Medication Codes (RxNorm) (preferred) |
![]() ![]() ![]() | 0..1 | Reference(QICoreOrganization) | ||
![]() ![]() ![]() | 0..1 | CodeableConcept | Binding: SNOMEDCTFormCodes (example) | |
![]() ![]() ![]() | 0..* | BackboneElement | ||
![]() ![]() ![]() ![]() | 1..1 | |||
![]() ![]() ![]() ![]() ![]() | CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() | Reference(QICoreSubstance | QICoreMedication) | |||
![]() ![]() ![]() ![]() | 0..1 | boolean | ||
![]() |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | I | 0..* | USCoreMedicationProfile | Definition of a Medication |
![]() ![]() ![]() | Σ | 0..1 | string | Logical id of this artifact |
![]() ![]() ![]() | ΣI | 0..1 | Meta | Metadata about the resource |
![]() ![]() ![]() | ?!ΣI | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() ![]() | I | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred) Max Binding: AllLanguages |
![]() ![]() ![]() | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
![]() ![]() ![]() | 0..* | Resource | Contained, inline Resources | |
![]() ![]() ![]() | I | 0..* | Extension | Additional content defined by implementations |
![]() ![]() ![]() | ?!I | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() ![]() | ΣI | 0..* | Identifier | Business identifier for this medication |
![]() ![]() ![]() | SΣI | 1..1 | CodeableConcept | Codes that identify this medication Binding: US Core Medication Codes (RxNorm) (preferred) |
![]() ![]() ![]() | ?!ΣI | 0..1 | code | active | inactive | entered-in-error Binding: Medication Status Codes (required) |
![]() ![]() ![]() | ΣI | 0..1 | Reference(QICoreOrganization) | Manufacturer of the item |
![]() ![]() ![]() | I | 0..1 | CodeableConcept | powder | tablets | capsule + Binding: SNOMEDCTFormCodes (example) |
![]() ![]() ![]() | ΣI | 0..1 | Ratio | Amount of drug in package |
![]() ![]() ![]() | I | 0..* | BackboneElement | Active or inactive ingredient |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | I | 0..* | Extension | Additional content defined by implementations |
![]() ![]() ![]() ![]() | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() | I | 1..1 | The actual ingredient or content | |
![]() ![]() ![]() ![]() ![]() | CodeableConcept | |||
![]() ![]() ![]() ![]() ![]() | Reference(QICoreSubstance | QICoreMedication) | |||
![]() ![]() ![]() ![]() | I | 0..1 | boolean | Active ingredient indicator |
![]() ![]() ![]() ![]() | I | 0..1 | Ratio | Quantity of ingredient present |
![]() ![]() ![]() | I | 0..1 | BackboneElement | Details about packaged medications |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | I | 0..* | Extension | Additional content defined by implementations |
![]() ![]() ![]() ![]() | ?!ΣI | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
![]() ![]() ![]() ![]() | I | 0..1 | string | Identifier assigned to batch |
![]() ![]() ![]() ![]() | I | 0..1 | dateTime | When batch will expire |
![]() |
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()) |