Common Data Models Harmonization
1.0.0 - STU 1 Publication

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

## Resource Profile: CdmhMedicationStatement - Mappings

Mappings for the cdmh-medicationstatement resource profile.

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

CdmhMedicationStatement
MedicationStatement | Event
identifier | Event.identifier
basedOn | Event.basedOn
partOf | Event.partOf
status | Event.status
statusReason | Event.statusReason
medication[x] | Event.code
subject | Event.subject
context | Event.context
effective[x] | Event.occurrence[x]
effective[x] (effectivePeriod) | Event.occurrence[x]
reasonCode | Event.reasonCode
reasonReference | Event.reasonReference
note | Event.note

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

CdmhMedicationStatement
MedicationStatement | Entity. Role, or Act, SubstanceAdministration
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .id
basedOn | .outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]
partOf | .outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]
status | .statusCode
statusReason | .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde
category | .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
medication[x] | .participation[typeCode=CSM].role[classCode=ADMM or MANU]
subject | .participation[typeCode=SBJ].role[classCode=PAT]
context | .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]
effective[x] | .effectiveTime
effective[x] (effectivePeriod) | .effectiveTime
dateAsserted | .participation[typeCode=AUT].time
informationSource | .participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)
derivedFrom | .outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]
reasonCode | .reasonCode
reasonReference | .outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="reason for use"].value
note | .inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value
dosage | refer dosageInstruction mapping

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

CdmhMedicationStatement
MedicationStatement |
identifier | FiveWs.identifier
status | FiveWs.status
category | FiveWs.class
medication[x] | FiveWs.what[x]
subject | FiveWs.subject[x], FiveWs.subject
effective[x] | FiveWs.done[x]
effective[x] (effectivePeriod) | FiveWs.done[x]
dateAsserted | FiveWs.recorded
informationSource | FiveWs.source
reasonCode | FiveWs.why[x]
reasonReference | FiveWs.why[x]

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

CdmhMedicationStatement
MedicationStatement |
subject | PID-3-Patient ID List