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 fileConsent XML

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

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

Test a FAST Consent Management Server implementation of the $fileConsent operation using XML Format

StructureDefinition Work Group: cbcc

url: TestScript FAST Consent fileConsent XML

version: 0.1.0

name: FASTConsentFileConsentXML

title: FAST Consent fileConsent 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 $fileConsent operation using XML Format

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

fixture

id

fileconsent-parameters

autocreate: false

autodelete: false

resource: ./Parameters-fileconsent.xml

profile:

Variables

-NameExpressionSourceId
*createConsentIdentifierParameters.parameter.where(name = 'consent').resource.identifier[0].valuefileconsent-parameters

test

id

FASTConsentFileConsentXML

name: FASTConsentFileConsentXML

description: Test a FAST Consent Management Server implementation of the $fileConsent operation using XML Format against the destination server and assert successful response.

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParamsSourceId
*Test script operation code fileConsent: fileConsentConsentSend a Consent $fileConsent operationxmlxml1true1/$fileConsentfileconsent-parameters

action

Asserts

-ExtensionDescriptionDirectionResourceWarningOnly
*Confirm that the sent request payload is a Parameters resource.requestParameterstrue

action

Asserts

-ExtensionDescriptionDirectionValidateProfileIdWarningOnly
*Confirm that the sent Parameters conforms to the FAST Consent profile.requestfileConsentParametersProfilefalse

action

Asserts

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

action

Asserts

-ExtensionDescriptionDirectionResourceWarningOnly
*Confirm that the returned response payload is an OperationOutcome resource.responseOperationOutcometrue

action

Asserts

-ExtensionDescriptionDirectionValidateProfileIdWarningOnly
*Confirm that the returned OperationOutcome conforms to the base FHIR specification.responseOperationOutcomeProfiletrue

test

id

FASTConsentSearchXML

name: FASTConsentSearchXML

description: Test a FAST Consent Management Server to confirm successful creation of Consent from previous $fileConsent operation.

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code search: SearchConsentSearch for Consent from $fileConsent operationxmlxml1true1?identifier=${createConsentIdentifier}

action

Asserts

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

action

Asserts

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

action

Asserts

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

action

Asserts

-ExtensionDescriptionDirectionExpressionValueWarningOnly
*Confirm that the returned searchset Bundle contains 1 match.responseBundle.entry.resource.count()1true

action

Asserts

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

action

Asserts

-ExtensionDescriptionDirectionExpressionValueWarningOnly
*Confirm that the returned searchset Bundle contains the created Consent resource.responseBundle.entry.resource.as(Consent).identifier[0].value${createConsentIdentifier}true