@startuml Blood 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 -> 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.] == Blood Prime Progess == TD -> SW: MSG: [x97 Dat #2] Blood Prime Progress\ \n\t(F32) targetVol\ \n\t(F32) deliveredVol SW -> UI: CMD: Blood Prime Progress Data UI -> US: ACT: Display Blood Prime Progress == Blood Prime Command Request/Response == US -> UI: TCH: Blood Prime Screen Interation UI -> SW: ACT: Blood Prime Command SW -> TD: MSG: [x98: Req #1] Blood Prime Command Request\n\ \t(U32) cmd=\n\ \t\t[ DECREASE_RATE |\n\ \t\tINCREASE_RATE |\n\ \t\tPAUSE ] alt accepted TD -> SW: MSG: [x99: Rsp #2] Blood Prime Command Response\n\ \t(BOOL) accepted=1\n\ \t(U32) rejReason=X SW -> UI: CMD: Blood Prime Command Adjustment Triggered UI -> US: ACT: Update Blood Prime Screen else #Pink rejected TD -> SW: MSG: [x99: Rsp #2] Blood Prime Command Response\n\ \t(BOOL) accepted=0\n\ \t(U32) rejReason SW -> UI: CMD: Blood Prime Command Adjustment Triggered UI -> US: ACT: Display Rejection Reason end == Fluid Bolus Infusion == note over UI See Fluid Bolus Infusion diagram for details end note == Pressures Display == note over UI See Main Treatment Screen diagram for details end note @enduml