Radiation Dose Summary for Diagnostic Procedures on FHIR
1.0.0 -

Radiation Dose Summary for Diagnostic Procedures on FHIR, published by HL7 International / Imaging Integration. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-radiation-dose-summary-ig/ and changes regularly. See the Directory of published versions

## : TestScript_RDSP_Simulator

Page standards status: Trial-use | Maturity Level: 2

Raw xml | Download

    <TestScript xmlns="http://hl7.org/fhir">
      <id value="RDSP-Simulator"/>
      <language value="en"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: TestScript RDSP-Simulator</b></p><a name="RDSP-Simulator"> </a><a name="hcRDSP-Simulator"> </a><p><b>StructureDefinition Work Group</b>: ii</p><p><b>url</b>: <a href="TestScript-RDSP-Simulator.html">TestScript TestScript_RDSP_Simulator</a></p><p><b>version</b>: 1.0.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 International / Imaging Integration</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@gehealthcare.com">abderrazek.boufahja@gehealthcare.com</a></p><p><b>description</b>: </p><div><p>TestScript to validate the FHIR Server capabilities against an RDSP actor.</p>
    </div><p><b>jurisdiction</b>: <span title="Codes:{http://unstats.un.org/unsd/methods/m49/m49.htm 001}">Global (Whole world)</span></p><p><b>copyright</b>: </p><div><p>HL7 2021</p>
    </div><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.5.0/CodeSystem-testscript-profile-destination-types.html#testscript-profile-destination-types-FHIR-Server">Test script profile destination type FHIR-Server</a>: FHIR Server</td></tr></table><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>rds-post-json</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <a href="Bundle-Bundle-RDS-resources.html">Bundle: type = transaction</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 style="display: none">-</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 style="display: none">*</td><td><a href="http://terminology.hl7.org/6.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-transaction">Test script operation code transaction</a>: Transaction</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 style="display: none">-</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 style="display: none">*</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 style="display: none">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Resource</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</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 style="display: none">-</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 style="display: none">*</td><td><a href="http://terminology.hl7.org/6.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read">Test script operation code read</a>: Read</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 style="display: none">-</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 style="display: none">*</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 style="display: none">-</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 style="display: none">*</td><td><a href="http://terminology.hl7.org/6.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-delete">Test script operation code delete</a>: Delete</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 style="display: none">-</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 style="display: none">*</td><td><a href="http://terminology.hl7.org/6.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-delete">Test script operation code delete</a>: Delete</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 style="display: none">-</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 style="display: none">*</td><td><a href="http://terminology.hl7.org/6.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-delete">Test script operation code delete</a>: Delete</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 style="display: none">-</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 style="display: none">*</td><td><a href="http://terminology.hl7.org/6.5.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-delete">Test script operation code delete</a>: Delete</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>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
        <valueCode value="ii"/>
      </extension>
      <url
           value="http://hl7.org/fhir/uv/radiation-dose-summary/TestScript/RDSP-Simulator"/>
      <version value="1.0.0"/>
      <name value="TestScript_RDSP_Simulator"/>
      <status value="active"/>
      <date value="2021-07-17"/>
      <publisher value="HL7 International / Imaging Integration"/>
      <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@gehealthcare.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>