Radiation Dose Summary for Diagnostic Procedures on FHIR
0.1.0 - STU 1 Ballot

Publication Build: This will be filled in by the publication tooling

## : TestScript_RDSP_Simulator - XML Representation

Raw xml | Download

    <TestScript xmlns="http://hl7.org/fhir">
      <id value="RDSP-Simulator"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative</b></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource "RDSP-Simulator" </p></div><p><b>url</b>: <code>https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSP-Simulator.json</code></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: TestScript_RDSP_Simulator</p><p><b>status</b>: active</p><p><b>date</b>: 2021-07-17</p><p><b>publisher</b>: HL7 Imaging Integration Working Group</p><p><b>contact</b>: <a href="http://www.hl7.org/Special/committees/imagemgt">http://www.hl7.org/Special/committees/imagemgt</a>, HL7 Imaging Integration Workgroup: <a href="http://www.hl7.org/Special/committees/imagemgt">http://www.hl7.org/Special/committees/imagemgt</a>, Abderrazek Boufahja: <a href="mailto:abderrazek.boufahja@ge.com">abderrazek.boufahja@ge.com</a></p><p><b>description</b>: TestScript to validate the FHIR Server capabilities against an RDSP actor.</p><p><b>jurisdiction</b>: World <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (m49.htm#001)</span></p><p><b>copyright</b>: HL7 2021</p><h3>Destinations</h3><table class="grid"><tr><td>-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td>*</td><td>1</td><td>FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'FHIR Server')</td></tr></table><blockquote><p><b>fixture</b></p><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href="Bundle-Bundle-RDS-resources.html">Bundle/Bundle-RDS-resources</a></p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: rdsResourceId</p><p><b>path</b>: Bundle/entry/resource/Observation/id</p><p><b>sourceId</b>: bundle-post-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: patientResourceId</p><p><b>path</b>: Bundle/entry/resource/Patient/id</p><p><b>sourceId</b>: bundle-post-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: deviceResourceId</p><p><b>path</b>: Bundle/entry/resource/Device/id</p><p><b>sourceId</b>: bundle-post-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: practitionerResourceId</p><p><b>path</b>: Bundle/entry/resource/Practitioner/id</p><p><b>sourceId</b>: bundle-post-response</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: imagingStudyResourceId</p><p><b>path</b>: Bundle/entry/resource/ImagingStudy/id</p><p><b>sourceId</b>: bundle-post-response</p></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: RDS-Queries-verification-POST</p><p><b>description</b>: This is a Test to validate the FHIR server capabilities according to Radiation Dose Summary searching possibilities.</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td>-</td><td><b>Type</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>ContentType</b></td><td><b>Destination</b></td><td><b>EncodeRequestUrl</b></td><td><b>ResponseId</b></td><td><b>SourceId</b></td></tr><tr><td>*</td><td>Transaction (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code transaction = 'Transaction', stated as 'null')</td><td>Submit a bundle of resources creating the radiation dose summary</td><td>json</td><td>json</td><td>1</td><td>true</td><td>bundle-post-response</td><td>rds-post-json</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td>-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td>*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td>-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Resource</b></td><td><b>WarningOnly</b></td></tr><tr><td>*</td><td>Confirm that the response body contains a Bundle</td><td>response</td><td>Bundle</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: RDS-Queries-verification-read</p><p><b>description</b>: Read the posted Observation as a Radiation Dose Summary resource</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td><td><b>ResponseId</b></td></tr><tr><td>*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>Observation</td><td>Read the Observation ${rdsResourceId}</td><td>json</td><td>true</td><td>/${rdsResourceId}</td><td>rds-read-response</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td>-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td>*</td><td>Confirm that the returned HTTP status is 200(OK) or 201(Created).</td><td>response</td><td>in</td><td>200,201</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>teardown</b></p><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td>*</td><td>Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null')</td><td>Observation</td><td>Relete the Observation ${rdsResourceId}</td><td>json</td><td>true</td><td>/${rdsResourceId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td>*</td><td>Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null')</td><td>ImagingStudy</td><td>Relete the ImagingStudy ${imagingStudyResourceId}</td><td>json</td><td>true</td><td>/${imagingStudyResourceId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td>*</td><td>Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null')</td><td>Patient</td><td>Relete the Patient ${patientResourceId}</td><td>json</td><td>true</td><td>/${patientResourceId}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td>-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Params</b></td></tr><tr><td>*</td><td>Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null')</td><td>Practitioner</td><td>Relete the Practitioner ${practitionerResourceId}</td><td>json</td><td>true</td><td>/${practitionerResourceId}</td></tr></table></blockquote></blockquote></div>
      </text>
      <url
           value="https://build.fhir.org/ig/HL7/fhir-radiation-dose-summary-ig/TestScript-RDSP-Simulator.json"/>
      <version value="0.1.0"/>
      <name value="TestScript_RDSP_Simulator"/>
      <status value="active"/>
      <date value="2021-07-17"/>
      <publisher value="HL7 Imaging Integration Working Group"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/imagemgt"/>
        </telecom>
      </contact>
      <contact>
        <name value="HL7 Imaging Integration Workgroup"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/imagemgt"/>
        </telecom>
      </contact>
      <contact>
        <name value="Abderrazek Boufahja"/>
        <telecom>
          <system value="email"/>
          <value value="abderrazek.boufahja@ge.com"/>
        </telecom>
      </contact>
      <description
                   value="TestScript to validate the FHIR Server capabilities against an RDSP actor."/>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="001"/>
        </coding>
      </jurisdiction>
      <copyright value="HL7 2021"/>
      <destination>
        <index value="1"/>
        <profile>
          <system
                  value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>
          <code value="FHIR-Server"/>
          <display value="FHIR Server"/>
        </profile>
      </destination>
      <fixture id="rds-post-json">
        <autocreate value="false"/>
        <autodelete value="false"/>
        <resource>
          <reference value="Bundle/Bundle-RDS-resources"/>
        </resource>
      </fixture>
      <variable>
        <name value="rdsResourceId"/>
        <path value="Bundle/entry/resource/Observation/id"/>
        <sourceId value="bundle-post-response"/>
      </variable>
      <variable>
        <name value="patientResourceId"/>
        <path value="Bundle/entry/resource/Patient/id"/>
        <sourceId value="bundle-post-response"/>
      </variable>
      <variable>
        <name value="deviceResourceId"/>
        <path value="Bundle/entry/resource/Device/id"/>
        <sourceId value="bundle-post-response"/>
      </variable>
      <variable>
        <name value="practitionerResourceId"/>
        <path value="Bundle/entry/resource/Practitioner/id"/>
        <sourceId value="bundle-post-response"/>
      </variable>
      <variable>
        <name value="imagingStudyResourceId"/>
        <path value="Bundle/entry/resource/ImagingStudy/id"/>
        <sourceId value="bundle-post-response"/>
      </variable>
      <test>
        <name value="RDS-Queries-verification-POST"/>
        <description
                     value="This is a Test to validate the FHIR server capabilities according to Radiation Dose Summary searching possibilities."/>
        <action>
          <operation>
            <type>
              <system
                      value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
              <code value="transaction"/>
            </type>
            <description
                         value="Submit a bundle of resources creating the radiation dose summary"/>
            <accept value="json"/>
            <contentType value="json"/>
            <destination value="1"/>
            <encodeRequestUrl value="true"/>
            <responseId value="bundle-post-response"/>
            <sourceId value="rds-post-json"/>
          </operation>
        </action>
        <action>
          <assert>
            <description
                         value="Confirm that the returned HTTP status is 200(OK) or 201(Created)."/>
            <direction value="response"/>
            <operator value="in"/>
            <responseCode value="200,201"/>
            <warningOnly value="false"/>
          </assert>
        </action>
        <action>
          <assert>
            <description value="Confirm that the response body contains a Bundle"/>
            <direction value="response"/>
            <resource value="Bundle"/>
            <warningOnly value="false"/>
          </assert>
        </action>
      </test>
      <test>
        <name value="RDS-Queries-verification-read"/>
        <description
                     value="Read the posted Observation as a Radiation Dose Summary resource"/>
        <action>
          <operation>
            <type>
              <system
                      value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
              <code value="read"/>
            </type>
            <resource value="Observation"/>
            <description value="Read the Observation ${rdsResourceId}"/>
            <accept value="json"/>
            <encodeRequestUrl value="true"/>
            <params value="/${rdsResourceId}"/>
            <responseId value="rds-read-response"/>
          </operation>
        </action>
        <action>
          <assert>
            <description
                         value="Confirm that the returned HTTP status is 200(OK) or 201(Created)."/>
            <direction value="response"/>
            <operator value="in"/>
            <responseCode value="200,201"/>
            <warningOnly value="false"/>
          </assert>
        </action>
      </test>
      <teardown>
        <action>
          <operation>
            <type>
              <system
                      value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
              <code value="delete"/>
            </type>
            <resource value="Observation"/>
            <description value="Relete the Observation ${rdsResourceId}"/>
            <accept value="json"/>
            <encodeRequestUrl value="true"/>
            <params value="/${rdsResourceId}"/>
          </operation>
        </action>
        <action>
          <operation>
            <type>
              <system
                      value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
              <code value="delete"/>
            </type>
            <resource value="ImagingStudy"/>
            <description value="Relete the ImagingStudy ${imagingStudyResourceId}"/>
            <accept value="json"/>
            <encodeRequestUrl value="true"/>
            <params value="/${imagingStudyResourceId}"/>
          </operation>
        </action>
        <action>
          <operation>
            <type>
              <system
                      value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
              <code value="delete"/>
            </type>
            <resource value="Patient"/>
            <description value="Relete the Patient ${patientResourceId}"/>
            <accept value="json"/>
            <encodeRequestUrl value="true"/>
            <params value="/${patientResourceId}"/>
          </operation>
        </action>
        <action>
          <operation>
            <type>
              <system
                      value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
              <code value="delete"/>
            </type>
            <resource value="Practitioner"/>
            <description value="Relete the Practitioner ${practitionerResourceId}"/>
            <accept value="json"/>
            <encodeRequestUrl value="true"/>
            <params value="/${practitionerResourceId}"/>
          </operation>
        </action>
      </teardown>
    </TestScript>