This is the Version 1.5.0 Release of the Touchstone Testing Implementation Guide, based on FHIR Version 4.0.1. See the Directory of published versions
PatientReadVersioningRulesetJson
Generated Narrative
Resource "patient-read-versioning-ruleset-json"
AEGIS Touchstone Testing TestScript Ruleset Extension
value: RulesetPatientVersioning
value: ../_reference/ruleset/RuleSet-VersioningHeaders-Groovy.xml
url: http://touchstone.aegis.net/touchstone/fhir/testing/TestScript/patient-read-versioning-ruleset-json
version: 1.5.0
name: PatientReadVersioningRulesetJson
status: active
date: 2020-05-29
publisher: AEGIS.net, Inc.
contact: Touchstone Support: Touchstone_Support@aegis.net
description: Demonstrate the use of a ruleset with a Patient read. The actual test is a read operation for a Patient in JSON format where a ruleset is used to conditionally check the system under test for versioning support and either skip or apply checks for required HTTP response headers.
jurisdiction: US (unknown#US)
copyright: (c) AEGIS.net, Inc. 2015+
profile: http://hl7.org/fhir/StructureDefinition/Patient "Patient"
Variables
- | Name | Hint |
* | patientResourceId | Enter a known Patient resource id |
test
name: PatientReadVersioningRuleset
description: Read the created Patient in JSON format. The expected response code is 200 (OK). The expected response payload is the Patient resource in JSON format.
action
Operations
- Type Resource Description Accept EncodeRequestUrl Params * Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null') Patient Read the created Patient. The destination server support of versioning will be conditionally evaluated. json false /${patientResourceId} action
Asserts
- Extension Description Direction Response WarningOnly * Confirm that the returned HTTP status is 200(OK). response okay false action
Asserts
- Extension Description Direction ContentType WarningOnly * Confirm that the returned format is JSON. response json false action
Asserts
- Extension Description Direction Resource WarningOnly * Confirm that the returned resource type is Patient. response Patient false action
Asserts
- Extension Description Direction ValidateProfileId WarningOnly * Validate that the returned resource conforms to the base FHIR Patient profile. response patient-profile false action
Asserts
- Extension Description Direction WarningOnly * Complex ruleset assertion to conditionally validate expected versioning HTTP Headers. response false