05-Subscription-Status-Resource
type: TestScript
node role: treeRoot
id:
  v: 05-Subscription-Status-Resource
meta:
  profile:
    v: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript
    l: testscript
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: TestScript 05-Subscription-Status-Resource Profile: AEGIS Touchstone Testing TestScript Profile StructureDefinition Work Group: cbcc url: TestScript 04 Basic REST-hook Subs - All SUT | 05 Subscription Status - Resource version: 1.0.0-ballot name: Test_05_Subscription_Status_Resource title: 04 Basic REST-hook Subs - All SUT | 05 Subscription Status - Resource 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: Perform successful Subscription/$status operations. Test a client and server to verify support for the Subscription $status resource operation. 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-266 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) test name: Step_001_Subscription_slash_dollar_status_operation description: Consent Client invokes the Subscription/$status operation at Consent Admin Service. action Operations - Type Resource Description Destination EncodeRequestUrl Method Origin Params RequestId ResponseId * testscript-operation-codes-extended: post (post) Subscription Subscription/$status operation. 1 true POST 1 /$status dest-1-FHIRExtendedOperation-1-request dest-1-FHIRExtendedOperation-1-response action Asserts - Extension Description Direction …
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: cbcc
url:
  v: http://hl7.org/fhir/us/consent-management-tg/TestScript/05-Subscription-Status-Resource
  l: 05-Subscription-Status-Resource
version:
  v: 1.0.0-ballot
name:
  v: Test_05_Subscription_Status_Resource
title:
  v: 04 Basic REST-hook Subs - All SUT | 05 Subscription Status - Resource
status:
  v: active
date:
  v: 2026-03-30
publisher:
  v: HL7 International / Community Based Collaborative Care
contact:
  name:
    v: HL7 International / Community Based Collaborative Care
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/cbcc
description:
  v: Happy Path: Perform successful Subscription/$status operations. Test a client and server to verify support for the Subscription $status resource operation. 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-266 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:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: US
    display:
      v: United States of America
copyright:
  v: (c) AEGIS.net, Inc. 2026
origin:
  index:
    v: 1
  profile:
    system:
      v: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types
      l: testscript-profile-origin-types
    code:
      v: FHIR-Client
destination:
  index:
    v: 1
  profile:
    system:
      v: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types
      l: testscript-profile-destination-types
    code:
      v: FHIR-Server
test:
  name:
    v: Step_001_Subscription_slash_dollar_status_operation
  description:
    v: Consent Client invokes the Subscription/$status operation at Consent Admin Service.
  action:
    operation:
      resource:
        v: Subscription
      description:
        v: Subscription/$status operation.
      destination:
        v: 1
      encode request url:
        v: true
      method:
        v: post
      origin:
        v: 1
      params:
        v: /$status
      request id:
        v: dest-1-FHIRExtendedOperation-1-request
      response id:
        v: dest-1-FHIRExtendedOperation-1-response
  action:
    assert:
      extension:
        value: Boolean
      description:
        v: Confirm that the id parameter is present and valued.
      direction:
        v: request
      expression:
        v: Parameters.parameter.exists(name='id' and value.length() > 0)
      operator:
        v: equals
      source id:
        v: dest-1-FHIRExtendedOperation-1-request
      value:
        v: true
      warning only:
        v: false

v: post

Boolean
v: false