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

[CS2103T-T12-2] MedInfo #66

Open
wants to merge 536 commits into
base: master
Choose a base branch
from
Open
Changes from 18 commits
Commits
Show all changes
536 commits
Select commit Hold shift + click to select a range
6995c55
Add table of contents for DG
yitong241 Mar 29, 2023
7b2c453
Add table of contents for DG
yitong241 Mar 29, 2023
3397dbb
Add more commands into UG
yitong241 Mar 29, 2023
597646c
Merge pull request #165 from yitong241/master
nramapurath Mar 29, 2023
de4108a
Update ward naming convention in UG
KSunil2001 Mar 29, 2023
ae3668f
Change delete confirmation logic
nramapurath Mar 29, 2023
3ee0e36
Add help.txt
Mar 29, 2023
eb4c88f
fix bug where patient's ward is not updated
jeraldkiew Mar 29, 2023
dc8e1b6
Merge branch 'AY2223S2-CS2103T-T12-2:master' into master
KSunil2001 Mar 29, 2023
dfd340a
Merge branch 'master' of https://github.com/KSunil2001/tp
Mar 29, 2023
8ed3b7d
fix bug where edit ward could have insufficient c
jeraldkiew Mar 29, 2023
8ab47ed
Merge pull request #164 from KSunil2001/master
nramapurath Mar 29, 2023
adced84
Fix sort command error message display bug
yitong241 Mar 29, 2023
8b8774c
Merge pull request #167 from yitong241/master
nramapurath Mar 29, 2023
953ca62
Merge branch 'master' into confirm-deletion
nramapurath Mar 29, 2023
25f7e01
Remove unused import in AddressBookParser.java
nramapurath Mar 29, 2023
7cd418c
Update screenshots in UG
nramapurath Mar 29, 2023
ad579ac
Update UG help screenshot
nramapurath Mar 29, 2023
153ecc4
Minor UG edits
nramapurath Mar 29, 2023
a890a4e
Changes to UG introductory paragraphs, changes to UI
daytona65 Mar 29, 2023
cf6550a
add canSupport method to Ward
jeraldkiew Mar 29, 2023
519b450
fix coding style issues
jeraldkiew Mar 29, 2023
fd3f89c
Merge pull request #169 from nramapurath/update-UG
jeraldkiew Mar 29, 2023
4adeda4
add editward to UG
jeraldkiew Mar 29, 2023
3f97db7
fix delete (patient), add delete ward to UG
jeraldkiew Mar 29, 2023
2a9f87e
fix invalid data file msg in UG
jeraldkiew Mar 29, 2023
3a49649
Merge pull request #168 from nramapurath/confirm-deletion
daytona65 Mar 30, 2023
16b81e8
{:toc} test
daytona65 Mar 30, 2023
4405cf8
Merge changes
daytona65 Mar 30, 2023
1ce1fcb
Merge pull request #170 from daytona65/master
daytona65 Mar 30, 2023
0336290
Merge branch 'master' into master
nramapurath Mar 30, 2023
7408881
UG Reformat
daytona65 Mar 30, 2023
463cdd4
Merge branch 'AY2223S2-CS2103T-T12-2:master' into master
daytona65 Mar 30, 2023
11f8727
Merge branch 'master' of https://github.com/AY2223S2-CS2103T-T12-2/tp…
jeraldkiew Mar 30, 2023
f74a5e6
Merge pull request #171 from jeraldkiew/master
nramapurath Mar 30, 2023
d6583bc
UG
daytona65 Mar 30, 2023
20105cc
More change to UG
daytona65 Mar 30, 2023
72d9cff
Merge branch 'master' of https://github.com/daytona65/tp
daytona65 Mar 30, 2023
06eb0cd
FAQ addition and minor edits
nramapurath Mar 30, 2023
300eb36
FIX UG
daytona65 Mar 30, 2023
395d0bc
Merge pull request #172 from nramapurath/update-UG
daytona65 Mar 30, 2023
a92ca0c
FIX command summary
daytona65 Mar 30, 2023
dc9ef86
Merge with Nava
daytona65 Mar 30, 2023
121dbb3
Merge pull request #173 from daytona65/master
daytona65 Mar 30, 2023
901c55a
Fix headers
daytona65 Mar 30, 2023
73577bb
Merge pull request #174 from daytona65/master
daytona65 Mar 30, 2023
d22ec37
Merge branch 'master' of https://github.com/KSunil2001/tp
Mar 30, 2023
5065d4f
Merge pull request #163 from jeraldkiew/editward
nramapurath Mar 30, 2023
d6cbca5
fix coding style
jeraldkiew Mar 30, 2023
156f0d6
change addward prefix to 'w/'
jeraldkiew Mar 30, 2023
2a7f8b3
Merge pull request #176 from jeraldkiew/editward
nramapurath Mar 30, 2023
1ed8b5a
Refactor from addressbook to medinfo
yitong241 Mar 30, 2023
39d60f6
Refactor from addressbook to medinfo
yitong241 Mar 30, 2023
d025d3c
Refactor from addressbook to medinfo
yitong241 Mar 30, 2023
acf7a8c
Merge pull request #177 from yitong241/refactorr
nramapurath Mar 30, 2023
0894483
Statusbarfooter done
daytona65 Mar 30, 2023
2656758
Merge with refactor
daytona65 Mar 30, 2023
a82db85
Merge conflicts fully resolved
daytona65 Mar 30, 2023
c17b321
Number of critical in UniquePatientList refactor
daytona65 Mar 30, 2023
db87fc8
Merge pull request #178 from daytona65/master
nramapurath Mar 30, 2023
925618f
UG edit to match ward prefix in commands
nramapurath Mar 30, 2023
5131825
Edit clear command confirmation message
nramapurath Mar 30, 2023
e8cfa3f
Standardize to WARD in command help messages
nramapurath Mar 30, 2023
2559ad6
Merge pull request #179 from nramapurath/edit-clearconf-UG
nramapurath Mar 30, 2023
b098869
Update patient card with discharge date
nramapurath Mar 30, 2023
d525915
Fix sorting by date
nramapurath Mar 30, 2023
9288bce
Merge pull request #180 from nramapurath/fix-discharge-date-display
jeraldkiew Mar 30, 2023
341deaa
Make unique ward check case-insensitive
nramapurath Mar 30, 2023
06f223b
Merge pull request #181 from nramapurath/fix-ward-case
nramapurath Mar 30, 2023
84bddae
Update MainApp version number
nramapurath Mar 30, 2023
9df5af5
Merge pull request #182 from nramapurath/master
nramapurath Mar 30, 2023
9fd55ea
Add text wrapping to result display and adjust its default size
daytona65 Mar 31, 2023
3bab1f0
Merge branch 'master' of https://github.com/daytona65/tp
daytona65 Mar 31, 2023
b372094
Improve UG and Index.md. _base.scss file edited to (hopefully) retain…
daytona65 Mar 31, 2023
69d77a8
Test UG
daytona65 Mar 31, 2023
213715a
Table of contents
daytona65 Mar 31, 2023
183bf45
Another attempt to fix links
daytona65 Mar 31, 2023
26bcb18
More changes
daytona65 Mar 31, 2023
51b21e4
User Interface Overview
daytona65 Mar 31, 2023
248db48
Improve NRIC error message, update UI screenshots
daytona65 Mar 31, 2023
ba7fdbc
Fix datetime validation issue
yitong241 Apr 1, 2023
88862c1
Attempt to print links to pdf
daytona65 Apr 1, 2023
23442c2
Merge pull request #183 from daytona65/master
nramapurath Apr 3, 2023
c97ecb0
Merge pull request #234 from yitong241/master
daytona65 Apr 4, 2023
9659d89
User Interface Overview
daytona65 Apr 4, 2023
32c592a
Merge branch 'master' of https://github.com/KSunil2001/tp
Apr 5, 2023
24e364f
Update UG to classify the features
Apr 5, 2023
87e65de
Validate Future discharge when editing
yitong241 Apr 6, 2023
eb33294
Merge pull request #241 from yitong241/master
nramapurath Apr 6, 2023
fb480b2
Merge pull request #235 from KSunil2001/master
nramapurath Apr 6, 2023
4d69e7c
Merge pull request #236 from daytona65/master
yitong241 Apr 6, 2023
975ce3a
Update Introduction and Quick Start
nramapurath Apr 6, 2023
7a58262
Update How to use UG section
nramapurath Apr 6, 2023
7cfb84c
Update About MedInfo
nramapurath Apr 7, 2023
2e7570e
PPP draft
daytona65 Apr 7, 2023
8179f5f
Update PPP for ksunil2001.md
Apr 7, 2023
a6afa1c
Merge pull request #242 from daytona65/master
daytona65 Apr 7, 2023
63b2c98
Merge pull request #243 from KSunil2001/master
KSunil2001 Apr 7, 2023
7b46337
Update Nav PPP
nramapurath Apr 7, 2023
be14f5b
Merge branch 'master' into edit-PPP
nramapurath Apr 7, 2023
22ee38d
Merge pull request #244 from nramapurath/edit-PPP
nramapurath Apr 7, 2023
f5b17d3
update Jerald PPP
jeraldkiew Apr 7, 2023
c66e552
Merge pull request #245 from jeraldkiew/master
jeraldkiew Apr 7, 2023
b726b22
Fix a few failing test cases
Apr 7, 2023
04db5ed
Merge branch 'AY2223S2-CS2103T-T12-2:master' into master
KSunil2001 Apr 7, 2023
3cc6521
Merge branch 'master' of https://github.com/KSunil2001/tp
Apr 7, 2023
27b1b85
Merge pull request #246 from KSunil2001/master
nramapurath Apr 7, 2023
912775e
Fix sort by date
yitong241 Apr 8, 2023
374476c
Merge branch 'AY2223S2-CS2103T-T12-2:master' into master
yitong241 Apr 8, 2023
8f2c12f
Move WardNameContainsKeywordsPredicate.java
yitong241 Apr 8, 2023
1e1e3fb
Merge branch 'master' into update-UG
nramapurath Apr 8, 2023
9fa8b2a
Fix editward to avoid editing Waiting Room name
Apr 8, 2023
bc793e8
Add clear command to UG, and misc edits in intro
nramapurath Apr 8, 2023
a0e8d6c
Updated features and command summary
nramapurath Apr 8, 2023
9defd1d
Fix bugs
daytona65 Apr 8, 2023
4120333
Add details about sort command
nramapurath Apr 8, 2023
403c8a1
Add sort example to command summary
nramapurath Apr 8, 2023
59de2b9
Merge pull request #247 from yitong241/master
nramapurath Apr 8, 2023
2df7008
Merge pull request #248 from KSunil2001/master
nramapurath Apr 8, 2023
afa89c6
Merge branch 'master' into update-UG
nramapurath Apr 8, 2023
3ce32b2
Merge pull request #249 from nramapurath/update-UG
KSunil2001 Apr 8, 2023
acaed8f
Fix more bugs for Ward
daytona65 Apr 8, 2023
0aba329
Merge branch 'AY2223S2-CS2103T-T12-2:master' into master
daytona65 Apr 8, 2023
202e7ab
Revert all UI changes
daytona65 Apr 8, 2023
7cf8b4f
Capacity 0 bug
daytona65 Apr 9, 2023
d6876fc
update DG, remove proposed undo/redo
jeraldkiew Apr 9, 2023
9a6c9c1
update puml diagrams for DG
jeraldkiew Apr 9, 2023
493021b
Revert additional Name WardName restrictions
daytona65 Apr 9, 2023
abca6c6
Add section on Planned Enhancements
nramapurath Apr 9, 2023
2061d48
Merge pull request #250 from daytona65/master
nramapurath Apr 9, 2023
93f63d7
Merge branch 'master' into add-DG-enhancements
nramapurath Apr 9, 2023
cc78644
Refactoring
daytona65 Apr 9, 2023
323a1ce
Remove "future" in Discharge
yitong241 Apr 9, 2023
a26a4b3
Merge branch 'master' of https://github.com/KSunil2001/tp
Apr 9, 2023
1ebcb13
Fix ward name display in edit command
Apr 9, 2023
f98905a
Fix check style issues and testcases
Apr 9, 2023
be26f9e
Fix check style issues in docs
Apr 9, 2023
96b9d37
Fix failing test cases
Apr 9, 2023
557cb55
Merge pull request #260 from KSunil2001/master
nramapurath Apr 9, 2023
f7d633a
Merge branch 'master' into add-DG-enhancements
nramapurath Apr 9, 2023
0e6d62d
Merge pull request #254 from nramapurath/add-DG-enhancements
nramapurath Apr 9, 2023
1b8b882
Change window resize enhancement
nramapurath Apr 9, 2023
4d8490f
Merge pull request #261 from nramapurath/add-DG-enhancements
nramapurath Apr 9, 2023
e6d74ac
Fix WardNotFound crashing MedInfo
nramapurath Apr 9, 2023
9789bc4
Change Address Book mention in log
nramapurath Apr 9, 2023
4236e42
Add glossary to UG
nramapurath Apr 9, 2023
f66dab9
Miscellaneous UG edits
nramapurath Apr 9, 2023
e4ef569
Merge branch 'master' of https://github.com/AY2223S2-CS2103T-T12-2/tp
jeraldkiew Apr 10, 2023
a301c7d
fix typos
jeraldkiew Apr 10, 2023
50020cc
improve png puml diagrams
jeraldkiew Apr 10, 2023
9bd690c
Merge branch 'master' of https://github.com/KSunil2001/tp
Apr 10, 2023
42f09d6
fix ModelClassDiagram
jeraldkiew Apr 10, 2023
dd1dfa1
Merge pull request #251 from jeraldkiew/master
nramapurath Apr 10, 2023
915186d
fix optional parameters message
jeraldkiew Apr 10, 2023
990f65a
add find w/WARD to UG
jeraldkiew Apr 9, 2023
57e55f7
fix help message
jeraldkiew Apr 9, 2023
a36fcc7
Merge branch 'master' into fix-missing-ward
nramapurath Apr 10, 2023
84a56df
add delete confirmation to UG
jeraldkiew Apr 10, 2023
1f14ede
Merged Sunil commits
daytona65 Apr 10, 2023
f2b2577
add sort status info to UG
jeraldkiew Apr 10, 2023
9d567e6
Merge pull request #263 from nramapurath/fix-missing-ward
KSunil2001 Apr 10, 2023
4ce29a6
Merge branch 'master' into add-glossary
nramapurath Apr 10, 2023
a3652d1
fix "the user" to "you", add deleteward info
jeraldkiew Apr 10, 2023
ef385ba
fix condition to status
jeraldkiew Apr 10, 2023
1243e7e
small fix to UG
jeraldkiew Apr 10, 2023
e52eb13
Merge pull request #264 from nramapurath/add-glossary
KSunil2001 Apr 10, 2023
d6eb369
update wording of status description in Status
jeraldkiew Apr 10, 2023
8fde0f1
add info on capital NRIC to UG
jeraldkiew Apr 10, 2023
553db54
Update ksunil2001.md PPP
Apr 10, 2023
91a66a7
Merge pull request #266 from KSunil2001/master
KSunil2001 Apr 10, 2023
f1001c1
Merge branch 'master' of https://github.com/AY2223S2-CS2103T-T12-2/tp
jeraldkiew Apr 10, 2023
801d169
update helpMessage png
jeraldkiew Apr 10, 2023
840ffb9
Update PPP for ksunil2001.md
Apr 10, 2023
858b3aa
Merge pull request #267 from KSunil2001/master
KSunil2001 Apr 10, 2023
12a839c
update Ui.png
jeraldkiew Apr 10, 2023
2b2a1f3
small fix Ui.png
jeraldkiew Apr 10, 2023
4d643dc
add divider above features in UG
jeraldkiew Apr 10, 2023
1fe5ea3
fix help message
jeraldkiew Apr 10, 2023
1edfcd9
fix style in EditCommand
jeraldkiew Apr 10, 2023
0875da1
Merge pull request #265 from jeraldkiew/master
nramapurath Apr 10, 2023
5771725
Add line breaks in PPP ksunil2001.md
Apr 10, 2023
3beed98
Remove whitespace in PPP ksunil2001.md
Apr 10, 2023
064dc8b
Merge pull request #268 from KSunil2001/master
KSunil2001 Apr 10, 2023
fa17813
Merge branch 'master' of https://github.com/KSunil2001/tp
Apr 10, 2023
165bd82
Fix bug in ward capacity message
nramapurath Apr 10, 2023
645fc97
Merge pull request #269 from nramapurath/add-command-message-bug
daytona65 Apr 10, 2023
91a1617
Change MedInfo's way of copying itself. Only relevant for testing. Ch…
daytona65 Apr 10, 2023
5af2af2
Add review contributions, github links and tools used
nramapurath Apr 10, 2023
5760141
Merge branch 'master' into final-PPP-edits
nramapurath Apr 10, 2023
ac1da08
Merge pull request #271 from nramapurath/final-PPP-edits
nramapurath Apr 10, 2023
d65ca90
Update ksunil2001.md PPP
Apr 10, 2023
1451205
Merge pull request #273 from KSunil2001/master
KSunil2001 Apr 10, 2023
1df2dbc
Fix Waiting Room bug where capacity always resets to 10 on startup
daytona65 Apr 10, 2023
50263f2
Merge pull request #272 from daytona65/master
KSunil2001 Apr 10, 2023
26187bd
Edit date-time validation enhancement
nramapurath Apr 10, 2023
ed2e430
Complete fix for Waiting Room capacity bug + Clear will not delete Wa…
daytona65 Apr 10, 2023
112be71
Resolve conflicts
daytona65 Apr 10, 2023
af6c72d
Merge remote-tracking branch 'origin/master'
yitong241 Apr 10, 2023
293a31e
Merge branch 'master' of https://github.com/KSunil2001/tp
Apr 10, 2023
ace43bc
Modify yitong241.md PPP
yitong241 Apr 10, 2023
3a67bf8
Nic PPP
daytona65 Apr 10, 2023
2259f64
Merge pull request #276 from yitong241/master
KSunil2001 Apr 10, 2023
261a5d4
Update ksunil2001.md PPP
Apr 10, 2023
38eac7d
Merge pull request #277 from KSunil2001/master
KSunil2001 Apr 10, 2023
a143a91
Add javadoc for SortCommandParser.java
yitong241 Apr 10, 2023
6c62f15
Modify DG
yitong241 Apr 10, 2023
f8df35d
fix DG, remove {more to be added}
jeraldkiew Apr 10, 2023
59ddb03
Javadoc and code quality check up to Util
daytona65 Apr 10, 2023
858e1f3
Add javadoc for SortCommandParser.java
yitong241 Apr 10, 2023
838a010
Merge pull request #278 from yitong241/master
nramapurath Apr 10, 2023
2520f1a
update Jerald ppp
jeraldkiew Apr 10, 2023
80f9305
Merge branch 'master' of https://github.com/AY2223S2-CS2103T-T12-2/tp
jeraldkiew Apr 10, 2023
35511cd
Merge pull request #279 from jeraldkiew/master
yitong241 Apr 10, 2023
7ebb1b6
Remove failing testcases and fix checkstyle issues
Apr 10, 2023
b0ae0f2
Javadocs up to model
daytona65 Apr 10, 2023
3809e26
Remove whitespaces
Apr 10, 2023
d067da0
Merge pull request #274 from nramapurath/edit-validation-enhancements
yitong241 Apr 10, 2023
35a6688
Merge branch 'master' into master
yitong241 Apr 10, 2023
0b2d92e
Merge pull request #275 from daytona65/master
yitong241 Apr 10, 2023
6aeedfa
Minor change on DG
yitong241 Apr 10, 2023
6bf82fa
Add javadocs to Ui classes
nramapurath Apr 10, 2023
e34bdbd
Fix checkstyle in Discharge.java
KSunil2001 Apr 10, 2023
6065eaf
Merge branch 'master' into ui-javadocs
nramapurath Apr 10, 2023
0e1c4a8
Ward Javadocs
daytona65 Apr 10, 2023
87789f3
Merge pull request #281 from yitong241/master
yitong241 Apr 10, 2023
607bfe8
Update PPP
Apr 10, 2023
52a5859
Merge branch 'master' of https://github.com/daytona65/tp
daytona65 Apr 10, 2023
6624be3
Merge branch 'AY2223S2-CS2103T-T12-2:master' into master
daytona65 Apr 10, 2023
b2b1c74
Merge pull request #283 from daytona65/master
nramapurath Apr 10, 2023
9ab2152
Merge branch 'master' into ui-javadocs
nramapurath Apr 10, 2023
2ab0aca
Merge branch 'master' of https://github.com/KSunil2001/tp
Apr 10, 2023
8f445f3
Merge pull request #282 from nramapurath/ui-javadocs
daytona65 Apr 10, 2023
3272faa
Fix error
Apr 10, 2023
25a75bd
Remove acknowledgements as nothing to acknowledge
nramapurath Apr 10, 2023
417275d
Fix more checkstyle issues
Apr 10, 2023
ab77bd5
Merge pull request #285 from nramapurath/acknowledgements
KSunil2001 Apr 10, 2023
162b2b8
Remove from table of contents
nramapurath Apr 10, 2023
6e23582
Merge pull request #284 from KSunil2001/master
KSunil2001 Apr 10, 2023
f431b53
Merge pull request #286 from nramapurath/acknowledgements
nramapurath Apr 10, 2023
a3f8990
Fix buggy info box
nramapurath Apr 10, 2023
05acb6a
Merge pull request #287 from nramapurath/final-UG-edit
nramapurath Apr 10, 2023
2a02334
FIX
daytona65 Apr 10, 2023
db42320
df
daytona65 Apr 10, 2023
020ae1a
Merge pull request #288 from daytona65/master
daytona65 Apr 10, 2023
a5aa06c
Waiting room bug fixed.
daytona65 Apr 10, 2023
562b241
Merge pull request #289 from daytona65/master
KSunil2001 Apr 10, 2023
dba4e41
Add citation of reused code
yitong241 Apr 26, 2023
b72fe96
Merge pull request #290 from yitong241/master
yitong241 Apr 26, 2023
2ac246f
Add citation of reused code
yitong241 Apr 26, 2023
ab7be6e
Merge pull request #291 from yitong241/master
yitong241 Apr 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
@@ -12,7 +12,6 @@ You can use this guide to maintain, upgrade, and evolve **MedInfo**.

## Table of contents

* [Acknowledgements](#acknowledgements)
* [Getting Started](#setting-up-getting-started)
* [Design](#design)
* [Architecture](#architecture)
@@ -52,12 +51,6 @@ You can use this guide to maintain, upgrade, and evolve **MedInfo**.
* [Appendix: Planned Enhancements](#appendix-planned-enhancements)


---

## Acknowledgements

- {list here sources of all reused/adapted ideas, code, documentation, and third-party libraries -- include links to the original source as well}

---

## Setting up, getting started
1 change: 0 additions & 1 deletion docs/UserGuide.md
Original file line number Diff line number Diff line change
@@ -352,7 +352,6 @@ Format: `deleteward INDEX`
- You will not be able to delete a ward that currently has patients assigned to it.
</div>

<div markdown="block" class="alert alert-info">

Examples:

3 changes: 1 addition & 2 deletions docs/team/ksunil2001.md
Original file line number Diff line number Diff line change
@@ -41,9 +41,8 @@ Given below are my contributions to the project.

- **Contributions to Team-based tasks**:
- Refactored Person to Patient throughout the code
- Fixed checkstyle issues
- Fixed checkstyle issues <br>

<div style="page-break-after: always;"></div>

- **Review/mentoring contributions**:
- This link lists all the PRs I have reviewed: [Reviewed PRs](https://github.com/AY2223S2-CS2103T-T12-2/tp/pulls?q=is%3Apr+is%3Aclosed+reviewed-by%3Aksunil2001)
1 change: 0 additions & 1 deletion src/main/java/seedu/medinfo/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
@@ -5,7 +5,6 @@
import seedu.medinfo.commons.core.index.Index;
import seedu.medinfo.commons.util.StringUtil;
import seedu.medinfo.logic.commands.SortCommand;
import seedu.medinfo.logic.commands.SortCommand.Field;
import seedu.medinfo.logic.commands.SortCommand.Order;
import seedu.medinfo.logic.parser.exceptions.ParseException;
import seedu.medinfo.model.patient.Discharge;
7 changes: 3 additions & 4 deletions src/main/java/seedu/medinfo/model/patient/Discharge.java
Original file line number Diff line number Diff line change
@@ -3,18 +3,18 @@
import static java.util.Objects.requireNonNull;
import static seedu.medinfo.commons.util.AppUtil.checkArgument;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.text.DateFormat;
import java.util.Date;

/**
* Represents a Patient's discharge date in MedInfo.
*/
public class Discharge {

public static final String MESSAGE_CONSTRAINTS = "Discharge date-time should be a valid future date-time" +
" of the format dd/MM/yyyy HHmm";
public static final String MESSAGE_CONSTRAINTS = "Discharge date-time should be a valid future date-time"
+ " of the format dd/MM/yyyy HHmm";
public static final String DEFAULT_DISCHARGE = "To Be Confirmed";
public static final String DATE_FORMAT = "dd/MM/yyyy HHmm";

@@ -31,7 +31,6 @@ public Discharge(String discharge) {
value = discharge;
}


/**
* Returns true if a given discharge date-time is valid.
* @param date Date to check.
32 changes: 16 additions & 16 deletions src/main/java/seedu/medinfo/model/patient/Status.java
Original file line number Diff line number Diff line change
@@ -52,14 +52,14 @@ public static boolean isValidStatus(String test) {
*/
public String getDesc() {
switch(value) {
case "GREEN":
return "STABLE";
case "YELLOW":
return "SERIOUS";
case "RED":
return "CRITICAL";
default:
return "UNKNOWN";
case "GREEN":
return "STABLE";
case "YELLOW":
return "SERIOUS";
case "RED":
return "CRITICAL";
default:
return "UNKNOWN";
}
}

@@ -70,14 +70,14 @@ public String getDesc() {
*/
public Integer getValue() {
switch ((value)) {
case "GREEN":
return 1;
case "YELLOW":
return 2;
case "RED":
return 3;
default:
return 0;
case "GREEN":
return 1;
case "YELLOW":
return 2;
case "RED":
return 3;
default:
return 0;
}
}

4 changes: 2 additions & 2 deletions src/main/java/seedu/medinfo/model/ward/UniqueWardList.java
Original file line number Diff line number Diff line change
@@ -34,10 +34,10 @@
*/
public class UniqueWardList implements Iterable<Ward> {

private static final WardName WAITING_ROOM = new WardName("Waiting Room");
private final ObservableList<Ward> internalList = FXCollections.observableArrayList();
private final ObservableList<Ward> internalUnmodifiableList = FXCollections
.unmodifiableObservableList(internalList);
private static final WardName WAITING_ROOM = new WardName("Waiting Room");

/**
* Constructor for a UniqueWardList.
@@ -47,7 +47,7 @@ public UniqueWardList() {
}

/**
* Constructor for a NEW UniqueWardList with default Waiting Room ward with capacity of 10
* Initializes new wardlist with default Waiting Room ward with capacity of 10
* inside.
*
* @return New UniqueWardList with default Waiting Room.
2 changes: 0 additions & 2 deletions src/main/java/seedu/medinfo/storage/JsonAdaptedPatient.java
Original file line number Diff line number Diff line change
@@ -102,8 +102,6 @@ public Patient toModelType() throws IllegalValueException {
throw new IllegalValueException(Discharge.MESSAGE_CONSTRAINTS);
}
final Discharge modelDischarge = new Discharge(discharge);


return new Patient(modelNric, modelName, modelStatus, modelWard, modelDischarge);
}

2 changes: 2 additions & 0 deletions src/main/java/seedu/medinfo/ui/HelpWindow.java
Original file line number Diff line number Diff line change
@@ -70,6 +70,8 @@ public void show() {

/**
* Returns true if the help window is currently being shown.
*
* @return Boolean indicating if help window is being shown.
*/
public boolean isShowing() {
return getRoot().isShowing();
7 changes: 6 additions & 1 deletion src/main/java/seedu/medinfo/ui/MainWindow.java
Original file line number Diff line number Diff line change
@@ -71,6 +71,11 @@ public MainWindow(Stage primaryStage, Logic logic) {
helpWindow = new HelpWindow();
}

/**
* Returns the primary stage.
*
* @return The primary stage of the app.
*/
public Stage getPrimaryStage() {
return primaryStage;
}
@@ -81,7 +86,7 @@ private void setAccelerators() {

/**
* Sets the accelerator of a MenuItem.
* @param keyCombination the KeyCombination value of the accelerator
* @param keyCombination the KeyCombination value of the accelerator.
*/
private void setAccelerator(MenuItem menuItem, KeyCombination keyCombination) {
menuItem.setAccelerator(keyCombination);
7 changes: 7 additions & 0 deletions src/main/java/seedu/medinfo/ui/PatientCard.java
Original file line number Diff line number Diff line change
@@ -59,6 +59,13 @@ public PatientCard(Patient patient, int displayedIndex) {
discharge.setText(patient.getDischargeString());
}

/**
* Overrides equality check for PatientCard to compare two patient cards by
* the NRICs and the patients.
*
* @param other Object to check equality with.
* @return Boolean indicating whether objects are equal.
*/
@Override
public boolean equals(Object other) {
// short circuit if same object
8 changes: 8 additions & 0 deletions src/main/java/seedu/medinfo/ui/ResultDisplay.java
Original file line number Diff line number Diff line change
@@ -16,10 +16,18 @@ public class ResultDisplay extends UiPart<Region> {
@FXML
private TextArea resultDisplay;

/**
* Creates a {@code ResultDisplay}.
*/
public ResultDisplay() {
super(FXML);
}

/**
* Sets text to feedback to the user in the result display.
*
* @param feedbackToUser String to feedback to user.
*/
public void setFeedbackToUser(String feedbackToUser) {
requireNonNull(feedbackToUser);
resultDisplay.setText(feedbackToUser);
4 changes: 3 additions & 1 deletion src/main/java/seedu/medinfo/ui/Ui.java
Original file line number Diff line number Diff line change
@@ -7,7 +7,9 @@
*/
public interface Ui {

/** Starts the UI (and the App). */
/**
* Starts the UI (and the App).
*/
void start(Stage primaryStage);

}
5 changes: 5 additions & 0 deletions src/main/java/seedu/medinfo/ui/UiManager.java
Original file line number Diff line number Diff line change
@@ -32,6 +32,11 @@ public UiManager(Logic logic) {
this.logic = logic;
}

/**
* Start the Ui components with the given primary stage.
*
* @param primaryStage Primary stage of the app.
*/
@Override
public void start(Stage primaryStage) {
logger.info("Starting UI...");
3 changes: 0 additions & 3 deletions src/test/java/seedu/medinfo/commons/util/JsonUtilTest.java
Original file line number Diff line number Diff line change
@@ -39,7 +39,4 @@ public void deserializeObjectFromJsonFile_noExceptionThrown() throws IOException
assertEquals(serializableTestClass.getMapOfIntegerToString(), SerializableTestClass.getHashMapTestValues());
}

//TODO: @Test jsonUtil_readJsonStringToObjectInstance_correctObject()

//TODO: @Test jsonUtil_writeThenReadObjectToJson_correctObject()
}
41 changes: 0 additions & 41 deletions src/test/java/seedu/medinfo/logic/LogicManagerTest.java
Original file line number Diff line number Diff line change
@@ -3,11 +3,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static seedu.medinfo.commons.core.Messages.MESSAGE_ALL_PATIENTS_LISTED_OVERVIEW;
import static seedu.medinfo.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND;
import static seedu.medinfo.logic.commands.CommandTestUtil.NAME_DESC_AMY;
import static seedu.medinfo.logic.commands.CommandTestUtil.NRIC_DESC_AMY;
import static seedu.medinfo.logic.commands.CommandTestUtil.STATUS_DESC_AMY;
import static seedu.medinfo.testutil.Assert.assertThrows;
import static seedu.medinfo.testutil.TypicalPatients.AMY;

import java.io.IOException;
import java.nio.file.Path;
@@ -16,7 +12,6 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import seedu.medinfo.logic.commands.AddCommand;
import seedu.medinfo.logic.commands.CommandResult;
import seedu.medinfo.logic.commands.ListCommand;
import seedu.medinfo.logic.commands.exceptions.CommandException;
@@ -25,11 +20,9 @@
import seedu.medinfo.model.ModelManager;
import seedu.medinfo.model.ReadOnlyMedInfo;
import seedu.medinfo.model.UserPrefs;
import seedu.medinfo.model.patient.Patient;
import seedu.medinfo.storage.JsonMedInfoStorage;
import seedu.medinfo.storage.JsonUserPrefsStorage;
import seedu.medinfo.storage.StorageManager;
import seedu.medinfo.testutil.PatientBuilder;

public class LogicManagerTest {
private static final IOException DUMMY_IO_EXCEPTION = new IOException("dummy exception");
@@ -55,47 +48,13 @@ public void execute_invalidCommandFormat_throwsParseException() {
assertParseException(invalidCommand, MESSAGE_UNKNOWN_COMMAND);
}

// @Test
// public void execute_commandExecutionError_throwsCommandException() {
// String deleteCommand = "delete 9";
// String expectedMessage = MESSAGE_INVALID_PATIENT_DISPLAYED_INDEX;
// assertCommandException(deleteCommand, expectedMessage);
// }

@Test
public void execute_validCommand_success() throws Exception {
String expectedMessage = String.format(MESSAGE_ALL_PATIENTS_LISTED_OVERVIEW, 0);
String listCommand = ListCommand.COMMAND_WORD;
assertCommandSuccess(listCommand, expectedMessage, model);
}


@Test
public void execute_storageThrowsIoException_throwsCommandException() {
// Setup LogicManager with JsonMedInfoIoExceptionThrowingStub
JsonMedInfoStorage medInfoStorage = new
JsonMedInfoIoExceptionThrowingStub(
temporaryFolder.resolve("ioExceptionMedInfo.json"));
JsonUserPrefsStorage userPrefsStorage = new JsonUserPrefsStorage(
temporaryFolder.resolve("ioExceptionUserPrefs.json"));
StorageManager storage = new StorageManager(medInfoStorage,
userPrefsStorage);
logic = new LogicManager(model, storage);

// Execute add command
String addCommand = AddCommand.COMMAND_WORD + NAME_DESC_AMY + NRIC_DESC_AMY + STATUS_DESC_AMY;
Patient expectedPatient = new PatientBuilder(AMY).build();
ModelManager expectedModel = new ModelManager();
try {
expectedModel.addPatient(expectedPatient);
} catch (CommandException e) {
System.out.println("CommandException at LogicManagerTest: "
+ "execute_storageThrowsIoException_throwsCommandException()");
}
String expectedMessage = LogicManager.FILE_OPS_ERROR_MESSAGE + DUMMY_IO_EXCEPTION;
assertCommandFailure(addCommand, CommandException.class, expectedMessage, expectedModel);
}

@Test
public void getFilteredPersonList_modifyList_throwsUnsupportedOperationException() {
assertThrows(UnsupportedOperationException.class, () -> logic.getFilteredPatientList().remove(0));
Original file line number Diff line number Diff line change
@@ -20,25 +20,4 @@ public void setUp() {
model = new ModelManager(getTypicalMedInfo(), new UserPrefs());
}

// @Test
// public void execute_newPerson_success() {
// Patient validPatient = new PatientBuilder().build();
//
// Model expectedModel = new ModelManager(model.getMedInfo(), new UserPrefs());
// try {
// expectedModel.addPatient(validPatient);
// } catch (CommandException e) {
//
// }
//
// assertCommandSuccess(new AddCommand(validPatient), model,
// String.format(AddCommand.MESSAGE_SUCCESS, validPatient), expectedModel);
// }
//
// @Test
// public void execute_duplicatePerson_throwsCommandException() {
// Patient patientInList = model.getMedInfo().getPatientList().get(0);
// assertCommandFailure(new AddCommand(patientInList), model, AddCommand.MESSAGE_DUPLICATE_PATIENT);
// }

}
10 changes: 0 additions & 10 deletions src/test/java/seedu/medinfo/logic/commands/ClearCommandTest.java
Original file line number Diff line number Diff line change
@@ -16,14 +16,4 @@ public void execute_emptyMedInfo_success() {

assertCommandSuccess(new ClearCommand(), model, ClearCommand.MESSAGE_SUCCESS, expectedModel);
}

// @Test
// public void execute_nonEmptyMedInfo_success() {
// Model model = new ModelManager(getTypicalMedInfo(), new UserPrefs());
// Model expectedModel = new ModelManager(getTypicalMedInfo(), new UserPrefs());
// expectedModel.setMedInfo(new MedInfo());
//
// assertCommandSuccess(new ClearCommand(), model, ClearCommand.MESSAGE_SUCCESS, expectedModel);
// }

}
Loading