@startuml prime participant TD as TD participant SW as SW participant UI as UI actor USER as US 'Possible actions and interaction types ' TD -> SW: MSG: Message ' SW -> UI: CMD: command ' UI -> UI: 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.] == Prime == TD -> SW: MSG: [xB7: #8] \nTD Pre-Treatment States Data : \ \n\t(U32) mSubMode=TD_PRE_TREATMENT_PRIME_STATE \ \n\t(U32) mInstallState \ \n\t(U32) mSelfTestDryState \ \n\t(U32) mPrimeState \ \n\t(U32) mRecirculateState \ \n\t(U32) mConfirmRxState \ \n\t(U32) mHeparinState \ \n\t(U32) mPatientConnectionState SW -> UI: ACT: Show Pre-Treatment Prime UI -> US: ACT: Display Prime screen TD -> SW: MSG: [xC7: #4] \nTD Prime Data : \ \n\t(U32) mPrimeState \ \n\t(U32) mTotalDuration \ \n\t(U32) mCountDown \ \n\t(U32) mPauseCountdown SW -> UI: ACT: Show Prime progress UI -> US: ACT: Display Prime progress \ \n\t- Current State \ \n\t- Countdown timer \ \n\t- Progress bar @enduml