Dev:Surgery planner
Overviews
- Requested Surgeries for Planning Table: Displays a list of patients awaiting surgery, along with details such as the responsible planner, surgery type, surgeon, and date.
- Related Appointment Panel: Allows users to create new appointments or correct existing ones, with options to select facility, person, appointment type, and date/time slots. Columns and Information Displayed:
- Patient: Name and birthdate of the patient.
- Responsible to Plan (Ordering): The doctor responsible for ordering or planning the surgery.
- Surgery Template: Type of surgery (e.g., cataract, LASIK).
- Surgeon: Surgeon assigned to perform the surgery.
- Organ: Localisation to be operated on (e.g., OS, OD).
- Desired Date from: Requested date or urgency indicator (e.g., "ASAP" or a specific date).
- Row Highlighting and Alerts:
- Red Row Alert: Indicates an obsolete data due to procedure change
- Yellow Row Alert: Indicates a special note or specific time requirement (e.g., "2 weeks after last eye").
- Actions:
- Selecting a Surgery: Clicking on a row opens details in the "Related Appointment" panel, allowing for appointment creation or modification.
Related Appointment Panel:
- Creating a New Appointment:
- Fields:
- Facility: Dropdown list of available facilities.
- Key Person: Dropdown to select the surgeon or staff responsible.
- Appointment Type: Dropdown for the type of appointment (e.g., "Katarakt Surgery").
- Appointment Variation: Optional dropdown for specific variations or categories of the selected appointment type.
- Next Slots Selector: Displays available time slots for the selected date range, allowing the user to pick a suitable time.
- Comment Field: Text field for adding comments related to the appointment.
- Book Appointment Button: Schedules the appointment and updates the patient's status in the main table.
- Fields:
- Connecting with Existing Appointment:
- Load Existing Appointment: Selects a previously scheduled appointment for connecting.
- Edit Appointments Display:
- List of Upcoming Appointments: Shows planned surgeries with date, time, preparation, and involved staff.
- Reschedule Option: Provides functionality to change or cancel an appointment as needed.
3. Dependencies:
- Data Dependencies:
- Patient Data: Details of patients and planned surgeries.
- Facility and Staff Lists: Data for populating the dropdown menus with available facilities and staff.
- Available Time Slots: Dynamic data showing time slots based on facility and staff availability.
- Functional Dependencies:
- Checklist Completion for Scheduling: Ensures surgeries cannot be booked if the checklist (or pre-surgery conditions) is incomplete.
- Conflict Checker: Detects conflicts in surgery scheduling to prevent double-booking.
Action-Trigger Relationships:
| Action | Trigger | Effect |
|---|---|---|
| Select a surgery row | Click on a row in the table | Loads patient details in the Related Appointment panel for booking or modification |
| Click "Create Appointment" | Button click | Enables the user to fill out appointment details for a new surgery |
| Choose date range for "Next slots" | Date selection | Updates available time slots based on selected range |
| Click "Book Appointment" | Button click | Confirms the appointment, updates the main table, and clears Related Appointment fields |
| Click "Correct with existing one" | Button click | Loads existing appointment details into the fields for editing |
| Select "Reschedule" option in Upcoming Appointments | Option selection | Opens fields to change the scheduled date or time for an existing appointment |
