Implementation Guide
ePA Medication Service
Version 1.0.5-ballot.1 - draft

Resource Profile: EPAMedicationDispense - Mappings

Draft as of 2025-02-14

Mappings for the epa-medication-dispense resource profile.

Mappings for Workflow Pattern (http://hl7.org/fhir/workflow)

EPAMedicationDispense
MedicationDispenseEvent
   identifierEvent.identifier
   identifier (RxOriginatorProcessIdentifier)Event.identifier
   partOfEvent.partOf
   statusEvent.status
   statusReason[x]Event.statusReason
   medication[x]Event.code
   subjectEvent.subject
   contextEvent.context
   performerEvent.performer
      actorEvent.performer.actor
   authorizingPrescriptionEvent.basedOn
   whenHandedOverEvent.occurrence[x]
   noteEvent.note

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

EPAMedicationDispense
MedicationDispenseEntity. Role, or Act, Supply[moodCode=EVN]
   metan/a, N/A
      idn/a
      extensionn/a, N/A
      versionIdn/a
      lastUpdatedn/a
      sourcen/a
      profilen/a
      securityn/a, CV
      tagn/a, CV
   implicitRulesn/a
   languagen/a
   textn/a, N/A, Act.text?
   containedEntity. Role, or Act, N/A
   extensionn/a, N/A
   modifierExtensionn/a, N/A
   identifiern/a, II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT], .id
   identifier (RxOriginatorProcessIdentifier)n/a, II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT], .id
   partOfn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .outboundRelationship[typeCode=COMP]/target[classCode=PROC,moodCode=EVN]
   statusn/a, .statusCode
   statusReason[x]n/a, .outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="not done reason"].value
   categoryn/a, CD, .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication dispense"].value
   medication[x]n/a, .participation[typeCode=PRD].role
   subjectn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .participation[typeCode=SBJ].role[classCode=PAT]
      idn/a
      extensionn/a, N/A
      referencen/a, N/A
      typen/a, N/A
      identifiern/a, II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT], .identifier
      displayn/a, N/A
   contextn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]
   supportingInformationn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]
   performern/a, .participation[typeCode=PRF]
      idn/a
      extensionn/a, N/A
      modifierExtensionn/a, N/A
      functionn/a, CD, participation[typeCode=PRF].functionCode
      actorn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .role
   locationn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .participation[typeCode=LOC].role
   authorizingPrescriptionn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .outboundRelationship[typeCode=FLFS].target[moodCode=RQO]
      idn/a
      extensionn/a, N/A
      referencen/a, N/A
      typen/a, N/A
      identifiern/a, II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT], .identifier
      displayn/a, N/A
   typen/a, CD, .code
   quantityn/a, PQ, IVL<PQ>, MO, CO, depending on the values, .quantity
   daysSupplyn/a, PQ, IVL<PQ>, MO, CO, depending on the values, effectiveUseTime
   whenPreparedn/a, .effectiveTime[xmi:type=IVL_TS].low
   whenHandedOvern/a, .effectiveTime[xmi:type=IVL_TS].high
   destinationn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .participation[typeCode=DST].role
   receivern/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .participation[typeCode=RCV].role
   noten/a, Act, .inboundRelationship[typeCode=SUBJ]/source[classCode=ACT,moodCode=EVN]
   dosageInstructionn/a, .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]
      idn/a
      extensionn/a, N/A
      modifierExtensionn/a, N/A
      sequencen/a, .text
      textn/a, .text
      additionalInstructionn/a, CD, .text
      patientInstructionn/a, .text
      timingn/a, QSET<TS> (GTS), .effectiveTime
      asNeeded[x]n/a, .outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept
      siten/a, CD, .approachSiteCode
      routen/a, CD, .routeCode
      methodn/a, CD, .doseQuantity
      doseAndRaten/a
         idn/a
         extensionn/a, N/A
         typen/a, CD
         dose[x]n/a, .doseQuantity
         rate[x]n/a, .rateQuantity
      maxDosePerPeriodn/a, RTO, .maxDoseQuantity
      maxDosePerAdministrationn/a, PQ, IVL<PQ>, MO, CO, depending on the values, not supported
      maxDosePerLifetimen/a, PQ, IVL<PQ>, MO, CO, depending on the values, not supported
   substitutionn/a, .outboundRelationship[typeCode=COMP].target[classCode=SUBST, moodCode=EVN]
      idn/a
      extensionn/a, N/A
      modifierExtensionn/a, N/A
      wasSubstitutedn/a, .actionNegationInd
      typen/a, CD, .code
      reasonn/a, CD, .reasonCode
      responsiblePartyn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .participation[typeCode=PFM].role[classCode=ASSIGN]
   detectedIssuen/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value
   eventHistoryn/a, The target of a resource reference is a RIM entry point (Act, Role, or Entity), .inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]

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

EPAMedicationDispense
MedicationDispense
   identifierFiveWs.identifier
   identifier (RxOriginatorProcessIdentifier)FiveWs.identifier
   statusFiveWs.status
   medication[x]FiveWs.what[x]
   subjectFiveWs.subject[x], FiveWs.subject
   supportingInformationFiveWs.context

Mappings for V3 Pharmacy Dispense RMIM (http://www.hl7.org/v3/PORX_RM020070UV)

EPAMedicationDispense
MedicationDispense
   identifierCombinedMedicationDispense.id
   identifier (RxOriginatorProcessIdentifier)CombinedMedicationDispense.id
   statusCombinedMedicationDispense.SupplyEvent.statusCode
   medication[x]CombinedMedicationRequest.component1.AdministrationRequest.consumable
   authorizingPrescriptionCombinedMedicationDispense.inFulfillmentOf
   typeCombinedMedicationDispense.SupplyEvent.code
   quantityCombinedMedicationDispense.SupplyEvent.quantity
   whenPreparedCombinedMedicationDispense.SupplyEvent.effectiveTime
   whenHandedOverCombinedMedicationDispense.SupplyEvent.effectiveTime
   destinationCombinedMedicationDispense.SupplyEvent.destination
   receiverCombinedMedicationDispense.SupplyEvent.receiver
   substitutionCombinedMedicationDispense.substitutionMade
      typeCombinedMedicationDispense.substitutionMade.code
      reasonCombinedMedicationDispense.substitutionMade.reasonCode
      responsiblePartyCombinedMedicationDispense.substitutionMade.ResponsibleParty

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

EPAMedicationDispense
MedicationDispense
   meta
      securityCE/CNE/CWE subset one of the sets of component 1-3 or 4-6
      tagCE/CNE/CWE subset one of the sets of component 1-3 or 4-6
   identifierCX / EI (occasionally, more often EI maps to a resource id or a URL)
   identifier (RxOriginatorProcessIdentifier)CX / EI (occasionally, more often EI maps to a resource id or a URL)
   categoryCE/CNE/CWE
   medication[x]RXD-2-Dispense/Give Code
   subjectPID-3-Patient ID List
      identifierCX / EI (occasionally, more often EI maps to a resource id or a URL)
   performer
      functionCE/CNE/CWE
   authorizingPrescriptionORC-2 Placer Order Number
      identifierCX / EI (occasionally, more often EI maps to a resource id or a URL)
   typeCE/CNE/CWE, RXD-33-Dispense Type
   quantitySN (see also Range) or CQ, RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system
   daysSupplySN (see also Range) or CQ, TQ1.6 Timing/Quantity Segment Service Duration. Prior to v2.5, ORC.7.3 Common Order Segment / Quantity/Timing / Duration component. This is a formatted string, first character for the time unit (e.g., D=days), followed by the value. For example, “D14” represents “14 days supply” From v2.5 on, TQ1.6 Timing/Quantity Segment / Service Duration. This is a CQ data type (<Quantity (NM)> ^ <Units (CWE)>), thus for days supply, assuming the unit of measure is “days”, the numeric value is TQ1.6.1 (…|14^ For backwards compatibility, ORC.7 was permitted through v2.6. Both forms (field and segment) may be present in v2.5, v2.5.1, and v2.6
   whenPreparedRXD-3-Date/Time Dispensed
   whenHandedOverRXD-3-Date/Time Dispensed
   destinationRXD-13 Dispense-to Location; RXD-30 Dispense to Pharmacy; RXD-31 Dispense to Pharmacy Address
   noteN/A, RXD-9 Dispense Notes
   dosageInstruction
      sequenceTQ1-1
      textRXO-6; RXE-21
      additionalInstructionCE/CNE/CWE, RXO-7
      patientInstructionRXO-7
      timingN/A
      asNeeded[x]TQ1-9
      siteCE/CNE/CWE, RXR-2
      routeCE/CNE/CWE, RXR-1
      methodCE/CNE/CWE, RXR-4
      doseAndRateTQ1-2
         typeCE/CNE/CWE, RXO-21; RXE-23
         dose[x]RXO-2, RXE-3
         rate[x]RXE22, RXE23, RXE-24
      maxDosePerPeriodN/A, RXO-23, RXE-19
      maxDosePerAdministrationSN (see also Range) or CQ
      maxDosePerLifetimeSN (see also Range) or CQ
   substitution
      typeCE/CNE/CWE, RXO-9-Allow Substitutions / RXE-9-Substitution Status
      reasonCE/CNE/CWE