tanjera / infirmary-integrated

Medical device simulator for training healthcare professionals.
http://www.infirmary-integrated.com/
Other
40 stars 5 forks source link

IABP: Not running on pulseless rhythms w/ organized electrical activity #192

Closed tanjera closed 1 year ago

tanjera commented 1 year ago

Stops pumping on pulseless VT and PEA...

tanjera commented 1 year ago

IABP was triggered by ventricular mechanical activity timer... switched to ventricular electrical activity timer...

IABP now pumping properly on ECG trigger (if ECG exists) and not pumping on pressure trigger (for non-pulsatile rhythm)... but no ABP inflections caused by IABP on non-pulsatile rhythms.

tanjera commented 1 year ago

ABP was triggered to draw from Add_Beat__Cardiac_Ventricular_Mechanical which wasn't called on non-pulsatile rhythms... added logic to Add_Beat__IABP_Balloon to draw ABP rhythm is if !p.Cardiac_Rhythm.HasPulse_Ventricular

tanjera commented 1 year ago

Fixed by ensuring IABP trigger draws ABP waveforms if there's no ventricular pulse (and IABP is running!). Also added IABP to trigger auto-scaling of ABP tracings. Working properly on DeviceIABP... propagating changes to DeviceMonitor and DeviceDefib.