EDS Test Scripts
0.1.0 - ci-build Denmark flag

EDS Test Scripts, published by MedCom. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/medcomdk/dk-ehmi-eds-testscripts/ and changes regularly. See the Directory of published versions

: REST Interface Tests for EDS Server Component XML - TTL Representation

Active as of 2025-08-18

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:TestScript ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Server-2RESTInterfaceTestsxml"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"^^xsd:anyURI ;
fhir:l <http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript Server-2RESTInterfaceTestsxml</b></p><a name=\"Server-2RESTInterfaceTestsxml\"> </a><a name=\"hcServer-2RESTInterfaceTestsxml\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <code>http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript</code></p></div><p><b>url</b>: <a href=\"TestScript-Server-2RESTInterfaceTestsxml.html\">TestScript Server-2RESTInterfaceTestsxml</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: Server-2RESTInterfaceTestsxml</p><p><b>status</b>: Aktiv</p><p><b>date</b>: 2025-08-18</p><p><b>publisher</b>: MedCom</p><p><b>contact</b>: MedCom: <a href=\"https://medcom.dk\">https://medcom.dk</a>,<a href=\"mailto:ehmi@medcom.dk\">ehmi@medcom.dk</a></p><p><b>jurisdiction</b>: <span title=\"Codes:{urn:iso:std:iso:3166 DK}\">Denmark</span></p><p><b>copyright</b>: </p><div><p>MedCom 2025</p>\n</div><h3>Origins</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-profile-origin-types.html#testscript-profile-origin-types-FHIR-Client\">Test script profile origin type: FHIR-Client</a> (FHIR Client)</td></tr></table><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Index</b></td><td><b>Profile</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-profile-destination-types.html#testscript-profile-destination-types-FHIR-Server\">Test script profile destination type: FHIR-Server</a> (FHIR Server)</td></tr></table><p><b>profile</b>: <a href=\"http://hl7.org/fhir/R4/capabilitystatement.html\">http://hl7.org/fhir/StructureDefinition/CapabilityStatement</a></p><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>Disallow updates, patches &amp; deletions to AuditEvents</blockquote><p><b>name</b>: Disallow-actions-for-AuditEvents</p><p><b>description</b>: Ensure that the EDS Server Component disallows updates, patches &amp; deletions to AuditEvent resources</p><blockquote><p><b>action</b></p><h3>Operations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Description</b></td><td><b>Accept</b></td><td><b>ContentType</b></td><td><b>Destination</b></td><td><b>EncodeRequestUrl</b></td><td><b>Origin</b></td><td><b>Params</b></td></tr><tr><td style=\"display: none\">*</td><td>testscript-operation-codes-extended: metadata (metadata)</td><td>Retrieve the server's CapabilityStatement</td><td>xml</td><td>xml</td><td>1</td><td>false</td><td>1</td><td>metadata</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Ensure the HTTP status is 200(OK)</td><td>response</td><td>200</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Resource</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Ensure the resource type is CapabilityStatement</td><td>response</td><td>CapabilityStatement</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>ValidateProfileId</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Ensure that the returned CapabilityStatement is valid</td><td>response</td><td>capabilities-profile</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Expression</b></td><td><b>Operator</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Ensure the HAPI FHIR version is atleast 8.2</td><td>response</td><td>software.version.substring(0,3).toDecimal()</td><td>greaterThan</td><td>8.1</td><td>false</td></tr></table></blockquote><blockquote><p><b>action</b></p><h3>Asserts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Description</b></td><td><b>Direction</b></td><td><b>Expression</b></td><td><b>Operator</b></td><td><b>Value</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Ensure that updates, patches &amp; deletions to AuditEvent resources are disallowed</td><td>response</td><td>rest.resource.where(type = 'AuditEvent').interaction.where(code = 'update' or code = 'patch' or code = 'delete').count()</td><td>equals</td><td>0</td><td>false</td></tr></table></blockquote></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
fhir:v "http://medcomehmi.dk/ig/edstestscripts/Server-2RESTInterfaceTestsxml"^^xsd:anyURI ;
fhir:l <http://medcomehmi.dk/ig/edstestscripts/Server-2RESTInterfaceTestsxml>
  ] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "Server-2RESTInterfaceTestsxml"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2025-08-18"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "MedCom"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "MedCom" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "https://medcom.dk" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "ehmi@medcom.dk" ]     ] )
  ] ) ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [
fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
fhir:l <urn:iso:std:iso:3166>       ] ;
fhir:code [ fhir:v "DK" ] ;
fhir:display [ fhir:v "Denmark" ]     ] )
  ] ) ; # 
  fhir:copyright [ fhir:v "MedCom 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:l <http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types>       ] ;
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:l <http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types>       ] ;
fhir:code [ fhir:v "FHIR-Server" ]     ]
  ] ) ; # 
  fhir:profile ( [
fhir:l <http://hl7.org/fhir/StructureDefinition/CapabilityStatement> ;
fhir:id [ fhir:v "capabilities-profile" ] ;
fhir:reference [ fhir:v "http://hl7.org/fhir/StructureDefinition/CapabilityStatement" ]
  ] ) ; # 
  fhir:test ( [
fhir:id [ fhir:v "Disallow updates, patches & deletions to AuditEvents" ] ;
fhir:name [ fhir:v "Disallow-actions-for-AuditEvents" ] ;
fhir:description [ fhir:v "Ensure that the EDS Server Component disallows updates, patches & deletions to AuditEvent resources" ] ;
    ( fhir:action [
fhir:operation [
fhir:type [
fhir:system [
fhir:v "http://touchstone.com/fhir/testscript-operation-codes-extended"^^xsd:anyURI ;
fhir:l <http://touchstone.com/fhir/testscript-operation-codes-extended>           ] ;
fhir:code [ fhir:v "metadata" ]         ] ;
fhir:description [ fhir:v "Retrieve the server's CapabilityStatement" ] ;
fhir:accept [ fhir:v "xml" ] ;
fhir:contentType [ fhir:v "xml" ] ;
fhir:destination [ fhir:v 1 ] ;
fhir:encodeRequestUrl [ fhir:v false ] ;
fhir:origin [ fhir:v 1 ] ;
fhir:params [ fhir:v "metadata" ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Ensure the HTTP status is 200(OK)" ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:responseCode [ fhir:v "200" ] ;
fhir:warningOnly [ fhir:v false ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Ensure the resource type is CapabilityStatement" ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:resource [ fhir:v "CapabilityStatement" ] ;
fhir:warningOnly [ fhir:v false ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Ensure that the returned CapabilityStatement is valid" ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:validateProfileId [ fhir:v "capabilities-profile" ] ;
fhir:warningOnly [ fhir:v false ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Ensure the HAPI FHIR version is atleast 8.2" ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:expression [ fhir:v "software.version.substring(0,3).toDecimal()" ] ;
fhir:operator [ fhir:v "greaterThan" ] ;
fhir:value [ fhir:v "8.1" ] ;
fhir:warningOnly [ fhir:v false ]       ]     ] [
fhir:assert [
fhir:description [ fhir:v "Ensure that updates, patches & deletions to AuditEvent resources are disallowed" ] ;
fhir:direction [ fhir:v "response" ] ;
fhir:expression [ fhir:v "rest.resource.where(type = 'AuditEvent').interaction.where(code = 'update' or code = 'patch' or code = 'delete').count()" ] ;
fhir:operator [ fhir:v "equals" ] ;
fhir:value [ fhir:v "0" ] ;
fhir:warningOnly [ fhir:v false ]       ]     ] )
  ] ) . # 

<http://hl7.org/fhir/StructureDefinition/CapabilityStatement> a fhir:StructureDefinition .