R6 Ballot (1st Draft)

This page is part of the FHIR Specification v6.0.0-ballot1: Release 6 Ballot (1st Draft) (see Ballot Notes). The current version is 5.0.0. 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" : "extensions",
    "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>StructureDefinition Work Group</b>: fhir</p><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><p><b>publisher</b>: HL7 International / FHIR Infrastructure</p><p><b>contact</b>: </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>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "fhir"
  }],
  "url" : "http://example.org/Questionnaire/child-rel-demo",
  "title" : "Demo form on R5 spec QR page",
  "status" : "draft",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [{
    "telecom" : [{
      "system" : "url"
    }]
  }],
  "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.