FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagedk.ehmi.eds.testscripts
Resource TypeTestScript
IdTestScript-InternalServer-1InternalUseLoadEDSResources.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/medcomdk/dk-ehmi-eds-testscripts/TestScript-InternalServer-1InternalUseLoadEDSResources.html
URLhttp://medcomehmi.dk/ig/edstestscripts/InternalServer-1InternalUseLoadEDSResources
Version0.1.0
Statusactive
Date2025-08-18
NameInternalServer-1InternalUseLoadEDSResources
Realmdk
CopyrightMedCom 2025

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestScript InternalServer-1InternalUseLoadEDSResources

Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript

url: TestScript InternalServer-1InternalUseLoadEDSResources

version: 0.1.0

name: InternalServer-1InternalUseLoadEDSResources

status: Aktiv

date: 2025-08-18

publisher: MedCom

contact: MedCom: https://medcom.dk,ehmi@medcom.dk

jurisdiction: Denmark

copyright:

MedCom 2025

Origins

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

Destinations

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

fixture

id

EdsPatientDeliveryStatusCreateFixture

autocreate: false

autodelete: false

resource: ../Fixtures/EdsPatientDeliveryStatusCreateFixture.json

fixture

id

EdsPatientDeliveryStatusFailureFixture

autocreate: false

autodelete: false

resource: ../Fixtures/EdsPatientDeliveryStatusFailureFixture.json

fixture

id

EerEuaDeviceFixture

autocreate: false

autodelete: false

resource: ../Fixtures/EerEUADeviceFixture.json

profile: http://medcomehmi.dk/ig/eds/StructureDefinition/EdsPatientDeliveryStatus

variable

name: EdsPatientDeliveryStatusCreateFixtureRecorded

path: recorded

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: EdsPatientDeliveryStatusFailureFixtureRecorded

path: recorded

sourceId: EdsPatientDeliveryStatusFailureFixture

variable

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

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParamsResponseId
*Test script operation code: search (Search)AuditEventGET all EdsPatientDeliveryStatusCreateFixture from previous test runs if they existjsonjson1true1?date=${EdsPatientDeliveryStatusCreateFixtureRecorded}PreviousEdsPatientDeliveryStatusCreateFixtures

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: delete (Delete)AuditEventDelete EdsPatientDeliveryStatusCreateFixture from previous test runs if it existsjsonjson1true1?date=${EdsPatientDeliveryStatusCreateFixtureRecorded}

action

Asserts

-DescriptionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).in200,204,404false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginSourceId
*Test script operation code: create (Create)AuditEventCreate EdsPatientDeliveryStatusCreateFixturejsonjson1true1EdsPatientDeliveryStatusCreateFixture

action

Asserts

-DescriptionDirectionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Created).responsecreatedfalse

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: delete (Delete)AuditEventDelete EdsPatientDeliveryStatusFailureFixture from previous test runs if it existsjsonjson1true1?date=${EdsPatientDeliveryStatusFailureFixtureRecorded}

action

Asserts

-DescriptionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).in200,204,404false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginSourceId
*Test script operation code: create (Create)AuditEventCreate EdsPatientDeliveryStatusFailureFixturejsonjson1true1EdsPatientDeliveryStatusFailureFixture

action

Asserts

-DescriptionDirectionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Created).responsecreatedfalse

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: delete (Delete)DeviceDelete EerEuaDeviceFixture from previous test runs if it existsjsonjson1true1?identifier=${EerEuaDeviceFixtureIdentifier}

action

Asserts

-DescriptionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is either 200(OK), 204(No Content) or 404(Not Found).in200,204,404false

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginSourceId
*Test script operation code: create (Create)DeviceCreate EerEuaDeviceFixturejsonjson1true1EerEuaDeviceFixture

action

Asserts

-DescriptionDirectionResponseWarningOnly
*Confirm that the returned HTTP status is 201(Created).responsecreatedfalse

Source1

{
  "resourceType": "TestScript",
  "id": "InternalServer-1InternalUseLoadEDSResources",
  "meta": {
    "profile": [
      "http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"
    ]
  },
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "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
          }
        }
      ]
    }
  ]
}