Giter Club home page Giter Club logo

ped's Introduction

Hi there ๐Ÿ‘‹

ped's People

Contributors

parth-io avatar

Watchers

 avatar

ped's Issues

Invalid dates should be rejected, instead of being silently adjusted to be the nearest valid date

When adding a past appointment with an invalid date, the earliest valid date gets automatically chosen. This is incorrect behaviour, as it can lead user typos to be accepted.

For example, the command appt 6 on/29-02-2022 diag/Common cold, viral flu m/Panadolx m/Lozenges is incorrect because of Feb 29. As seen in the screenshot, the date get automatically chosen to be 28 Feb without any warning to the user. I only discovered this bug because I meant to type 29 March, but my fat fingers got in the way and I typed 2 instead of 3.

image.png

User Guide is a bit messy and hard to navigate

The length of the User Guide can be reduced, to reduce information overload and to make it easier to navigate. The problem that I faced was a very long page, and I had to keep scrolling up and down the page or to use the find shortcut on my browser to locate the command I wanted to read.

Part of the problem is the length of the section for get. I think it can be shortened with the help of a table which only states the prefix (/n), the property to search by ("name") and a single example to demonstrate the intended usage. Details of the format (such as it being case-insensitive for "name", etc.) can be included using a collapsible section.

Help command does not display the window as mentioned in the User Guide

image.png

When help is typed, a help window should appear visibly. However, as shown in the screenshot, the help window is not fully visible and not even maximisable. I am running Linux, so I am not sure if that is causing an issue. The details of my Linux system:
5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

image.png

Multiple prefixes of the get command seem to be allowed

There are a couple of permutations of get's prefixes which seem to be running successfully despite being incorrect. This is one of them: get /wn /inp /outp. A suggested behaviour to implement is to either parse the first or the last prefix only, or to simply throw an error if multiple prefixes are detected.

image.png

get /appton command is not working as expected

The get /appton command does not perform any action after I type it and press <Enter>. Furthermore, it does not show up if I press the UP key to scroll up and view previous commands. I suspect that the None values might be causing an issue.

Here is a link to a quick recording that attempts to get the appointment date of Bernice Yu:

video:https://raw.githubusercontent.com/parth-io/ped/main/files/fc1aa477-9df6-41ca-b7f1-69082731451c.mp4

Here is a screenshot of my current persons' list:

image.png

Here is the checkup.json file at that precise moment when I was entering the command (rename it to json):

checkup.txt

Locating patients by nok is confusing and should be re-worded to emphasise that we are locating nok data

The user guide states that to retrieve the next-of-kin data for a patient, you can use the get /nok PATIENT_NAME command. However, the behaviour of the command is inconsistent with what is implied by the formatting/structure of the user guide. The /nok prefix is under Locating patients, as shown here:

Locating patients: get

by next-of-kin data: /nok

The implication of this in the UG is that you can locate patients by searching for their next-of-kin data.

But the command locates next-of-kin data by searching for a patient's name.

The object of our search is different, and confusing to those reading the User Guide. This command can be moved out to a separate section, which can be labelled like this:

Getting next-of-kin data

Checking for duplicate persons is not case insensitive

Steps to reproduce:

  1. Pick an existing user: Amy Toh
  2. The command add n/Amy Toh p/98765432 e/[email protected] nok/Jane Doe, Wife, 82858285 pt/inpatient hw/south fn/3 wn/D690 m/panadol m/ibuprofen should display an error message, which is expected.
  3. The command add n/Amy toh p/98765432 e/[email protected] nok/Jane Doe, Wife, 82858285 pt/inpatient hw/south fn/3 wn/D690 m/panadol m/ibuprofen does not display an error message, which is not expected.

I may be wrong, and this may be an intended feature that needs to be documented in the user guide. However, it is reasonable to expect that names of most persons start with a capital letter and to expect Amy toh to refer to the same person Amy Toh.

image.png

image.png

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.