QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## Resource Profile: QICoreMedication - Mappings

Mappings for the qicore-medication resource profile.

### Mappings for Mapping to Quality Improvement Domain Analysis Model (http://hl7.org/qidam)

QICoreMedication
Medication |
ingredient |
isActive | Not in QIDAM, but added because it was determined to be important for drug-allergy checking. For example, if the patient is allergic to Depakote (a trade name, and includes blue dye as an inactive ingredient), then when patient is prescribed warfarin, it shoots out a drug-allergy alert because warfarin also contains blue dye. Providers hate this. We recently overcame this problem by having the drug-allergy alert interaction settings only check for allergies to active ingredients.

### Mappings for Argonaut-DQ-DSTU2 (http://unknown.org/Argonaut-DQ-DSTU2)

QICoreMedication
Medication | Medication
code | Medication.code

### Mappings for Mapping to NCPDP SCRIPT 10.6 (http://ncpdp.org/SCRIPT10_6)

QICoreMedication
Medication | NewRx/MedicationPrescribed -or- RxFill/MedicationDispensed -or- RxHistoryResponse/MedicationDispensed -or- RxHistoryResponse/MedicationPrescribed
code | coding.code = //element(*,MedicationType)/DrugCoded/ProductCode coding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier coding.display = //element(*,MedicationType)/DrugDescription
manufacturer | no mapping
form | coding.code = //element(*,DrugCodedType)/FormCode coding.system = //element(*,DrugCodedType)/FormSourceCode
ingredient |
item[x] | coding.code = //element(*,MedicationType)/DrugCoded/ProductCode coding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier coding.display = //element(*,MedicationType)/DrugDescription
strength | //element(*,DrugCodedType)/Strength
batch | no mapping
lotNumber | no mapping
expirationDate | no mapping

### Mappings for RIM Mapping (http://hl7.org/v3)

QICoreMedication
Medication | Entity. Role, or Act, ManufacturedProduct[classCode=ADMM]
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .id
code | .code
status | .statusCode
manufacturer | .player.scopingRole[typeCode=MANU].scoper
form | .formCode
amount | .quantity
ingredient | .scopesRole[typeCode=INGR]
id | n/a
extension | n/a
modifierExtension | N/A
item[x] | .player
isActive | NA
strength | .quantity
batch | .player[classCode=CONT]
id | n/a
extension | n/a
modifierExtension | N/A
lotNumber | .id
expirationDate | participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime

### Mappings for FiveWs Pattern Mapping (http://hl7.org/fhir/fivews)

QICoreMedication
Medication |
identifier | FiveWs.identifier
code | FiveWs.class
manufacturer | FiveWs.actor

### Mappings for HL7 v2 Mapping (http://hl7.org/v2)

QICoreMedication
Medication |
code | RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code
manufacturer | RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name
form | RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form
ingredient |
item[x] | RXC-2-Component Code if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code
strength | RXC-3-Component Amount & RXC-4-Component Units if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units
batch |
lotNumber | RXA-15 Substance Lot Number / RXG-19 Substance Lot Number
expirationDate | RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date