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

[CS2113T-T10-1] MediVault #29

Open
wants to merge 824 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
824 commits
Select commit Hold shift + click to select a range
33dd83e
Claim ownership of purpose section in UG
RemusTeo Nov 1, 2021
f38e8ca
Merge pull request #294 from RemusTeo/branch-Ownership
deonchung Nov 1, 2021
67451f2
Fix bug addstock and addprescription. Fix bugs in PED. Update DG.
deonchung Nov 1, 2021
9804d74
Merge branch 'master' into branch-DispenseMedication
deonchung Nov 1, 2021
ae468b5
Modify updateprescription in UG to be clearer
a-tph Nov 1, 2021
93cffa3
Fix deleted stock included in the deletion of actual stocks
a-tph Nov 1, 2021
667dff9
Fix code
deonchung Nov 1, 2021
0ba46bc
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp…
deonchung Nov 1, 2021
48af71d
Fix code
deonchung Nov 1, 2021
a2d0175
Fix code
deonchung Nov 1, 2021
0892f17
Merge branch 'branch-DispenseMedication' of https://github.com/deonch…
deonchung Nov 1, 2021
3d2f98b
Fix code
deonchung Nov 1, 2021
9700484
Fix DG
deonchung Nov 1, 2021
4660d27
Fix SD
deonchung Nov 1, 2021
4eb6d27
Merge pull request #295 from deonchung/branch-DispenseMedication
a-tph Nov 1, 2021
57ef503
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp…
a-tph Nov 1, 2021
a91710f
Modify dateValidityChecker to check for expired date as well
a-tph Nov 1, 2021
eb2a58f
Add getUnexpiredFilteredStocksByName() method to extract stocks that …
a-tph Nov 1, 2021
e87cef3
Modify update prescription to use new method
a-tph Nov 1, 2021
8b39bc0
Add more description to update commands in UG
a-tph Nov 1, 2021
0bd0437
Add more information to DG for clarity
a-tph Nov 1, 2021
bc97efd
Updated PPP
a-tph Nov 1, 2021
b252e36
Modify UG examples to be clearer
a-tph Nov 2, 2021
73982ff
Merge pull request #296 from a-tph/update-dispense
alvintan01 Nov 2, 2021
0834390
Change class diagram to use color of utilities
RemusTeo Nov 2, 2021
e1e61de
Add number of archived records.
RemusTeo Nov 2, 2021
dad64fd
Update UGDG, fix PED bug
jiangweichen835 Nov 2, 2021
35beeb0
Adhere to line length limit
RemusTeo Nov 2, 2021
a1e1e03
Merge pull request #297 from RemusTeo/master
deonchung Nov 2, 2021
4ced0cd
Fix UG for liststock
jiangweichen835 Nov 2, 2021
097f59f
Add teambased for PPP
deonchung Nov 2, 2021
27656ef
Fix UG
jiangweichen835 Nov 2, 2021
bf1fa44
Fix format
deonchung Nov 2, 2021
caa0fc7
Add team-based and v2.1 things
RemusTeo Nov 2, 2021
34320d9
Merge pull request #298 from jiangweichen835/branch-UserGuide
deonchung Nov 2, 2021
907bc66
Merge pull request #299 from deonchung/Branch-PPP
jiangweichen835 Nov 2, 2021
c9ee4b4
Refractor update prescription command
a-tph Nov 2, 2021
c3f131d
Add new methods in MedicineValidator for global use
a-tph Nov 2, 2021
84105ff
Add new methods in PrescriptionManager for global use
a-tph Nov 2, 2021
08d7442
Add override tag for containsInvalidParameterValues methods
a-tph Nov 2, 2021
464f02d
Remove unused imports
a-tph Nov 2, 2021
b6bcde6
Refractor updatestock command
a-tph Nov 2, 2021
813cd15
Adhere to gradle checkstyle
a-tph Nov 2, 2021
a7afda3
Merge pull request #300 from a-tph/update-dispense
alvintan01 Nov 2, 2021
57cf7d3
Update validator class diagram
alvintan01 Nov 2, 2021
ca79d3e
Update help command
alvintan01 Nov 2, 2021
52bdc80
Remove generate data
alvintan01 Nov 2, 2021
4ab3a4b
Merge pull request #301 from alvintan01/ListStock
a-tph Nov 2, 2021
bd689f4
Refractor all commands related to orders
a-tph Nov 2, 2021
9567c88
Modify logic for deleteorder
a-tph Nov 2, 2021
9bb1c78
Modify all commands related to prescription
a-tph Nov 2, 2021
2ba3789
Refractor all commands related to stock
a-tph Nov 2, 2021
dcfef9f
Refractor all commands to be same format
a-tph Nov 2, 2021
45320e2
Refractor Inventory classes
a-tph Nov 2, 2021
c62f523
Refractor comparator classes
a-tph Nov 2, 2021
7b1ef58
Refractor parser classes
a-tph Nov 2, 2021
534704f
Refractor storage class
a-tph Nov 2, 2021
df307d1
Refractor UI class
a-tph Nov 2, 2021
4420b8d
Fix addstock indentation
a-tph Nov 2, 2021
3ebe611
Merge pull request #302 from a-tph/update-dispense
RemusTeo Nov 3, 2021
c833b11
Fix bug in add command
deonchung Nov 3, 2021
a0d6ba6
Change naming
deonchung Nov 3, 2021
50b0d77
Merge pull request #303 from deonchung/branch-DispenseMedication
RemusTeo Nov 3, 2021
ec6179c
Add JUnit test for DeleteStockCommand and add removetime test
RemusTeo Nov 3, 2021
6f5c239
Coding standard
RemusTeo Nov 3, 2021
af05a10
Delete TestingSetup.java
RemusTeo Nov 3, 2021
13fe7f2
Adhere to Java coding standard
RemusTeo Nov 3, 2021
c287077
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp
RemusTeo Nov 3, 2021
050840c
Merge branch 'master' of https://github.com/RemusTeo/tp
RemusTeo Nov 3, 2021
daaf8c6
Change to deletestockcommand
RemusTeo Nov 3, 2021
1b8a5dd
Merge pull request #304 from RemusTeo/master
deonchung Nov 3, 2021
15a82a5
Add icon description
alvintan01 Nov 3, 2021
1eebf38
Add quantity warning for receiveorder in UG
alvintan01 Nov 3, 2021
cb1d814
Update sequence diagrams
alvintan01 Nov 3, 2021
7521e64
Add JUnit test for HelpCommand
alvintan01 Nov 3, 2021
f80bd39
Add JUnit test for ListOrderCommand
alvintan01 Nov 3, 2021
213f607
Add JUnit test for ListPrescriptionCommand
alvintan01 Nov 3, 2021
1299336
Add test data generator
alvintan01 Nov 3, 2021
30c595a
Add JUnit test for PurgeCommand
alvintan01 Nov 3, 2021
67bbf80
Add JUnit test for ListStockCommand
alvintan01 Nov 3, 2021
1b5832d
Add JUnit test for modes
alvintan01 Nov 3, 2021
1dfbc9f
Refactor from containsInvalidParameterValues() to containsInvalidPara…
alvintan01 Nov 3, 2021
a58253e
Add missing whitespace
alvintan01 Nov 3, 2021
9a66000
Refactor test data generator
alvintan01 Nov 3, 2021
acbbc84
Remove extra line
alvintan01 Nov 3, 2021
09439e8
Merge pull request #305 from alvintan01/ListStock
deonchung Nov 3, 2021
e175e17
Fix bug for addstock and deleteprescription. Add Junit Test for AddSt…
deonchung Nov 3, 2021
4697d39
Fix bug addprescription
deonchung Nov 3, 2021
fca7075
fix code
deonchung Nov 3, 2021
3381baa
Fix code
deonchung Nov 3, 2021
5cf5251
fix code
deonchung Nov 3, 2021
553e978
Fix
deonchung Nov 3, 2021
9e9d47c
Fix code
deonchung Nov 3, 2021
e679386
Fix code
deonchung Nov 3, 2021
24dab2e
refactor addstock
deonchung Nov 3, 2021
84aa68c
Add junit for ordervalidator
deonchung Nov 3, 2021
ff6e778
Fix error
deonchung Nov 3, 2021
5382515
Fix naming
deonchung Nov 4, 2021
0147d44
Fix error
deonchung Nov 4, 2021
4337925
Fix naming and format
deonchung Nov 4, 2021
35ce0c0
Add Junit tests for ListStockCommand and AddOrderCommand
jiangweichen835 Nov 4, 2021
ddb77fe
Merge pull request #306 from deonchung/branch-DispenseMedication
jiangweichen835 Nov 4, 2021
e61c07b
Resolve error
jiangweichen835 Nov 4, 2021
9c0cb7d
Fix bug (medicine exists in stock but not in order) + add JUnit tests
jiangweichen835 Nov 4, 2021
2d6ce9b
Resolve error
jiangweichen835 Nov 4, 2021
c1c1d78
Merge pull request #308 from jiangweichen835/master
alvintan01 Nov 4, 2021
4fa6cbb
Update sequence diagram
alvintan01 Nov 4, 2021
cec81bc
Update icons in UG and DG
alvintan01 Nov 4, 2021
5a565fd
Update JUnit tests
alvintan01 Nov 4, 2021
a81411b
Add JUnit for receive order
alvintan01 Nov 4, 2021
98386ef
Merge pull request #309 from alvintan01/ListStock
RemusTeo Nov 4, 2021
49ce0fc
To uppercase storage and archive
RemusTeo Nov 4, 2021
2bc94cc
JUnit testing for listorder, deletestock, archive commands
RemusTeo Nov 4, 2021
56d0d85
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp…
RemusTeo Nov 4, 2021
076f8b8
Modify name to MediVault
a-tph Nov 4, 2021
bd7d928
Fix bugs for update prescription
a-tph Nov 4, 2021
9458e66
Include additional check for date
a-tph Nov 4, 2021
f04b7f2
Remove error stream and rename test
RemusTeo Nov 4, 2021
a1a08a1
Update DG. Fix errors in deleteprescription, addstock and addPrescrip…
deonchung Nov 4, 2021
9c71251
Merge branch 'master' into branch-DispenseMedication
deonchung Nov 4, 2021
4e7f5d6
Fix spacing in addstock SD and gradle error
deonchung Nov 4, 2021
bcb7ce7
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp…
deonchung Nov 4, 2021
0200912
Merge branch 'branch-DispenseMedication' of https://github.com/deonch…
deonchung Nov 4, 2021
4f07f84
Fix indentation for update prescription
a-tph Nov 4, 2021
719083b
Modify all sequence diagrams to match current code
a-tph Nov 4, 2021
5adf97b
Modify UG and DG explanations
a-tph Nov 4, 2021
6968a52
Extract common code
deonchung Nov 4, 2021
9b7947f
Fix order JUnit tests to be before today's date
a-tph Nov 4, 2021
8bbb9d1
Merge pull request #310 from deonchung/branch-DispenseMedication
a-tph Nov 4, 2021
4cd72fe
Extract out command execution and add more tests
RemusTeo Nov 4, 2021
6727afa
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp…
a-tph Nov 4, 2021
c8d0e56
Remove unnecessary imports
RemusTeo Nov 4, 2021
6c2e47e
Add more test for deletestock
RemusTeo Nov 4, 2021
d4e9830
Add spacing
RemusTeo Nov 4, 2021
938b282
Merge pull request #311 from a-tph/update-dispense
RemusTeo Nov 4, 2021
6b9a336
Merge pull request #314 from RemusTeo/branch-JUnitCommands
alvintan01 Nov 4, 2021
d3e7fd8
Refactor JUnit tests
alvintan01 Nov 4, 2021
49e80af
Add missing whitespace
alvintan01 Nov 4, 2021
e781f96
Merge pull request #315 from alvintan01/ListStock
RemusTeo Nov 4, 2021
6ecd20a
Modify DG
a-tph Nov 4, 2021
0ba0678
Add JUnit tests for update commands
a-tph Nov 4, 2021
96d641c
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp…
a-tph Nov 4, 2021
753a5f8
Add newline to end of file
a-tph Nov 4, 2021
cf9b7dd
Refactor SD and added Instruction for Automated Testing in DG
RemusTeo Nov 4, 2021
9699b76
Remove spaces
RemusTeo Nov 4, 2021
8b14a41
Modify JUnit tests to use existing function in Data
a-tph Nov 4, 2021
c2087cc
Merge pull request #316 from a-tph/update-dispense
RemusTeo Nov 4, 2021
607a323
Merge pull request #317 from RemusTeo/branch-DGRefactorSD
a-tph Nov 4, 2021
d9c792d
Fix sorting and low parameter bug
alvintan01 Nov 5, 2021
1c0649c
Shorten PPP
alvintan01 Nov 5, 2021
993ff67
Extract common Junit tests and update UGDG
jiangweichen835 Nov 5, 2021
6ad7fb3
Merge pull request #318 from alvintan01/ListStock
jiangweichen835 Nov 5, 2021
4394d19
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp
jiangweichen835 Nov 5, 2021
2b48ec0
Update UG
jiangweichen835 Nov 5, 2021
13892ee
Merge pull request #319 from jiangweichen835/master
alvintan01 Nov 5, 2021
c84e782
Update PPP
jiangweichen835 Nov 5, 2021
ae98380
Merge pull request #320 from jiangweichen835/master
alvintan01 Nov 5, 2021
adc76c9
Shorten PPP
alvintan01 Nov 5, 2021
c599927
Merge pull request #321 from alvintan01/ListStock
RemusTeo Nov 5, 2021
3ed8017
Add missing name parameter for list prescription
alvintan01 Nov 5, 2021
e52e855
Update JUnit test
alvintan01 Nov 5, 2021
4c3c5eb
Shorten PPP
alvintan01 Nov 5, 2021
6d7e71a
Merge pull request #322 from alvintan01/ListStock
deonchung Nov 5, 2021
013fb65
Fix bug for addprescription
deonchung Nov 6, 2021
345cf2a
Fix code
deonchung Nov 6, 2021
e8e70d2
Fix bug
deonchung Nov 6, 2021
961ba9d
Merge pull request #323 from deonchung/branch-DispenseMedication
a-tph Nov 6, 2021
b700fab
Fix update prescription bug
a-tph Nov 6, 2021
66aa746
Merge pull request #324 from a-tph/update-dispense
deonchung Nov 6, 2021
bbaa6b7
Update PPP
deonchung Nov 6, 2021
d5af93e
Merge pull request #325 from deonchung/branch-DispenseMedication
RemusTeo Nov 6, 2021
9921459
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp…
RemusTeo Nov 6, 2021
353dfc7
Update PPP
RemusTeo Nov 6, 2021
66445c6
Shorten PPP
RemusTeo Nov 6, 2021
ba30ccf
Merge pull request #326 from RemusTeo/branch-PPP
deonchung Nov 6, 2021
e4a4ee4
Update PPP
jiangweichen835 Nov 7, 2021
14dec74
Fix bug where parameter value checker checks for unrequired paramters
a-tph Nov 7, 2021
86ba50d
Merge pull request #327 from jiangweichen835/master
a-tph Nov 7, 2021
00cf0cf
Modify checker logic to ignore rather than remove parameter
a-tph Nov 7, 2021
07c8c9f
Update PPP
a-tph Nov 7, 2021
4834da0
Merge pull request #328 from a-tph/update-dispense
alvintan01 Nov 7, 2021
21ff619
Fix indentation and typo in UG
RemusTeo Nov 7, 2021
f10c793
Fix expected output
RemusTeo Nov 7, 2021
ec6f7ec
Merge pull request #330 from RemusTeo/master
a-tph Nov 7, 2021
9d3f2c2
Update PPP
deonchung Nov 7, 2021
ba9c0c1
Update PPP
alvintan01 Nov 7, 2021
8e32fc4
Merge pull request #329 from a-tph/aeronTeo-AboutUs
alvintan01 Nov 7, 2021
f113603
Merge pull request #331 from deonchung/Branch-PPP
alvintan01 Nov 7, 2021
72e7ed1
Merge pull request #332 from alvintan01/ListStock
RemusTeo Nov 7, 2021
93f8380
Update UG
alvintan01 Nov 7, 2021
1f86694
Merge pull request #333 from alvintan01/ListStock
a-tph Nov 7, 2021
ef3de7c
Update minor errors in UG
alvintan01 Nov 7, 2021
7408f43
Update JUnit tests
alvintan01 Nov 7, 2021
04ee1a0
Merge pull request #334 from alvintan01/ListStock
a-tph Nov 7, 2021
c28feb0
shorten addstock SD
deonchung Nov 7, 2021
911d70e
Shorten SD diagram
jiangweichen835 Nov 7, 2021
deef448
resolve error
jiangweichen835 Nov 7, 2021
49b1536
Merge branch 'master' of https://github.com/AY2122S1-CS2113T-T10-1/tp
jiangweichen835 Nov 7, 2021
5cd69c8
resolve conflict
jiangweichen835 Nov 7, 2021
49bfe3e
Merge pull request #335 from deonchung/Branch-PPP
a-tph Nov 7, 2021
2e377eb
Fix addorder SD
jiangweichen835 Nov 7, 2021
c0982f0
Update sequence diagrams
alvintan01 Nov 7, 2021
63c9b6e
Update UG and DG
alvintan01 Nov 7, 2021
54e907d
Merge pull request #336 from jiangweichen835/master
RemusTeo Nov 7, 2021
fb32a4a
Merge pull request #337 from alvintan01/ListStock
a-tph Nov 7, 2021
b52b601
Modify DG
a-tph Nov 7, 2021
ad5af0c
Merge pull request #338 from a-tph/aeronTeo-DeveloperGuide
alvintan01 Nov 7, 2021
94dcc5b
Shorten PPP
alvintan01 Nov 7, 2021
4d071f8
Shorten PPP
a-tph Nov 7, 2021
bfc22a0
Remove extra white space
alvintan01 Nov 7, 2021
92e5c1c
Shorten PPP
RemusTeo Nov 7, 2021
7ac9813
Shorten more PPP
a-tph Nov 7, 2021
09a0d96
Merge pull request #339 from alvintan01/ListStock
RemusTeo Nov 7, 2021
954d427
Merge pull request #340 from a-tph/aeronTeo-AboutUs
RemusTeo Nov 7, 2021
4949e75
Shorten PPP
deonchung Nov 7, 2021
80d0b50
Shorten PPP
alvintan01 Nov 7, 2021
bb07d2a
Merge pull request #341 from RemusTeo/master
alvintan01 Nov 7, 2021
6db2020
Merge pull request #342 from deonchung/Branch-PPP
alvintan01 Nov 7, 2021
7cce01f
Merge pull request #343 from alvintan01/ListStock
deonchung Nov 7, 2021
d8afdcd
Shorten more PPP
a-tph Nov 7, 2021
5d83ad7
Remove functionality from PPP
alvintan01 Nov 7, 2021
625bf40
Merge pull request #344 from alvintan01/ListStock
RemusTeo Nov 7, 2021
410df5f
Update PPP
jiangweichen835 Nov 7, 2021
048f83d
Merge pull request #345 from a-tph/aeronTeo-AboutUs
RemusTeo Nov 7, 2021
74f6bcb
Shorten PPP
deonchung Nov 7, 2021
6237970
Merge pull request #346 from jiangweichen835/master
deonchung Nov 7, 2021
76c8ed8
Merge pull request #347 from deonchung/Branch-PPP
alvintan01 Nov 7, 2021
75ee92a
Fix DG
RemusTeo Nov 7, 2021
a5cef0e
Fix DG
RemusTeo Nov 7, 2021
53ae527
Merge pull request #348 from RemusTeo/master
alvintan01 Nov 7, 2021
7264fe4
Update validator class diagram
alvintan01 Nov 7, 2021
7c14bac
Modify paramters checker SD
a-tph Nov 7, 2021
105de22
Merge pull request #349 from alvintan01/ListStock
RemusTeo Nov 7, 2021
3476215
Merge pull request #350 from a-tph/aeronTeo-AboutUs
alvintan01 Nov 7, 2021
2c4029c
Include project overview
RemusTeo Nov 7, 2021
359f461
Include overview for PPP
jiangweichen835 Nov 7, 2021
3c7a5d7
Shorten PPP
alvintan01 Nov 7, 2021
650bc57
Merge pull request #351 from RemusTeo/master
jiangweichen835 Nov 7, 2021
775589f
Shorten PPP even more
a-tph Nov 7, 2021
8467771
Merge pull request #352 from jiangweichen835/master
RemusTeo Nov 7, 2021
21d744d
Shorten PPP
deonchung Nov 7, 2021
36e9362
Merge pull request #353 from alvintan01/ListStock
a-tph Nov 7, 2021
8d35af3
Merge pull request #354 from a-tph/aeronTeo-AboutUs
alvintan01 Nov 7, 2021
f94777d
Merge pull request #355 from deonchung/Branch-PPP
a-tph Nov 7, 2021
d8dbde4
Shorten PPP
deonchung Nov 7, 2021
2effa85
Merge pull request #356 from deonchung/Branch-PPP
a-tph Nov 7, 2021
d33f595
Update readme
alvintan01 Nov 8, 2021
b8b76c3
Merge pull request #357 from alvintan01/ListStock
RemusTeo Nov 8, 2021
ca8d85c
Update FAQ in UG for CS2101
alvintan01 Nov 11, 2021
7410aad
Merge pull request #358 from alvintan01/ListStock
a-tph Nov 11, 2021
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
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ checkstyle {

run{
standardInput = System.in
enableAssertions = true
}
2 changes: 1 addition & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<property name="caseIndent" value="0"/>
<property name="throwsIndent" value="4"/>
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="4"/>
<property name="arrayInitIndent" value="8"/>
</module>
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false"/>
Expand Down
7 changes: 7 additions & 0 deletions data/order.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
1|PANADOL|100|09-10-2021|PENDING
2|VICODIN|30|09-10-2021|PENDING
3|VICODIN|50|10-10-2021|DELIVERED
4|SIMVASTATIN|20|11-10-2021|PENDING
5|LISINOPRIL|200|12-10-2021|PENDING
6|AZITHROMYCIN|100|13-10-2021|PENDING
7|PANADOL|50|13-10-2021|PENDING
1 change: 1 addition & 0 deletions data/order_archive.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[ORDER ID: 3] 50 VICODIN WAS ORDERED ON 10-10-2021. STATUS: DELIVERED
5 changes: 5 additions & 0 deletions data/prescription.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1|PANADOL|10|S1234567A|09-10-2021|Jane|1
2|VICODIN|10|S2345678B|10-10-2021|Peter|3
3|SIMVASTATIN|10|S1234567A|11-10-2021|Sam|4
4|LISINOPRIL|10|S3456789C|12-10-2021|Jane|5
5|AZITHROMYCIN|10|S2345678B|13-10-2021|Peter|6
2 changes: 2 additions & 0 deletions data/prescription_archive.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[PRESCRIPTION ID: 1] 10 PANADOL [STOCK ID: 1] WAS PRESCRIBED BY JANE TO S1234567A ON 09-10-2021
[PRESCRIPTION ID: 2] 10 VICODIN [STOCK ID: 3] WAS PRESCRIBED BY PETER TO S2345678B ON 10-10-2021
6 changes: 6 additions & 0 deletions data/stock.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1|PANADOL|20.0|20|13-09-2021|BEST MEDICINE TO CURE HEADACHES, FEVER AND PAINS|1000|false
2|PANADOL|20.0|10|14-09-2021|BEST MEDICINE TO CURE HEADACHES, FEVER AND PAINS|1000|false
3|VICODIN|10.0|20|30-09-2021|POPULAR DRUG FOR TREATING ACUTE OR CHRONIC MODERATE TO MODERATELY SEVERE PAIN|500|false
4|SIMVASTATIN|20.0|25|10-10-2021|TREATS HIGH CHOLESTEROL AND REDUCES THE RISK OF STROKE|800|false
5|LISINOPRIL|20.0|25|15-10-2021|USED FOR TREATING HYPOTHYROIDISM|800|false
6|AZITHROMYCIN|20.0|35|15-10-2021|USED FOR TREATING EAR, THROAT, AND SINUS INFECTIONS|100|false
12 changes: 7 additions & 5 deletions docs/AboutUs.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

Display | Name | Github Profile | Portfolio
--------|:----:|:--------------:|:---------:
![](https://via.placeholder.com/100.png?text=Photo) | John Doe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Joe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Ron John | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | John Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Don Roe | [Github](https://github.com/) | [Portfolio](docs/team/johndoe.md)
![](https://via.placeholder.com/100.png?text=Photo) | Alvin Tan Guo Hao | [Github](https://github.com/alvintan01) | [Portfolio](team/alvintan01.md)
![](https://via.placeholder.com/100.png?text=Photo) | Deon Chung Hui | [Github](https://github.com/deonchung) | [Portfolio](team/deonchung.md)
![](https://via.placeholder.com/100.png?text=Photo) | Jiang Weichen | [Github](https://github.com/jiangweichen835) | [Portfolio](team/jiangweichen835.md)
![](https://via.placeholder.com/100.png?text=Photo) | Teo Chin Kai Remus | [Github](https://github.com/RemusTeo) | [Portfolio](team/remusteo.md)
![](https://via.placeholder.com/100.png?text=Photo) | Teo Phing Huei, Aeron | [Github](https://github.com/a-tph) | [Portfolio](team/a-tph.md)


700 changes: 685 additions & 15 deletions docs/DeveloperGuide.md

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Duke
# MediVault

{Give product intro here}
MediVault is a Command Line Interface (CLI) application that will help to manage medication supplies within a pharmacy.
It is an integrated solution that provides real-time tracking of stocks, prescriptions and orders.

Useful links:

* [User Guide](UserGuide.md)
* [Developer Guide](DeveloperGuide.md)
* [About Us](AboutUs.md)
1,017 changes: 997 additions & 20 deletions docs/UserGuide.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
theme: jekyll-theme-cayman
gems:
- jemoji
56 changes: 56 additions & 0 deletions docs/diagrams/AddOrderSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
@startuml AddOrderSequenceDiagram
'https://plantuml.com/sequence-diagram

!include style.puml

box Command COLOR_COMMAND_BOX
participant ":AddOrderCommand" as addorder COLOR_COMMAND
end box

box Utilities COLOR_UTILITIES_BOX
participant "<<class>>\n:Ui" as ui COLOR_UTILITIES
participant ":OrderManager" as ordermanager COLOR_UTILITIES
participant ":StockManager" as stockmanager COLOR_UTILITIES
end box

autoactivate on
mainFrame sd Logic for AddOrderCommand
activate addorder
alt orderQuantity != 0
alt nameExistsInOrder && !nameExistsInStock
alt orderQuantity < maxQuantity
addorder -> addorder : addDate(dateToAdd)
addorder --> addorder
addorder -> addorder : addOrder(ui: Ui, medicines: ArrayList<Medicine>, name: String, \nquantity: int, date: Date)
addorder --> addorder
else !orderQuantity < maxQuantity
addorder -> ui : print()
addorder <-- ui
end
else nameExistsInOrder && nameExistsInStock
addorder -> ordermanager : getTotalOrderQuantity()
addorder <-- ordermanager : TotalOrderQuantity
addorder -> stockmanager : getTotalStockQuantity()
addorder <-- stockmanager : TotalStockQuantity
addorder -> stockmanager : getMaxStockQuantity()
addorder <-- stockmanager : MaxStockQuantity
alt orderQuantity + totalExistingQuantity <= maxQuantity
addorder -> addorder : addDate(dateToAdd)
addorder --> addorder
addorder -> addorder : addOrder(ui: Ui, medicines: ArrayList<Medicine>, name: String, \nquantity: int, date: Date)
addorder --> addorder
else !orderQuantity + totalExistingQuantity <= maxQuantity
addorder -> ui : print()
addorder <-- ui
end
note right
This diagram shows the process for
adding order when medicine exist in
orders.
It does not include the process by
which medicine does not exist in
orders.
end note
end
deactivate addorder
@enduml
64 changes: 64 additions & 0 deletions docs/diagrams/AddPrescriptionSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
@startuml AddPrescriptionSequenceDiagram
'https://plantuml.com/sequence-diagram

!include style.puml

box Command COLOR_COMMAND_BOX
participant ":AddPrescriptionCommand" as addprescription COLOR_COMMAND
end box

box Utilities COLOR_UTILITIES_BOX
participant "<<class>>\n:PrescriptionManager" as prescriptionManager COLOR_UTILITIES
participant "<<class>>\n:StockManager" as stockManager COLOR_UTILITIES
participant ":StockComparator" as stockcomparator COLOR_UTILITIES
end box

box Inventory COLOR_INVENTORY_BOX
participant ":Stock" as stock COLOR_INVENTORY
end box

autoactivate on
mainframe sd AddPrescriptionCommand
activate addprescription
addprescription -> stockManager: getFilteredStocksByName(medicines: ArrayList<Medicine>, stockName: String)
addprescription <-- stockManager: filteredStocks
create stockcomparator
addprescription -> stockcomparator : new StockComparator()
addprescription <-- stockcomparator : filteredStocks

addprescription -> prescriptionManager: getNotExpiredStockQuantity(medicines: ArrayList<Medicine>, \nname: String, prescribeDate: Date)
addprescription <-- prescriptionManager: totalStock



deactivate stockcomparator
addprescription -> addprescription : checkExpiredMedication(ui: Ui, filteredStocks: ArrayList<Stock>, \nprescriptionQuantity: int)

loop stock : filteredStocks
opt existingExpiry.after(prescribeDate) || prescribeDateString.equals(expiryString)
opt existingQuantity == quantityToPrescribe
addprescription -> addprescription : prescribe(ui: Ui, medicines: ArrayList<Medicine>, medicationName: String, \ncustomerId: String, staffName: String, quantityToPrescribe: int, prescribeDate: Date, \nstock: Stock, existingId: int, existingExpiry: Date, setStockValue: int)
addprescription -> stock : setQuantity()
addprescription <-- stock
addprescription --> addprescription
end

opt existingQuantity > quantityToPrescribe
addprescription -> addprescription : prescribe(ui: Ui, medicines: ArrayList<Medicine>, medicationName: String, \ncustomerId: String, staffName: String, quantityToPrescribe: int, prescribeDate: Date, \nstock: Stock, existingId: int, existingExpiry: Date, setStockValue: int)
addprescription -> stock : setQuantity()
addprescription <-- stock
addprescription --> addprescription
end
opt existingQuantity < quantityToPrescribe
addprescription -> addprescription : prescribe(ui: Ui, medicines: ArrayList<Medicine>, medicationName: String, \ncustomerId: String, staffName: String, quantityToPrescribe: int, prescribeDate: Date, \nstock: Stock, existingId: int, existingExpiry: Date, setStockValue: int)
addprescription -> stock : setQuantity()
addprescription <-- stock
addprescription --> addprescription
end
end
end
addprescription --> addprescription



@enduml
65 changes: 65 additions & 0 deletions docs/diagrams/AddStockSequenceDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
@startuml AddStockSequenceDiagram
'https://plantuml.com/sequence-diagram

!include style.puml

box Command COLOR_COMMAND_BOX
participant ":AddStockCommand" as addstock COLOR_COMMAND
end box

box Utilities COLOR_UTILITIES_BOX
participant ":StockValidator" as stockvalidator COLOR_UTILITIES
participant "<<class>>\n:StockManager" as stockmanager COLOR_UTILITIES
end box

box Inventory COLOR_INVENTORY_BOX
participant ":Stock" as stock COLOR_INVENTORY
end box

autoactivate on
mainFrame sd Logic for AddStockCommand
activate addstock
addstock -> addstock : checkExpiryDate(ui: Ui, expiryDate: String)
addstock --> addstock :

addstock -> stockmanager: getTotalStockQuantity()
addstock <-- stockmanager: totalStock
addstock -> addstock : isExpiryExist(ui: Ui, stockValidator: StockValidator, \nfilteredStock: ArrayList<Stock>, quantityToAdd: String, \nformatExpiry: Date, totalStock: int)
loop stock : filteredStocks
opt isValidQuantity
addstock -> addstock : isValidQuantity(ui:Ui, stockValidator: StockValidator, \nmaxQuantity: int, quantity: int)
addstock -> stockvalidator : quantityValidityChecker(ui: Ui, quantity: int, maxQuantity: int)
addstock <-- stockvalidator : isValidQuantity
addstock --> addstock :
opt formatExpiry.equals(stock.getExpiry())
addstock -> stock : getQuantity()
addstock <-- stock : getQuantity
addstock -> stock : setQuantity()
addstock <-- stock :
end
end
end
addstock --> addstock :
addstock -> addstock : checkValidParametersAndValues(ui: Ui, parameters: LinkedHashMap<String, String>, \nmedicines: ArrayList<Medicine>, requiredParameters: String[], optionalParameters: String[])
addstock -> addstock : addSameMedicine(ui: Ui, medicines: ArrayList<Medicine>, nameToAdd: String, \nstockValidator: StockValidator, filteredStocks: ArrayList<Stock>, quantityToAdd: String, \nformatExpiry: Date, totalStock: int)
loop stock : filteredStocks
opt isValidQuantity
addstock -> addstock : isValidQuantity(ui:Ui, stockValidator: StockValidator, \nmaxQuantity: int, quantity: int)
addstock -> stockvalidator : quantityValidityChecker(ui: Ui, quantity: int, maxQuantity: int)
addstock <-- stockvalidator : isValidQuantity
addstock --> addstock :
addstock -> addstock : addMedicine(ui: Ui, medicines: ArrayList<Medicine>, name: String, \ndescription: String, price: Double, quantity: int, expiryDate: Date, maxQuantity: int)
addstock --> addstock :
end
addstock --> addstock :
end
addstock --> addstock :
note right
This diagram shows the process for adding medication
where medication exists.
It does not include the process whereby medication does
not exist in stock.
end note
deactivate addstock

@enduml
31 changes: 31 additions & 0 deletions docs/diagrams/ArchitectureDiagram.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@startuml ArchitectureDiagram
!include <office/Concepts/documents>
!include <office/Users/user>
!include style.puml

' hide the circles in the diagram
hide circle
hide empty members

package " "<<Rectangle>>{
class MediVault COLOR_MEDIVAULT
class Utilities COLOR_UTILITIES
class Errors COLOR_ERRORS
class Command COLOR_COMMAND
class Inventory COLOR_INVENTORY
}

class "<$user>" as User COLOR_SPARE
class "<$documents>" as Files COLOR_SPARE1

User .[COLOR_SPARE].> Utilities
MediVault -[COLOR_MEDIVAULT]> Utilities
Errors --[COLOR_ERRORS]up> Utilities
Utilities .[COLOR_UTILITIES]right>Files
Utilities --[COLOR_UTILITIES]> Command
MediVault --[COLOR_COMMAND]> Command
Command --[COLOR_COMMAND]> Inventory
Inventory --[COLOR_INVENTORY]> Utilities


@enduml
28 changes: 28 additions & 0 deletions docs/diagrams/ArchiveOrderCommand.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@startuml DeleteStockSequenceDiagram
'https://plantuml.com/sequence-diagram

!include style.puml

box Command COLOR_COMMAND_BOX
participant ":ArchiveOrderCommand" as archiveOrder COLOR_COMMAND
end box

box Utilities COLOR_UTILITIES_BOX
participant "<<class>>\n:DateParser" as dateParser COLOR_UTILITIES
participant "<<class>>\n:Storage" as storage COLOR_UTILITIES
end box

autoactivate on
mainFrame sd Logic for ArchiveOrderCommand
activate archiveOrder
archiveOrder -> dateParser : stringToDate(date: String)
archiveOrder <-- dateParser : date
archiveOrder -> archiveOrder : ordersToArchive(medicines: ArrayList<Medicine>,\n orderArchiveDate: Date)
archiveOrder --> archiveOrder : filteredOrders
archiveOrder -> archiveOrder : removeFromOrders(medicines: ArrayList<Medicine>,\n filteredOrders: ArrayList<Medicine>)
archiveOrder --> archiveOrder
archiveOrder -> storage : getInstance()
archiveOrder <-- storage
archiveOrder -> storage : archiveData(filteredOrders: ArrayList<Medicine>)
archiveOrder <-- storage
@enduml
28 changes: 28 additions & 0 deletions docs/diagrams/ArchivePrescriptionCommand.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@startuml DeleteStockSequenceDiagram
'https://plantuml.com/sequence-diagram

!include style.puml

box Command COLOR_COMMAND_BOX
participant ":ArchivePrescriptionCommand" as archivePrescription COLOR_COMMAND
end box

box Utilities COLOR_UTILITIES_BOX
participant "<<class>>\n:DateParser" as dateParser COLOR_UTILITIES
participant "<<class>>\n:Storage" as storage COLOR_UTILITIES
end box

mainFrame sd Logic for ArchivePrescriptionCommand
autoactivate on
activate archivePrescription
archivePrescription -> dateParser : stringToDate(date: String)
archivePrescription <-- dateParser : date
archivePrescription -> archivePrescription : prescriptionsToArchive(medicines: ArrayList<Medicine>,\n prescriptionArchiveDate: Date)
archivePrescription --> archivePrescription : filteredPrescriptions
archivePrescription -> archivePrescription : removeFromPrescriptions(medicines: ArrayList<Medicine>,\n filteredPrescriptions: ArrayList<Medicine>)
archivePrescription --> archivePrescription
archivePrescription -> storage : getInstance()
archivePrescription <-- storage
archivePrescription -> storage : archiveData(filteredPrescriptions: ArrayList<Medicine>)
archivePrescription <-- storage
@enduml
Loading