@prefix fhir: . @prefix owl: . @prefix rdfs: . @prefix xsd: . # - resource ------------------------------------------------------------------- a fhir:TestScript ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "USCoreCapabilityStatementjson"] ; # fhir:meta [ fhir:profile ( [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"^^xsd:anyURI ; fhir:link ] ) ] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div "

Generated Narrative: TestScript

Resource TestScript "USCoreCapabilityStatementjson"

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/USCoreCapabilityStatementjson

version: 3.1.1-1

name: USCoreCapabilityStatementjson

title: Tests for CapabilityStatement using the FHIR CapabilityStatement Resource JSON

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 JSON 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: json

contentType: json

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
" ] ; # fhir:extension ( [ fhir:extension ( [ fhir:url [ fhir:v "ruleId"^^xsd:anyURI ] ; fhir:value [ fhir:v "rule-verifyTLS" ] ] [ fhir:url [ fhir:v "path"^^xsd:anyURI ] ; fhir:value [ fhir:v "./VerifyTLS.groovy" ] ] ) ; fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule"^^xsd:anyURI ] ] ) ; # fhir:url [ fhir:v "http://hl7.org/fhir/us/core-tg/TestScript/USCoreCapabilityStatementjson"^^xsd:anyURI] ; # fhir:version [ fhir:v "3.1.1-1"] ; # fhir:name [ fhir:v "USCoreCapabilityStatementjson"] ; # fhir:title [ fhir:v "Tests for CapabilityStatement using the FHIR CapabilityStatement Resource JSON"] ; # fhir:status [ fhir:v "active"] ; # fhir:date [ fhir:v "2023-08-25"^^xsd:date] ; # fhir:publisher [ fhir:v "HL7 FHIR Infrastructure WG"] ; # fhir:contact ( [ fhir:name [ fhir:v "HL7 FHIR Infrastructure WG" ] ; fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://hl7.org/Special/committees/fiwg" ] ] ) ] [ fhir:name [ fhir:v "Richard Ettema" ] ; fhir:telecom ( [ fhir:system [ fhir:v "email" ] ; fhir:value [ fhir:v "mailto:richard.ettema@aegis.net" ] ] ) ] ) ; # fhir:description [ fhir:v "Tests for CapabilityStatement using the FHIR CapabilityStatement Resource using JSON format."] ; # fhir:jurisdiction ( [ fhir:coding ( [ fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ; fhir:code [ fhir:v "US" ] ] ) ] ) ; # fhir:copyright [ fhir:v "(c) Health Level 7 (HL7) International 2023"] ; # fhir:origin ( [ fhir:index [ fhir:v "1"^^xsd:integer ] ; fhir:profile [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"^^xsd:anyURI ] ; fhir:code [ fhir:v "FHIR-Client" ] ] ] ) ; # fhir:destination ( [ fhir:index [ fhir:v "1"^^xsd:integer ] ; fhir:profile [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"^^xsd:anyURI ] ; fhir:code [ fhir:v "FHIR-Server" ] ] ] ) ; # fhir:profile ( [ fhir:link ; fhir:id [ fhir:v "CapabilityProfile" ] ; fhir:reference [ fhir:v "http://hl7.org/fhir/StructureDefinition/CapabilityStatement" ] ] ) ; # fhir:test ( [ fhir:id [ fhir:v "01-FHIRServerConformance" ] ; fhir:name [ fhir:v "01-FHIRServerConformance" ] ; fhir:description [ fhir:v "FHIR Server Supports the Conformance Interactions" ] ; fhir:action ( [ fhir:operation [ fhir:type [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ; fhir:code [ fhir:v "capabilities" ] ] ; fhir:description [ fhir:v "GET on Metadata" ] ; fhir:accept [ fhir:v "json" ] ; fhir:contentType [ fhir:v "json" ] ; fhir:destination [ fhir:v "1"^^xsd:integer ] ; fhir:encodeRequestUrl [ fhir:v "true"^^xsd:boolean ] ; fhir:origin [ fhir:v "1"^^xsd:integer ] ; fhir:params [ fhir:v "/metadata" ] ; fhir:requestHeader ( [ fhir:field [ fhir:v "Authorization" ] ; fhir:value [ fhir:v "none" ] ] ) ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ; fhir:description [ fhir:v "Confirm that the returned response code is 200 OK or 201 Created." ] ; fhir:direction [ fhir:v "response" ] ; fhir:operator [ fhir:v "in" ] ; fhir:responseCode [ fhir:v "200,201" ] ; fhir:warningOnly [ fhir:v "false"^^xsd:boolean ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ; fhir:description [ fhir:v "Confirm that the returned response payload is a CapabilityStatement resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:resource [ fhir:v "CapabilityStatement" ] ; fhir:warningOnly [ fhir:v "false"^^xsd:boolean ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ; fhir:description [ fhir:v "Verify the base Url uses https" ] ; fhir:direction [ fhir:v "response" ] ; fhir:operator [ fhir:v "contains" ] ; fhir:requestURL [ fhir:v "https" ] ; fhir:warningOnly [ fhir:v "false"^^xsd:boolean ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ fhir:v "false"^^xsd:boolean ] ] [ fhir:extension ( [ fhir:url [ fhir:v "ruleId"^^xsd:anyURI ] ; fhir:value [ fhir:v "rule-verifyTLS" ] ] [ fhir:extension ( [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ fhir:v "endpointName" ] ] [ fhir:url [ fhir:v "value"^^xsd:anyURI ] ; fhir:value [ fhir:v "Metadata Endpoint" ] ] ) ; fhir:url [ fhir:v "param"^^xsd:anyURI ] ] [ fhir:extension ( [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ fhir:v "endpointURL" ] ] [ fhir:url [ fhir:v "value"^^xsd:anyURI ] ; fhir:value [ fhir:v "${dest1SystemConfig.baseUrl}/metadata" ] ] ) ; fhir:url [ fhir:v "param"^^xsd:anyURI ] ] ) ; fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule"^^xsd:anyURI ] ] ) ; fhir:description [ fhir:v "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." ] ; fhir:direction [ fhir:v "response" ] ; fhir:warningOnly [ fhir:v "false"^^xsd:boolean ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ; fhir:description [ fhir:v "Expect fhirVersion is 4.0.1" ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.fhirVersion" ] ; fhir:value [ fhir:v "4.0.1" ] ; fhir:warningOnly [ fhir:v "false"^^xsd:boolean ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ; fhir:description [ fhir:v "Validate for json support against the Capability profile" ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.format" ] ; fhir:value [ fhir:v "json,application/json,application/fhir+json" ] ; fhir:warningOnly [ fhir:v "false"^^xsd:boolean ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ fhir:v "false"^^xsd:boolean ] ] ) ; fhir:description [ fhir:v "Verify that at lease one non-patient US Core profile is supported" ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.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()>0" ] ; fhir:warningOnly [ fhir:v "false"^^xsd:boolean ] ] ] ) ] ) . # a fhir:StructureDefinition . # -------------------------------------------------------------------------------------