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/ANS4TestOrgSearch | Version: 0.1.0 | |||
Active as of 2025-08-18 | Computable Name: ANS4TestOrgSearch | |||
Copyright/Legal: MedCom 2025 |
Profile: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript
url: TestScript ANS4TestOrgSearch
version: 0.1.0
name: ANS4TestOrgSearch
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
C1EUAEDSPatientDeliveryStatusautocreate: false
autodelete: false
resource:
./Fixtures/AuditEvent-C1EUAToEdsFixture.json
profile: http://medcomehmi.dk/ig/eds/StructureDefinition/EdsPatientDeliveryStatus
variable
name: IdOfResourceToBeCreated
expression: id
sourceId: C1EUAEDSPatientDeliveryStatus
variable
name: SORIDOfReceiverOrganization
expression: agent.where(type.coding.code = 'ehmiReceiver').who.identifier.value
sourceId: C1EUAEDSPatientDeliveryStatus
variable
name: GLNOfReceiverOrganization
expression: agent.where(type.coding.code = 'ehmiReceiver').extension.where(url = 'http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId').valueIdentifier.value
sourceId: C1EUAEDSPatientDeliveryStatus
variable
name: NameReceiverOrganization
expression: agent.where(type.coding.code = 'ehmiReceiver').name
sourceId: C1EUAEDSPatientDeliveryStatus
variable
name: SORIDOfSenderOrganization
expression: agent.where(type.coding.code = 'ehmiSender').who.identifier.value
sourceId: C1EUAEDSPatientDeliveryStatus
variable
name: GLNOfSenderOrganization
expression: agent.where(type.coding.code = 'ehmiSender').extension.where(url = 'http://medcomehmi.dk/ig/eds/StructureDefinition/eds-otherId').valueIdentifier.value
sourceId: C1EUAEDSPatientDeliveryStatus
variable
name: NameSenderOrganization
expression: agent.where(type.coding.code = 'ehmiSender').name
sourceId: C1EUAEDSPatientDeliveryStatus
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: ANS4 Create
description: Use case ANS4 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} C1EUAEDSPatientDeliveryStatus action
Asserts
Description Direction Response WarningOnly Ensure the PatientDeliveryStatus AuditEvent was created response created false
test
id
SearchPatientDeliveryStatusWithReceiverOrgSORname: ANS4 receiver org search SOR
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org SOR
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with the receiver organization, SOR 1 true 1 ?receiverOrg=${SORIDOfReceiverOrganization} 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
SearchPatientDeliveryStatusWithReceiverOrgGLNname: ANS4 receiver org search GLN
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org GLN
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with the receiver organization GLN 1 true 1 ?receiverOrg=${GLNOfReceiverOrganization} 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
SearchPatientDeliveryStatusWithReceiverOrgNamename: ANS4 receiver org search Name
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org Name
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with the receiver organization, Name 1 true 1 ?receiverOrg=${NameReceiverOrganization} 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
SearchPatientDeliveryStatusInvalidReceiverOrgDetailsname: ANS4 invalid receiver org search
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with an invalid receiver organization. Not expecting to find it
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with an invalid receiver organization 1 true 1 ?receiverOrg=invalid action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the PatientDeliveryStatus AuditEvent is not found with an invalid receiver organization response Bundle.total equals 0 false
test
id
SearchPatientDeliveryStatusWithSenderOrgSORname: ANS4 sender org search SOR
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org SOR
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with the sender organization, SOR 1 true 1 ?senderOrg=${SORIDOfSenderOrganization} 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
SearchPatientDeliveryStatusWithSenderOrgGLNname: ANS4 sender org search GLN
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org GLN
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with the sender organization GLN 1 true 1 ?senderOrg=${GLNOfSenderOrganization} 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
SearchPatientDeliveryStatusWithSenderOrgNamename: ANS4 sender org search name
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org Name
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with the sender organization, Name 1 true 1 ?senderOrg=${NameSenderOrganization} 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
SearchPatientDeliveryStatusInvalidSenderOrgDetailsname: ANS4 invalid search
description: Use case ANS4 search for the created PatientDeliveryStatus object on the SUT with an invalid sender organization. Not expecting to find it
action
Operations
Type Resource Description Destination EncodeRequestUrl Origin Params Test script operation code search: Search AuditEvent Search for the PatientDeliveryStatus AuditEvent with an invalid sender organization 1 true 1 ?senderOrg=invalid action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the PatientDeliveryStatus AuditEvent is not found with an invalid sender organization response Bundle.total equals 0 false