EDS Test Scripts
0.1.0 - ci-build Denmark flag

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

TestScript: Test for ANS.6 - Message Identifier Searching XML format

Official URL: http://medcomehmi.dk/ig/edstestscripts/Server-ANS6TestMessageIdentifierSearching-xml Version: 0.1.0
Active as of 2025-08-18 Computable Name: Server-ANS6TestMessageIdentifierSearching-xml

Copyright/Legal: MedCom 2025

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

url: TestScript Server-ANS6TestMessageIdentifierSearching-xml

version: 0.1.0

name: Server-ANS6TestMessageIdentifierSearching-xml

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.xml

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

variable

name: RecordedOfResourceToFindInSearch

expression: recorded

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: ehmiMessageIdentifierOfCreatedResource

expression: entity.where(type.code = 'ehmiMessage').what.identifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: ehmiMessageEnvelopeIdentifierOfCreatedResource

expression: entity.where(type.code = 'ehmiMessageEnvelope').what.identifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: ehmiTransportEnvelopeIdentifierOfCreatedResource

expression: entity.where(type.code = 'ehmiTransportEnvelope').what.identifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: ehmiOrigMessageIdentifierOfCreatedResource

expression: entity.where(type.code = 'ehmiOrigMessage').what.identifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: ehmiOrigTransportEnvelopeIdentifierOfCreatedResource

expression: entity.where(type.code = 'ehmiOrigTransportEnvelope').what.identifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

test

id

SearchPatientDeliveryStatusWithEhmiMessageIdentifier

name: ANS6 search with ehmi message identifier

description: user story ANS6 search for the created PatientDeliveryStatus object on the SUT with the ehmiMessage identifier

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the ehmiMessage identifierxmlxml1true1?entityIdentifier=${ehmiMessageIdentifierOfCreatedResource}

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is foundresponseBundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()equals1false

test

id

SearchPatientDeliveryStatusWithEhmiMessageEnvelopeIdentifier

name: ANS6 search with ehmi message envelope identifier

description: user story ANS6 search for the created PatientDeliveryStatus object on the SUT with the ehmiMessageEnvelope identifier

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the ehmiMessageEnvelope identifierxmlxml1true1?entityIdentifier=${ehmiMessageEnvelopeIdentifierOfCreatedResource}

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is foundresponseBundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()equals1false

test

id

SearchPatientDeliveryStatusWithEhmiTransportEnvelopeIdentifier

name: ANS6 search with ehmi transport envelope identifier

description: user story ANS6 search for the created PatientDeliveryStatus object on the SUT with the ehmiTransportEnvelope identifier

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the ehmiTransportEnvelope identifierxmlxml1true1?entityIdentifier=${ehmiTransportEnvelopeIdentifierOfCreatedResource}

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is foundresponseBundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()equals1false

test

id

SearchPatientDeliveryStatusWithEhmiOrigMessageIdentifier

name: ANS6 search with ehmi orig envelope identifier

description: user story ANS6 search for the created PatientDeliveryStatus object on the SUT with the ehmiOrigMessageIdentifier identifier

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the ehmiOrigMessageIdentifier identifierxmlxml1true1?entityIdentifier=${ehmiOrigMessageIdentifierOfCreatedResource}

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is foundresponseBundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()equals1false

test

id

SearchPatientDeliveryStatusWithEhmiOrigTransportEnvelopeIdentifier

name: ANS6 search with ehmi orig transport envelope identifier

description: user story ANS6 search for the created PatientDeliveryStatus object on the SUT with the ehmiOrigTransportEnvelope identifier

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the ehmiOrigTransportEnvelope identifierxmlxml1true1?entityIdentifier=${ehmiOrigTransportEnvelopeIdentifierOfCreatedResource}

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is foundresponseBundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()equals1false

test

id

SearchPatientDeliveryStatusWithInvalidEhmiIdentifier

name: ANS6 search

description: user story ANS6 search for the created PatientDeliveryStatus object on the SUT with an invalid ehmi identifier

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with an invalid EHMI identifierxmlxml1true1?entityIdentifier=invalid

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is not foundresponseBundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()equals0false