FHIR IG analytics| Package | dk.ehmi.eds.testscripts |
| Resource Type | TestScript |
| Id | TestScript-Server-ANS6TestMessageIdentifierSearching-xml.json |
| FHIR Version | R4 |
| Source | https://build.fhir.org/ig/medcomdk/dk-ehmi-eds-testscripts/TestScript-Server-ANS6TestMessageIdentifierSearching-xml.html |
| URL | http://medcomehmi.dk/ig/edstestscripts/Server-ANS6TestMessageIdentifierSearching-xml |
| Version | 0.1.0 |
| Status | active |
| Date | 2025-08-18 |
| Name | Server-ANS6TestMessageIdentifierSearching-xml |
| Realm | dk |
| Copyright | MedCom 2025 |
No resources found
No resources found
Note: links and images are rebased to the (stated) source
Generated Narrative: TestScript Server-ANS6TestMessageIdentifierSearching-xml
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
| 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: 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
SearchPatientDeliveryStatusWithEhmiMessageIdentifiername: 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
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the ehmiMessage identifier xml xml 1 true 1 ?entityIdentifier=${ehmiMessageIdentifierOfCreatedResource} 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
SearchPatientDeliveryStatusWithEhmiMessageEnvelopeIdentifiername: 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
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the ehmiMessageEnvelope identifier xml xml 1 true 1 ?entityIdentifier=${ehmiMessageEnvelopeIdentifierOfCreatedResource} 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
SearchPatientDeliveryStatusWithEhmiTransportEnvelopeIdentifiername: 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
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the ehmiTransportEnvelope identifier xml xml 1 true 1 ?entityIdentifier=${ehmiTransportEnvelopeIdentifierOfCreatedResource} 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
SearchPatientDeliveryStatusWithEhmiOrigMessageIdentifiername: 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
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the ehmiOrigMessageIdentifier identifier xml xml 1 true 1 ?entityIdentifier=${ehmiOrigMessageIdentifierOfCreatedResource} 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
SearchPatientDeliveryStatusWithEhmiOrigTransportEnvelopeIdentifiername: 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
Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params Test script operation code: search (Search) AuditEvent Search for the PatientDeliveryStatus AuditEvent with the ehmiOrigTransportEnvelope identifier xml xml 1 true 1 ?entityIdentifier=${ehmiOrigTransportEnvelopeIdentifierOfCreatedResource} 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
SearchPatientDeliveryStatusWithInvalidEhmiIdentifiername: ANS6 search
description: user story ANS6 search for the created PatientDeliveryStatus object on the SUT with an invalid ehmi identifier
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 EHMI identifier xml xml 1 true 1 ?entityIdentifier=invalid action
Asserts
Description Direction Expression Operator Value WarningOnly Ensure the PatientDeliveryStatus AuditEvent is not found response Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count() equals 0 false
{
"resourceType": "TestScript",
"id": "Server-ANS6TestMessageIdentifierSearching-xml",
"meta": {
"profile": [
"http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"
]
},
"text": {
"status": "generated",
"div": "<!-- snip (see above) -->"
},
"url": "http://medcomehmi.dk/ig/edstestscripts/Server-ANS6TestMessageIdentifierSearching-xml",
"version": "0.1.0",
"name": "Server-ANS6TestMessageIdentifierSearching-xml",
"status": "active",
"date": "2025-08-18",
"publisher": "MedCom",
"contact": [
{
"name": "MedCom",
"telecom": [
{
"system": "url",
"value": "https://medcom.dk"
},
{
"system": "email",
"value": "ehmi@medcom.dk"
}
]
}
],
"jurisdiction": [
{
"coding": [
{
"system": "urn:iso:std:iso:3166",
"code": "DK",
"display": "Denmark"
}
]
}
],
"copyright": "MedCom 2025",
"origin": [
{
"index": 1,
"profile": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types",
"code": "FHIR-Client"
}
}
],
"destination": [
{
"index": 1,
"profile": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types",
"code": "FHIR-Server"
}
}
],
"fixture": [
{
"id": "EdsPatientDeliveryStatusCreateFixture",
"autocreate": false,
"autodelete": false,
"resource": {
"reference": "../Fixtures/EdsPatientDeliveryStatusCreateFixture.xml"
}
}
],
"profile": [
{
"id": "eds-patient-delivery-status",
"reference": "http://medcomehmi.dk/ig/eds/StructureDefinition/EdsPatientDeliveryStatus"
}
],
"variable": [
{
"name": "RecordedOfResourceToFindInSearch",
"expression": "recorded",
"sourceId": "EdsPatientDeliveryStatusCreateFixture"
},
{
"name": "ehmiMessageIdentifierOfCreatedResource",
"expression": "entity.where(type.code = 'ehmiMessage').what.identifier.value",
"sourceId": "EdsPatientDeliveryStatusCreateFixture"
},
{
"name": "ehmiMessageEnvelopeIdentifierOfCreatedResource",
"expression": "entity.where(type.code = 'ehmiMessageEnvelope').what.identifier.value",
"sourceId": "EdsPatientDeliveryStatusCreateFixture"
},
{
"name": "ehmiTransportEnvelopeIdentifierOfCreatedResource",
"expression": "entity.where(type.code = 'ehmiTransportEnvelope').what.identifier.value",
"sourceId": "EdsPatientDeliveryStatusCreateFixture"
},
{
"name": "ehmiOrigMessageIdentifierOfCreatedResource",
"expression": "entity.where(type.code = 'ehmiOrigMessage').what.identifier.value",
"sourceId": "EdsPatientDeliveryStatusCreateFixture"
},
{
"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": [
{
"operation": {
"type": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code": "search"
},
"resource": "AuditEvent",
"description": "Search for the PatientDeliveryStatus AuditEvent with the ehmiMessage identifier",
"accept": "xml",
"contentType": "xml",
"destination": 1,
"encodeRequestUrl": true,
"origin": 1,
"params": "?entityIdentifier=${ehmiMessageIdentifierOfCreatedResource}"
}
},
{
"assert": {
"description": "Ensure the PatientDeliveryStatus AuditEvent is found",
"direction": "response",
"expression": "Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()",
"operator": "equals",
"value": "1",
"warningOnly": false
}
}
]
},
{
"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": [
{
"operation": {
"type": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code": "search"
},
"resource": "AuditEvent",
"description": "Search for the PatientDeliveryStatus AuditEvent with the ehmiMessageEnvelope identifier",
"accept": "xml",
"contentType": "xml",
"destination": 1,
"encodeRequestUrl": true,
"origin": 1,
"params": "?entityIdentifier=${ehmiMessageEnvelopeIdentifierOfCreatedResource}"
}
},
{
"assert": {
"description": "Ensure the PatientDeliveryStatus AuditEvent is found",
"direction": "response",
"expression": "Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()",
"operator": "equals",
"value": "1",
"warningOnly": false
}
}
]
},
{
"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": [
{
"operation": {
"type": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code": "search"
},
"resource": "AuditEvent",
"description": "Search for the PatientDeliveryStatus AuditEvent with the ehmiTransportEnvelope identifier",
"accept": "xml",
"contentType": "xml",
"destination": 1,
"encodeRequestUrl": true,
"origin": 1,
"params": "?entityIdentifier=${ehmiTransportEnvelopeIdentifierOfCreatedResource}"
}
},
{
"assert": {
"description": "Ensure the PatientDeliveryStatus AuditEvent is found",
"direction": "response",
"expression": "Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()",
"operator": "equals",
"value": "1",
"warningOnly": false
}
}
]
},
{
"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": [
{
"operation": {
"type": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code": "search"
},
"resource": "AuditEvent",
"description": "Search for the PatientDeliveryStatus AuditEvent with the ehmiOrigMessageIdentifier identifier",
"accept": "xml",
"contentType": "xml",
"destination": 1,
"encodeRequestUrl": true,
"origin": 1,
"params": "?entityIdentifier=${ehmiOrigMessageIdentifierOfCreatedResource}"
}
},
{
"assert": {
"description": "Ensure the PatientDeliveryStatus AuditEvent is found",
"direction": "response",
"expression": "Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()",
"operator": "equals",
"value": "1",
"warningOnly": false
}
}
]
},
{
"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": [
{
"operation": {
"type": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code": "search"
},
"resource": "AuditEvent",
"description": "Search for the PatientDeliveryStatus AuditEvent with the ehmiOrigTransportEnvelope identifier",
"accept": "xml",
"contentType": "xml",
"destination": 1,
"encodeRequestUrl": true,
"origin": 1,
"params": "?entityIdentifier=${ehmiOrigTransportEnvelopeIdentifierOfCreatedResource}"
}
},
{
"assert": {
"description": "Ensure the PatientDeliveryStatus AuditEvent is found",
"direction": "response",
"expression": "Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()",
"operator": "equals",
"value": "1",
"warningOnly": false
}
}
]
},
{
"id": "SearchPatientDeliveryStatusWithInvalidEhmiIdentifier",
"name": "ANS6 search",
"description": "user story ANS6 search for the created PatientDeliveryStatus object on the SUT with an invalid ehmi identifier",
"action": [
{
"operation": {
"type": {
"system": "http://terminology.hl7.org/CodeSystem/testscript-operation-codes",
"code": "search"
},
"resource": "AuditEvent",
"description": "Search for the PatientDeliveryStatus AuditEvent with an invalid EHMI identifier",
"accept": "xml",
"contentType": "xml",
"destination": 1,
"encodeRequestUrl": true,
"origin": 1,
"params": "?entityIdentifier=invalid"
}
},
{
"assert": {
"description": "Ensure the PatientDeliveryStatus AuditEvent is not found",
"direction": "response",
"expression": "Bundle.entry.where(resource.resourceType = 'AuditEvent' and resource.recorded = '${RecordedOfResourceToFindInSearch}').count()",
"operator": "equals",
"value": "0",
"warningOnly": false
}
}
]
}
]
}