{"resourceType":"TestScript","id":"testscript-example-history","meta":{"versionId":"1","lastUpdated":"2023-12-05T15:42:41.547+00:00","security":[{"system":"http://terminology.hl7.org/CodeSystem/v3-ActReason","code":"HTEST","display":"test health data"}]},"text":{"status":"generated","div":"
\n Generated Narrative with Details\n
\n\n id: testscript-example-history
\n\n url: http://hl7.org/fhir/TestScript/testscript-example-history
\n\n identifier: urn:oid:1.3.6.1.4.1.21367.2005.3.7.9877
\n\n version: 1.0
\n\n name: TestScript Example History
\n\n status: draft
\n\n experimental: true
\n\n date: 18/01/2017
\n\n publisher: HL7
\n\n contact:
\n\n description: TestScript example resource with setup to delete if present and create a new instance of a Patient then update that Patient to create a minimum history; and single test definition to get the history of that Patient with various asserts.
\n\n jurisdiction: United States of America (the) (Details : {urn:iso:std:iso:3166 code 'US' = 'United States of America', given as 'United States of America (the)'})
\n\n purpose: Patient (Conditional) Create, Update, Delete and History (Instance) Operations
\n\n copyright: © HL7.org 2011+
\n\n\n\n metadata\n
\nLinks
\n\n
\n\n \n- \n\n Url\n \n\n Description\n \n\n \n* \n\n http://hl7.org/fhir/patient.html\n \nDemographics and other administrative information about an individual or animal receiving care or other health-related services. \nCapabilities
\n\n
\n\n \n- \n\n Required\n \n\n Validated\n \n\n Description\n \n\n Link\n \n\n Capabilities\n \n\n \n* \ntrue \nfalse \nPatient Update, Delete and History (Instance) Operations \n\n http://hl7.org/fhir/http.html#update\n \n\n CapabilityStatement/example\n \n
\n\n\n fixture\n
\n\n autocreate: false
\n\n autodelete: false
\n\n resource: Peter Chalmers
\n
\n\n \n\n fixture\n
\n\n autocreate: false
\n\n autodelete: false
\n\n resource: Donald Duck
\n
- | \n\n Name\n | \n\n Path\n | \n\n SourceId\n | \n
* | \ncreateResourceId | \nPatient/id | \nfixture-patient-create | \n
\n\n\n setup\n
\n\n\n\n action\n
\nOperations
\n\n
\n\n \n- \n\n Type\n \n\n Resource\n \n\n Label\n \n\n Description\n \n\n Accept\n \n\n EncodeRequestUrl\n \n\n Params\n \n\n \n* \nDelete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null') \nPatient \nSetupDeletePatient \nExecute a delete operation to insure the patient does not exist on the server. \njson \ntrue \n/${createResourceId} \n\n\n\n action\n
\nAsserts
\n\n
\n\n \n- \n\n Description\n \n\n Direction\n \n\n Operator\n \n\n ResponseCode\n \n\n WarningOnly\n \n\n \n* \nConfirm that the returned HTTP status is 200(OK) or 204(No Content). \nresponse \nin \n200,204 \nfalse \n\n\n\n action\n
\nOperations
\n\n
\n\n \n- \n\n Type\n \n\n Resource\n \n\n Label\n \n\n Description\n \n\n Accept\n \n\n ContentType\n \n\n EncodeRequestUrl\n \n\n Params\n \n\n SourceId\n \n\n \n* \nUpdate (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code update = 'Update', stated as 'null') \nPatient \nSetupCreatePatient \nCreate patient resource on test server using the contents of fixture-patient-create \njson \njson \ntrue \n/${createResourceId} \nfixture-patient-create \n\n\n\n action\n
\nAsserts
\n\n
\n\n \n- \n\n Description\n \n\n Direction\n \n\n ResponseCode\n \n\n WarningOnly\n \n\n \n* \nConfirm that the returned HTTP status is 201(Created). \nresponse \n201 \nfalse \n\n\n\n action\n
\nOperations
\n\n
\n\n \n- \n\n Type\n \n\n Resource\n \n\n Label\n \n\n Description\n \n\n Accept\n \n\n ContentType\n \n\n EncodeRequestUrl\n \n\n Params\n \n\n SourceId\n \n\n \n* \nUpdate (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code update = 'Update', stated as 'null') \nPatient \nSetupUpdatePatient \nUpdate patient resource on test server using the contents of fixture-patient-update \njson \njson \ntrue \n/${createResourceId} \nfixture-patient-update \n\n\n\n action\n
\nAsserts
\n\n
\n\n \n- \n\n Description\n \n\n Direction\n \n\n ResponseCode\n \n\n WarningOnly\n \n\n \n* \nConfirm that the returned HTTP status is 200(OK). \nresponse \n200 \nfalse \n
\n\n\n test\n
\n\n name: History Patient
\n\n description: Get the history for a known Patient and validate response.
\n\n\n\n action\n
\nOperations
\n\n
\n\n \n- \n\n \n* \n\n\n\n action\n
\nAsserts
\n\n
\n\n \n- \n\n \n* \n\n\n\n action\n
\nAsserts
\n\n
\n\n \n- \n\n \n* \n\n\n\n action\n
\nAsserts
\n\n
\n\n \n- \n\n \n* \n\n\n\n action\n
\nAsserts
\n\n
\n\n \n- \n\n \n* \n