Drug Check
Category: Healthcare Standards
Node id: drug-check
Maturity: simulated
Risk tier: C
Standards: HIPAA, GDPR, SOC2
SIMULATED medication safety checks backed by a small built-in demo drug database (~5 drugs) — NOT a comprehensive clinical drug-safety source; do not rely on it for production prescribing decisions (BR-4/CDS-004). Covers drug interactions, allergy screening, dosage validation, and duplicate therapy detection over the demo dataset.
What it does
- Drug-drug interaction detection with severity classification
- Allergy cross-reference screening
- Dosage validation with renal/hepatic/pediatric adjustments
- Duplicate therapy detection across drug classes
- Comprehensive multi-check safety review
- Severity-filtered reporting (mild/moderate/severe/critical)
Use cases
- Medication reconciliation during hospital admission
- Prescription safety checks at point of order entry
- Polypharmacy risk assessment for elderly patients
- Allergy-aware medication selection
Runtime
- Performance tier:
fast
Input ports
| Name | Type | Required | Description |
|---|---|---|---|
medications | json | Yes | List of medication names |
allergies | json | No | Patient allergy list |
medication | text | No | Single medication name (for dosage check) |
dose | number | No | Prescribed dose (for dosage check) |
unit | text | No | Dosage unit (default: mg) |
patient | json | No | Patient data for dosage adjustments |
Output ports
| Name | Type | Required | Description |
|---|---|---|---|
result | json | No | Drug check result data (interactions, allergy matches, dosage checks, duplicates, safety status) |
has_critical | boolean | No | Whether critical issues exist |
success | boolean | No | Operation success flag |
Settings
Basic
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| Operation | operation | enum | No | interaction | interaction, allergy, dosage, duplicate, comprehensive | Drug check operation to perform |
Advanced
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| Min Severity | min_severity | string | No | moderate | Minimum interaction severity to report |
Errors
| Code | Description |
|---|---|
MEDICATIONS_REQUIRED | No medications list provided in inputs |
MEDICATION_REQUIRED | Single medication name required for dosage check |
UNSUPPORTED_OPERATION | Operation not recognized |
Runtime notes
- Output shape under 'result' varies by operation: interaction has interactions/total_count/severity_counts, allergy has allergy_matches/safe_to_prescribe, dosage has dosage_check/is_within_range, comprehensive has nested results
- has_critical is a top-level boolean — use it for branching without parsing result internals
- Dosage check uses 'medication' + 'dose' inputs (singular), not the 'medications' array
- Comprehensive mode runs interaction + allergy + duplicate checks and returns an overall safety_status (safe/review/warning/critical)
See Build any workflow for how to put nodes together and Ports, types and data flow for how port types connect.
¿Algo no está claro? Envíe sus comentarios sobre la documentación por correo electrónico..