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 - TTL Representation

Draft as of 2022-06-14

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:TestScript ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "TestScript-gszMyXpwsdoAjJZeh"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<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>"
  ] ; # 
  fhir:url [ fhir:v "http://"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.2.2"] ; # 
  fhir:name [ fhir:v "SMART_Client_Registration"] ; # 
  fhir:title [ fhir:v "R4 TestScript - SMART on FHIR Client Registration"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2022-06-14T23:24:46.024Z"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "MITRE"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "MITRE" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://www.mitre.org" ]     ] )
  ] ) ; # 
  fhir:origin ( [
fhir:index [ fhir:v "1"^^xsd:integer ] ;
fhir:profile [
fhir:code [ fhir:v "FHIR-Client" ]     ]
  ] ) ; # 
  fhir:destination ( [
fhir:index [ fhir:v "1"^^xsd:integer ] ;
fhir:profile [
fhir:code [ fhir:v "FHIR-Server" ]     ]
  ] ) ; # 
  fhir:fixture ( [
fhir:id [ fhir:v "47be8943-2604-5d89-abb9-5c4e13a5120b" ] ;
fhir:autocreate [ fhir:v "true"^^xsd:boolean ] ;
fhir:autodelete [ fhir:v "true"^^xsd:boolean ] ;
fhir:resource [
fhir:reference [ fhir:v "Basic/OAuthRegistrationRequest1" ] ;
fhir:display [ fhir:v "Registration Payload 1" ]     ]
  ] [
fhir:id [ fhir:v "8b3f5577-4344-5c5e-91a0-ac4942632496" ] ;
fhir:autocreate [ fhir:v "true"^^xsd:boolean ] ;
fhir:autodelete [ fhir:v "true"^^xsd:boolean ]
  ] [
fhir:id [ fhir:v "b079ec7f-b12a-5fec-bd06-338c44571163" ] ;
fhir:autocreate [ fhir:v "true"^^xsd:boolean ] ;
fhir:autodelete [ fhir:v "true"^^xsd:boolean ]
  ] [
fhir:id [ fhir:v "f6c54af2-61fd-586d-afde-2d402ebf33af" ] ;
fhir:autocreate [ fhir:v "true"^^xsd:boolean ] ;
fhir:autodelete [ fhir:v "true"^^xsd:boolean ]
  ] [
fhir:id [ fhir:v "ff897a54-61db-5461-aebb-a42fc4ed0e4d" ] ;
fhir:autocreate [ fhir:v "true"^^xsd:boolean ] ;
fhir:autodelete [ fhir:v "true"^^xsd:boolean ]
  ] ) ; # 
  fhir:test ( [
fhir:id [ fhir:v "61dcf836-8376-5637-90e0-24ede617b7b7" ] ;
fhir:name [ fhir:v "National Directory - FHIR Metadata" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:label [ fhir:v "National Directory - FHIR Metadata" ] ;
fhir:description [ fhir:v "GET /baseR4/metadata" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:method [ fhir:v "get" ] ;
fhir:url [ fhir:v "/baseR4/metadata" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK)." ] ;
fhir:response [ fhir:v "okay" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:id [ fhir:v "e3daf953-6237-5170-8750-3100c0d76cb3" ] ;
fhir:name [ fhir:v "Registration (SMART on FHIR)" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "create" ]         ] ;
fhir:label [ fhir:v "Registration (SMART on FHIR)" ] ;
fhir:description [ fhir:v "POST /oauth/registration" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:method [ fhir:v "post" ] ;
fhir:sourceId [ fhir:v "47be8943-2604-5d89-abb9-5c4e13a5120b" ] ;
fhir:url [ fhir:v "/oauth/registration" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 201(Success)." ] ;
fhir:response [ fhir:v "created" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Body contains the following" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:id [ fhir:v "dcd8fa9d-767f-5c63-9648-dffa6974d322" ] ;
fhir:name [ fhir:v "Authorize - Stand Alone" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:label [ fhir:v "Authorize - Stand Alone" ] ;
fhir:description [ fhir:v "GET /oauth/authorize" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:method [ fhir:v "get" ] ;
fhir:url [ fhir:v "/oauth/authorize" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK)." ] ;
fhir:response [ fhir:v "okay" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Body contains the following" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] [
fhir:id [ fhir:v "e61c9e92-fcdc-5ca3-8b0c-c80d55b50e4e" ] ;
fhir:name [ fhir:v "Token request" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "read" ]         ] ;
fhir:label [ fhir:v "Token request" ] ;
fhir:description [ fhir:v "GET /oauth/token?client_id=12345&code=5KFP8pBZcbqkSuNnY&grant_type=authorization_code&redirect_uri=https%3A%2F%2Finferno.healthit.gov%2Fsuites%2Fcustom%2Fsmart%2Fredirect" ] ;
fhir:accept [ fhir:v "json" ] ;
fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ;
fhir:method [ fhir:v "get" ] ;
fhir:url [ fhir:v "/oauth/token" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Confirm that the returned HTTP status is 200(OK)." ] ;
fhir:response [ fhir:v "okay" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Body contains the following" ] ;
fhir:warningOnly [ fhir:v "false"^^xsd:boolean ]       ]     ] )
  ] ) . #