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
This commit is contained in:
@@ -766,6 +766,52 @@
|
||||
"print(f\"FAT (smoothed): {max_fat_smoothed_row['FAT_smoothed']:.3f} kcal/min\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "3521220f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Estimated RMR from data: 1385 kcal/day\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# Step 1: Filter resting phase (usually lowest VO2 or MET values)\n",
|
||||
"rest_phase = df[df['MET'] <= 1.1] # assuming <1.1 MET means rest\n",
|
||||
"\n",
|
||||
"# Step 2: Compute resting metabolic rate\n",
|
||||
"rmr = rest_phase['EE(kcal/day)'].mean()\n",
|
||||
"\n",
|
||||
"print(f\"Estimated RMR from data: {rmr:.0f} kcal/day\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "524e4cba",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Resting phase fuel mix: Fats 32.9%, Carbs 67.1%\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"rest_phase = df[df['RER'] == 0.9] # filter rest data\n",
|
||||
"fat_rest = rest_phase['FAT(%)'].mean()\n",
|
||||
"carb_rest = rest_phase['CARBS(%)'].mean()\n",
|
||||
"\n",
|
||||
"print(f\"Resting phase fuel mix: Fats {fat_rest:.1f}%, Carbs {carb_rest:.1f}%\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
|
||||
+713
-1727
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user