soma.cell

Programs: medical

14 verified Soma programs in the medical domain. Each page shows the source and what soma check, soma test, soma verify and soma run printed on it.

ProgramLinesUses
Blood bank — an ABO-incompatible transfusion is unrepresentable, and129a memory invariant, match, try / catch, lambdas
Lab chain of custody — a sample whose custody broke can never be reported, by construction A forensic toxicology or pathology result is only as trustworthy as the unbroken chain of custody behind it125a state machine, try / catch
Vaccine cold-chain — a temperature breach is PERMANENT, not "probably fine"126a state machine, a memory invariant, try / catch, lambdas
Controlled substance cabinet — the narcotic count must reconcile, always133a memory invariant, try / catch
Dialysis — fluid removal is capped, and a session always ends with the148a state machine, a memory invariant, try / catch
Infusion pump — the programmed rate can never exceed the drug's hard limit ("guardrails") A nurse programming an IV pump types the rate by hand113a memory invariant, try / catch, lambdas
Isolation precautions — a contagious patient cannot be discharged to a155a state machine, a memory invariant, try / catch
Medication administration — the "five rights" enforced by barcode, no scan no dose Wrong-patient and wrong-drug medication errors are among the most common causes of inpatient harm135a state machine, match, try / catch
Prescription interaction lockout — a lethal drug combination is refused142a memory invariant, try / catch, lambdas
Sepsis bundle — antibiotics never go in before the blood cultures are147a state machine, a memory invariant, try / catch
Autoclave sterilization — a failed cycle can never release instruments159a state machine, a memory invariant, try / catch, lambdas
Surgical safety checklist — no incision before time-out, and the count146a state machine, a memory invariant, match, try / catch
Organ allocation — one organ, one recipient, and no taking it back once145a state machine, try / catch
Emergency triage — the sickest patient is seen first, by construction123a memory invariant, try / catch