Records a patient discharge.
Encounter information is used to populate [[Encounter]] and [[Encounter Event]] entities
Please click through to the Data Model to explore the presentation of these entities in the web interface.
[[Encounter]]
Matched on: [[Encounter.External Encounter ID]] as derived from PV1-19.1
When matched: The [[Encounter Event]] will be handled as indicated below.
When not matched: A new [[Encounter]] will be created with this message.
[[Encounter Event]]
Matched on: An Encounter can contain zero or one discharge [[Encounter Event]]s. If the [[Encounter]] has been matched, then there will be at most one discharge [[Encounter Event]], so no other IDs are required for matching.
When matched: The discharge [[Encounter Event]] is replaced with the information in this message.
When not matched: The discharge [[Encounter Event]] is added to the [[Encounter]].
This is identical in format to the ADT A01, except that PV1-45 is used for the Message timestamp instead of PV1-44, as shown below:
MSH|^~\&|SendingApp|SendingFacility|HL7API|PKB|20160102101112||ADT^A03|ABC0000000001|P|2.4
PID|||9999999999^^^NHS^NH||Smith^John^Joe^^Mr||19700101|M|||Flat name^1, The Road^London^London^SW1A 1AA^GBR||01234567890^PRN~07123456789^PRS|^NET^^john.smith@company.com~01234098765^WPN||||||||||||||||N|
PV1|1|I|^^^^^^^^My Ward||||^Jones^Stuart^James^^Dr^|^Smith^William^^^Dr^|^Foster^Terry^^^Mr^||||||||||V00001|||||||||||||||||||||||||201508011000|201508011200
PKB will respond with a standard HL7 acknowledgement.