Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Example Questionnaire/child-rel-demo (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw JSON (canonical form + also see JSON Format Specification)

Questionnaire with a variety of child item types (as used in the QuestionnaireResponse page links section)

{
  "resourceType" : "Questionnaire",
  "id" : "child-rel-demo",
  "meta" : {
    "versionId" : "1",
    "lastUpdated" : "2023-03-03T03:05:07.9531803+00:00"
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Questionnaire</b><a name=\"child-rel-demo\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Questionnaire &quot;child-rel-demo&quot; Version &quot;1&quot; Updated &quot;2023-03-03T03:05:07.9531803Z&quot; </p></div><p><b>url</b>: <code>http://example.org/Questionnaire/child-rel-demo</code></p><p><b>title</b>: Demo form on R5 spec QR page</p><p><b>status</b>: draft</p><blockquote><p><b>item</b></p><p><b>linkId</b>: grp1</p><p><b>text</b>: grp1</p><p><b>type</b>: group</p><p><b>required</b>: true</p><p><b>repeats</b>: true</p><blockquote><p><b>item</b></p><p><b>linkId</b>: grp2</p><p><b>text</b>: grp2</p><p><b>type</b>: group</p><blockquote><p><b>item</b></p></blockquote><blockquote><p><b>item</b></p></blockquote></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: Q3</p><p><b>text</b>: Q3</p><p><b>type</b>: string</p><p><b>required</b>: true</p><p><b>repeats</b>: true</p><blockquote><p><b>item</b></p></blockquote><blockquote><p><b>item</b></p></blockquote></blockquote></blockquote></div>"
  },
  "url" : "http://example.org/Questionnaire/child-rel-demo",
  "title" : "Demo form on R5 spec QR page",
  "status" : "draft",
  "item" : [{
    "linkId" : "grp1",
    "text" : "grp1",
    "type" : "group",
    "required" : true,
    "repeats" : true,
    "item" : [{
      "linkId" : "grp2",
      "text" : "grp2",
      "type" : "group",
      "item" : [{
        "linkId" : "Q1",
        "text" : "Q1",
        "type" : "string",
        "repeats" : true
      },
      {
        "linkId" : "Q2",
        "text" : "Q2",
        "type" : "string"
      }]
    },
    {
      "linkId" : "Q3",
      "text" : "Q3",
      "type" : "string",
      "required" : true,
      "repeats" : true,
      "item" : [{
        "linkId" : "Q4",
        "text" : "Q4",
        "type" : "string"
      },
      {
        "linkId" : "grp3",
        "text" : "grp3",
        "type" : "string",
        "item" : [{
          "linkId" : "Q5",
          "text" : "Q5",
          "type" : "string"
        }]
      }]
    }]
  }]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.