@startuml Pre-Treatment participant TD as TD participant SW as SW participant UI as UI actor USER as US '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.] == Pre-Treatment == US -> UI: TCH: Create Treatment Button UI -> SW: ACT: Create Treatment SW -> TD: MSG: [x45: 1] Req \n Initiate Treatment alt Accepted: Initiate Treatment TD -> SW: MSG: [x46: 1,X] Rsp \n Initiate Treatment TD -> SW: MSG: [x12: 4,1] Dat \n OpMode - Pre-Treatment MOde SW -> UI: CMD: CPre-Treatment Screen alt isStandardMode? UI -> US: ACT: Show Concentrates page US -> UI: TCH: Any instruction step UI -> UI: ACT: Highlight instruction step \ \n\tShow image for instruction step US -> UI: Act: Press Next alt #CEFAD0 Next UI -> UI: ACT: Go to Installation Page end end UI -> US: ACT: Show Installation page US -> UI: TCH: Any instruction step UI -> UI: ACT: Highlight instruction step \ \n\tShow image for instruction step alt #CEFAD0 Auto-Load US -> UI: TCH: Auto-Load Button UI -> SW: ACT: Auto-Load Request SW -> TD: MSG: [x92: 0] Request TD -> SW: MSG: [x93: #2] \n\tResponse: \ \n\t(U32) mAccepted\ \n\t(U32) mReason SW -> UI: CMD: Rejection Reason alt #CAE9F5 Accepted: AutoLoad UI -> UI: ACT: Go to Self-Tests Page else #Pink Rejected UI -> UI: ACT: Stay on page UI -> US: ACT: Display rejection reason end else #D0D9CD Back US -> UI: TCH: Back Button UI -> SW: ACT: Back SW -> TD: MSG: [x45: 0] Req \n Initiate Treatment Cancel TD -> SW: MSG: [x12: 3,1] Dat \n OpMode - Standby SW -> UI: CMD: MainHome Screen end UI -> US: ACT: Show Self-Tests page UI -> SW: ACT: Request start Self Tests SW -> TD: ACT: Request start Self Tests TD -> SW: ACT: Response Self Tests State SW -> UI: ACT: Response Self Tests State UI -> US: ACT: Show Self Tests State US -> UI: Act: Press Next alt #CEFAD0 Next UI -> UI: ACT: Go to Saline Page end UI -> US: ACT: Show Saline page US -> UI: TCH: Any instruction step UI -> UI: ACT: Highlight instruction step \ \n\tShow image for instruction step US -> UI: Act: Press Next alt #CEFAD0 Next UI -> UI: ACT: Go to Prime Page end UI -> US: ACT: Show Prime page UI -> SW: ACT: Request start Prime SW -> TD: ACT: Request start Prime TD -> SW: ACT: Response Prime State SW -> UI: ACT: Response Prime State UI -> US: ACT: Show Prime State US -> UI: Act: Press Next alt #CEFAD0 Next alt #CAE9F5 Is Water Sample Featured UI -> UI: ACT: Go to Water Sample UI -> US: ACT: Show Water Sample US -> UI: TCH: Select pass or fail US -> UI: Act: Press Next alt #CEFAD0 Next Button UI -> UI: ACT: Go to Create Rx end else UI -> UI: ACT: Go to Create Rx end end UI -> US: ACT: Show Create Rx !include common_puml/CreateRxCommon.puml UI -> UI: ACT: Go to UF/ Dialysate UI -> US: ACT: Show UF/ Dialysate US -> UI: Act: Press Next alt #CEFAD0 Next UI -> UI: ACT: Go to Connect Page end UI -> UI: ACT: Go to Connect UI -> US: ACT: Show Connect UI -> UI: ACT: Highlight instruction step \ \n\tShow image for instruction step US -> UI: Act: Press Start UI -> SW: ACT: Pre-Treatment Adjustment Start Treatment SW -> TD: MSD: [xA1: 0] Request \n Pre-Treatment Adjustment Start Treatment alt #CEFAD0 Accepted TD -> SW: MSG: [xA2: 2] \n\tResponse: \ \n\t(U32) mAccepted \ \n\t(U32) mReason SW -> UI: CMD: Treatment Stack UI -> US: Act: Show Main Treatment end @enduml