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

Generated Narrative with Details

id: multiserver

name: Multiserver Test Script

description: Multiserver Test Script

Fixtures

-Resource
*Patient/patient-example.xml

setup

action

Operations

-TypeContentTypeDestinationSourceId
*createxml0F1

test

name: Read Patient

description: Read the patient from server 0.

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

validated: true

action

Operations

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

test

name: Write Patient

description: Write the patient read from server 0 to server 1.

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

validated: true

action

Operations

-
*

action

Asserts

-
*

action

Operations

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

test

name: Update Patient

description: Update the patient on server 0 with the one read from server 1.

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

validated: true

action

Operations

-
*

action

Asserts

-
*

action

Operations

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

action

Asserts

-
*

teardown

action

Operations

-
*

action

Operations

-
*
" }, "url": "http://hl7.org/fhir/TestScript/multiserver", "name": "Multiserver Test Script", "status": "draft", "description": "Multiserver Test Script", "origin": [ { "index": 1, "profile": { "code": "FHIR-Client" } } ], "destination": [ { "index": 1, "profile": { "code": "FHIR-Server" } } ], "metadata": { "capability": [ { "validated": true, "description": "Patient Create Operation", "origin": [ 1 ], "destination": 1, "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#create" ], "conformance": { "reference": "Conformance/example" } }, { "validated": true, "description": "Patient Read Operation", "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#read" ], "conformance": { "reference": "Conformance/example" } }, { "validated": true, "description": "Patient Update Operation", "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#update" ], "conformance": { "reference": "Conformance/example" } } ] }, "fixture": [ { "id": "F1", "resource": { "reference": "Patient/example" } } ], "setup": { "action": [ { "operation": { "type": { "code": "create" }, "contentType": "xml", "destination": 0, "origin": 0, "sourceId": "F1" } } ] }, "test": [ { "id": "READ01", "name": "Read Patient", "description": "Read the patient from server 0.", "action": [ { "operation": { "type": { "code": "read" }, "destination": 0, "responseId": "R1", "targetId": "F1" } }, { "assert": { "response": "okay" } }, { "assert": { "headerField": "Last-Modified", "operator": "notEmpty" } }, { "assert": { "resource": "Patient" } }, { "assert": { "minimumId": "F1" } } ] }, { "id": "WRITE01", "name": "Write Patient", "description": "Write the patient read from server 0 to server 1.", "action": [ { "operation": { "type": { "code": "create" }, "destination": 1, "sourceId": "R1" } }, { "assert": { "response": "okay" } }, { "operation": { "type": { "code": "read" }, "destination": 1, "responseId": "R2", "targetId": "R1" } }, { "assert": { "response": "okay" } }, { "assert": { "headerField": "Last-Modified", "operator": "notEmpty" } }, { "assert": { "resource": "Patient" } }, { "assert": { "minimumId": "F1" } }, { "assert": { "minimumId": "R1" } } ] }, { "id": "UPDATE01", "name": "Update Patient", "description": "Update the patient on server 0 with the one read from server 1.", "action": [ { "operation": { "type": { "code": "update" }, "destination": 0, "sourceId": "R2", "targetId": "R1" } }, { "assert": { "response": "okay" } }, { "operation": { "type": { "code": "read" }, "destination": 0, "responseId": "R3", "targetId": "R1" } }, { "assert": { "response": "okay" } }, { "assert": { "headerField": "Last-Modified", "operator": "notEmpty" } }, { "assert": { "resource": "Patient" } }, { "assert": { "minimumId": "F1" } }, { "assert": { "minimumId": "R1" } }, { "assert": { "minimumId": "R2" } } ] } ], "teardown": { "action": [ { "operation": { "type": { "code": "delete" }, "destination": 0, "targetId": "F1" } }, { "operation": { "type": { "code": "delete" }, "destination": 1, "targetId": "F1" } } ] } }