Name | /FHIRSandbox/DaVinci/FHIR4-0-1-RA/RA-STU1/01-RAReport/02-RiskAdj-ReportGroup/dv-risk-adjustment-report-group-json |
Description | Da Vinci Risk Adjustment $report simple tests where the server requests the report using the $report operation. The server will then return a bundle that contains 1 to many Risk Adjustment Coding Gap Reports. If none exist, an OperationOutcome is expected, however, this test assumes a Coding Gap Report is returned. |
Version | 1 | Latest | 1 |
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir">
<id value="dv-risk-adjustment-report-group-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>dv-risk-adjustment-report-group-json</p>
</div>
</text>
<url value="http://wildfhir.aegis.net/fhir4-0-1/TestScript/dv-risk-adjustment-report-group-json"/>
<name value="dv-risk-adjustment-report-group-json"/>
<status value="active"/>
<date value="2021-08-31"/>
<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="Da Vinci Risk Adjustment $report simple tests where the server requests the report using the $report operation. The server will then return a bundle that contains 1 to many Risk Adjustment Coding Gap Reports. If none exist, an OperationOutcome is expected, however, this test assumes a Coding Gap Report is returned."/>
<copyright value="(c) AEGIS.net, Inc. 2021"/>
<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="RAMeasureReportProfile">
<reference value="http://hl7.org/fhir/us/davinci-ra/StructureDefinition/ra-measurereport"/>
</profile>
<profile id="ParametersProfileBase">
<reference value="http://hl7.org/fhir/StructureDefinition/Parameters"/>
</profile>
<variable>
<name value="GroupId"/>
<defaultValue value="ra-group01"/>
<description value="Enter a Group id known to the destination system."/>
<hint value="[Valid Group Id]"/>
</variable>
<variable>
<name value="PeriodStart"/>
<defaultValue value="2021-01-01"/>
<description value="Enter the period start date."/>
<hint value="YYYY-MM-DD"/>
</variable>
<variable>
<name value="PeriodEnd"/>
<defaultValue value="2021-12-31"/>
<description value="Enter the period End date."/>
<hint value="YYYY-MM-DD"/>
</variable>
<variable>
<name value="expectedNumReports"/>
<defaultValue value="1"/>
<description value="Number of expected reports in the response. Will be validated in the test."/>
</variable>
<test id="Request-Group-Report">
<name value="Request-Group-Report"/>
<description value="Retrieve the Risk Adjustmentreport for a known Group and period using HTTP GET and the $report operation. Expected response is 200 (OK) with a Bundle containing a Risk Adjustment Gap Report payload."/>
<action>
<operation>
<type>
<system value="http://touchstone.com/fhir/testscript-operation-codes-extended"/>
<code value="report"/>
</type>
<resource value="MeasureReport"/>
<description value="Measure $report operation for a known Group and period."/>
<accept value="json"/>
<contentType value="none"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<method value="get"/>
<origin value="1"/>
<params value="/$report?subject=Group/${GroupId}&periodStart=${PeriodStart}&periodEnd=${PeriodEnd}"/>
</operation>
</action>
<action>
<assert>
<description value="Confirm that the request HTTP Header Accept format is the FHIR mime-type 'application/fhir+json'."/>
<direction value="request"/>
<headerField value="Accept"/>
<operator value="contains"/>
<value value="application/fhir+json"/>
<warningOnly value="true"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the request HTTP Header Accept contains 'charset=utf-8'."/>
<direction value="request"/>
<headerField value="Accept"/>
<operator value="contains"/>
<value value="charset=utf-8"/>
<warningOnly value="true"/>
</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 returned HTTP status is 200(OK)."/>
<direction value="response"/>
<response value="okay"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the response HTTP Header Content-Type format is the FHIR mime-type 'application/fhir+json'."/>
<direction value="response"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="application/fhir+json"/>
<warningOnly value="true"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the response HTTP Header Content-Type contains 'charset=utf-8'."/>
<direction value="response"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="charset=utf-8"/>
<warningOnly value="true"/>
</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 returned resource type is a Parameters."/>
<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>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the returned Bundle type is Collection."/>
<direction value="response"/>
<expression value="Parameters.parameter.resource.type"/>
<operator value="equals"/>
<value value="collection"/>
<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 report resources expected in the response"/>
<direction value="response"/>
<expression value="Parameters.parameter.count()"/>
<operator value="equals"/>
<value value="${expectedNumReports}"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>