Medical Issue
The Medical issue section captures the patient-provided reason for the appointment and optional supporting documents. It is part of the Appointment Request and Appointment Details views.
This section includes:
- Medical issue field (required text input).
- Upload photos or documents (optional file attachments).
- Next or Update action depending on appointment state.
Workflow
- During Appointment Request, the user enters a description of the medical concern.
- The user uploads supporting files if applicable.
- The user selects Next to proceed to confirmation.
If the appointment request already exists:
- The user selects Edit Request from the appointment.
- The section loads with existing description and attachments.
- The user modifies the content and selects Next > Update.
Validations
Actions
| Trigger | Result |
|---|---|
| Description entered | Validate input. |
| Attachment uploaded | Add file reference to request state. |
| Attachment removed | Remove file reference from request state. |
| Next selected (valid state) | Persist section data and navigate forward. |
| Update selected (editable state) | Persist changes and refresh appointment data. |
| Backend rejection | No state change. Display error. |

