PSIS Event Query Response - tabular view

 

XML Schema: queryResponseEvent_02  Example message: queryResponseEvent_02

PSISEventQueryResponse_02

A header for the PSIS Event Query Response to a PSIS Event Query.



Used by:

[1..1] recordTarget

A Participation that indicates the Service User that the Query Response relates to.



[1..1] patient (Patient)

Link to the Patient who is the Record Target



[1..1] id (II)

The Patient's NHS number.  The Identifier External datatype flavour is used to carry this information as follows:-

  • The root attribute will contain the NHS number OID
  • The extension attribute will contain the NHS number itself.


[1..1] event

A container for the details about a message persisted on PSIS.



[1..1] eventID
eventID is the unique ID of the event.

 It's of type II-IG (Identifier Global) so it has a root attribute that is
  the ID, and no other attributes.


[0..1] withdrawingEventID
ID of the Event (if any) which withdrew this Event

 It's of type II-IG (Identifier Global) so it has a root attribute that is
  the ID, and no other attributes.

   
[1..1] payloadID
The artefact identifier of the payload - ie the type of message that was used to enter the event into PSIS (such as a GP Summary). This can be used to determine which schema is appropriate for validating the event data contained with the hl7Data element below.

 This is not the same as the event type - there may be a number of event types all associated with a single payload identifier.

 The payload identifier is of type II and has a root attribute that is the OID 2.16.840.1.113883.2.1.3.2.4.12 and an extension attribute that is the payload identifier (eg REPC_MT400101UK06)
   



[1..1] persistenceDate

The date at which the event was entered into PSIS, in yyyyMMddhhmmss format. This does not necessarily correspond to the date on which the event occurred.

This is an HL7 timestamp field, which can have a number of different formats, but PSIS will only use the form that has a value attribute containing a date in the format yyyyMMddhhmmss.

The psisDate type constrains the HL7 TS (timestamp) to use only its simplest form - a value attribute containing a date/time in the format yyyyMMddhhmmss.



[1..1] eventStatus (CV {CNE:PSISDataStatus} )
The current status of the event.

This is a CV-CP field (Coded Value-Coded Plain), that will have attributes of codeSystem, code, and displayName.

 The codeSystem OID will always be the same, and refers to the PSISDataStatus NPfIT vocabulary.

 The possible values of the status (contained with the "code" attribute) are:
        1 - Event is normal
        2 - Event has been withdrawn
        3 - Event has been replaced

    NOTE: these were previously known as "Normal", "Nullified" and "Replaced" at message level.
   


[1..1] eventType
The type of the event.

This is a CV-CP field (Coded Value-Coded Plain), that will have attributes of codeSystem, code, and displayName.

The code is extracted from the original HL7 event using the XPath */code/@code.

The displayName is the name that is registered within PSIS for the event type.
           
It should be the same as the displayName in the original HL7 at */code/@displayName, but this is not guaranteed.
   


   



[1..1] hl7Data
This is an XML fragment that is the exact message as communicated to PSIS.