https://api.openhealthhub.com/OpenHealthhub/fhir/4/Questionnaire/cf1aa9a1-051d-4c0d-bb63-71a95276a71c
type: Questionnaire
node role: treeRoot
meta:
  profile:
    v: https://api.openhealthhub.com/OpenHealthhub/fhir/4/StructureDefinition/ohh-questionnaire
    l: ohh-questionnaire
  profile:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-render
    l: sdc-questionnaire-render
  profile:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-behave
    l: sdc-questionnaire-behave
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: Questionnaire cf1aa9a1-051d-4c0d-bb63-71a95276a71c Language: en Profiles: Ohh Questionnaire Profile, Advanced Rendering Questionnaire, Advanced Behavior Questionnaire Structure LinkID Text Cardinality Type Flags Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ExampleQuestionnaire This is an example FHIR Questionnaire instance based on the OhhQuestionnaire profile. Questionnaire https://api.openhealthhub.com/OpenHealthhub/fhir/4/Questionnaire/cf1aa9a1-051d-4c0d-bb63-71a95276a71c#0.1.0 #xD; root_ExampleQuestionnaire All questions in the questionnaire. 0..1 group #xD; example-question-1_group null 0..1 group #xD; example-question-1_title Example Question - Open Question 0..1 display #xD; example-question-1_question What is your name? 0..1 display #xD; example-question-1_before This question is preceded by this text. 0..1 display #xD; example-question-1_footer null 0..1 display #xD; example-question-1 Example Question 1. null 0..1 group #xD; example-question-1_formula_5 null 0..1 decimal #xD; example-question-1_text_4 4 0..1 display #xD; example-question-1_after After question 0..1 display #xD; example-question-1_below Below question 0..1 display #xD; example-question-1_next-button-label Next 0..1 display #xD; example-question-2_group null 0..1 group #xD; example-question-2_title Second Example Question - Multiple Select Question 0..1 display #xD; example-question-2_question What is your quest? 0..1 display #xD; example-question-2_before Text displayed beneath title, but before question 0..1 display #xD; example-question-2_footer null 0..1 display #xD; example-question-2 Example question 2. null 1..1 choice Options: 3 options #xD; example-question-2_after Text displayed after the question 0..1 display #xD; example-question-2_below Text shown below the question. 0..1 display #xD; example-question-2_next-button-label Next 0..1 display #xD; example-question-3_group null 0..1 group #xD; example-question-3_titl…
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-entryMode
    l: sdc-questionnaire-entryMode
  value: Code
    v: prior-edit
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-performerType
    l: sdc-questionnaire-performerType
  value: Code
    v: Practitioner
url:
  v: https://api.openhealthhub.com/OpenHealthhub/fhir/4/Questionnaire/cf1aa9a1-051d-4c0d-bb63-71a95276a71c
version:
  v: 0.1.0
name:
  v: ExampleQuestionnaire
title:
  v: Example Open Health Hub Questionnaire
status:
  v: active
date:
  v: 2025-12-03T12:00:57+00:00
publisher:
  v: Open Health Hub
contact:
  name:
    v: Open Health Hub
  telecom:
    system:
      v: url
    value:
      v: https://www.openhealthhub.com
  telecom:
    system:
      v: email
description:
  v: This is an example FHIR Questionnaire instance based on the OhhQuestionnaire profile.
code: http://snomed.info/id/273510007
  system:
    v: http://snomed.info/sct
    l: sct
  code:
    v: 273510007
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/variable
      l: variable
    value: Expression
      name:
        v: ExampleFormula
      language:
        v: text/fhirpath
      expression:
        v: (3/2).round()+1
  link id:
    v: root_ExampleQuestionnaire
  text:
    v: All questions in the questionnaire.
  type:
    v: group
  item:
    link id:
      v: example-question-1_group
    type:
      v: group
    item:
      link id:
        v: example-question-1_title
      text:
        v: Example Question - Open Question
      type:
        v: display
    item:
      link id:
        v: example-question-1_question
      text:
        v: What is your name?
      type:
        v: display
    item:
      link id:
        v: example-question-1_before
      text:
        v: This question is preceded by this text.
      type:
        v: display
    item:
      extension:
        value: CodeableConcept
      link id:
        v: example-question-1_footer
      type:
        v: display
    item:
      id:
        v: 1
      link id:
        v: example-question-1
      prefix:
        v: Example Question 1
      type:
        v: group
    item:
      link id:
        v: example-question-1_after
      text:
        v: After question
      type:
        v: display
    item:
      link id:
        v: example-question-1_below
      text:
        v: Below question
      type:
        v: display
    item:
      extension:
        value: CodeableConcept
      link id:
        v: example-question-1_next-button-label
      text:
        v: Next
      type:
        v: display
  item:
    link id:
      v: example-question-2_group
    type:
      v: group
    item:
      link id:
        v: example-question-2_title
      text:
        v: Second Example Question - Multiple Select Question
      type:
        v: display
    item:
      link id:
        v: example-question-2_question
      text:
        v: What is your quest?
      type:
        v: display
    item:
      link id:
        v: example-question-2_before
      text:
        v: Text displayed beneath title, but before question
      type:
        v: display
    item:
      extension:
        value: CodeableConcept
      link id:
        v: example-question-2_footer
      type:
        v: display
    item:
      id:
        v: 2
      extension:
        value: CodeableConcept
      link id:
        v: example-question-2
      prefix:
        v: Example question 2
      type:
        v: choice
      required:
        v: true
      repeats:
        v: false
      answer option:
        value: Coding
      answer option:
        value: Coding
      answer option:
        value: Coding
    item:
      link id:
        v: example-question-2_after

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-style
  l: rendering-style
value: String
  v: font-weight: bold; font-size: large;

CodeableConcept
coding:
  system:
    v: https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/ohh-questionnaire-item-control
    l: ohh-questionnaire-item-control
  code:
    v: show_navigation

v: 1

v: testcode

v: Test Code

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
  l: sdc-questionnaire-calculatedExpression
value: Expression
  language:
    v: text/fhirpath
  expression:
    v: %`Plus`

v: example-question-1_formula_5

version:
  v: 1
code:
  v: formula_code
display:
  v: Formula Code

v: decimal

v: true

v: example-question-1_text_4

v: 4

v: display

CodeableConcept
coding:
  system:
    v: https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/ohh-questionnaire-item-control
    l: ohh-questionnaire-item-control
  code:
    v: button
  display:
    v: Button

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-style
  l: rendering-style
value: String
  v: font-weight: bold; font-size: large;

CodeableConcept
coding:
  system:
    v: https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/ohh-questionnaire-item-control
    l: ohh-questionnaire-item-control
  code:
    v: show_navigation

CodeableConcept
coding:
  system:
    v: http://hl7.org/fhir/questionnaire-item-control
    l: questionnaire-item-control
  code:
    v: radio-button
  display:
    v: Radio Button

v: 1

v: testcode

v: Test Code

v: example-question-2_answer-option_1

Coding
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/ordinalValue
    l: ordinalValue
  value: Decimal
    v: 1
version:
  v: 1
code:
  v: answer_1
display:
  v: To find the holy grail

v: example-question-2_answer-option_2

Coding
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/ordinalValue
    l: ordinalValue
  value: Decimal
    v: 2
version:
  v: 1
code:
  v: answer_2
display:
  v: To find a goalie snail

v: example-question-2_answer-option_3

Coding
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/ordinalValue
    l: ordinalValue
  value: Decimal
    v: 3
version:
  v: 1
code:
  v: answer_3
display:
  v: To mind the foley whale

v: Text displayed after the question

v: display

link id:
  v: example-question-2_below
text:
  v: Text shown below the question.
type:
  v: display

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
    l: questionnaire-itemControl
  value: CodeableConcept
    coding:
      system:
        v: https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/ohh-questionnaire-item-control
        l: ohh-questionnaire-item-control
      code:
        v: button
      display:
        v: Button
link id:
  v: example-question-2_next-button-label
text:
  v: Next
type:
  v: display

link id:
  v: example-question-3_group
type:
  v: group
item:
  link id:
    v: example-question-3_title
  text:
    v: Third Example Question - Vertical Slider Question
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-style
        l: rendering-style
      value: String
        v: font-weight: bold; font-size: large;
  type:
    v: display
item:
  link id:
    v: example-question-3_question
  text:
    v: Is this the third question?
  type:
    v: display
item:
  link id:
    v: example-question-3_before
  text:
    v: This slider has now answer options, but a min-max pair
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-3_footer
  type:
    v: display
item:
  id:
    v: 3
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/minValue
      l: minValue
    value: Decimal
      v: 5
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/maxValue
      l: maxValue
    value: Decimal
      v: 10
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-3
  code:
    version:
      v: 1
    code:
      v: testcode
    display:
      v: Test Code
  prefix:
    v: Example Question 3
  type:
    v: decimal
  required:
    v: true
  repeats:
    v: false
item:
  link id:
    v: example-question-3_after
  text:
    v: After question
  type:
    v: display
item:
  link id:
    v: example-question-3_below
  text:
    v: Below question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-3_next-button-label
  text:
    v: Next
  type:
    v: display

v: show_navigation

v: spinner

v: Spinner

v: button

v: Button

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    l: sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (((%`skip-from-3-to-5-on-4`.toBoolean().not())) and ((%`skip-from-3-to-5-on--1`.toBoolean().not()))) or ((%`skip-from-2-to-4`.toBoolean())) or ((%`skip-from-3-to-4-on-1`.toBoolean())) or ((%`skip-from-3-to-4-on-8`.toBoolean()))
link id:
  v: example-question-4_group
type:
  v: group
item:
  link id:
    v: example-question-4_title
  text:
    v: Example question 4 - Horizontal Slider Question
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-style
        l: rendering-style
      value: String
        v: font-weight: bold; font-size: large;
  type:
    v: display
item:
  link id:
    v: example-question-4_question
  text:
    v: Is this Example question 4?
  type:
    v: display
item:
  link id:
    v: example-question-4_before
  text:
    v: Before question. This horizontal slider has predefined answer options to select from.
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-4_footer
  type:
    v: display
item:
  id:
    v: 4
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-sliderStepValue
      l: questionnaire-sliderStepValue
    value: Integer
      v: 10
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/minValue
      l: minValue
    value: Decimal
      v: 0
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/maxValue
      l: maxValue
    value: Decimal
      v: 100
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
      l: questionnaire-choiceOrientation
    value: Code
      v: horizontal
  link id:
    v: example-question-4
  code:
    version:
      v: 1
    code:
      v: testcode
    display:
      v: Test Code
  prefix:
    v: Example question 4
  type:
    v: integer
  required:
    v: true
  repeats:
    v: false
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
        l: questionnaire-itemControl
      value: CodeableConcept
    link id:
      v: example-question-4_lower
    text:
      v: Left Label
    type:
      v: display
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
        l: questionnaire-itemControl
      value: CodeableConcept
    link id:
      v: example-question-4_left
    text:
      v: Right Label
    type:
      v: display
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
        l: questionnaire-itemControl
      value: CodeableConcept
    link id:
      v: example-question-4_center
    text:
      v: Center Label
    type:
      v: display

v: show_navigation

v: slider

v: Slider

system:
  v: http://hl7.org/fhir/questionnaire-item-control
  l: questionnaire-item-control
code:
  v: lower
display:
  v: Lower-bound

system:
  v: http://hl7.org/fhir/questionnaire-item-control
  l: questionnaire-item-control
code:
  v: upper
display:
  v: Upper-bound

system:
  v: https://api.openhealthhub.com/OpenHealthhub/fhir/4/CodeSystem/ohh-questionnaire-item-control
  l: ohh-questionnaire-item-control
code:
  v: center
display:
  v: Center

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    l: sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (((%`skip-from-9-to-11`.toBoolean().not()))) or ((%`skip-from-8-to-10`.toBoolean()))
link id:
  v: example-question-5_group
type:
  v: group
item:
  link id:
    v: example-question-5_title
  text:
    v: Example Question 5 - Open Question with Regex constraint
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-style
        l: rendering-style
      value: String
        v: font-weight: bold; font-size: large;
  type:
    v: display
item:
  link id:
    v: example-question-5_question
  text:
    v: What is your email address?
  type:
    v: display
item:
  link id:
    v: example-question-5_before
  text:
    v: Before question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-5_footer
  type:
    v: display
item:
  id:
    v: 5
  extension:
    extension:
      url:
        v: key
        l: key
      value: Id
        v: text-format
    extension:
      url:
        v: expression
        l: expression
      value: Expression
    extension:
      url:
        v: human
        l: human
      value: String
        v: Answer value should be an email address
    extension:
      url:
        v: severity
        l: severity
      value: Code
        v: error
    url:
      v: http://hl7.org/fhir/StructureDefinition/targetConstraint
      l: targetConstraint
  link id:
    v: example-question-5
  code:
    version:
      v: 1
    code:
      v: testcode
    display:
      v: Test Code
  prefix:
    v: Example Question 5
  type:
    v: string
  required:
    v: true
  repeats:
    v: false
  max length:
    v: 1000
item:
  link id:
    v: example-question-5_after
  text:
    v: After question
  type:
    v: display
item:
  link id:
    v: example-question-5_below
  text:
    v: Below question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-5_next-button-label
  text:
    v: Next
  type:
    v: display

v: show_navigation

v: text/fhirpath

v: item.where(linkId='example-question-5').answer.all(value.matches('^[^\s@]+@[^\s@]+\.[^\s@]{2,}$'))

v: button

v: Button

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    l: sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (((%`skip-from-11-to-13`.toBoolean().not()))) or ((%`skip-from-10-to-12`.toBoolean()))
link id:
  v: example-question-6_group
type:
  v: group
item:
  link id:
    v: example-question-6_title
  text:
    v: Example Question 6 - Multiple choice with optionExclusive
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-style
        l: rendering-style
      value: String
        v: font-weight: bold; font-size: large;
  type:
    v: display
item:
  link id:
    v: example-question-6_question
  text:
    v: What would you like to eat?
  type:
    v: display
item:
  link id:
    v: example-question-6_before
  text:
    v: Before question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-6_footer
  type:
    v: display
item:
  id:
    v: 6
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-openLabel
      l: sdc-questionnaire-openLabel
    value: String
      v: Other, please specify:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-6
  code:
    version:
      v: 1
    code:
      v: testcode
    display:
      v: Test Code
  prefix:
    v: Regression Test
  type:
    v: open-choice
  required:
    v: false
  repeats:
    v: false
  answer option:
    id:
      v: example-question-6_answer-option_1
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_1
      display:
        v: Meat/Dairy
  answer option:
    id:
      v: example-question-6_answer-option_2
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_2
      display:
        v: Fish/Sushi
  answer option:
    id:
      v: example-question-6_answer-option_3
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/questionnaire-optionExclusive
        l: questionnaire-optionExclusive
      value: Boolean
        v: true
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_3
      display:
        v: Vegan/Vegetarian
item:
  link id:
    v: example-question-6_after
  text:
    v: After question
  type:
    v: display
item:
  link id:
    v: example-question-6_below
  text:
    v: Below question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-6_next-button-label
  text:
    v: Next
  type:
    v: display

v: show_navigation

v: autocomplete

v: Auto-complete

Decimal
v: 1

Decimal
v: 2

Decimal
v: 3

v: button

v: Button

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    l: sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (((%`skip-from-12-to-14-on-2`.toBoolean().not())) and ((%`skip-from-12-to-15-on-3`.toBoolean().not()))) or ((%`skip-from-11-to-13`.toBoolean())) or ((%`skip-from-12-to-13-on-1`.toBoolean()))
link id:
  v: example-question-7_group
type:
  v: group
item:
  link id:
    v: example-question-7_title
  text:
    v: Example Question 7 - Dropdown with min/max Occurs
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-style
        l: rendering-style
      value: String
        v: font-weight: bold; font-size: large;
  type:
    v: display
item:
  link id:
    v: example-question-7_question
  text:
    v: What fish is the best?
  type:
    v: display
item:
  link id:
    v: example-question-7_before
  text:
    v: Before question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-7_footer
  type:
    v: display
item:
  id:
    v: 7
  extension:
    extension:
      url:
        v: option
        l: option
      value: Coding
    extension:
      url:
        v: expression
        l: expression
      value: Expression
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression
      l: sdc-questionnaire-answerOptionsToggleExpression
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
      l: questionnaire-minOccurs
    value: Integer
      v: 1
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
      l: questionnaire-maxOccurs
    value: Integer
      v: 3
  link id:
    v: example-question-7
  code:
    version:
      v: 1
    code:
      v: testcode
    display:
      v: Test Code
  prefix:
    v: Example Question 7
  type:
    v: choice
  required:
    v: true
  repeats:
    v: true
  answer option:
    id:
      v: example-question-7_answer-option_1
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_1
      display:
        v: Whales
  answer option:
    id:
      v: example-question-7_answer-option_2
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_2
      display:
        v: Dolphins
  answer option:
    id:
      v: example-question-7_answer-option_3
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_3
      display:
        v: Crustaceans
  answer option:
    id:
      v: example-question-7_answer-option_4
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_4
      display:
        v: Cephalopods
item:
  link id:
    v: example-question-7_after
  text:
    v: After question
  type:
    v: display
item:
  link id:
    v: example-question-7_below
  text:
    v: Below question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-7_next-button-label
  text:
    v: Next
  type:
    v: display

v: show_navigation

v: answer_3

v: text/fhirpath

v: ((%resource.repeat(item).where(linkId='example-question-7').answer.value.ordinal()) = 2) and ((%resource.repeat(item).where(linkId='regression_test_2').answer.value) != 2)

v: drop-down

v: Drop down

Decimal
v: 1

Decimal
v: 2

Decimal
v: 3

Decimal
v: 4

v: button

v: Button

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    l: sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (((%`skip-from-13-to-15-on--1`.toBoolean().not())) and ((%`skip-from-13-to-15-on-4`.toBoolean().not())) and ((%`skip-from-12-to-15-on-3`.toBoolean().not()))) or ((%`skip-from-13-to-14-on-8`.toBoolean())) or ((%`skip-from-12-to-14-on-2`.toBoolean())) or ((%`skip-from-13-to-14-on-1`.toBoolean()))
link id:
  v: example-question-8_group
type:
  v: group
item:
  link id:
    v: example-question-8_title
  text:
    v: Example Question 8 - Multiple Choice with optionExclusive
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-style
        l: rendering-style
      value: String
        v: font-weight: bold; font-size: large;
  type:
    v: display
item:
  link id:
    v: example-question-8_question
  text:
    v: Pick the best option
  type:
    v: display
item:
  link id:
    v: example-question-8_before
  text:
    v: Before question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-8_footer
  type:
    v: display
item:
  id:
    v: 8
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-openLabel
      l: sdc-questionnaire-openLabel
    value: String
      v: Other, please specify:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-8
  code:
    version:
      v: 1
    code:
      v: testcode
    display:
      v: Test Code
  prefix:
    v: Regression Test
  type:
    v: open-choice
  required:
    v: false
  repeats:
    v: false
  answer option:
    id:
      v: example-question-8_answer-option_1
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_1
      display:
        v: Option 1
  answer option:
    id:
      v: example-question-8_answer-option_2
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_2
      display:
        v: Option 2
  answer option:
    id:
      v: example-question-8_answer-option_3
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/questionnaire-optionExclusive
        l: questionnaire-optionExclusive
      value: Boolean
        v: true
    value: Coding
      extension:
        value: Decimal
      version:
        v: 1
      code:
        v: answer_3
      display:
        v: Option 3
item:
  link id:
    v: example-question-8_after
  text:
    v: After question
  type:
    v: display
item:
  link id:
    v: example-question-8_below
  text:
    v: Below question
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-8_next-button-label
  text:
    v: Next
  type:
    v: display

v: show_navigation

v: radio-button

v: Radio Button

Decimal
v: 1

Decimal
v: 2

Decimal
v: 3

v: button

v: Button

link id:
  v: example-question-9_group
type:
  v: group
item:
  link id:
    v: example-question-9_title
  text:
    v: Example Question - Result using formula
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-style
        l: rendering-style
      value: String
        v: font-weight: bold; font-size: large;
  type:
    v: display
item:
  link id:
    v: example-question-9_result
  prefix:
    v: Result
  text:
    v: Supply information about the result here
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
        l: rendering-xhtml
      value: String
        v: Supply information about the result here
  type:
    v: group
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
        l: sdc-questionnaire-calculatedExpression
      value: Expression
    link id:
      v: example-question-9_formula_1
    type:
      v: decimal
    read only:
      v: true
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: example-question-9_next-button-label
  text:
    v: Next
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
        l: rendering-xhtml
      value: String
        v: Next question
  type:
    v: display

v: text/fhirpath

v: %`ExampleFormula`

v: button

v: Button