Da Vinci - Documentation Templates and Rules
1.0.0 - STU 1

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

## Resource Profile: DTRQuestionnaireResponse - Mappings

Mappings for the dtr-questionnaireresponse-r4 resource profile.

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

DTRQuestionnaireResponse
QuestionnaireResponse | Event
identifier | Event.identifier
questionnaire | Event.instantiates
status | Event.status
subject | Event.subject
encounter | Event.encounter
authored | Event.occurrence[x]
author | Event.performer

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

DTRQuestionnaireResponse
QuestionnaireResponse | Entity. Role, or Act, Observation[moodCode=EVN]
text | Act.text?
contained | N/A
extension | N/A
modifierExtension | N/A
identifier | .id
questionnaire | ./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]
status | .statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish "in-progress" from "published)
subject | .participation[typeCode=SBJ].role
encounter | .inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]
authored | .participation[typeCode=AUT].time
author | .participation[typeCode=AUT].role
source | .participation[typeCode=INF].role
item | .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
id | n/a
extension | ./participation[typeCode=SBJ]/role
modifierExtension | N/A
linkId | .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id
definition | .outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code
text | .text
answer | .value[type=LIST_ANY]
id | n/a
extension | n/a
modifierExtension | N/A
value[x] | .item
item | .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]
item | .outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]

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

DTRQuestionnaireResponse
QuestionnaireResponse |
identifier | FiveWs.identifier
status | FiveWs.status
subject | FiveWs.subject[x], FiveWs.subject
encounter | FiveWs.context
authored | FiveWs.recorded
author | FiveWs.author
source | FiveWs.source