Skip to content

feat(shock-index): add Shock Index calculator (#16)#28

Merged
vgpastor merged 1 commit intomainfrom
feat/shock-index
Mar 28, 2026
Merged

feat(shock-index): add Shock Index calculator (#16)#28
vgpastor merged 1 commit intomainfrom
feat/shock-index

Conversation

@vgpastor
Copy link
Copy Markdown
Contributor

Summary

  • Add Shock Index (SI) calculator: FC / TAS with severity classification (Normal, Normal-alto, Elevado, Muy elevado)
  • Add Modified Shock Index (MSI): FC / TAM with its own severity ranges
  • Add SIPA (pediatric age-adjusted) with thresholds by age group (1-3y, 4-6y, 7-12y, 13-17y)
  • Calculate TAM (Mean Arterial Pressure) automatically
  • 3 slider inputs (FC, TAS, TAD) + adult/pediatric toggle with age selector
  • Detailed results panel showing SI, MSI, TAM, and SIPA threshold
  • Clinical info sections: description, formulas, interpretation, applications, limitations
  • 6 clinical references (Allgower, Koch, Liu, Acker, Schroll, Mutschler)
  • 13 new tests covering all severity ranges, TAM formula, MSI, and SIPA thresholds

Closes #16

Test plan

  • dart format --set-exit-if-changed . — 0 changes
  • flutter analyze — 0 issues
  • flutter test — 200 tests passing (13 new)
  • Visual verification on device
  • Test autodeploy to production stores after merge

🤖 Generated with Claude Code

Implement Shock Index (SI = FC/TAS), Modified Shock Index (MSI = FC/TAM),
and pediatric age-adjusted SIPA with severity classification. Includes
3 input sliders (FC, TAS, TAD), adult/pediatric toggle, detailed results
panel, clinical info sections and 6 references.

13 new tests covering SI severity ranges, TAM formula, MSI classification,
and SIPA thresholds by age group.

Closes #16

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vgpastor vgpastor merged commit 7df68ff into main Mar 28, 2026
1 check passed
@vgpastor vgpastor deleted the feat/shock-index branch March 28, 2026 19:46
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.

feat(shock-index): Añadir Índice de Shock

1 participant