v0.4.3: Debug and optimize alarms and rhythms
This commit is contained in:
parent
5e397019fc
commit
d4162c49e8
8 changed files with 995 additions and 54 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Patient Monitor Simulation (PaMSim) — v0.4.2
|
||||
# Patient Monitor Simulation (PaMSim) — v0.4.3
|
||||
|
||||
A two-window, Rust/GTK4 patient-monitor simulator for teaching on Fedora Linux.
|
||||
|
||||
|
|
@ -131,15 +131,21 @@ Admin → **Pulse oximetry** has two additional controls:
|
|||
| Setting | Pleth waveform | Monitor display |
|
||||
| --- | --- | --- |
|
||||
| **0 — None** | No waveform | Flashing **NO READING**, PR `--`; no stars |
|
||||
| **1 — Poor** | Small, irregularly amplitude-distorted pulse | 1 star (★) |
|
||||
| **1 — Poor** | Small, irregularly distorted pulse, with temporary losses of signal | 1 star (★) when available; blinking **NO READING** during loss |
|
||||
| **2 — Adequate** | Medium, smoothly damped pulse | 2 stars (★★) |
|
||||
| **3 — Good** | Full nominal, smoothly damped pulse | 3 stars (★★★) |
|
||||
|
||||
Default: sensor attached; signal quality **3 — Good**. At levels 1–3, the
|
||||
instructor-set SpO₂ number is shown only when mechanical pulses are detected.
|
||||
The signal quality does **not** randomly alter that number: it affects the
|
||||
pleth morphology and the quality indicator only. The simulated pulse rate
|
||||
remains derived from mechanically captured QRS complexes.
|
||||
In **Poor** quality, the signal also has intermittent complete dropouts:
|
||||
**30–180 seconds of signal** between interruptions, with each interruption
|
||||
lasting **5–20 seconds**. During an interruption the pleth trace disappears,
|
||||
SpO₂ and PR are unavailable, and **NO READING** flashes. Following recovery,
|
||||
the Poor waveform and numerical readings return automatically. These intervals
|
||||
are pseudo-random and driven by simulation time, independent of frame rate;
|
||||
they reset when Poor quality is selected again. The dropout does not affect
|
||||
the actual saturation setting, ECG, derived mechanical pulse generation, or ART.
|
||||
The simulated pulse rate remains derived from captured QRS complexes.
|
||||
|
||||
The degraded waveform uses deterministic, smoothly interpolated pseudo-noise
|
||||
that scales only existing pleth pulses: it cannot manufacture pulses during
|
||||
|
|
@ -159,8 +165,12 @@ can be taught.
|
|||
controlled by a pulse-rate slider.
|
||||
- A captured QRS leads to an ART upstroke after a schematic **120 ms**, and a
|
||||
peripheral pleth pulse after **300 ms**. Pleth is strongly damped/filtered.
|
||||
- VT and PVT selections start with a heart rate of **160 bpm**, and update
|
||||
both the HR slider and numeric entry. The instructor may modify this afterward.
|
||||
- PVT, VF, asystole and PEA suppress mechanical pulses; the ART trace then
|
||||
drifts smoothly at 0–5 mmHg rather than representing a pulsatile pressure.
|
||||
The ART **SYS** number shows the rounded low transducer pressure (0–5 mmHg),
|
||||
while DIA and MAP show `--` because they cannot be reliably estimated.
|
||||
Previous pressure samples scroll out of view. NIBP is a static,
|
||||
separately entered cuff reading.
|
||||
|
||||
|
|
@ -297,6 +307,26 @@ environment; run `cargo test` and `cargo run --release` on Fedora.
|
|||
- **VT** remains potentially perfusing. The new **PVT** (pulseless ventricular tachycardia) rhythm retains organized broad QRS complexes but produces no arterial/pleth pulses. VF and asystole are also pulseless regardless of capture selection.
|
||||
- **ECG**: a flashing **ARRHYTHMIA** message for VT, PVT and VF; a flashing **ASYSTOLE** message for asystole. These event alarms do not depend on numerical HR limits.
|
||||
- **SpO₂**: when the probe is disconnected, a flashing **NO SENSOR** replaces the saturation reading. Quality 0, loss of mechanical capture or a pulseless rhythm results in flashing **NO READING** (no numerical SpO₂/PR). Sensor disconnection takes precedence. No pleth waveform is displayed in these conditions.
|
||||
- **ART**: without mechanical pulses (including PVT/VF/asystole/PEA), the simulated invasive pressure line has slow non-pulsatile drift between **0 and 5 mmHg**. The numerical blood-pressure reading remains unavailable (`--/--`), rather than misrepresenting this baseline as true systolic and diastolic pressures.
|
||||
- **ART**: without mechanical pulses (including PVT/VF/asystole/PEA), the simulated invasive pressure line has slow non-pulsatile drift between **0 and 5 mmHg**. In v0.4.2, the numeric display showed `--/--`; v0.4.3 changes this to a rounded measured SYS of 0–5 mmHg, with `--` for DIA and MAP.
|
||||
- **ECG rhythm name** has been removed from the monitor; only HR and the associated alarm message, when present, are visible. The instructor continues to select the rhythm in Admin.
|
||||
- Numerical alarm thresholds and the Adult preset from v0.4.1 are unchanged. Synthetic demonstration behavior only; not suitable for clinical decisions.
|
||||
|
||||
|
||||
## v0.4.3 — Low arterial pressure, VT rate preset and intermittent Poor SpO₂
|
||||
|
||||
- Pulseless rhythms, PEA or otherwise absent mechanical capture: invasive SYS
|
||||
reports the **current measured 0–5 mmHg** pressure, e.g. `3/--` with
|
||||
`MAP -- mmHg`. **Only SYS** is tested against configured ART SYS limits;
|
||||
no spurious MAP/DIA threshold alarms are generated from missing readings.
|
||||
- Selecting **VT** or **PVT** in Admin sets HR to **160 bpm** and updates the
|
||||
associated slider and text field. Subsequent manual rate changes are allowed.
|
||||
Perfusing VT still produces QRS-linked pulses subject to capture settings;
|
||||
PVT remains pulseless.
|
||||
- **Poor (★)** SpO₂ signal periodically changes to **NO READING** for a
|
||||
pseudo-random **5–20 seconds**, after a pseudo-random **30–180 seconds** of
|
||||
usable low-quality signal. The technical alarm blinks, SpO₂/PR readings are
|
||||
suppressed, and the pleth waveform is absent. On recovery it resumes at Poor
|
||||
quality. The simulated signal history retains visible gaps for outages.
|
||||
Choosing another signal quality immediately clears the intermittent outage.
|
||||
- No changes to Adult alarm presets, alarm limit ordering, or the 0–200 mmHg
|
||||
arterial scale. All behavior is synthetic and intended for teaching only.
|
||||
|
|
|
|||
Loading…
Reference in a new issue