FHIR IG analytics| Package | dk.ehmi.eds.testscripts |
| Resource Type | TestScript |
| Id | TestScript-Server-2RESTInterfaceTestsxml.json |
| FHIR Version | R4 |
| Source | https://build.fhir.org/ig/medcomdk/dk-ehmi-eds-testscripts/TestScript-Server-2RESTInterfaceTestsxml.html |
| URL | http://medcomehmi.dk/ig/edstestscripts/Server-2RESTInterfaceTestsxml |
| Version | 0.1.0 |
| Status | active |
| Date | 2025-08-18 |
| Name | Server-2RESTInterfaceTestsxml |
| Realm | dk |
| Copyright | MedCom 2025 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: TestScript Server-2RESTInterfaceTestsxml
Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript
url: TestScript Server-2RESTInterfaceTestsxml
version: 0.1.0
name: Server-2RESTInterfaceTestsxml
status: Aktiv
date: 2025-08-18
publisher: MedCom
contact: MedCom: https://medcom.dk,ehmi@medcom.dk
jurisdiction: Denmark
copyright:
MedCom 2025
| Index | Profile |
| 1 | Test script profile origin type: FHIR-Client (FHIR Client) |
| Index | Profile |
| 1 | Test script profile destination type: FHIR-Server (FHIR Server) |
profile: http://hl7.org/fhir/StructureDefinition/CapabilityStatement
test
id
Disallow updates, patches & deletions to AuditEventsname: Disallow-actions-for-AuditEvents
description: Ensure that the EDS Server Component disallows updates, patches & deletions to AuditEvent resources
action
Operations
Type Description Accept ContentType Destination EncodeRequestUrl Origin Params testscript-operation-codes-extended: metadata (metadata) Retrieve the server's CapabilityStatement xml xml 1 false 1 metadata action
Asserts
Description Direction ResponseCode WarningOnly Ensure the HTTP status is 200(OK) response 200 false action
Asserts
Description Direction Resource WarningOnly Ensure the resource type is CapabilityStatement response CapabilityStatement false action
Asserts
Description Direction ValidateProfileId WarningOnly Ensure that the returned CapabilityStatement is valid response capabilities-profile false action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the HAPI FHIR version is atleast 8.2 response software.version.substring(0,3).toDecimal() greaterThan 8.1 false action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure that updates, patches & deletions to AuditEvent resources are disallowed response rest.resource.where(type = 'AuditEvent').interaction.where(code = 'update' or code = 'patch' or code = 'delete').count() equals 0 false
{
"resourceType": "TestScript",
"id": "Server-2RESTInterfaceTestsxml",
"meta": {
"profile": [
"http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"
]
},
"text": {
"status": "generated",
"div": "<!-- snip (see above) -->"
},
"url": "http://medcomehmi.dk/ig/edstestscripts/Server-2RESTInterfaceTestsxml",
"version": "0.1.0",
"name": "Server-2RESTInterfaceTestsxml",
"status": "active",
"date": "2025-08-18",
"publisher": "MedCom",
"contact": [
{
"name": "MedCom",
"telecom": [
{
"system": "url",
"value": "https://medcom.dk"
},
{
"system": "email",
"value": "ehmi@medcom.dk"
}
]
}
],
"jurisdiction": [
{
"coding": [
{
"system": "urn:iso:std:iso:3166",
"code": "DK",
"display": "Denmark"
}
]
}
],
"copyright": "MedCom 2025",
"origin": [
{
"index": 1,
"profile": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types",
"code": "FHIR-Client"
}
}
],
"destination": [
{
"index": 1,
"profile": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
"code": "FHIR-Server"
}
}
],
"profile": [
{
"id": "capabilities-profile",
"reference": "http://hl7.org/fhir/StructureDefinition/CapabilityStatement"
}
],
"test": [
{
"id": "Disallow updates, patches & deletions to AuditEvents",
"name": "Disallow-actions-for-AuditEvents",
"description": "Ensure that the EDS Server Component disallows updates, patches & deletions to AuditEvent resources",
"action": [
{
"operation": {
"type": {
"system": "http://touchstone.com/fhir/testscript-operation-codes-extended",
"code": "metadata"
},
"description": "Retrieve the server's CapabilityStatement",
"accept": "xml",
"contentType": "xml",
"destination": 1,
"encodeRequestUrl": false,
"origin": 1,
"params": "metadata"
}
},
{
"assert": {
"description": "Ensure the HTTP status is 200(OK)",
"direction": "response",
"responseCode": "200",
"warningOnly": false
}
},
{
"assert": {
"description": "Ensure the resource type is CapabilityStatement",
"direction": "response",
"resource": "CapabilityStatement",
"warningOnly": false
}
},
{
"assert": {
"description": "Ensure that the returned CapabilityStatement is valid",
"direction": "response",
"validateProfileId": "capabilities-profile",
"warningOnly": false
}
},
{
"assert": {
"description": "Ensure the HAPI FHIR version is atleast 8.2",
"direction": "response",
"expression": "software.version.substring(0,3).toDecimal()",
"operator": "greaterThan",
"value": "8.1",
"warningOnly": false
}
},
{
"assert": {
"description": "Ensure that updates, patches & deletions to AuditEvent resources are disallowed",
"direction": "response",
"expression": "rest.resource.where(type = 'AuditEvent').interaction.where(code = 'update' or code = 'patch' or code = 'delete').count()",
"operator": "equals",
"value": "0",
"warningOnly": false
}
}
]
}
]
}