Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented AddVisit and DeleteVisit feature #27

Merged
merged 19 commits into from
Oct 9, 2019

Conversation

SQwQ
Copy link

@SQwQ SQwQ commented Oct 8, 2019

AddVisit

  1. addVisit takes in index of person and formatted date (dd/mm/yyyy) and calls handleAddVisit function of MainWindow.

  2. handleAddVisit function of MainWindow shows VisitRecordWindow, which is a form for the user to fill in.

  3. Pressing the submit button/F2 key will call SaveVisitCommand which takes the index and date passed from AddVisitCommand and the user's input on the form to add new VisitReport with all the relevant fields filled in to the Person's VisitList.

  4. Saved reports can be found in the addressbook.json file in the data folder

DeleteVisit

  1. deleteVisit takes in index of the person and the index of the record to be deleted

  2. Everytime deleteVisit is run, handleDeleteVisit function of MainWindow will run to show a list of VisitRecords of the chosen person.

  3. If the second argument (index of the record) is empty, pop up list will still show up and no changes would be made to the chosen Person.

@SQwQ SQwQ added status.Ongoing The issue is currently being worked on. note: remove this label before closing an issue. v1.2 labels Oct 8, 2019
@SQwQ SQwQ added this to the v1.2 milestone Oct 8, 2019
@SQwQ SQwQ requested a review from a team October 8, 2019 13:01
@SQwQ SQwQ self-assigned this Oct 8, 2019
Copy link

@ReignOfComputer ReignOfComputer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good progress for mid-milestone, may want to look at refactoring Person to Patient. To discuss how we want to structure Diagnosis and Remarks, perhaps.

100/100 for TypicalVisits test (good example on how Visit is structured, CC @gachia @Wingedevil @Q-gabe).

LGTM.

@ReignOfComputer
Copy link

@gachia can you change the Coveralls threshold or remove it as a merge prerequisite?

@gachia
Copy link

gachia commented Oct 9, 2019

@gachia can you change the Coveralls threshold or remove it as a merge prerequisite?

Done. Lowered Threshold for Coveralls.

@ReignOfComputer ReignOfComputer merged commit a05ddfc into AY1920S1-CS2103T-F12-2:master Oct 9, 2019
@SQwQ SQwQ removed the status.Ongoing The issue is currently being worked on. note: remove this label before closing an issue. label Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants