@prefix fhir: . @prefix owl: . @prefix rdf: . @prefix rdfs: . @prefix xsd: . # - resource ------------------------------------------------------------------- a fhir:TestScript ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "fastconsentcapabilitiesxml"] ; # 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 fastconsentcapabilitiesxml

StructureDefinition Work Group: cbcc

url: TestScript FAST Consent Capabilities XML

version: 0.1.0

name: FASTConsentCapabilitiesXML

title: FAST Consent Capabilities XML

status: Active

date: 2025-05-22

publisher: HL7 International / Community Based Collaborative Care

contact: HL7 International / Community Based Collaborative Care: http://www.hl7.org/Special/committees/cbcc

description:

Test a FAST Consent Management Server CapabilityStatement using XML Format

\n

jurisdiction: United States of America

copyright:

(c) HL7 International / Community Based Collaborative Care 2025

\n

Origins

-IndexProfile
*1Test script profile origin type FHIR-Client: FHIR Client

Destinations

-IndexProfile
*1Test script profile destination type FHIR-Server: FHIR Server

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

test

id

FASTConsentCapabilitiesXML

name: FASTConsentCapabilitiesXML

description: Test a FAST Consent Management Server CapabilityStatement using XML Format against the destination server and assert successful response.

action

Operations

-TypeDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code metadata: metadataGet the CapabilityStatementxmlxml1true1metadata

action

Asserts

-ExtensionDescriptionDirectionResponseCodeWarningOnly
*Confirm that the returned response code is 200 OK.response200false

action

Asserts

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

action

Asserts

-ExtensionDescriptionDirectionValidateProfileIdWarningOnly
*Confirm that the returned CapabilityStatement conforms to the base FHIR specification.responseCapabilityStatementProfilefalse

action

Asserts

-ExtensionDescriptionDirectionPathValueWarningOnly
*Confirm that the returned CapabilityStatement contains the fhirVersion 4.0.1.response$.fhirVersion4.0.1false

action

Asserts

-ExtensionDescriptionDirectionExpressionWarningOnly
*Confirm that the returned CapabilityStatement declares support for the Consent resource.responseCapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Consent').exists()false

action

Asserts

-ExtensionDescriptionDirectionExpressionWarningOnly
*Confirm that the returned CapabilityStatement declares support for the FAST Consent profile.responseCapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Consent' and supportedProfile = 'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent').exists()false
"^^rdf:XMLLiteral ] ; # fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "cbcc" ] ] ) ; # fhir:url [ fhir:v "http://hl7.org/fhir/us/consent-management-tg/TestScript/fastconsentcapabilitiesxml"^^xsd:anyURI] ; # fhir:version [ fhir:v "0.1.0"] ; # fhir:name [ fhir:v "FASTConsentCapabilitiesXML"] ; # fhir:title [ fhir:v "FAST Consent Capabilities XML"] ; # fhir:status [ fhir:v "active"] ; # fhir:date [ fhir:v "2025-05-22"^^xsd:date] ; # fhir:publisher [ fhir:v "HL7 International / Community Based Collaborative Care"] ; # fhir:contact ( [ fhir:name [ fhir:v "HL7 International / Community Based Collaborative Care" ] ; fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/cbcc" ] ] ) ] ) ; # fhir:description [ fhir:v "Test a FAST Consent Management Server CapabilityStatement using XML Format"] ; # fhir:jurisdiction ( [ fhir:coding ( [ fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ; fhir:code [ fhir:v "US" ] ; fhir:display [ fhir:v "United States of America" ] ] ) ] ) ; # fhir:copyright [ fhir:v "(c) HL7 International / Community Based Collaborative Care 2025"] ; # fhir:origin ( [ fhir:index [ fhir:v 1 ] ; 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 ] ; 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 "CapabilityStatementProfile" ] ; fhir:reference [ fhir:v "http://hl7.org/fhir/StructureDefinition/CapabilityStatement" ] ] ) ; # fhir:test ( [ fhir:id [ fhir:v "FASTConsentCapabilitiesXML" ] ; fhir:name [ fhir:v "FASTConsentCapabilitiesXML" ] ; fhir:description [ fhir:v "Test a FAST Consent Management Server CapabilityStatement using XML Format against the destination server and assert successful response." ] ; fhir:action ( [ fhir:operation [ fhir:type [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/testscript-operation-codes"^^xsd:anyURI ] ; fhir:code [ fhir:v "metadata" ] ] ; fhir:description [ fhir:v "Get the CapabilityStatement" ] ; fhir:accept [ fhir:v "xml" ] ; fhir:contentType [ fhir:v "xml" ] ; fhir:destination [ fhir:v 1 ] ; fhir:encodeRequestUrl [ fhir:v true ] ; fhir:origin [ fhir:v 1 ] ; fhir:params [ fhir:v "metadata" ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ a fhir:boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the returned response code is 200 OK." ] ; fhir:direction [ fhir:v "response" ] ; fhir:responseCode [ fhir:v "200" ] ; fhir:warningOnly [ fhir:v false ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ a fhir:boolean ; fhir:v false ] ] ) ; 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 ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ a fhir:boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the returned CapabilityStatement conforms to the base FHIR specification." ] ; fhir:direction [ fhir:v "response" ] ; fhir:validateProfileId [ fhir:v "CapabilityStatementProfile" ] ; fhir:warningOnly [ fhir:v false ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ a fhir:boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the returned CapabilityStatement contains the fhirVersion 4.0.1." ] ; fhir:direction [ fhir:v "response" ] ; fhir:path [ fhir:v "$.fhirVersion" ] ; fhir:value [ fhir:v "4.0.1" ] ; fhir:warningOnly [ fhir:v false ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ a fhir:boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the returned CapabilityStatement declares support for the Consent resource." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Consent').exists()" ] ; fhir:warningOnly [ fhir:v false ] ] ] [ fhir:assert [ fhir:extension ( [ fhir:url [ fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail"^^xsd:anyURI ] ; fhir:value [ a fhir:boolean ; fhir:v false ] ] ) ; fhir:description [ fhir:v "Confirm that the returned CapabilityStatement declares support for the FAST Consent profile." ] ; fhir:direction [ fhir:v "response" ] ; fhir:expression [ fhir:v "CapabilityStatement.rest.where(mode = 'server').resource.where(type = 'Consent' and supportedProfile = 'http://hl7.org/fhir/us/consent-management/StructureDefinition/FASTConsent').exists()" ] ; fhir:warningOnly [ fhir:v false ] ] ] ) ] ) . # a fhir:StructureDefinition . # -------------------------------------------------------------------------------------