Skip to content

Vitals - Fix undefined parameters in addMedicationAdjustment - #870

Open
Andx667 wants to merge 2 commits into
KAT-Advanced-Medical:dev-Tomcatfrom
Andx667:fix-medication-adjustment-defaults
Open

Andx667 wants to merge 2 commits into
KAT-Advanced-Medical:dev-Tomcatfrom
Andx667:fix-medication-adjustment-defaults

Conversation

@Andx667

@Andx667 Andx667 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • Give _dose (1), _alphaFactor, _opioidRelief and _opioidEffect (0) defaults in kat_vitals_fnc_addMedicationAdjustment, so the seven call sites that pass only ACE's seven arguments no longer leave them undefined
  • Document the extra parameters in the function header
  • Fix the params list in handleSimpleVitals, where index 7 (dose) was read as _alphaFactor

Fixes #867

IMPORTANT

  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

🤖 Generated with Claude Code

Andx667 and others added 2 commits November 15, 2026 11:12
Seven KAT call sites pass only ACE's seven arguments, leaving _dose,
_alphaFactor, _opioidRelief and _opioidEffect undefined. Give them
defaults, and fix the misaligned params in handleSimpleVitals where
index 7 (dose) was read as _alphaFactor.

Fixes KAT-Advanced-Medical#867

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dleSimpleVitals

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Andx667
Andx667 marked this pull request as ready for review November 15, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vitals - addMedicationAdjustment called with 7 arguments logs "Undefined variable _dose" (wrong blood, incision, bradycardia, kidney)

1 participant