---
title: "Facade QuestionnaireResponse"
canonical: "https://wiki.patientsknowbest.com/space/api/3364946477/Facade%20QuestionnaireResponse"
format: markdown
---
[http://fhir.patientsknowbest.com/structuredefinition/facade-questionnaireresponse](http://fhir.patientsknowbest.com/structuredefinition/facade-questionnaireresponse)

[https://www.hl7.org/fhir/STU3/questionnaireresponse.html](https://www.hl7.org/fhir/STU3/questionnaireresponse.html)

## Overview

Each [[Consultation Response]] in PKB will map to a FHIR QuestionnaireResponse.

## Relevant PKB entities

- [[[Consultation Response]]](https://wiki.patientsknowbest.com/space/api/3744759809/Entity%3A+Consultation)

## Mappings

| **FHIR** | **PKB** | **Notes** |
| --- | --- | --- |
| Resource id | [[Consultation Response.Public ID]] |  |
| Resource meta | - meta: Meta
  - lastUpdated = [[Consultation Response.Completion Timestamp]] |  |
| QuestionnaireResponse.basedOn | - basedOn: Reference
  - reference = the relative URL of the ProcedureRequest resource |  |
| QuestionnaireResponse.questionnaire | - questionnaire: Reference
  - reference = the relative URL of the Questionnaire resource
  - display = [[Consultation Response->Consultation.Name]] |  |
| QuestionnaireResponse.status | "completed" |  |
| QuestionnaireResponse.subject | - subject: Reference
  - reference = the relative URL of the Patient resource
  - display = [[User.Title]] [[User.Given Name]] [[User.Family Name]] |  |
| QuestionnaireResponse.authored | [[Consultation Response.Completion Timestamp]] |  |
| QuestionnaireResponse.item | For each collection of [[Consultation Response→Consultation Response Item]] as grouped by [[Consultation Response Item→Consultation Item]]:<br>- item[x]: BackboneElement
  - linkId = [[Consultation Response Item→Consultation Item.ID]]
  - text = [[Consultation Response Item→Consultation Item.Text]]
  - For each [[Consultation Response Item]] in the group:
    - answer: BackboneElement
      - valueString = [[Consultation Response Item.Text]] |  |