nus-cs2103-AY2425S1 / pe-dev-response

0 stars 0 forks source link

Multiple logs in the same day is saved as different logs #2083

Open nus-se-script opened 5 days ago

nus-se-script commented 5 days ago

When multiple logs are made for the same session, it is saved as separate logs. For example, when I do addlog i/S7140834E d/15 Nov 2024 l/young patient, then addlog i/S7140834E d/15 Nov 2024 l/has insomnia, followed by logs i/S7140834E, I get the following:

Screenshot 2024-11-15 at 4.50.21 PM.png. As seen, there are 2 separate logs despite the same date/appointment on 15 Nov 2024. Making it inefficient in viewing logs from the same appointment.

Consider the following case: A doctor/therapist views a patient for a consultation. As the consult goes, the doctor continuously adds consult notes ie logs using the addlog command. Her doing so will result in multiple entries of logs despite it all being in the same appointment itself.

As a user, I would except addlogs to organise logs according to appointment/dates for each patient so that I can easily view all patient information by appointment.

A suggestion would be to add all logs under the l/ field to the same log but in a new line.


[original: nus-cs2103-AY2425S1/pe-interim#2864] [original labels: severity.Medium type.FeatureFlaw]

slidings commented 5 days ago

Team's Response

It seems like there is a misunderstanding in what is considered as a session log. Each log is tagged to a single therapy session, on any given day there can be multiple therapy session for a person as such, multiple logs in a single appointment date. As such these logs should not be appended.

Duplicate status (if any):

--