FLUTE Cross-border Prostate Cancer Data Standard Guide
0.1.0 - ci-build
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
Draft as of 2024-06-12 |
<TestScript xmlns="http://hl7.org/fhir">
<id value="TS-Flute-05"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: TestScript TS-Flute-05</b></p><a name="TS-Flute-05"> </a><a name="hcTS-Flute-05"> </a><a name="TS-Flute-05-en-US"> </a><p><b>url</b>: <a href="TestScript-TS-Flute-05.html">TestScript This TestScript is designed to validate the cql library ResearchVariables2</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScriptResearchVariables2Extract</p><p><b>title</b>: This TestScript is designed to validate the cql library ResearchVariables2</p><p><b>status</b>: Draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2024-06-12</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 cql library ResearchVariables2 with an extract of a questionnaire response</p>
</div><p><b>purpose</b>: </p><div><p>This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response</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-paramsBundle-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href="DocumentReference/EXP-Params-BundleExtract">DocumentReference/EXP-Params-BundleExtract</a></p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>fixture-library-create</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href="DocumentReference/ResearchVariables2">DocumentReference/ResearchVariables2</a></p></blockquote><blockquote><p><b>setup</b></p><blockquote><p><b>action</b></p><blockquote><p><b>operation</b></p><blockquote><p><b>id</b></p>SET-01</blockquote><p><b>type</b>: <a href="http://hl7.org/fhir/R4/codesystem-restful-interaction.html#restful-interaction-update">FHIR Restful Interactions</a> update: update</p><p><b>resource</b>: Library</p><p><b>description</b>: Create the Library resource on the test server using the id from fixture-library-create.</p><p><b>accept</b>: application/fhir+json</p><p><b>contentType</b>: application/fhir+json</p><p><b>encodeRequestUrl</b>: false</p><p><b>method</b>: PUT</p><p><b>sourceId</b>: fixture-library-create</p></blockquote></blockquote><blockquote><p><b>action</b></p><blockquote><p><b>assert</b></p><blockquote><p><b>id</b></p>SET-01-ASS-01</blockquote><p><b>label</b>: HTTPStatus</p><p><b>description</b>: Confirm that the returned HTTP status is 201.</p><p><b>direction</b>: response</p><p><b>responseCode</b>: 201</p><p><b>warningOnly</b>: false</p></blockquote></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>1-EvaluateLibrary</blockquote><p><b>name</b>: Evaluation of CQL Library for Research Variables 2</p><p><b>description</b>: This test evaluates the research variables defined in the CQL library for a prostate cancer study.</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><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><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><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><blockquote><p><b>teardown</b></p><blockquote><p><b>action</b></p><blockquote><p><b>operation</b></p></blockquote></blockquote></blockquote></div>
</text>
<url value="http://hl7.eu/fhir/ig/flute/TestScript/TS-Flute-05"/>
<version value="0.1.0"/>
<name value="TestScriptResearchVariables2Extract"/>
<title
value="This TestScript is designed to validate the cql library ResearchVariables2"/>
<status value="draft"/>
<experimental value="true"/>
<date value="2024-06-12"/>
<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 cql library ResearchVariables2 with an extract of a questionnaire response"/>
<purpose
value="This TestScript is designed to validate the cql library ResearchVariables2 with an extract of a questionnaire response"/>
<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-paramsBundle-create">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>
<reference value="DocumentReference/EXP-Params-BundleExtract"/>
</resource>
</fixture>
<fixture id="fixture-library-create">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>
<reference value="DocumentReference/ResearchVariables2"/>
</resource>
</fixture>
<setup>
<action>
<operation id="SET-01">
<type>
<system value="http://hl7.org/fhir/restful-interaction"/>
<code value="update"/>
</type>
<resource value="Library"/>
<description
value="Create the Library resource on the test server using the id from fixture-library-create."/>
<accept value="application/fhir+json"/>
<contentType value="application/fhir+json"/>
<encodeRequestUrl value="false"/>
<method value="put"/>
<sourceId value="fixture-library-create"/>
</operation>
</action>
<action>
<assert id="SET-01-ASS-01">
<label value="HTTPStatus"/>
<description value="Confirm that the returned HTTP status is 201."/>
<direction value="response"/>
<responseCode value="201"/>
<warningOnly value="false"/>
</assert>
</action>
</setup>
<test id="1-EvaluateLibrary">
<name value="Evaluation of CQL Library for Research Variables 2"/>
<description
value="This test evaluates the research variables defined in the CQL library for a prostate cancer study."/>
<action>
<operation id="TES-01">
<extension url="http://fyrstain.com/pdt/returnResourceType">
<valueString value="Parameters"/>
</extension>
<type>
<system value="http://hl7.org/fhir/restful-interaction"/>
<code value="operation"/>
</type>
<resource value="Library"/>
<description
value="Evaluate the CQL library to retrieve research variables."/>
<contentType value="application/fhir+json"/>
<encodeRequestUrl value="false"/>
<method value="post"/>
<params value="$evaluate"/>
<sourceId value="fixture-paramsBundle-create"/>
<targetId value="fixture-library-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 Parameters."/>
<direction value="response"/>
<resource value="Parameters"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert id="TES-01-ASS-03">
<label value="FHIRPath"/>
<description
value="Confirm that the returned Parameters resource contains an 'dre' parameter with a value of 1."/>
<direction value="response"/>
<expression
value="Parameters.parameter.where(name = 'dre' ).value=1"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert id="TES-01-ASS-04">
<label value="FHIRPath"/>
<description
value="Confirm that the returned Parameters resource contains an 'pcaFamilyHistory' parameter with a value of 0."/>
<direction value="response"/>
<expression
value="Parameters.parameter.where(name = 'pcaFamilyHistory' ).value=0"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert id="TES-01-ASS-05">
<label value="FHIRPath"/>
<description
value="Confirm that the returned Parameters resource contains an 'pirads' parameter with a value of 3."/>
<direction value="response"/>
<expression
value="Parameters.parameter.where(name = 'pirads' ).value=3"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert id="TES-01-ASS-06">
<label value="FHIRPath"/>
<description
value="Confirm that the returned Parameters resource contains an 'prostateVolume' parameter with a value of 30."/>
<direction value="response"/>
<expression
value="Parameters.parameter.where(name = 'prostateVolume' ).value.value=30"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert id="TES-01-ASS-07">
<label value="FHIRPath"/>
<description
value="Confirm that the returned Parameters resource contains an 'psa' parameter with a value of 5."/>
<direction value="response"/>
<expression
value="Parameters.parameter.where(name = 'psa' ).value.value=5"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert id="TES-01-ASS-08">
<label value="FHIRPath"/>
<description
value="Confirm that the returned Parameters resource contains an 'typeOfBiopsy' parameter with a value of 2."/>
<direction value="response"/>
<expression
value="Parameters.parameter.where(name = 'typeOfBiopsy' ).value=2"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<teardown>
<action>
<operation id="TED-01">
<type>
<system value="http://hl7.org/fhir/restful-interaction"/>
<code value="delete"/>
</type>
<resource value="Library"/>
<description
value="Delete the Library resource on the test server using the id from fixture-library-create."/>
<encodeRequestUrl value="true"/>
<method value="delete"/>
<targetId value="fixture-library-create"/>
</operation>
</action>
</teardown>
</TestScript>