{"resourceType":"TestScript","id":"testscript-example-multisystem","text":{"status":"generated","div":"\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: TestScript\u003c/b\u003e\u003ca name\u003d\"testscript-example-multisystem\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource TestScript \u0026quot;testscript-example-multisystem\u0026quot; \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ccode\u003ehttp://hl7.org/fhir/TestScript/testscript-example-multisystem\u003c/code\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:oid:2.16.840.1.113883.4.642.12.6\u003c/p\u003e\u003cp\u003e\u003cb\u003eversion\u003c/b\u003e: 1.0\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Testscriptexamplemultisystem\u003c/p\u003e\u003cp\u003e\u003cb\u003etitle\u003c/b\u003e: Multisystem Test Script\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: draft\u003c/p\u003e\u003cp\u003e\u003cb\u003eexperimental\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 2017-01-18\u003c/p\u003e\u003cp\u003e\u003cb\u003epublisher\u003c/b\u003e: HL7\u003c/p\u003e\u003cp\u003e\u003cb\u003econtact\u003c/b\u003e: Support: \u003ca href\u003d\"mailto:support@HL7.org\"\u003esupport@HL7.org\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: TestScript example resource showing use of origin and destination for multisystem support. The single origin will execute a Patient read against the two destination systems using user defined dynamic variables. The test engine will wait at each operation action with a defined origin and destination for the origin test system to send the expected FHIR operation to the destination test system. Once the expected request and response is observed, the test engine will continue with the test execution.\u003c/p\u003e\u003cp\u003e\u003cb\u003ejurisdiction\u003c/b\u003e: United States of America (the) \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-ISO3166Part1.html\"\u003eISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code\u003c/a\u003e#US)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003epurpose\u003c/b\u003e: Patient Read Operation\u003c/p\u003e\u003cp\u003e\u003cb\u003ecopyright\u003c/b\u003e: © HL7.org 2011+\u003c/p\u003e\u003ch3\u003eOrigins\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eIndex\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eProfile\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e1\u003c/td\u003e\u003ctd\u003eFHIR-Client (Details: [not stated] code FHIR-Client \u003d \u0027FHIR-Client\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003edestination\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eindex\u003c/b\u003e: 1\u003c/p\u003e\u003cp\u003e\u003cb\u003eprofile\u003c/b\u003e: FHIR-Server (Details: [not stated] code FHIR-Server \u003d \u0027FHIR-Server\u0027, stated as \u0027null\u0027)\u003c/p\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ca href\u003d\"http://acme.com/fhir/test\"\u003ehttp://acme.com/fhir/test\u003c/a\u003e\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003edestination\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eindex\u003c/b\u003e: 2\u003c/p\u003e\u003cp\u003e\u003cb\u003eprofile\u003c/b\u003e: FHIR-Server (Details: [not stated] code FHIR-Server \u003d \u0027FHIR-Server\u0027, stated as \u0027null\u0027)\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003emetadata\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eLinks\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/patient.html\"\u003ehttp://hl7.org/fhir/patient.html\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eDemographics and other administrative information about an individual or animal receiving care or other health-related services.\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003ecapability\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003erequired\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003evalidated\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Patient Read Operation\u003c/p\u003e\u003cp\u003e\u003cb\u003eorigin\u003c/b\u003e: 1\u003c/p\u003e\u003cp\u003e\u003cb\u003edestination\u003c/b\u003e: 1\u003c/p\u003e\u003cp\u003e\u003cb\u003elink\u003c/b\u003e: \u003ca href\u003d\"http://hl7.org/fhir/http.html#read\"\u003ehttp://hl7.org/fhir/http.html#read\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ecapabilities\u003c/b\u003e: \u003ca href\u003d\"http://hl7.org/fhir/CapabilityStatement/example\"\u003ehttp://hl7.org/fhir/CapabilityStatement/example\u003c/a\u003e\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003ecapability\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003erequired\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003evalidated\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Patient Read Operation\u003c/p\u003e\u003cp\u003e\u003cb\u003eorigin\u003c/b\u003e: 1\u003c/p\u003e\u003cp\u003e\u003cb\u003edestination\u003c/b\u003e: 2\u003c/p\u003e\u003cp\u003e\u003cb\u003elink\u003c/b\u003e: \u003ca href\u003d\"http://hl7.org/fhir/http.html#read\"\u003ehttp://hl7.org/fhir/http.html#read\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ecapabilities\u003c/b\u003e: \u003ca href\u003d\"http://hl7.org/fhir/CapabilityStatement/example\"\u003ehttp://hl7.org/fhir/CapabilityStatement/example\u003c/a\u003e\u003c/p\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Dest1PatientResourceId\u003c/p\u003e\u003cp\u003e\u003cb\u003edefaultValue\u003c/b\u003e: example\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Dest2PatientResourceId\u003c/p\u003e\u003cp\u003e\u003cb\u003edefaultValue\u003c/b\u003e: example\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: ReadPatient-Destination1\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read a Patient from the first destination test system using the user defined dynamic variable ${Dest1PatientResourceId}. Perform basic validation.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDestination\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOrigin\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequestId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eRead a Patient from the first destination test system and perform basic validation.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003e1\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e1\u003c/td\u003e\u003ctd\u003e/${Dest1PatientResourceId}\u003c/td\u003e\u003ctd\u003erequest-read-patient-01\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequestMethod\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the request method GET was sent by the client system under test.\u003c/td\u003e\u003ctd\u003eget\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eHeaderField\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the client requested an Accept of xml.\u003c/td\u003e\u003ctd\u003erequest\u003c/td\u003e\u003ctd\u003eAccept\u003c/td\u003e\u003ctd\u003econtains\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned format is XML.\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Patient.\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: ReadPatient-Destination2\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read a Patient from the second destination test system using the user defined dynamic variable ${Dest2PatientResourceId}. Perform basic validation.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eoperation\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003etype\u003c/b\u003e: read (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read a Patient from the second destination test system and perform basic validation.\u003c/p\u003e\u003cp\u003e\u003cb\u003eaccept\u003c/b\u003e: xml\u003c/p\u003e\u003cp\u003e\u003cb\u003econtentType\u003c/b\u003e: xml\u003c/p\u003e\u003cp\u003e\u003cb\u003edestination\u003c/b\u003e: 2\u003c/p\u003e\u003cp\u003e\u003cb\u003eencodeRequestUrl\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003eorigin\u003c/b\u003e: 1\u003c/p\u003e\u003cp\u003e\u003cb\u003eparams\u003c/b\u003e: /${Dest2PatientResourceId}\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003erequestHeader\u003c/b\u003e\u003c/p\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eHeaderField\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the client requested an Accept of xml.\u003c/td\u003e\u003ctd\u003erequest\u003c/td\u003e\u003ctd\u003eAccept\u003c/td\u003e\u003ctd\u003econtains\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned format is XML.\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Patient.\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003c/div\u003e"},"url":"http://hl7.org/fhir/TestScript/testscript-example-multisystem","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.12.6"}],"version":"1.0","name":"Testscriptexamplemultisystem","title":"Multisystem Test Script","status":"draft","experimental":true,"date":"2017-01-18","publisher":"HL7","contact":[{"name":"Support","telecom":[{"system":"email","value":"support@HL7.org","use":"work"}]}],"description":"TestScript example resource showing use of origin and destination for multisystem support. The single origin will execute a Patient read against the two destination systems using user defined dynamic variables. The test engine will wait at each operation action with a defined origin and destination for the origin test system to send the expected FHIR operation to the destination test system. Once the expected request and response is observed, the test engine will continue with the test execution.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US","display":"United States of America (the)"}]}],"purpose":"Patient Read Operation","copyright":"© HL7.org 2011+","origin":[{"index":1,"profile":{"code":"FHIR-Client"}}],"destination":[{"index":1,"profile":{"code":"FHIR-Server"},"url":"http://acme.com/fhir/test"},{"index":2,"profile":{"code":"FHIR-Server"}}],"metadata":{"link":[{"url":"http://hl7.org/fhir/patient.html","description":"Demographics and other administrative information about an individual or animal receiving care or other health-related services."}],"capability":[{"required":true,"validated":false,"description":"Patient Read Operation","origin":[1],"destination":1,"link":["http://hl7.org/fhir/http.html#read"],"capabilities":"http://hl7.org/fhir/CapabilityStatement/example"},{"required":true,"validated":false,"description":"Patient Read Operation","origin":[1],"destination":2,"link":["http://hl7.org/fhir/http.html#read"],"capabilities":"http://hl7.org/fhir/CapabilityStatement/example"}]},"variable":[{"name":"Dest1PatientResourceId","defaultValue":"example"},{"name":"Dest2PatientResourceId","defaultValue":"example"}],"test":[{"id":"01-ReadPatient-Destination1","name":"ReadPatient-Destination1","description":"Read a Patient from the first destination test system using the user defined dynamic variable ${Dest1PatientResourceId}. Perform basic validation.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Read a Patient from the first destination test system and perform basic validation.","accept":"xml","contentType":"xml","destination":1,"encodeRequestUrl":true,"origin":1,"params":"/${Dest1PatientResourceId}","requestId":"request-read-patient-01"}},{"assert":{"description":"Confirm that the request method GET was sent by the client system under test.","requestMethod":"get","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the client requested an Accept of xml.","direction":"request","headerField":"Accept","operator":"contains","stopTestOnFail":false,"value":"xml","warningOnly":false}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","direction":"response","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned format is XML.","direction":"response","contentType":"xml","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned resource type is Patient.","direction":"response","resource":"Patient","stopTestOnFail":false,"warningOnly":false}}]},{"id":"02-ReadPatient-Destination2","name":"ReadPatient-Destination2","description":"Read a Patient from the second destination test system using the user defined dynamic variable ${Dest2PatientResourceId}. Perform basic validation.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Read a Patient from the second destination test system and perform basic validation.","accept":"xml","contentType":"xml","destination":2,"encodeRequestUrl":true,"origin":1,"params":"/${Dest2PatientResourceId}","requestHeader":[{"field":"Accept-Charset","value":"utf-8"}]}},{"assert":{"description":"Confirm that the client requested an Accept of xml.","direction":"request","headerField":"Accept","operator":"contains","stopTestOnFail":false,"value":"xml","warningOnly":false}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","direction":"response","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned format is XML.","direction":"response","contentType":"xml","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned resource type is Patient.","direction":"response","resource":"Patient","stopTestOnFail":false,"warningOnly":false}}]}]}
{"resourceType":"TestScript","id":"testscript-example-history","text":{"status":"generated","div":"\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: TestScript\u003c/b\u003e\u003ca name\u003d\"testscript-example-history\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource TestScript \u0026quot;testscript-example-history\u0026quot; \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ccode\u003ehttp://hl7.org/fhir/TestScript/testscript-example-history\u003c/code\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:oid:2.16.840.1.113883.4.642.12.1\u003c/p\u003e\u003cp\u003e\u003cb\u003eversion\u003c/b\u003e: 1.0\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: TestScriptExampleHistory\u003c/p\u003e\u003cp\u003e\u003cb\u003etitle\u003c/b\u003e: TestScript Example History\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: draft\u003c/p\u003e\u003cp\u003e\u003cb\u003eexperimental\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 2017-01-18\u003c/p\u003e\u003cp\u003e\u003cb\u003epublisher\u003c/b\u003e: HL7\u003c/p\u003e\u003cp\u003e\u003cb\u003econtact\u003c/b\u003e: Support: \u003ca href\u003d\"mailto:support@HL7.org\"\u003esupport@HL7.org\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: 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.\u003c/p\u003e\u003cp\u003e\u003cb\u003ejurisdiction\u003c/b\u003e: United States of America (the) \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-ISO3166Part1.html\"\u003eISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code\u003c/a\u003e#US)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003epurpose\u003c/b\u003e: Patient (Conditional) Create, Update, Delete and History (Instance) Operations\u003c/p\u003e\u003cp\u003e\u003cb\u003ecopyright\u003c/b\u003e: © HL7.org 2011+\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003emetadata\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eLinks\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/patient.html\"\u003ehttp://hl7.org/fhir/patient.html\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eDemographics and other administrative information about an individual or animal receiving care or other health-related services.\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eCapabilities\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequired\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidated\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLink\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCapabilities\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ePatient Update, Delete and History (Instance) Operations\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/http.html#update\"\u003ehttp://hl7.org/fhir/http.html#update\u003c/a\u003e, \u003ca href\u003d\"http://hl7.org/fhir/http.html#delete\"\u003ehttp://hl7.org/fhir/http.html#delete\u003c/a\u003e, \u003ca href\u003d\"http://hl7.org/fhir/http.html#history\"\u003ehttp://hl7.org/fhir/http.html#history\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/CapabilityStatement/example\"\u003ehttp://hl7.org/fhir/CapabilityStatement/example\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003efixture\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eautocreate\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eautodelete\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"patient-example.html\"\u003ePatient/example: Peter Chalmers\u003c/a\u003e \u0026quot;Peter CHALMERS\u0026quot;\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003efixture\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eautocreate\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eautodelete\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"patient-example-a.html\"\u003ePatient/pat1: Donald Duck\u003c/a\u003e \u0026quot;Donald DUCK\u0026quot;\u003c/p\u003e\u003c/blockquote\u003e\u003cp\u003e\u003cb\u003eprofile\u003c/b\u003e: \u003ca href\u003d\"bundle.html\"\u003eBundle\u003c/a\u003e\u003c/p\u003e\u003ch3\u003eVariables\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eName\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003ecreateResourceId\u003c/td\u003e\u003ctd\u003ePatient/id\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003esetup\u003c/b\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003edelete (Details: http://hl7.org/fhir/restful-interaction code delete \u003d \u0027delete\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupDeletePatient\u003c/td\u003e\u003ctd\u003eExecute a delete operation to insure the patient does not exist on the server.\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK) or 204(No Content).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003ein\u003c/td\u003e\u003ctd\u003e200,204\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eupdate (Details: http://hl7.org/fhir/restful-interaction code update \u003d \u0027update\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupCreatePatient\u003c/td\u003e\u003ctd\u003eCreate patient resource on test server using the contents of fixture-patient-create\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 201(Created).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003e201\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eupdate (Details: http://hl7.org/fhir/restful-interaction code update \u003d \u0027update\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupUpdatePatient\u003c/td\u003e\u003ctd\u003eUpdate patient resource on test server using the contents of fixture-patient-update\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003ctd\u003efixture-patient-update\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003e200\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: History Patient\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Get the history for a known Patient and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eTargetId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003ehistory (Details: http://hl7.org/fhir/restful-interaction code history \u003d \u0027history\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eGet the Patient history on the test server using the id from fixture-patient-create.\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Bundle.\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"bundle.html\"\u003eBundle\u003c/a\u003e\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidateProfileId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Bundle conforms to the base FHIR specification.\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ebundle-profile\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Bundle type equals \u0027history\u0027.\u003c/td\u003e\u003ctd\u003eequals\u003c/td\u003e\u003ctd\u003efhir:Bundle/fhir:type/@value\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ehistory\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003c/div\u003e"},"url":"http://hl7.org/fhir/TestScript/testscript-example-history","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.12.1"}],"version":"1.0","name":"TestScriptExampleHistory","title":"TestScript Example History","status":"draft","experimental":true,"date":"2017-01-18","publisher":"HL7","contact":[{"name":"Support","telecom":[{"system":"email","value":"support@HL7.org","use":"work"}]}],"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.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US","display":"United States of America (the)"}]}],"purpose":"Patient (Conditional) Create, Update, Delete and History (Instance) Operations","copyright":"© HL7.org 2011+","metadata":{"link":[{"url":"http://hl7.org/fhir/patient.html","description":"Demographics and other administrative information about an individual or animal receiving care or other health-related services."}],"capability":[{"required":true,"validated":false,"description":"Patient Update, Delete and History (Instance) Operations","link":["http://hl7.org/fhir/http.html#update","http://hl7.org/fhir/http.html#delete","http://hl7.org/fhir/http.html#history"],"capabilities":"http://hl7.org/fhir/CapabilityStatement/example"}]},"fixture":[{"id":"fixture-patient-create","autocreate":false,"autodelete":false,"resource":{"reference":"Patient/example","display":"Peter Chalmers"}},{"id":"fixture-patient-update","autocreate":false,"autodelete":false,"resource":{"reference":"Patient/pat1","display":"Donald Duck"}}],"profile":["http://hl7.org/fhir/StructureDefinition/Bundle"],"_profile":[{"id":"bundle-profile"}],"variable":[{"name":"createResourceId","path":"Patient/id","sourceId":"fixture-patient-create"}],"setup":{"action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"delete"},"resource":"Patient","label":"SetupDeletePatient","description":"Execute a delete operation to insure the patient does not exist on the server.","accept":"json","encodeRequestUrl":true,"params":"/${createResourceId}"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK) or 204(No Content).","direction":"response","operator":"in","responseCode":"200,204","stopTestOnFail":false,"warningOnly":false}},{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"update"},"resource":"Patient","label":"SetupCreatePatient","description":"Create patient resource on test server using the contents of fixture-patient-create","accept":"json","contentType":"json","encodeRequestUrl":true,"params":"/${createResourceId}","sourceId":"fixture-patient-create"}},{"assert":{"description":"Confirm that the returned HTTP status is 201(Created).","direction":"response","responseCode":"201","stopTestOnFail":false,"warningOnly":false}},{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"update"},"resource":"Patient","label":"SetupUpdatePatient","description":"Update patient resource on test server using the contents of fixture-patient-update","accept":"json","contentType":"json","encodeRequestUrl":true,"params":"/${createResourceId}","sourceId":"fixture-patient-update"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","direction":"response","responseCode":"200","stopTestOnFail":false,"warningOnly":false}}]},"test":[{"id":"01-HistoryPatient","name":"History Patient","description":"Get the history for a known Patient and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"history"},"resource":"Patient","description":"Get the Patient history on the test server using the id from fixture-patient-create.","accept":"json","contentType":"json","encodeRequestUrl":true,"targetId":"fixture-patient-create"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","direction":"response","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned resource type is Bundle.","resource":"Bundle","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned Bundle conforms to the base FHIR specification.","stopTestOnFail":false,"validateProfileId":"bundle-profile","warningOnly":false}},{"assert":{"description":"Confirm that the returned Bundle type equals \u0027history\u0027.","operator":"equals","path":"fhir:Bundle/fhir:type/@value","stopTestOnFail":false,"value":"history","warningOnly":false}}]}]}
{"resourceType":"TestScript","id":"testscript-example-update","text":{"status":"generated","div":"\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: TestScript\u003c/b\u003e\u003ca name\u003d\"testscript-example-update\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource TestScript \u0026quot;testscript-example-update\u0026quot; \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ccode\u003ehttp://hl7.org/fhir/TestScript/testscript-example-update\u003c/code\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:oid:2.16.840.1.113883.4.642.12.5\u003c/p\u003e\u003cp\u003e\u003cb\u003eversion\u003c/b\u003e: 1.0\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: TestScriptExampleUpdate\u003c/p\u003e\u003cp\u003e\u003cb\u003etitle\u003c/b\u003e: TestScript Example Update\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: draft\u003c/p\u003e\u003cp\u003e\u003cb\u003eexperimental\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 2017-01-18\u003c/p\u003e\u003cp\u003e\u003cb\u003epublisher\u003c/b\u003e: HL7\u003c/p\u003e\u003cp\u003e\u003cb\u003econtact\u003c/b\u003e: Support: \u003ca href\u003d\"mailto:support@HL7.org\"\u003esupport@HL7.org\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: TestScript example resource with setup to delete if present and create a new instance of a Patient; and single test definition to update that Patient with various asserts.\u003c/p\u003e\u003cp\u003e\u003cb\u003ejurisdiction\u003c/b\u003e: United States of America (the) \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-ISO3166Part1.html\"\u003eISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code\u003c/a\u003e#US)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003epurpose\u003c/b\u003e: Patient (Conditional) Create, Update, Delete Operations\u003c/p\u003e\u003cp\u003e\u003cb\u003ecopyright\u003c/b\u003e: © HL7.org 2011+\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003emetadata\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eLinks\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/patient.html\"\u003ehttp://hl7.org/fhir/patient.html\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eDemographics and other administrative information about an individual or animal receiving care or other health-related services.\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eCapabilities\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequired\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidated\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLink\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCapabilities\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ePatient Update and Delete Operations\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/http.html#update\"\u003ehttp://hl7.org/fhir/http.html#update\u003c/a\u003e, \u003ca href\u003d\"http://hl7.org/fhir/http.html#delete\"\u003ehttp://hl7.org/fhir/http.html#delete\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/CapabilityStatement/example\"\u003ehttp://hl7.org/fhir/CapabilityStatement/example\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003efixture\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eautocreate\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eautodelete\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"patient-example.html\"\u003ePatient/example: Peter Chalmers\u003c/a\u003e \u0026quot;Peter CHALMERS\u0026quot;\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003efixture\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eautocreate\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eautodelete\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"patient-example-a.html\"\u003ePatient/pat1: Donald Duck\u003c/a\u003e \u0026quot;Donald DUCK\u0026quot;\u003c/p\u003e\u003c/blockquote\u003e\u003cp\u003e\u003cb\u003eprofile\u003c/b\u003e: \u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/p\u003e\u003ch3\u003eVariables\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eName\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003ecreateResourceId\u003c/td\u003e\u003ctd\u003ePatient/id\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003esetup\u003c/b\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003edelete (Details: http://hl7.org/fhir/restful-interaction code delete \u003d \u0027delete\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupDeletePatient\u003c/td\u003e\u003ctd\u003eExecute a delete operation to insure the patient does not exist on the server.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK) or 204(No Content).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003ein\u003c/td\u003e\u003ctd\u003e200,204\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eupdate (Details: http://hl7.org/fhir/restful-interaction code update \u003d \u0027update\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupCreatePatient\u003c/td\u003e\u003ctd\u003eCreate patient resource on test server using the contents of fixture-patient-create\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 201(Created).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003e201\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Update Patient\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Update a Patient and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eupdate (Details: http://hl7.org/fhir/restful-interaction code update \u003d \u0027update\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupUpdatePatient\u003c/td\u003e\u003ctd\u003eUpdate patient resource on test server using the contents of fixture-patient-update\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003ctd\u003efixture-patient-update\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned format is XML.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eHeaderField\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP Header Last-Modified is present. Warning only as the server might not support versioning.\u003c/td\u003e\u003ctd\u003eLast-Modified\u003c/td\u003e\u003ctd\u003enotEmpty\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003c/div\u003e"},"url":"http://hl7.org/fhir/TestScript/testscript-example-update","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.12.5"}],"version":"1.0","name":"TestScriptExampleUpdate","title":"TestScript Example Update","status":"draft","experimental":true,"date":"2017-01-18","publisher":"HL7","contact":[{"name":"Support","telecom":[{"system":"email","value":"support@HL7.org","use":"work"}]}],"description":"TestScript example resource with setup to delete if present and create a new instance of a Patient; and single test definition to update that Patient with various asserts.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US","display":"United States of America (the)"}]}],"purpose":"Patient (Conditional) Create, Update, Delete Operations","copyright":"© HL7.org 2011+","metadata":{"link":[{"url":"http://hl7.org/fhir/patient.html","description":"Demographics and other administrative information about an individual or animal receiving care or other health-related services."}],"capability":[{"required":true,"validated":false,"description":"Patient Update and Delete Operations","link":["http://hl7.org/fhir/http.html#update","http://hl7.org/fhir/http.html#delete"],"capabilities":"http://hl7.org/fhir/CapabilityStatement/example"}]},"fixture":[{"id":"fixture-patient-create","autocreate":false,"autodelete":false,"resource":{"reference":"Patient/example","display":"Peter Chalmers"}},{"id":"fixture-patient-update","autocreate":false,"autodelete":false,"resource":{"reference":"Patient/pat1","display":"Donald Duck"}}],"profile":["http://hl7.org/fhir/StructureDefinition/Patient"],"_profile":[{"id":"patient-profile"}],"variable":[{"name":"createResourceId","path":"Patient/id","sourceId":"fixture-patient-create"}],"setup":{"action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"delete"},"resource":"Patient","label":"SetupDeletePatient","description":"Execute a delete operation to insure the patient does not exist on the server.","accept":"xml","encodeRequestUrl":true,"params":"/${createResourceId}"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK) or 204(No Content).","direction":"response","operator":"in","responseCode":"200,204","stopTestOnFail":false,"warningOnly":false}},{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"update"},"resource":"Patient","label":"SetupCreatePatient","description":"Create patient resource on test server using the contents of fixture-patient-create","accept":"xml","contentType":"xml","encodeRequestUrl":true,"params":"/${createResourceId}","sourceId":"fixture-patient-create"}},{"assert":{"description":"Confirm that the returned HTTP status is 201(Created).","direction":"response","responseCode":"201","stopTestOnFail":false,"warningOnly":false}}]},"test":[{"id":"01-UpdatePatient","name":"Update Patient","description":"Update a Patient and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"update"},"resource":"Patient","label":"SetupUpdatePatient","description":"Update patient resource on test server using the contents of fixture-patient-update","accept":"xml","contentType":"xml","encodeRequestUrl":true,"params":"/${createResourceId}","sourceId":"fixture-patient-update"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned format is XML.","contentType":"xml","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned HTTP Header Last-Modified is present. Warning only as the server might not support versioning.","headerField":"Last-Modified","operator":"notEmpty","stopTestOnFail":false,"warningOnly":true}}]}]}
{"resourceType":"TestScript","id":"testscript-example-search","text":{"status":"generated","div":"\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: TestScript\u003c/b\u003e\u003ca name\u003d\"testscript-example-search\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource TestScript \u0026quot;testscript-example-search\u0026quot; \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ccode\u003ehttp://hl7.org/fhir/TestScript/testscript-example-search\u003c/code\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:oid:2.16.840.1.113883.4.642.12.3\u003c/p\u003e\u003cp\u003e\u003cb\u003eversion\u003c/b\u003e: 1.0\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: TestScriptExampleSearch\u003c/p\u003e\u003cp\u003e\u003cb\u003etitle\u003c/b\u003e: TestScript Example Search\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: draft\u003c/p\u003e\u003cp\u003e\u003cb\u003eexperimental\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 2017-01-18\u003c/p\u003e\u003cp\u003e\u003cb\u003epublisher\u003c/b\u003e: HL7\u003c/p\u003e\u003cp\u003e\u003cb\u003econtact\u003c/b\u003e: Support: \u003ca href\u003d\"mailto:support@HL7.org\"\u003esupport@HL7.org\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: TestScript example resource with simple Patient search test. The read tests will utilize user defined dynamic variables that will hold the Patient search parameter values.\u003c/p\u003e\u003cp\u003e\u003cb\u003ejurisdiction\u003c/b\u003e: United States of America (the) \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-ISO3166Part1.html\"\u003eISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code\u003c/a\u003e#US)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003epurpose\u003c/b\u003e: Patient Search Operation\u003c/p\u003e\u003cp\u003e\u003cb\u003ecopyright\u003c/b\u003e: © HL7.org 2011+\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003emetadata\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eLinks\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/patient.html\"\u003ehttp://hl7.org/fhir/patient.html\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eDemographics and other administrative information about an individual or animal receiving care or other health-related services.\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eCapabilities\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequired\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidated\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLink\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCapabilities\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ePatient Search Operation\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/http.html#search\"\u003ehttp://hl7.org/fhir/http.html#search\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/CapabilityStatement/example\"\u003ehttp://hl7.org/fhir/CapabilityStatement/example\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003ch3\u003eFixtures\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAutocreate\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAutodelete\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient-example.html\"\u003ePatient/example: Peter Chalmers\u003c/a\u003e \u0026quot;Peter CHALMERS\u0026quot;\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cp\u003e\u003cb\u003eprofile\u003c/b\u003e: \u003ca href\u003d\"bundle.html\"\u003eBundle\u003c/a\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: PatientCreateLocation\u003c/p\u003e\u003cp\u003e\u003cb\u003eheaderField\u003c/b\u003e: Location\u003c/p\u003e\u003cp\u003e\u003cb\u003esourceId\u003c/b\u003e: PatientCreateResponse\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: PatientSearchFamilyName\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Enter patient search criteria for a known family name on the target system\u003c/p\u003e\u003cp\u003e\u003cb\u003ehint\u003c/b\u003e: [Family name]\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: PatientSearchGivenName\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Enter patient search criteria for a known given name on the target system\u003c/p\u003e\u003cp\u003e\u003cb\u003ehint\u003c/b\u003e: [Given name]\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: PatientSearchBundleTotal\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Evaluate the returned Patient searchset Bundle.total value\u003c/p\u003e\u003cp\u003e\u003cb\u003eexpression\u003c/b\u003e: Bundle.total.toInteger()\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003esetup\u003c/b\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003esearch (Details: http://hl7.org/fhir/restful-interaction code search \u003d \u0027search\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eTest simple search to verify server support.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e?family\u003dDONTEXPECTAMATCH\u0026amp;given\u003dDONTEXPECTAMATCH\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequestURL\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the request url contains the family search parameter.\u003c/td\u003e\u003ctd\u003erequest\u003c/td\u003e\u003ctd\u003econtains\u003c/td\u003e\u003ctd\u003efamily\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003e200\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Bundle.\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"bundle.html\"\u003eBundle\u003c/a\u003e\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eNavigationLinks\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Bundle correctly defines the navigation links.\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Patient Create Search\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Create a Patient resource and capture the returned HTTP Header Location. Then search for (read) that Patient using the Location URL value and validate the response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003ecreate (Details: http://hl7.org/fhir/restful-interaction code create \u003d \u0027create\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eCreate a Patient resource and capture the returned HTTP Header Location.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003ePatientCreateResponse\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 201(Created).\u003c/td\u003e\u003ctd\u003ecreated\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eHeaderField\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP Header Location is present.\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003eLocation\u003c/td\u003e\u003ctd\u003enotEmpty\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003eRead the created Patient using the captured Location URL value.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e${PatientCreateLocation}\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Patient.\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Patient Search Dynamic\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Search for Patient resources using the user defined dynamic variables ${PatientSearchFamilyName} and ${PatientSearchGivenName} and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003esearch (Details: http://hl7.org/fhir/restful-interaction code search \u003d \u0027search\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSearch for Patient resources on the destination test system.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e?family\u003d${PatientSearchFamilyName}\u0026amp;given\u003d${PatientSearchGivenName}\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned format is XML.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Bundle.\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"bundle.html\"\u003eBundle\u003c/a\u003e\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidateProfileId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Bundle conforms to the base FHIR specification.\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ebundle-profile\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Bundle type equals \u0027searchset\u0027.\u003c/td\u003e\u003ctd\u003eequals\u003c/td\u003e\u003ctd\u003efhir:Bundle/fhir:type/@value\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003esearchset\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eExpression\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Bundle total is greater than or equal to the number of returned entries.\u003c/td\u003e\u003ctd\u003eBundle.total.toInteger() \u0026gt;\u003d entry.count()\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003c/div\u003e"},"url":"http://hl7.org/fhir/TestScript/testscript-example-search","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.12.3"}],"version":"1.0","name":"TestScriptExampleSearch","title":"TestScript Example Search","status":"draft","experimental":true,"date":"2017-01-18","publisher":"HL7","contact":[{"name":"Support","telecom":[{"system":"email","value":"support@HL7.org","use":"work"}]}],"description":"TestScript example resource with simple Patient search test. The read tests will utilize user defined dynamic variables that will hold the Patient search parameter values.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US","display":"United States of America (the)"}]}],"purpose":"Patient Search Operation","copyright":"© HL7.org 2011+","metadata":{"link":[{"url":"http://hl7.org/fhir/patient.html","description":"Demographics and other administrative information about an individual or animal receiving care or other health-related services."}],"capability":[{"required":true,"validated":false,"description":"Patient Search Operation","link":["http://hl7.org/fhir/http.html#search"],"capabilities":"http://hl7.org/fhir/CapabilityStatement/example"}]},"fixture":[{"id":"fixture-patient-create","autocreate":false,"autodelete":false,"resource":{"reference":"Patient/example","display":"Peter Chalmers"}}],"profile":["http://hl7.org/fhir/StructureDefinition/Bundle"],"_profile":[{"id":"bundle-profile"}],"variable":[{"name":"PatientCreateLocation","headerField":"Location","sourceId":"PatientCreateResponse"},{"name":"PatientSearchFamilyName","description":"Enter patient search criteria for a known family name on the target system","hint":"[Family name]"},{"name":"PatientSearchGivenName","description":"Enter patient search criteria for a known given name on the target system","hint":"[Given name]"},{"name":"PatientSearchBundleTotal","description":"Evaluate the returned Patient searchset Bundle.total value","expression":"Bundle.total.toInteger()"}],"setup":{"action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"search"},"resource":"Patient","description":"Test simple search to verify server support.","accept":"xml","encodeRequestUrl":true,"params":"?family\u003dDONTEXPECTAMATCH\u0026given\u003dDONTEXPECTAMATCH"}},{"assert":{"description":"Confirm that the request url contains the family search parameter.","direction":"request","operator":"contains","requestURL":"family","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","direction":"response","responseCode":"200","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned resource type is Bundle.","resource":"Bundle","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned Bundle correctly defines the navigation links.","navigationLinks":true,"stopTestOnFail":false,"warningOnly":false}}]},"test":[{"id":"01-PatientCreateSearch","name":"Patient Create Search","description":"Create a Patient resource and capture the returned HTTP Header Location. Then search for (read) that Patient using the Location URL value and validate the response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"create"},"resource":"Patient","description":"Create a Patient resource and capture the returned HTTP Header Location.","accept":"xml","contentType":"xml","encodeRequestUrl":true,"responseId":"PatientCreateResponse","sourceId":"fixture-patient-create"}},{"assert":{"description":"Confirm that the returned HTTP status is 201(Created).","response":"created","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned HTTP Header Location is present.","direction":"response","headerField":"Location","operator":"notEmpty","stopTestOnFail":false,"warningOnly":false}},{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"description":"Read the created Patient using the captured Location URL value.","accept":"xml","encodeRequestUrl":true,"url":"${PatientCreateLocation}"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned resource type is Patient.","resource":"Patient","stopTestOnFail":false,"warningOnly":false}}]},{"id":"02-PatientSearchDynamic","name":"Patient Search Dynamic","description":"Search for Patient resources using the user defined dynamic variables ${PatientSearchFamilyName} and ${PatientSearchGivenName} and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"search"},"resource":"Patient","description":"Search for Patient resources on the destination test system.","accept":"xml","encodeRequestUrl":true,"params":"?family\u003d${PatientSearchFamilyName}\u0026given\u003d${PatientSearchGivenName}"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned format is XML.","contentType":"xml","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned resource type is Bundle.","resource":"Bundle","stopTestOnFail":true,"warningOnly":false}},{"assert":{"description":"Confirm that the returned Bundle conforms to the base FHIR specification.","stopTestOnFail":false,"validateProfileId":"bundle-profile","warningOnly":false}},{"assert":{"description":"Confirm that the returned Bundle type equals \u0027searchset\u0027.","operator":"equals","path":"fhir:Bundle/fhir:type/@value","stopTestOnFail":false,"value":"searchset","warningOnly":false}},{"assert":{"description":"Confirm that the returned Bundle total is greater than or equal to the number of returned entries.","expression":"Bundle.total.toInteger() \u003e\u003d entry.count()","stopTestOnFail":false,"warningOnly":false}}]}]}
{"resourceType":"TestScript","id":"testscript-example","text":{"status":"generated","div":"\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: TestScript\u003c/b\u003e\u003ca name\u003d\"testscript-example\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource TestScript \u0026quot;testscript-example\u0026quot; \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ccode\u003ehttp://hl7.org/fhir/TestScript/testscript-example\u003c/code\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:oid:2.16.840.1.113883.4.642.12.4\u003c/p\u003e\u003cp\u003e\u003cb\u003eversion\u003c/b\u003e: 1.0\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: TestScriptExample\u003c/p\u003e\u003cp\u003e\u003cb\u003etitle\u003c/b\u003e: TestScript Example\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: draft\u003c/p\u003e\u003cp\u003e\u003cb\u003eexperimental\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 2017-01-18\u003c/p\u003e\u003cp\u003e\u003cb\u003epublisher\u003c/b\u003e: HL7\u003c/p\u003e\u003cp\u003e\u003cb\u003econtact\u003c/b\u003e: Support: \u003ca href\u003d\"mailto:support@HL7.org\"\u003esupport@HL7.org\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: TestScript example resource with setup to delete if present and create a new instance of a Patient; and single test definition to read the created Patient with various asserts.\u003c/p\u003e\u003ch3\u003eUseContexts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue[x]\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eClinical Focus (Details: http://terminology.hl7.org/CodeSystem/usage-context-type code focus \u003d \u0027Clinical Focus\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003epositive \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-variant-state.html\"\u003esequenceStatus\u003c/a\u003e#positive)\u003c/span\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eProgram (Details: http://terminology.hl7.org/CodeSystem/usage-context-type code program \u003d \u0027Program\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e2018-? year\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cp\u003e\u003cb\u003ejurisdiction\u003c/b\u003e: United States of America (the) \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-ISO3166Part1.html\"\u003eISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code\u003c/a\u003e#US)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003epurpose\u003c/b\u003e: Patient Conditional Create (Update), Read and Delete Operations\u003c/p\u003e\u003cp\u003e\u003cb\u003ecopyright\u003c/b\u003e: © HL7.org 2011+\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003emetadata\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eLinks\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/patient.html\"\u003ehttp://hl7.org/fhir/patient.html\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eDemographics and other administrative information about an individual or animal receiving care or other health-related services.\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eCapabilities\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequired\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidated\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLink\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCapabilities\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ePatient Update, Read and Delete Operations\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/http.html#delete\"\u003ehttp://hl7.org/fhir/http.html#delete\u003c/a\u003e, \u003ca href\u003d\"http://hl7.org/fhir/http.html#read\"\u003ehttp://hl7.org/fhir/http.html#read\u003c/a\u003e, \u003ca href\u003d\"http://hl7.org/fhir/http.html#update\"\u003ehttp://hl7.org/fhir/http.html#update\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/CapabilityStatement/example\"\u003ehttp://hl7.org/fhir/CapabilityStatement/example\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003efixture\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eautocreate\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eautodelete\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"patient-example.html\"\u003ePatient/example: Peter Chalmers\u003c/a\u003e \u0026quot;Peter CHALMERS\u0026quot;\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003efixture\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eautocreate\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eautodelete\u003c/b\u003e: false\u003c/p\u003e\u003cp\u003e\u003cb\u003eresource\u003c/b\u003e: \u003ca href\u003d\"patient-example.html\"\u003ePatient/example: Peter Chalmers (minimum)\u003c/a\u003e \u0026quot;Peter CHALMERS\u0026quot;\u003c/p\u003e\u003c/blockquote\u003e\u003cp\u003e\u003cb\u003eprofile\u003c/b\u003e: \u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/p\u003e\u003ch3\u003eVariables\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eName\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003ecreateResourceId\u003c/td\u003e\u003ctd\u003ePatient/id\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003esetup\u003c/b\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003edelete (Details: http://hl7.org/fhir/restful-interaction code delete \u003d \u0027delete\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupDeletePatient\u003c/td\u003e\u003ctd\u003eExecute a delete operation to insure the patient does not exist on the server.\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK) or 204(No Content).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003ein\u003c/td\u003e\u003ctd\u003e200,204\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eupdate (Details: http://hl7.org/fhir/restful-interaction code update \u003d \u0027update\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eSetupCreatePatient\u003c/td\u003e\u003ctd\u003eCreate patient resource on test server using the contents of fixture-patient-create\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003ejson\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${createResourceId}\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 201(Created).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003e201\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eTargetId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eRead the created patient resource on the test server using the id from fixture-patient-create. Verify contents.\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCompareToSourceId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCompareToSourceExpression\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit compareToSourceId reference to fixture-patient-create used to create the Patient.\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003ctd\u003ePatient.name.first().family\u003c/td\u003e\u003ctd\u003eequals\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Read Patient\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read a Patient and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponseId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eTargetId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eRead the patient resource on the test server using the id from fixture-patient-create. Prevent URL encoding of the request.\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efixture-patient-read\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLabel\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e01-ReadPatientOK\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDirection\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eHeaderField\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP Header Last-Modified is present. Warning only as the server might not support versioning.\u003c/td\u003e\u003ctd\u003eresponse\u003c/td\u003e\u003ctd\u003eLast-Modified\u003c/td\u003e\u003ctd\u003enotEmpty\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Patient.\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidateProfileId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Patient conforms to the base FHIR specification.\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003epatient-profile\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit sourceId reference to read responseId fixture.\u003c/td\u003e\u003ctd\u003eequals\u003c/td\u003e\u003ctd\u003efhir:Patient/fhir:name/fhir:family/@value\u003c/td\u003e\u003ctd\u003efixture-patient-read\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003eChalmers\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValue\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Patient contains the expected given name \u0027Peter\u0027. Uses explicit sourceId reference to read responseId fixture.\u003c/td\u003e\u003ctd\u003eequals\u003c/td\u003e\u003ctd\u003efhir:Patient/fhir:name/fhir:given/@value\u003c/td\u003e\u003ctd\u003efixture-patient-read\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ePeter\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCompareToSourceId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCompareToSourcePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit compareToSourceId reference to fixture-patient-create used to create the Patient and implicit reference to read response payload.\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003ctd\u003efhir:Patient/fhir:name/fhir:family/@value\u003c/td\u003e\u003ctd\u003eequals\u003c/td\u003e\u003ctd\u003efhir:Patient/fhir:name/fhir:family/@value\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCompareToSourceId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCompareToSourcePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePath\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eSourceId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit compareToSourceId reference to fixture-patient-create used to create the Patient and explicit reference to read response payload and default operator of \u0027equals\u0027.\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003ctd\u003efhir:Patient/fhir:name/fhir:given/@value\u003c/td\u003e\u003ctd\u003efhir:Patient/fhir:name/fhir:given/@value\u003c/td\u003e\u003ctd\u003efixture-patient-read\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eMinimumId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource contains the expected retained elements and values. Warning only to provide users with reviewable results.\u003c/td\u003e\u003ctd\u003efixture-patient-minimum\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eteardown\u003c/b\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eTargetId\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003edelete (Details: http://hl7.org/fhir/restful-interaction code delete \u003d \u0027delete\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eDelete the patient resource on the test server using the id from fixture-patient-create.\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efixture-patient-create\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003c/div\u003e"},"url":"http://hl7.org/fhir/TestScript/testscript-example","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.12.4"}],"version":"1.0","name":"TestScriptExample","title":"TestScript Example","status":"draft","experimental":true,"date":"2017-01-18","publisher":"HL7","contact":[{"name":"Support","telecom":[{"system":"email","value":"support@HL7.org","use":"work"}]}],"description":"TestScript example resource with setup to delete if present and create a new instance of a Patient; and single test definition to read the created Patient with various asserts.","useContext":[{"code":{"system":"http://terminology.hl7.org/CodeSystem/usage-context-type","code":"focus"},"valueCodeableConcept":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/variant-state","code":"positive"}]}},{"code":{"system":"http://terminology.hl7.org/CodeSystem/usage-context-type","code":"program"},"valueRange":{"low":{"value":2018,"unit":"year","system":"http://unitsofmeasure.org","code":"a"}}}],"jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US","display":"United States of America (the)"}]}],"purpose":"Patient Conditional Create (Update), Read and Delete Operations","copyright":"© HL7.org 2011+","metadata":{"link":[{"url":"http://hl7.org/fhir/patient.html","description":"Demographics and other administrative information about an individual or animal receiving care or other health-related services."}],"capability":[{"required":true,"validated":false,"description":"Patient Update, Read and Delete Operations","link":["http://hl7.org/fhir/http.html#delete","http://hl7.org/fhir/http.html#read","http://hl7.org/fhir/http.html#update"],"capabilities":"http://hl7.org/fhir/CapabilityStatement/example"}]},"fixture":[{"id":"fixture-patient-create","autocreate":false,"autodelete":false,"resource":{"reference":"Patient/example","display":"Peter Chalmers"}},{"id":"fixture-patient-minimum","autocreate":false,"autodelete":false,"resource":{"reference":"Patient/example","display":"Peter Chalmers (minimum)"}}],"profile":["http://hl7.org/fhir/StructureDefinition/Patient"],"_profile":[{"id":"patient-profile"}],"variable":[{"name":"createResourceId","path":"Patient/id","sourceId":"fixture-patient-create"}],"setup":{"action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"delete"},"resource":"Patient","label":"SetupDeletePatient","description":"Execute a delete operation to insure the patient does not exist on the server.","accept":"json","encodeRequestUrl":true,"params":"/${createResourceId}"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK) or 204(No Content).","direction":"response","operator":"in","responseCode":"200,204","stopTestOnFail":false,"warningOnly":false}},{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"update"},"resource":"Patient","label":"SetupCreatePatient","description":"Create patient resource on test server using the contents of fixture-patient-create","accept":"json","contentType":"json","encodeRequestUrl":true,"params":"/${createResourceId}","sourceId":"fixture-patient-create"}},{"assert":{"description":"Confirm that the returned HTTP status is 201(Created).","direction":"response","responseCode":"201","stopTestOnFail":false,"warningOnly":false}},{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Read the created patient resource on the test server using the id from fixture-patient-create. Verify contents.","encodeRequestUrl":true,"targetId":"fixture-patient-create"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","direction":"response","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit compareToSourceId reference to fixture-patient-create used to create the Patient.","compareToSourceId":"fixture-patient-create","compareToSourceExpression":"Patient.name.first().family","operator":"equals","stopTestOnFail":false,"warningOnly":false}}]},"test":[{"id":"01-ReadPatient","name":"Read Patient","description":"Read a Patient and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Read the patient resource on the test server using the id from fixture-patient-create. Prevent URL encoding of the request.","encodeRequestUrl":false,"responseId":"fixture-patient-read","targetId":"fixture-patient-create"}},{"assert":{"label":"01-ReadPatientOK","description":"Confirm that the returned HTTP status is 200(OK).","direction":"response","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned HTTP Header Last-Modified is present. Warning only as the server might not support versioning.","direction":"response","headerField":"Last-Modified","operator":"notEmpty","stopTestOnFail":false,"warningOnly":true}},{"assert":{"description":"Confirm that the returned resource type is Patient.","resource":"Patient","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned Patient conforms to the base FHIR specification.","stopTestOnFail":false,"validateProfileId":"patient-profile","warningOnly":false}},{"assert":{"description":"Confirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit sourceId reference to read responseId fixture.","operator":"equals","path":"fhir:Patient/fhir:name/fhir:family/@value","sourceId":"fixture-patient-read","stopTestOnFail":false,"value":"Chalmers","warningOnly":false}},{"assert":{"description":"Confirm that the returned Patient contains the expected given name \u0027Peter\u0027. Uses explicit sourceId reference to read responseId fixture.","operator":"equals","path":"fhir:Patient/fhir:name/fhir:given/@value","sourceId":"fixture-patient-read","stopTestOnFail":false,"value":"Peter","warningOnly":false}},{"assert":{"description":"Confirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit compareToSourceId reference to fixture-patient-create used to create the Patient and implicit reference to read response payload.","compareToSourceId":"fixture-patient-create","compareToSourcePath":"fhir:Patient/fhir:name/fhir:family/@value","operator":"equals","path":"fhir:Patient/fhir:name/fhir:family/@value","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned Patient contains the expected family name \u0027Chalmers\u0027. Uses explicit compareToSourceId reference to fixture-patient-create used to create the Patient and explicit reference to read response payload and default operator of \u0027equals\u0027.","compareToSourceId":"fixture-patient-create","compareToSourcePath":"fhir:Patient/fhir:name/fhir:given/@value","path":"fhir:Patient/fhir:name/fhir:given/@value","sourceId":"fixture-patient-read","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned resource contains the expected retained elements and values. Warning only to provide users with reviewable results.","minimumId":"fixture-patient-minimum","stopTestOnFail":false,"warningOnly":true}}]}],"teardown":{"action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"delete"},"resource":"Patient","description":"Delete the patient resource on the test server using the id from fixture-patient-create.","encodeRequestUrl":true,"targetId":"fixture-patient-create"}}]}}
{"resourceType":"TestScript","id":"testscript-example-readtest","text":{"status":"generated","div":"\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp\u003e\u003cb\u003eGenerated Narrative: TestScript\u003c/b\u003e\u003ca name\u003d\"testscript-example-readtest\"\u003e \u003c/a\u003e\u003c/p\u003e\u003cdiv style\u003d\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"\u003e\u003cp style\u003d\"margin-bottom: 0px\"\u003eResource TestScript \u0026quot;testscript-example-readtest\u0026quot; \u003c/p\u003e\u003c/div\u003e\u003cp\u003e\u003cb\u003eurl\u003c/b\u003e: \u003ccode\u003ehttp://hl7.org/fhir/TestScript/testscript-example-readtest\u003c/code\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eidentifier\u003c/b\u003e: id: urn:oid:2.16.840.1.113883.4.642.12.2\u003c/p\u003e\u003cp\u003e\u003cb\u003eversion\u003c/b\u003e: 1.0\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: TestScript Example Read Test\u003c/p\u003e\u003cp\u003e\u003cb\u003estatus\u003c/b\u003e: draft\u003c/p\u003e\u003cp\u003e\u003cb\u003eexperimental\u003c/b\u003e: true\u003c/p\u003e\u003cp\u003e\u003cb\u003edate\u003c/b\u003e: 2017-01-18\u003c/p\u003e\u003cp\u003e\u003cb\u003epublisher\u003c/b\u003e: HL7\u003c/p\u003e\u003cp\u003e\u003cb\u003econtact\u003c/b\u003e: Support: \u003ca href\u003d\"mailto:support@HL7.org\"\u003esupport@HL7.org\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: TestScript example resource with ported Sprinkler basic read tests R001, R002, R003, R004. The read tests will utilize user defined dynamic variables that will hold the Patient resource id values.\u003c/p\u003e\u003cp\u003e\u003cb\u003ejurisdiction\u003c/b\u003e: United States of America (the) \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"http://terminology.hl7.org/5.1.0/CodeSystem-ISO3166Part1.html\"\u003eISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code\u003c/a\u003e#US)\u003c/span\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003epurpose\u003c/b\u003e: Patient Read Operation\u003c/p\u003e\u003cp\u003e\u003cb\u003ecopyright\u003c/b\u003e: © HL7.org 2011+\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003emetadata\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eLinks\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/patient.html\"\u003ehttp://hl7.org/fhir/patient.html\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eDemographics and other administrative information about an individual or animal receiving care or other health-related services.\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003ch3\u003eCapabilities\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eRequired\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidated\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eLink\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eCapabilities\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003ePatient Read Operation\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/http.html#read\"\u003ehttp://hl7.org/fhir/http.html#read\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"http://hl7.org/fhir/CapabilityStatement/example\"\u003ehttp://hl7.org/fhir/CapabilityStatement/example\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003ch3\u003eScopes\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eArtifact\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eConformance\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003ePhase\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eOptional \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"codesystem-testscript-scope-conformance-codes.html\"\u003eTest Script Scope Conformance Type\u003c/a\u003e#optional)\u003c/span\u003e\u003c/td\u003e\u003ctd\u003eUnit \u003cspan style\u003d\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"\u003e (\u003ca href\u003d\"codesystem-testscript-scope-phase-codes.html\"\u003eTest Script Scope Phase Type\u003c/a\u003e#unit)\u003c/span\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003cp\u003e\u003cb\u003eprofile\u003c/b\u003e: \u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: KnownPatientResourceId\u003c/p\u003e\u003cp\u003e\u003cb\u003edefaultValue\u003c/b\u003e: example\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003evariable\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: NonExistsPatientResourceId\u003c/p\u003e\u003cp\u003e\u003cb\u003edefaultValue\u003c/b\u003e: does-not-exist\u003c/p\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Sprinkler Read Test R001\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read a known Patient and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eRead the known Patient resource on the destination test system using the user defined dynamic variable ${KnownPatientResourceId}.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${KnownPatientResourceId}\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 200(OK).\u003c/td\u003e\u003ctd\u003eokay\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eContentType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned format is XML.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eHeaderField\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eOperator\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP Header Last-Modified is present. Warning only as the server might not support versioning.\u003c/td\u003e\u003ctd\u003eLast-Modified\u003c/td\u003e\u003ctd\u003enotEmpty\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned resource type is Patient.\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eValidateProfileId\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned Patient conforms to the base FHIR specification.\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003epatient-profile\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Sprinkler Read Test R002\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read an unknown Resource Type and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eAttempt to read the Parameters resource type. What we really want here is an illegal type but the build process won\u0027t allow that. Parameters is a valid resource which doesn\u0027t have an end-point so, this should fail.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/1\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 404(Not Found).\u003c/td\u003e\u003ctd\u003enotFound\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Sprinkler Read Test R003\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read a known, non-existing Patient and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eAttempt to read the non-existing Patient resource on the destination test system using the user defined dynamic variable ${NonExistsPatientResourceId}.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/${NonExistsPatientResourceId}\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 404(Not Found).\u003c/td\u003e\u003ctd\u003enotFound\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003etest\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003ename\u003c/b\u003e: Sprinkler Read Test R004\u003c/p\u003e\u003cp\u003e\u003cb\u003edescription\u003c/b\u003e: Read a Patient using a known bad formatted resource id and validate response.\u003c/p\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eOperations\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eType\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResource\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eAccept\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eEncodeRequestUrl\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eParams\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eread (Details: http://hl7.org/fhir/restful-interaction code read \u003d \u0027read\u0027, stated as \u0027null\u0027)\u003c/td\u003e\u003ctd\u003e\u003ca href\u003d\"patient.html\"\u003ePatient\u003c/a\u003e\u003c/td\u003e\u003ctd\u003eAttempt to read a Patient resource on the destination test system using known bad formatted resource id.\u003c/td\u003e\u003ctd\u003exml\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e/ID-may-not-contain-CAPITALS\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003cblockquote\u003e\u003cp\u003e\u003cb\u003eaction\u003c/b\u003e\u003c/p\u003e\u003ch3\u003eAsserts\u003c/h3\u003e\u003ctable class\u003d\"grid\"\u003e\u003ctr\u003e\u003ctd\u003e-\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDescription\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eResponse\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eStopTestOnFail\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eWarningOnly\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e*\u003c/td\u003e\u003ctd\u003eConfirm that the returned HTTP status is 400(Bad Request).\u003c/td\u003e\u003ctd\u003ebadRequest\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003ctd\u003efalse\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/blockquote\u003e\u003c/blockquote\u003e\u003c/div\u003e"},"url":"http://hl7.org/fhir/TestScript/testscript-example-readtest","identifier":[{"system":"urn:ietf:rfc:3986","value":"urn:oid:2.16.840.1.113883.4.642.12.2"}],"version":"1.0","name":"TestScript Example Read Test","status":"draft","experimental":true,"date":"2017-01-18","publisher":"HL7","contact":[{"name":"Support","telecom":[{"system":"email","value":"support@HL7.org","use":"work"}]}],"description":"TestScript example resource with ported Sprinkler basic read tests R001, R002, R003, R004. The read tests will utilize user defined dynamic variables that will hold the Patient resource id values.","jurisdiction":[{"coding":[{"system":"urn:iso:std:iso:3166","code":"US","display":"United States of America (the)"}]}],"purpose":"Patient Read Operation","copyright":"© HL7.org 2011+","metadata":{"link":[{"url":"http://hl7.org/fhir/patient.html","description":"Demographics and other administrative information about an individual or animal receiving care or other health-related services."}],"capability":[{"required":true,"validated":false,"description":"Patient Read Operation","link":["http://hl7.org/fhir/http.html#read"],"capabilities":"http://hl7.org/fhir/CapabilityStatement/example"}]},"scope":[{"artifact":"http://hl7.org/fhir/StructureDefinition/Patient","conformance":{"coding":[{"system":"http://hl7.org/fhir/testscript-scope-conformance-codes","code":"optional"}]},"phase":{"coding":[{"system":"http://hl7.org/fhir/testscript-scope-phase-codes","code":"unit"}]}}],"profile":["http://hl7.org/fhir/StructureDefinition/Patient"],"_profile":[{"id":"patient-profile"}],"variable":[{"name":"KnownPatientResourceId","defaultValue":"example"},{"name":"NonExistsPatientResourceId","defaultValue":"does-not-exist"}],"test":[{"id":"R001","name":"Sprinkler Read Test R001","description":"Read a known Patient and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Read the known Patient resource on the destination test system using the user defined dynamic variable ${KnownPatientResourceId}.","accept":"xml","encodeRequestUrl":true,"params":"/${KnownPatientResourceId}"}},{"assert":{"description":"Confirm that the returned HTTP status is 200(OK).","response":"okay","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned format is XML.","contentType":"xml","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned HTTP Header Last-Modified is present. Warning only as the server might not support versioning.","headerField":"Last-Modified","operator":"notEmpty","stopTestOnFail":false,"warningOnly":true}},{"assert":{"description":"Confirm that the returned resource type is Patient.","resource":"Patient","stopTestOnFail":false,"warningOnly":false}},{"assert":{"description":"Confirm that the returned Patient conforms to the base FHIR specification.","stopTestOnFail":false,"validateProfileId":"patient-profile","warningOnly":false}}]},{"id":"R002","name":"Sprinkler Read Test R002","description":"Read an unknown Resource Type and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Attempt to read the Parameters resource type. What we really want here is an illegal type but the build process won\u0027t allow that. Parameters is a valid resource which doesn\u0027t have an end-point so, this should fail.","accept":"xml","encodeRequestUrl":true,"params":"/1"}},{"assert":{"description":"Confirm that the returned HTTP status is 404(Not Found).","response":"notFound","stopTestOnFail":false,"warningOnly":false}}]},{"id":"R003","name":"Sprinkler Read Test R003","description":"Read a known, non-existing Patient and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Attempt to read the non-existing Patient resource on the destination test system using the user defined dynamic variable ${NonExistsPatientResourceId}.","accept":"xml","encodeRequestUrl":true,"params":"/${NonExistsPatientResourceId}"}},{"assert":{"description":"Confirm that the returned HTTP status is 404(Not Found).","response":"notFound","stopTestOnFail":false,"warningOnly":false}}]},{"id":"R004","name":"Sprinkler Read Test R004","description":"Read a Patient using a known bad formatted resource id and validate response.","action":[{"operation":{"type":{"system":"http://hl7.org/fhir/restful-interaction","code":"read"},"resource":"Patient","description":"Attempt to read a Patient resource on the destination test system using known bad formatted resource id.","accept":"xml","encodeRequestUrl":true,"params":"/ID-may-not-contain-CAPITALS"}},{"assert":{"description":"Confirm that the returned HTTP status is 400(Bad Request).","response":"badRequest","stopTestOnFail":false,"warningOnly":false}}]}]}