@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