@startuml Treatment_Logs 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 ,# certain amount of parameters according to the content] \n '[x ,X The rest of the parameters do not matter.] \n == Log Data Collection == alt Treatment Log Alarm Data TD -> SW: MSG: [x6A: #3] Event: \ \n\t(U32) mAlarmID \ \n\t(F32) mParam1 \ \n\t(F32) mParam2 end alt Treatment Log Event Data TD -> SW: MSG: [x6B: #3] Event: \ \n\t(U32) mEventID \ \n\t(F32) mOldValue \ \n\t(F32) mNewValue end alt Treatment Log Average Periodic Data TD -> SW: MSG: [xAD: #7] Event: \ \n\t(U32) mBloodFlowRate \ \n\t(F32) mDialysateFlowRate \ \n\t(F32) mUFRate \ \n\t(F32) mArterialPressure \ \n\t(F32) mVenousPressure \ \n\t(F32) mTMPPressure \ \n\t(F32) mDialysateTemp end alt Post Treatment Logs UI -> SW: ACT: Post Treatment logs Request SW -> TD: MSG: [xA9: #0] Req: Post Treatment logs Request TD -> SW: MSG: [xAA: #62] Rsp: \ \n\t(U32) mAccepted\ \n\t(U32) mReason \ \n\t ... Tx review data end == Write to Log == SW -> SW: ACT: Populate data model with collected data \ \n\t Write data to log file \ \n\t Save log file with unique name @enduml