Touchstone FHIR Testing
2.0.0 - current International flag

Touchstone FHIR Testing v2.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions

Example TestScript: TestScript Patient Read stopTestonFail JSON Syntax Example

Active as of 2023-07-03

Generated Narrative: TestScript

Resource TestScript "patient-read-stopTestOnFail-json"

Profile: AEGIS Touchstone Testing TestScript Profile

url: http://touchstone.aegis.net/touchstone/fhir/testing/TestScript/patient-read-stopTestOnFail-json

version: 2.0.0

name: PatientReadStopTestOnFailJson

status: active

date: 2023-07-03

publisher: AEGIS.net, Inc.

contact: AEGIS.net, Inc.: https://www.aegis.net, Richard Ettema: mailto:richard.ettema@aegis.net

description: Demonstrate the use of a Patient read and use of the new assert extension stopTestOnFail.

jurisdiction: World (m49.htm#001)

copyright: (c) AEGIS.net, Inc. 2015+

profile: http://hl7.org/fhir/StructureDefinition/Patient "Patient"

test

id

PatientReadStopTestOnFail

name: PatientReadStopTestOnFail

description: Read a Patient in JSON format. The expected response code is 200 (Ok). The expected response payload is the read Patient resource in JSON format.

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')PatientRead a Patient.jsonfalse/example

action

Asserts

-ExtensionDescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned HTTP status is 200(Ok).response200false

action

Asserts

-ExtensionDescriptionDirectionContentTypeWarningOnly
*Confirm that the returned format is JSON.responsejsonfalse

action

Asserts

-ExtensionDescriptionDirectionResourceWarningOnly
*Confirm that the returned resource type is Patient.responsePatientfalse

action

Asserts

-ExtensionDescriptionDirectionValidateProfileIdWarningOnly
*Validate that the returned resource conforms to the base FHIR Patient profile.responsepatient-profilefalse