Code Monkey home page Code Monkey logo

ped's People

Watchers

 avatar

ped's Issues

flaws in the searchpatient by name

While the UG actually states " The name or a substring of the name of the patient you want to look for. It may not be the full name of the patient. Any patient with the entered sub-name could be displayed. It is case-insensitive."

When I entered: searchpatient n/davi or searchpatient n/da, it shows " No patient matching the criteria has been found." but in fact David Li is inside which can be found by
searchpatient n/david. This contradicts the instructions which shows that substring can be used. Perhaps could either modify the UG guideline or change the implementation to match the guideline

Inconsistency between error message and exceptions thrown

editpatient john p/91234567 t/363.2
editpatient john p/91234567 t/- 36

entering the above command give me the error:" Temperature should only contain numbers, and it should be to one decimal place. (E.g. 36.0)"

While the above temperature input is not gonna be given by the user, but if the user mis typed the value and the error shown is actually as above, this is still an inconsistency that didnt really reaport the issue, perhaps can modify the error message?

Duplicates of the tasks assigned not detected

When I enter the command : addtask d/Remind John to return his bedsheets r/3 dd/20200928 2359
for more than 1 time, it is still added successfully, but same as checking duplicate person, duplicate tasks should be detected as well

allocateroom 1 n/-

This command is still executed despite the room already being empty, the team may consider to show an message to the user instead.

initroom clears all the previous created rooms

while initroom is meant to initialise the rooms for the first time, however, when i want to add in more rooms or modify the room numbers, there is no way to do this, initroom will simply clears all the previous room data. The team may consider add in the relevant commands for such purposes that may be needed in the real world. Also might need a field to store the address of the room instead of simply a room number.

Inconsistency between command errors and exceptions shown

When i type in the command:
addpatient n/John Doe t/37.1 d/20220910-20210924 p/98765432 a/35
The user may not know the order of that time duration ( backwards or forward) or he might accidently mis type the number,

the error shown is "Period of stay should be in the format YYYYMMDD-YYYYMMDD." which didnt really reflect the error here that might confuse the user, perhaps could specify the error message for this scenario?

Errors in searchtask

when i type searchtask dd/12/1/2021 from the UG as an example, nothing shows up and even the error messages. So confuses me whether this is an actual implementation, perhaps could check this again.

inconsistency between error shown and the exception

when i entered searchroom r/6.0, the error is actually shown as " Please only enter positive numbers." which actually misaligns with the actual bug, so might be more specific in the message saying it must be an positive integer, in the UG as well, specifying the format

Advice in the features

The team might want to keep track of the patients temperature and warn the system if the temperature is too high. The past temperatures should also be recorded to show the trend. The team might want to have a command to list all that are in fever and hence may need extra care.

Flaws in the searchpatient by time duration

when i entered: searchpatient tr/35-39 or searchpatient tr/35.1-39 or searchpatient tr/35- 39.0, error is shown which tells me "Temperature range should contain temperature-temperature" but this barely states the issue as 35-39 is a temperature range, or 35 - 39.0 or 35.1 - 39, while the UG states the requirement, the error shown here still mismatches the real issues, what if the user fail to read the UG carefully and obtain such bug, it would be better to tell the specific bug.

Unable to add people with the same name

When I try to add in two different people with the same name but actually different details, exception is thrown and shows the patient already exists, which in real world application should not be this case, as there are a lot of people with the same name. Perhaps could improve the implementation?

e.g. entering addpatient n/John Doe t/37.1 d/20200910-20210924 p/98765432 a/35

and addpatient n/John Doe t/36.1 d/20200911-20210925 p/68165435 a/31

will give me the error

initroom implementation needs to be improved

When I entered initroom 222222, which is a large number that may actually be needed in the real world, however, the app that lags and dies off, maybe this is an issue for my computer, but should state the requirements for the computer to be able to run this as this will definitely be needed in the real world

Inconsistency between error shown and exception

When i type addtask d/Remind John to return his bedsheets r/3 d d/20200928 2359

the error shows Please only enter positive numbers.

but in fact the error should be d d should be together or dd field is missing, might want consider correcting this as the user may accidentally type an extra space

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.