Skip to content

Feat/hospital info - #5

Merged
kasvith merged 2 commits into
mainfrom
feat/hospital-info
Jan 17, 2026
Merged

Feat/hospital info#5
kasvith merged 2 commits into
mainfrom
feat/hospital-info

Conversation

@kasvith

@kasvith kasvith commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces the ability to store and display a hospital telephone number in the surgery operation note printout, and significantly improves the print layout and styling for operation notes. The main changes include a new database migration and settings UI for the telephone field, updates to the operation note template to display this information, and a comprehensive overhaul of print-specific CSS for a more professional and consistent document appearance.

Operation Note Print Layout & Styling Improvements:

  • Overhauled the surgery-opnote.hbs template to use semantic sections and tables for patient and surgery information, added support to display the hospital telephone number if provided, and improved logical grouping and section headers for better readability and print-friendliness.
  • Added extensive print and document styling utilities to screen.css, including page margin controls, document container classes, table and section stylings, and print-specific adjustments for a polished printed output. Adjusted typography and spacing for headings, lists, and paragraphs for improved print clarity. [1] [2] [3] [4]

Settings & Data Model Enhancements:

  • Added a new database migration (002_telephone_setting) to support a telephone field in app_settings, and registered it in the migration loader. [1] [2]
  • Updated the settings form and schema in the UI to allow users to input and save a hospital telephone number, including form validation, default values, and descriptive help text. [1] [2] [3] [4]
  • Ensured the new telephone field is included in the data passed to the print template.

Add a new telephone field to app settings that displays in the print
template header alongside hospital and unit information.
- Restructure template with proper document wrapper and sections
- Add bordered header section with hospital info
- Convert patient info to table layout (Name, BHT/Date, Age/Ward)
- Add styled surgery title with background
- Add doctors section with proper label styling
- Add section headers for Op Notes and Post-Op Notes
- Add print utilities (page breaks, margins, line heights)
- Add border and spacing utility classes
- Reduce prose margins for tighter print layout
@kasvith
kasvith merged commit 4c96977 into main Jan 17, 2026
2 checks passed
@kasvith
kasvith deleted the feat/hospital-info 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