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 (including Patient Reminders and Schedule Reminders)
Financial changes in Light Green
Prescriptions added or with a status change in Pink
Episode status changes or components added in very light gray
Documents and Requests
Lab Requests
Check In, Admit, Discharge, Unit Changes, RDVM changes
Vitals
Diagnosis
SOAPs
Alert added
Reminder added
Appointments/Schedule changes
In addition, each type of status will have a unique icon associated with it, to comply with visibility requirements.
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
The timeline tab will be a reverse chronological linkage of each of these episode timeline views.
Filter By Component
This should be a drop down menu to limit the timeline to Episode Objects, Financial, Communication, or Prescription lines.
Documents
Requests
Vitals
Diagnosis
SOAPs
Patient Alerts added
Communications Sent
Episode Status Changes
Patient Timeline Details
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.
Date and Episode Stamps
The time stamp should be included for all lines.
If events occur within the same day or the same episode, they can be omitted on the rows above the original row, to provide more readability on the timeline.