EDS Test Scripts
0.1.0 - ci-build
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
| Active as of 2025-08-18 |
{
"resourceType" : "TestScript",
"id" : "InternalServer-1InternalUseLoadEDSResources",
"meta" : {
"profile" : [
"http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"
]
},
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: TestScript InternalServer-1InternalUseLoadEDSResources</b></p><a name=\"InternalServer-1InternalUseLoadEDSResources\"> </a><a name=\"hcInternalServer-1InternalUseLoadEDSResources\"> </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-InternalServer-1InternalUseLoadEDSResources.html\">TestScript InternalServer-1InternalUseLoadEDSResources</a></p><p><b>version</b>: 0.1.0</p><p><b>name</b>: InternalServer-1InternalUseLoadEDSResources</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><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>EdsPatientDeliveryStatusCreateFixture</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <code>../Fixtures/EdsPatientDeliveryStatusCreateFixture.json</code></p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>EdsPatientDeliveryStatusFailureFixture</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <code>../Fixtures/EdsPatientDeliveryStatusFailureFixture.json</code></p></blockquote><blockquote><p><b>fixture</b></p><blockquote><p><b>id</b></p>EerEuaDeviceFixture</blockquote><p><b>autocreate</b>: false</p><p><b>autodelete</b>: false</p><p><b>resource</b>: <code>../Fixtures/EerEUADeviceFixture.json</code></p></blockquote><p><b>profile</b>: <a href=\"https://build.fhir.org/ig/medcomdk/dk-ehmi-eds/StructureDefinition-EdsPatientDeliveryStatus.html\">http://medcomehmi.dk/ig/eds/StructureDefinition/EdsPatientDeliveryStatus</a></p><blockquote><p><b>variable</b></p><p><b>name</b>: EdsPatientDeliveryStatusCreateFixtureRecorded</p><p><b>path</b>: recorded</p><p><b>sourceId</b>: EdsPatientDeliveryStatusCreateFixture</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: EdsPatientDeliveryStatusFailureFixtureRecorded</p><p><b>path</b>: recorded</p><p><b>sourceId</b>: EdsPatientDeliveryStatusFailureFixture</p></blockquote><blockquote><p><b>variable</b></p><p><b>name</b>: EerEuaDeviceFixtureIdentifier</p><p><b>path</b>: identifier.value</p><p><b>sourceId</b>: EerEuaDeviceFixture</p></blockquote><blockquote><p><b>test</b></p><blockquote><p><b>id</b></p>CreateNecessaryEDSResources</blockquote><p><b>name</b>: Create necessary EDS resources</p><p><b>description</b>: Creates the necessary resources for the EDS Server Component Tests</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>Resource</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><td><b>ResponseId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-search\">Test script operation code: search</a> (Search)</td><td>AuditEvent</td><td>GET all EdsPatientDeliveryStatusCreateFixture from previous test runs if they exist</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>?date=${EdsPatientDeliveryStatusCreateFixtureRecorded}</td><td>PreviousEdsPatientDeliveryStatusCreateFixtures</td></tr></table></blockquote><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>Resource</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><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-delete\">Test script operation code: delete</a> (Delete)</td><td>AuditEvent</td><td>Delete EdsPatientDeliveryStatusCreateFixture from previous test runs if it exists</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>?date=${EdsPatientDeliveryStatusCreateFixtureRecorded}</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>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).</td><td>in</td><td>200,204,404</td><td>false</td></tr></table></blockquote><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>Resource</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>SourceId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-create\">Test script operation code: create</a> (Create)</td><td>AuditEvent</td><td>Create EdsPatientDeliveryStatusCreateFixture</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>EdsPatientDeliveryStatusCreateFixture</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>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 201(Created).</td><td>response</td><td>created</td><td>false</td></tr></table></blockquote><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>Resource</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><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-delete\">Test script operation code: delete</a> (Delete)</td><td>AuditEvent</td><td>Delete EdsPatientDeliveryStatusFailureFixture from previous test runs if it exists</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>?date=${EdsPatientDeliveryStatusFailureFixtureRecorded}</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>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).</td><td>in</td><td>200,204,404</td><td>false</td></tr></table></blockquote><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>Resource</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>SourceId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-create\">Test script operation code: create</a> (Create)</td><td>AuditEvent</td><td>Create EdsPatientDeliveryStatusFailureFixture</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>EdsPatientDeliveryStatusFailureFixture</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>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 201(Created).</td><td>response</td><td>created</td><td>false</td></tr></table></blockquote><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>Resource</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><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-delete\">Test script operation code: delete</a> (Delete)</td><td>Device</td><td>Delete EerEuaDeviceFixture from previous test runs if it exists</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>?identifier=${EerEuaDeviceFixtureIdentifier}</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>Operator</b></td><td><b>ResponseCode</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).</td><td>in</td><td>200,204,404</td><td>false</td></tr></table></blockquote><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>Resource</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>SourceId</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://terminology.hl7.org/7.0.0/CodeSystem-testscript-operation-codes.html#testscript-operation-codes-create\">Test script operation code: create</a> (Create)</td><td>Device</td><td>Create EerEuaDeviceFixture</td><td>json</td><td>json</td><td>1</td><td>true</td><td>1</td><td>EerEuaDeviceFixture</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>Response</b></td><td><b>WarningOnly</b></td></tr><tr><td style=\"display: none\">*</td><td>Confirm that the returned HTTP status is 201(Created).</td><td>response</td><td>created</td><td>false</td></tr></table></blockquote></blockquote></div>"
},
"url" : "http://medcomehmi.dk/ig/edstestscripts/InternalServer-1InternalUseLoadEDSResources",
"version" : "0.1.0",
"name" : "InternalServer-1InternalUseLoadEDSResources",
"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"
}
}
],
"fixture" : [
{
"id" : "EdsPatientDeliveryStatusCreateFixture",
"autocreate" : false,
"autodelete" : false,
"resource" : {
"reference" : "../Fixtures/EdsPatientDeliveryStatusCreateFixture.json"
}
},
{
"id" : "EdsPatientDeliveryStatusFailureFixture",
"autocreate" : false,
"autodelete" : false,
"resource" : {
"reference" : "../Fixtures/EdsPatientDeliveryStatusFailureFixture.json"
}
},
{
"id" : "EerEuaDeviceFixture",
"autocreate" : false,
"autodelete" : false,
"resource" : {
"reference" : "../Fixtures/EerEUADeviceFixture.json"
}
}
],
"profile" : [
{
🔗 "id" : "eds-patient-delivery-status",
"reference" : "http://medcomehmi.dk/ig/eds/StructureDefinition/EdsPatientDeliveryStatus"
}
],
"variable" : [
{
"name" : "EdsPatientDeliveryStatusCreateFixtureRecorded",
"path" : "recorded",
"sourceId" : "EdsPatientDeliveryStatusCreateFixture"
},
{
"name" : "EdsPatientDeliveryStatusFailureFixtureRecorded",
"path" : "recorded",
"sourceId" : "EdsPatientDeliveryStatusFailureFixture"
},
{
"name" : "EerEuaDeviceFixtureIdentifier",
"path" : "identifier.value",
"sourceId" : "EerEuaDeviceFixture"
}
],
"test" : [
{
"id" : "CreateNecessaryEDSResources",
"name" : "Create necessary EDS resources",
"description" : "Creates the necessary resources for the EDS Server Component Tests",
"action" : [
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "search"
},
"resource" : "AuditEvent",
"description" : "GET all EdsPatientDeliveryStatusCreateFixture from previous test runs if they exist",
"accept" : "json",
"contentType" : "json",
"destination" : 1,
"encodeRequestUrl" : true,
"origin" : 1,
"params" : "?date=${EdsPatientDeliveryStatusCreateFixtureRecorded}",
"responseId" : "PreviousEdsPatientDeliveryStatusCreateFixtures"
}
},
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "delete"
},
"resource" : "AuditEvent",
"description" : "Delete EdsPatientDeliveryStatusCreateFixture from previous test runs if it exists",
"accept" : "json",
"contentType" : "json",
"destination" : 1,
"encodeRequestUrl" : true,
"origin" : 1,
"params" : "?date=${EdsPatientDeliveryStatusCreateFixtureRecorded}"
}
},
{
"assert" : {
"description" : "Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).",
"operator" : "in",
"responseCode" : "200,204,404",
"warningOnly" : false
}
},
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "create"
},
"resource" : "AuditEvent",
"description" : "Create EdsPatientDeliveryStatusCreateFixture",
"accept" : "json",
"contentType" : "json",
"destination" : 1,
"encodeRequestUrl" : true,
"origin" : 1,
"sourceId" : "EdsPatientDeliveryStatusCreateFixture"
}
},
{
"assert" : {
"description" : "Confirm that the returned HTTP status is 201(Created).",
"direction" : "response",
"response" : "created",
"warningOnly" : false
}
},
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "delete"
},
"resource" : "AuditEvent",
"description" : "Delete EdsPatientDeliveryStatusFailureFixture from previous test runs if it exists",
"accept" : "json",
"contentType" : "json",
"destination" : 1,
"encodeRequestUrl" : true,
"origin" : 1,
"params" : "?date=${EdsPatientDeliveryStatusFailureFixtureRecorded}"
}
},
{
"assert" : {
"description" : "Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).",
"operator" : "in",
"responseCode" : "200,204,404",
"warningOnly" : false
}
},
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "create"
},
"resource" : "AuditEvent",
"description" : "Create EdsPatientDeliveryStatusFailureFixture",
"accept" : "json",
"contentType" : "json",
"destination" : 1,
"encodeRequestUrl" : true,
"origin" : 1,
"sourceId" : "EdsPatientDeliveryStatusFailureFixture"
}
},
{
"assert" : {
"description" : "Confirm that the returned HTTP status is 201(Created).",
"direction" : "response",
"response" : "created",
"warningOnly" : false
}
},
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "delete"
},
"resource" : "Device",
"description" : "Delete EerEuaDeviceFixture from previous test runs if it exists",
"accept" : "json",
"contentType" : "json",
"destination" : 1,
"encodeRequestUrl" : true,
"origin" : 1,
"params" : "?identifier=${EerEuaDeviceFixtureIdentifier}"
}
},
{
"assert" : {
"description" : "Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).",
"operator" : "in",
"responseCode" : "200,204,404",
"warningOnly" : false
}
},
{
"operation" : {
"type" : {
"system" : "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code" : "create"
},
"resource" : "Device",
"description" : "Create EerEuaDeviceFixture",
"accept" : "json",
"contentType" : "json",
"destination" : 1,
"encodeRequestUrl" : true,
"origin" : 1,
"sourceId" : "EerEuaDeviceFixture"
}
},
{
"assert" : {
"description" : "Confirm that the returned HTTP status is 201(Created).",
"direction" : "response",
"response" : "created",
"warningOnly" : false
}
}
]
}
]
}