v0.6.0 — Additional touchscreen modules and NIBP manual-first startup

Added touch/click settings panels for SpO₂, ART, CO₂ and the bottom-right
NIBP cell. Their threshold editors use large, unit-specific +/− and ON/OFF
controls; the panels expose relevant waveform/sensor options and stay
synchronized with Admin. NIBP additionally provides interval selection,
manual **Measure now**, Auto ON/OFF and cuff options. Startup no longer
initiates a cuff cycle or shows any NIBP reading; Auto is OFF by default.
Existing NIBP cycle physics and signal quality behavior are unchanged.
This commit is contained in:
GABRIEL Sebastian 2026-11-12 16:40:51 +01:00
commit 41e1971fae
13 changed files with 1954 additions and 93 deletions

View file

@ -1,4 +1,4 @@
# Patient Monitor Simulation (PaMSim) — v0.5.9
# Patient Monitor Simulation (PaMSim) — v0.6.0
A Rust/GTK4 patient-monitor simulator with two main windows for teaching on Fedora Linux.
@ -28,7 +28,8 @@ of the four waveform channels still reflows the remaining rows above it.
Tap or click **anywhere in the ECG row**, on either the **trace (left 75%)** or
**heart-rate readout (right 25%)**, to open a modal **black-and-light-grey 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
fullscreen mode. The same interaction now applies to the other channels.
Hiding
the ECG channel also disables its touch target.
The menu offers:
@ -53,8 +54,48 @@ subtle separators matching the main monitor divider thickness. No keyboard
is required for the ECG menu; the Admin window retains numeric text inputs.
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.
changes made from the monitor. SpO₂, ART, CO₂ and NIBP now also have
neutral, touch-operated settings panels (details below).
## Additional monitor touchscreen menus (v0.6.0)
Tap or click the **waveform or numeric readout** of SpO₂, ART or CO₂ to open
that channel's settings panel. For NIBP, tap the **rightmost quarter of the
bottom measurement row**. The CO/CI, SVRI/GEDI/ELWI and unused third cells
remain non-interactive. All menus share the ECG menu's **black background,
light-grey text and thin 0.8 px dividers**. No on-monitor keyboard is needed.
| Touched channel | Alarm thresholds | Other touch settings |
| --- | --- | --- |
| SpO₂ | SpO₂, PR | Signal quality; sensor attached/detached |
| ART | SYS, MAP, DIA, PPV | Arterial waveform shape |
| CO₂ | EtCO₂, RR | Normal or obstructive capnogram |
| NIBP | SYS, MAP, DIA | 1/3/5/10/20/30/60-minute interval, Auto ON/OFF, simulated failed reading, cuff extremity, **Measure now** |
Each independent alarm bound is changed via large **−/+** buttons and
**ON/OFF**. Touch increments are appropriate for the measurement: 5 bpm for
PR; 1% for SpO₂ and PPV; 5 mmHg for ART and NIBP; 1 mmHg for EtCO₂; and
1 breath/min for RR. Lower bounds must not exceed upper bounds.
**Apply** commits the settings and updates the Admin controls and selected
alarm preset (**Custom** if limits were changed). **Cancel** discards edits;
**Esc** closes the panel. **Measure now** is an immediate action and starts
an NIBP cuff cycle independently of Apply, using the currently active
simulation settings. Apply other changed settings first if they should affect
the next manual measurement.
### NIBP startup and automatic measurements
**Auto measurement is OFF by default.** The monitor displays `---/---`
(MAP `---`) on startup, and there is **no automatic first measurement**.
A first result appears only after selecting **Measure now**, or after
activating **Automatic measurement** from the NIBP touch menu (also available
in Admin). When Auto is first enabled, a measurement starts immediately;
thereafter the selected interval counts from completion of the previous cycle.
Switching Auto off prevents future scheduled cycles but **does not interrupt
a cycle already under way**. Manual measurements can always be initiated
when no cycle is running, even with Auto OFF. While Auto is OFF, the NIBP
interval bar is empty and the display says `AUTO OFF`.
## Chest compressions (v0.5.4)
@ -290,10 +331,12 @@ NIBP is **red**, with a dedicated value box in the **right-hand numeric column**
The bottom measurement row has three placeholder groups to its left, keeping
NIBP aligned with the standard right-hand numeric column. The previous static
NIBP footer has been removed. In Admin, choose an interval
of **1, 3, 5, 10, 20, 30, or 60 minutes** (default 5). The initial cuff cycle
begins when the simulation starts; subsequent intervals run **from the end of
the last measurement**, not from its beginning. **Measure now** starts an
additional cycle if none is in progress. The small **horizontal progress bar**
of **1, 3, 5, 10, 20, 30, or 60 minutes** (default 5).
**Auto measurement is disabled at startup**, so no reading is shown and no
measurement starts until the instructor activates Auto or selects **Measure now**.
When enabled, the first automatic measurement starts immediately; subsequent
intervals run **from the end of the last measurement**, not from its beginning.
**Measure now** starts a cycle even when Auto is OFF, if none is in progress. The small **horizontal progress bar**
shows the fraction of the waiting interval elapsed; a **vertical 0–200 mmHg
gauge** shows the current cuff pressure during measurement.
@ -577,3 +620,13 @@ monitor. Replaced the on-monitor HR limit text entries with large 5-bpm
**−/+** buttons and independent **ON/OFF** controls; the ECG lead remains a
touch-selectable dropdown. Pending changes still require Apply, and Cancel
leaves the shared parameters unchanged. No signal generation was altered.
### v0.6.0 — Additional touchscreen modules and NIBP manual-first startup
Added touch/click settings panels for SpO₂, ART, CO₂ and the bottom-right
NIBP cell. Their threshold editors use large, unit-specific +/− and ON/OFF
controls; the panels expose relevant waveform/sensor options and stay
synchronized with Admin. NIBP additionally provides interval selection,
manual **Measure now**, Auto ON/OFF and cuff options. Startup no longer
initiates a cuff cycle or shows any NIBP reading; Auto is OFF by default.
Existing NIBP cycle physics and signal quality behavior are unchanged.