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 Create Dynamic Fixture JSON Syntax Example

Active as of 2023-07-03

Generated Narrative: TestScript

Resource TestScript "patient-create-dynamic-fixture-json"

Profile: AEGIS Touchstone Testing TestScript Profile

AEGIS Touchstone Testing TestScript Dynamic Fixture Extension

url

id

value: resource-create

url

resourceType

value: Patient

url

contentType

value: application/fhir+json

url

description

value: Patient create fixture. Enter the FHIR Patient resource that is to be created on the target test system.

url

hint

value: Patient resource contents

url: http://touchstone.aegis.net/touchstone/fhir/testing/TestScript/patient-create-dynamic-fixture-json

version: 2.0.0

name: PatientCreateDynamicFixtureJson

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 create and use of the new TestScript extension testscript-dynamic-fixture.

jurisdiction: World (m49.htm#001)

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

test

id

PatientCreateDynamicFixture

name: PatientCreateDynamicFixture

description: Create a Patient resource using a dynamic fixture content in JSON format. The expected response code is 201 (Create).

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlSourceId
*Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null')PatientCreate a Patient resource using a dynamic fixture.jsonjsontrueresource-create

action

Asserts

-DescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned HTTP status is 201(Create).response201false