Skip to content

Releases: AY2425S1-CS2103T-T11-4/tp

v1.6

12 Nov 03:22
a0c83c5
Compare
Choose a tag to compare
Merge pull request #286 from Sornsornah/add-final-doc-changes

Fix documentation bugs

v1.5

07 Nov 15:09
687c55e
Compare
Choose a tag to compare
Merge pull request #193 from nayanaamahesh/master

Fix bug for empty allergy in filter

v1.4

24 Oct 15:34
116b437
Compare
Choose a tag to compare

Command Updates

1. Date command

  • Description: Using name and email / phone number, the user can add or update the next appointment date
  • New Command Format: date n/NAME p/PHONE e/EMAIL d/DATE
  • Details:
    • At least one parameter is required; up to three parameters can be included.
    • Updated messages for incorrect command format, no entry detected, and multiple entries detected.
      image

2. Schedule command:

  • Description: shows the schedule for the day inputted by the user (i.e. shows all patients whose next appointment is on the day inputted by the user)
  • New Command Format schedule d/DATE
  • Details:
    • Date must be an exact match
      image

    • At least one date must be provided
      image

    • Cannot specify more than one date (you can only see your schedule for one day at a time)
      image

3. Filter command

  • Description: filter by combination of phone, email, address, and/or tags
  • New Command Format: filter n/NAME p/PHONE e/EMAIL t/TAG
  • Details:
    • For each filter command, the results can only be filtered by phone, email, address and/or tags, and nothing else.
      image

    • For each filter command at least one feature must be present to filter by
      image

    • This is an AND search: if more than one feature is given, the system outputs the list of people who match all the features being filtered by
      image

Allergy System Update

  • Description: Allows users to view information about their patients’ allergies
  • Command Format: m/ALLERGY (in add command)
    • Users must input an allergy otherwise a message is prompted asking them to input allergy using the format m/ALLERGY.
  • Details:
    • In case a person has no allergies, the allergy input should be None.
      image
    • If a person has more than 1 allergy, the allergies should be separated .
      image
    • If the allergy input does not follow the format and includes invalid characters, an error prompt is shown.
      image

v1.3

17 Oct 14:43
ec65be9
Compare
Choose a tag to compare

Validation Updates

  1. Name Validation
    Names should only contain alphanumeric characters, spaces, and hyphens, and it should not be blank.
Screenshot 2024-10-17 at 1 21 02 AM
  1. Phone Validation
    Phone numbers must be 8 digits long and must start with 3, 6, 8, or 9 to comply with Singapore’s valid number format.
    Phone numbers entered with spaces will automatically be reformatted to remove spaces for consistency.
Screenshot 2024-10-17 at 1 22 49 AM
  1. Email Validation
    Local Part (before '@'):
    - Allowed characters: Letters, digits, . , _ , +, -
    - Rules: Cannot start or end with special characters. No spaces allowed.

    Domain Part (After '@'):
    - Allowed characters: Letters, digits, -, .
    - Rules: Cannot start or end with a hyphen, must have a TLD of at least 2 characters.

    Error Message:
    - For invalid email input, this error message is shown: "Invalid email format. Please ensure your email includes a valid domain (e.g., [email protected])".

Screenshot 2024-10-17 at 1 39 11 AM

Command Updates

  1. Delete Command
    New Command Format: delete n/name p/phone e/email
    At least one parameter is required; up to three parameters can be included.
    Updated messages for incorrect command format, no entry detected, and multiple entries detected.
    Parameter order is flexible and does not impact functionality.
Screenshot 2024-10-17 at 1 41 48 AM Screenshot 2024-10-17 at 1 42 03 AM
  1. View Command
    The list command has been replaced with view. This command retains the same functionality as list, displaying all entries.
Screenshot 2024-10-17 at 1 44 12 AM

Tagging System Update

Every person must have exactly one tag.
The tag must be one of three values: "High Risk", "Medium Risk", or "Low Risk".
Screenshot 2024-10-17 at 1 45 00 AM
Screenshot 2024-10-17 at 1 45 26 AM

Duplicate Person Logic

Two people are considered duplicates if and only if they have the same name and phone number.
People with the same name but different phone numbers should not be considered duplicates (e.g., common names).
People with different names but the same phone number (e.g., households or children sharing a contact) are also considered unique.
Screenshot 2024-10-17 at 1 47 22 AM