Test Script

Name/FHIRSandbox/DaVinci/FHIR4-0-1-DEQM-GIC/Care-Gaps-3-0-0/04-Parameters/Period-Start-None-GIC
DescriptionGet all gaps for variable parameters. All $care-gaps operations are performed using the FHIR Operation Framework HTTP GET method with url inline parameters. Preconditions: Server has pre-loaded the Clinical Reasoning standard test data set patient and measure data for the patient. The request is for json format as a default.
Version5Latest5
Content
<?xml version="1.0" encoding="UTF-8"?>

<TestScript xmlns="http://hl7.org/fhir">  
    <id value="Period-Start-None-GIC"/>  
    <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>Period-Start-None-GIC-json</p> 
        </div> 
    </text>  
    <url value="http://wildfhir.aegis.net/fhir4-0-1/TestScript/Period-Start-None-GIC"/>  
    <name value="Period-Start-None-GIC-json"/>  
    <status value="active"/>  
    <date value="2021-06-22"/>  
    <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>  
    <description value="Get all gaps for variable parameters. All $care-gaps operations are performed using the FHIR Operation Framework HTTP GET method with url inline parameters. Preconditions: Server has pre-loaded the Clinical Reasoning standard test data set patient and measure data for the patient.  The request is for json format as a default."/>  
    <copyright value="This FHIR Test Script is licensed under Creative Commons (CC0) 'No Rights Reserved'. Learn more at https://creativecommons.org/licenses"/>  
    <origin> 
        <index value="1"/>  
        <profile> 
            <system value="http://hl7.org/fhir/testscript-profile-origin-types"/>  
            <code value="FHIR-Client"/> 
        </profile> 
    </origin>  
    <destination> 
        <index value="1"/>  
        <profile> 
            <system value="http://hl7.org/fhir/testscript-profile-destination-types"/>  
            <code value="FHIR-Server"/> 
        </profile> 
    </destination>  
    <profile id="ParametersProfileBase"> 
        <reference value="http://hl7.org/fhir/StructureDefinition/Parameters"/> 
    </profile>  
    <variable> 
        <name value="periodEnd"/>  
        <defaultValue value="2019-12-31"/>  
        <description value="Default end of a gaps through period."/> 
    </variable>  
    <variable> 
        <name value="statusOpen"/>  
        <defaultValue value="open-gap"/>  
        <description value="Status open gap."/> 
    </variable>  
    <variable> 
        <name value="statusClosed"/>  
        <defaultValue value="closed-gap"/>  
        <description value="Status closed gap."/> 
    </variable>  
    <variable> 
        <name value="subject"/>  
        <defaultValue value="Patient/caregaps-parameters-standard"/>  
        <description value="Default end of a gaps through subject."/> 
    </variable>  
    <variable> 
        <name value="measureId"/>  
        <defaultValue value="measure-EXM130-7.3.000"/>  
        <description value="Default end of a gaps through measureId."/> 
    </variable>  
    <variable> 
        <name value="expectedNumParameters"/>  
        <defaultValue value="0"/>  
        <description value="Number of expected Parameters resources in response.  Will be validated in the test."/> 
    </variable>  
    <test id="Period-Start-None"> 
        <name value="Period-Start-None"/>  
        <description value="Query for the gaps in care using periodStart missing parameters. Expected response is OperationOutcome (error)."/>  
        <action> 
            <operation> 
                <type> 
                    <system value="http://touchstone.com/fhir/testscript-operation-codes-extended"/>  
                    <code value="care-gaps"/> 
                </type>  
                <resource value="Measure"/>  
                <description value="Run the $care-gaps operation."/>  
                <accept value="json"/>  
                <contentType value="json"/>  
                <destination value="1"/>  
                <encodeRequestUrl value="true"/>  
                <method value="get"/>  
                <origin value="1"/>  
                <params value="/$care-gaps?periodEnd=${periodEnd}&amp;status=${statusOpen}&amp;status=${statusClosed}&amp;subject=${subject}&amp;measureId=${measureId}"/>  
                <responseId value="searchResponse"/> 
            </operation> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the returned HTTP status is 200(OK)."/>  
                <direction value="response"/>  
                <operator value="in"/>  
                <responseCode value="200"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Verify that there are the number of Parameters resources expected in the response"/>  
                <direction value="response"/>  
                <expression value="Parameters.parameter.count()"/>  
                <operator value="equals"/>  
                <value value="${expectedNumParameters}"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the response body contains a Parameters resource"/>  
                <direction value="response"/>  
                <resource value="Parameters"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Validate the response Parameters. Warning only to allow for review of results."/>  
                <direction value="response"/>  
                <validateProfileId value="ParametersProfileBase"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action> 
    </test> 
</TestScript>