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 (XML)

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

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

Jump past Narrative

Questionnaire with a variety of child item types (as used in the QuestionnaireResponse page links section) (id = "child-rel-demo")

<?xml version="1.0" encoding="UTF-8"?>

<Questionnaire xmlns="http://hl7.org/fhir">
    <id value="child-rel-demo"/> 
    <meta> 
        <versionId value="1"/> 
        <lastUpdated value="2023-03-03T03:05:07.9531803+00:00"/> 
    </meta> 
    <text> <status value="extensions"/> <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> </text> <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"><valueCode value="fhir"/> </extension> 
  <url value="http://example.org/Questionnaire/child-rel-demo"/> 
    <title value="Demo form on R5 spec QR page"/> 
    <status value="draft"/> 
    <publisher value="HL7 International / FHIR Infrastructure"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      </telecom> 
  </contact> 
  <item> 
        <linkId value="grp1"/> 
        <text value="grp1"/> 
        <type value="group"/> 
        <required value="true"/> 
        <repeats value="true"/> 
        <item> 
            <linkId value="grp2"/> 
            <text value="grp2"/> 
            <type value="group"/> 
            <item> 
                <linkId value="Q1"/> 
                <text value="Q1"/> 
                <type value="string"/> 
                <repeats value="true"/> 
            </item> 
            <item> 
                <linkId value="Q2"/> 
                <text value="Q2"/> 
                <type value="string"/> 
            </item> 
        </item> 
        <item> 
            <linkId value="Q3"/> 
            <text value="Q3"/> 
            <type value="string"/> 
            <required value="true"/> 
            <repeats value="true"/> 
            <item> 
                <linkId value="Q4"/> 
                <text value="Q4"/> 
                <type value="string"/> 
            </item> 
            <item> 
                <linkId value="grp3"/> 
                <text value="grp3"/> 
                <type value="string"/> 
                <item> 
                    <linkId value="Q5"/> 
                    <text value="Q5"/> 
                    <type value="string"/> 
                </item> 
            </item> 
        </item> 
    </item> 
</Questionnaire> 

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.