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-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
| 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.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
SearchPatientDeliveryStatusWithReceiverOrgSORname: ANS4 receiver org search SOR
description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org SOR
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the receiver organization, SOR xml xml 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.recorded = '${RecordedOfResourceToFindInSearch}').count() equals 1 false
test
id
SearchPatientDeliveryStatusWithReceiverOrgGLNname: ANS4 receiver org search GLN
description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org GLN
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the receiver organization GLN xml xml 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.recorded = '${RecordedOfResourceToFindInSearch}').count() equals 1 false
test
id
SearchPatientDeliveryStatusWithReceiverOrgNamename: ANS4 receiver org search Name
description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with receiver org Name
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the receiver organization, Name xml xml 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.recorded = '${RecordedOfResourceToFindInSearch}').count() equals 1 false
test
id
SearchPatientDeliveryStatusInvalidReceiverOrgDetailsname: 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
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with an invalid receiver organization xml xml 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: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org SOR
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the sender organization, SOR xml xml 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.recorded = '${RecordedOfResourceToFindInSearch}').count() equals 1 false
test
id
SearchPatientDeliveryStatusWithSenderOrgGLNname: ANS4 sender org search GLN
description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org GLN
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the sender organization GLN xml xml 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.recorded = '${RecordedOfResourceToFindInSearch}').count() equals 1 false
test
id
SearchPatientDeliveryStatusWithSenderOrgNamename: ANS4 sender org search name
description: user story ANS4 search for the created PatientDeliveryStatus object on the SUT with sender org Name
action
Operations
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the sender organization, Name xml xml 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.recorded = '${RecordedOfResourceToFindInSearch}').count() equals 1 false
test
id
SearchPatientDeliveryStatusInvalidSenderOrgDetailsname: 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
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with an invalid sender organization xml xml 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