Structured Data Capture
3.0.0 - STU 3 International flag

This page is part of the Structured Data Capture FHIR IG (v3.0.0: STU 3) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: SDC Form Filler - XML Representation

Page standards status: Trial-use Maturity Level: 3

Raw xml | Download



<CapabilityStatement xmlns="http://hl7.org/fhir">
  <id value="sdc-form-filler"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>SDC Form Filler</h2>
      <p>(Requirements Definition Capability Statement)</p>
      <p>Canonical URL: http://hl7.org/fhir/uv/sdc/CapabilityStatement/sdc-form-filler Published: 2014-07-06 (draft)</p>
      <p>Published by: <b>HL7 International - FHIR Infrastructure</b>
      </p>
      <p>This profile defines the expected capabilities of the <i>SDC Form Filler</i> role when conforming to the S&amp;I Framework's <a href="index.html">Structured Data Capture FHIR implementation guide</a>.  This role is responsible for retrieving pre-defined forms, requesting pre-population of forms and/or auto-populating forms, guiding the user through verifying populated data and submitting completed or partially-completed forms.</p>
      <p>Note that Form Fillers may also take on the role of <a href="CapabilityStatement-sdc-form-archiver.html">Form Archiver</a> if they have a requirement to retain the completed version of a form (and potentially the source data that was used to complete it).</p>
      <h2>General</h2>
      <div class="table-wrapper">
        <table class="grid">
          <tbody>
            <tr>
              <th>FHIR Version:</th>
              <td>1.0.0</td>
            </tr>
            <tr>
              <th>Supported formats:</th>
              <td>xml, json</td>
            </tr>
          </tbody>
        </table>
      </div>
      <h2>REST client behavior</h2>
      <p>The <a href="http://hl7.org/fhir/R4/questionnaire.html">Questionnaire</a>, <a href="http://hl7.org/fhir/R4/valueset.html">ValueSet</a> and <a href="http://hl7.org/fhir/R4/codesystem.html">CodeSystem</a> resources are retrieved to allow the system to guide the user through the entry process.  The <a href="http://hl7.org/fhir/R4/binary.html">Binary</a> and <a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a> resources allow the system to find existing clinical documents that can be within the pre-population process.  (Support for retrieval operations on these resources is optional as the relevant CDA or FHIR structures may also be directly generated by the <i>Form Filler</i> itself.)  Finally, the <a href="http://hl7.org/fhir/R4/questionnaireresponse.html">QuestionnaireResponse</a> resource is used to record the populated form.</p>
      <p>Note: Form Fillers that support the 'populate' operation will need to be capable of consuming and rendering a partially completed QuestionnaireResponse in the same manner as if they had retrieved such a QuestionnaireResponse from a <i>Form Response Manager</i>
      </p>
      <p>
        <b>Security:</b>
      </p>
      <p>Implementations must meet the general security requirements documented in the <a href="security.html">SDC implementation guide</a>.</p>
      <h3>Resource summary</h3>
      <div class="table-wrapper">
        <table class="grid">
          <thead>
            <tr>
              <th>Resource</th>
              <th>Search</th>
              <th>Read</th>
              <th>Read Version</th>
              <th>Instance History</th>
              <th>Resource History</th>
              <th>Create</th>
              <th>Update</th>
              <th>Delete</th>
              <th>Operations</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th>Questionnaire (<a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire">Profile</a>)</th>
              <td>
                <a href="#Questionnaire-search-type" title="Allows discovery of existing questionnaires to be completed">SHALL</a>
              </td>
              <td>
                <a href="#Questionnaire-read" title="Allows retrieval of a specific questionnaire by id.  Allows systems to maintain a 'favorites' list of forms and retrieve them by id.">SHOULD</a>
              </td>
              <td>
                <a href="#Questionnaire-vread" title="Allows retrieval of a historical version of a questionnaire.  Most systems will make use of the current version only.">MAY</a>
              </td>
              <td>
                <a href="#Questionnaire-history-instance" title="Allows review of changes made to a questionnaire over time.  Of interest to some systems, but probably not most.">MAY</a>
              </td>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
            </tr>
            <tr>
              <th>ValueSet (<a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-valueset">Profile</a>)</th>
              <td/>
              <td>
                <a href="#ValueSet-read" title="Allows retrieval of a specific value set by id (as referenced in a Questionnaire)">SHALL</a>
              </td>
              <td>
                <a href="#ValueSet-vread" title="Allows retrieval of a specific version of a value set (as referenced in a Questionnaire)">SHOULD</a>
              </td>
              <td>
                <a href="#ValueSet-history-instance" title="Allows review of changes to a value set over time.  Of interest to some systems, but probably not most.">MAY</a>
              </td>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
            </tr>
            <tr>
              <th>CodeSystem (<a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-codesystem">Profile</a>)</th>
              <td/>
              <td>
                <a href="#CodeSystem-read" title="Allows retrieval of a specific code system by id (as referenced by a ValueSet used in a Questionnaire)">SHALL</a>
              </td>
              <td>
                <a href="#CodeSystem-vread" title="Allows retrieval of a specific version of a code system (as referenced by a ValueSet used in a Questionnaire)">SHOULD</a>
              </td>
              <td>
                <a href="#CodeSystem-history-instance" title="Allows review of changes to a code system over time.  Of interest to some systems, but probably not most.">MAY</a>
              </td>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
            </tr>
            <tr>
              <th>QuestionnaireResponse (<a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse">Profile</a>)</th>
              <td>
                <a href="#QuestionnaireResponse-search-type" title="Allows a user to search for existing completed or partially-completed forms.  Generally used to find partially-completed forms for update.">SHALL</a>
              </td>
              <td>
                <a href="#QuestionnaireResponse-read" title="Allows retrieval of a specific QuestionnaireResponse by id.">SHALL</a>
              </td>
              <td/>
              <td>
                <a href="#QuestionnaireResponse-history-instance" title="Allows review of prior versions of an answer set - allows reversion to previously recorded versions">SHOULD</a>
              </td>
              <td/>
              <td>
                <a href="#QuestionnaireResponse-create" title="Allows recording a completed or partially-completed form">SHALL</a>
              </td>
              <td>
                <a href="#QuestionnaireResponse-update" title="Allows updating an existing completed or partially-completed form.  (Systems may place rules on who can update forms and under what circumstances.)">SHALL</a>
              </td>
              <td>
                <a href="#QuestionnaireResponse-delete" title="Allows removal of a completed form from a repository.  Note that the removal may be logical rather than physical.  Some systems may have rules for who can remove a completed form and under what circumstances.">SHALL</a>
              </td>
              <td/>
            </tr>
            <tr>
              <th>DocumentReference</th>
              <td>
                <a href="#DocumentReference-search-type" title="Allows discovery of existing documents that may be included in a form pre-population request">SHOULD</a>
              </td>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
            </tr>
            <tr>
              <th>Binary</th>
              <td/>
              <td>
                <a href="#Binary-read" title="Allows retrieval of a specific binary (as pointed to by a DocumentReference)">SHOULD</a>
              </td>
              <td>
                <a href="#Binary-vread" title="Allows retrieval of a historical version of a binary.  In general, the most recent version would be appropriate, but some may prefer to use the specific version referenced by a DocumentReference.">MAY</a>
              </td>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
              <td/>
            </tr>
          </tbody>
        </table>
      </div>
      <p>
        <b>Operations:</b>
      </p>
      <ul>
        <li>
          <a href="http://hl7.org/fhir/OperationDefinition/ValueSet-expand">$expand</a>
          <i> SHOULD</i>
        </li>
        <li>
          <a href="http://hl7.org/fhir/operationdefinition/valueset-validate-code">$validate code</a>
          <i> SHOULD</i>
        </li>
        <li>
          <a href="http://hl7.org/fhir/uv/sdc/operationdefinition/questionnaire-populate">$populate</a>
          <i> MAY</i>
        </li>
        <li>
          <a href="http://hl7.org/fhir/uv/sdc/operationdefinition/questionnaire-populatehtml">$populatehtml</a>
          <i> MAY</i>
        </li>
        <li>
          <a href="http://hl7.org/fhir/uv/sdc/operationdefinition/questionnaire-populatelink">$populatelink</a>
          <i> MAY</i>
        </li>
      </ul>
      <br/>
      <br/>
      <h3>
        <a href="http://hl7.org/fhir/R4/questionnaire.html">Questionnaire</a>
      </h3>
      <p>Profile: <a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire">http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire</a>
      </p>
      <h4>Interactions</h4>
      <div class="table-wrapper">
        <table class="list">
          <thead>
            <tr>
              <th>Name</th>
              <th>Conformance</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th>
                <a name="Questionnaire-search-type"> </a>
                <span>search-type</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows discovery of existing questionnaires to be completed</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="Questionnaire-read"> </a>
                <span>read</span>
              </th>
              <td>SHOULD</td>
              <td>
                <p>Allows retrieval of a specific questionnaire by id.  Allows systems to maintain a 'favorites' list of forms and retrieve them by id.</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="Questionnaire-history-instance"> </a>
                <span>history-instance</span>
              </th>
              <td>MAY</td>
              <td>
                <p>Allows review of changes made to a questionnaire over time.  Of interest to some systems, but probably not most.</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="Questionnaire-vread"> </a>
                <span>vread</span>
              </th>
              <td>MAY</td>
              <td>
                <p>Allows retrieval of a historical version of a questionnaire.  Most systems will make use of the current version only.</p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br/>
      <br/>
      <h3>
        <a href="http://hl7.org/fhir/R4/valueset.html">ValueSet</a>
      </h3>
      <p>Profile: <a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-valueset">http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-valueset</a>
      </p>
      <h4>Interactions</h4>
      <div class="table-wrapper">
        <table class="list">
          <thead>
            <tr>
              <th>Name</th>
              <th>Conformance</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th>
                <a name="ValueSet-read"> </a>
                <span>read</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows retrieval of a specific value set by id (as referenced in a Questionnaire)</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="ValueSet-vread"> </a>
                <span>vread</span>
              </th>
              <td>SHOULD</td>
              <td>
                <p>Allows retrieval of a specific version of a value set (as referenced in a Questionnaire)</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="ValueSet-history-instance"> </a>
                <span>history-instance</span>
              </th>
              <td>MAY</td>
              <td>
                <p>Allows review of changes to a value set over time.  Of interest to some systems, but probably not most.</p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br/>
      <br/>
      <h3>
        <a href="http://hl7.org/fhir/R4/codesystem.html">CodeSystem</a>
      </h3>
      <p>Profile: <a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-codesystem">http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-codesystem</a>
      </p>
      <h4>Interactions</h4>
      <div class="table-wrapper">
        <table class="list">
          <thead>
            <tr>
              <th>Name</th>
              <th>Conformance</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th>
                <a name="CodeSystem-read"> </a>
                <span>read</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows retrieval of a specific code system by id (as referenced by a ValueSet used in a Questionnaire)</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="CodeSystem-vread"> </a>
                <span>vread</span>
              </th>
              <td>SHOULD</td>
              <td>
                <p>Allows retrieval of a specific version of a code system (as referenced by a ValueSet used in a Questionnaire)</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="CodeSystem-history-instance"> </a>
                <span>history-instance</span>
              </th>
              <td>MAY</td>
              <td>
                <p>Allows review of changes to a code system over time.  Of interest to some systems, but probably not most.</p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br/>
      <br/>
      <h3>
        <a href="http://hl7.org/fhir/R4/questionnaireresponse.html">QuestionnaireResponse</a>
      </h3>
      <p>Profile: <a href="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse">http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse</a>
      </p>
      <h4>Interactions</h4>
      <div class="table-wrapper">
        <table class="list">
          <thead>
            <tr>
              <th>Name</th>
              <th>Conformance</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th>
                <a name="QuestionnaireResponse-search-type"> </a>
                <span>search-type</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows a user to search for existing completed or partially-completed forms.  Generally used to find partially-completed forms for update.</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="QuestionnaireResponse-read"> </a>
                <span>read</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows retrieval of a specific QuestionnaireResponse by id.</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="QuestionnaireResponse-create"> </a>
                <span>create</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows recording a completed or partially-completed form</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="QuestionnaireResponse-update"> </a>
                <span>update</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows updating an existing completed or partially-completed form.  (Systems may place rules on who can update forms and under what circumstances.)</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="QuestionnaireResponse-delete"> </a>
                <span>delete</span>
              </th>
              <td>SHALL</td>
              <td>
                <p>Allows removal of a completed form from a repository.  Note that the removal may be logical rather than physical.  Some systems may have rules for who can remove a completed form and under what circumstances.</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="QuestionnaireResponse-history-instance"> </a>
                <span>history-instance</span>
              </th>
              <td>SHOULD</td>
              <td>
                <p>Allows review of prior versions of an answer set - allows reversion to previously recorded versions</p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br/>
      <br/>
      <h3>
        <a href="http://hl7.org/fhir/R4/documentreference.html">DocumentReference</a>
      </h3>
      <h4>Interactions</h4>
      <div class="table-wrapper">
        <table class="list">
          <thead>
            <tr>
              <th>Name</th>
              <th>Conformance</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th>
                <a name="DocumentReference-search-type"> </a>
                <span>search-type</span>
              </th>
              <td>SHOULD</td>
              <td>
                <p>Allows discovery of existing documents that may be included in a form pre-population request</p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br/>
      <br/>
      <h3>
        <a href="http://hl7.org/fhir/R4/binary.html">Binary</a>
      </h3>
      <h4>Interactions</h4>
      <div class="table-wrapper">
        <table class="list">
          <thead>
            <tr>
              <th>Name</th>
              <th>Conformance</th>
              <th>Description</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th>
                <a name="Binary-read"> </a>
                <span>read</span>
              </th>
              <td>SHOULD</td>
              <td>
                <p>Allows retrieval of a specific binary (as pointed to by a DocumentReference)</p>
              </td>
            </tr>
            <tr>
              <th>
                <a name="Binary-vread"> </a>
                <span>vread</span>
              </th>
              <td>MAY</td>
              <td>
                <p>Allows retrieval of a historical version of a binary.  In general, the most recent version would be appropriate, but some may prefer to use the specific version referenced by a DocumentReference.</p>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </text>
  <url value="http://hl7.org/fhir/uv/sdc/CapabilityStatement/sdc-form-filler"/>
  <version value="3.0.0"/>
  <name value="SDCFormFiller"/>
  <title value="SDC Form Filler"/>
  <status value="draft"/>
  <date value="2014-07-06"/>
  <publisher value="HL7 International - FHIR Infrastructure Work Group"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description
               value="This profile defines the expected capabilities of the &#39;&#39;SDC Form Filler&#39;&#39; role when conforming to the S&amp;I Framework&#39;s [[index.html|Structured Data Capture FHIR implementation guide]].  This role is responsible for retrieving pre-defined forms, requesting pre-population of forms and/or auto-populating forms, guiding the user through verifying populated data and submitting completed or partially-completed forms.&lt;br/&gt;Note that Form Fillers may also take on the role of [[CapabilityStatement-sdc-form-archiver.html|Form Archiver]] if they have a requirement to retain the completed version of a form (and potentially the source data that was used to complete it)."/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
    </coding>
  </jurisdiction>
  <kind value="requirements"/>
  <fhirVersion value="1.0.0"/>
  <format value="xml"/>
  <format value="json"/>
  <rest>
    <mode value="client"/>
    <documentation
                   value="The [[Questionnaire]], [[ValueSet]] and [[CodeSystem]] resources are retrieved to allow the system to guide the user through the entry process.  The [[Binary]] and [[DocumentReference]] resources allow the system to find existing clinical documents that can be within the pre-population process.  (Support for retrieval operations on these resources is optional as the relevant CDA or FHIR structures may also be directly generated by the &#39;&#39;Form Filler&#39;&#39; itself.)  Finally, the [[QuestionnaireResponse]] resource is used to record the populated form.&lt;br/&gt;Note: Form Fillers that support the &#39;populate&#39; operation will need to be capable of consuming and rendering a partially completed QuestionnaireResponse in the same manner as if they had retrieved such a QuestionnaireResponse from a &#39;&#39;Form Response Manager&#39;&#39;"/>
    <security>
      <description
                   value="Implementations must meet the general security requirements documented in the [[security.html|SDC implementation guide]]."/>
    </security>
    <resource>
      <type value="Questionnaire"/>
      <profile
               value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="search-type"/>
        <documentation
                       value="Allows discovery of existing questionnaires to be completed"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="read"/>
        <documentation
                       value="Allows retrieval of a specific questionnaire by id.  Allows systems to maintain a &#39;favorites&#39; list of forms and retrieve them by id."/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="history-instance"/>
        <documentation
                       value="Allows review of changes made to a questionnaire over time.  Of interest to some systems, but probably not most."/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="vread"/>
        <documentation
                       value="Allows retrieval of a historical version of a questionnaire.  Most systems will make use of the current version only."/>
      </interaction>
    </resource>
    <resource>
      <type value="ValueSet"/>
      <profile
               value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-valueset"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="read"/>
        <documentation
                       value="Allows retrieval of a specific value set by id (as referenced in a Questionnaire)"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
        <documentation
                       value="Allows retrieval of a specific version of a value set (as referenced in a Questionnaire)"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="history-instance"/>
        <documentation
                       value="Allows review of changes to a value set over time.  Of interest to some systems, but probably not most."/>
      </interaction>
    </resource>
    <resource>
      <type value="CodeSystem"/>
      <profile
               value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-codesystem"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="read"/>
        <documentation
                       value="Allows retrieval of a specific code system by id (as referenced by a ValueSet used in a Questionnaire)"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="vread"/>
        <documentation
                       value="Allows retrieval of a specific version of a code system (as referenced by a ValueSet used in a Questionnaire)"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="history-instance"/>
        <documentation
                       value="Allows review of changes to a code system over time.  Of interest to some systems, but probably not most."/>
      </interaction>
    </resource>
    <resource>
      <type value="QuestionnaireResponse"/>
      <profile
               value="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="search-type"/>
        <documentation
                       value="Allows a user to search for existing completed or partially-completed forms.  Generally used to find partially-completed forms for update."/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="read"/>
        <documentation
                       value="Allows retrieval of a specific QuestionnaireResponse by id."/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="create"/>
        <documentation
                       value="Allows recording a completed or partially-completed form"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="update"/>
        <documentation
                       value="Allows updating an existing completed or partially-completed form.  (Systems may place rules on who can update forms and under what circumstances.)"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHALL"/>
        </extension>
        <code value="delete"/>
        <documentation
                       value="Allows removal of a completed form from a repository.  Note that the removal may be logical rather than physical.  Some systems may have rules for who can remove a completed form and under what circumstances."/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="history-instance"/>
        <documentation
                       value="Allows review of prior versions of an answer set - allows reversion to previously recorded versions"/>
      </interaction>
    </resource>
    <resource>
      <type value="DocumentReference"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="search-type"/>
        <documentation
                       value="Allows discovery of existing documents that may be included in a form pre-population request"/>
      </interaction>
    </resource>
    <resource>
      <type value="Binary"/>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="SHOULD"/>
        </extension>
        <code value="read"/>
        <documentation
                       value="Allows retrieval of a specific binary (as pointed to by a DocumentReference)"/>
      </interaction>
      <interaction>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
          <valueCode value="MAY"/>
        </extension>
        <code value="vread"/>
        <documentation
                       value="Allows retrieval of a historical version of a binary.  In general, the most recent version would be appropriate, but some may prefer to use the specific version referenced by a DocumentReference."/>
      </interaction>
    </resource>
    <operation>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHOULD"/>
      </extension>
      <name value="expand"/>
      <definition
                  value="http://hl7.org/fhir/OperationDefinition/ValueSet-expand"/>
    </operation>
    <operation>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="SHOULD"/>
      </extension>
      <name value="validate code"/>
      <definition
                  value="http://hl7.org/fhir/OperationDefinition/ValueSet-validate-code"/>
    </operation>
    <operation>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <name value="populate"/>
      <definition
                  value="http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-populate"/>
    </operation>
    <operation>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <name value="populatehtml"/>
      <definition
                  value="http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-populatehtml"/>
    </operation>
    <operation>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation">
        <valueCode value="MAY"/>
      </extension>
      <name value="populatelink"/>
      <definition
                  value="http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-populatelink"/>
    </operation>
  </rest>
</CapabilityStatement>