Name | /FHIRSandbox/DaVinci/00-FHIR3-0-1-Test/DEQM/00-Capabilities/dv-deqm-r3-capabilities-02-options-xml |
Description | Da Vinci Capabilities test against a single server to verify support for the capabilities interaction 'HTTP OPTIONS' and the return of a valid CapabilityStatement resource in XML format. |
Version | 1 | Latest | 1 |
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir">
<id value="dv-deqm-r3-capabilities-02-options-xml"/>
<url value="http://wildfhir.aegis.net/fhir3-0-1/TestScript/dv-deqm-r3-capabilities-02-options-xml"/>
<name value="Da Vinci - DEQM - FHIR STU3 - Capabilities OPTIONS - XML"/>
<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 Capabilities test against a single server to verify support for the capabilities interaction 'HTTP OPTIONS' and the return of a valid CapabilityStatement resource in XML format."/>
<copyright value="(c) AEGIS.net, Inc. 2019"/>
<profile id="capabilities-profile">
<reference value="http://hl7.org/fhir/StructureDefinition/CapabilityStatement"/>
</profile>
<test id="01-CapabilitiesOptionsXML">
<name value="CapabilitiesOptionsXML"/>
<description value="Execute the HTTP OPTIONS capabilities operation with HTTP Header Accept set to XML format and no request URL parameters defined. Expected response is 200 (OK) and content of a valid CapabilityStatement resource in XML format. Support for the MRP operations will be validated."/>
<action>
<operation>
<type>
<system value="http://hl7.org/fhir/testscript-operation-codes"/>
<code value="capabilities"/>
</type>
<description value="HTTP OPTIONS capabilities operation with HTTP Header Accept set to XML format and no request URL parameters defined.."/>
<accept value="xml"/>
<contentType value="none"/>
<encodeRequestUrl value="true"/>
<params value="?_summary=false"/>
</operation>
</action>
<action>
<assert>
<description value="Confirm that the returned HTTP status is 200(OK)."/>
<direction value="response"/>
<responseCode value="200"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned HTTP Header Content-Type is present."/>
<direction value="response"/>
<headerField value="Content-Type"/>
<operator value="notEmpty"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned HTTP Header Content-Type contains the FHIR mime-type 'application/fhir+xml'."/>
<direction value="response"/>
<headerField value="Content-Type"/>
<operator value="contains"/>
<value value="application/fhir+xml"/>
</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"/>
<warningOnly value="true"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned HTTP Header ETag is present. Warning only as FHIR servers SHOULD return this header."/>
<direction value="response"/>
<headerField value="ETag"/>
<operator value="notEmpty"/>
<warningOnly value="true"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned resource type is CapabilityStatement."/>
<direction value="response"/>
<resource value="CapabilityStatement"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned CapabilityStatement conforms to the base FHIR specification."/>
<direction value="response"/>
<validateProfileId value="capabilities-profile"/>
</assert>
</action>
<action>
<assert>
<description value="Confirm that the returned CapabilityStatement resource minimally contains the declaration of a RESTful server."/>
<direction value="response"/>
<expression value="CapabilityStatement.rest.where(mode = 'server').exists()"/>
</assert>
</action>
</test>
</TestScript>