Client Documentation
Trier
Integration
Old Doc

EDIS expects table (Encounter Create/Update?)

Add Booking - ADT^A05 - Trier -> HIH

  • Trier sends ADT^A05 message to HIH
  • Response is same A05 message with:
    • PV1-19 field inserted, the unique identifier for the new record
    • Additional OBX segment added indicating result, errors are sent back in this segment

Update Booking - ADT^A08 - Trier -> HIH

  • Trier sends ADT^A08 message to HIH
  • Response is same A08 message with:
    • Additional OBX segment added indicating result, errors are sent back in this segment

Delete Booking - ADT^A38 - Trier -> HIH

Recommended not to use.

  • Trier sends ADT^A38 message to HIH
  • Response is same A38 message with:
    • Additional OBX segment added indicating result, errors are sent back in this segment

Patient Search

Is this still necessary?

Demographic Search - Trier -> HIH

search by patient demographics and returns list of matching patients, including patient ids.

  • Sending type: QRY^A19^QRY_A19
    • Set QRD-9 value = "APN"
  • Response type: ADR^A19^ADR_A19

Medical Record Number Query - Trier -> HIH

Search by MRN and return all patient demographics

  • Sending type: QRY^A19^QRY_A19
    • Set QRD-9 value = "DEM"
  • Response type: ADR^A19^ADR_A19

HIH Sends Stuff

  • All EDIS Outbound HL7 messages generated by EDIS for SCGH will be sent to MEV
  • All webPAS Outbound messages generated by webPAS for SCGH ED will be sent to MEV

Conclusion: Need to read all message types

EDIS Output

EDIS Workflow/FunctionMessage Type
Creation of admissionA01Admission/Visit Notification
Updating of admission
DischargeA03Discharge/End Visit
Discharge to Short Stay
Update TriageA08Update Patient Info
Update Clerical
Update Clinical
Update Admission
Update Transfer
Update Alert Screen
Triage deletedA11Cancel Admission
Admission date and time removed
UndischargeA13Cancel Discharge
Short Stay back to ED
Discharged Patient Unlinked
Triage UpdateA31Update Person Information
Clerical Screen Update
Alert screen update
Clinical Notes CreatedMDM^T02Original Document Notification and Content
Clinical Notes Updated
Clinical Notes Deleted

Discharge Patient - ADT^A03 - HIH -> EDIS

Transport Protocol

MLLP with TLS 1.2

Trier Integration Details

A05

Encounter Data KeyHL7 object keyExpected typesegment type
createdrecorded_datetimeEVN
patient_identifier_list?objectPID
patient.lastNamepatient_name.family_name
patient.firstNamepatient_name.given_name
patient.dateOfBirthdatetime_of_birthYYYYMMDD
patient.genderadministrative_sexM/F
locationassigned_patient_locationPV1
.point_of_care
.facility
createdadmission_datetimeYYYYMMDD
patient_classE (emergency?)

Comments

recorded_datetime - could also be the time of message creation and could be generated.

patient_identifier_list - for an A05 I think we can simply send a default value that indicates the id number is unknown.

Observations

example format

{
  value_type: 'ST', // atomic text result
  observation_identifier: {
    identifier: 'problem',
   name_of_coding_system: 'MEV'
  },
  observation_value: problem.patient,
  result_status: 'F' // TODO confirm correct value
}
Encounter Data KeyOBX structure
observation_valuevalue_typeidentifier
problem.patientSTproblem
problem.expectSTproblem
problem.ambulance (to come)
painNMpain scale
frailtySTfrailty
patient.allergies.descriptionSTallergies description
patient.allergies.severityNMallergies severity

value_types

  • ST - atomic text result

  • ED - full text report

  • NM - atomic numeric result

  • CWE - coded results (SNOMED or LOINC)

Trier Integration Using EDIS Expects Screen

For the first version of Trier, the proposed integration with EDIS uses the Expects Patient screen in EDIS. This Expects screen is how Trier will alert EDIS of incoming patients that registered with Trier.

Trier to EDIS by Expects

When a patient registers with Trier a new record will created in the EDIS Expects table by sending an ADT^A05 (an expect booking message). Trier will send this message with the following information:

Trier InfoTrier data keyEDIS Expects fieldHL7 V2
patient brief description of problemproblem.patientdiagnosis/problemOBX
patients pain scorepaindiagnosis/problemOBX
how frail is patientfrailtydiagnosis/problemOBX
patient allergiespatient.allergies.descriptiondiagnosis/problemOBX
severitypatient.allergies.severitydiagnosis/problemOBX
surnamepatient.lastNamesurnamepatient name (PID.1)
first namepatient.firstNamegiven namepatient name (PID.2)
date of birthpatient.dateOfBirthDOBdatetime of birth (PID.7)
genderpatient.genderSexsex (PID.8)
locationlocationassigned patient location (PV1.3)

Trier will receive a response to the A05 message that includes a unique identifier for the created record in the EDIS Expects table.

If any patient information is updated in Trier. An ADT^A08 message will be sent to update the record in the EDIS Expects table. This update message will include the unique id for the record that needs to be updated.

EDIS to Trier

Our understanding for this first version is that triage will still be done in EDIS. Once triage is done in EDIS patient information can no longer be sent to EDIS by the expects screen. The expected process at this point is for EDIS to provide updated patient information to Trier through HL7 messaging. Trier will ingest these messages and update its internal database as necessary.

Trier is also expected to receive information on incoming patients that were first registered in EDIS. This is expected to arrive by an ADT^A01 message and Trier will use this information to create a new encounter in its system.

Finally, Trier expects to receive an ADT^A03 message when a patient is discharged and will use this information to complete the encounter in its system.

EDIS actionHL7 Message TypeTrier Action
create admissionADT^A01create encounter
cancel admissionADT^A11delete encounter
update: triage, clerical, clinical, admission, transfer, alert,ADT^A08update encounter
update: triage, clerical, alert,ADT^A31update encounter
create/update/delete clinical notesMDM^T02update encounter
cancel dischargeADT^A13update encounter
DischargeADT^A03complete encounter