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/Server-ANS1TestTimeframeSearch-json | Version: 0.1.0 | |||
| Active as of 2025-08-18 | Computable Name: Server-ANS1TestTimeframeSearch-json | |||
Copyright/Legal: MedCom 2025 |
||||
Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript
url: TestScript Server-ANS1TestTimeframeSearch-json
version: 0.1.0
name: Server-ANS1TestTimeframeSearch-json
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
EdsPatientDeliveryStatusCreateFixtureautocreate: false
autodelete: false
resource:
../Fixtures/EdsPatientDeliveryStatusCreateFixture.json
profile: http://medcomehmi.dk/ig/eds/StructureDefinition/EdsPatientDeliveryStatus
variable
name: RecordedOfResourceToFindInSearch
expression: recorded
sourceId: EdsPatientDeliveryStatusCreateFixture
variable
name: from
expression: recorded - 1 'minute'
sourceId: EdsPatientDeliveryStatusCreateFixture
variable
name: to
expression: recorded + 1 'minute'
sourceId: EdsPatientDeliveryStatusCreateFixture
test
id
SearchPatientDeliveryStatusValidTimeWindowname: ANS1 search
description: user story ANS1 search for the created PatientDeliveryStatus object on the SUT within a valid timeframe
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent within a valid time window json json 1 true 1 ?date=ge${from}&date=le${to} action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the PatientDeliveryStatus AuditEvent is found response Bundle.entry.resource.where(is(AuditEvent) and recorded = '${RecordedOfResourceToFindInSearch}').count() equals 1 false
test
id
SearchPatientDeliveryStatusInvalidTimeWindowname: ANS1 invalid search
description: user story ANS1 search for the created PatientDeliveryStatus object on the SUT outside it's recorded window. Not expecting to find it
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent within an invalid time window json json 1 true 1 ?date=ge${to} action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the PatientDeliveryStatus AuditEvent is not found outside the valid time window response Bundle.entry.resource.where(is(AuditEvent) and recorded = '${RecordedOfResourceToFindInSearch}').count() equals 0 false