Skip to content

Commit

Permalink
Update activity diagram for addnote
Browse files Browse the repository at this point in the history
  • Loading branch information
tengcharmaine committed Apr 14, 2024
1 parent 248db12 commit 3a33b71
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions docs/diagrams/AddNoteCommandActivityDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@ start
'Since the beta syntax does not support placing the condition outside the
'diamond we place it as the true branch instead.

if () then ([command successful])
:Add new note to
specified patient;
else ([command unsuccessful])
:Error messages;
:Edit command
accordingly;
:Successfully adds
new note;
if () then ([valid user input])
if () then ([with -replace flag])
:Successfully replaces original
note with new note;
:System displays the new note
on patient list panel;
else ([without -replace flag])
:Successfully appends
new note to original note;
:System displays the updated
note on patient list panel;
endif
else ([else])
:System displays specific
error messages;
endif
stop
@enduml

0 comments on commit 3a33b71

Please sign in to comment.