Implementation Guide
23.1.0 - R4 APIs

Publish Box goes here

Resource Profile: AthenaMedication - Mappings

Active as of 2022-03-01

Mappings for the athena-medication-profile resource profile.

Mappings for athenaFlow (http://unknown.org/athenaFlow)

AthenaMedication
MedicationFHIRR4_MEDICATIONVIEW
   idMakeId("MEDINFO", %DDID%)
   code
      coding
      coding (RXNORM)MakeRxnormCodingList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null)
      coding (DDID)
         code%DDID%
      coding (GPI)
         code%GPI%
      coding (KDC)
         code%KDC%
      coding (DNID)
         code%DNID%
      coding (NDCNUM)
         code%NDCNUM%
      text (PRODUCTNAME)MakeMedName(%PRODUCTNAME%,%GENERICNAME%, %STRENGTH%,%DOSEFORM%)
   form
      coding
      coding (FDA Dose Form)MapCoding(%DOSEFORM%,"DOSEFORM")
      coding (DOSEFORM)
         code%DOSEFORM%
      text%DOSEFORM%

Mappings for athenaPractice (http://unknown.org/athenaPractice)

AthenaMedication
MedicationFHIRR4_MEDICATIONVIEW
   idMakeId("MEDINFO", %DDID%)
   code
      coding
      coding (RXNORM)MakeRxnormCodingList(%RXNORM%,"http://www.nlm.nih.gov/research/umls/rxnorm",null)
      coding (DDID)
         code%DDID%
      coding (GPI)
         code%GPI%
      coding (KDC)
         code%KDC%
      coding (DNID)
         code%DNID%
      coding (NDCNUM)
         code%NDCNUM%
      text (PRODUCTNAME)MakeMedName(%PRODUCTNAME%,%GENERICNAME%, %STRENGTH%,%DOSEFORM%)
   form
      coding
      coding (FDA Dose Form)MapCoding(%DOSEFORM%,"DOSEFORM")
      coding (DOSEFORM)
         code%DOSEFORM%
      text%DOSEFORM%

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

AthenaMedication
MedicationNewRx/MedicationPrescribed -or- RxFill/MedicationDispensed -or- RxHistoryResponse/MedicationDispensed -or- RxHistoryResponse/MedicationPrescribed
   codecoding.code = //element(*,MedicationType)/DrugCoded/ProductCode coding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier coding.display = //element(*,MedicationType)/DrugDescription
   manufacturerno mapping
   formcoding.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
   batchno mapping
      lotNumberno mapping
      expirationDateno mapping

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

AthenaMedication
MedicationEntity. Role, or Act, ManufacturedProduct[classCode=ADMM]
   meta
      idn/a
      extensionn/a
   textAct.text?
   containedN/A
   extensionN/A
   modifierExtensionN/A
   identifier.id
   code.code
      idn/a
      extensionn/a
      codingunion(., ./translation)
      coding (RXNORM)union(., ./translation)
      coding (DDID)union(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      coding (GPI)union(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      coding (KDC)union(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      coding (DNID)union(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      coding (NDCNUM)union(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      text (PRODUCTNAME)./originalText[mediaType/code="text/plain"]/data
   status.statusCode
   manufacturer.player.scopingRole[typeCode=MANU].scoper
   form.formCode
      idn/a
      extensionn/a
      codingunion(., ./translation)
      coding (FDA Dose Form)union(., ./translation)
      coding (DOSEFORM)union(., ./translation)
         idn/a
         extensionn/a
         system./codeSystem
         version./codeSystemVersion
         code./code
         displayCV.displayName
         userSelectedCD.codingRationale
      text./originalText[mediaType/code="text/plain"]/data
   amount.quantity
   ingredient.scopesRole[typeCode=INGR]
      idn/a
      extensionn/a
      modifierExtensionN/A
      item[x].player
      isActiveNA
      strength.quantity
   batch.player[classCode=CONT]
      idn/a
      extensionn/a
      modifierExtensionN/A
      lotNumber.id
      expirationDateparticipation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime

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

AthenaMedication
Medication
   identifierFiveWs.identifier
   codeFiveWs.class
   manufacturerFiveWs.actor

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

AthenaMedication
Medication
   codeRXO-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
      codingC*E.1-8, C*E.10-22
      coding (RXNORM)C*E.1-8, C*E.10-22
      coding (DDID)C*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      coding (GPI)C*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      coding (KDC)C*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      coding (DNID)C*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      coding (NDCNUM)C*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      text (PRODUCTNAME)C*E.9. But note many systems use C*E.2 for this
   manufacturerRXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name
   formRXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form
      codingC*E.1-8, C*E.10-22
      coding (FDA Dose Form)C*E.1-8, C*E.10-22
      coding (DOSEFORM)C*E.1-8, C*E.10-22
         systemC*E.3
         versionC*E.7
         codeC*E.1
         displayC*E.2 - but note this is not well followed
         userSelectedSometimes implied by being first
      textC*E.9. But note many systems use C*E.2 for this
   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
      strengthRXC-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
      lotNumberRXA-15 Substance Lot Number / RXG-19 Substance Lot Number
      expirationDateRXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date