Skip to content

drankush/MIRACLE-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MIRACLE-WebApp ๐ŸŒŸ

Pediatric CMR Reference Calculator

SCMR 2026 Open Source License: MIT MIRACLE API Surge Demo

A web-based calculator demonstrating the application of MIRACLE API for pediatric cardiac MRI reference values. Part of SCMR 2026 Innovative Open Source Submission.

Live Demo: miracle-app.surge.sh

Surge Status

๐ŸŽฏ SCMR 2026 Open Source Innovation Submission

This web application demonstrates the practical implementation of the MIRACLE API for calculating z-scores and percentiles for pediatric cardiac MRI measurements. While this demo focuses on volumetric references, the MIRACLE API offers many more endpoints for comprehensive cardiovascular MRI analysis.

๐Ÿ”— View Full API Documentation

โœจ Features

  • ๐Ÿ“ Input cardiac measurements in preferred units (cm/in, kg/lb)
  • ๐Ÿงฎ Automatic BSA calculation using Haycock formula
  • ๐Ÿ“Š Instant z-scores and percentile calculations
  • ๐Ÿ“ˆ Reference ranges (3rd, 50th, 97th percentiles)
  • ๐Ÿ–จ๏ธ Print-friendly reports with patient details

๐Ÿ› ๏ธ How It Works

API Integration

The application makes REST calls to two MIRACLE API endpoints:

const ATRIAL_API_URL = 'https://script.google.com/macros/s/...';
const VENTRICULAR_API_URL = 'https://script.google.com/macros/s/...';

Calculating Z-Scores

const response = await fetch(
    `${VENTRICULAR_API_URL}?domain=Pediatric_Ventricle&parameter=${param}&gender=${gender}&measured=${value}&ht_cm=${ht_cm}&wt_kg=${wt_kg}`
);

Print Function

Generates a professional report with:

  • Patient demographics
  • BSA calculation
  • Measurement results
  • Reference ranges
function printResults() {
    const { ht_cm, wt_kg } = convertToMetric();
    const bsa = calculateBSA(ht_cm, wt_kg);
    // Creates printable report
}

๐ŸŽฏ Use Cases

  1. Clinical Practice

    • Quick reference value lookup during CMR reporting
    • Standardized reporting with z-scores
    • Printable reports for patient records
  2. Research

    • Batch processing of measurements
    • Standardized data collection
    • Easy integration with research workflows
  3. Education

    • Teaching tool for trainees
    • Understanding normal ranges
    • Demonstrating the impact of BSA indexing

๐Ÿ”ฎ Available Endpoints

This demo showcases only volumetric measurements. The MIRACLE API offers many more endpoints including:

  • Flow measurements
  • Myocardial strain
  • T1/T2 mapping
  • And more...

Visit MIRACLE API Documentation for the complete list.

๐Ÿš€ Getting Started

  1. Clone the repository
  2. Open index.html in a browser
  3. Enter patient details and measurements
  4. Click "Calculate Z-scores"
  5. Print or save results as needed

๐Ÿ“„ License

MIT License - feel free to use and modify for your needs.

๐Ÿ™ Acknowledgments

  • SCMR Open Source Initiative

๐Ÿ“ง Contact

For questions about:


Made with โค๏ธ for the CMR Community

About

Demonstrating practical application of MIRACLE API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages