Name | /FHIRSandbox/DaVinci/00-FHIR3-0-1-Test/DEQM/01-MRP/02-SubmitData/dv-deqm-r3-mrp-sd-07-invalid-profile-notok-json |
Description | Da Vinci Measure $submit-data operation simple test against a known Measure resource where the expected outcome is a failed response containing an OperationOutcome payload. All $submit-data operations are performed using the FHIR Operation Framework HTTP POST method with Parameters containing invalid profile path in Measure Report and Patient resource. |
Version | 1 | Latest | 1 |
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir">
<id value="dv-deqm-r3-mrp-sd-07-invalid-profile-notok-json"/>
<url value="http://wildfhir.aegis.net/fhir3-0-1/TestScript/dv-deqm-r3-mrp-sd-07-invalid-profile-notok-json"/>
<name value="dv-deqm-r3-mrp-sd-07-invalid-profile-notok-json"/>
<status value="active"/>
<date value="2019-05-23"/>
<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 Measure $submit-data operation simple test against a known Measure resource where the expected outcome is a failed response containing an OperationOutcome payload. All $submit-data operations are performed using the FHIR Operation Framework HTTP POST method with Parameters containing invalid profile path in Measure Report and Patient resource."/>
<copyright value="(c) AEGIS.net, Inc. 2019"/>
<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>
<fixture id="submit-data-input-07">
<resource>
<reference value="./_reference/input/submit-data-input-07_INVALID.json"/>
</resource>
</fixture>
<profile id="OperationOutcomeProfileBase">
<reference value="http://hl7.org/fhir/StructureDefinition/OperationOutcome"/>
</profile>
<variable>
<name value="MeasureId"/>
<defaultValue value="measure-mrp"/>
<description value="Enter a resource id for a valid Measure on the destination system."/>
<hint value="[Valid Measure Id]"/>
</variable>
<test id="01-Measure-Submit-Data">
<name value="01-Measure-Submit-Data"/>
<description value="Submit invalid data for a known Measure using HTTP POST. Expected response is a 4xx or 5xx code and an OperationOutcome resource payload."/>
<action>
<operation>
<type>
<system value="http://touchstone.com/fhir/testscript-operation-codes-extended"/>
<code value="submit-data"/>
</type>
<resource value="Measure"/>
<description value="Measure $submit-data operation with invalid data."/>
<accept value="json"/>
<contentType value="json"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/${MeasureId}/$submit-data"/>
<sourceId value="submit-data-input-07"/>
</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"/>
</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>
<description value="Confirm that the request HTTP Header Content-Type format is the FHIR mime-type 'application/fhir+json'."/>
<direction value="request"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="application/fhir+json"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the request HTTP Header Content-Type contains 'charset=utf-8'."/>
<direction value="request"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="charset=utf-8"/>
<warningOnly value="true"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned HTTP status is 4xx or 5xx."/>
<direction value="response"/>
<operator value="greaterThan"/>
<responseCode value="399"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned HTTP Header Content-Type contains 'charset=utf-8'."/>
<direction value="response"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="charset=utf-8"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned resource type is OperationOutcome."/>
<direction value="response"/>
<resource value="OperationOutcome"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned OperationOutcome resource type conforms the base FHIR specification."/>
<direction value="response"/>
<validateProfileId value="OperationOutcomeProfileBase"/>
</assert>
</action>
</test>
</TestScript>