From 3a33b712d7030b44c0b86dccf8372747b7c9bdf9 Mon Sep 17 00:00:00 2001 From: tengcharmaine Date: Sun, 14 Apr 2024 21:51:37 +0800 Subject: [PATCH] Update activity diagram for addnote --- .../AddNoteCommandActivityDiagram.puml | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/docs/diagrams/AddNoteCommandActivityDiagram.puml b/docs/diagrams/AddNoteCommandActivityDiagram.puml index 62e9c6d0f0c..7e3dd1ea2b5 100644 --- a/docs/diagrams/AddNoteCommandActivityDiagram.puml +++ b/docs/diagrams/AddNoteCommandActivityDiagram.puml @@ -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