Feat/hospital info - #5
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
surgery-opnote.hbstemplate 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.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:
002_telephone_setting) to support atelephonefield inapp_settings, and registered it in the migration loader. [1] [2]telephonefield is included in the data passed to the print template.