Add a new tab for Patient Timeline
This new tab should sit beside the Visit Information tab.
At the top should be the option to filter by the component types, as well as a keyword search against the Document and Request titles.
Component Types
The high level component types will determine the color of the emitted rows, as well as the Filter By Component.
Communications in Light Blue
Financial changes in Light Green
Prescriptions added or with a status change in Pink
Documents or Requests added or with a status change in Orange
Other episode status changes or components added in White
Check In, Admit, Discharge, Unit Changes, RDVM changes
TPRs
Diagnosis
SOAPs
Alerts
Reminders
Schedule changes in Yellow
Add a new Database View to support Patient Timeline tab
This should become a permanent view of all objects within an episode, to allow for faster load times of this tab and its episode objects.
HOSPITAL_EPISODE_TIMELINE
Build a display tree of all Episode Objects to display on the patient timeline
This tree should display in reverse chronological order. Columns cannot be sorted.
The following episode objects should be included:
Initial PA Creation
Episode Appointment added
Estimate Added
Deposits taken
Schedule Reminders Sent
Appointment reschedule or cancellation
Episode cancellation
Episode components added
Documents
Requests
Prescription Request added
TPR
Diagnosis
SOAPs
Add Alert
Add Patient Reminders
Episode events
Communications sent on Events
Deposit applied
Episode transferred between units
Patient checked in
Order opened
Patient admitted
Episode discharged
Order Closed
Patient Reminders Sent