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.4 - Organization Searching XML format

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

Copyright/Legal: MedCom 2025

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

url: TestScript Server-ANS4TestOrgSearch-xml

version: 0.1.0

name: Server-ANS4TestOrgSearch-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: SORIDOfReceiverOrganization

expression: agent.where(type.coding.code = 'ehmiReceiver').who.identifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: GLNOfReceiverOrganization

expression: agent.where(type.coding.code = 'ehmiReceiver').extension.where(url = 'http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId').valueIdentifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: NameReceiverOrganization

expression: agent.where(type.coding.code = 'ehmiReceiver').name

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: SORIDOfSenderOrganization

expression: agent.where(type.coding.code = 'ehmiSender').who.identifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: GLNOfSenderOrganization

expression: agent.where(type.coding.code = 'ehmiSender').extension.where(url = 'http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId').valueIdentifier.value

sourceId: EdsPatientDeliveryStatusCreateFixture

variable

name: NameSenderOrganization

expression: agent.where(type.coding.code = 'ehmiSender').name

sourceId: EdsPatientDeliveryStatusCreateFixture

test

id

SearchPatientDeliveryStatusWithReceiverOrgSOR

name: ANS4 receiver org search SOR

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org SOR

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the receiver organization, SORxmlxml1true1?receiverOrg=${SORIDOfReceiverOrganization}

action

Asserts

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

test

id

SearchPatientDeliveryStatusWithReceiverOrgGLN

name: ANS4 receiver org search GLN

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org GLN

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the receiver organization GLNxmlxml1true1?receiverOrg=${GLNOfReceiverOrganization}

action

Asserts

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

test

id

SearchPatientDeliveryStatusWithReceiverOrgName

name: ANS4 receiver org search Name

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org Name

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the receiver organization, Namexmlxml1true1?receiverOrg=${NameReceiverOrganization}

action

Asserts

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

test

id

SearchPatientDeliveryStatusInvalidReceiverOrgDetails

name: ANS4 invalid receiver org search

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with an invalid receiver organization. Not expecting to find it

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with an invalid receiver organizationxmlxml1true1?receiverOrg=invalid

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is not found with an invalid receiver organizationresponseBundle.totalequals0false

test

id

SearchPatientDeliveryStatusWithSenderOrgSOR

name: ANS4 sender org search SOR

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org SOR

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the sender organization, SORxmlxml1true1?senderOrg=${SORIDOfSenderOrganization}

action

Asserts

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

test

id

SearchPatientDeliveryStatusWithSenderOrgGLN

name: ANS4 sender org search GLN

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org GLN

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the sender organization GLNxmlxml1true1?senderOrg=${GLNOfSenderOrganization}

action

Asserts

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

test

id

SearchPatientDeliveryStatusWithSenderOrgName

name: ANS4 sender org search name

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org Name

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with the sender organization, Namexmlxml1true1?senderOrg=${NameSenderOrganization}

action

Asserts

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

test

id

SearchPatientDeliveryStatusInvalidSenderOrgDetails

name: ANS4 invalid search

description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with an invalid sender organization. Not expecting to find it

action

Operations

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Test script operation code: search (Search)AuditEventSearch for the PatientDeliveryStatus AuditEvent with an invalid sender organizationxmlxml1true1?senderOrg=invalid

action

Asserts

-DescriptionDirectionExpressionOperatorValueWarningOnly
*Ensure the PatientDeliveryStatus AuditEvent is not found with an invalid sender organizationresponseBundle.totalequals0false