Connectathon 11 Snapshot

This page is part of the FHIR Specification (v1.2.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Questionnaire-sdc-profile-example-cap.xml

Raw XML (canonical form)

Cancer pathology questionnaire with flow-control extensions (id = "questionnaire-sdc-profile-example-cap")

<Questionnaire xmlns="http://hl7.org/fhir">
  <id value="questionnaire-sdc-profile-example-cap"/>
  <text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: questionnaire-sdc-profile-example-cap</p><p><b>status</b>: published</p><p><b>title</b>: (Ask Richard)</p><blockquote><p><b>item</b></p><p><b>linkId</b>: 1</p><p><b>text</b>: MARGINS</p><p><b>type</b>: group</p><p><b>required</b>: true</p><p><b>repeats</b>: false</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table></blockquote><blockquote><p><b>item</b></p><p><b>linkId</b>: 2</p><p><b>text</b>: ACCESSORY FINDINGS</p><p><b>type</b>: group</p><p><b>required</b>: true</p><p><b>repeats</b>: false</p><h3>Items</h3><table><tr><td>-</td></tr><tr><td>*</td></tr><tr><td>*</td></tr></table></blockquote></div></text><status value="published"/>
  <title value="(Ask Richard)"/>
  <item>
    <linkId value="1"/>
    <text value="MARGINS"/>
    <type value="group"/>
    <required value="true"/>
    <repeats value="false"/>
    <item>
      <linkId value="1.1"/>
      <!--      Should probably have a snomed code as the "concept" here      -->
      <text value="Status of surgical margin involvement by tumor (observable entity)"/>
      <type value="choice"/>
      <required value="true"/>
      <repeats value="false"/>
      <option>
        <code value="M1"/>
        <display value="Margins univolved by tumor"/>
      </option>
      <option>
        <code value="M2"/>
        <display value="Margin(s) involved by tumor"/>
      </option>
      <option>
        <code value="M3"/>
        <display value="Cannot be determined"/>
      </option>
      <option>
        <code value="M4"/>
        <display value="Not applicable"/>
      </option>
      <item>
        <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-enableWhen">
          <extension url="question">
            <valueString value="1.1"/>
          </extension>
          <extension url="answer">
            <valueCoding>
              <code value="M1"/>
            </valueCoding>
          </extension>
        </extension>
        <linkId value="1.1.1"/>
        <type value="group"/>
        <required value="true"/>
        <repeats value="false"/>
        <item>
          <linkId value="1.1.1.1"/>
          <text value="Distance from Closest Margin"/>
          <type value="choice"/>
          <required value="false"/>
          <repeats value="false"/>
          <option>
            <code value="D1"/>
            <display value="Specify (mm)"/>
          </option>
          <option>
            <code value="D2"/>
            <display value="Cannot be assessed (explain)"/>
          </option>
          <item>
            <!--      This *has* to be treated as a distinct question, not a characteristic of the code.
                  - it has its own properties and could map to its own data element. 
             That makes it
                  a question in its own right.  It would be possible for display software
             to render
                  the question so that the question text doesn't display when it's the
             same as the text
                  of the corresponding answer.  Alternatively, we could petition to allow
             question.text
                  to be omitted, at least in some circumstances.      -->
            <extension url="http://hl7.org/fhir/StructureDefinition/minValue">
              <valueDecimal value="0.01"/>
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/maxValue">
              <valueDecimal value="1000"/>
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces">
              <valueInteger value="2"/>
            </extension>
            <linkId value="1.1.1.1.1.1"/>
            <text value="Specify (mm)"/>
            <type value="decimal"/>
            <required value="true"/>
            <repeats value="false"/>
          </item>
          <item>
            <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
              <valueInteger value="4000"/>
            </extension>
            <linkId value="1.1.1.1.2.1"/>
            <text value="Cannot be assessed (explain)"/>
            <type value="string"/>
            <required value="true"/>
            <repeats value="false"/>
          </item>
        </item>
        <item>
          <linkId value="1.1.1.2"/>
          <text value="Specify Margin, if possible"/>
          <type value="choice"/>
          <required value="false"/>
          <repeats value="false"/>
          <option>
            <code value="W1"/>
            <display value="Specify margin"/>
          </option>
          <option>
            <code value="W2"/>
            <display value="Cannot be determined (explain)"/>
          </option>
          <item>
            <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
              <valueInteger value="4000"/>
            </extension>
            <linkId value="1.1.1.2.1.1"/>
            <text value="Specify margin"/>
            <type value="string"/>
            <required value="true"/>
            <repeats value="false"/>
          </item>
          <item>
            <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
              <valueInteger value="4000"/>
            </extension>
            <linkId value="1.1.1.2.2.1"/>
            <text value="Cannot be determined (explain)"/>
            <type value="string"/>
            <required value="true"/>
            <repeats value="false"/>
          </item>
        </item>
      </item>
      <item>
        <linkId value="1.1.2.1"/>
        <text value="Specify Margin(s), if possible"/>
        <type value="choice"/>
        <required value="true"/>
        <repeats value="false"/>
        <option>
          <code value="I1"/>
          <display value="Specify margin(s)"/>
        </option>
        <option>
          <code value="I2"/>
          <display value="Cannot be determined (explain)"/>
        </option>
        <item>
          <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
            <valueInteger value="4000"/>
          </extension>
          <linkId value="1.1.2.1.1.1"/>
          <text value="Specify margin(s)"/>
          <type value="string"/>
          <required value="true"/>
          <repeats value="false"/>
        </item>
        <item>
          <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
            <valueInteger value="4000"/>
          </extension>
          <linkId value="1.1.2.1.2.1"/>
          <text value="Cannot be determined (explain)"/>
          <type value="string"/>
          <required value="true"/>
          <repeats value="false"/>
        </item>
      </item>
      <item>
        <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
          <valueInteger value="4000"/>
        </extension>
        <linkId value="1.1.3.1"/>
        <text value="Cannot be determined"/>
        <type value="string"/>
        <required value="true"/>
        <repeats value="false"/>
      </item>
      <item>
        <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
          <valueInteger value="4000"/>
        </extension>
        <linkId value="1.1.4.1"/>
        <text value="Not Applicable"/>
        <type value="string"/>
        <required value="true"/>
        <repeats value="false"/>
      </item>
    </item>
  </item>
  <item>
    <linkId value="2"/>
    <text value="ACCESSORY FINDINGS"/>
    <type value="group"/>
    <required value="true"/>
    <repeats value="false"/>
    <item>
      <linkId value="2.1"/>
      <text value="Treatment Effect (applicable to carcinomas treated with neoadjuvant therapy)"/>
      <type value="choice"/>
      <required value="false"/>
      <repeats value="false"/>
      <option>
        <code value="E1"/>
        <display value="Not identified"/>
      </option>
      <option>
        <code value="E2"/>
        <display value="Present (specify)"/>
      </option>
      <option>
        <code value="E3"/>
        <display value="Indeterminate"/>
      </option>
      <item>
        <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
          <valueInteger value="4000"/>
        </extension>
        <linkId value="2.1.1.1"/>
        <text value="Not identified"/>
        <type value="string"/>
        <required value="true"/>
        <repeats value="false"/>
      </item>
      <item>
        <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
          <valueInteger value="4000"/>
        </extension>
        <linkId value="2.1.2.1"/>
        <text value="Present (specify)"/>
        <type value="string"/>
        <required value="true"/>
        <repeats value="false"/>
      </item>
      <item>
        <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
          <valueInteger value="4000"/>
        </extension>
        <linkId value="2.1.3.1"/>
        <text value="Indeterminate"/>
        <type value="string"/>
        <required value="true"/>
        <repeats value="false"/>
      </item>
    </item>
    <item>
      <linkId value="2.2"/>
      <text value="Tumor Description"/>
      <type value="choice"/>
      <required value="false"/>
      <repeats value="true"/>
      <option>
        <code value="U1"/>
        <display value="Hemorrhagic"/>
      </option>
      <option>
        <code value="U2"/>
        <display value="Necrotic"/>
      </option>
      <option>
        <code value="U3"/>
        <display value="Invasion"/>
      </option>
      <option>
        <code value="U4"/>
        <display value="Other (specify)"/>
      </option>
      <item>
        <linkId value="2.2.1.1"/>
        <text value="??"/>
        <!--      Can't have a question with no text      -->
        <type value="choice"/>
        <required value="false"/>
        <repeats value="true"/>
        <option>
          <code value="V1"/>
          <display value="Capsule"/>
        </option>
        <option>
          <code value="V2"/>
          <display value="Vessels"/>
        </option>
        <option>
          <code value="V3"/>
          <display value="Extra-adrenal (specify)"/>
        </option>
        <item>
          <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
            <valueInteger value="4000"/>
          </extension>
          <linkId value="2.2.1.1.1.1"/>
          <text value="Extra-adrenal (specify)"/>
          <type value="string"/>
          <required value="true"/>
          <repeats value="false"/>
        </item>
      </item>
      <item>
        <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-maxLength">
          <valueInteger value="4000"/>
        </extension>
        <linkId value="2.2.2.1"/>
        <text value="Other (specify)"/>
        <type value="string"/>
        <required value="true"/>
        <repeats value="false"/>
      </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.