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
Official URL: http://hl7.org/fhir/us/consent-management-tg/TestScript/fastconsentsearchconsentxml | Version: 0.1.0 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: FASTConsentSearchConsentXML | ||
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 XML 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 XML
version: 0.1.0
name: FASTConsentSearchConsentXML
title: FAST Consent Search Consent XML
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 XML 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
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/Bundle
Name | DefaultValue | Description | Hint |
patientId | example | Enter a known Consent patientI Identifier value on the destination system. | [patientId Identifier] |
test
id
FASTConsentSearchConsentXMLname: FASTConsentSearchConsentXML
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 XML format.
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code search: Search Consent Search for the Consent and validate the search results xml xml 1 true 1 ?patientId=${patientId}&_revinclude=AuditEvent:consent 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+xml'. Warning only to allow for review. response xml true action
Asserts
Extension Description Direction Resource WarningOnly Confirm that the returned response payload is a Bundle resource. response Bundle true action
Asserts
Extension Description Direction ValidateProfileId WarningOnly Confirm that the returned Bundle conforms to the FAST Consent IG and FHIR specification. response BundleProfile true action
Asserts
Extension Description Direction Path Value WarningOnly Confirm that the returned response payload is a searchset Bundle resource. response .type searchset true action
Asserts
Extension Description Direction Expression WarningOnly Confirm that the returned searchset Bundle contains a Consent resource. response Bundle.entry.resource.as(Consent).exists() false action
Asserts
Extension Description Direction Expression WarningOnly Confirm that the returned searchset Bundle contains an AuditEvent resource. response Bundle.entry.resource.as(AuditEvent).exists() false