Structured Data Capture
4.0.0-ballot - STU 4 ballot International flag

This page is part of the Structured Data Capture FHIR IG (v4.0.0-ballot: STU 4 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions

: Complex Extract Demonstration - Template Bundle - XML Representation

Page standards status: Informative

Raw xml | Download


<Questionnaire xmlns="http://hl7.org/fhir">
  <id value="extract-complex-template2"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extr-template"/>
  </meta>
  <text>
    <status value="extensions"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Questionnaire extract-complex-template2</b></p><a name="extract-complex-template2"> </a><a name="hcextract-complex-template2"> </a><a name="extract-complex-template2-en-US"> </a><table border="1" cellpadding="0" cellspacing="0" style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 2px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="The linkID for the item">LinkID</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Text for the item">Text</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Minimum and Maximum # of times the item can appear in the instance">Cardinality</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="The type of the item">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Additional information about the item">Description &amp; Constraints</a><span style="float: right"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_q_root.gif" alt="." style="background-color: white; background-color: inherit" title="QuestionnaireRoot" class="hierarchy"/> SDCQuestionnaireExtrTemplate</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Example Questionnaire demonstrating extraction using the template approach</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Questionnaire</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2#4.0.0-ballot</td></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" id="item.patient" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-group.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="group" class="hierarchy"/> patient</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Patient Information</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-group">group</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck111.png)" id="item.name" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-group.png" alt="." style="background-color: white; background-color: inherit" title="group" class="hierarchy"/> name</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Name</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-group">group</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" id="item.given" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-string.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="string" class="hierarchy"/> given</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Given Name(s)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1100.png)" id="item.family" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-string.png" alt="." style="background-color: white; background-color: inherit" title="string" class="hierarchy"/> family</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Family/Surname</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-string">string</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" id="item.gender" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-coding.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="coding" class="hierarchy"/> gender</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Gender</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-choice">choice</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Value Set: <a href="http://hl7.org/fhir/R4/valueset-administrative-gender.html">AdministrativeGender</a></td></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" id="item.dob" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-date.png" alt="." style="background-color: white; background-color: inherit" title="date" class="hierarchy"/> dob</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Date of Birth</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-date">date</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" id="item.ihi" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-string.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="string" class="hierarchy"/> ihi</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">National Identifier (IHI)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" id="item.mobile-phone" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-string.png" alt="." style="background-color: white; background-color: inherit" title="string" class="hierarchy"/> mobile-phone</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Mobile Phone number</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-string">string</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" id="item.contacts" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-group.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="group" class="hierarchy"/> contacts</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Contacts</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..*</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-group">group</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" id="item.contact-name" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-string.png" alt="." style="background-color: white; background-color: inherit" title="string" class="hierarchy"/> contact-name</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Name</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-string">string</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" id="item.relationship" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-coding.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="coding" class="hierarchy"/> relationship</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Relationship</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-choice">choice</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Value Set: <a href="http://hl7.org/fhir/R4/valueset-patient-contactrelationship.html">Patient Contact Relationship </a></td></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" id="item.phone" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-string.png" alt="." style="background-color: white; background-color: inherit" title="string" class="hierarchy"/> phone</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Phone</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-string">string</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" id="item.obs" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-group.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="group" class="hierarchy"/> obs</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Observations</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-group">group</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" id="item.height" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-decimal.png" alt="." style="background-color: white; background-color: inherit" title="decimal" class="hierarchy"/> height</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">What is your current height (m)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-decimal">decimal</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" id="item.weight" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-decimal.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="decimal" class="hierarchy"/> weight</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">What is your current weight (kg)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-decimal">decimal</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" id="item.complication" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon-q-boolean.png" alt="." style="background-color: white; background-color: inherit" title="boolean" class="hierarchy"/> complication</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/codesystem-item-type.html#item-type-boolean">boolean</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
<tr><td colspan="5" class="hierarchy"><br/><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table><h2>Contained Resources</h2><hr/><p class="res-header-id"><b>Bundle  #bunExtract</b></p><a name="extract-complex-template2/bunExtract"> </a><a name="hcextract-complex-template2/bunExtract"> </a><a name="extract-complex-template2/bunExtract-en-US"> </a><p>Bundle bunExtract of type transaction</p><a name="urn-uuid-6f6177d2-13ee-4d27-b0e8-3eaf663dd031"> </a><a name="Patient_6f6177d2-13ee-4d27-b0e8-3eaf663dd031"> </a><a name="hcPatient_6f6177d2-13ee-4d27-b0e8-3eaf663dd031"> </a><hr/><p>Entry 1 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031</p><p>Resource Patient:</p><blockquote><p class="res-header-id"><b>Generated Narrative: Patient  #null</b></p><p style="border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;">null Unknown, DoB Unknown ( National Identifier (IHI): ?ngen-9?)</p><hr/><table class="grid"><tr><td style="background-color: #f3f5da" title="Ways to contact the Patient">Contact Detail</td><td colspan="3">ph: -unknown-(Mobile)</td></tr></table></blockquote><p>Request:</p><pre>POST Patient
If-Match = Patient?_name=urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031
</pre><a name="urn-uuid-6f6177d2-13ee-4d27-b0e8-3eaf663dd032"> </a><a name="RelatedPerson_6f6177d2-13ee-4d27-b0e8-3eaf663dd032"> </a><a name="hcRelatedPerson_6f6177d2-13ee-4d27-b0e8-3eaf663dd032"> </a><hr/><p>Entry 2 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd032</p><p>Resource RelatedPerson:</p><blockquote><p class="res-header-id"><b>Generated Narrative: RelatedPerson  #null</b></p><p><b>patient</b>: <a href="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031">urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031</a></p><p><b>relationship</b>: <span title="Codes:"/></p><p><b>name</b>: null</p><p><b>telecom</b>: ph: -unknown-(Mobile)</p></blockquote><p>Request:</p><pre>POST RelatedPerson
</pre><a name="urn-uuid-6f6177d2-13ee-4d27-b0e8-3eaf663dd033"> </a><a name="Observation_6f6177d2-13ee-4d27-b0e8-3eaf663dd033"> </a><a name="hcObservation_6f6177d2-13ee-4d27-b0e8-3eaf663dd033"> </a><hr/><p>Entry 3 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033</p><p>Resource Observation:</p><blockquote><p class="res-header-id"><b>Generated Narrative: Observation  #null</b></p><p><b>status</b>: Final</p><p><b>category</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/observation-category vital-signs}">Vital Signs</span></p><p><b>code</b>: <span title="Codes:{http://loinc.org 8302-2}">Body height</span></p><p><b>subject</b>: <a href="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031">urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031</a></p><p><b>effective</b>: 1900-01-01</p><p><b>issued</b>: <code>Extract Template - Extract value: </code>%resource.authored</p><p><b>performer</b>: ??</p><p><b>value</b>:  cm<span style="background: LightGoldenRodYellow"> (Details: UCUM  codecm = 'cm')</span></p><p><b>derivedFrom</b>: ??</p></blockquote><p>Request:</p><pre>POST Observation
</pre><a name="urn-uuid-6f6177d2-13ee-4d27-b0e8-3eaf663dd034"> </a><a name="Observation_6f6177d2-13ee-4d27-b0e8-3eaf663dd034"> </a><a name="hcObservation_6f6177d2-13ee-4d27-b0e8-3eaf663dd034"> </a><hr/><p>Entry 4 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034</p><p>Resource Observation:</p><blockquote><p class="res-header-id"><b>Generated Narrative: Observation  #null</b></p><p><b>status</b>: Final</p><p><b>category</b>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/observation-category vital-signs}">Vital Signs</span></p><p><b>code</b>: <span title="Codes:{http://loinc.org 29463-7}">Weight</span></p><p><b>subject</b>: <a href="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031">urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031</a></p><p><b>effective</b>: 1900-01-01</p><p><b>issued</b>: <code>Extract Template - Extract value: </code>%resource.authored</p><p><b>performer</b>: ??</p><p><b>value</b>:  kg<span style="background: LightGoldenRodYellow"> (Details: UCUM  codekg = 'kg')</span></p><p><b>derivedFrom</b>: ??</p></blockquote><p>Request:</p><pre>POST Observation
</pre><a name="urn-uuid-6f6177d2-13ee-4d27-b0e8-3eaf663dd035"> </a><a name="Observation_6f6177d2-13ee-4d27-b0e8-3eaf663dd035"> </a><a name="hcObservation_6f6177d2-13ee-4d27-b0e8-3eaf663dd035"> </a><hr/><p>Entry 5 - fullUrl = urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035</p><p>Resource Observation:</p><blockquote><p class="res-header-id"><b>Generated Narrative: Observation  #null</b></p><p><b>status</b>: Final</p><p><b>code</b>: <span title="Codes:{http://example.org/sdh/demo/CodeSystem/cc-screening-codes sigmoidoscopy-complication}">sigmoidoscopy-complication</span></p><p><b>subject</b>: <a href="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031">urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031</a></p><p><b>effective</b>: 1900-01-01</p><p><b>issued</b>: <code>Extract Template - Extract value: </code>%resource.authored</p><p><b>performer</b>: ??</p><p><b>value</b>: <code>Extract Template - Extract value: </code>answer.value</p><p><b>derivedFrom</b>: ??</p></blockquote><p>Request:</p><pre>POST Observation
</pre></div>
  </text>
  <contained>
    <Bundle>
      <id value="bunExtract"/>
      <type value="transaction"/>
      <entry>
        <extension
                   url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
          <valueString value="item.where(linkId = 'patient')"/>
        </extension>
        <fullUrl value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"/>
        <resource>
          <Patient>
            <identifier>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
                <valueString value="item.where(linkId = 'ihi').answer.value"/>
              </extension>
              <type>
                <text value="National Identifier (IHI)"/>
              </type>
              <system value="http://example.org/nhio"/>
              <value>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString value="first()"/>
                </extension>
              </value>
            </identifier>
            <name>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
                <valueString value="item.where(linkId = 'name')"/>
              </extension>
              <text>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString
                               value="item.where(linkId='given' or linkId='family').answer.value.join(' ')"/>
                </extension>
              </text>
              <family>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString
                               value="item.where(linkId = 'family').answer.value.first()"/>
                </extension>
              </family>
              <given>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString
                               value="item.where(linkId = 'given').answer.value"/>
                </extension>
              </given>
            </name>
            <telecom>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
                <valueString
                             value="item.where(linkId = 'mobile-phone').answer.value"/>
              </extension>
              <system value="phone"/>
              <value>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString value="first()"/>
                </extension>
              </value>
              <use value="mobile"/>
            </telecom>
            <gender value="unknown">
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString
                             value="item.where(linkId = 'gender').answer.value.first().code"/>
              </extension>
            </gender>
          </Patient>
        </resource>
        <request>
          <method value="POST"/>
          <url value="Patient"/>
          <ifMatch
                   value="Patient?_name=urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"/>
        </request>
      </entry>
      <entry>
        <extension
                   url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
          <valueString value="item.where(linkId = 'contacts')"/>
        </extension>
        <fullUrl value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd032"/>
        <resource>
          <RelatedPerson>
            <patient>
              <reference
                         value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"/>
            </patient>
            <relationship>
              <coding>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString
                               value="item.where(linkId = 'relationship').answer.value.first()"/>
                </extension>
              </coding>
            </relationship>
            <name>
              <text>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString
                               value="item.where(linkId = 'contact-name').answer.value.first()"/>
                </extension>
              </text>
            </name>
            <telecom>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
                <valueString
                             value="item.where(linkId = 'phone').answer.value"/>
              </extension>
              <system value="phone"/>
              <value>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString value="first()"/>
                </extension>
              </value>
              <use value="mobile"/>
            </telecom>
          </RelatedPerson>
        </resource>
        <request>
          <method value="POST"/>
          <url value="RelatedPerson"/>
        </request>
      </entry>
      <entry>
        <extension
                   url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
          <valueString
                       value="item.where(linkId = 'obs').item.where(linkId = 'height')"/>
        </extension>
        <fullUrl value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd033"/>
        <resource>
          <Observation>
            <status value="final"/>
            <category>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/observation-category"/>
                <code value="vital-signs"/>
              </coding>
            </category>
            <code>
              <coding>
                <system value="http://loinc.org"/>
                <code value="8302-2"/>
                <display value="Body height"/>
              </coding>
            </code>
            <subject>
              <reference
                         value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"/>
            </subject>
            <effectiveDateTime value="1900-01-01">
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.authored"/>
              </extension>
            </effectiveDateTime>
            <issued>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.authored"/>
              </extension>
            </issued>
            <performer>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.author"/>
              </extension>
            </performer>
            <valueQuantity>
              <value>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString value="answer.value * 100"/>
                </extension>
              </value>
              <unit value="cm"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="cm"/>
            </valueQuantity>
            <derivedFrom>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
                <valueString value="%resource.id"/>
              </extension>
            </derivedFrom>
          </Observation>
        </resource>
        <request>
          <method value="POST"/>
          <url value="Observation"/>
        </request>
      </entry>
      <entry>
        <extension
                   url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
          <valueString
                       value="item.where(linkId = 'obs').item.where(linkId = 'weight')"/>
        </extension>
        <fullUrl value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd034"/>
        <resource>
          <Observation>
            <status value="final"/>
            <category>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/observation-category"/>
                <code value="vital-signs"/>
              </coding>
            </category>
            <code>
              <coding>
                <system value="http://loinc.org"/>
                <code value="29463-7"/>
                <display value="Weight"/>
              </coding>
            </code>
            <subject>
              <reference
                         value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"/>
            </subject>
            <effectiveDateTime value="1900-01-01">
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.authored"/>
              </extension>
            </effectiveDateTime>
            <issued>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.authored"/>
              </extension>
            </issued>
            <performer>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.author"/>
              </extension>
            </performer>
            <valueQuantity>
              <value>
                <extension
                           url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                  <valueString value="answer.value"/>
                </extension>
              </value>
              <unit value="kg"/>
              <system value="http://unitsofmeasure.org"/>
              <code value="kg"/>
            </valueQuantity>
            <derivedFrom>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
                <valueString value="%resource.id"/>
              </extension>
            </derivedFrom>
          </Observation>
        </resource>
        <request>
          <method value="POST"/>
          <url value="Observation"/>
        </request>
      </entry>
      <entry>
        <extension
                   url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
          <valueString
                       value="item.where(linkId = 'obs').item.where(linkId = 'complication')"/>
        </extension>
        <fullUrl value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd035"/>
        <resource>
          <Observation>
            <status value="final"/>
            <code>
              <coding>
                <system
                        value="http://example.org/sdh/demo/CodeSystem/cc-screening-codes"/>
                <code value="sigmoidoscopy-complication"/>
              </coding>
            </code>
            <subject>
              <reference
                         value="urn:uuid:6f6177d2-13ee-4d27-b0e8-3eaf663dd031"/>
            </subject>
            <effectiveDateTime value="1900-01-01">
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.authored"/>
              </extension>
            </effectiveDateTime>
            <issued>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.authored"/>
              </extension>
            </issued>
            <performer>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="%resource.author"/>
              </extension>
            </performer>
            <valueBoolean>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue">
                <valueString value="answer.value"/>
              </extension>
            </valueBoolean>
            <derivedFrom>
              <extension
                         url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext">
                <valueString value="%resource.id"/>
              </extension>
            </derivedFrom>
          </Observation>
        </resource>
        <request>
          <method value="POST"/>
          <url value="Observation"/>
        </request>
      </entry>
    </Bundle>
  </contained>
  <extension
             url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]">
    <valueCoding>
      <system value="http://hl7.org/fhir/version-algorithm"/>
      <code value="semver"/>
    </valueCoding>
  </extension>
  <extension
             url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractBundle">
    <valueReference>
      <reference value="#bunExtract"/>
    </valueReference>
  </extension>
  <url
       value="http://hl7.org/fhir/uv/sdc/Questionnaire/extract-complex-template2"/>
  <identifier>
    <system value="urn:ietf:rfc:3986"/>
    <value value="urn:oid:2.16.840.1.113883.4.642.40.17.35.35"/>
  </identifier>
  <version value="4.0.0-ballot"/>
  <name value="SDCQuestionnaireExtrTemplate"/>
  <title value="Complex Extract Demonstration - Template Bundle"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2024-12-17T01:55:34+00:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <name value="HL7 International / FHIR Infrastructure"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description
               value="Example Questionnaire demonstrating extraction using the template approach"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <item>
    <linkId value="patient"/>
    <text value="Patient Information"/>
    <type value="group"/>
    <item>
      <linkId value="name"/>
      <text value="Name"/>
      <type value="group"/>
      <repeats value="true"/>
      <item>
        <linkId value="given"/>
        <text value="Given Name(s)"/>
        <type value="string"/>
        <repeats value="true"/>
      </item>
      <item>
        <linkId value="family"/>
        <text value="Family/Surname"/>
        <type value="string"/>
      </item>
    </item>
    <item>
      <linkId value="gender"/>
      <text value="Gender"/>
      <type value="choice"/>
      <answerValueSet
                      value="http://hl7.org/fhir/ValueSet/administrative-gender"/>
    </item>
    <item>
      <linkId value="dob"/>
      <text value="Date of Birth"/>
      <type value="date"/>
    </item>
    <item>
      <linkId value="ihi"/>
      <text value="National Identifier (IHI)"/>
      <type value="string"/>
    </item>
    <item>
      <linkId value="mobile-phone"/>
      <text value="Mobile Phone number"/>
      <type value="string"/>
    </item>
  </item>
  <item>
    <linkId value="contacts"/>
    <text value="Contacts"/>
    <type value="group"/>
    <repeats value="true"/>
    <item>
      <linkId value="contact-name"/>
      <text value="Name"/>
      <type value="string"/>
    </item>
    <item>
      <linkId value="relationship"/>
      <text value="Relationship"/>
      <type value="choice"/>
      <answerValueSet
                      value="http://hl7.org/fhir/ValueSet/patient-contactrelationship"/>
    </item>
    <item>
      <linkId value="phone"/>
      <text value="Phone"/>
      <type value="string"/>
    </item>
  </item>
  <item>
    <linkId value="obs"/>
    <text value="Observations"/>
    <type value="group"/>
    <item>
      <linkId value="height"/>
      <text value="What is your current height (m)"/>
      <type value="decimal"/>
    </item>
    <item>
      <linkId value="weight"/>
      <text value="What is your current weight (kg)"/>
      <type value="decimal"/>
    </item>
    <item>
      <linkId value="complication"/>
      <text
            value="Have you had a Sigmoidoscopy Complication (concern with invasive procedure, for example)"/>
      <type value="boolean"/>
    </item>
  </item>
</Questionnaire>