Index: SDDs/CreateRx.png =================================================================== diff -u -rfeb708952ab1311368560d025d1e241c68b5413c -r09b4d71593dc6c7a9465541f60cc2178164ff8a6 Binary files differ Index: SDDs/CreateRx.puml =================================================================== diff -u -rfeb708952ab1311368560d025d1e241c68b5413c -r09b4d71593dc6c7a9465541f60cc2178164ff8a6 --- SDDs/CreateRx.puml (.../CreateRx.puml) (revision feb708952ab1311368560d025d1e241c68b5413c) +++ SDDs/CreateRx.puml (.../CreateRx.puml) (revision 09b4d71593dc6c7a9465541f60cc2178164ff8a6) @@ -46,33 +46,9 @@ TD -> SW: MSG: [x12: 4,1] Dat \n OpMode - Parameters SW -> UI: CMD: Create Rx Screen UI ->o Wait_Retry: ⟲: Create Rx Screen - US -> UI: ENT: Patient ID Text - US -> UI: TCH: Touch each parameter to set value - alt Validate - US -> UI: TCH: Validate Button - UI -> SW: ACT: Prescription Parameters - SW -> TD: MSG: [x3F: #(all the Rx Params)] Req \n Prescription Parameters: Validation - alt Accepted - TD -> SW: MSG: [x40: 1,X] Rsp \n Prescription Parameters: Validation - SW -> UI: ACT: Notify UI: Parameters validation \n\t(Generate QR Code) - UI -> UI: ACT: Lock all editable fields\n\tShow QR Code\n\tShow Confirm Button - alt Confirm - US -> UI: TCH: Confirm Button - UI -> SW: ACT: Prescription Parameters Confimation - SW -> TD: MSD: [x44: 1] Req \n Prescription Parameters Confimation - alt Accepted - TD -> SW: MSG: [x12: 4,1] Dat \n OpMode - Pre-Treatment - SW -> UI: CMD: Pre-Treatment Stack - UI -[#Green]>o Pre_Tx - end - end - else #Pink - TD -> SW: MSG: [x40: 0,#RR] Rsp \n Prescription Parameters: Validation - SW -> UI: CMD: Highlight Rejected Parameters - UI ->o Wait_Retry: ⟲: Prescription Parameters Screen - end - end - else #Pink Rejected x46: Initiate Treatment + + !include common_puml/CreateRxCommon.puml + else #Pink Rejected x46: Initiate Treatment TD -> SW: MSG: [x46: 0,RR] SW -> UI: CMD: Rejection Reason (RR) Notification UI ->o Wait_Retry: ⟲: MainHome Screen @@ -93,4 +69,5 @@ UI ->o Wait_Retry: ⟲: MainHome Screen end end + !include common_puml/CreateRxControls.puml @enduml Index: SDDs/CreateRx_popup.png =================================================================== diff -u Binary files differ Index: SDDs/CreateRx_popup.puml =================================================================== diff -u --- SDDs/CreateRx_popup.puml (revision 0) +++ SDDs/CreateRx_popup.puml (revision 09b4d71593dc6c7a9465541f60cc2178164ff8a6) @@ -0,0 +1,31 @@ +@startuml CreateRx_popup + + participant TD as TD + participant SW as SW + participant UI as UI + control Wait_Retry as Wait_Retry + actor USER as US + collections Pre_Tx as Pre_Tx + + 'Possible actions and interaction tuypes + ' TD -> SW: MSG: Message + ' SW -> TD: MSG: Message + ' SW -> UI: CMD: command + ' UI -> SW: ACT: Action + ' US -> UI: User actions are: + ' ENT: User enters a value or string + ' TCH: User touches a button (RadioButton, CheckBox, ...) + ' SET: User sets/slides a slider + ' SCL: User scrolls a flipable area + ' + 'Messages conventions: + '[x \n ,] + '[x \n ,# certain amount of parameters according to the content] + '[x \n ,X The rest of the parameters do not matter.] + + == Create Rx - Popup == + US -> UI: TCH: User touches a Prescrption button + UI ->o Wait_Retry: ⟲: Create Rx Popup + !include common_puml/CreateRxCommon.puml + !include common_puml/CreateRxControls.puml +@enduml Index: SDDs/common_puml/CreateRxCommon.puml =================================================================== diff -u --- SDDs/common_puml/CreateRxCommon.puml (revision 0) +++ SDDs/common_puml/CreateRxCommon.puml (revision 09b4d71593dc6c7a9465541f60cc2178164ff8a6) @@ -0,0 +1,57 @@ +@startuml CreateRxCommon(id=CreateRxCommon) + + participant TD as TD + participant SW as SW + participant UI as UI + control Wait_Retry as Wait_Retry + actor USER as US + collections Pre_Tx as Pre_Tx + + 'Possible actions and interaction types + ' External on CANBus + ' TD -> SW: MSG: Message + ' SW -> TD: MSG: Message + + ' Internal to the application + ' XX -> YY: CMD: Command + ' XX -> XX: ACT: Action + + ' External on OS/FS + ' SW -> Script: ACT: Command + ' Script -> OS: CMD: Command + ' Script -> SW: MSG: Message + ' OS -> Script: MSG: Message + + ' US -> UI: User actions are: + ' ASK: Display a + ' ENT: User enters a value or string + ' TCH: User touches a button (RadioButton, CheckBox, ...) + ' SCL: User scrolls a flip-able area + + US -> UI: ENT: Patient ID Text + US -> UI: TCH: Touch each parameter to set value + alt Validate + US -> UI: TCH: Validate Button + UI -> SW: ACT: Prescription Parameters + SW -> TD: MSG: [x3F: #(all the Rx Params)] Req \n Prescription Parameters: Validation + alt Accepted + TD -> SW: MSG: [x40: 1,X] Rsp \n Prescription Parameters: Validation + SW -> UI: ACT: Notify UI: Parameters validation \n\t(Generate QR Code) + UI -> UI: ACT: Lock all editable fields\n\tShow QR Code\n\tShow Confirm Button + alt Confirm + US -> UI: TCH: Confirm Button + UI -> SW: ACT: Prescription Parameters Confimation + SW -> TD: MSD: [x44: 1] Req \n Prescription Parameters Confimation + alt Accepted + TD -> SW: MSG: [x12: 4,1] Dat \n OpMode - Pre-Treatment + SW -> UI: CMD: Pre-Treatment Stack + UI -[#Green]>o Pre_Tx + end + end + else #Pink + TD -> SW: MSG: [x40: 0,#RR] Rsp \n Prescription Parameters: Validation + SW -> UI: CMD: Highlight Rejected Parameters + UI ->o Wait_Retry: ⟲: Prescription Parameters Screen + end + end +@enduml Index: SDDs/common_puml/CreateRxControls.puml =================================================================== diff -u --- SDDs/common_puml/CreateRxControls.puml (revision 0) +++ SDDs/common_puml/CreateRxControls.puml (revision 09b4d71593dc6c7a9465541f60cc2178164ff8a6) @@ -0,0 +1,49 @@ +@startuml CreateRxControls(id=CreateRxControls) + + participant TD as TD + participant SW as SW + participant UI as UI + control Wait_Retry as Wait_Retry + actor USER as US + collections Pre_Tx as Pre_Tx + + 'Possible actions and interaction types + ' External on CANBus + ' TD -> SW: MSG: Message + ' SW -> TD: MSG: Message + + ' Internal to the application + ' XX -> YY: CMD: Command + ' XX -> XX: ACT: Action + + ' External on OS/FS + ' SW -> Script: ACT: Command + ' Script -> OS: CMD: Command + ' Script -> SW: MSG: Message + ' OS -> Script: MSG: Message + + ' US -> UI: User actions are: + ' ASK: Display a + ' ENT: User enters a value or string + ' TCH: User touches a button (RadioButton, CheckBox, ...) + ' SCL: User scrolls a flip-able area + + == Create Rx - Controls == + alt Edit + UI -> UI: ACT: Enabled all editable fields + end + alt Select + UI -> UI: ACT: Open Prescription Manager + end + alt Clear All + UI -> UI: ACT: Clear all data from screen \ + \n\tSet each field to inactive + end + alt Is Validated? + UI -> SW: ACT: Notify FW canceling confirm treatment parameters + SW -> TD: MSG: [x44: 0] Req \n Prescription Parameters Confirmations: Back + SW -> UI: ACT: Set to not validated + UI -> UI: ACT: Enable Fields + UI ->o Wait_Retry: ⟲: Create Rx Screen/ Popup + end +@enduml