886484919d
- Heart:
- Raise baseline SVR to 18.5 and derive initial CO/afterload from baseline
- Correct baroreflex direction: SVR increases with sympathetic tone
- Recompute BP via raw diastolic + pulse pressure relationship
- Tighten clamps for physiologic ranges and stabilize resting state
- Add unit test: resting_state_stays_stable
- Bladder:
- Replace steep nonlinear compliance with scaled linear compliance
- Add volume-based abdominal term and nonlinear passive gain
- Reduce active pressure gain and clamp max pressure to 80 cm H2O
- Patient/tests:
- Add multi-organ homeostasis stability integration test (5h sim)
- Assert physiologic bounds across lungs, brain, kidneys, liver,
GI, pancreas, spleen, bladder, esophagus, and spinal cord
- Build/examples:
- Add demo-monitor feature flag and demo_app example
These changes improve physiologic realism and long-run stability while
adding coverage to prevent regressions.
48 lines
927 B
TOML
48 lines
927 B
TOML
[package]
|
|
name = "medicallib_rust"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
description = "MedicalSim core library rewrite in Rust: basic clinical calculations and types."
|
|
authors = ["MedicalSim Team"]
|
|
license = "UNLICENSED"
|
|
readme = "README.md"
|
|
|
|
[lib]
|
|
crate-type = ["rlib", "cdylib"]
|
|
|
|
[features]
|
|
default = []
|
|
serde = ["dep:serde"]
|
|
ffi = []
|
|
demo-monitor = []
|
|
|
|
[dependencies]
|
|
thiserror = "1"
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
tracing = { version = "0.1", optional = true }
|
|
|
|
[dev-dependencies]
|
|
criterion = { version = "0.5", default-features = false, features = ["cargo_bench_support"] }
|
|
tracing-subscriber = { version = "0.3" }
|
|
|
|
[[example]]
|
|
name = "demo_app"
|
|
path = "examples/demo_app.rs"
|
|
required-features = ["demo-monitor"]
|
|
|
|
[[bench]]
|
|
name = "heart"
|
|
harness = false
|
|
|
|
[profile.release]
|
|
lto = true
|
|
codegen-units = 1
|
|
opt-level = 3
|
|
|
|
[profile.dev]
|
|
opt-level = 1
|
|
|
|
[build-dependencies]
|
|
cbindgen = '0.26'
|
|
|