Pharmacist Services and Summaries - FHIR (PhCP)
1.0.0 - STU Release 1.0.0 for FHIR R4

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

## Resource Profile: PhCPInstructionProcedure - Mappings

Mappings for the PhCP-Instruction-Procedure resource profile.

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

PhCPInstructionProcedure
Procedure | Procedure
status | Procedure.status
code | Procedure.code
subject | Procedure.subject
performed[x] | Procedure.performed[x]

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

PhCPInstructionProcedure
Procedure | Event
identifier | Event.identifier
instantiatesCanonical | Event.instantiatesCanonical
instantiatesUri | Event.instantiatesUri
basedOn | Event.basedOn
partOf | Event.partOf
status | Event.status
statusReason | Event.statusReason
code | Event.code
subject | Event.subject
encounter | Event.context
performed[x] | Event.occurrence[x]
performer | Event.performer
function | Event.performer.function
actor | Event.performer.actor
reasonCode | Event.reasonCode
reasonReference | Event.reasonReference
note | Event.note

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

PhCPInstructionProcedure
Procedure | Entity. Role, or Act, Procedure[moodCode=EVN]
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .id
instantiatesCanonical | .outboundRelationship[typeCode=DEFN].target
instantiatesUri | .outboundRelationship[typeCode=DEFN].target
basedOn | .outboundRelationship[typeCode=FLFS].target[classCode=(various e.g. PROC, OBS, PCPR, ACT, moodCode=RQO].code
partOf | .inboundRelationship[typeCode=COMP].source[classCode=SBADM or PROC or OBS, moodCode=EVN]
status | statusCode
statusReason | .reason.Observation.value
category | .outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code
code | .code
subject | .participation[typeCode=SBJ].role
encounter | .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]
performed[x] | .effectiveTime
recorder | .participation[typeCode=AUT].role
asserter | .participation[typeCode=INF].role
performer | .participation[typeCode=PRF]
id | n/a
extension | n/a
modifierExtension | N/A
function | .functionCode
actor | .role
onBehalfOf | .scoper
location | .participation[typeCode=LOC].role[classCode=SDLOC]
reasonCode | .reasonCode
reasonReference | .reasonCode
bodySite | .targetSiteCode
outcome | .outboundRelationship[typeCode=OUT].target.text
report | .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]
complication | .outboundRelationship[typeCode=OUTC].target[classCode=OBS, code="complication", moodCode=EVN].value
complicationDetail | .outboundRelationship[typeCode=OUTC].target[classCode=OBS, code="complication", moodCode=EVN].value
followUp | .outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code
note | .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value
focalDevice | .participation[typeCode=DEV].role[classCode=MANU]
id | n/a
extension | n/a
modifierExtension | N/A
action | .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="procedure device action"].value=:procedure device action codes
manipulated | .participation[typeCode=DEV].role[classCode=SDLOC]
usedReference | .participation[typeCode=DEV].role[classCode=MANU] or .participation[typeCode=CSM].role[classCode=ADMM] (for Medication or Substance)
usedCode | participation[typeCode=Dev].role[classCode=MANU]

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

PhCPInstructionProcedure
Procedure |
identifier | FiveWs.identifier
status | FiveWs.status
category | FiveWs.class
code | FiveWs.what[x]
subject | FiveWs.subject[x], FiveWs.subject
encounter | FiveWs.context
performed[x] | FiveWs.done[x]
recorder | FiveWs.author
asserter | FiveWs.source
performer |
actor | FiveWs.actor
location | FiveWs.where[x]
reasonCode | FiveWs.why[x]
reasonReference | FiveWs.why[x]

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

PhCPInstructionProcedure
Procedure |
identifier | Some combination of ORC-2 / ORC-3 / OBR-2 / OBR-3 / IPC-1 / IPC-2 / IPC-3 / IPC-4
code | OBR-44/OBR-45
subject | PID-3
encounter | PV1-19
performed[x] | OBR-7
performer |
function | Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25
actor | ORC-19/PRT-5
bodySite | OBX-20
note | NTE