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 Search Pages JSON Syntax Example

Active as of 2023-07-03

Generated Narrative: TestScript

Resource TestScript "patient-search-pages-next-json"

Profile: AEGIS Touchstone Testing TestScript Profile

url: http://touchstone.aegis.net/touchstone/fhir/testing/TestScript/patient-search-pages-next-json

version: 2.0.0

name: PatientSearchPagesNextJson

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 search and use of the new operation extension searchMaxPages.

jurisdiction: World (m49.htm#001)

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

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

test

id

PatientSearchMaxPages

name: PatientSearchMaxPages

description: Search for Patients in JSON format with page count = 10 and max number of auto retrieve pages = 5. The expected response code is 200 (Ok). The expected response payload is Bundle searchset with matching Patient resources in JSON format.

action

Operations

-ExtensionTypeResourceDescriptionAcceptEncodeRequestUrlParams
*Search (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code search = 'Search', stated as 'null')PatientSearch for all Patients with general practitioner equal to Practitioner/example. Auto page through next 5 pages.jsonfalse?_count=10&general-practitioner=Practitioner/example

action

Asserts

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

action

Asserts

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

action

Asserts

-DescriptionDirectionResourceWarningOnly
*Confirm that the returned resource type is Bundle.responseBundlefalse

action

Asserts

-ExtensionDescriptionDirectionValidateProfileIdWarningOnly
*Validate that the returned resource conforms to the base FHIR Bundle profile.responsebundle-profilefalse