Generated Narrative: TestScript 01-Create-subscription 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 04 Basic REST-hook Subs - All SUT | 01 Create subscription version: 1.0.0-ballot name: Test_01_Create_subscription title: 04 Basic REST-hook Subs - All SUT | 01 Create subscription 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: Happy Path: Create a Subscriptions R5 Backport REST-hook Subscription. Test a client and server to verify support for POST of a REST-hook Subscription. This scenario is generic and can be used with any FHIR format and query parameters. Test case supporting the FAST Consent Management IG Version: CI. See https://wildfhir4.wildfhir.org/ig/fhir-consent-management-tg/rtm_test_cases.html#testcase-232 Test System Details (in order of appearance): [Origin 1: Consent Client's RESTful client. System Under Test: this must be an external test system (not Touchstone).] [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/us/consent-management/StructureDefinition/FASTSubscription http://hl7.org/fhir/StructureDefinition/Subscription test name: Step_001_POST_Subscription_create description: Consent Client creates with POST a Subscription resource at Consent Admin Service. action Operations - Type Resource Description Destination EncodeRequestUrl Method Origin RequestId ResponseId Url * Test script operation code: create (Create) Subscription Create a Subscription resource. 1 true POST 1 dest-1-FHIRCreate-1-request dest-1-FHIRCreate-1-response ${dest1SystemConfig.baseUrl}/Subscription action Asserts - Extension Description Direction WarningOnly * Confirm that the request body exists. request false action Asserts - Extension Description Direction Resource WarningOnly * Confirm that the request body is a Subscription resource. request Subscription false action Asserts - Extension Description Direction ValidateProfileId WarningOnly * Confirm that the request body conforms to the base FHIR Subscription profile. This also checks any declared profiles within. request Subscription-profile false action Asserts - Extension Description Direction Operator ResponseCode SourceId WarningOnly * Confirm that the returned HTTP status is 201 Created. response in 201 dest-1-FHIRCreate-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 Subscription resource. response Subscription true action Asserts - Extension Description Direction ValidateProfileId WarningOnly * Confirm that the response body conforms to the base FHIR Subscription profile. This also checks any declared profiles within. response Subscription-profile true action Asserts - Extension Description Direction Expression Operator SourceId Value WarningOnly * Confirm that the request body is a Subscription resource that should declare the FASTSubscription profile. request Subscription.meta.profile contains 'https://hl7.org/fhir/us/consent-management/StructureDefinition/FASTSubscription' equals dest-1-FHIRCreate-1-request true true action Asserts - Extension Description Direction Expression ValidateProfileId WarningOnly * Confirm that the resource(s) in the request body at FHIRPath 'Subscription' should conform to profile 'FASTSubscription'. request Subscription FASTSubscription true
04 Basic REST-hook Subs - All SUT | 01 Create subscription
HL7 International / Community Based Collaborative Care
Happy Path: Create a Subscriptions R5 Backport REST-hook Subscription. Test a client and server to verify support for POST of a REST-hook Subscription. This scenario is generic and can be used with any FHIR format and query parameters. Test case supporting the FAST Consent Management IG Version: CI. See https://wildfhir4.wildfhir.org/ig/fhir-consent-management-tg/rtm_test_cases.html#testcase-232 Test System Details (in order of appearance): [Origin 1: Consent Client's RESTful client. System Under Test: this must be an external test system (not Touchstone).] [Destination 1: Consent Admin Service's RESTful FHIR Server. System Under Test: this must be an external test system (not a mock).]
Consent Client creates with POST a Subscription resource at Consent Admin Service.
Confirm that the request body is a Subscription resource.
Confirm that the request body conforms to the base FHIR Subscription profile. This also checks any declared profiles within.
Confirm that the returned HTTP status is 201 Created.
Confirm that the response body is a Subscription resource.
Confirm that the response body conforms to the base FHIR Subscription profile. This also checks any declared profiles within.
Confirm that the request body is a Subscription resource that should declare the FASTSubscription profile.
Subscription.meta.profile contains 'https://hl7.org/fhir/us/consent-management/StructureDefinition/FASTSubscription'
Confirm that the resource(s) in the request body at FHIRPath 'Subscription' should conform to profile 'FASTSubscription'.