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

Generated Narrative with Details

id: example

name: Test Script 1

description: Example Test Script

Fixtures

-Resource
*Patient resource

test

name: Read Patient

description: Read a patient and validate response.

metadata

Links

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

Operations

-TypeResourceDescriptionLinkRequired
*createPatientPatient Create Operationhttp://hl7.org/implement/standards/FHIR-Develop/http.html#createtrue

action

Operations

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*
" }, "url": "http://hl7.org/fhir/TestScript/example", "version": "1.0", "name": "Test Script 1", "status": "draft", "identifier": { "system": "urn:ietf:rfc:3986", "value": "urn:oid:1.3.6.1.4.1.21367.2005.3.7.9876" }, "experimental": true, "publisher": "HL7", "contact": [ { "name": "Support", "telecom": [ { "system": "email", "value": "support@gmail.com", "use": "temp" } ] } ], "date": "2015-08-31", "description": "Example Test Script", "useContext": [ { "coding": [ { "system": "urn:iso:std:iso:3166", "code": "US", "display": "United States of America (the)" } ] } ], "requirements": "Patient Create, Read, and Update Operations", "copyright": "© HL7.org 2011+", "metadata": { "capability": [ { "required": true, "description": "Patient Create, Read, and Update Operations", "destination": 1, "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" ], "conformance": { "reference": "Conformance/example" } } ] }, "fixture": [ { "id": "F1", "autocreate": false, "autodelete": false, "resource": { "reference": "Patient/example", "display": "Patient resource" } } ], "profile": [ { "id": "patient-profile", "reference": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "setup": { "action": [ { "fhir_comments": [ " Create the patient using fixture " ], "operation": { "type": { "code": "create" }, "label": "SetupPatient", "description": "Create patient resource on test server", "accept": "json", "responseId": "create-response", "sourceId": "F1" } }, { "assert": { "direction": "request", "responseCode": "201" } } ] }, "test": [ { "id": "READ01", "name": "Read Patient", "description": "Read a patient and validate response.", "action": [ { "operation": { "type": { "code": "read" }, "encodeRequestUrl": false, "responseId": "F1-read", "targetId": "F1" } }, { "assert": { "label": "ReadOK", "description": "Test for OK response", "direction": "request", "response": "okay" } }, { "assert": { "headerField": "Last-Modified", "operator": "notEmpty", "warningOnly": true } }, { "assert": { "resource": "Patient" } }, { "assert": { "validateProfileId": "patient-profile" } }, { "assert": { "operator": "equals", "path": "fhir:Patient/fhir:name/fhir:family/@value", "value": "Chalmers" } }, { "assert": { "operator": "equals", "path": "fhir:Patient/fhir:name/fhir:family/@value", "sourceId": "F1", "value": "Chalmers" } }, { "assert": { "compareToSourceId": "F1-read", "compareToSourcePath": "fhir:Patient/fhir:name/fhir:family/@value", "operator": "equals", "path": "fhir:Patient/fhir:name/fhir:family/@value" } }, { "assert": { "compareToSourceId": "F1-read", "compareToSourcePath": "fhir:Patient/fhir:name/fhir:family/@value", "path": "fhir:Patient/fhir:name/fhir:family/@value", "sourceId": "F1" } }, { "assert": { "minimumId": "F1-min" } } ] } ] }