CASE DETAILS VIEW – DISPATCHER FLOW
1. Case States
Can be in either Non-Edit State or Edit State Read-only mode with Team Lead Comments Enabled
2. Open/Ongoing Case
2.1. Non-Edit State (View Mode)
When a dispatcher clicks on a case, they see all available information but cannot modify fields directly. The following details are displayed: Time call started & ended Always available for dispatchers to add notes with: If a second dispatcher joins, their name should be recorded. Live Tracking of Responders/Ambulance Available only in the ongoing case state.
2.2. Edit State (Updating Case Information)
Only the following fields are editable: Each field has a small edit icon next to it. Clicking the edit icon enables that field for input. Dispatcher who made the change
3. Closed Case (Read-Only Mode)
Only Team Leads can leave a final comment after a case is closed. Must log the Team Lead’s name
4. Case Details Tabs
4.1. Case Information Tab
Displays the following:
Location & Landmark (Editable) Security Access Details (Editable) Diagnosis Information (Editable) Responder Tracking (Live Map View) Visible only when the case is still open. 4.2. Secondary Interview Tab
Adapts Edit & Non-Edit States. 4.3. Patients Tab
Retains existing details. Ensures Edit & Non-Edit States apply. 4.4. Reports Tab
Instead of a modal, clicking a report opens a dedicated page. Details are structured for better readability. Professional banking-style layout.
5. Alternative Flows
5.1. Multiple Dispatchers Handling a Case
If another dispatcher joins a case: Their name is logged under "Assisting Dispatcher." Editing permissions remain the same (only specific fields are editable). 5.2. Case Escalation
If a case requires higher-level intervention, a Team Lead can override details. 5.3. Attempted Edits on a Closed Case
Dispatchers attempting to edit a closed case see an error message: "This case has been closed. Only a Team Lead can leave a comment."
6. Technical Requirements
6.1. Database Changes
Add timestamps to edits and notes. Changes made to case details Assisting dispatcher involvement 6.2. UI/UX
Editable fields should have a small edit icon next to them. Clicking an edit icon should: Log the edit after saving. 6.3. Permissions
7. Business Rules
All cases must have a defined state (Open/Ongoing or Closed). Fields cannot be left blank—if no data exists, display "No information available" instead of leaving fields empty. Edits must be logged with timestamps and the dispatcher’s name. Only Team Leads can close cases and add final comments. Live tracking is only visible in an active case. Reports must be exportable in structured PDF and Excel formats.
Mapping Calls to Cases Automatically
To ensure that every call is mapped to a case automatically when a case is created during an ongoing call, the system will need to register the following call details:
Caller’s Phone Number (Auto-captured) Call Start Time (Auto-captured) Call End Time (Auto-captured) Total Call Duration (Auto-calculated)
How It Works
1. Auto-Matching Logic
If a dispatcher creates a new case while a call is ongoing, the system will: Capture the phone number. Start tracking the call’s duration. Automatically associate the call with the case. 2. What Happens When the Call Ends?
The system updates the call end time. The total call duration is calculated. This data is stored in the Case Details. 3. Displaying Call Information in Case Details
When a dispatcher views the case, they will see: These fields will be read-only to prevent manual changes.
Technical Implementation
Alternative Scenarios
1. A Dispatcher Creates a Case After the Call Ends
If the dispatcher logs a case after the call has already ended, the system will: Still link the phone number. Fetch the last call duration and timestamps from the system. 2. Multiple Calls for the Same Case
If the same phone number calls again, the system will: Log additional call details. Track multiple call durations under the same case. 3. A Case is Created Without a Call
If a case is manually created without a call, the "Call Details" section will show: "No call records available for this case." Business Rules
A case should always be linked to a call if a call is active at the time of creation. If a case is created after the call ends, the system will still link the last recorded call. Call details are automatically recorded and cannot be edited. If there are multiple calls for a case, each call must be logged separately.