Clinical Decision Support System patterns for drug interaction checking, dose validation, NEWS2/qSOFA scoring, and EMR alert integration — patient safety critical.
npx clawhub@latest install healthcare-cdss-patternsHealthcare CDSS Patterns is a development pattern library for building Clinical Decision Support Systems that integrate into EMR workflows. It provides typed, pure-function modules for drug interaction checking, dose validation, and clinical scoring — all designed to meet patient-safety-critical standards with zero tolerance for false negatives. Install this skill to get AI-guided implementation of CDSS components that block unsafe orders, surface escalation alerts, and maintain a full audit trail.
npx clawhub@latest install healthcare-cdss-patternsClick the Install button at the top of this page for one-click setup
The checkInteractions function checks a new drug against all current medications and the patient's allergy list, returning severity-sorted alerts. Interaction pairs are enforced as bidirectional, and cross-reactive allergies always produce critical-severity blocks.
The validateDose function enforces weight-based (mg/kg), age-adjusted, renal-adjusted, and absolute maximum dose rules. Critically, if a required parameter such as patient weight is missing, the function blocks the order rather than silently passing it.
The calculateNEWS2 function computes the National Early Warning Score 2 from seven vital sign inputs per Royal College of Physicians specification, returning total score, risk category, and escalation guidance such as urgent ICU review.
Alerts are classified as Critical, Major, or Minor. Critical alerts render as non-dismissable blocking modals requiring a documented override reason; Major alerts require acknowledgement; Minor alerts are informational only. Override reasons are stored in the audit trail.
Includes a ready-made test suite structure that enforces 100% pass rate across all interaction pairs (including reverse-direction), missing-parameter blocking, and graceful handling of malformed input. A single missed interaction is treated as a patient safety event.
Explicit documentation of dangerous implementation mistakes — including optional safety checks, toast-based critical alerts, silent error catching, and skipping weight validation — helps teams avoid common CDSS pitfalls that create patient risk.
Intercept dangerous drug-drug interactions and dose violations at the point of prescribing, blocking submission until the clinician documents an override reason or corrects the order.
Automatically compute NEWS2 scores from charted vital signs and surface high-risk results with escalation guidance, enabling timely clinical review for deteriorating patients.
Flag drugs that are cross-reactive with a patient's documented allergies as critical-severity alerts, preventing accidental administration of contraindicated medications.
Enforce reduced dose caps for patients with impaired renal function or paediatric age brackets, blocking orders that exceed adjusted maximums and suggesting safe dose ranges.
DrugInteractionPair model (not included — must be supplied separately)npx clawhub@latest install healthcare-cdss-patternsLog in to write a review
No reviews yet. Be the first to share your experience!