@startuml Heparin 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.] == Heparin == UI ->o UI: ⟲: Main Treatment Screen US -> UI: TCH: Heparin Menu Option UI -> US: ACT: Display Heparin Screen \ \n\t - Heparin Prescription \ \n\t - Heparin Delivery Data US -> UI: TCH: Press pause/ resume button UI -> SW: ACT: Heparin Request SW -> TD: MSG: [x8A: #1] \ \n\tRequest: \ \n\t(U32) requestedState TD -> SW: MSG: [x8B: #2] \ \n\tResponse: \ \n\t(U32) mAccepted\ \n\t(U32) mReason SW -> UI: ACT: Heparin Response UI -> US: ACT: Notify user == Heparin Data == TD -> SW: MSG: [x8C: #3] \nTD Heparin Status Data\n(F32) mCumulative\n(F32) mTarget\n(U32) mTimeRemaining SW -> UI: CMD: Update Heparin Data\n(F32) mCumulative\n(F32) mTarget\n(U32) mTimeRemaining UI -> US: ACT: Display updated Values @enduml