Test Script

Name/FHIRSandbox/DaVinci/FHIR4-0-1-VBPR/VBPR-STU1/01-MeasureReport/01-VBPR-Dynamic-Validate-MeasureReport-xml
DescriptionTestscript that validates a dynamically entered VBPR MeasureReport 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) MeasureReport profile. Any validation errors will be provided back in the test results. Example MeasureReport 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-measurereport-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 MeasureReport - 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="MeasureReport"/> 
        </extension>  
        <extension url="contentType"> 
            <valueString value="application/fhir+xml"/> 
        </extension>  
        <extension url="description"> 
            <valueString value="MeasureReport resource using the DaVinci Value Based Performance Report Resource Profile"/> 
        </extension>  
        <extension url="hint"> 
            <valueString value="DaVinci VBPR MeasureReport Resource"/> 
        </extension> 
    </extension>  
    <url value="http://wildfhir.aegis.net/fhir4-0-1/TestScript/dv-vbpr-dynamic-measurereport-XML"/>  
    <name value="DVVBPRMEASUREREPORTDYNAMICXML"/>  
    <title value="DaVinci VBPR MeasureReport 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 MeasureReport 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) MeasureReport profile.  Any validation errors will be provided back in the test results. Example MeasureReport 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-MeasureReport-profile"> 
        <reference value="http://hl7.org/fhir/us/davinci-vbpr/StructureDefinition/vbp-performance-measurereport"/> 
    </profile>  
    <variable> 
        <name value="VBPR-MeasureReport-Resource"/>  
        <headerField value="Content-Location"/>  
        <sourceId value="resource-create"/> 
    </variable>  
    <test id="01-ValidateMeasureReportResource"> 
        <name value="ValidateMeasureReportResource"/>  
        <description value="A FHIR Client sends a VBPR MeasureReport 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 MeasureReport 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 MeasureReport resource conforms to the Da Vinci VBPR specification."/>  
                <direction value="request"/>  
                <validateProfileId value="DV-VBPR-MeasureReport-profile"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action> 
    </test> 
</TestScript>