Skip to content

feat: add Date of Admission and Date of Discharge fields to surgeries - #6

Merged
kasvith merged 2 commits into
mainfrom
feat/dod-and-doa
Jan 17, 2026
Merged

feat: add Date of Admission and Date of Discharge fields to surgeries#6
kasvith merged 2 commits into
mainfrom
feat/dod-and-doa

Conversation

@kasvith

@kasvith kasvith commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add DoA (Date of Admission) and DoD (Date of Discharge) fields to surgery records
  • New database migration 003_doa_dod with proper SQLite syntax (separate ALTER TABLE statements)
  • Form fields in surgery create/edit dialog with date pickers
  • Display DoA/DoD in surgery card view and print template
  • Improved date validation in formatDate/formatDateTime utils
  • Fix VS Code CSS validation false positives for @page selectors

Test plan

  • Run pnpm dev and verify app starts without migration errors
  • Create a new surgery and set DoA/DoD dates
  • Verify dates display correctly in surgery card view
  • Print a surgery op-note and verify DoA/DoD appear in the header table
  • Edit an existing surgery and modify DoA/DoD dates

Add DoA and DoD tracking for surgeries with:
- Database migration for new columns (003_doa_dod)
- Form fields in surgery create/edit dialog
- Display in surgery card view
- Print template support
- Improved date validation in formatDate/formatDateTime utils
- VS Code CSS validation settings fix for @page selectors
@kasvith
kasvith merged commit a816ac8 into main Jan 17, 2026
2 checks passed
@kasvith
kasvith deleted the feat/dod-and-doa branch January 22, 2026 05:40
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.

1 participant