Facade Questionnaire

http://fhir.patientsknowbest.com/structuredefinition/facade-questionnaire

https://www.hl7.org/fhir/STU3/questionnaire.html

Overview

Each [[Consultation]] in PKB will map to a single FHIR Questionnaire.

Relevant PKB entities

Mappings

FHIR

PKB

Notes

FHIR

PKB

Notes

Resource id

[[Consultation.Public ID]]

 

Resource meta

[[Consultation.Privacy Label]] code mappings (PKB → FHIR):

  • GENERAL_HEALTH → GENERAL_HEALTH

  • MENTAL_HEALTH → MENTAL_HEALTH

  • SEXUAL_HEALTH → SEXUAL_HEALTH

  • SOCIAL_CARE → SOCIAL_CARE

 

Questionnaire.title

[[Consultation.Name]]

 

Questionnaire.status

"active"

Note that a Questionnaire has a status of “active” even if it has been hidden in PKB.

Questionnaire.date

[[Consultation.Creation Timestamp]]

 

Questionnaire.publisher

 

Questionnaire.item

For each [[Consultation->Consultation Item]]

  • item[x]: BackboneElement

    • linkId = [[Consultation Item.ID]]

    • text = [[Consultation Item.Text]]

    • type = [[Consultation Item.Type]]

    • <conditional>

    • If [[Consultation Item.Type]] is TITLE:

      • omit the repeats element

    • Else If [[Consultation Item.Type]] is CHECKBOX: 

      • repeats = true

    • Else:

      • repeats = false

    • <conditional>

    • If [[Consultation Item.Type]] is RADIO or CHECKBOX, add an option element for each [[Consultation Item Option]]:

    • option: BackboneElement

      • valueString = [[Consultation Item Option.Text]]

    • Else: omit the option element

[[Consultation Item.Type]] code mappings (PKB → FHIR):

  • TITLE → display

  • TEXT → text

  • RADIO → choice

  • CHECKBOX → choice