Test Script

Name/FHIRSandbox/DaVinci/FHIR4-0-1-PlanNetProvDir/Plan-Net-1-0-0/00-Capability/00-capabilities-json
DescriptionDa Vinci - PDEX - PlanNet - FHIR R4 - 00 Capability - test a single server to verify support for the capabilities interaction 'HTTP GET metadata' and the return of a valid CapabilityStatement resource supporting the Da Vinci PlanNet IG.
Version1Latest1
Content
<?xml version="1.0" encoding="UTF-8"?>

<TestScript xmlns="http://hl7.org/fhir">  
    <id value="dv-pdex-r4-00-capability-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>Da Vinci - PDEX - PlanNet - FHIR R4 - 00 Capability - JSON</p>
        </div> 
    </text>  
    <url value="http://wildfhir.aegis.net/fhir4-0-0/TestScript/dv-pdex-r4-00-capability-json"/>  
    <name value="DaVinciPdex00CapabilityJSON"/>  
    <title value="Da Vinci - PDEX - PlanNet - FHIR R4 - 00 Capability - JSON"/>  
    <status value="active"/>  
    <date value="2020-10-20"/>  
    <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 - PDEX - PlanNet - FHIR R4 - 00 Capability - test a single server to verify support for the capabilities interaction 'HTTP GET metadata' and the return of a valid CapabilityStatement resource supporting the Da Vinci PlanNet IG."/>  
    <copyright value="This FHIR Test Script is licensed under Creative Commons (CC0) 'No Rights Reserved'. Learn more at https://creativecommons.org/licenses"/>  
    <profile id="capabilities-profile"> 
        <reference value="http://hl7.org/fhir/StructureDefinition/CapabilityStatement"/> 
    </profile>  
    <test id="00-Capabilities"> 
        <name value="Get-Capabilities"/>  
        <description value="Test the HTTP GET metadata capabilities operation with HTTP Header Accept set to JSON format. The expected response content is a valid CapabilityStatement resource supporting the required Da Vinci Plan Net IG operations using JSON format."/>  
        <action> 
            <operation> 
                <type> 
                    <system value="http://touchstone.com/fhir/testscript-operation-codes-extended"/>  
                    <code value="metadata"/> 
                </type>  
                <description value="HTTP GET metadata capabilities operation with HTTP Header Accept set to JSON format. The response asserts for all the optional HTTP Headers will be warning only."/>  
                <accept value="json"/>  
                <encodeRequestUrl value="true"/>  
                <params value="metadata"/>  
                <requestHeader> 
                    <field value="Authorization"/>  
                    <value value="none"/> 
                </requestHeader> 
            </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 returned HTTP status is 200(OK)."/>  
                <direction value="response"/>  
                <responseCode value="200"/>  
                <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 HTTP Header Content-Type is present."/>  
                <direction value="response"/>  
                <headerField value="Content-Type"/>  
                <operator value="notEmpty"/>  
                <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 HTTP Header Content-Type contains the FHIR mime-type 'application/fhir+json'."/>  
                <direction value="response"/>  
                <headerField value="Content-Type"/>  
                <operator value="contains"/>  
                <value value="application/fhir+json"/>  
                <warningOnly value="false"/> 
            </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> 
                <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 CapabilityStatement."/>  
                <direction value="response"/>  
                <resource value="CapabilityStatement"/>  
                <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 CapabilityStatement conforms to the base FHIR specification."/>  
                <direction value="response"/>  
                <validateProfileId value="capabilities-profile"/>  
                <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 CapabilityStatement supports json format."/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.format.where($this.contains('json')).exists()"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the returned CapabilityStatement SHOULD support xml format."/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.format.where($this.contains('xml')).exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="01-Endpoint"> 
        <name value="Endpoint-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the Endpoint resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the Endpoint resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Endpoint').interaction.code.where($this = 'search-type').exists()"/>  
                <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 Endpoint resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Endpoint').interaction.code.where($this = 'read').exists()"/>  
                <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 Endpoint resource supports the Endpoint:organization searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Endpoint').searchInclude.where($this = 'Endpoint:organization').exists()"/>  
                <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 Endpoint resource supports the search parameter organization"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Endpoint').searchParam.name.where($this = 'organization')"/>  
                <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 Endpoint resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Endpoint').searchParam.name.where($this = '_id').exists())"/>  
                <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 Endpoint resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Endpoint').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the Endpoint resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Endpoint').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="02-HealthcareService"> 
        <name value="HealthcareService-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the HealthcareService resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the HealthcareService resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').interaction.code.where($this = 'search-type').exists()"/>  
                <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 HealthcareService resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').interaction.code.where($this = 'read').exists()"/>  
                <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 HealthcareService resource supports the HealthcareService:location searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchInclude.where($this = 'HealthcareService:location').exists()"/>  
                <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 HealthcareService resource supports the HealthcareService:coverage-area searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchInclude.where($this = 'HealthcareService:coverage-area').exists()"/>  
                <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 HealthcareService resource supports the HealthcareService:organization searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchInclude.where($this = 'HealthcareService:organization').exists()"/>  
                <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 HealthcareService resource supports the HealthcareService:endpoint searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchInclude.where($this = 'HealthcareService:endpoint').exists()"/>  
                <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 HealthcareService resource supports the PractitionerRole:service searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchRevInclude.where($this = 'PractitionerRole:service').exists()"/>  
                <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 HealthcareService resource supports the OrganizationAffiliation:service searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchRevInclude.where($this = 'OrganizationAffiliation:service').exists()"/>  
                <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 HealthcareService resource supports the search parameter location"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'location')"/>  
                <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 HealthcareService resource supports the search parameter coverage-area"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'coverage-area')"/>  
                <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 HealthcareService resource supports the search parameter organization"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'organization')"/>  
                <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 HealthcareService resource supports the search parameter endpoint"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'endpoint')"/>  
                <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 HealthcareService resource supports the search parameter name"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'name')"/>  
                <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 HealthcareService resource supports the search parameter service-category"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'service-category')"/>  
                <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 HealthcareService resource supports the search parameter service-type"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'service-type')"/>  
                <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 HealthcareService resource supports the search parameter specialty"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = 'specialty')"/>  
                <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 HealthcareService resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = '_id').exists())"/>  
                <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 HealthcareService resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'HealthcareService').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the HealthcareService resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'HealthcareService').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="03-InsurancePlan"> 
        <name value="InsurancePlan-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the InsurancePlan resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the InsurancePlan resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').interaction.code.where($this = 'search-type').exists()"/>  
                <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 InsurancePlan resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').interaction.code.where($this = 'read').exists()"/>  
                <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 InsurancePlan resource supports the InsurancePlan:administered-by searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchInclude.where($this = 'InsurancePlan:administered-by').exists()"/>  
                <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 InsurancePlan resource supports the InsurancePlan:owned-by searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchInclude.where($this = 'InsurancePlan:owned-by').exists()"/>  
                <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 InsurancePlan resource supports the InsurancePlan:coverage-area searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchInclude.where($this = 'InsurancePlan:coverage-area').exists()"/>  
                <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 InsurancePlan resource supports the search parameter administered-by"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = 'administered-by')"/>  
                <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 InsurancePlan resource supports the search parameter owned-by"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = 'owned-by')"/>  
                <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 InsurancePlan resource supports the search parameter coverage-area"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = 'coverage-area')"/>  
                <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 InsurancePlan resource supports the search parameter name"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = 'name')"/>  
                <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 InsurancePlan resource supports the search parameter plan-type"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = 'plan-type')"/>  
                <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 InsurancePlan resource supports the search parameter identifier"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = 'identifier')"/>  
                <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 InsurancePlan resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = '_id').exists())"/>  
                <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 InsurancePlan resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <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 InsurancePlan resource supports the search parameter type"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').searchParam.name.where($this = 'type')"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the InsurancePlan resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'InsurancePlan').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="04-Location"> 
        <name value="Location-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the Location resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the Location resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').interaction.code.where($this = 'search-type').exists()"/>  
                <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 Location resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').interaction.code.where($this = 'read').exists()"/>  
                <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 Location resource supports the Location:endpoint searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchInclude.where($this = 'Location:endpoint').exists()"/>  
                <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 Location resource supports the Location:organization searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchInclude.where($this = 'Location:organization').exists()"/>  
                <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 Location resource supports the Location:partof searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchInclude.where($this = 'Location:partof').exists()"/>  
                <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 Location resource supports the HealthcareService:location searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchRevInclude.where($this = 'HealthcareService:location').exists()"/>  
                <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 Location resource supports the InsurancePlan:coverage-area searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchRevInclude.where($this = 'InsurancePlan:coverage-area').exists()"/>  
                <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 Location resource supports the OrganizationAffiliation:location searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchRevInclude.where($this = 'OrganizationAffiliation:location').exists()"/>  
                <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 Location resource supports the PractitionerRole:location searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchRevInclude.where($this = 'PractitionerRole:location').exists()"/>  
                <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 Location resource supports the search parameter partof"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'partof')"/>  
                <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 Location resource supports the search parameter organization"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'organization')"/>  
                <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 Location resource supports the search parameter endpoint"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'endpoint')"/>  
                <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 Location resource supports the search parameter address-city"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'address-city')"/>  
                <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 Location resource supports the search parameter address-state"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'address-state')"/>  
                <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 Location resource supports the search parameter address-postalcode"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'address-postalcode')"/>  
                <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 Location resource supports the search parameter address"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'address')"/>  
                <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 Location resource supports the search parameter type"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = 'type')"/>  
                <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 Location resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = '_id').exists())"/>  
                <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 Location resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Location').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the Location resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Location').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="05-Organization"> 
        <name value="Organization-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the Organization resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the Organization resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').interaction.code.where($this = 'search-type').exists()"/>  
                <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 Organization resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').interaction.code.where($this = 'read').exists()"/>  
                <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 Organization resource supports the Organization:partof searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchInclude.where($this = 'Organization:partof').exists()"/>  
                <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 Organization resource supports the Organization:endpoint searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchInclude.where($this = 'Organization:endpoint').exists()"/>  
                <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 Organization resource supports the Organization:coverage-area searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchInclude.where($this = 'Organization:coverage-area').exists()"/>  
                <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 Organization resource supports the Endpoint:organization searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'Endpoint:organization').exists()"/>  
                <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 Organization resource supports the HealthcareService:organization searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'HealthcareService:organization').exists()"/>  
                <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 Organization resource supports the InsurancePlan:administered-by searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'InsurancePlan:administered-by').exists()"/>  
                <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 Organization resource supports the InsurancePlan:owned-by searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'InsurancePlan:owned-by').exists()"/>  
                <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 Organization resource supports the OrganizationAffiliation:primary-organization searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'OrganizationAffiliation:primary-organization').exists()"/>  
                <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 Organization resource supports the PractitionerRole:organization searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'PractitionerRole:organization').exists()"/>  
                <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 Organization resource supports the PractitionerRole:network searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'PractitionerRole:network').exists()"/>  
                <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 Organization resource supports the OrganizationAffiliation:participating-organization searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchRevInclude.where($this = 'OrganizationAffiliation:participating-organization').exists()"/>  
                <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 Organization resource supports the search parameter partof"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = 'partof')"/>  
                <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 Organization resource supports the search parameter endpoint"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = 'endpoint')"/>  
                <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 Organization resource supports the search parameter address"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = 'address')"/>  
                <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 Organization resource supports the search parameter name"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = 'name')"/>  
                <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 Organization resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = '_id').exists())"/>  
                <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 Organization resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <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 Organization resource supports the search parameter type"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = 'type')"/>  
                <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 Organization resource supports the search parameter coverage-area"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').searchParam.name.where($this = 'coverage-area')"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the Organization resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Organization').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="06-OrganizationAffiliation"> 
        <name value="OrganizationAffiliation-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the OrganizationAffiliation resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the OrganizationAffiliation resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').interaction.code.where($this = 'search-type').exists()"/>  
                <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 OrganizationAffiliation resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').interaction.code.where($this = 'read').exists()"/>  
                <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 OrganizationAffiliation resource supports the OrganizationAffiliation:primary-organization searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchInclude.where($this = 'OrganizationAffiliation:primary-organization').exists()"/>  
                <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 OrganizationAffiliation resource supports the OrganizationAffiliation:participating-organization searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchInclude.where($this = 'OrganizationAffiliation:participating-organization').exists()"/>  
                <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 OrganizationAffiliation resource supports the OrganizationAffiliation:location searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchInclude.where($this = 'OrganizationAffiliation:location').exists()"/>  
                <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 OrganizationAffiliation resource supports the OrganizationAffiliation:service searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchInclude.where($this = 'OrganizationAffiliation:service').exists()"/>  
                <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 OrganizationAffiliation resource supports the OrganizationAffiliation:endpoint searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchInclude.where($this = 'OrganizationAffiliation:endpoint').exists()"/>  
                <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 OrganizationAffiliation resource supports the OrganizationAffiliation:network searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchInclude.where($this = 'OrganizationAffiliation:network').exists()"/>  
                <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 OrganizationAffiliation resource supports the search parameter primary-organization"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'primary-organization')"/>  
                <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 OrganizationAffiliation resource supports the search parameter participating-organization"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'participating-organization')"/>  
                <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 OrganizationAffiliation resource supports the search parameter location"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'location')"/>  
                <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 OrganizationAffiliation resource supports the search parameter service"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'service')"/>  
                <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 OrganizationAffiliation resource supports the search parameter network"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'network')"/>  
                <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 OrganizationAffiliation resource supports the search parameter endpoint"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'endpoint')"/>  
                <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 OrganizationAffiliation resource supports the search parameter role"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'role')"/>  
                <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 OrganizationAffiliation resource supports the search parameter specialty"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = 'specialty')"/>  
                <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 OrganizationAffiliation resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = '_id').exists())"/>  
                <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 OrganizationAffiliation resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the OrganizationAffiliation resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'OrganizationAffiliation').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="07-Practitioner"> 
        <name value="Practitioner-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the Practitioner resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the Practitioner resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Practitioner').interaction.code.where($this = 'search-type').exists()"/>  
                <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 Practitioner resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Practitioner').interaction.code.where($this = 'read').exists()"/>  
                <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 Practitioner resource supports the PractitionerRole:practitioner searchRevInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Practitioner').searchRevInclude.where($this = 'PractitionerRole:practitioner').exists()"/>  
                <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 Practitioner resource supports the search parameter name"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Practitioner').searchParam.name.where($this = 'name')"/>  
                <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 Practitioner resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Practitioner').searchParam.name.where($this = '_id').exists())"/>  
                <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 Practitioner resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'Practitioner').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <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 Practitioner resource supports the search parameter family"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Practitioner').searchParam.name.where($this = 'family')"/>  
                <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 Practitioner resource supports the search parameter given"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Practitioner').searchParam.name.where($this = 'given')"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the Practitioner resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Practitioner').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test>  
    <test id="08-PractitionerRole"> 
        <name value="PractitionerRole-Capabilities"/>  
        <description value="Introspect the response resource to confirm that the PractitionerRole resource is supported correctly in the CapabilityStatement"/>  
        <action> 
            <assert> 
                <extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"> 
                    <valueBoolean value="false"/> 
                </extension>  
                <description value="Confirm that the PractitionerRole resource supports the search operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').interaction.code.where($this = 'search-type').exists()"/>  
                <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 PractitionerRole resource supports the read operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').interaction.code.where($this = 'read').exists()"/>  
                <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 PractitionerRole resource supports the PractitionerRole:practitioner searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchInclude.where($this = 'PractitionerRole:practitioner').exists()"/>  
                <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 PractitionerRole resource supports the PractitionerRole:organization searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchInclude.where($this = 'PractitionerRole:organization').exists()"/>  
                <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 PractitionerRole resource supports the PractitionerRole:location searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchInclude.where($this = 'PractitionerRole:location').exists()"/>  
                <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 PractitionerRole resource supports the PractitionerRole:service searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchInclude.where($this = 'PractitionerRole:service').exists()"/>  
                <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 PractitionerRole resource supports the PractitionerRole:network searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchInclude.where($this = 'PractitionerRole:network').exists()"/>  
                <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 PractitionerRole resource supports the PractitionerRole:endpoint searchInclude parameter"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchInclude.where($this = 'PractitionerRole:endpoint').exists()"/>  
                <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 PractitionerRole resource supports the search parameter practitioner"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'practitioner')"/>  
                <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 PractitionerRole resource supports the search parameter organization"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'organization')"/>  
                <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 PractitionerRole resource supports the search parameter location"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'location')"/>  
                <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 PractitionerRole resource supports the search parameter service"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'service')"/>  
                <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 PractitionerRole resource supports the search parameter network"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'network')"/>  
                <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 PractitionerRole resource supports the search parameter endpoint"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'endpoint')"/>  
                <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 PractitionerRole resource supports the search parameter role"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'role')"/>  
                <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 PractitionerRole resource supports the search parameter specialty"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = 'specialty')"/>  
                <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 PractitionerRole resource supports the search parameter _id"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_id').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = '_id').exists())"/>  
                <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 PractitionerRole resource supports the search parameter _lastUpdated"/>  
                <direction value="response"/>  
                <expression value="iif($this.rest.searchParam.name.where($this = '_lastUpdated').exists(),true,$this.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').searchParam.name.where($this = '_lastUpdated').exists())"/>  
                <warningOnly value="false"/> 
            </assert> 
        </action>  
        <action> 
            <assert> 
                <description value="Confirm that the PractitionerRole resource SHOULD support the vread operation"/>  
                <direction value="response"/>  
                <expression value="CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'PractitionerRole').interaction.code.where($this = 'vread').exists()"/>  
                <warningOnly value="true"/> 
            </assert> 
        </action> 
    </test> 
</TestScript>