v0.5.8 — ECG touchscreen controls

This commit is contained in:
GABRIEL Sebastian 2026-11-12 16:10:57 +01:00
commit 14ee042a0a
10 changed files with 1027 additions and 41 deletions

View file

@ -1,6 +1,6 @@
# Patient Monitor Simulation (PaMSim) — v0.5.7
# Patient Monitor Simulation (PaMSim) — v0.5.8
A two-window, Rust/GTK4 patient-monitor simulator for teaching on Fedora Linux.
A Rust/GTK4 patient-monitor simulator with two main windows for teaching on Fedora Linux.
> **Synthetic training signals only — not for clinical use.** ECG, arterial pressure,
> plethysmography and capnography are schematic mathematical approximations. The
@ -23,6 +23,32 @@ The NIBP visibility toggle hides **only the fourth group's content**; the
bottom measurement row and other three groups remain present. Disabling one
of the four waveform channels still reflows the remaining rows above it.
## ECG touchscreen settings (v0.5.8)
Tap or click **anywhere in the ECG row**, on either the **trace (left 75%)** or
**heart-rate readout (right 25%)**, to open a modal green-on-black ECG settings
window above the monitor. The same interaction works when the monitor is in
fullscreen mode. Touch/click input outside the ECG row opens no menu. Hiding
the ECG channel also disables its touch target.
The menu offers:
- **ECG lead:** I, II (default), III, aVR, aVL, aVF, and V1–V6. The monitor
trace label changes immediately after **Apply**, and the waveform undergoes
an *illustrative lead-dependent gain/polarity transformation*. This is **not**
a diagnostic 12-lead ECG derivation; cardiac timing, HR and mechanical
capture do not change when the lead changes.
- **HR alarm limits:** optional **↓ Lower** and **↑ Upper**, in bpm. Leave
either box empty (OFF) to disable that alarm boundary. A limit must be in
the range 0–240 and the lower limit must not exceed the upper limit.
- **Apply** commits lead and limits together; **Cancel** or **Esc** discards
unsaved changes. Both Admin and monitor displays reflect committed changes.
Changing limits in the monitor marks the Admin alarm preset as **Custom**.
The Admin ECG section also includes an ECG-lead selector, synchronized with
changes made from the monitor. No settings menu is yet provided for other
channels.
## Chest compressions (v0.5.4)
The **Chest compressions** Admin group provides a large **Start Chest Compressions**
@ -527,3 +553,11 @@ row has four equally sized measurement groups: CO/CI; SVRI/GEDI/ELWI;
reserved empty; and the unchanged NIBP readout. Only headings are rendered
in the first two groups; the third has no content. NIBP can be hidden without
removing the final row. No physiological simulation behavior was modified.
### v0.5.8 — ECG touchscreen controls
Added a monitor-styled ECG settings window, opened by touching either the ECG
waveform or numeric HR cell. Edits HR lower/upper alarms and displayed lead
(I, II, III, aVR, aVL, aVF, V1–V6), with input validation and Admin sync.
Lead changes are schematic display projections only; arrhythmia and pulse
simulation remain unchanged.