Scalable Consent Management Testing Guide
0.1.0 - ci-build

Scalable Consent Management Testing Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## : FAST Consent revokeConsent JSON - TTL Representation

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

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @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 "fastconsentrevokeconsentjson"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"^^xsd:anyURI ;
    fhir:link <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript>     ] )
      ] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript fastconsentrevokeconsentjson</b></p><a name=\"fastconsentrevokeconsentjson\"> </a><a name=\"hcfastconsentrevokeconsentjson\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"file://D:\\GitHub\\Touchstone\\testing-ig\\output/StructureDefinition-testscript.html\">AEGIS Touchstone Testing TestScript Profile</a></p></div><p><b>StructureDefinition Work Group</b>: cbcc</p><p><b>url</b>: <a href=\"TestScript-fastconsentrevokeconsentjson.html\">TestScript FAST Consent revokeConsent JSON</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: FASTConsentRevokeConsentJSON</p><p><b>title</b>: FAST Consent revokeConsent JSON</p><p><b>status</b>: Active</p><p><b>date</b>: 2025-05-22</p><p><b>publisher</b>: HL7 International / Community Based Collaborative Care</p><p><b>contact</b>: HL7 International / Community Based Collaborative Care: <a href=\"http://www.hl7.org/Special/committees/cbcc\">http://www.hl7.org/Special/committees/cbcc</a></p><p><b>description</b>: </p><div><p>Test a FAST Consent Management Server implementation of the $revokeConsent operation using JSON Format</p>\n</div><p><b>jurisdiction</b>: <span title=\"Codes:{urn:iso:std:iso:3166 US}\">United States of America</span></p><p><b>copyright</b>: </p><div><p>(c) HL7 International / Community Based Collaborative Care 2025</p>\n</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.5.0/CodeSystem-testscript-profile-origin-types.html#testscript-profile-origin-types-FHIR-Client\">Test script profile origin type FHIR-Client</a>: 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.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>revokeconsent-parameters</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <code>./Parameters-parameters-revokeconsent.json</code></p></blockquote><p><b>profile</b>: </p><ul><li><a href=\"file://D:\\GitHub\\rettema\\fhir-consent-management\\output/StructureDefinition-RevokeConsentParameters.html\">http://hl7.org/fhir/us/consent-management/StructureDefinition/RevokeConsentParameters</a></li><li><a href=\"http://hl7.org/fhir/R4/operationoutcome.html\">http://hl7.org/fhir/StructureDefinition/OperationOutcome</a></li></ul><h3>Variables</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Expression</b></td><td><b>SourceId</b></td></tr><tr><td style=\"display: none\">*</td><td>revokeConsentIdentifier</td><td>Parameters.parameter.where(name = 'consent').(value as Reference).identifier.value</td><td>revokeconsent-request</td></tr></table><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>FASTConsentRevokeConsentJSON</blockquote><p><b>name</b>: FASTConsentRevokeConsentJSON</p><p><b>description</b>: Test a FAST Consent Management Server implementation of the $revokeConsent operation using JSON Format against the destination server and assert successful response.</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>ContentType</b></td><td><b>Destination</b></td><td><b>EncodeRequestUrl</b></td><td><b>Origin</b></td><td><b>Params</b></td><td><b>RequestId</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-revokeConsent\">Test script operation code revokeConsent</a>: revokeConsent</td><td>Consent</td><td>Send a Consent $revokeConsent operation</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>/$revokeConsent</td><td>revokeconsent-request</td><td>revokeconsent-parameters</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></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/><td>Confirm that the sent request payload is a Parameters resource.</td><td>request</td><td>Parameters</td><td>true</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the sent Parameters conforms to the FAST Consent profile.</td><td>request</td><td>revokeConsentParametersProfile</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>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned response code is 200 OK.</td><td>response</td><td>200</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>Extension</b></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/><td>Confirm that the returned response payload is an OperationOutcome resource.</td><td>response</td><td>OperationOutcome</td><td>true</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned OperationOutcome conforms to the base FHIR specification.</td><td>response</td><td>OperationOutcomeProfile</td><td>true</td></tr></table></blockquote></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>FASTConsentSearchJSON</blockquote><p><b>name</b>: FASTConsentSearchJSON</p><p><b>description</b>: Test a FAST Consent Management Server to confirm successful revoke of Consent from previous $revokeConsent operation.</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>ContentType</b></td><td><b>Destination</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-search\">Test script operation code search</a>: Search</td><td>Consent</td><td>Search for Consent from $revokeConsent operation</td><td>json</td><td>json</td><td>1</td><td>true</td><td>?identifier=${revokeConsentIdentifier}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned response code is 200 OK.</td><td>response</td><td>200</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>Extension</b></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/><td>Confirm that the returned response payload is a Bundle resource.</td><td>response</td><td>Bundle</td><td>true</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Path</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned response payload is a searchset Bundle resource.</td><td>response</td><td>.type</td><td>searchset</td><td>true</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned searchset Bundle contains 1 match.</td><td>response</td><td>Bundle.entry.resource.count()</td><td>1</td><td>true</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Expression</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned searchset Bundle contains a Consent resource.</td><td>response</td><td>Bundle.entry.resource.as(Consent).exists()</td><td>true</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned searchset Bundle contains the referenced Consent resource.</td><td>response</td><td>Bundle.entry.resource.as(Consent).identifier[0].value</td><td>${revokeConsentIdentifier}</td><td>true</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Extension</b></td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Expression</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned searchset Bundle contains the revoked Consent resource.</td><td>response</td><td>Bundle.entry.resource.as(Consent).status</td><td>rejected</td><td>true</td></tr></table></blockquote></blockquote></div>"^^rdf:XMLLiteral
      ] ; #
      fhir:extension ( [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "cbcc"     ]
      ] ) ; #
      fhir:url [ fhir:v "http://hl7.org/fhir/us/consent-management-tg/TestScript/fastconsentrevokeconsentjson"^^xsd:anyURI] ; #
      fhir:version [ fhir:v "0.1.0"] ; #
      fhir:name [ fhir:v "FASTConsentRevokeConsentJSON"] ; #
      fhir:title [ fhir:v "FAST Consent revokeConsent JSON"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2025-05-22"^^xsd:date] ; #
      fhir:publisher [ fhir:v "HL7 International / Community Based Collaborative Care"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "HL7 International / Community Based Collaborative Care" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://www.hl7.org/Special/committees/cbcc" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "Test a FAST Consent Management Server implementation of the $revokeConsent operation using JSON Format"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "US" ] ;
    fhir:display [ fhir:v "United States of America" ]     ] )
      ] ) ; #
      fhir:copyright [ fhir:v "(c) HL7 International / Community Based Collaborative Care 2025"] ; #
      fhir:origin ( [
    fhir:index [ fhir:v 1 ] ;
    fhir:profile [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "FHIR-Client" ]     ]
      ] ) ; #
      fhir:destination ( [
    fhir:index [ fhir:v 1 ] ;
    fhir:profile [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "FHIR-Server" ]     ]
      ] ) ; #
      fhir:fixture ( [
    fhir:id [ fhir:v "revokeconsent-parameters" ] ;
    fhir:autocreate [ fhir:v false ] ;
    fhir:autodelete [ fhir:v false ] ;
    fhir:resource [
    fhir:reference [ fhir:v "./Parameters-parameters-revokeconsent.json" ]     ]
      ] ) ; #
      fhir:profile ( [
    fhir:link <http://hl7.org/fhir/us/consent-management/StructureDefinition/RevokeConsentParameters> ;
    fhir:id [ fhir:v "revokeConsentParametersProfile" ] ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/us/consent-management/StructureDefinition/RevokeConsentParameters" ]
      ] [
    fhir:link <http://hl7.org/fhir/StructureDefinition/OperationOutcome> ;
    fhir:id [ fhir:v "OperationOutcomeProfile" ] ;
    fhir:reference [ fhir:v "http://hl7.org/fhir/StructureDefinition/OperationOutcome" ]
      ] ) ; #
      fhir:variable ( [
    fhir:name [ fhir:v "revokeConsentIdentifier" ] ;
    fhir:expression [ fhir:v "Parameters.parameter.where(name = 'consent').(value as Reference).identifier.value" ] ;
    fhir:sourceId [ fhir:v "revokeconsent-request" ]
      ] ) ; #
      fhir:test ( [
    fhir:id [ fhir:v "FASTConsentRevokeConsentJSON" ] ;
    fhir:name [ fhir:v "FASTConsentRevokeConsentJSON" ] ;
    fhir:description [ fhir:v "Test a FAST Consent Management Server implementation of the $revokeConsent operation using JSON Format against the destination server and assert successful response." ] ;
        ( fhir:action [
    fhir:operation [
    fhir:type [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "revokeConsent" ]         ] ;
    fhir:resource [ fhir:v "Consent" ] ;
    fhir:description [ fhir:v "Send a Consent $revokeConsent operation" ] ;
    fhir:accept [ fhir:v "json" ] ;
    fhir:contentType [ fhir:v "json" ] ;
    fhir:destination [ fhir:v 1 ] ;
    fhir:encodeRequestUrl [ fhir:v true ] ;
    fhir:origin [ fhir:v 1 ] ;
    fhir:params [ fhir:v "/$revokeConsent" ] ;
    fhir:requestId [ fhir:v "revokeconsent-request" ] ;
    fhir:sourceId [ fhir:v "revokeconsent-parameters" ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the sent request payload is a Parameters resource." ] ;
    fhir:direction [ fhir:v "request" ] ;
    fhir:resource [ fhir:v "Parameters" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the sent Parameters conforms to the FAST Consent profile." ] ;
    fhir:direction [ fhir:v "request" ] ;
    fhir:validateProfileId [ fhir:v "revokeConsentParametersProfile" ] ;
    fhir:warningOnly [ fhir:v false ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned response code is 200 OK." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:responseCode [ fhir:v "200" ] ;
    fhir:warningOnly [ fhir:v false ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned response payload is an OperationOutcome resource." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:resource [ fhir:v "OperationOutcome" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned OperationOutcome conforms to the base FHIR specification." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:validateProfileId [ fhir:v "OperationOutcomeProfile" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] )
      ] [
    fhir:id [ fhir:v "FASTConsentSearchJSON" ] ;
    fhir:name [ fhir:v "FASTConsentSearchJSON" ] ;
    fhir:description [ fhir:v "Test a FAST Consent Management Server to confirm successful revoke of Consent from previous $revokeConsent operation." ] ;
        ( fhir:action [
    fhir:operation [
    fhir:type [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "search" ]         ] ;
    fhir:resource [ fhir:v "Consent" ] ;
    fhir:description [ fhir:v "Search for Consent from $revokeConsent operation" ] ;
    fhir:accept [ fhir:v "json" ] ;
    fhir:contentType [ fhir:v "json" ] ;
    fhir:destination [ fhir:v 1 ] ;
    fhir:encodeRequestUrl [ fhir:v true ] ;
    fhir:params [ fhir:v "?identifier=${revokeConsentIdentifier}" ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned response code is 200 OK." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:responseCode [ fhir:v "200" ] ;
    fhir:warningOnly [ fhir:v false ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned response payload is a Bundle resource." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:resource [ fhir:v "Bundle" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned response payload is a searchset Bundle resource." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:path [ fhir:v ".type" ] ;
    fhir:value [ fhir:v "searchset" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned searchset Bundle contains 1 match." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:expression [ fhir:v "Bundle.entry.resource.count()" ] ;
    fhir:value [ fhir:v "1" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned searchset Bundle contains a Consent resource." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:expression [ fhir:v "Bundle.entry.resource.as(Consent).exists()" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned searchset Bundle contains the referenced Consent resource." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:expression [ fhir:v "Bundle.entry.resource.as(Consent).identifier[0].value" ] ;
    fhir:value [ fhir:v "${revokeConsentIdentifier}" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] [
    fhir:assert [
            ( fhir:extension [
    fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false           ]         ] ) ;
    fhir:description [ fhir:v "Confirm that the returned searchset Bundle contains the revoked Consent resource." ] ;
    fhir:direction [ fhir:v "response" ] ;
    fhir:expression [ fhir:v "Bundle.entry.resource.as(Consent).status" ] ;
    fhir:value [ fhir:v "rejected" ] ;
    fhir:warningOnly [ fhir:v true ]       ]     ] )
      ] ) . #

    <http://hl7.org/fhir/us/consent-management/StructureDefinition/RevokeConsentParameters> a fhir:us .

    <http://hl7.org/fhir/StructureDefinition/OperationOutcome> a fhir:StructureDefinition .