Scalable Consent Management Testing Guide
0.1.0 - ci-build United States of America flag

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 Search Consent JSON

Official URL: http://hl7.org/fhir/us/consent-management-tg/TestScript/fastconsentsearchconsentjson Version: 0.1.0
Standards status: Trial-use Maturity Level: 1 Computable Name: FASTConsentSearchConsentJSON

Copyright/Legal: (c) HL7 International / Community Based Collaborative Care 2025

Test a FAST Consent Management Server implementation of the FHIR search interaction for Consent resources using JSON Format. The user must enter the FAST Consent patientId parameter. The reverse include parameter for any recorded AuditEvent resources is also defined.

StructureDefinition Work Group: cbcc

url: TestScript FAST Consent Search Consent JSON

version: 0.1.0

name: FASTConsentSearchConsentJSON

title: FAST Consent Search 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 search interaction for Consent resources using JSON Format. The user must enter the FAST Consent patientId parameter. The reverse include parameter for any recorded AuditEvent resources is also defined.

jurisdiction: United States of America

copyright:

(c) HL7 International / Community Based Collaborative Care 2025

Origins

-IndexProfile
*1Test script profile origin type FHIR-Client: FHIR Client

Destinations

-IndexProfile
*1Test script profile destination type FHIR-Server: FHIR Server

profile: http://hl7.org/fhir/StructureDefinition/Bundle

Variables

-NameDefaultValueDescriptionHint
*patientIdexampleEnter a known Consent patientI Identifier value on the destination system.[patientId Identifier]

test

id

FASTConsentSearchConsentJSON

name: FASTConsentSearchConsentJSON

description: Test the FAST Consent Management Server search operation with reverse include of any recorded AuditEvent resources. The expected response content is a searchset Bundle resource for all Consent resources matching the patientId parameter in JSON format.

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code search: SearchConsentSearch for the Consent and validate the search resultsjsonjson1true1?patientId=${patientId}&_revinclude=AuditEvent:consent

action

Asserts

-ExtensionDescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned response code is 200 OK.response200false

action

Asserts

-ExtensionDescriptionDirectionHeaderFieldOperatorWarningOnly
*Confirm that the returned HTTP Header Content-Type is present.responseContent-TypenotEmptyfalse

action

Asserts

-ExtensionDescriptionDirectionContentTypeWarningOnly
*Confirm that the returned HTTP Header Content-Type contains the FHIR mime-type 'application/fhir+json'. Warning only to allow for review.responsejsontrue

action

Asserts

-ExtensionDescriptionDirectionResourceWarningOnly
*Confirm that the returned response payload is a Bundle resource.responseBundletrue

action

Asserts

-ExtensionDescriptionDirectionValidateProfileIdWarningOnly
*Confirm that the returned Bundle conforms to the FAST Consent IG and FHIR specification.responseBundleProfiletrue

action

Asserts

-ExtensionDescriptionDirectionPathValueWarningOnly
*Confirm that the returned response payload is a searchset Bundle resource.response.typesearchsettrue

action

Asserts

-ExtensionDescriptionDirectionExpressionWarningOnly
*Confirm that the returned searchset Bundle contains a Consent resource.responseBundle.entry.resource.as(Consent).exists()false

action

Asserts

-ExtensionDescriptionDirectionExpressionWarningOnly
*Confirm that the returned searchset Bundle contains an AuditEvent resource.responseBundle.entry.resource.as(AuditEvent).exists()false