Scalable Consent Management Testing Guide
0.1.0 - ci-build

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

## TestScript: FAST Consent Read Consent JSON

Official URL: http://hl7.org/fhir/us/consent-management-tg/TestScript/fastconsentreadconsentjson | Version: 0.1.0
Standards status: Trial-use | Maturity Level: 1 | Computable Name: FASTConsentReadConsentJSON
Copyright/Legal: (c) HL7 International / Community Based Collaborative Care 2025

Test a FAST Consent Management Server implementation of the FHIR read interaction of a Consent resource using JSON Format

Profile: AEGIS Touchstone Testing TestScript Profile

StructureDefinition Work Group: cbcc

url: TestScript FAST Consent Read Consent JSON

version: 0.1.0

name: FASTConsentReadConsentJSON

title: FAST Consent Read Consent JSON

status: Active

date: 2025-05-22

publisher: HL7 International / Community Based Collaborative Care

contact: HL7 International / Community Based Collaborative Care: http://www.hl7.org/Special/committees/cbcc

description:

Test a FAST Consent Management Server implementation of the FHIR read interaction of a Consent resource using JSON Format

jurisdiction: United States of America

copyright:

(c) HL7 International / Community Based Collaborative Care 2025

### 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/FASTConsent

### Variables

- | Name | DefaultValue | Description | Hint
* | consentResourceId | example | Enter a known Consent resource id on the destination system. | [resource.id]

> test

> > id

> > FASTConsentReadConsentJSON

> name: FASTConsentReadConsentJSON

> description: Test the read operation with JSON content. The expected response content is the Consent resource for the user entered id in JSON format.

> > action

> > ### Operations

> > - | Type | Resource | Description | Accept | ContentType | Destination | EncodeRequestUrl | Origin | Params
> > * | Test script operation code read: Read | Consent | Read the Consent and validate the contents | json | json | 1 | true | 1 | /${consentResourceId}

> > action

> > ### Asserts

> > - | Extension | Description | Direction | ResponseCode | WarningOnly
> > * |  | Confirm that the returned response code is 200 OK. | response | 200 | false

> > action

> > ### Asserts

> > - | Extension | Description | Direction | HeaderField | Operator | WarningOnly
> > * |  | Confirm that the returned HTTP Header Content-Type is present. | response | Content-Type | notEmpty | false

> > action

> > ### Asserts

> > - | Extension | Description | Direction | ContentType | WarningOnly
> > * |  | Confirm that the returned HTTP Header Content-Type contains the FHIR mime-type 'application/fhir+json'. Warning only to allow for review. | response | json | true

> > action

> > ### Asserts

> > - | Extension | Description | Direction | Resource | WarningOnly
> > * |  | Confirm that the returned response payload is a Consent resource. | response | Consent | true

> > action

> > ### Asserts

> > - | Extension | Description | Direction | ValidateProfileId | WarningOnly
> > * |  | Confirm that the returned Consent conforms to the FAST Consent IG specification. | response | fastConsentProfile | true