tanjera / infirmary-integrated

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

IABP Timing Realism: Irregular cardiac rhythm not in sync w/ IABP balloon #191

Closed tanjera closed 1 year ago

tanjera commented 1 year ago

As title states... irregular cardiac rhythm causes IABP balloon to not be in proper (realistic) timing, out of sync.

Note: for ECG trigger, balloon should inflate ~ after T wave, deflate ~ after R wave. For pressure trigger, balloon should inflate at dicrotic notch, then deflate at beginning of arterial pressure inflection.

image
tanjera commented 1 year ago

Based balloon "beat" width on Physiology.CalculateHRInterval (_P.GetLastVS (Physiology.PhysiologyEventTypes.Cardiac_Ventricular_Mechanical).HR), adjusted the length coefficient 0.6 -> 0.7 (length coefficient gives the balloon "downtime" between beats, time for normal arterial wave to dicrotic notch = coefficient time ~ 0.3-0.4.

This fixed the balloon synchronicity with the ECG, but then the ABP (w/ IABP pulse) rhythm was not synchronized/timed properly to the new balloon waveform, so the ABP_IABP rhythm is also now based on Physiology.CalculateHRInterval (_P.GetLastVS (Physiology.PhysiologyEventTypes.Cardiac_Ventricular_Mechanical).HR)

Progress pic:

image
tanjera commented 1 year ago

Have not adjusted the IABP or ABP_IABP timing for ectopic beats... still working half decently... not truly entirely modernly realistic (some IABP deflations come after ABP waveform final deflections; inflation and deflation triggers are modernly more responsive than the waveforms are showing)... but the picture is generally clinically accurate.

image