Scalable Consent Management Testing Guide - Local Development build (v1.0.0-ballot) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://hl7.org/fhir/us/consent-management-tg/TestScript/03-Read-an-AuditEvent | Version: 1.0.0-ballot | |||
| Standards status: Trial-use | Maturity Level: 1 | Computable Name: Test_03_Read_an_AuditEvent | ||
Copyright/Legal: (c) AEGIS.net, Inc. 2026 |
||||
Test a client and server to verify support for the AuditEvent read interaction and the return of a valid AuditEvent resource conforming to the FASTConsentAuditEvent profile. 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-141 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).]
AEGIS Touchstone Testing TestScript Rule Extension
- ruleId: AssertBodyExists
- path: /FHIRCommon/_reference/rule/AssertBodyExists.groovy
StructureDefinition Work Group: cbcc
url: TestScript 01 Read Simple Search - All SUT | 03 Read an AuditEvent
version: 1.0.0-ballot
name: Test_03_Read_an_AuditEvent
title: 01 Read Simple Search - All SUT | 03 Read an AuditEvent
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 client and server to verify support for the AuditEvent read interaction and the return of a valid AuditEvent resource conforming to the FASTConsentAuditEvent profile. 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-141 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
| Index | Profile |
| 1 | Test script profile origin type: FHIR-Client (FHIR Client) |
| Index | Profile |
| 1 | Test script profile destination type: FHIR-Server (FHIR Server) |
profile: http://hl7.org/fhir/StructureDefinition/AuditEvent
| Name | Description | Hint |
| dest-1-FHIRRead-1-needed-AuditEvent_id | Consent Admin Service's Id of AuditEvent to use, available at Destination 1. | [Enter Consent Admin Service's Id of AuditEvent to use, available at Destination 1] |
test
name: Step_001_AuditEvent_read
description: Consent Client reads a AuditEvent resource at Consent Admin Service.
action
Operations
Type Resource Description Destination EncodeRequestUrl Method Origin Params RequestId ResponseId Test script operation code: read (Read) AuditEvent Read a AuditEvent resource. 1 true GET 1 /${dest-1-FHIRRead-1-needed-AuditEvent_id} dest-1-FHIRRead-1-request dest-1-FHIRRead-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-FHIRRead-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 AuditEvent resource. response AuditEvent false action
Asserts
Extension Description Direction ValidateProfileId WarningOnly Confirm that the response body conforms to the base FHIR AuditEvent profile. This also checks any declared profiles within. response AuditEvent-profile false action
Asserts
Extension Description Direction Expression Operator SourceId Value WarningOnly Confirm that the AuditEvent resource in the response declares the FASTConsentAuditEvent profile. response AuditEvent.meta.profile contains 'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsentAuditEvent' equals dest-1-FHIRRead-1-response true false