Generated Narrative: TestScript 01-Obtain-server-CapabilityStatement Profile: AEGIS Touchstone Testing TestScript Profile AEGIS Touchstone Testing TestScript Rule Extension ruleId: AssertBodyExists path: /FHIRCommon/_reference/rule/AssertBodyExists.groovy StructureDefinition Work Group: cbcc url: TestScript 00 Capabilities | 01 Obtain server CapabilityStatement version: 1.0.0-ballot name: Test_01_Obtain_server_CapabilityStatement title: 00 Capabilities | 01 Obtain server CapabilityStatement status: Active date: 2026-03-30 publisher: HL7 International / Community Based Collaborative Care contact: HL7 International / Community Based Collaborative Care: http://www.hl7.org/Special/committees/cbcc description: Test a single server to verify support for the capabilities interaction 'HTTP GET metadata' and the return of a valid CapabilityStatement resource supporting the FAST Consent Management IG Version: CI. This scenario is generic and can be used with any FHIR format. Test System Details (in order of appearance): [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.] [Destination 1: Consent Admin Service's RESTful FHIR Server. System Under Test: this must be an external test system (not a mock).] jurisdiction: United States of America copyright: (c) AEGIS.net, Inc. 2026 Origins - Index Profile * 1 Test script profile origin type: FHIR-Client (FHIR Client) Destinations - Index Profile * 1 Test script profile destination type: FHIR-Server (FHIR Server) profile: 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: Test script operation code: capabilities (Capabilities) description: Read a server's capabilities. destination: 1 encodeRequestUrl: true method: GET origin: 1 params: metadata RequestHeaders - Field Value * Accept application/fhir+json requestId: dest-1-FHIRCapabilities-1-request responseId: dest-1-FHIRCapabilities-1-response action Asserts - Extension Description Direction Operator ResponseCode SourceId WarningOnly * Confirm that the returned HTTP status is 200 OK. response in 200 dest-1-FHIRCapabilities-1-response false action Asserts - Extension Description Direction WarningOnly * Confirm that the response body exists. response false action Asserts - Extension Description Direction Resource WarningOnly * Confirm that the response body is a CapabilityStatement resource. response CapabilityStatement false action Asserts - Extension Description Direction ValidateProfileId WarningOnly * Confirm that the response body conforms to the base FHIR CapabilityStatement profile. This also checks any declared profiles within. response CapabilityStatement-profile false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the CapabilityStatement defines a system instance. response CapabilityStatement.kind = 'instance' equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the CapabilityStatement uses FHIR version 4.0.1 (R4). response CapabilityStatement.fhirVersion = '4.0.1' equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the CapabilityStatement declares support for the FAST Consent Management IG. response 'http://hl7.org/fhir/us/consent-management/ImplementationGuide/hl7.fhir.us.consent-management' in CapabilityStatement.implementationGuide equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support JSON FHIR. response 'json' in CapabilityStatement.format equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support XML FHIR. response 'xml' in CapabilityStatement.format equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the returned CapabilityStatement resource minimally contains the declaration of a RESTful server. response CapabilityStatement.rest.where(mode = 'server').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support the Consent resource. response CapabilityStatement.rest.resource.where(type = 'Consent').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent resources that conform to the FASTConsent profile. response 'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent' in CapabilityStatement.rest.resource.where(type = 'Consent').supportedProfile equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent read. response CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'read').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search. response CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'search-type').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by _id (either at the REST or the resource level). response CapabilityStatement.rest.exists(searchParam.exists(name = '_id') or CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.exists(name = '_id')) equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentController. response 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() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by date. response CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'date' and type = 'date').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentGrantee. response 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() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentManager. response 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() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentOrganizationId. response 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() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by patient. response CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'patient' and type = 'reference').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentPatientId. response 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() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by scope. response CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'scope' and type = 'token').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent search by status. response CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'status' and type = 'token').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support the $fileConsent operation against the Consent resource. response CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'fileConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/file-consent').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support the $revokeConsent operation against the Consent resource. response CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'revokeConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/revoke-consent').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support the AuditEvent resource. response CapabilityStatement.rest.resource.where(type = 'AuditEvent').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support AuditEvent resources that conform to the FASTConsentAuditEvent profile. response 'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsentAuditEvent' in CapabilityStatement.rest.resource.where(type = 'AuditEvent').supportedProfile equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support AuditEvent read. response CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'read').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support AuditEvent search. response CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'search-type').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support AuditEvent search by FASTAuditEventConsent. response 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() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support AuditEvent search by patient. response CapabilityStatement.rest.resource.where(type = 'AuditEvent').searchParam.where(name = 'patient' and type = 'reference').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support the $recordDisclosure operation against the AuditEvent resource. response CapabilityStatement.rest.resource.where(type = 'AuditEvent').operation.where(name = 'recordDisclosure' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/record-disclosure').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support the Subscription resource. response CapabilityStatement.rest.resource.where(type = 'Subscription').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Consent subscriptions as defined by the FASTConsentSubscriptionTopic for FHIR R4 with Subscriptions Backport. response 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() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the FASTSubscription profile. response 'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTSubscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Subscription create. response CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'create').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Subscription update. response CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'update').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Subscription delete. response CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'delete').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the CapabilityStatement SHOULD declare conformance with the Backport Subscription Server Capability Statement. response 'http://hl7.org/fhir/uv/subscriptions-backport/CapabilityStatement/backport-subscription-server-r4' in CapabilityStatement.instantiates equals dest-1-FHIRCapabilities-1-response true true action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the Backport Subscription Profile. response 'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Subscription read. response CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'read').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHOULD support Subscription search. response CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'search-type').exists() equals dest-1-FHIRCapabilities-1-response true true action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support Subscription search by url. response CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'url' and type = 'uri' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-url').exists() equals dest-1-FHIRCapabilities-1-response true false action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHOULD support Subscription search by status. response CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'status' and type = 'token' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-status').exists() equals dest-1-FHIRCapabilities-1-response true true action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the Consent Administration Service SHALL support the $status operation against the Subscription resource. response CapabilityStatement.rest.resource.where(type = 'Subscription').operation.where(name = 'status' and definition = 'http://hl7.org/fhir/uv/subscriptions-backport/OperationDefinition/backport-subscription-status').exists() equals dest-1-FHIRCapabilities-1-response true false
00 Capabilities | 01 Obtain server CapabilityStatement
HL7 International / Community Based Collaborative Care
Test a single server to verify support for the capabilities interaction 'HTTP GET metadata' and the return of a valid CapabilityStatement resource supporting the FAST Consent Management IG Version: CI. This scenario is generic and can be used with any FHIR format. Test System Details (in order of appearance): [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.] [Destination 1: Consent Admin Service's RESTful FHIR Server. System Under Test: this must be an external test system (not a mock).]
Consent Client reads server capabilities at Consent Admin Service.
Confirm that the returned HTTP status is 200 OK.
Confirm that the response body is a CapabilityStatement resource.
Confirm that the response body conforms to the base FHIR CapabilityStatement profile. This also checks any declared profiles within.
Confirm that the CapabilityStatement defines a system instance.
Confirm that the CapabilityStatement uses FHIR version 4.0.1 (R4).
CapabilityStatement.fhirVersion = '4.0.1'
Confirm that the CapabilityStatement declares support for the FAST Consent Management IG.
'http://hl7.org/fhir/us/consent-management/ImplementationGuide/hl7.fhir.us.consent-management' in CapabilityStatement.implementationGuide
Confirm that the Consent Administration Service SHALL support JSON FHIR.
Confirm that the Consent Administration Service SHALL support XML FHIR.
Confirm that the returned CapabilityStatement resource minimally contains the declaration of a RESTful server.
CapabilityStatement.rest.where(mode = 'server').exists()
Confirm that the Consent Administration Service SHALL support the Consent resource.
CapabilityStatement.rest.resource.where(type = 'Consent').exists()
Confirm that the Consent Administration Service SHALL support Consent resources that conform to the FASTConsent profile.
'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent' in CapabilityStatement.rest.resource.where(type = 'Consent').supportedProfile
Confirm that the Consent Administration Service SHALL support Consent read.
CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'read').exists()
Confirm that the Consent Administration Service SHALL support Consent search.
CapabilityStatement.rest.resource.where(type = 'Consent').interaction.where(code = 'search-type').exists()
Confirm that the Consent Administration Service SHALL support Consent search by _id (either at the REST or the resource level).
CapabilityStatement.rest.exists(searchParam.exists(name = '_id') or CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.exists(name = '_id'))
Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentController.
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()
Confirm that the Consent Administration Service SHALL support Consent search by date.
CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'date' and type = 'date').exists()
Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentGrantee.
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()
Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentManager.
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()
Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentOrganizationId.
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()
Confirm that the Consent Administration Service SHALL support Consent search by patient.
CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'patient' and type = 'reference').exists()
Confirm that the Consent Administration Service SHALL support Consent search by FASTConsentPatientId.
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()
Confirm that the Consent Administration Service SHALL support Consent search by scope.
CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'scope' and type = 'token').exists()
Confirm that the Consent Administration Service SHALL support Consent search by status.
CapabilityStatement.rest.resource.where(type = 'Consent').searchParam.where(name = 'status' and type = 'token').exists()
Confirm that the Consent Administration Service SHALL support the $fileConsent operation against the Consent resource.
CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'fileConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/file-consent').exists()
Confirm that the Consent Administration Service SHALL support the $revokeConsent operation against the Consent resource.
CapabilityStatement.rest.resource.where(type = 'Consent').operation.where(name = 'revokeConsent' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/revoke-consent').exists()
Confirm that the Consent Administration Service SHALL support the AuditEvent resource.
CapabilityStatement.rest.resource.where(type = 'AuditEvent').exists()
Confirm that the Consent Administration Service SHALL support AuditEvent resources that conform to the FASTConsentAuditEvent profile.
'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsentAuditEvent' in CapabilityStatement.rest.resource.where(type = 'AuditEvent').supportedProfile
Confirm that the Consent Administration Service SHALL support AuditEvent read.
CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'read').exists()
Confirm that the Consent Administration Service SHALL support AuditEvent search.
CapabilityStatement.rest.resource.where(type = 'AuditEvent').interaction.where(code = 'search-type').exists()
Confirm that the Consent Administration Service SHALL support AuditEvent search by FASTAuditEventConsent.
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()
Confirm that the Consent Administration Service SHALL support AuditEvent search by patient.
CapabilityStatement.rest.resource.where(type = 'AuditEvent').searchParam.where(name = 'patient' and type = 'reference').exists()
Confirm that the Consent Administration Service SHALL support the $recordDisclosure operation against the AuditEvent resource.
CapabilityStatement.rest.resource.where(type = 'AuditEvent').operation.where(name = 'recordDisclosure' and definition = 'http://hl7.org/fhir/us/consent-management/OperationDefinition/record-disclosure').exists()
Confirm that the Consent Administration Service SHALL support the Subscription resource.
CapabilityStatement.rest.resource.where(type = 'Subscription').exists()
Confirm that the Consent Administration Service SHALL support Consent subscriptions as defined by the FASTConsentSubscriptionTopic for FHIR R4 with Subscriptions Backport.
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()
Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the FASTSubscription profile.
'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTSubscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile
Confirm that the Consent Administration Service SHALL support Subscription create.
CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'create').exists()
Confirm that the Consent Administration Service SHALL support Subscription update.
CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'update').exists()
Confirm that the Consent Administration Service SHALL support Subscription delete.
CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'delete').exists()
Confirm that the CapabilityStatement SHOULD declare conformance with the Backport Subscription Server Capability Statement.
'http://hl7.org/fhir/uv/subscriptions-backport/CapabilityStatement/backport-subscription-server-r4' in CapabilityStatement.instantiates
Confirm that the Consent Administration Service SHALL support Subscription resources that conform to the Backport Subscription Profile.
'http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription' in CapabilityStatement.rest.resource.where(type = 'Subscription').supportedProfile
Confirm that the Consent Administration Service SHALL support Subscription read.
CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'read').exists()
Confirm that the Consent Administration Service SHOULD support Subscription search.
CapabilityStatement.rest.resource.where(type = 'Subscription').interaction.where(code = 'search-type').exists()
Confirm that the Consent Administration Service SHALL support Subscription search by url.
CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'url' and type = 'uri' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-url').exists()
Confirm that the Consent Administration Service SHOULD support Subscription search by status.
CapabilityStatement.rest.resource.where(type = 'Subscription').searchParam.where(name = 'status' and type = 'token' and definition = 'http://hl7.org/fhir/SearchParameter/Subscription-status').exists()
Confirm that the Consent Administration Service SHALL support the $status operation against the Subscription resource.
CapabilityStatement.rest.resource.where(type = 'Subscription').operation.where(name = 'status' and definition = 'http://hl7.org/fhir/uv/subscriptions-backport/OperationDefinition/backport-subscription-status').exists()