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

TestScript: HospitalNotification_TestScript_PF-receive-emer-imp-01

Official URL: http://medcomfhir.dk/ig/hospitalnotificationtestscript/hospitalnotification-PF-receive-emer-imp-01 Version: 3.0.1
Active as of 2023-05-25 Responsible: MedCom Computable Name: HospitalNotificationTestScript

Copyright/Legal: MedCom 2021

Receive: Patient is admitted as emergency, patient is admitted as inpatient, patient is discharged

Generated Narrative: TestScript

Resource TestScript "hospitalnotification-PF-receive-emer-imp-01"

Profile: AEGIS Touchstone Testing TestScript Profile

url: http://medcomfhir.dk/ig/hospitalnotificationtestscript/hospitalnotification-PF-receive-emer-imp-01

version: 3.0.1

name: HospitalNotificationTestScript

title: Receive: Patient is admitted as emergency, patient is admitted as inpatient, patient is discharged - PF-receive-emer-imp-01

status: active

date: 2023-05-25

publisher: MedCom

contact: MedCom: mailto:fhir@medcom.dk

description: Receive: Patient is admitted as emergency, patient is admitted as inpatient, patient is discharged

copyright: MedCom 2021

Origins

-IndexProfile
*1FHIR Client (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types code FHIR-Client = 'FHIR Client', stated as 'null')

Destinations

-IndexProfile
*1FHIR Server (Details: http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types code FHIR-Server = 'FHIR Server', stated as 'null')

fixture

id

create-STAA-01

autocreate: false

autodelete: false

resource: /FHIRSandbox/MedCom/HospitalNotification/v300/Receive/Fixtures/HospitalNotification-fixture-STAA.xml

fixture

id

create-STIN-02

autocreate: false

autodelete: false

resource: /FHIRSandbox/MedCom/HospitalNotification/v300/Receive/Fixtures/HospitalNotification-fixture-STAA-STIN.xml

fixture

id

create-SLHJ-03

autocreate: false

autodelete: false

resource: /FHIRSandbox/MedCom/HospitalNotification/v300/Receive/Fixtures/HospitalNotification-fixture-STAA-STIN-SLHJ.xml

profile: http://medcomfhir.dk/ig/hospitalnotification/StructureDefinition/medcom-hospitalNotification-message "MedComHospitalNotificationMessage"

variable

name: destinationUri-STAA

expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint

sourceId: create-STAA-01

variable

name: bundleid-STAA

expression: Bundle.id

sourceId: create-STAA-01

variable

name: destinationUri-STIN

expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint

sourceId: create-STIN-02

variable

name: bundleid-STIN

expression: Bundle.id

sourceId: create-STIN-02

variable

name: destinationUri-SLHJ

expression: Bundle.entry.resource.ofType(MessageHeader).destination.endpoint

sourceId: create-SLHJ-03

variable

name: bundleid-SLHJ

expression: Bundle.id

sourceId: create-SLHJ-03

setup

action

Operations

-TypeResourceDescriptionAcceptEncodeRequestUrlParams
*Delete (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code delete = 'Delete', stated as 'null')BundleSystem-generated search and delete operations from conditional delete on Bundle MessageHeader.destination.endpointxmltrue?message.destination-uri=${destinationUri-STAA}

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlSourceId
*Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null')BundleCreate the Bundle resource in XML format on the destination server.xmlxmltruecreate-STAA-01

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlParamsSourceId
*Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null')BundleUpdate the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-STAA.xmlxmltrue/${bundleid-STAA}create-STAA-01

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlSourceId
*Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null')BundleCreate the Bundle resource in XML format on the destination server.xmlxmltruecreate-STIN-02

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlParamsSourceId
*Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null')BundleUpdate the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-STIN.xmlxmltrue/${bundleid-STIN}create-STIN-02

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlSourceId
*Create (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code create = 'Create', stated as 'null')BundleCreate the Bundle resource in XML format on the destination server.xmlxmltruecreate-SLHJ-03

action

Operations

-TypeResourceDescriptionAcceptContentTypeEncodeRequestUrlParamsSourceId
*Create using Update (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code updateCreate = 'Create using Update', stated as 'null')BundleUpdate the Bundle.id in XML format on the destination server, so it corresponds to $bundleid-SLHJ.xmlxmltrue/${bundleid-SLHJ}create-SLHJ-03

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false

test

id

hospitalnotification-read-STAA-01

name: Get a HospitalNotification STAA 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

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')BundleReceive Hospital Notificationxmlxml1true1/${bundleid-STAA}

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false

test

id

hospitalnotification-read-STIN-02

name: Get a HospitalNotification STIN 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

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')BundleReceive Hospital Notificationxmlxml1true1/${bundleid-STIN}

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false

test

id

hospitalnotification-read-SLHJ-03

name: Get a HospitalNotification SLHJ 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

-TypeResourceDescriptionAcceptContentTypeDestinationEncodeRequestUrlOriginParams
*Read (Details: http://terminology.hl7.org/CodeSystem/testscript-operation-codes code read = 'Read', stated as 'null')BundleReceive Hospital Notificationxmlxml1true1/${bundleid-SLHJ}

action

Asserts

-DescriptionDirectionOperatorResponseCodeWarningOnly
*Confirm that the returned HTTP status is okay or created.responsein200,201false