Skip to content

Commit

Permalink
Remove low level details in activity diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
didymental committed Nov 7, 2021
1 parent 36bfcf5 commit 9f738c3
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 25 deletions.
Binary file modified docs/diagrams/AddMedicalEntryFeatureActivityDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 6 additions & 10 deletions docs/diagrams/AddMedicalEntryFeatureActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@

start
:User inputs Add Medical Feature command;
if (patientIndex && medicalPrefix is present?) then (no)
: throw ParseException;
else (yes)

if (patientIndex is within Patient Book) then (yes)
: Add medical entry into specified patient's medical history;
: Produce patient copy with modified medical history;
if () then ([user input is valid])
: Find specified target patient from Patient Book;
: Produce patient copy of target patient;
: Add medical entry into patient copy's medical history;
: Replace target patient in Patient Book with the patient copy;
: Display updated Patient Book;
else (no)
: throw CommandException;
endif
else ([else])
: Display Error Message;
endif
stop

Expand Down
1 change: 0 additions & 1 deletion docs/diagrams/AddMedicalEntryFeatureSequenceDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ PatientBookParser --> AddressBookParser : cmd
deactivate PatientBookParser
AddressBookParser --> LogicManager : cmd
deactivate AddressBookParser

LogicManager --> AddMedicalEntryCommand : execute(model)
activate AddMedicalEntryCommand

Expand Down
Binary file modified docs/diagrams/DeleteMedicalEntryFeatureActivityDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 6 additions & 14 deletions docs/diagrams/DeleteMedicalEntryFeatureActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,14 @@

start
:User inputs Delete Medical Feature command;
if (patientIndex && medicalIndex is present?) then (no)
: throw ParseException;
else (yes)
if (patientIndex is within Patient Book) then (no)
: throw CommandException;
else (yes)
: Find patient from Patient Book via the patientIndex;
: Produce patient copy;
if (medicalIndex is within the length of patient's medical history?) then (yes)
: Modify patient copy medical history to delete the medicalIndex;
if () then ([user input is valid])
: Find specified target patient from Patient Book;
: Produce patient copy of target patient;
: Delete the specified medical entry from the patient copy's medical history;
: Replace target patient in Patient Book with the patient copy;
: Display updated Patient Book;
else (no)
: throw CommandException;
endif
endif
else ([else])
: Display Error Message;
endif
stop

Expand Down

0 comments on commit 9f738c3

Please sign in to comment.