This is the Version 1.1.0 Release of the Touchstone Testing Implementation Guide, based on FHIR Version 4.0.1. See the Directory of published versions
PatientReadSummaryRuleWithParamJson
Generated Narrative
Ids
- |
* |
Meta
- |
* |
AEGIS Touchstone Testing TestScript Rule Extension
Urls
- * value: RuleContentTypeIfBody
Urls
- * value: /FHIRCommon/_reference/rule/AssertHeaderIfBody.groovy
Urls
- * Urls
- * Urls
- *
version: 1.1.0
name: PatientReadSummaryRuleWithParamJson
status: active
date: 2020-05-29
publisher: AEGIS.net, Inc.
contact: Touchstone Support: Touchstone_Support@aegis.net
description: Demonstrate the use of the AEGIS Touchstone Testing IG rule extensions (no params) with a Patient read. The actual test is a read operation for a Patient in JSON format with the _summary=true parameter where the rule allows a single assert to test for the existence of the Content-Type header if a payload is returned.
jurisdiction: United States of America
copyright: (c) AEGIS.net, Inc. 2015+
Variables
- | Name | Hint |
* | patientResourceId | Enter a known Patient resource id |
test
Ids
- * name: PatientReadSummaryRuleWithParam
description: Read a known Patient in JSON format. The expected response code is 200 (OK). The expected response payload is the Patient resource with only the allowed summary elements in JSON format.
action
Operations
- Type Resource Description Accept EncodeRequestUrl Params * Read Patient Read the created Patient. The destination server must support the _summary=true parameter. json false /${patientResourceId}?_summary=true action
Asserts
- Extension Description Direction Response WarningOnly * Confirm that the returned HTTP status is 200(OK). response okay false action
Asserts
- Extension Description Direction WarningOnly * Complex rule assertion to evaluate if Content-Type header is present if a payload is returned. response false action
Asserts
- Extension Description Direction Resource WarningOnly * Confirm that the returned resource type is Patient. response Patient false action
Asserts
- Description Direction ValidateProfileId WarningOnly * Validate that the returned resource conforms to the base FHIR Patient profile. response patient-profile false