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
Official URL: http://medcomehmi.dk/ig/edstestscripts/ANS5TestFailedOutcomeSearch | Version: 0.1.0 | |||
Active as of 2025-08-18 | Computable Name: ANS5TestFailedOutcomeSearch | |||
Copyright/Legal: MedCom 2025 |
Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript
url: TestScript ANS5TestFailedOutcomeSearch
version: 0.1.0
name: ANS5TestFailedOutcomeSearch
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 |
fixture
id
C1EUAEDSFailurePatientDeliveryStatusautocreate: false
autodelete: false
resource:
./Fixtures/AuditEvent-C1EUAToEdsFailureFixture.json
profile: http://medcomehmi.dk/ig/eds/StructureDefinition/EdsPatientDeliveryStatus
variable
name: IdOfResourceToBeCreated
expression: id
sourceId: C1EUAEDSFailurePatientDeliveryStatus
variable
name: FailureOutcomeOfCreatedResource
expression: outcome
sourceId: C1EUAEDSFailurePatientDeliveryStatus
setup
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code delete: Delete AuditEvent Deletes the resource we intend to create later, to ensure it doesn't already exist on the server from previously run tests 1 true 1 /${IdOfResourceToBeCreated}
test
id
CreatePatientDeliveryStatusname: ANS6 Create
description: Use case ANS6 create PatientDeliveryStatus object on the SUT in order to search for it later
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params SourceId Test script operation code update: Update AuditEvent Create a PatientDeliveryStatus AuditEvent resource on the SUT 1 true 1 /${IdOfResourceToBeCreated} C1EUAEDSFailurePatientDeliveryStatus action
Asserts
Description Direction Response WarningOnly Ensure the PatientDeliveryStatus AuditEvent was created response created false
test
id
SearchPatientDeliveryStatusWithSeriousFailureOutcomename: ANS5 search
description: Use case ANS5 search for the created PatientDeliveryStatus object on the SUT with failed outcome
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with a failed outcome 1 true 1 ?outcome=${FailureOutcomeOfCreatedResource} action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the PatientDeliveryStatus AuditEvent is found response Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.id = '${IdOfResourceToBeCreated}').count() equals 1 false
test
id
SearchPatientDeliveryStatusWithSuccessfulOutcomename: ANS5 successful search
description: Use case ANS5 search for the created PatientDeliveryStatus object on the SUT with a successful outcome
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with a successful outcome 1 true 1 ?outcome=0 action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the PatientDeliveryStatus AuditEvent is not found response Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.id = '${IdOfResourceToBeCreated}').count() equals 0 false