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

Testexamples

The examples presented below are intended to be used in the test protocol for receiving HospitalNotification. Testprotocols can be found on the GitHub pages for HospitalNotificaton. All test examples are created by MedCom.

Test patient/citizens

All examples include, except TEK_LOV are based on the test patient:

  • Name: Elmer
  • CPR-nr.: 250947-9989 For the example TEK_LOV, the follwoing patient is used:
  • Name: Kaje Test Hansen
  • CPR-nr.: 210300-9996

Test examples for receiving HospitalNotification

Test example Description
STIN_A Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
STIN_B1
STIN_B2
Notification with information that a citizen has been admitted to hospital X, region X (including request for XDIS16)
Notification with information that the same citizen has now been admitted to hospital Y, region Y (does not include a request for XDIS16)
STIN_C1
STIN_C2
Notification with information that a citizen has been admitted to hospital X, region X (including request for XDIS16)
Notification with information that the same citizen has now been admitted to hospital Y, region X (does not include a request for XDIS16)
STAA_D Notification with information that a citizen is admitted as an acute outpatient at the hospital (Including request for XDIS16)
STAA_E
STIN_E
Notification with information that a citizen is admitted to hospital as an acute ambulant patient (including request for XDIS16)
Notification with information that the same citizen has now been admitted to hospital (does not include a request for XDIS16)
STIN_F
STOR_F
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with information that the same citizen is taking leave from the hospital stay (does not include a request for XDIS16)
STIN_G
STOR_G
SLOR_G
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with information that the same citizen is taking leave from hospital (does not include a request for XDIS16)
Notification with information that the same citizen has now ended leave from hospital stay (does not include a request for XDIS16)
STIN_H
SLHJ_H
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with information that the same citizen has been discharged and sent home/to primary sector (does not include a request for XDIS16)
STIN_I
STOR_I
SLHJ_I
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with information that the same citizen is taking leave from hospital (does not include a request for XDIS16)
Notification with information that the same citizen has been discharged and sent home/to primary sector (does not include a request for XDIS16)
MORS_J Notification with information that a citizen is dead
STIN_K
MORS_K
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with information that the same citizen has died
STIN_L
STOR_L
MORS_L
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with information that the same citizen is taking leave from hospital (does not include a request for XDIS16)
Notification with information that the same citizen has died (during leave)
STIN_M Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
STIN_N
AN_STIN_N
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with information that the notification just sent is cancelled (does not include a request for XDIS16)
STIN_O
RE_STIN_O
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with corrections to the notification just sent (date/time corrected) (does not include a request for XDIS16)
STIN_P
RE_STIN_P
Notification with information that a citizen has been admitted to hospital (including request for XDIS16)
Notification with corrections to the notification just sent (department corrected) (does not include a request for XDIS16)
AN_STIN_P Notification that cancels a notification [STIN_P] that has been corrected [RE_STIN_P]
TEK_STIN_A Notification with information that a citizen has been admitted to hospital (including request for Acknowledgement)
TEK_ID_LOCAL Notification with a locally defined UUID
TEK_ID_LPR3 Notification with LPR3 identifier
TEK_ID_2 Notification with two identifiers (locally defined UUID + LPR3 identifier)
TEK_STAA_A Notification with information that the same citizen is admitted as an acute outpatient at the hospital
TEK_SLHJ_A Notification with information that the same citizen has now been discharged and sent home/to primary sector.
TEK_STIN_B Notification with information that a citizen has been admitted to hospital (the time of the incident is between the acute ambulant hospital stay and the discharge).
The example is used to test that the citizen’s status continues to appear as ‘completed’/’discharged’ in a hospital stay where the citizen has been acute ambulant, then admitted and finally discharged, but where the Hospital Notification [STIN] was sent/received later than the Hospital Notification [SLHJ].
TEK_DUB Notification with information that a citizen has been admitted to hospital (Used to test correct handling of duplicates)
TEK_LOV Notification with information that a citizen has been admitted to hospital (Used to test the correct handling of citizens who does not have a relevant case in the SUT)
TEK_FCC Notification containing errors