US Core Testing Guide - Local Development build (v3.1.1-1). See the Directory of published versions
Active as of 2023-08-25 |
<TestScript xmlns="http://hl7.org/fhir">
<id value="Allergydynamicreadvalidatexml"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative: TestScript</b><a name="Allergydynamicreadvalidatexml"> </a></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource TestScript "Allergydynamicreadvalidatexml" </p></div><p><b>url</b>: <code>http://hl7.org/fhir/us/core-tg/TestScript/Allergydynamicreadvalidatexml</code></p><p><b>version</b>: 3.1.1-1</p><p><b>name</b>: Allergydynamicreadvalidatexml</p><p><b>title</b>: HL7 FHIR R4 TestScript Dynamic Read Validate US Core AllergyIntolerance XML</p><p><b>status</b>: active</p><p><b>date</b>: 2023-08-25</p><p><b>publisher</b>: HL7 FHIR Infrastructure WG</p><p><b>contact</b>: HL7 FHIR Infrastructure WG: <a href="https://hl7.org/Special/committees/fiwg">https://hl7.org/Special/committees/fiwg</a>, Richard Ettema: <a href="mailto:mailto:richard.ettema@aegis.net">mailto:richard.ettema@aegis.net</a></p><p><b>description</b>: TestScript to test USCoreAllergyIntolerance resource read and profile validation using #xml format</p><p><b>jurisdiction</b>: United States of America <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/5.0.0/CodeSystem-ISO3166Part1.html">ISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code</a>#US)</span></p><p><b>copyright</b>: (c) Health Level 7 (HL7) International 2023</p><h3>Origins</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style="display: none">*</td><td>1</td><td>FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null')</td></tr></table><h3>Destinations</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style="display: none">*</td><td>1</td><td>FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null')</td></tr></table><p><b>profile</b>: <a href="http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance">http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance</a> "USCoreAllergyIntolerance"</p><h3>Variables</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Name</b></td><td><b>DefaultValue</b></td><td><b>Description</b></td><td><b>Hint</b></td></tr><tr><td style="display: none">*</td><td>resource_id</td><td>example</td><td>Enter a known resource id on the destination system.</td><td>[resource.id]</td></tr></table><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>ReadValidate</blockquote><p><b>name</b>: ReadValidate</p><p><b>description</b>: Test USCoreAllergyIntolerance resource read on destination server and assert returned resource passes validation</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Resource</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>ContentType</b></td><td><b>Destination</b></td><td><b>EncodeRequestUrl</b></td><td><b>Origin</b></td><td><b>Params</b></td></tr><tr><td style="display: none">*</td><td>Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')</td><td>AllergyIntolerance</td><td>ResourceRead</td><td>xml</td><td>xml</td><td>1</td><td>true</td><td>1</td><td>/${resource_id}</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned response code is 200 OK.</td><td>response</td><td>200</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Resource</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned response payload is the specified resource.</td><td>response</td><td>AllergyIntolerance</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style="display: none">*</td><td>Confirm that the returned resource conforms to the specified profile.</td><td>response</td><td>USCoreAllergyProfile</td><td>false</td></tr></table></blockquote></blockquote></div>
</text>
<url
value="http://hl7.org/fhir/us/core-tg/TestScript/Allergydynamicreadvalidatexml"/>
<version value="3.1.1-1"/>
<name value="Allergydynamicreadvalidatexml"/>
<title
value="HL7 FHIR R4 TestScript Dynamic Read Validate US Core AllergyIntolerance XML"/>
<status value="active"/>
<date value="2023-08-25"/>
<publisher value="HL7 FHIR Infrastructure WG"/>
<contact>
<name value="HL7 FHIR Infrastructure WG"/>
<telecom>
<system value="url"/>
<value value="https://hl7.org/Special/committees/fiwg"/>
</telecom>
</contact>
<contact>
<name value="Richard Ettema"/>
<telecom>
<system value="email"/>
<value value="mailto:richard.ettema@aegis.net"/>
</telecom>
</contact>
<description
value="TestScript to test USCoreAllergyIntolerance resource read and profile validation using #xml format"/>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
</coding>
</jurisdiction>
<copyright value="(c) Health Level 7 (HL7) International 2023"/>
<origin>
<index value="1"/>
<profile>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/>
<code value="FHIR-Client"/>
</profile>
</origin>
<destination>
<index value="1"/>
<profile>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>
<code value="FHIR-Server"/>
</profile>
</destination>
<profile id="USCoreAllergyProfile">
<reference
value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance"/>
</profile>
<variable>
<name value="resource_id"/>
<defaultValue value="example"/>
<description
value="Enter a known resource id on the destination system."/>
<hint value="[resource.id]"/>
</variable>
<test id="ReadValidate">
<name value="ReadValidate"/>
<description
value="Test USCoreAllergyIntolerance resource read on destination server and assert returned resource passes validation"/>
<action>
<operation>
<type>
<system
value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="read"/>
</type>
<resource value="AllergyIntolerance"/>
<description value="ResourceRead"/>
<accept value="xml"/>
<contentType value="xml"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/${resource_id}"/>
</operation>
</action>
<action>
<assert>
<description
value="Confirm that the returned response code is 200 OK."/>
<direction value="response"/>
<responseCode value="200"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description
value="Confirm that the returned response payload is the specified resource."/>
<direction value="response"/>
<resource value="AllergyIntolerance"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description
value="Confirm that the returned resource conforms to the specified profile."/>
<direction value="response"/>
<validateProfileId value="USCoreAllergyProfile"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>
IG © 2023+ HL7 FHIR Infrastructure WG. Package hl7.fhir.us.core-tg#3.1.1-1 based on FHIR 4.0.1. Generated 2023-09-06
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change