v0.6.1 — Alarm-only monitor touch menus

The ECG, SpO₂, ART, CO₂ and NIBP touch menus now edit only lower/upper
alarm limits. Removed ECG lead, signal/sensor, waveform and all NIBP
measurement controls from monitor-side menus. These remain available in
Admin, including manual NIBP measurement and Auto ON/OFF. No physiological
model, alarm evaluation or NIBP startup behavior was changed.
This commit is contained in:
GABRIEL Sebastian 2026-11-12 19:08:11 +01:00
commit 89c1c8f396
9 changed files with 878 additions and 368 deletions

View file

@ -1,4 +1,4 @@
# Patient Monitor Simulation (PaMSim) — v0.6.0
# Patient Monitor Simulation (PaMSim) — v0.6.1
A Rust/GTK4 patient-monitor simulator with two main windows for teaching on Fedora Linux.
@ -23,79 +23,49 @@ 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.9)
## Monitor touchscreen: alarm limits only (v0.6.1)
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. The same interaction now applies to the other channels.
Hiding
the ECG channel also disables its touch target.
Tap or click the **waveform or numerical readout** of ECG, SpO₂, ART or CO₂
to open that channel's alarm-limit panel. For NIBP, tap the **rightmost
quarter of the bottom measurement row**. The other three bottom-row groups
are reserved for future measurements and remain non-interactive. The panels
are available in fullscreen and retain a **black background, very light-grey
text, and 0.8-pixel borders and dividers**, in the style of the main monitor.
The menu offers:
**Only alarm thresholds can be modified from the monitor-side menus.**
No keyboard is required: every lower/upper limit has large **− / +** controls
with a parameter-specific increment and an independent **ON/OFF** control.
Unset limits remain disabled. The lower limit cannot exceed the upper limit.
- **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.
Each limit has large **− / +** touch buttons that adjust the value in
**5 bpm steps** (range 0–240), plus an **OFF** button to disable it.
When disabled, an **ON** button restores its previous value (or 60 bpm
for an unset lower limit and 100 bpm for an unset upper limit).
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 menu uses light-grey text instead of the ECG waveform color and
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. 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 |
| Touch area | Available alarm limits | Increment |
| --- | --- | --- |
| 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** |
| ECG | HR | 5 bpm |
| SpO₂ | SpO₂; pulse rate (PR) | 1% SpO₂; 5 bpm PR |
| ART | SYS; MAP; DIA; PPV | 5 mmHg pressure; 1% PPV |
| CO₂ | EtCO₂; respiratory rate (RR) | 1 mmHg EtCO₂; 1 breath/min RR |
| NIBP | SYS; MAP; DIA | 5 mmHg |
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 threshold changes and synchronizes the Admin window.
Changing a threshold sets the alarm preset to **Custom**. **Cancel** or
**Esc** discards the draft changes.
**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.
ECG lead selection, SpO₂ signal quality and sensor status, ART waveform shape,
capnogram shape, and all NIBP measurement controls are **Admin-only**. This
includes NIBP measurement interval, Auto ON/OFF, **Measure now**, simulated
failed reading, and cuff placement. None of these physiological or technical
parameters is changed by the monitor-side alarm menus.
### 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`.
**Auto measurement is OFF by default.** On startup the monitor shows
`---/---` (MAP `---`) and no measurement is initiated. To obtain a reading,
select **Measure now** in Admin, or enable **Automatic NIBP measurement**
there. The first automatic cycle begins immediately after enabling Auto;
subsequent measurement intervals count from completion of the prior cycle.
Disabling Auto stops further scheduled measurements without interrupting a
cycle already in progress. Manual measurement remains possible while Auto
is off. The interval bar is empty and the monitor displays `AUTO OFF`
whenever automatic measurements are disabled.
## Chest compressions (v0.5.4)
@ -630,3 +600,11 @@ 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.
### v0.6.1 — Alarm-only monitor touch menus
The ECG, SpO₂, ART, CO₂ and NIBP touch menus now edit only lower/upper
alarm limits. Removed ECG lead, signal/sensor, waveform and all NIBP
measurement controls from monitor-side menus. These remain available in
Admin, including manual NIBP measurement and Auto ON/OFF. No physiological
model, alarm evaluation or NIBP startup behavior was changed.