Example commands:
delAppt i/T0123569I d/2024-09-20 t/1000-1100
Acceptable values:
NRIC:
Must be 9 characters
first and last characters being alphabets
Follows the 9-character Singapore NRIC format for uniqueness.
Case-insensitive (e.g. ‘TXXXXXXXB’ is the same as ‘tXXXXXXXb’) for consistency.
Date:
Must be in the YYYY-MM-DD format (e.g., "2024-09-20").
Standard YYYY-MM-DD format for consistency and scheduling ease.
Time:
Must be in the HHMM format (24-hour clock) (e.g., "1000")
must be in an interval (e.g. 1000-1100).
Appointment time intervals cannot overlap with other existing appointment time intervals.
Standard HHMM format for consistency and scheduling ease.
Time format should be (start time - end time) where start time < end time.
The start time should not equal the end time.
Error message if invalid:
"Invalid date format. Use YYYY-MM-DD."
"Invalid time format. Use HH:MM."
"Patient does not exist.”
“There is no valid appointment for this date and time”
Outputs:
Success: "Appointment for John Doe canceled on 2024-09-20 at 1700-1900."
Failure: Error message related to the incorrect input format.
Null handling: The system will check if an appointment does not exist for the given date and time, prompting a message like "Appointment does not exist for this date and time."
Feature: Delete Appointment
Purpose: Allows doctors to delete an appointment with a patient.
Command format:
delAppt [i/NRIC] [d/DATE] [t/TIME]
Example commands:
delAppt i/T0123569I d/2024-09-20 t/1000-1100
Acceptable values:
Error message if invalid:
Outputs: