v0.5.4: Chest compressions

This commit is contained in:
GABRIEL Sebastian 2026-11-12 15:11:04 +01:00
commit 483a3c3d61
12 changed files with 1288 additions and 47 deletions

View file

@ -1,4 +1,4 @@
# Patient Monitor Simulation (PaMSim) — v0.5.3
# Patient Monitor Simulation (PaMSim) — v0.5.4
A two-window, Rust/GTK4 patient-monitor simulator for teaching on Fedora Linux.
@ -6,6 +6,47 @@ A two-window, Rust/GTK4 patient-monitor simulator for teaching on Fedora Linux.
> plethysmography and capnography are schematic mathematical approximations. The
> simulation has no clinical validation and is not a medical device.
## Chest compressions (v0.5.4)
The **Chest compressions** Admin group provides a large **Start Chest Compressions**
button (green background). While active it changes to **Stop Chest Compressions**
(red background). **Compression quality** can be changed at any time:
**Good**, **Adequate** (default), **Poor**, or **Bad**.
- Compressions are generated independently of the ECG at **90–110/min**, with
a new reproducible pseudo-random compression rate and pressure each stroke.
**The ECG rhythm and electrical HR setting are not changed.**
- Every compression adds movement artifact to the ECG. In a patient with
**existing intrinsic arterial perfusion**, the native arterial waveform is
preserved but distorted by compression-synchronous pressure artifact.
- With **no intrinsic arterial pulse** (e.g., VF, PVT, asystole or PEA),
each effective compression generates a broad, blunt arterial pressure wave:
| Compression quality | Compression-generated ART systolic peak |
| --- | --- |
| Good | 90 mmHg ±10% (81–99 mmHg) |
| Adequate (default) | 70 mmHg ±10% (63–77 mmHg) |
| Poor | 50 mmHg, +10% / −50% (25–55 mmHg) |
| Bad | No compression-generated arterial pressure; 0–5 mmHg baseline drift |
During pulseless CPR, **ART SYS** shows the current compression peak,
while **DIA/MAP** remain `--` (not estimable from this synthetic pressure).
- SpO₂ numeric saturation and the pleth waveform remain visible **only when
compression quality is Good**, provided the sensor is connected and not
occluded by an NIBP cuff. Their effective signal quality is forced to
**Poor (★)**, irrespective of the normal Admin quality setting. The displayed
pleth-derived **PR follows the compression rate (90–110/min)**, not the ECG.
Adequate, Poor and Bad CPR display **NO READING**; detached sensors display
**NO SENSOR**. Compression-induced Poor quality does not schedule the usual
intermittent dropout; that resumes when ordinary Poor signal mode returns.
- Existing numerical alarms and rhythm alarms remain active. ART SYS limits
apply to compression-generated systolic peaks; NIBP scheduling remains unchanged; its cycle duration still depends on
effective SpO₂ quality at the start of a measurement.
These pressure targets are **didactic assumptions**, not validated CPR
hemodynamic criteria. The exercise must not be used to judge real compression
quality or clinical perfusion.
## Build and run on Fedora
```bash