v0.6.9: Actions & Occurrences
This commit is contained in:
parent
5665d68db0
commit
c366c4f1d7
10 changed files with 2083 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Patient Monitor Simulation (PaMSim) — v0.6.8
|
||||
# Patient Monitor Simulation (PaMSim) — v0.6.9
|
||||
|
||||
A Rust/GTK4 patient-monitor simulator with two main windows for teaching on Fedora Linux.
|
||||
|
||||
|
|
@ -6,6 +6,41 @@ A Rust/GTK4 patient-monitor simulator with two main windows for teaching on Fedo
|
|||
> plethysmography and capnography are schematic mathematical approximations. The
|
||||
> simulation has no clinical validation and is not a medical device.
|
||||
|
||||
## Actions & Occurrences (v0.6.9)
|
||||
|
||||
The Admin window now has two tabs: **Direct Mode** (all original controls) and
|
||||
**Actions & Occurrences** (time-based instructor scripts). Select an action and
|
||||
**Trigger action**. Each running script appears in the action history with
|
||||
**Pause / Resume / Stop** and elapsed percentage. **Stop** freezes the
|
||||
physiological values at their current level and cancels any pending rhythm
|
||||
changes; it does **not** restore baseline. **Restore pre-action baseline** is
|
||||
an explicit reset that also stops all running scripts. Different actions can
|
||||
run concurrently; the latest action takes ownership of overlapping parameters.
|
||||
Manually adjusting any parameter in Direct Mode releases that parameter from
|
||||
script control, without stopping unrelated parameters. NIBP remains its own
|
||||
manual/automatic cuff measurement: its *subsequent* readings derive from ART.
|
||||
|
||||
| Action | Scripted behavior |
|
||||
| --- | --- |
|
||||
| Defibrillation | Immediate high-amplitude ECG shock artifact; no rhythm change. |
|
||||
| Defibrillation + rhythm change | Immediate selected rhythm and ECG artifact; instructor-selected ART SYS/DIA reached in 60 s, EtCO₂ target in 30 s **only if effective perfusion exists**. |
|
||||
| Deterioration: Hypoxia | SpO₂ reaches randomized 40–50% (45 ±5) over 300 s. Below 60% saturation, HR gradually declines toward 50/min (or stays lower if initially under 50). |
|
||||
| Deterioration: Shock | Over 600 s, ART MAP trends toward 45 mmHg via proportional SYS/DIA reduction. HR trends to 140 ±5% at 300 s; rhythm becomes AF and HR reaches 160 ±5% at 600 s. SpO₂ quality becomes Poor at MAP ≤59 and None / NO READING at MAP ≤50. |
|
||||
| Chest compressions | Start/Stop and quality (Good/Adequate/Poor/Bad), using the existing Direct Mode CPR model. |
|
||||
| Norepinephrine bolus | At 30 s, ART SYS 200 mmHg / HR 160; at 60 s, SYS 260 / HR 180; original SYS and HR recovered over the next 300 s. |
|
||||
| Too much propofol | Over 60 s, ART reaches 60/45 mmHg and HR ~130 (±5%). |
|
||||
| Lethal propofol | Over 60 s, ART reaches 40/20 mmHg and HR ~150 (±5%), followed by VF. |
|
||||
|
||||
**Scope and assumptions:** Scripts modify the *invasive arterial-pressure* model,
|
||||
not the NIBP settings or initial cuff reading. The ART numeric display may
|
||||
exceed the fixed **0–200 mmHg waveform axis** during norepinephrine simulation;
|
||||
the trace clips at the top as before. Hypoxia bradycardia targets 50/min because
|
||||
only the onset threshold (60% saturation) was specified. The shock quality
|
||||
state “Bad” is mapped to the existing **None / NO READING** sensor-quality
|
||||
state. All actions are illustrative teaching scenarios, not pharmacokinetic
|
||||
or validated clinical models. Audible/visual alarms, the selective 120-second
|
||||
alarm pause, QRS sounds and monitor-side touchscreen menus are unchanged.
|
||||
|
||||
## Header controls: selective alarm pause and settings (v0.6.8)
|
||||
|
||||
Two touch/mouse controls are drawn at the far right of the monitor header:
|
||||
|
|
@ -736,3 +771,12 @@ when pressed, with automatic un-silencing of new/recurrent conditions; visual
|
|||
alarms and QRS tones continue. The global monitor settings window contains
|
||||
QRS and audible-alarm switches, alert preset selection, patient name and
|
||||
attribution, and synchronizes its changes with Admin.
|
||||
|
||||
### v0.6.9 — Actions & Occurrences
|
||||
|
||||
Added a separate Admin tab with eight scripted interventions, configurable
|
||||
post-defibrillation rhythm and targets, pause/resume/stop per active timeline,
|
||||
manual override of individual parameters, overlapping-action ownership and
|
||||
an explicit baseline reset. Synthetic defibrillation ECG artifact and scripted
|
||||
invasive pressure/HR/SpO₂/EtCO₂ progressions are independent of NIBP cuff
|
||||
settings. Existing Direct Mode and monitor menus are retained.
|
||||
|
|
|
|||
Loading…
Reference in a new issue