HospitalNotification Testscripts
3.0.1 - ci-build
This page is part of the DK MedCom HospitalNotification TestScripts (v3.0.1: Release) based on FHIR R4. . For a full list of available versions, see the Directory of published versions
Official URL: http://medcomfhir.dk/ig/hospitalnotificationtestscript/hospitalnotification-receive-re-mors-stor | Version: 3.0.1 | |||
Active as of 2023-05-25 | Responsible: MedCom | Computable Name: HospitalNotificationTestScript | ||
Copyright/Legal: MedCom 2021 |
Receive: Update Deceased - deceased during a period of leave
Generated Narrative: TestScript
Resource TestScript "hospitalnotification-receive-re-mors-stor"
url: http://medcomfhir.dk/ig/hospitalnotificationtestscript/hospitalnotification-receive-re-mors-stor
version: 3.0.1
name: HospitalNotificationTestScript
title: Receive: Update Deceased - deceased during a period of leave - RE-MORS
status: active
date: 2023-05-25
publisher: MedCom
contact: MedCom: mailto:fhir@medcom.dk
description: Receive: Update Deceased - deceased during a period of leave
copyright: MedCom 2021
- | Index | Profile |
* | 1 | FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null') |
- | Index | Profile |
* | 1 | FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null') |
fixture
id
create-STIN-01autocreate: false
autodelete: false
resource: /FHIRSandbox/MedCom/HospitalNotification/v300/Receive/Fixtures/HospitalNotification-fixture-STIN.xml
fixture
id
create-STOR-02autocreate: false
autodelete: false
resource: /FHIRSandbox/MedCom/HospitalNotification/v300/Receive/Fixtures/HospitalNotification-fixture-STOR.xml
fixture
id
create-MORS-03autocreate: false
autodelete: false
resource: /FHIRSandbox/MedCom/HospitalNotification/v300/Receive/Fixtures/HospitalNotification-fixture-MORS-STOR.xml
fixture
id
create-RE-MORS-04autocreate: false
autodelete: false
resource: /FHIRSandbox/MedCom/HospitalNotification/v300/Receive/Fixtures/HospitalNotification-fixture-RE-MORS-STOR.xml
profile: http://medcomfhir.dk/ig/hospitalnotification/StructureDefinition/medcom-hospitalNotification-message "MedComHospitalNotificationMessage"
variable
name: destinationUri-STIN
expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint
sourceId: create-STIN-01
variable
name: bundleid-STIN
expression: Bundle.id
sourceId: create-STIN-01
variable
name: destinationUri-STOR
expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint
sourceId: create-STOR-02
variable
name: bundleid-STOR
expression: Bundle.id
sourceId: create-STOR-02
variable
name: destinationUri-MORS
expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint
sourceId: create-MORS-03
variable
name: bundleid-MORS
expression: Bundle.id
sourceId: create-MORS-03
variable
name: destinationUri-RE-MORS
expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint
sourceId: create-RE-MORS-04
variable
name: bundleid-RE-MORS
expression: Bundle.id
sourceId: create-RE-MORS-04
setup
action
Operations
- Type Resource Description Accept EncodeRequestUrl Params * Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null') Bundle System-generated search and delete operations from conditional delete on Bundle MessageHeader.destination.endpoint xml true ?message.destination-uri=${destinationUri-STIN} action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl SourceId * Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null') Bundle Create the Bundle resource in XML format on the destination server. xml xml true create-STIN-01 action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl Params SourceId * Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null') Bundle Update the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-STIN. xml xml true /${bundleid-STIN} create-STIN-01 action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl SourceId * Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null') Bundle Create the Bundle resource in XML format on the destination server. xml xml true create-STOR-02 action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl Params SourceId * Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null') Bundle Update the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-STOR. xml xml true /${bundleid-STOR} create-STOR-02 action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl SourceId * Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null') Bundle Create the Bundle resource in XML format on the destination server. xml xml true create-MORS-03 action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl Params SourceId * Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null') Bundle Update the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-MORS. xml xml true /${bundleid-MORS} create-MORS-03 action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl SourceId * Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null') Bundle Create the Bundle resource in XML format on the destination server. xml xml true create-RE-MORS-04 action
Operations
- Type Resource Description Accept ContentType EncodeRequestUrl Params SourceId * Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null') Bundle Update the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-RE-MORS. xml xml true /${bundleid-RE-MORS} create-RE-MORS-04 action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false
test
id
hospitalnotification-read-STIN-01name: Get a HospitalNotification STIN Message 01
description: GET a Hospital notification. The expected response is a 200(OK) with a payload of the Hospital notification resource in XML format.
action
Operations
- Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params * Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null') Bundle Receive Hospital Notification xml xml 1 true 1 /${bundleid-STIN} action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false
test
id
hospitalnotification-read-STOR-02name: Get a HospitalNotification STOR Message 02
description: GET a Hospital notification. The expected response is a 200(OK) with a payload of the Hospital notification resource in XML format.
action
Operations
- Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params * Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null') Bundle Receive Hospital Notification xml xml 1 true 1 /${bundleid-STOR} action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false
test
id
hospitalnotification-read-MORS-03name: Get a HospitalNotification MORS Message 03
description: GET a Hospital notification. The expected response is a 200(OK) with a payload of the Hospital notification resource in XML format.
action
Operations
- Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params * Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null') Bundle Receive Hospital Notification xml xml 1 true 1 /${bundleid-MORS} action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false
test
id
hospitalnotification-read-RE-MORS-04name: Get a HospitalNotification RE-MORS Message 04
description: GET a Hospital notification. The expected response is a 200(OK) with a payload of the Hospital notification resource in XML format.
action
Operations
- Type Resource Description Accept ContentType Destination EncodeRequestUrl Origin Params * Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null') Bundle Receive Hospital Notification xml xml 1 true 1 /${bundleid-RE-MORS} action
Asserts
- Description Direction Operator ResponseCode WarningOnly * Confirm that the returned HTTP status is okay or created. response in 200,201 false