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

Generated Narrative with Details

id: history

name: History Test Script

description: Test Script for history of the patient resource

fixture

resource: Patient/patient-example.xml

fixture

resource: Patient/patient-example-updated.xml

setup

action

Operations

-TypeSourceId
*createexample-patient

action

Operations

-TypeSourceIdTargetId
*updateexample-patient-updatedexample-patient

test

name: History for specific resource

description: History for specific resource.

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

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

-
*

teardown

action

Operations

-
*
" }, "url": "http://hl7.org/fhir/TestScript/history", "name": "History Test Script", "status": "draft", "description": "Test Script for history of the patient resource", "metadata": { "capability": [ { "required": 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": "example-patient", "resource": { "reference": "Patient/example" } }, { "id": "example-patient-updated", "resource": { "reference": "Patient/pat1" } } ], "setup": { "action": [ { "operation": { "type": { "code": "create" }, "sourceId": "example-patient" } }, { "operation": { "type": { "code": "update" }, "sourceId": "example-patient-updated", "targetId": "example-patient" } } ] }, "test": [ { "id": "HISTORY01", "name": "History for specific resource", "description": "History for specific resource.", "metadata": { "capability": [ { "required": true, "description": "Patient History Operation", "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#history" ], "conformance": { "reference": "Conformance/example" } } ] }, "action": [ { "operation": { "type": { "code": "history" }, "targetId": "example-patient" } }, { "assert": { "response": "okay" } }, { "assert": { "resource": "Bundle" } }, { "assert": { "operator": "equals", "path": "fhir:Bundle/fhir:total/@value", "value": "2" } } ] } ], "teardown": { "action": [ { "operation": { "type": { "code": "delete" }, "targetId": "example-patient" } } ] } }