Scalable Consent Management Testing Guide
1.0.0-ballot - ci-build United States of America flag

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

: 00 Capabilities | 02 Obtain server CapabilityStatement - JSON - JSON Representation

Page standards status: Trial-use Maturity Level: 1

Raw json | Download

{
  "resourceType" : "TestScript",
  "id" : "02-Obtain-server-CapabilityStatement-JSON",
  "meta" : {
    "profile" : [
      🔗 "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"
    ]
  },
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript 02-Obtain-server-CapabilityStatement-JSON</b></p><a name=\"02-Obtain-server-CapabilityStatement-JSON\"> </a><a name=\"hc02-Obtain-server-CapabilityStatement-JSON\"> </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><blockquote><p><b>AEGIS Touchstone Testing TestScript Rule Extension</b></p><ul><li>ruleId: AssertBodyExists</li><li>path: /FHIRCommon/_reference/rule/AssertBodyExists.groovy</li></ul></blockquote><p><b>StructureDefinition Work Group</b>: cbcc</p><p><b>url</b>: <a href=\"TestScript-02-Obtain-server-CapabilityStatement-JSON.html\">TestScript 00 Capabilities | 02 Obtain server CapabilityStatement - JSON</a></p><p><b>version</b>: 1.0.0-ballot</p><p><b>name</b>: Test_02_Obtain_server_CapabilityStatement_JSON</p><p><b>title</b>: 00 Capabilities | 02 Obtain server CapabilityStatement - JSON</p><p><b>status</b>: Active</p><p><b>date</b>: 2026-03-30</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 single server to verify support for the capabilities interaction\n'HTTP GET metadata' and the return of a valid CapabilityStatement resource\nsupporting the FAST Consent Management IG Version: CI, using JSON syntax.\nTest System Details (in order of appearance):\n[Origin 1: Consent Client's RESTful client. System Under Test or Simulated: this can test an external test system, or choose Touchstone to simulate the client.]\n[Destination 1: Consent Admin Service's RESTful FHIR Server. System Under Test: this must be an external test system (not a mock).]</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) AEGIS.net, Inc. 2026</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/7.1.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/7.1.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><p><b>profile</b>: <a href=\"http://hl7.org/fhir/R4/capabilitystatement.html\">http://hl7.org/fhir/StructureDefinition/CapabilityStatement</a></p><blockquote><p><b>test</b></p><p><b>name</b>: Step_001_Read_capabilities</p><p><b>description</b>: Consent Client reads server capabilities at Consent Admin Service.</p><blockquote><p><b>action</b></p><blockquote><p><b>operation</b></p><p><b>type</b>: <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-capabilities\">Test script operation code: capabilities</a> (Capabilities)</p><p><b>description</b>: Read a server's capabilities.</p><p><b>accept</b>: json</p><p><b>destination</b>: 1</p><p><b>encodeRequestUrl</b>: true</p><p><b>method</b>: GET</p><p><b>origin</b>: 1</p><p><b>params</b>: metadata</p><h3>RequestHeaders</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Field</b></td><td><b>Value</b></td></tr><tr><td style=\"display: none\">*</td><td>Accept</td><td>application/fhir+json</td></tr></table><p><b>requestId</b>: dest-1-FHIRCapabilities-1-request</p><p><b>responseId</b>: dest-1-FHIRCapabilities-1-response</p></blockquote></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>Operator</b></td><td><b>ResponseCode</b></td><td><b>SourceId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the returned HTTP status is 200 OK.</td><td>response</td><td>in</td><td>200</td><td>dest-1-FHIRCapabilities-1-response</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>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the response body exists.</td><td>response</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>ContentType</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the response format is the FHIR JSON format.</td><td>response</td><td>json</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 response body is a CapabilityStatement resource.</td><td>response</td><td>CapabilityStatement</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>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the response body conforms to the base FHIR CapabilityStatement profile. This also checks any declared profiles within.</td><td>response</td><td>CapabilityStatement-profile</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the CapabilityStatement defines a system instance.</td><td>response</td><td>CapabilityStatement.kind = 'instance'</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the CapabilityStatement uses FHIR version 4.0.1 (R4).</td><td>response</td><td>CapabilityStatement.fhirVersion = '4.0.1'</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the CapabilityStatement declares support for the FAST Consent Management IG.</td><td>response</td><td>'http://hl7.org/fhir/us/consent-management/ImplementationGuide/hl7.fhir.us.consent-management' in CapabilityStatement.implementationGuide</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support JSON FHIR.</td><td>response</td><td>'json' in CapabilityStatement.format</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support XML FHIR.</td><td>response</td><td>'xml' in CapabilityStatement.format</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</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 CapabilityStatement resource minimally contains the declaration of a RESTful server.</td><td>response</td><td>CapabilityStatement.rest.where(mode = 'server').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support the Consent resource.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent resources that conform to the FASTConsent profile.</td><td>response</td><td>'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent' in CapabilityStatement.rest.resource.where(type = 'Consent').supportedProfile</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent read.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'read').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'search-type').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by _id (either at the REST or the resource level).</td><td>response</td><td>CapabilityStatement.rest.exists(searchParam.exists(name = '_id') or CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.exists(name = '_id'))</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentController.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'controller' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-controller').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by date.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'date' and type = 'date').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentGrantee.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'grantee' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-grantee').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentManager.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'manager' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-manager').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentOrganizationId.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'organizationId' and type = 'token' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-organizationId').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by patient.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'patient' and type = 'reference').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentPatientId.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'patientId' and type = 'token' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-patientId').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by scope.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'scope' and type = 'token').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent search by status.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'status' and type = 'token').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support the $fileConsent operation against the Consent resource.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'fileConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/file-consent').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support the $revokeConsent operation against the Consent resource.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'revokeConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/revoke-consent').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support the AuditEvent resource.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'AuditEvent').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support AuditEvent resources that conform to the FASTConsentAuditEvent profile.</td><td>response</td><td>'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsentAuditEvent' in CapabilityStatement.rest.resource.where(type = 'AuditEvent').supportedProfile</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support AuditEvent read.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'read').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support AuditEvent search.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'search-type').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support AuditEvent search by FASTAuditEventConsent.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'AuditEvent').searchParam.where(name = 'consent' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-auditevent-consent').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support AuditEvent search by patient.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'AuditEvent').searchParam.where(name = 'patient' and type = 'reference').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support the $recordDisclosure operation against the AuditEvent resource.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'AuditEvent').operation.where(name = 'recordDisclosure' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/record-disclosure').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support the Subscription resource.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Consent subscriptions as defined by the FASTConsentSubscriptionTopic for FHIR R4 with Subscriptions Backport.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').extension.where(url = 'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/capabilitystatement-subscriptiontopic-canonical' and value as canonical = 'http://hl7.org/fhir/us/consent-management/SubscriptionTopic/FASTConsentSubscriptionTopic').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the FASTSubscription profile.</td><td>response</td><td>'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTSubscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Subscription create.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'create').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Subscription update.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'update').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Subscription delete.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'delete').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the CapabilityStatement SHOULD declare conformance with the Backport Subscription Server Capability Statement.</td><td>response</td><td>'http://hl7.org/fhir/uv/subscriptions-backport/CapabilityStatement/backport-subscription-server-r4' in CapabilityStatement.instantiates</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the Backport Subscription Profile.</td><td>response</td><td>'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Subscription read.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'read').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHOULD support Subscription search.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'search-type').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support Subscription search by url.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'url' and type = 'uri' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-url').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Expression</b></td><td><b>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHOULD support Subscription search by status.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'status' and type = 'token' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-status').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</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>Operator</b></td><td><b>SourceId</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td/><td>Confirm that the Consent Administration Service SHALL support the $status operation against the Subscription resource.</td><td>response</td><td>CapabilityStatement.rest.resource.where(type = 'Subscription').operation.where(name = 'status' and definition = 'http://hl7.org/fhir/uv/subscriptions-backport/OperationDefinition/backport-subscription-status').exists()</td><td>equals</td><td>dest-1-FHIRCapabilities-1-response</td><td>true</td><td>false</td></tr></table></blockquote></blockquote></div>"
  },
  "extension" : [
    {
      "extension" : [
        {
          "url" : "ruleId",
          "valueId" : "AssertBodyExists"
        },
        {
          "url" : "path",
          "valueString" : "/FHIRCommon/_reference/rule/AssertBodyExists.groovy"
        }
      ],
      "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "cbcc"
    }
  ],
  "url" : "http://hl7.org/fhir/us/consent-management-tg/TestScript/02-Obtain-server-CapabilityStatement-JSON",
  "version" : "1.0.0-ballot",
  "name" : "Test_02_Obtain_server_CapabilityStatement_JSON",
  "title" : "00 Capabilities | 02 Obtain server CapabilityStatement - JSON",
  "status" : "active",
  "date" : "2026-03-30",
  "publisher" : "HL7 International / Community Based Collaborative Care",
  "contact" : [
    {
      "name" : "HL7 International / Community Based Collaborative Care",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/cbcc"
        }
      ]
    }
  ],
  "description" : "Test a single server to verify support for the capabilities interaction\r\n'HTTP GET metadata' and the return of a valid CapabilityStatement resource\r\nsupporting the FAST Consent Management IG Version: CI, using JSON syntax.\r\n Test System Details (in order of appearance):\r\n [Origin 1: Consent Client's RESTful client. System Under Test or Simulated: this can test an external test system, or choose Touchstone to simulate the client.]\r\n [Destination 1: Consent Admin Service's RESTful FHIR Server. System Under Test: this must be an external test system (not a mock).]",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US",
          "display" : "United States of America"
        }
      ]
    }
  ],
  "copyright" : "(c) AEGIS.net, Inc. 2026",
  "origin" : [
    {
      "index" : 1,
      "profile" : {
        "system" : "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types",
        "code" : "FHIR-Client"
      }
    }
  ],
  "destination" : [
    {
      "index" : 1,
      "profile" : {
        "system" : "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
        "code" : "FHIR-Server"
      }
    }
  ],
  "profile" : [
    {
      🔗 "id" : "CapabilityStatement-profile",
      "reference" : "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
    }
  ],
  "test" : [
    {
      "name" : "Step_001_Read_capabilities",
      "description" : "Consent Client reads server capabilities at Consent Admin Service.",
      "action" : [
        {
          "operation" : {
            "type" : {
              "system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
              "code" : "capabilities"
            },
            "description" : "Read a server's capabilities.",
            "accept" : "json",
            "destination" : 1,
            "encodeRequestUrl" : true,
            "method" : "get",
            "origin" : 1,
            "params" : "metadata",
            "requestHeader" : [
              {
                "field" : "Accept",
                "value" : "application/fhir+json"
              }
            ],
            "requestId" : "dest-1-FHIRCapabilities-1-request",
            "responseId" : "dest-1-FHIRCapabilities-1-response"
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the returned HTTP status is 200 OK.",
            "direction" : "response",
            "operator" : "in",
            "responseCode" : "200",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "extension" : [
                  {
                    "url" : "ruleId",
                    "valueId" : "AssertBodyExists"
                  },
                  {
                    "extension" : [
                      {
                        "url" : "name",
                        "valueString" : "errorMessage"
                      },
                      {
                        "url" : "value",
                        "valueString" : "the response body does not exist."
                      }
                    ],
                    "url" : "param"
                  }
                ],
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule"
              }
            ],
            "description" : "Confirm that the response body exists.",
            "direction" : "response",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "description" : "Confirm that the response format is the FHIR JSON format.",
            "direction" : "response",
            "contentType" : "json",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the response body is a CapabilityStatement resource.",
            "direction" : "response",
            "resource" : "CapabilityStatement",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the response body conforms to the base FHIR CapabilityStatement profile. This also checks any declared profiles within.",
            "direction" : "response",
            "validateProfileId" : "CapabilityStatement-profile",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the CapabilityStatement defines a system instance.",
            "direction" : "response",
            "expression" : "CapabilityStatement.kind = 'instance'",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the CapabilityStatement uses FHIR version 4.0.1 (R4).",
            "direction" : "response",
            "expression" : "CapabilityStatement.fhirVersion = '4.0.1'",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the CapabilityStatement declares support for the FAST Consent Management IG.",
            "direction" : "response",
            "expression" : "'http://hl7.org/fhir/us/consent-management/ImplementationGuide/hl7.fhir.us.consent-management' in CapabilityStatement.implementationGuide",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support JSON FHIR.",
            "direction" : "response",
            "expression" : "'json' in CapabilityStatement.format",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support XML FHIR.",
            "direction" : "response",
            "expression" : "'xml' in CapabilityStatement.format",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the returned CapabilityStatement resource minimally contains the declaration of a RESTful server.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.where(mode = 'server').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support the Consent resource.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent resources that conform to the FASTConsent profile.",
            "direction" : "response",
            "expression" : "'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent' in CapabilityStatement.rest.resource.where(type = 'Consent').supportedProfile",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent read.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'read').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'search-type').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by _id (either at the REST or the resource level).",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.exists(searchParam.exists(name = '_id') or CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.exists(name = '_id'))",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentController.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'controller' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-controller').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by date.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'date' and type = 'date').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentGrantee.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'grantee' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-grantee').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentManager.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'manager' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-manager').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentOrganizationId.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'organizationId' and type = 'token' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-organizationId').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by patient.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'patient' and type = 'reference').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentPatientId.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'patientId' and type = 'token' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-consent-patientId').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by scope.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'scope' and type = 'token').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent search by status.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'status' and type = 'token').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support the $fileConsent operation against the Consent resource.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'fileConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/file-consent').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support the $revokeConsent operation against the Consent resource.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'revokeConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/revoke-consent').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support the AuditEvent resource.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'AuditEvent').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support AuditEvent resources that conform to the FASTConsentAuditEvent profile.",
            "direction" : "response",
            "expression" : "'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsentAuditEvent' in CapabilityStatement.rest.resource.where(type = 'AuditEvent').supportedProfile",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support AuditEvent read.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'read').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support AuditEvent search.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'search-type').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support AuditEvent search by FASTAuditEventConsent.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'AuditEvent').searchParam.where(name = 'consent' and type = 'reference' and definition = 'http://hl7.org/fhir/us/consent-management/SearchParameter/fast-auditevent-consent').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support AuditEvent search by patient.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'AuditEvent').searchParam.where(name = 'patient' and type = 'reference').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support the $recordDisclosure operation against the AuditEvent resource.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'AuditEvent').operation.where(name = 'recordDisclosure' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/record-disclosure').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support the Subscription resource.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Consent subscriptions as defined by the FASTConsentSubscriptionTopic for FHIR R4 with Subscriptions Backport.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').extension.where(url = 'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/capabilitystatement-subscriptiontopic-canonical' and value as canonical = 'http://hl7.org/fhir/us/consent-management/SubscriptionTopic/FASTConsentSubscriptionTopic').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the FASTSubscription profile.",
            "direction" : "response",
            "expression" : "'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTSubscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Subscription create.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'create').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Subscription update.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'update').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Subscription delete.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'delete').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the CapabilityStatement SHOULD declare conformance with the Backport Subscription Server Capability Statement.",
            "direction" : "response",
            "expression" : "'http://hl7.org/fhir/uv/subscriptions-backport/CapabilityStatement/backport-subscription-server-r4' in CapabilityStatement.instantiates",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : true
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the Backport Subscription Profile.",
            "direction" : "response",
            "expression" : "'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Subscription read.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'read').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHOULD support Subscription search.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'search-type').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : true
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support Subscription search by url.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'url' and type = 'uri' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-url').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHOULD support Subscription search by status.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'status' and type = 'token' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-status').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : true
          }
        },
        {
          "assert" : {
            "extension" : [
              {
                "url" : "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail",
                "valueBoolean" : false
              }
            ],
            "description" : "Confirm that the Consent Administration Service SHALL support the $status operation against the Subscription resource.",
            "direction" : "response",
            "expression" : "CapabilityStatement.rest.resource.where(type = 'Subscription').operation.where(name = 'status' and definition = 'http://hl7.org/fhir/uv/subscriptions-backport/OperationDefinition/backport-subscription-status').exists()",
            "operator" : "equals",
            "sourceId" : "dest-1-FHIRCapabilities-1-response",
            "value" : "true",
            "warningOnly" : false
          }
        }
      ]
    }
  ]
}