{ "resourceType": "TestScript", "id": "ReadTestScript", "text": { "status": "generated", "div": "

Generated Narrative with Details

id: ReadTestScript

name: ReadTestScript

description: TestScript for Sprinkler tests (R001, R002, R003, R004) for testing basic READ requests.

Fixtures

-Resource
*Patient resource

setup

action

Operations

-TypeSourceId
*createF1

test

name: Get Test Data Person

description: Result headers on normal read.

metadata

Links

-UrlDescription
*http://hl7.org/implement/standards/FHIR-Develop/patient.htmlFHIR Patient

operation

type: create

resource: Patient

description: Patient Create Operation

link: http://hl7.org/implement/standards/FHIR-Develop/http.html#create

required: true

operation

type: read

resource: Patient

description: Patient Read Operation

link: http://hl7.org/implement/standards/FHIR-Develop/http.html#read

required: true

operation

type: delete

resource: Patient

description: Patient Delete Operation

link: http://hl7.org/implement/standards/FHIR-Develop/http.html#delete

required: true

operation

type: update

resource: Patient

description: Patient Update Operation

link: http://hl7.org/implement/standards/FHIR-Develop/http.html#update

required: true

action

Operations

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

test

name: Try Read Unknown Resource Type

description: Read unknown resource type

metadata

Operations

-TypeResourceDescriptionLinkRequiredValidated
*readPatientPatient Read Operationhttp://hl7.org/implement/standards/FHIR-Develop/http.html#readtruetrue

action

Operations

-
*

action

Asserts

-
*

test

name: Try Read Non Existing Resource

description: Read non-existing resource id

metadata

Operations

-TypeResourceDescriptionLinkRequiredValidated
*readPatientPatient Read Operationhttp://hl7.org/implement/standards/FHIR-Develop/http.html#readtruetrue

action

Operations

-
*

action

Asserts

-
*

test

name: Try Read Bad Formatted Resource Id

description: Read bad formatted resource id

metadata

Operations

-TypeResourceDescriptionLinkRequiredValidated
*readPatientPatient Read Operationhttp://hl7.org/implement/standards/FHIR-Develop/http.html#readtruetrue

action

Operations

-
*

action

Asserts

-
*

teardown

action

Operations

-
*
" }, "url": "http://hl7.org/fhir/TestScript/multiserver", "name": "ReadTestScript", "status": "draft", "description": "TestScript for Sprinkler tests (R001, R002, R003, R004) for testing basic READ requests.", "metadata": { "capability": [ { "required": true, "validated": true, "description": "Patient Create, Read, Update, and Delete Operations", "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#create", "http://hl7.org/implement/standards/FHIR-Develop/http.html#read", "http://hl7.org/implement/standards/FHIR-Develop/http.html#update", "http://hl7.org/implement/standards/FHIR-Develop/http.html#delete" ], "conformance": { "reference": "Conformance/example" } } ] }, "fixture": [ { "id": "F1", "resource": { "reference": "Patient/example", "display": "Patient resource" } } ], "setup": { "action": [ { "operation": { "type": { "code": "create" }, "sourceId": "F1" } } ] }, "test": [ { "id": "R001", "name": "Get Test Data Person", "description": "Result headers on normal read.", "action": [ { "operation": { "type": { "code": "read" }, "accept": "xml", "targetId": "F1" } }, { "assert": { "response": "okay" } }, { "assert": { "contentType": "xml" } }, { "assert": { "headerField": "Last-Modified", "operator": "notEmpty" } } ] }, { "id": "R002", "name": "Try Read Unknown Resource Type", "description": "Read unknown resource type", "action": [ { "operation": { "type": { "code": "read" }, "resource": "Parameters", "_resource": { "fhir_comments": [ " What we really want here is an illegal type, but the validation in the build process won't that. \n But Parameters is a valid resource which doesn't have an end-point so should fail. " ] }, "params": "/1" } }, { "assert": { "response": "notFound" } } ] }, { "id": "R003", "name": "Try Read Non Existing Resource", "description": "Read non-existing resource id", "action": [ { "operation": { "type": { "code": "read" }, "resource": "Patient", "params": "/3141592unlikely" } }, { "assert": { "response": "notFound" } } ] }, { "id": "R004", "name": "Try Read Bad Formatted Resource Id", "description": "Read bad formatted resource id", "action": [ { "operation": { "type": { "code": "read" }, "resource": "Patient", "params": "/ID-may-not-contain-CAPITALS" } }, { "assert": { "response": "bad" } } ] } ], "teardown": { "action": [ { "operation": { "type": { "code": "delete" }, "targetId": "F1" } } ] } }