FLUTE Cross-border Prostate Cancer Data Standard Guide
0.1.0 - ci-build
Funded by the European Union

FLUTE Cross-border Prostate Cancer Data Standard Guide, published by Flute Project. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-eu/flute/ and changes regularly. See the Directory of published versions

: This TestScript is designed to validate the populate of a questionnaire - XML Representation

Draft as of 2024-05-31

Raw xml | Download


<TestScript xmlns="http://hl7.org/fhir">
  <id value="TS-Flute-03"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: TestScript TS-Flute-03</b></p><a name="TS-Flute-03"> </a><a name="hcTS-Flute-03"> </a><a name="TS-Flute-03-en-US"> </a><p><b>url</b>: <a href="TestScript-TS-Flute-03.html">TestScript This TestScript is designed to validate the populate of a questionnaire</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScriptPopulateQuestionnaire</p><p><b>title</b>: This TestScript is designed to validate the populate of a questionnaire</p><p><b>status</b>: Draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2024-05-31</p><p><b>publisher</b>: Flute Project</p><p><b>contact</b>: Flute Project: <a href="https://www.fluteproject.eu/">https://www.fluteproject.eu/</a>, Flute Project: <a href="https://www.fluteproject.eu/">https://www.fluteproject.eu/</a></p><p><b>description</b>: </p><div><p>This TestScript is designed to validate the populate of a questionnaire</p>
</div><p><b>purpose</b>: </p><div><p>This TestScript is designed to validate the populate of a questionnaire</p>
</div><h3>Origins</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style="display: none">*</td><td>1</td><td><a href="http://terminology.hl7.org/6.0.2/CodeSystem-testscript-profile-origin-types.html#testscript-profile-origin-types-FHIR-Client">Test script profile origin type</a> FHIR-Client: FHIR Client</td></tr></table><h3>Destinations</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style="display: none">*</td><td>1</td><td><a href="http://terminology.hl7.org/6.0.2/CodeSystem-testscript-profile-destination-types.html#testscript-profile-destination-types-FHIR-Server">Test script profile destination type</a> FHIR-Server: FHIR Server</td></tr></table><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>fixture-questionnaire-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href="DocumentReference/EXP-DR-Questionnaire-StudyVariable">DocumentReference/EXP-DR-Questionnaire-StudyVariable</a></p></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>01-PopulateQuestionnaire</blockquote><p><b>name</b>: Populate questionnaire</p><p><b>description</b>: Populate questionnaire Study Variable</p><blockquote><p><b>action</b></p><blockquote><p><b>operation</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p></blockquote></blockquote></blockquote></div>
  </text>
  <url value="http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-03"/>
  <version value="0.1.0"/>
  <name value="TestScriptPopulateQuestionnaire"/>
  <title
         value="This TestScript is designed to validate the populate of a questionnaire"/>
  <status value="draft"/>
  <experimental value="true"/>
  <date value="2024-05-31"/>
  <publisher value="Flute Project"/>
  <contact>
    <name value="Flute Project"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.fluteproject.eu/"/>
    </telecom>
  </contact>
  <contact>
    <name value="Flute Project"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.fluteproject.eu/"/>
    </telecom>
  </contact>
  <description
               value="This TestScript is designed to validate the populate of a questionnaire"/>
  <purpose
           value="This TestScript is designed to validate the populate of a questionnaire"/>
  <origin>
    <index value="1"/>
    <profile>
      <system
              value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/>
      <code value="FHIR-Client"/>
    </profile>
  </origin>
  <destination>
    <index value="1"/>
    <profile>
      <system
              value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>
      <code value="FHIR-Server"/>
    </profile>
  </destination>
  <fixture id="fixture-questionnaire-create">
    <autocreate value="false"/>
    <autodelete value="false"/>
    <resource>
      <reference
                 value="DocumentReference/EXP-DR-Questionnaire-StudyVariable"/>
    </resource>
  </fixture>
  <test id="01-PopulateQuestionnaire">
    <name value="Populate questionnaire"/>
    <description value="Populate questionnaire Study Variable"/>
    <action>
      <operation id="TES-01">
        <extension url="http://fyrstain.com/pdt/returnResourceType">
          <valueString value="QuestionnaireResponse"/>
        </extension>
        <type>
          <system value="http://hl7.org/fhir/restful-interaction"/>
          <code value="operation"/>
        </type>
        <resource value="Questionnaire"/>
        <description value="Populate of questionnaire"/>
        <destination value="1"/>
        <encodeRequestUrl value="false"/>
        <method value="post"/>
        <origin value="1"/>
        <params value="$populate"/>
        <sourceId value="fixture-questionnaire-create"/>
      </operation>
    </action>
    <action>
      <assert id="TES-01-ASS-01">
        <label value="HTTPStatus"/>
        <description value="Confirm that the returned HTTP status is 200."/>
        <direction value="response"/>
        <responseCode value="200"/>
        <warningOnly value="false"/>
      </assert>
    </action>
    <action>
      <assert id="TES-01-ASS-02">
        <label value="Resource"/>
        <description
                     value="Confirm that the returned resource type is QuestionnaireResponse."/>
        <direction value="response"/>
        <resource value="QuestionnaireResponse"/>
        <warningOnly value="false"/>
      </assert>
    </action>
  </test>
</TestScript>