Burn Pain Engine Rules Reference

This document summarizes the current rules implemented in the burn pain decision engine. It reflects the logic in heliohost-root/httpdocs/assets/decision-engine.js and the medication data in heliohost-root/httpdocs/data/medications.json as of March 3, 2026.

One medication per ranked option Multi-action top suggestion Pain-band logic Renal dose adjustment Age > 65 rules active

1. Required Baseline Classes

Class Engine Group Medication Choices Rule
Tylenol Tylenol Acetaminophen Add unless contraindicated.
NSAID NSAID Celecoxib or Ketorolac Add one NSAID unless renal risk or other contraindication is present.
GABA GABA Gabapentin or Pregabalin Add one GABA agent unless excluded; do not duplicate class. When older age, renal impairment, delirium risk, or respiratory risk is tagged, prefer pregabalin.

The engine prefers filling missing baseline classes before maximizing a single medication.

2. Pain-Band Rules

Pain Score Top Suggestion Logic
0-1 Suggest opioid weaning first. Opioids are de-escalated before other classes.
<3 If hydromorphone exists and baseline classes are missing, suggest adding missing baseline classes and beginning hydromorphone wean. If baseline classes already exist, suggest keeping the current baseline regimen.
3-5 Moderate/actionable pain range. Complete missing baseline classes first. Selected non-opioid escalation is considered once pain is above 4/10.
6-10 Severe pain range. Top suggestion includes baseline completion, selected non-opioid escalation, and opioid escalation. Hydromorphone CR rebalance is added when the local CR rule is triggered.

3. Hydromorphone Rules

HM CR rebalance rule

Severe-pain opioid escalation

4. Non-Opioid Escalation Rules

Literature basis: ABA burn pain guideline supports ketamine as an opioid-sparing adjunct and alpha-2 agonists for anxiety/withdrawal contexts. The exact hydromorphone trigger and the 0.4 mg/kg/hr severe-pain ketamine start are implemented here as local protocol choices within the subanesthetic infusion range.

5. Renal Adjustment Rules

If the Renal checkbox is selected, the engine applies a conservative renal adjustment consistent with roughly GFR/CrCl 30 or lower for gabapentinoids.

Medication Standard Range Renal Range Used by Engine Output Format
Gabapentin 300-900 mg/day 300-700 mg/day Shown as daily under renal impairment
Pregabalin 50-900 mg/day 50-150 mg/day Shown as daily or BID under renal impairment

Because the UI uses a yes/no renal checkbox rather than numeric eGFR, the engine uses one conservative renal bucket.

6. Exclusion and Penalty Rules

7. Age > 65 Toggle

The engine now applies conservative geriatric ranking penalties when Age > 65 is checked. These are ranking and warning adjustments, not hard age-based dose caps.

Active age-based rules

Evidence basis used for these conservative penalties: hydromorphone geriatric sensitivity from DailyMed labeling, FDA gabapentinoid respiratory warning, dexmedetomidine geriatric bradycardia/hypotension labeling, and the 2023 AGS Beers Criteria for nortriptyline caution.

8. Output Rules

9. Current Medication Dose Steps

Medication Range Step Default when tagged
Hydromorphone IR2-48 mg/day2 mg2 mg/day
Hydromorphone CR3-36 mg/day3 mg6 mg/day
Fentanyl25-300 mcg/hr25 mcg/hr25 mcg/hr
Gabapentin300-900 mg/day300 mg300 mg/day
Pregabalin50-900 mg/day50 mg200 mg/day
Ketamine0.1-0.4 mg/kg/hr0.10.1 mg/kg/hr
Clonidine0.3-0.9 mg/day0.3 mg0.3 mg/day
Nortriptyline10-100 mg/day10 mg10 mg/day
Methadone9-30 mg/day1 mg9 mg/day
Venlafaxine75-300 mg/day75 mg75 mg/day
Duloxetine30-120 mg/day30 mg30 mg/day

When the engine recommends starting a medication, it uses the configured default dose for that medication, adjusted to the active renal range when needed.

10. Medication Reference From Burn_Pain_Drugs_Table_from_v1_v4

This section mirrors the source spreadsheet fields and adds the active engine min/max range where the web model currently uses a dose slider. Source file: /Users/noamgoder/Documents/QI/Burn_Pain_Drugs_Table_from_v1_v4.xlsx.

Class Medication Pain Level Route Starting Dose Max Dose Engine Min-Max Limitations / Contraindications Sedation Rules
TylenolAcetaminophenLowPO/NGT500 mg q6h1 g q6h2000-4000 mg/dayHepatic failureNoGive unless CI
NSAIDCelecoxibLowPO/NGT200 mg BID200 mg BID400 mg/day fixedAKI/renal riskNoGive unless CI or on ketorolac
NSAIDKetorolacModIV7.5 mg q6h7.5 mg q6h30 mg/day fixedAKI/renal riskNoMax 4 days; do not combine with celecoxib
OpioidHydromorphone IRHighPO/IV0.2-0.4 mg q4hPer protocol2-48 mg/dayRespiratory riskYesShort-acting hydromorphone for breakthrough pain
OpioidHydromorphone CRHighPO3 mg BID10 mg TID3-36 mg/dayRespiratory riskYesCombine with hydromorphone IR PRN
OpioidFentanylHighIV50 mcgPer protocol25-300 mcg/hrRespiratory riskYesUncontrollable pain
GABAGabapentinModPO/NGT100 mg TID300 mg TID300-900 mg/day
renal: 300-700 mg/day
Renal adjustmentYesGive one from class unless CI
GABAPregabalinModPO/NGT50 mg BID300 mg/day50-900 mg/day
renal: 50-150 mg/day
Renal adjustmentSource table: No
Active engine: Yes
Give one from class unless CI
NMDAKetamineHigh (Procedural)IV0.2 mg/kg/hr0.4 mg/kg/hr0.1-0.4 mg/kg/hrPsych history cautionYesAdjunctive ketamine option
Alpha-2 AgonistClonidineAdjunctPO/NGT0.1 mg q8h0.3 mg q8h0.3-0.9 mg/dayHypotension/bradycardiaYes1 of class
Alpha-2 AgonistDexmedetomidineAdjunctIVPer protocolPer protocolProtocol onlyHypotension/bradycardiaYes1 of class
SSRI/TCANortriptylineAdjunctPO/NGT10 mg HS100 mg HS10-100 mg/dayQT prolongationYes1 of class
Opioid (Maintenance)MethadoneHighPOPer protocolPer protocol9-30 mg/dayQT prolongationYesCan be combined with hydromorphone IR/CR
SSRI/TCAVenlafaxineLowPO75 mg daily300 mg daily75-300 mg/dayNo1 of class
SSRI/TCAVenlafaxine (NGT)LowNGT37.5 mg BID150 mg BID75-300 mg/dayNo1 of class
SSRI/TCADuloxetineLowPO30 mg daily120 mg daily30-120 mg/dayNo1 of class; for long-term treatment
Sodium Channel BlockerLidocaine infusionUncontrolled painIVNot specified in source tableNot specified in source tableNot active in current web modelNoFor uncontrolled pain; consider lidocaine infusion

11. Source Files