US Core Testing Guide
4.0.0-1 - ci-build United States of America flag

US Core Testing Guide - Local Development build (v4.0.0-1). See the Directory of published versions

TestScript: Tests for CapabilityStatement using the FHIR CapabilityStatement Resource XML

Official URL: http://hl7.org/fhir/us/core-tg/TestScript/USCoreCapabilityStatementxml Version: 4.0.0-1
Active as of 2023-08-25 Computable Name: USCoreCapabilityStatementxml

Copyright/Legal: (c) Health Level 7 (HL7) International 2023

Tests for CapabilityStatement using the FHIR CapabilityStatement Resource using XML format.

Generated Narrative: TestScript

Resource TestScript "USCoreCapabilityStatementxml"

Profile: AEGIS Touchstone Testing TestScript Profile

AEGIS Touchstone Testing TestScript Rule Extension

url

ruleId

value: rule-verifyTLS

url

path

value: ./VerifyTLS.groovy

url: http://hl7.org/fhir/us/core-tg/TestScript/USCoreCapabilityStatementxml

version: 4.0.0-1

name: USCoreCapabilityStatementxml

title: Tests for CapabilityStatement using the FHIR CapabilityStatement Resource XML

status: active

date: 2023-08-25

publisher: HL7 FHIR Infrastructure WG

contact: HL7 FHIR Infrastructure WG: https://hl7.org/Special/committees/fiwg, Richard Ettema: mailto:richard.ettema@aegis.net

description: Tests for CapabilityStatement using the FHIR CapabilityStatement Resource using XML format.

jurisdiction: United States of America (ISO 3166-1 Codes for the representation of names of countries and their subdivisions — Part 1: Country code#US)

copyright: (c) Health Level 7 (HL7) International 2023

Origins

-IndexProfile
*1FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null')

Destinations

-IndexProfile
*1FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null')

profile: http://hl7.org/fhir/StructureDefinition/CapabilityStatement "CapabilityStatement"

test

id

01-FHIRServerConformance

name: 01-FHIRServerConformance

description: FHIR Server Supports the Conformance Interactions

action

operation

type: Capabilities (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code capabilities = 'Capabilities', stated as 'null')

description: GET on Metadata

accept: xml

contentType: xml

destination: 1

encodeRequestUrl: true

origin: 1

params: /metadata

requestHeader

action

Asserts

-ExtensionDescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned response code is 200 OK or 201 Created.responsein200,201false

action

Asserts

-ExtensionDescriptionDirectionResourceWarningOnly
*Confirm that the returned response payload is a CapabilityStatement resource.responseCapabilityStatementfalse

action

Asserts

-ExtensionDescriptionDirectionOperatorRequestURLWarningOnly
*Verify the base Url uses httpsresponsecontainshttpsfalse

action

Asserts

-ExtensionDescriptionDirectionWarningOnly
*, OAuth 2.0 authorize endpoint secured by transport layer security. Apps MUST assure that sensitive information (authentication secrets, authorization codes, tokens) is transmitted ONLY to authenticated servers, over TLS-secured channels.responsefalse

action

Asserts

-ExtensionDescriptionDirectionExpressionValueWarningOnly
*Expect fhirVersion is 4.0.1responseCapabilityStatement.fhirVersion4.0.1false

action

Asserts

-ExtensionDescriptionDirectionExpressionValueWarningOnly
*Validate for json support against the Capability profileresponseCapabilityStatement.formatjson,application/json,application/fhir+jsonfalse

action

Asserts

-ExtensionDescriptionDirectionExpressionWarningOnly
*Verify that at lease one non-patient US Core profile is supportedresponseCapabilityStatement.rest.resource.where(supportedProfile.startsWith('http://hl7.org/fhir/us/core/StructureDefinition/') and supportedProfile!='http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient').count()>0false