Name | /FHIR4-0-1-Connectathon24/Terminology-Formal/JSON Format/Expand/terminology-c24-expand-version-extensional1-01-ok-json |
Description | FHIR Connectathon 24 - Terminology Services - Expand with Version Parameter - JSON Format - Expansion test using a version parameter. There is no setup and teardown as all ValueSet resources are expected to exist on the target system under test. |
Version | 1 | Latest | 1 |
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir">
<id value="terminology-c24-expand-version-extensional1-01-ok-json"/>
<meta>
<profile value="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"/>
</meta>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<p>FHIR Connectathon 24 - Terminology Services - Expand with Version - JSON</p>
</div>
</text>
<url value="http://wildfhir.aegis.net/fhir4-0-0/TestScript/terminology-c24-expand-version-extensional1-01-ok-json"/>
<name value="FHIRC24TerminologyExpandVersionJSON"/>
<title value="FHIR Connectathon 24 - Terminology Services - Expand with Version - JSON"/>
<status value="active"/>
<date value="2020-04-24"/>
<publisher value="AEGIS.net, Inc."/>
<contact>
<name value="Touchstone Support"/>
<telecom>
<system value="email"/>
<value value="Touchstone_Support@aegis.net"/>
<use value="work"/>
</telecom>
</contact>
<contact>
<name value="HL7 New Zealand"/>
<telecom>
<system value="email"/>
<value value="pkjordan@xtra.co.nz"/>
<use value="work"/>
</telecom>
</contact>
<description value="FHIR Connectathon 24 - Terminology Services - Expand with Version Parameter - JSON Format - Expansion test using a version parameter. There is no setup and teardown as all ValueSet resources are expected to exist on the target system under test."/>
<copyright value="(c) AEGIS.net, Inc. 2019"/>
<profile id="ValueSetProfile">
<reference value="http://hl7.org/fhir/StructureDefinition/ValueSet"/>
</profile>
<test id="01-ExpansionVersionExtensionalCase1">
<name value="01-ExpansionVersionExtensionalCase1"/>
<description value="$expand operation with version parameter test for ValueSet extensional-case-1."/>
<action>
<operation>
<type>
<system value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="expand"/>
</type>
<resource value="ValueSet"/>
<description value="Test $expand operation with valueSetVersion parameter=R4 on ValueSet extensional-case-1."/>
<accept value="json"/>
<encodeRequestUrl value="false"/>
<params value="/extensional-case-1/$expand?valueSetVersion=R4"/>
</operation>
</action>
<action>
<assert>
<description value="Confirm that the returned HTTP status is 200(OK)."/>
<direction value="response"/>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned format is JSON. Warning only to allow for review."/>
<direction value="response"/>
<contentType value="json"/>
<warningOnly value="true"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned resource type is ValueSet."/>
<direction value="response"/>
<resource value="ValueSet"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned ValueSet conforms to the base FHIR specification."/>
<direction value="response"/>
<validateProfileId value="ValueSetProfile"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned ValueSet equals the requested version R4."/>
<direction value="response"/>
<path value="ValueSet.version"/>
<value value="R4"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>