Test Script

Name/FHIR4-0-1-Connectathon24/Terminology-Formal/JSON Format/Expand/terminology-c24-expand-version-extensional1-02-notok-json
DescriptionFHIR Connectathon 24 - Terminology Services - Expand with Version Parameter - JSON Format - Expansion test using an unknown version parameter. There is no setup and teardown as all ValueSet resources are expected to exist on the target system under test.
Version1Latest1
Content
<?xml version="1.0" encoding="UTF-8"?>

<TestScript xmlns="http://hl7.org/fhir">  
    <id value="terminology-c24-expand-version-extensional1-02-notok-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 Unknown Version - JSON</p>
        </div> 
    </text>  
    <url value="http://wildfhir.aegis.net/fhir4-0-0/TestScript/terminology-c24-expand-version-extensional1-02-notok-json"/>  
    <name value="FHIRC24TerminologyExpandUnknownVersionJSON"/>  
    <title value="FHIR Connectathon 24 - Terminology Services - Expand with Unknown 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 an unknown 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="OperationOutcomeProfile"> 
        <reference value="http://hl7.org/fhir/StructureDefinition/OperationOutcome"/> 
    </profile>  
    <test id="01-ExpansionVersionExtensionalCase1"> 
        <name value="01-ExpansionVersionExtensionalCase1"/>  
        <description value="$expand operation with an unknown 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=xxx on ValueSet extensional-case-1."/>  
                <accept value="json"/>  
                <encodeRequestUrl value="false"/>  
                <params value="/extensional-case-1/$expand?valueSetVersion=xxx"/> 
            </operation> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the returned HTTP status is 4xx/5xx."/>  
                <direction value="response"/>  
                <operator value="greaterThan"/>  
                <responseCode value="399"/>  
                <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 OperationOutcome."/>  
                <direction value="response"/>  
                <resource value="OperationOutcome"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the returned OperationOutcome resource type conforms the base FHIR specification."/>  
                <direction value="response"/>  
                <validateProfileId value="OperationOutcomeProfile"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the returned OperationOutcome resource contains at least one error or fatal issue."/>  
                <direction value="response"/>  
                <expression value="OperationOutcome.issue.where(severity = 'error').count() &gt; 0 or OperationOutcome.issue.where(severity = 'fatal').count() &gt; 0"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action> 
    </test> 
</TestScript>