questionnaire-sdc-profile-example-form-behavior
type: Questionnaire
node role: treeRoot
id:
  v: questionnaire-sdc-profile-example-form-behavior
meta:
  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 questionnaire-sdc-profile-example-form-behavior Profile: Advanced Behavior Questionnaire Structure LinkID Text Cardinality Type Flags Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> SDCAdvancedRenderingExample Questionnaire http://build.fhir.org/ig/HL7/sdc/questionnaire-sdc-profile-example-form-behavior#4.0.0 #xD; 1 Value constraints 0..1 group #xD; 1.1 First Name 0..1 string Max Length: 50 #xD; 1.2 Last Name 0..1 string #xD; 1.3 Postal Code (A1A 1A1) 0..1 string #xD; 1.4 Enter your weight in kg 0..1 decimal #xD; 1.5 Body Weight 0..1 quantity #xD; 1.6 Attach Proof of Citizenship 0..1 attachment #xD; 2 Value constraints 0..1 group #xD; 2.1 (I/We) worried whether (my/our) food would run out before (I/we) got money to buy more. 0..1 choice Options: 4 options #xD; 2.3 Activity Level 0..1 choice Value Set: LOINC Answer Codes for LL4882-8 #xD; 2.5 Applicable health conditions 0..* choice Value Set: Questionnaire Form Behavior Conditions #xD; 2.6 Email* 1..1 string #xD; 2.7 Current Date: 0..1 date #xD; 2.7.1 null 0..1 display #xD; 2.8 Heart History (check all that applies) 0..* open-choice Options: 5 options #xD; 2.9 Heart History (check at least 2): 1..* choice Options: 5 options #xD; 2.10 Heart History (check no more than 3): 1..* choice Options: 5 options #xD; 2.11 What treatments do you now have for heart disease? (select all that applies) 0..* choice Options: 6 options #xD; 2.12 Dosage 0..1 quantity #xD; 2.13 Specify age: 0..1 quantity #xD; 2.14 Select your preferred practitioner: 0..1 reference #xD; 3 Calculation 0..1 group #xD; 3.1 Deadline for submission (7 days from now) 0..1 date #xD; 3.2 null 0..1 group #xD; 3.2.1 Last Name: 0..1 string #xD; 3.2.2 First Name: 0..1 string #xD; 3.2.3 Gender: 0..1 string #xD; 3.3 Calculated Expression 0..1 group #xD; 3.3.1 Weight (kg) 0..1 decimal #xD; 3.3.2 Body Height (inches) 0..1 decimal #xD; 3.3.3 Your Body Mass Index (BMI) 0..1 decimal #xD; 3.4 CQF…
contained: ValueSet
  id:
    v: WeightUnits
  meta:
    profile:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-valueset
      l: sdc-valueset
  name:
    v: WeightUnits
  status:
    v: active
  description:
    v: Adds 'unknown' to the ucum body weight value set
  immutable:
    v: false
  compose:
    include:
      value set:
        v: http://hl7.org/fhir/ValueSet/ucum-bodyweight
        l: ucum-bodyweight
    include:
      system:
        v: http://terminology.hl7.org/CodeSystem/data-absent-reason
        l: data-absent-reason
      version:
        v: 1.0.0
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm
    l: artifact-versionAlgorithm
  value: Coding
    system:
      v: http://hl7.org/fhir/version-algorithm
      l: version-algorithm
    code:
      v: semver
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
    l: variable
  value: Expression
    name:
      v: weight
    language:
      v: text/fhirpath
    expression:
      v: %resource.repeat(item).where(linkId='3.3.1').item.answer.value
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
    l: variable
  value: Expression
    name:
      v: height
    language:
      v: text/fhirpath
    expression:
      v: %resource.repeat(item).where(linkId='3.3.2').item.answer.value*0.0254
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-library
    l: cqf-library
  value: Canonical
    v: http://example.org/Library/MeasurementLimits
    l: MeasurementLimits
extension:
  extension:
    url:
      v: name
      l: name
    value: Coding
      system:
        v: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
        l: launchContext
      code:
        v: patient
      display:
        v: Patient
  extension:
    url:
      v: type
      l: type
    value: Code
      v: Patient
  extension:
    url:
      v: description
      l: description
    value: String
      v: The patient that is to be used to pre-populate the form
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext
    l: sdc-questionnaire-launchContext
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-endpoint
    l: sdc-questionnaire-endpoint
  value: Uri
    v: http://example.org/QuestionnaireResponse/create
    l: create
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-entryMode
    l: sdc-questionnaire-entryMode
  value: Code
    v: sequential
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembleDefinitionRoot
    l: sdc-questionnaire-assembleDefinitionRoot
  value: Uri
    v: http://example.org/StructureDefinition/myElementLibrary
    l: myElementLibrary
modifier extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-rendering-criticalExtension
    l: sdc-rendering-criticalExtension
  value: Canonical
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-entryMode
    l: sdc-questionnaire-entryMode
modifier extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-rendering-criticalExtension
    l: sdc-rendering-criticalExtension
  value: Canonical
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerOptionsToggleExpression
    l: sdc-questionnaire-answerOptionsToggleExpression
url:
  v: http://build.fhir.org/ig/HL7/sdc/questionnaire-sdc-profile-example-form-behavior
  l: questionnaire-sdc-profile-example-form-behavior
identifier:
  system:
    v: urn:ietf:rfc:3986
    l: 3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.40.17.35.9
version:
  v: 4.0.0
name:
  v: SDCAdvancedRenderingExample
status:
  v: active
date:
  v: 2026-03-24T16:16:08+11:00
publisher:
  v: HL7 International / FHIR Infrastructure
contact:
  name:
    v: HL7 International / FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
item:
  link id:
    v: 1
  text:
    v: Value constraints
  type:
    v: group
  item:
    link id:
      v: 1.1
    text:
      v: First Name
    type:
      v: string
    max length:
      v: 50
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/minLength
        l: minLength
      value: Integer

v: unknown

v: Unknown

Integer
v: 2

v: 1.2

v: Last Name

v: string

extension:
  extension:
    url:
      v: key
      l: key
    value: Id
      v: contraint-regex1
  extension:
    url:
      v: severity
      l: severity
    value: Code
      v: error
  extension:
    url:
      v: expression
      l: expression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: %resource.repeat(item).where(linkId='1.3').answer.all(value.matches('[A-Z][0-9][A-Z] [0-9][A-Z][0-9]'))
  extension:
    url:
      v: human
      l: human
    value: String
      v: Postal code must match syntax A1A 1A1.
  url:
    v: http://hl7.org/fhir/StructureDefinition/targetConstraint
    l: targetConstraint
link id:
  v: 1.3
text:
  v: Postal Code (A1A 1A1)
type:
  v: string

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/minValue
    l: minValue
  value: Decimal
    v: 1
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/maxValue
    l: maxValue
  value: Decimal
    v: 100
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
    l: maxDecimalPlaces
  value: Integer
    v: 2
link id:
  v: 1.4
text:
  v: Enter your weight in kg
type:
  v: decimal

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet
    l: questionnaire-unitValueSet
  value: Canonical
    v: #WeightUnits
    l: WeightUnits
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-minQuantity
    l: sdc-questionnaire-minQuantity
  value: Quantity
    value:
      v: 10
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: kg
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-maxQuantity
    l: sdc-questionnaire-maxQuantity
  value: Quantity
    value:
      v: 100
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: kg
link id:
  v: 1.5
text:
  v: Body Weight
type:
  v: quantity

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/mimeType
    l: mimeType
  value: Code
    v: image/jpeg
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/mimeType
    l: mimeType
  value: Code
    v: application/pdf
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/maxSize
    l: maxSize
  value: Decimal
    v: 1048576
link id:
  v: 1.6
text:
  v: Attach Proof of Citizenship
type:
  v: attachment

link id:
  v: 2
text:
  v: Value constraints
type:
  v: group
item:
  link id:
    v: 2.1
  text:
    v: (I/We) worried whether (my/our) food would run out before (I/we) got money to buy more.
  type:
    v: choice
  answer option:
    value: Coding
      type: LA28397-0
      system:
        v: http://loinc.org
        l: loinc.org
      code:
        v: LA28397-0
      display:
        v: Often true
  answer option:
    value: Coding
      type: LA6729-3
      system:
        v: http://loinc.org
        l: loinc.org
      code:
        v: LA6729-3
      display:
        v: Sometimes true
  answer option:
    value: Coding
      type: LA28398-8
      system:
        v: http://loinc.org
        l: loinc.org
      code:
        v: LA28398-8
      display:
        v: Never true
  answer option:
    value: Coding
      type: LA15775-2
      system:
        v: http://loinc.org
        l: loinc.org
      code:
        v: LA15775-2
      display:
        v: Don't know/refused
item:
  link id:
    v: 2.3
  text:
    v: Activity Level
  type:
    v: choice
  answer value set:
    v: http://loinc.org/vs/LL4882-8
    l: LL4882-8
item:
  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:
    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
  link id:
    v: 2.5
  text:
    v: Applicable health conditions
  type:
    v: choice
  repeats:
    v: true
  answer value set:
    v: http://hl7.org/fhir/uv/sdc/ValueSet/formBehaviorConditions
    l: formBehaviorConditions
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-keyboard
      l: sdc-questionnaire-keyboard
    value: Coding
      system:
        v: http://hl7.org/fhir/uv/sdc/CodeSystem/keyboardType
        l: keyboardType
      code:
        v: email
      display:
        v: email
  link id:
    v: 2.6
  text:
    v: Email*
  type:
    v: string
  required:
    v: true
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
      l: sdc-questionnaire-initialExpression
    value: Expression
      description:
        v: current date
      language:
        v: text/fhirpath
      expression:
        v: today()
  link id:
    v: 2.7
  text:
    v: Current Date:
  type:
    v: date
  read only:
    v: true
item:
  link id:
    v: 2.7.1
  text:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/cqf-expression
        l: cqf-expression
      value: Expression
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-openLabel
      l: sdc-questionnaire-openLabel
    value: String
      v: Other event (specify)
  link id:
    v: 2.8
  text:
    v: Heart History (check all that applies)
  type:
    v: open-choice
  repeats:
    v: true
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/procedures
        l: procedures
      code:
        v: U1
      display:
        v: Heart attack
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/procedures
        l: procedures
      code:
        v: U2
      display:
        v: Heart surgery
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/procedures
        l: procedures
      code:
        v: U3
      display:
        v: Cardiac catheterization
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/procedures
        l: procedures
      code:
        v: U4

v: 3

v: text/fhirpath

v: %patient.gender!='male'

v: 4

v: text/fhirpath

v: %patient.gender!='female'

v: Substitute in current date

v: text/fhirpath

v: 'Please only enter data that has been validated as of ' + today()

v: Coronary angioplasty (PTCA)

value: Coding
  system:
    v: http://example.org/CodeSystem/procedures
    l: procedures
  code:
    v: U5
  display:
    v: Cardiac pacemaker

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
    l: questionnaire-minOccurs
  value: Integer
    v: 2
link id:
  v: 2.9
text:
  v: Heart History (check at least 2):
type:
  v: choice
required:
  v: true
repeats:
  v: true
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U1
    display:
      v: Heart attack
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U2
    display:
      v: Heart surgery
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U3
    display:
      v: Cardiac catheterization
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U4
    display:
      v: Coronary angioplasty (PTCA)
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U5
    display:
      v: Cardiac pacemaker

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
    l: questionnaire-maxOccurs
  value: Integer
    v: 3
link id:
  v: 2.10
text:
  v: Heart History (check no more than 3):
type:
  v: choice
required:
  v: true
repeats:
  v: true
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U1
    display:
      v: Heart attack
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U2
    display:
      v: Heart surgery
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U3
    display:
      v: Cardiac catheterization
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U4
    display:
      v: Coronary angioplasty (PTCA)
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/procedures
      l: procedures
    code:
      v: U5
    display:
      v: Cardiac pacemaker

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
    l: questionnaire-itemControl
  value: CodeableConcept
    coding:
      system:
        v: http://hl7.org/fhir/questionnaire-item-control
        l: questionnaire-item-control
      code:
        v: check-box
      display:
        v: Check-box
link id:
  v: 2.11
text:
  v: What treatments do you now have for heart disease? (select all that applies)
type:
  v: choice
repeats:
  v: true
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/treatments
      l: treatments
    code:
      v: noTreatment
    display:
      v: NoTreatment
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/treatments
      l: treatments
    code:
      v: aspirin
    display:
      v: Aspirin
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/treatments
      l: treatments
    code:
      v: otherMeds
    display:
      v: Other medicines, tablets, or pills
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/treatments
      l: treatments
    code:
      v: diet
    display:
      v: Diet
answer option:
  value: Coding
    system:
      v: http://example.org/CodeSystem/treatments
      l: treatments
    code:
      v: exercise
    display:
      v: Exercise
answer option:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-optionExclusive
      l: questionnaire-optionExclusive
    value: Boolean
      v: true
  value: Coding
    system:
      v: http://example.org/CodeSystem/treatments
      l: treatments
    code:
      v: none
    display:
      v: None of the above

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption
    l: questionnaire-unitOption
  value: Coding
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: mL
    display:
      v: mL
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption
    l: questionnaire-unitOption
  value: Coding
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: L
    display:
      v: L
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption
    l: questionnaire-unitOption
  value: Coding
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: g
    display:
      v: g
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-unitOption
    l: questionnaire-unitOption
  value: Coding
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: mg
    display:
      v: mg
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-unitOpen
    l: sdc-questionnaire-unitOpen
  value: Code
    v: optionsOrType
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-unitSupplementalSystem
    l: sdc-questionnaire-unitSupplementalSystem
  value: Canonical
    v: http://example.org/SomeUnitCodeSystem
    l: SomeUnitCodeSystem
link id:
  v: 2.12
text:
  v: Dosage
type:
  v: quantity

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-unitValueSet
    l: questionnaire-unitValueSet
  value: Canonical
    v: http://hl7.org/fhir/ValueSet/age-units
    l: age-units
link id:
  v: 2.13
text:
  v: Specify age:
type:
  v: quantity

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-referenceResource
    l: questionnaire-referenceResource
  value: Code
    v: Practitioner
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-referenceProfile
    l: questionnaire-referenceProfile
  value: Canonical
    v: http://example.org/fhir/StructureDefinition/my-practitioner
    l: my-practitioner
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-lookupQuestionnaire
    l: sdc-questionnaire-lookupQuestionnaire
  value: Canonical
    v: http://example.org/Questionnaire/1234
    l: http://example.org/Questionnaire/1234
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression
    l: sdc-questionnaire-answerExpression
  value: Expression
    description:
      v: all active practitioners
    language:
      v: application/x-fhir-query
    expression:
      v: Practitioner?active=true&_sort=family,given
extension:
  extension:
    url:
      v: path
      l: path
    value: String
      v: name.where(use='official').family + ', ' + name.where(use='official').given.first()
  extension:
    url:
      v: forDisplay
      l: forDisplay
    value: Boolean
      v: true
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn
    l: sdc-questionnaire-choiceColumn
link id:
  v: 2.14
text:
  v: Select your preferred practitioner:
type:
  v: reference

link id:
  v: 3
text:
  v: Calculation
type:
  v: group
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
      l: sdc-questionnaire-initialExpression
    value: Expression
      description:
        v: deadline for submission
      language:
        v: text/fhirpath
      expression:
        v: today() + 7 days
  link id:
    v: 3.1
  text:
    v: Deadline for submission (7 days from now)
  type:
    v: date
  read only:
    v: true
item:
  link id:
    v: 3.2
  type:
    v: group
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
        l: sdc-questionnaire-initialExpression
      value: Expression
    link id:
      v: 3.2.1
    text:
      v: Last Name:
    type:
      v: string
    read only:
      v: true
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
        l: sdc-questionnaire-initialExpression
      value: Expression
    link id:
      v: 3.2.2
    text:
      v: First Name:
    type:
      v: string
    read only:
      v: true
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
        l: sdc-questionnaire-initialExpression
      value: Expression
    link id:
      v: 3.2.3
    text:
      v: Gender:
    type:
      v: string
    read only:
      v: true
item:
  link id:
    v: 3.3
  text:
    v: Calculated Expression
  type:
    v: group
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
        l: questionnaire-unit
      value: Coding
    link id:
      v: 3.3.1
    text:
      v: Weight (kg)
    type:
      v: decimal
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
        l: questionnaire-unit
      value: Coding
    link id:
      v: 3.3.2
    text:
      v: Body Height (inches)
    type:
      v: decimal
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression
        l: sdc-questionnaire-calculatedExpression
      value: Expression
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembleDefinitionRoot
        l: sdc-questionnaire-assembleDefinitionRoot
      value: Boolean
        v: false
    link id:
      v: 3.3.3
    text:
      v: Your Body Mass Index (BMI)
    type:
      v: decimal
    read only:
      v: true
item:
  link id:
    v: 3.4
  text:
    v: CQF-related Example
  type:
    v: group
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/minValue
        l: minValue
      value: Decimal
        v: 1
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/maxValue
        l: maxValue
      value: Decimal
        v: 100
    link id:
      v: 3.4.1
    text:
      v: Enter weight in kg
    type:
      v: decimal
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-keyboard
        l: sdc-questionnaire-keyboard
      value: Coding
    link id:
      v: 3.4.2
    text:
      v: Enter email address
    type:
      v: string
    required:
      v: false
      extension:
        value: Expression
item:
  link id:
    v: 3.5
  text:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/cqf-expression
        l: cqf-expression
      value: Expression
  type:
    v: display

v: patient's last name

v: text/fhirpath

v: %patient.name.where(use='official').given.first()

v: patient's first name

v: text/fhirpath

v: %patient.name.where(use='official').family

v: patient's gender

v: text/fhirpath

v: %patient.gender

v: kg

v: [in_i]

v: BMI Calculation

v: text/fhirpath

v: (%weight/(%height.power(2))).round(1)

url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  l: cqf-expression
value: Expression
  language:
    v: text/fhirpath
  expression:
    v: min_weight

url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  l: cqf-expression
value: Expression
  language:
    v: text/fhirpath
  expression:
    v: max_weight

v: email

v: email

Expression
description:
  v: current date
language:
  v: text/fhirpath
expression:
  v: %patient.active

v: last immunization date

v: text/fhirpath

v: 'Your last immunization was on '+ %Immunization.occurrenceDateTime.substring(0,10) + '.'

link id:
  v: 4
text:
  v: Other Controls
type:
  v: group
item:
  link id:
    v: 4.1
  text:
    v: Marital Status
  type:
    v: choice
  answer value set:
    v: http://hl7.org/fhir/ValueSet/marital-status
    l: marital-status
  initial:
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-MaritalStatus
        l: v3-MaritalStatus
      code:
        v: D
      display:
        v: Divorced
item:
  link id:
    v: 4.2
  type:
    v: group
  item:
    link id:
      v: 4.2.1
    text:
      v: Choose Gender
    type:
      v: choice
    answer value set:
      v: http://hl7.org/fhir/ValueSet/administrative-gender
      l: administrative-gender
  item:
    extension:
      url:
        v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.disabledDisplay
        l: extension-Questionnaire.item.disabledDisplay
      value: Code
        v: protected
    link id:
      v: 4.2.2
    text:
      v: Are you pregnant? (enableWhen = gender is Female, disableDisplay=protected)
    type:
      v: choice
    enable when:
      question:
        v: 4.2.1
      operator:
        v: =
      answer: Coding
    answer value set:
      v: http://hl7.org/fhir/ValueSet/yesnodontknow
      l: yesnodontknow
  item:
    extension:
      url:
        v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.disabledDisplay
        l: extension-Questionnaire.item.disabledDisplay
      value: Code
        v: hidden
    link id:
      v: 4.2.3
    text:
      v: Are you diabetic? (enableWhen = gender is Female, disableDisplay=hidden)
    type:
      v: choice
    enable when:
      question:
        v: 4.2.1
      operator:
        v: =
      answer: Coding
    answer value set:
      v: http://hl7.org/fhir/ValueSet/yesnodontknow
      l: yesnodontknow
  item:
    extension:
      url:
        v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.disabledDisplay
        l: extension-Questionnaire.item.disabledDisplay
      value: Code
        v: protected
    link id:
      v: 4.2.4
    text:
      v: Have you been diagnosed with Gestational Diabetes? (enableBehavior = only when pregnant and diabetic, disableDisplay=protected)
    type:
      v: choice
    enable when:
      question:
        v: 4.2.2
      operator:
        v: =
      answer: Coding
    enable when:
      question:
        v: 4.2.3
      operator:
        v: =
      answer: Coding
    enable behavior:
      v: all
    answer value set:
      v: http://hl7.org/fhir/ValueSet/yesnodontknow
      l: yesnodontknow
  item:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/entryFormat
        l: entryFormat
      value: String
        v: MM/DD/YYYY
    link id:
      v: 4.2.5
    text:
      v: Enter your birthdate (MM/DD/YYYY)
    type:
      v: date
    answer value set:
      v: http://hl7.org/fhir/ValueSet/administrative-gender
      l: administrative-gender
  item:
    extension:
      url:
        v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.item.disabledDisplay
        l: extension-Questionnaire.item.disabledDisplay
      value: Code
        v: protected
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
        l: sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: 4.2.6
    text:
      v: Have you had mammogram before?(enableWhenExpression = only when gender is female and age > 40, disableDisplay=protected)
    type:
      v: choice
    answer value set:
      v: http://hl7.org/fhir/ValueSet/yesnodontknow
      l: yesnodontknow
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-signatureRequired
      l: questionnaire-signatureRequired
    value: CodeableConcept
      text:
        v: the signature of a witness to any other signature.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-usageMode
      l: questionnaire-usageMode
    value: Code
      v: capture
  link id:
    v: 4.4
  text:
    v: Signature of Patient
  type:
    v: attachment
  required:
    v: true
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-candidateExpression
      l: sdc-questionnaire-candidateExpression
    value: Expression
      description:
        v: active practitioners that speak at least one of the patient's language
      language:
        v: application/x-fhir-query
      expression:
        v: Practitioner?communication=&active=true
  extension:
    extension:
      url:
        v: path
        l: path
      value: String
        v: name.first().family
    extension:
      url:
        v: label
        l: label
      value: String
        v: LAST NAME
    extension:
      url:
        v: width
        l: width
      value: Quantity

v: female

v: female

v: Y

v: Y

v: if last 2 questions were answered

v: text/fhirpath

v: %resource.repeat(item).where(linkId='4.2.b.1').answer.value.code ='female' and today().toString().substring(0, 4).toInteger() - %resource.repeat(item).where(linkId='4.2.b.5').answer.value.toString().substring(0, 4).toInteger() >= 40

v: urn:iso-astm:E1762-95:2013
l: 2013

v: 1.2.840.10065.1.12.1.8

v: Signature Witness Signature

v: 40

v: %

url:
  v: forDisplay
  l: forDisplay
value: Boolean
  v: true

extension:
  url:
    v: path
    l: path
  value: String
    v: name.first().given.first()
extension:
  url:
    v: label
    l: label
  value: String
    v: FIRST NAME
extension:
  url:
    v: width
    l: width
  value: Quantity
    value:
      v: 40
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: %
extension:
  url:
    v: forDisplay
    l: forDisplay
  value: Boolean
    v: true
url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn
  l: sdc-questionnaire-choiceColumn

extension:
  url:
    v: path
    l: path
  value: String
    v: gender
extension:
  url:
    v: label
    l: label
  value: String
    v: GENDER
extension:
  url:
    v: width
    l: width
  value: Quantity
    value:
      v: 20
    system:
      v: http://unitsofmeasure.org
      l: unitsofmeasure.org
    code:
      v: %
extension:
  url:
    v: forDisplay
    l: forDisplay
  value: Boolean
    v: false
url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn
  l: sdc-questionnaire-choiceColumn

v: 4.5

v: All the practitioners below can speak the patient's language. Choose all preferred practioners:

v: reference

v: true

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext
    l: sdc-questionnaire-itemPopulationContext
  value: Expression
    description:
      v: Home address of the patient
    name:
      v: homeAddress
    language:
      v: text/fhirpath
    expression:
      v: %patient.address.where(use='home').first()
link id:
  v: 4.6
type:
  v: group
item:
  link id:
    v: 4.6.1
  text:
    v: Home Address
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
      l: sdc-questionnaire-initialExpression
    value: Expression
      description:
        v: Address Line 1
      language:
        v: text/fhirpath
      expression:
        v: %homeAddress.line.first()
  link id:
    v: 4.6.2
  definition:
    v: http://hl7.org/fhir/StructureDefinition/Patient#Patient.address.line
    l: Patient.address.line
  text:
    v: Address
  type:
    v: string
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
      l: sdc-questionnaire-initialExpression
    value: Expression
      description:
        v: City
      language:
        v: text/fhirpath
      expression:
        v: %homeAddress.city
  link id:
    v: 4.6.3
  definition:
    v: http://hl7.org/fhir/StructureDefinition/Patient#Patient.address.city
    l: Patient.address.city
  text:
    v: City
  type:
    v: string
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
      l: sdc-questionnaire-initialExpression
    value: Expression
      description:
        v: State
      language:
        v: text/fhirpath
      expression:
        v: %homeAddress.state
  link id:
    v: 4.6.4
  definition:
    v: http://hl7.org/fhir/StructureDefinition/Patient#Patient.address.state
    l: Patient.address.state
  text:
    v: Province
  type:
    v: choice
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: Alberta
      display:
        v: Alberta
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: BritishColumbia
      display:
        v: British Columbia
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: Manitoba
      display:
        v: Manitoba
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: NewBrunswick
      display:
        v: New Brunswick
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: NewfoundlandAndLabrador
      display:
        v: Newfoundland and Labrador
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: NovaScotia
      display:
        v: Nova Scotia
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: Ontario
      display:
        v: Ontario
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: PrinceEdwardIsland
      display:
        v: Prince Edward Island
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: Quebec
      display:
        v: Quebec
  answer option:
    value: Coding
      system:
        v: http://example.org/CodeSystem/provinces
        l: provinces
      code:
        v: Saskatchewan
      display:
        v: Saskatchewan
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
      l: sdc-questionnaire-initialExpression
    value: Expression
      description:
        v: Postal Code
      language:
        v: text/fhirpath
      expression:
        v: %homeAddress.postalCode
  link id:
    v: 4.6.5
  definition:
    v: http://hl7.org/fhir/StructureDefinition/Patient#Patient.address.postalCode
    l: Patient.address.postalCode
  text:
    v: Postal Code
  type:
    v: string