Commit Graph

18 Commits

Author SHA1 Message Date
bolade dbee12341a Good good progress 2025-11-21 14:15:29 +01:00
bolade 4028b7c626 Good progress 2025-11-21 13:23:38 +01:00
bolade cc9e526fda saving 2025-11-21 12:49:36 +01:00
bolade 79daa8cea1 sighh 2025-11-21 12:41:18 +01:00
bolade 9c1cb1966b Little progress 2025-11-21 12:34:53 +01:00
bolade 29ad9e2265 sighh 2025-11-21 12:15:42 +01:00
bolade 47f0c6f3fb feat: Enhance context generation with new table images for VO2 Max and Heart Rate Zones
- Added functionality to generate VO2 Max and Heart Rate Zones tables in the context_generator.py.
- Integrated graph_generator to create table images with specified data and styles.
- Updated report_generator.py to pass graph_generator to context generation.
- Introduced a new method in graph_generator.py to generate table images with customizable options.
- Created test scripts for Page 5 (RMR and NEAT calculations) and Page 6 (Meal Plan calculations) using actual patient data.
- Updated Jupyter notebook metadata for better environment identification.
2025-11-21 11:38:43 +01:00
bolade 32126a3702 added Vo2 table 2025-11-21 09:23:13 +01:00
bolade 0090b7002c feat: Remove deprecated body fat percentage chart and integrate master chart for report generation
- Deleted the old body fat percentage chart image.
- Updated report generation to load the new body fat percentage master chart for improved accuracy and consistency.
- Refactored context generation to reference the new chart in the report structure.
2025-11-18 17:15:22 +01:00
bolade 7e985c497e feat: Enhance medical report generation with new features and improved data handling
- Added body fat percentage input and optional muscle oxygenation CSV upload in the upload form.
- Implemented TSI chart generation based on muscle oxygenation data.
- Updated report generation to include metabolism and fuel source charts.
- Refactored context generation to eliminate reliance on SECA data, using patient info directly instead.
- Improved error handling and logging for graph generation processes.
- Enhanced HTML templates for better user experience and functionality.
2025-11-18 16:57:39 +01:00
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 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