Skip to main content
Prompts Comprehensive Health Metrics Web Calculator

developer coding user risk: medium

Comprehensive Health Metrics Web Calculator

Build a comprehensive health metrics calculator using HTML5, CSS3, and JavaScript with step-by-step input forms for BMI, body fat percentage, ideal weight, calorie needs, and healt…

  • Policy sensitive
  • Human review

PROMPT

Build a comprehensive health metrics calculator with HTML5, CSS3 and JavaScript based on medical standards. Create a clean, accessible interface with step-by-step input forms. Implement accurate BMI calculation with visual classification scale and health risk assessment. Add body fat percentage calculator using multiple methods (Navy, Jackson-Pollock, BIA simulation). Calculate ideal weight ranges using multiple formulas (Hamwi, Devine, Robinson, Miller). Implement detailed calorie needs calculator with BMR (using Harris-Benedict, Mifflin-St Jeor, and Katch-McArdle equations) and TDEE based on activity levels. Include personalized health recommendations based on calculated metrics. Support both metric and imperial units with seamless conversion. Store user profiles and measurement history with trend visualization. Generate interactive progress charts showing changes over time. Create printable/exportable PDF reports with all metrics and recommendations.

EXPECTED OUTPUT

Format
html
Constraints
  • complete working application
  • clean accessible interface
  • support metric and imperial units
  • include all specified calculations and features

SUCCESS CRITERIA

  • Build comprehensive health metrics calculator using HTML5 CSS3 JavaScript
  • Create clean accessible step-by-step interface
  • Implement accurate BMI calculation with visual scale and risk assessment
  • Add body fat percentage calculator with multiple methods
  • Calculate ideal weight ranges using multiple formulas
  • Implement calorie needs with BMR and TDEE calculations
  • Include personalized health recommendations
  • Support metric and imperial units with conversion
  • Store user profiles and measurement history
  • Generate interactive progress charts
  • Create printable PDF reports

FAILURE MODES

  • Inaccurate implementation of medical formulas
  • Incomplete feature set
  • Poor accessibility or UI
  • Missing unit conversions
  • No data storage or persistence
  • Non-functional charts or exports

CAVEATS

Missing context
  • Exact mathematical formulas for all calculators.
  • Data storage mechanism (e.g., localStorage, IndexedDB).
  • Charting library (e.g., Chart.js) for trends and visualizations.
  • PDF generation library (e.g., jsPDF).
  • Accessibility standards (e.g., WCAG level).
  • Responsive design requirements for different devices.
Ambiguities
  • Does not provide exact formulas or equations for named methods (e.g., Navy body fat, Hamwi ideal weight).
  • Unclear what 'BIA simulation' entails.
  • Undefined criteria for 'personalized health recommendations' and 'health risk assessment'.
  • Activity levels for TDEE not specified.
  • 'Visual classification scale' for BMI lacks detail on implementation.

QUALITY

OVERALL
0.70
CLARITY
0.90
SPECIFICITY
0.85
REUSABILITY
0.30
COMPLETENESS
0.75

IMPROVEMENT SUGGESTIONS

  • Include a section with exact formulas and equations for all calculations.
  • Specify predefined activity levels for TDEE (e.g., sedentary, lightly active).
  • Define thresholds and logic for health recommendations and risk assessments.
  • Add placeholders for libraries: 'Use Chart.js for charts and jsPDF for reports'.
  • Structure as a template with sections for easy modification of features.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR DEVELOPER