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
| Page standards status: Trial-use | Maturity Level: 1 |
@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 "01-Obtain-server-CapabilityStatement"] ; # fhir:meta [ ( fhir:profile [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"^^xsd:anyURI ; fhir:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript> ] ) ] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript 01-Obtain-server-CapabilityStatement</b></p><a name=\"01-Obtain-server-CapabilityStatement\"> </a><a name=\"hc01-Obtain-server-CapabilityStatement\"> </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-01-Obtain-server-CapabilityStatement.html\">TestScript 00 Capabilities | 01 Obtain server CapabilityStatement</a></p><p><b>version</b>: 1.0.0-ballot</p><p><b>name</b>: Test_01_Obtain_server_CapabilityStatement</p><p><b>title</b>: 00 Capabilities | 01 Obtain server CapabilityStatement</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.\nThis scenario is generic and can be used with any FHIR format.\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>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>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>"^^rdf:XMLLiteral ] ] ; # fhir:extension ( [ ( fhir:extension [ fhir:url [ fhir:v "ruleId"^^xsd:anyURI ; fhir:l fhir:ruleId ] ; fhir:value [ a fhir:Id ; fhir:v "AssertBodyExists" ] ] [ fhir:url [ fhir:v "path"^^xsd:anyURI ; fhir:l fhir:path ] ; fhir:value [ a fhir:String ; fhir:v "/FHIRCommon/_reference/rule/AssertBodyExists.groovy" ] ] ) ; fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule"^^xsd:anyURI ; fhir:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule> ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg> ] ; fhir:value [ a fhir:Code ; fhir:v "cbcc" ] ] ) ; # fhir:url [ fhir:v "http://hl7.org/fhir/us/consent-management-tg/TestScript/01-Obtain-server-CapabilityStatement"^^xsd:anyURI ; fhir:l <http://hl7.org/fhir/us/consent-management-tg/TestScript/01-Obtain-server-CapabilityStatement> ] ; # fhir:version [ fhir:v "1.0.0-ballot"] ; # fhir:name [ fhir:v "Test_01_Obtain_server_CapabilityStatement"] ; # fhir:title [ fhir:v "00 Capabilities | 01 Obtain server CapabilityStatement"] ; # fhir:status [ fhir:v "active"] ; # fhir:date [ fhir:v "2026-03-30"^^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 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.\r\nThis scenario is generic and can be used with any FHIR format.\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).]"] ; # fhir:jurisdiction ( [ ( fhir:coding [ fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ; fhir:l <urn:iso:std:iso:3166> ] ; fhir:code [ fhir:v "US" ] ; fhir:display [ fhir:v "United States of America" ] ] ) ] ) ; # fhir:copyright [ fhir:v "(c) AEGIS.net, Inc. 2026"] ; # 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:l <http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types> ] ; 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:l <http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types> ] ; fhir:code [ fhir:v "FHIR-Server" ] ] ] ) ; # fhir:profile ( [ fhir:l <http://hl7.org/fhir/StructureDefinition/CapabilityStatement> ; fhir:id [ fhir:v "CapabilityStatement-profile" ] ; fhir:reference [ fhir:v "http://hl7.org/fhir/StructureDefinition/CapabilityStatement" ] ] ) ; # fhir:test ( [ fhir:name [ fhir:v "Step_001_Read_capabilities" ] ; fhir:description [ fhir:v "Consent Client reads server capabilities at Consent Admin Service." ] ; ( fhir:action [ fhir:operation [ fhir:type [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ; fhir:l <http://terminology.hl7.org/CodeSystem/testscript-operation-codes> ] ; fhir:code [ fhir:v "capabilities" ] ] ; fhir:description [ fhir:v "Read a server's capabilities." ] ; fhir:destination [ fhir:v 1 ] ; fhir:encodeRequestUrl [ fhir:v true ] ; fhir:method [ fhir:v "get" ] ; fhir:origin [ fhir:v 1 ] ; fhir:params [ fhir:v "metadata" ] ; ( fhir:requestHeader [ fhir:field [ fhir:v "Accept" ] ; fhir:value [ fhir:v "application/fhir+json" ] ] ) ; fhir:requestId [ fhir:v "dest-1-FHIRCapabilities-1-request" ] ; fhir:responseId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ] ] [ fhir:assert [ ( fhir:extension [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ; fhir:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the returned HTTP status is 200 OK." ] ; fhir:direction [ fhir:v "response" ] ; fhir:operator [ fhir:v "in" ] ; fhir:responseCode [ fhir:v "200" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:warningOnly [ fhir:v false ] ] ] [ fhir:assert [ ( fhir:extension [ ( fhir:extension [ fhir:url [ fhir:v "ruleId"^^xsd:anyURI ; fhir:l fhir:ruleId ] ; fhir:value [ a fhir:Id ; fhir:v "AssertBodyExists" ] ] [ ( fhir:extension [ fhir:url [ fhir:v "name"^^xsd:anyURI ; fhir:l fhir:name ] ; fhir:value [ a fhir:String ; fhir:v "errorMessage" ] ] [ fhir:url [ fhir:v "value"^^xsd:anyURI ; fhir:l fhir:value ] ; fhir:value [ a fhir:String ; fhir:v "the response body does not exist." ] ] ) ; fhir:url [ fhir:v "param"^^xsd:anyURI ; fhir:l fhir:param ] ] ) ; fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule"^^xsd:anyURI ; fhir:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule> ] ] ) ; fhir:description [ fhir:v "Confirm that the response body exists." ] ; fhir:direction [ fhir:v "response" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the response body is a CapabilityStatement resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:resource [ fhir:v "CapabilityStatement" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the response body conforms to the base FHIR CapabilityStatement profile. This also checks any declared profiles within." ] ; fhir:direction [ fhir:v "response" ] ; fhir:validateProfileId [ fhir:v "CapabilityStatement-profile" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the CapabilityStatement defines a system instance." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.kind = 'instance'" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the CapabilityStatement uses FHIR version 4.0.1 (R4)." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.fhirVersion = '4.0.1'" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the CapabilityStatement declares support for the FAST Consent Management IG." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'http://hl7.org/fhir/us/consent-management/ImplementationGuide/hl7.fhir.us.consent-management' in CapabilityStatement.implementationGuide" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support JSON FHIR." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'json' in CapabilityStatement.format" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support XML FHIR." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'xml' in CapabilityStatement.format" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the returned CapabilityStatement resource minimally contains the declaration of a RESTful server." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.where(mode = 'server').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support the Consent resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent resources that conform to the FASTConsent profile." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent' in CapabilityStatement.rest.resource.where(type = 'Consent').supportedProfile" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent read." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'read').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'search-type').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by _id (either at the REST or the resource level)." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.exists(searchParam.exists(name = '_id') or CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.exists(name = '_id'))" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentController." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "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()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by date." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'date' and type = 'date').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentGrantee." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "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()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentManager." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "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()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentOrganizationId." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "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()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by patient." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'patient' and type = 'reference').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentPatientId." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "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()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by scope." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'scope' and type = 'token').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent search by status." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'status' and type = 'token').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support the $fileConsent operation against the Consent resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'fileConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/file-consent').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support the $revokeConsent operation against the Consent resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'revokeConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/revoke-consent').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support the AuditEvent resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'AuditEvent').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support AuditEvent resources that conform to the FASTConsentAuditEvent profile." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsentAuditEvent' in CapabilityStatement.rest.resource.where(type = 'AuditEvent').supportedProfile" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support AuditEvent read." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'read').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support AuditEvent search." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'search-type').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support AuditEvent search by FASTAuditEventConsent." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "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()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support AuditEvent search by patient." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'AuditEvent').searchParam.where(name = 'patient' and type = 'reference').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support the $recordDisclosure operation against the AuditEvent resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'AuditEvent').operation.where(name = 'recordDisclosure' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/record-disclosure').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support the Subscription resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Consent subscriptions as defined by the FASTConsentSubscriptionTopic for FHIR R4 with Subscriptions Backport." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "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()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the FASTSubscription profile." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTSubscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Subscription create." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'create').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Subscription update." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'update').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Subscription delete." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'delete').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the CapabilityStatement SHOULD declare conformance with the Backport Subscription Server Capability Statement." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'http://hl7.org/fhir/uv/subscriptions-backport/CapabilityStatement/backport-subscription-server-r4' in CapabilityStatement.instantiates" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the Backport Subscription Profile." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Subscription read." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'read').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHOULD support Subscription search." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'search-type').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support Subscription search by url." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'url' and type = 'uri' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-url').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHOULD support Subscription search by status." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'status' and type = 'token' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-status').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; 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:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail> ] ; fhir:value [ a fhir:Boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the Consent Administration Service SHALL support the $status operation against the Subscription resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.resource.where(type = 'Subscription').operation.where(name = 'status' and definition = 'http://hl7.org/fhir/uv/subscriptions-backport/OperationDefinition/backport-subscription-status').exists()" ] ; fhir:operator [ fhir:v "equals" ] ; fhir:sourceId [ fhir:v "dest-1-FHIRCapabilities-1-response" ] ; fhir:value [ fhir:v "true" ] ; fhir:warningOnly [ fhir:v false ] ] ] ) ] ) . # <http://hl7.org/fhir/StructureDefinition/CapabilityStatement> a fhir:StructureDefinition .
IG © 2025+ HL7 International / Community Based Collaborative Care. Package hl7.fhir.us.consent-management-tg#1.0.0-ballot based on FHIR 4.0.1. Generated 2026-03-31
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change
