QI-Core Implementation Guide
4.1.0 - release

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

## Resource Profile: QICoreCarePlan - Mappings

Mappings for the qicore-careplan resource profile.

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

QICoreCarePlan
CarePlan | CarePlan
text | CarePlan.text
status | CarePlan.text.status
status | CarePlan.status
intent | NA (new element in STU3)
category | CarePlan.category
category (AssessPlan) | CarePlan.category
subject | CarePlan.subject

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

QICoreCarePlan
CarePlan | Request
identifier | Request.identifier
instantiatesCanonical | Request.instantiatesCanonical
instantiatesUri | Request.instantiatesUri
basedOn | Request.basedOn
replaces | Request.replaces
status | Request.status {uses different ValueSet}
intent | Request.intent
subject | Request.subject
encounter | Request.context
period | Request.occurrence[x]
created | Request.authoredOn
author | Request.requester
careTeam | Request.performer {similar but does not entail CareTeam}
addresses | Request.reasonReference
supportingInfo | Request.supportingInfo
activity | {no mapping NOTE: This is a list of contained Request-Event tuples!}
outcomeReference | {Event that is outcome of Request in activity.reference}
reference | {Request that resulted in Event in activity.actionResulting}
detail |
instantiatesCanonical | Request.instantiatesCanonical
instantiatesUri | Request.instantiatesUri
code | Request.code
reasonCode | Request.reasonCode
reasonReference | Request.reasonReference
status | Request.status
statusReason | Request.statusReason
doNotPerform | Request.doNotPerform
scheduled[x] | Request.occurrence[x]
performer | Request.performer
note | Request.note

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

QICoreCarePlan
CarePlan | Entity. Role, or Act, Act[classCode=PCPR, moodCode=INT]
text | Act.text?
id | n/a
extension | n/a
status | N/A
div | N/A
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .id
instantiatesCanonical | .outboundRelationship[typeCode=DEFN].target
instantiatesUri | .outboundRelationship[typeCode=DEFN].target
status | .statusCode planned = new active = active completed = completed
subject | .participation[typeCode=PAT].role[classCode=PAT]
encounter | .
period | .effectiveTime
created | .participation[typeCode=AUT].time
addresses | .actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]
goal | .outboundRelationship[typeCode<=OBJ].
activity | .outboundRelationship[typeCode=COMP].target
id | n/a
extension | n/a
modifierExtension | N/A
outcomeReference | .inboundRelationship[typeCode=FLFS].source
progress | .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value
reference | .outboundRelationship[typeCode=COMP].target
detail | .outboundRelationship[typeCode=COMP, subsetCode=SUMM].target
id | n/a
extension | n/a
modifierExtension | N/A
kind | .inboundRelationship[typeCode=COMP].source[classCode=LIST].code
instantiatesCanonical | .outboundRelationship[typeCode=DEFN].target
instantiatesUri | .outboundRelationship[typeCode=DEFN].target
code | .code
goal | .outboundRelationship[typeCode<=OBJ].
status | .statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted
doNotPerform | actionNegationInd
scheduled[x] | .effectiveTime
location | .participation[typeCode=LOC].role
performer | .participation[typeCode=PFM]
product[x] | .participation[typeCode=PRD].role
dailyAmount | .outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity
quantity | .outboundRelationship[typeCode=COMP][classCode=SPLY].quantity
description | .text
note | .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value

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

QICoreCarePlan
CarePlan |
identifier | FiveWs.identifier
status | FiveWs.status
category | FiveWs.class
category (AssessPlan) | FiveWs.class
description | FiveWs.what[x]
subject | FiveWs.subject[x], FiveWs.subject
encounter | FiveWs.context
period | FiveWs.planned
created | FiveWs.recorded
author | FiveWs.author
careTeam | FiveWs.actor
addresses | FiveWs.why[x]

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

QICoreCarePlan
CarePlan |
identifier | PTH-3
status | PTH-5
subject | PID-3
encounter | Associated PV1
period | GOL-7 / GOL-8
addresses | PRB-4
goal | GOL.1
activity |
progress | NTE?
detail |
code | OBR-4 / RXE-2 / RXO-1 / RXD-2
status | ORC-5?
scheduled[x] | TQ1
location | OBR-24(???!!)
performer | PRT-5 : ( PRV-4 = (provider participations)); PRT-5 : ( PRV-4 = (non-provider person participations )) ; PRT-5 : ( PRV-4 = (patient non-subject of care) ) ; PRT-8
product[x] | RXE-2 / RXO-1 / RXD-2
dailyAmount | RXO-23 / RXE-19 / RXD-12
quantity | RXO-11 / RXE-10 / RXD-4 / RXG-5 / RXA-6 / TQ1-2.1 *and* RXO-12 / RXE-11 / RXD-5 / RXG-7 / RXA-7 / TQ1-2.2
description | NTE?
note | NTE?