{ "description": "Test Script for history of the patient resource", "_filename": "testscript-history.json", "package_name": "hl7.fhir.core", "date": null, "publisher": null, "name": "History Test Script", "type": null, "experimental": null, "resourceType": "TestScript", "title": null, "setup": { "action": [ { "operation": { "type": { "code": "create" }, "sourceId": "example-patient" } }, { "operation": { "type": { "code": "update" }, "sourceId": "example-patient-updated", "targetId": "example-patient" } } ] }, "package_version": "1.4.0", "status": "draft", "id": "64f1e138-1a9c-42f3-95b7-b81a676c5d8c", "kind": null, "url": "http://hl7.org/fhir/TestScript/history", "fixture": [ { "id": "example-patient", "resource": { "reference": "Patient/example" } }, { "id": "example-patient-updated", "resource": { "reference": "Patient/pat1" } } ], "version": null, "teardown": { "action": [ { "operation": { "type": { "code": "delete" }, "targetId": "example-patient" } } ] }, "metadata": { "capability": [ { "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" ], "required": true, "conformance": { "reference": "Conformance/example" }, "description": "Patient Create, Read, Update, and Delete Operations" } ] }, "test": [ { "id": "HISTORY01", "name": "History for specific resource", "action": [ { "operation": { "type": { "code": "history" }, "targetId": "example-patient" } }, { "assert": { "response": "okay" } }, { "assert": { "resource": "Bundle" } }, { "assert": { "path": "fhir:Bundle/fhir:total/@value", "value": "2", "operator": "equals" } } ], "metadata": { "capability": [ { "link": [ "http://hl7.org/implement/standards/FHIR-Develop/http.html#history" ], "required": true, "conformance": { "reference": "Conformance/example" }, "description": "Patient History Operation" } ] }, "description": "History for specific resource." } ] }