Maxicare Children Hospital

Pediatric Emergency Drug Calculator

Weight-based emergency dose support with Cloudflare D1 storage, print, CSV export, and admin reporting.

Clinical safety: This tool supports trained clinicians only. Verify every dose, concentration, indication, route, and maximum dose against current hospital protocol before administration.

Patient Entry

Weight -- kg
ETT cuffed --
Defib shock --
Fluid bolus --

Calculated Drugs

0 items
Drug Indication Dose Calculated amount Volume Max / Safety
Enter weight to calculate emergency doses.

Admin Access

Default code: 2026. Change it in app.js before publishing.

Cloudflare Pages + D1 Setup

  1. Create the D1 database with wrangler d1 create pediatric-drugs.
  2. Copy the returned database_id into wrangler.toml.
  3. Run wrangler d1 execute pediatric-drugs --file=schema.sql --remote.
  4. Deploy with wrangler pages deploy public --project-name=pediatric-drug-app.
  5. In Cloudflare Pages settings, add a D1 binding named DB and redeploy.

The app calls Cloudflare Pages Functions under /api. The drug library and saved calculations persist in D1.

Medication Library

Default doses are for app setup and must be reviewed by your medical governance team. Edit DRUG_LIBRARY in app.js to match Maxicare protocol.