Test Script

Name/FHIRSandbox/DaVinci/FHIR4-0-1-VBPR/VBPR-STU1/03-Measure/03-VBPR-Dynamic-Validate-Measure-xml
DescriptionTestscript that validates a dynamically entered VBPR Measure resource in XML format. The tester shall provide a resource in the dynamic resource variable field on the testscript. The resource will be validated against the DaVinci Value Based Performance Report (VBPR) Measure profile. Any validation errors will be provided back in the test results. Example Measure resources can be found in the Examples link in the implementation guide found at https://build.fhir.org/ig/HL7/davinci-vbpr/examples.html .
Version2Latest2
Content
<?xml version="1.0" encoding="UTF-8"?>

<TestScript xmlns="http://hl7.org/fhir">  
    <id value="davinci-vbpr-measure-dynamic-xml"/>  
    <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>DaVinci VBPR Dynamic Resource Validate Measure - XML</p> 
        </div> 
    </text>  
    <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture"> 
        <extension url="id"> 
            <valueId value="resource-create"/> 
        </extension>  
        <extension url="resourceType"> 
            <valueString value="Measure"/> 
        </extension>  
        <extension url="contentType"> 
            <valueString value="application/fhir+xml"/> 
        </extension>  
        <extension url="description"> 
            <valueString value="Measure resource using the DaVinci Value Based Performance Report Resource Profile"/> 
        </extension>  
        <extension url="hint"> 
            <valueString value="DaVinci VBPR Measure Resource"/> 
        </extension> 
    </extension>  
    <url value="http://wildfhir.aegis.net/fhir4-0-1/TestScript/dv-vbpr-dynamic-measure-XML"/>  
    <name value="DVVBPRMEASUREDYNAMICXML"/>  
    <title value="DaVinci VBPR Measure Dynamic Resource - XML"/>  
    <status value="active"/>  
    <date value="2023-04-13"/>  
    <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="Testscript that validates a dynamically entered VBPR Measure resource in XML format.  The tester shall provide a resource in the dynamic resource variable field on the testscript. The resource will be validated against the DaVinci Value Based Performance Report (VBPR) Measure profile.  Any validation errors will be provided back in the test results. Example Measure resources can be found in the Examples link in the implementation guide found at https://build.fhir.org/ig/HL7/davinci-vbpr/examples.html ."/>  
    <copyright value="This FHIR Test Script is licensed under Creative Commons (CC0) 'No Rights Reserved'. Learn more at https://creativecommons.org/licenses"/>  
    <origin id="FHIR Client"> 
        <index value="1"/>  
        <profile> 
            <system value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/>  
            <code value="FHIR-Client"/> 
        </profile> 
    </origin>  
    <destination id="FHIR Server"> 
        <index value="1"/>  
        <profile> 
            <system value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/>  
            <code value="FHIR-Server"/> 
        </profile> 
    </destination>  
    <profile id="DV-VBPR-Measure-profile"> 
        <reference value="http://hl7.org/fhir/us/davinci-vbpr/StructureDefinition/vbp-measure"/> 
    </profile>  
    <variable> 
        <name value="VBPR-Measure-Resource"/>  
        <headerField value="Content-Location"/>  
        <sourceId value="resource-create"/> 
    </variable>  
    <test id="01-ValidateMeasureResource"> 
        <name value="ValidateMeasureResource"/>  
        <description value="A FHIR Client sends a VBPR Measure resource to a FHIR Server to validate.  The $validate operation is used.  Testers may use any destination server regardless of if supports the $validate operation as the testscript will also validate the request resource."/>  
        <action> 
            <operation> 
                <type> 
                    <system value="http://touchstone.com/fhir/testscript-operation-codes-extended"/>  
                    <code value="process-message"/> 
                </type>  
                <description value="Send Measure to be validated using XML format"/>  
                <accept value="xml"/>  
                <contentType value="xml"/>  
                <encodeRequestUrl value="true"/>  
                <params value="/$validate"/>  
                <sourceId value="resource-create"/> 
            </operation> 
        </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 entered Measure resource conforms to the Da Vinci VBPR specification."/>  
                <direction value="request"/>  
                <validateProfileId value="DV-VBPR-Measure-profile"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action> 
    </test> 
</TestScript>