Commit Graph

30 Commits

Author SHA1 Message Date
bolade 83f50882e2 Add HTML templates for medical report generator with navigation, upload, edit, and preview functionalities
- Created base template with navigation and layout structure
- Implemented upload.html for patient data and file uploads
- Developed edit.html for editing calculated metrics
- Added preview.html for displaying generated report previews
- Enhanced user experience with Tailwind CSS styling
2025-11-17 17:15:44 +01:00
bolade 4f97691ff9 feat: Improve report generation performance by optimizing data processing and enhancing CSV handling for spirometry tables 2025-11-08 19:49:57 +01:00
bolade 0a735d88c8 feat: Refactor report generation to use async methods and improve error handling; enhance spirometry table extraction with better CSV formatting 2025-10-04 10:35:02 +01:00
bolade 358898b7db feat: Enhance context generation and report generation services with improved data handling and structure 2025-10-04 10:25:10 +01:00
bolade d66f3fd18b Add compiled Python bytecode for report generator and spirometry table extractor services
- Generated bytecode for report_generator.py and spirometry_table_extractor.py
- These changes include the compiled .pyc files in the __pycache__ directory
- The report generator service handles the generation of medical reports from uploaded files
- The spirometry table extractor service extracts data from PDF files and processes it for further analysis
2025-10-04 10:07:40 +01:00
bolade 14dc64234d feat: Update patient name extraction and enhance page context generation in PageGenerator 2025-10-03 22:58:20 +01:00
bolade 7a67aac678 feat: Add PageGenerator class for generating report pages with patient data 2025-10-03 22:16:45 +01:00
bolade 11ee6b192f feat: Implement report generator service for medical reports
- Added ReportGeneratorService to handle generation of medical reports from uploaded files.
- Implemented methods for processing Pnoe CSV data, generating graphs, and calculating analysis metrics.
- Integrated Jinja2 for HTML report generation with customizable templates.
- Added functionality to convert HTML content to PDF using Playwright.
- Ensured proper directory structure for saving generated graphs and reports.
2025-10-03 21:41:00 +01:00
bolade 1d8136d6ad Refactor code structure for improved readability and maintainability 2025-10-03 19:19:39 +01:00
bolade 6b2c61a48e Implement code changes to enhance functionality and improve performance 2025-09-29 17:55:04 +01:00
bolade f52729d703 Add graph generation functionality and update charts
- Implemented GraphGenerator class for generating various physiological charts.
- Added methods for generating respiratory, fuel utilization, VO2 pulse, VO2 breath, fat metabolism, recovery, body fat percentage, body composition, and spirometry charts.
- Included functionality to save charts as PNG files or return them as base64 strings.
- Updated existing chart images in the graphs directory.
2025-09-29 11:45:09 +01:00
bolade 54e0189301 Enhance table styling and layout in report pages
- Updated table header and cell classes to center-align text for better readability in page_19.html.
- Adjusted padding and margins in page_7.html for improved layout and visual consistency.
- Reduced spacing in various sections to create a more compact and organized appearance.
2025-09-29 11:17:32 +01:00
bolade a20f21d288 Refactor page_7.html for improved layout and responsiveness
- Enhanced the structure of the Spirometry Assessment and Respiratory sections for better readability.
- Centered images and added max-width constraints to ensure proper scaling on different devices.
- Improved text formatting for clarity and consistency.
2025-09-29 10:42:23 +01:00
bolade d12add210b Refactor code structure for improved readability and maintainability 2025-09-29 09:54:05 +01:00
bolade a44a763640 Refactor code structure for improved readability and maintainability 2025-09-29 09:17:11 +01:00
bolade 604ef375aa Refactor footer context generation and enhance chart image styling for improved layout 2025-09-26 22:32:39 +01:00
bolade 894fbbcee3 Add header and footer templates for report generation
- Created a footer template with contact information and page number.
- Created a header template displaying patient details including name, age, height, weight, and focus.
2025-09-26 21:42:02 +01:00
bolade 1ae1ec2369 Add requirements.txt, tailwind configuration, and initial truth report HTML
- Created requirements.txt with a comprehensive list of dependencies.
- Added tailwindconfig.js for Tailwind CSS configuration.
- Introduced truth_report.html with structured content and Tailwind CSS styling for a visually appealing layout.
2025-09-26 16:37:46 +01:00
bolade 4a61dd7898 Refactor code structure for improved readability and maintainability 2025-09-24 10:36:38 +01:00
bolade 845a7ca099 Add body fat analysis graph for page 1 2025-09-24 09:57:15 +01:00
bolade 4753276778 Add initial HTML structure for report generation
- Created page_1.html with layout including ISHP branding, main content, and dotted pattern.
- Developed page_2.html featuring a Table of Contents with sections for Lung Analysis, Cardio Metrics, Fuel Utilization, Local Muscle Activity, Training Recommendations, Next Steps, and Glossary.
- Added placeholder files for pages 3 to 19 to facilitate future content development.
2025-09-24 08:35:29 +01:00
bolade 804b3fb10e Add report generation with PDF output and respiratory chart 2025-09-23 21:31:15 +01:00
bolade d7437ff975 scaled y axis 2025-09-23 20:36:24 +01:00
bolade 65438bbc6e smoothed the graph 2025-09-23 19:20:36 +01:00
bolade b0846a73d0 added more graphs 2025-09-23 19:08:30 +01:00
bolade 0a08dd13df Added 2 more graphs 2025-09-23 18:47:10 +01:00
bolade ad5aaac2fb got the second graph 2025-09-23 18:17:06 +01:00
bolade e6d2350174 Split the kcal by percentage 2025-09-23 17:18:10 +01:00
bolade a27ffa4023 Implement feature X to enhance user experience and fix bug Y in module Z 2025-09-23 17:14:36 +01:00
bolade 09f3f38546 Implement code changes to enhance functionality and improve performance 2025-09-23 15:53:15 +01:00