0.2.2 - ci-build

FastAccessControl, published by MITRE. This guide is not an authorized publication; it is the continuous build for version 0.2.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/awatson1978/fhir-access-control-ig/ and changes regularly. See the Directory of published versions

: SMART Client Registration - XML Representation

Draft as of 2022-06-14

Raw xml | Download



<TestScript xmlns="http://hl7.org/fhir">
  <id value="TestScript-gszMyXpwsdoAjJZeh"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: TestScript TestScript-gszMyXpwsdoAjJZeh</b></p><a name="TestScript-gszMyXpwsdoAjJZeh"> </a><a name="hcTestScript-gszMyXpwsdoAjJZeh"> </a><a name="TestScript-gszMyXpwsdoAjJZeh-en-US"> </a><p><b>url</b>: <a href="StructureMap-PolstToConsent.html">PolstToConsent</a></p><p><b>version</b>: 0.2.2</p><p><b>name</b>: SMART_Client_Registration</p><p><b>title</b>: R4 TestScript - SMART on FHIR Client Registration</p><p><b>status</b>: Draft</p><p><b>date</b>: 2022-06-14 23:24:46+0000</p><p><b>publisher</b>: MITRE</p><p><b>contact</b>: MITRE: <a href="https://www.mitre.org">https://www.mitre.org</a></p><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>[not stated] 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>[not stated] FHIR-Server: FHIR-Server</td></tr></table><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>47be8943-2604-5d89-abb9-5c4e13a5120b</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p><p><b>resource</b>: <a href="Basic-OAuthRegistrationRequest1.html">Registration Payload 1</a></p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>8b3f5577-4344-5c5e-91a0-ac4942632496</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>b079ec7f-b12a-5fec-bd06-338c44571163</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>f6c54af2-61fd-586d-afde-2d402ebf33af</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>ff897a54-61db-5461-aebb-a42fc4ed0e4d</blockquote><p><b>autocreate</b>: true</p><p><b>autodelete</b>: true</p></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>61dcf836-8376-5637-90e0-24ede617b7b7</blockquote><p><b>name</b>: National Directory - FHIR Metadata</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>Label</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Method</b></td><td><b>Url</b></td></tr><tr><td style="display: none">*</td><td><a href="http://terminology.hl7.org/6.0.2/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read">Test script operation code</a> read: Read</td><td>National Directory - FHIR Metadata</td><td>GET /baseR4/metadata</td><td>json</td><td>true</td><td>GET</td><td>/baseR4/metadata</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>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned HTTP status is 200(OK).</td><td>okay</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>e3daf953-6237-5170-8750-3100c0d76cb3</blockquote><p><b>name</b>: Registration (SMART on FHIR)</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>Label</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Method</b></td><td><b>SourceId</b></td><td><b>Url</b></td></tr><tr><td style="display: none">*</td><td><a href="http://terminology.hl7.org/6.0.2/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-create">Test script operation code</a> create: Create</td><td>Registration (SMART on FHIR)</td><td>POST /oauth/registration</td><td>json</td><td>true</td><td>POST</td><td>47be8943-2604-5d89-abb9-5c4e13a5120b</td><td>/oauth/registration</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>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned HTTP status is 201(Success).</td><td>created</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>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Body contains the following</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>dcd8fa9d-767f-5c63-9648-dffa6974d322</blockquote><p><b>name</b>: Authorize - Stand Alone</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>Label</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Method</b></td><td><b>Url</b></td></tr><tr><td style="display: none">*</td><td><a href="http://terminology.hl7.org/6.0.2/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read">Test script operation code</a> read: Read</td><td>Authorize - Stand Alone</td><td>GET /oauth/authorize</td><td>json</td><td>true</td><td>GET</td><td>/oauth/authorize</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>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned HTTP status is 200(OK).</td><td>okay</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>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Body contains the following</td><td>false</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>e61c9e92-fcdc-5ca3-8b0c-c80d55b50e4e</blockquote><p><b>name</b>: Token request</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>Label</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>EncodeRequestUrl</b></td><td><b>Method</b></td><td><b>Url</b></td></tr><tr><td style="display: none">*</td><td><a href="http://terminology.hl7.org/6.0.2/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-read">Test script operation code</a> read: Read</td><td>Token request</td><td>GET /oauth/token?client_id=12345&amp;code=5KFP8pBZcbqkSuNnY&amp;grant_type=authorization_code&amp;redirect_uri=https%3A%2F%2Finferno.healthit.gov%2Fsuites%2Fcustom%2Fsmart%2Fredirect</td><td>json</td><td>true</td><td>GET</td><td>/oauth/token</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>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned HTTP status is 200(OK).</td><td>okay</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>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Body contains the following</td><td>false</td></tr></table></blockquote></blockquote></div>
  </text>
  <url value="http://"/>
  <version value="0.2.2"/>
  <name value="SMART_Client_Registration"/>
  <title value="R4 TestScript - SMART on FHIR Client Registration"/>
  <status value="draft"/>
  <date value="2022-06-14T23:24:46.024Z"/>
  <publisher value="MITRE"/>
  <contact>
    <name value="MITRE"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.mitre.org"/>
    </telecom>
  </contact>
  <origin>
    <index value="1"/>
    <profile>
      <code value="FHIR-Client"/>
    </profile>
  </origin>
  <destination>
    <index value="1"/>
    <profile>
      <code value="FHIR-Server"/>
    </profile>
  </destination>
  <fixture id="47be8943-2604-5d89-abb9-5c4e13a5120b">
    <autocreate value="true"/>
    <autodelete value="true"/>
    <resource>🔗 
      <reference value="Basic/OAuthRegistrationRequest1"/>
      <display value="Registration Payload 1"/>
    </resource>
  </fixture>
  <fixture id="8b3f5577-4344-5c5e-91a0-ac4942632496">
    <autocreate value="true"/>
    <autodelete value="true"/>
  </fixture>
  <fixture id="b079ec7f-b12a-5fec-bd06-338c44571163">
    <autocreate value="true"/>
    <autodelete value="true"/>
  </fixture>
  <fixture id="f6c54af2-61fd-586d-afde-2d402ebf33af">
    <autocreate value="true"/>
    <autodelete value="true"/>
  </fixture>
  <fixture id="ff897a54-61db-5461-aebb-a42fc4ed0e4d">
    <autocreate value="true"/>
    <autodelete value="true"/>
  </fixture>
  <test id="61dcf836-8376-5637-90e0-24ede617b7b7">
    <name value="National Directory - FHIR Metadata"/>
    <action>
      <operation>
        <type>
          <system
                  value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
          <code value="read"/>
        </type>
        <label value="National Directory - FHIR Metadata"/>
        <description value="GET /baseR4/metadata"/>
        <accept value="json"/>
        <encodeRequestUrl value="true"/>
        <method value="get"/>
        <url value="/baseR4/metadata"/>
      </operation>
    </action>
    <action>
      <assert>
        <description
                     value="Confirm that the returned HTTP status is 200(OK)."/>
        <response value="okay"/>
        <warningOnly value="false"/>
      </assert>
    </action>
  </test>
  <test id="e3daf953-6237-5170-8750-3100c0d76cb3">
    <name value="Registration (SMART on FHIR)"/>
    <action>
      <operation>
        <type>
          <system
                  value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
          <code value="create"/>
        </type>
        <label value="Registration (SMART on FHIR)"/>
        <description value="POST /oauth/registration"/>
        <accept value="json"/>
        <encodeRequestUrl value="true"/>
        <method value="post"/>
        <sourceId value="47be8943-2604-5d89-abb9-5c4e13a5120b"/>
        <url value="/oauth/registration"/>
      </operation>
    </action>
    <action>
      <assert>
        <description
                     value="Confirm that the returned HTTP status is 201(Success)."/>
        <response value="created"/>
        <warningOnly value="false"/>
      </assert>
    </action>
    <action>
      <assert>
        <description value="Body contains the following"/>
        <warningOnly value="false"/>
      </assert>
    </action>
  </test>
  <test id="dcd8fa9d-767f-5c63-9648-dffa6974d322">
    <name value="Authorize - Stand Alone"/>
    <action>
      <operation>
        <type>
          <system
                  value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
          <code value="read"/>
        </type>
        <label value="Authorize - Stand Alone"/>
        <description value="GET /oauth/authorize"/>
        <accept value="json"/>
        <encodeRequestUrl value="true"/>
        <method value="get"/>
        <url value="/oauth/authorize"/>
      </operation>
    </action>
    <action>
      <assert>
        <description
                     value="Confirm that the returned HTTP status is 200(OK)."/>
        <response value="okay"/>
        <warningOnly value="false"/>
      </assert>
    </action>
    <action>
      <assert>
        <description value="Body contains the following"/>
        <warningOnly value="false"/>
      </assert>
    </action>
  </test>
  <test id="e61c9e92-fcdc-5ca3-8b0c-c80d55b50e4e">
    <name value="Token request"/>
    <action>
      <operation>
        <type>
          <system
                  value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
          <code value="read"/>
        </type>
        <label value="Token request"/>
        <description
                     value="GET /oauth/token?client_id=12345&amp;code=5KFP8pBZcbqkSuNnY&amp;grant_type=authorization_code&amp;redirect_uri=https%3A%2F%2Finferno.healthit.gov%2Fsuites%2Fcustom%2Fsmart%2Fredirect"/>
        <accept value="json"/>
        <encodeRequestUrl value="true"/>
        <method value="get"/>
        <url value="/oauth/token"/>
      </operation>
    </action>
    <action>
      <assert>
        <description
                     value="Confirm that the returned HTTP status is 200(OK)."/>
        <response value="okay"/>
        <warningOnly value="false"/>
      </assert>
    </action>
    <action>
      <assert>
        <description value="Body contains the following"/>
        <warningOnly value="false"/>
      </assert>
    </action>
  </test>
</TestScript>