🌙
Generation Health
Shift Health MAP
← GH Home
⚙ Two-Tier Platform Architecture — Shift Health MAP
Layer 1 — Educational Platform
All users · Privacy-first
Available to all workers — no institutional requirement
No external data sharing — session-only browser storage
Individual assessment + 3 PDF reports
CPSBC / CMPA compliant — educational health information tool
Mental health & reproductive data never individually reportable
Regulatory status: Educational Health Information Tool
Layer 2 — Institutional Safety Partnership
Requires dual consent + institutional agreement
Requires BOTH worker consent AND institutional agreement
Aggregate only — minimum N≥20 before any reporting
De-identified data — no individual attribution possible
Quality improvement framing — not surveillance
D5 mental health + D10 reproductive data excluded from Layer 2
D7 substance use — higher consent bar + never individually reportable
🌱 Evidence-Informed · Free · CMA / CPSBC / WHO Aligned

Your shift worker
health snapshot

A free, evidence-informed assessment across 10 areas of shift worker health — built by a physician, designed to educate and empower you.

No account required
Completely private — session data only
3 free downloadable PDF reports
Canada compliant · CPSBC / CMPA
10 domains of shift worker health

10 domains of shift worker health

👤 D1: Profile & Demographics
🕐 D2: Shift Pattern
🌙 D3: Sleep & Circadian Health
❤️ D4: Cardiometabolic Health
💚 D5: Mental Health & Burnout
🦴 D6: Musculoskeletal Health
💊 D7: Medications & Alertness Extended
🏢 D8: Work Exposure & Demands Extended
🗺️ D9: Retention & Career Extended
🌸 D10: Hormonal & Reproductive
Free interactive tools — no assessment required

Explore your shift health

Use these tools independently, or after completing your full assessment for personalised AI responses.

💬
AI-Powered · Personalised
Ask Shift Health AI
Ask anything about shift worker health — what your scores mean, how night shifts affect your heart, which supplements to discuss with your provider, and more.
🆘

You don't have to face this alone

You indicated you may be experiencing thoughts of self-harm or suicide. This assessment has paused. Please reach out — help is available right now.

If you are in immediate danger, call 911 (Canada/US) · 112 (India) or go to your nearest emergency department.

Crisis Support — Canada

📞
988
Canada Suicide Crisis Helpline — call or text 988, 24/7, free, confidential
📞
1-833-456-4566
Talk Suicide Canada — 24/7, free, confidential
💬
Text 45645
Crisis Text Line Canada — text anytime
🌐
crisisservicescanada.ca
Online chat and resources

Crisis Support — India

📞
9152987821
iCall (TISS) — Mon–Sat 8am–10pm
📞
1800-599-0019
Vandrevala Foundation — free, 24/7

Shift Worker Mental Health

🏥
Employee & Family Assistance Program (EFAP)
Contact your HR department or union for your EFAP number

class="dash-title" style="position:relative;">Your Shift Health Snapshot

Assessment complete across all domains. Here's what we found — and your personalised next steps.

Your Domain Overview

📄 Your Free PDF Reports

Three reports generated from your assessment — download each for your own records or to share with your healthcare provider. All processing happens in your browser; nothing is uploaded.

🌙
PDF 1 of 3 — For You
Patient Education Report
Your MAP scores, tier results, personalised next steps, and evidence-informed education for each domain.
🩺
PDF 2 of 3 — For Your Provider
Provider CDS Snapshot
A clinical decision support summary with flags, lab discussion points, and domain scores — bring this to your appointment.
📋
PDF 3 of 3 — Clinic Use
Clinic Workflow Summary
Triage flags, rapid action items, referral triggers, and occupational health documentation template.

Your Priority Action Plan

All actions across every domain — organised by when to act and prioritised by your highest-risk areas first. Tap any domain below to see its full breakdown.

By Domain

Tap any domain for its full step-by-step breakdown.

💾 Auto-saved to this browser

🛠 Shift Health Tools

Interactive tools to explore your results and understand your shift work health risk.

💬
AI-Powered · Personalised to your results
Ask Shift Health AI
Ask anything about your scores, what they mean, which supplements to discuss with your provider, or how shift work affects your health.
🏠
Also from Generation Health
Healthy Home Scanner
As a shift worker, your home environment matters more than most. The Healthy Home Scanner lets you scan household product labels, maps chemical exposures to preventable disease clusters, and generates a physician-ready home health report — all in your browser.
🔍 Open Healthy Home Scanner →
📚 Evidence Base & References

Generation Health is built on peer-reviewed evidence and international clinical guidelines.

🕐 D2 — Shift Pattern & Circadian Disruption
  • Erdem 2025 — Shift work and cardiovascular disease risk meta-analysis. Eur Heart J.
  • Sooriyaarachchi 2022 — Metabolic syndrome and shift work OR 2.17. Nutr Metab Cardiovasc Dis.
🌙 D3 — Sleep & Circadian Health
  • Johns MW. A new method for measuring daytime sleepiness: the Epworth Sleepiness Scale. Sleep. 1991.
  • ICSD-3. International Classification of Sleep Disorders. AASM. 2014.
❤️ D4 — Cardiometabolic Health
  • Lloyd-Jones DM, et al. Life's Essential 8. AHA. Circulation. 2022.
  • Kivimäki M, et al. Shift work and cardiometabolic risk. Lancet. 2015.
💚 D5 — Mental Health & Burnout
  • Kroenke K. PHQ-9 validation. J Gen Intern Med. 2001.
  • Spitzer RL. GAD-7 validation. Arch Intern Med. 2006.

Discuss with your healthcare provider

These results are educational. Download your PDF reports and bring them to your next appointment with your family physician or occupational health provider.

This platform is educational only. It does not diagnose conditions, prescribe treatment, or replace professional medical advice. Generation Health is compliant with CPSBC/CMPA educational platform standards and PIPEDA (Canada) · DPDPA 2023 / DPDP Rules 2025 (India). MAP framework © 2026 Generation Health Inc. All rights reserved.

Evidence Base

Our Evidence Base

Generation Health Shift Health MAP is built on Grade A and B evidence from international clinical guidelines. Every recommendation links to a peer-reviewed source or authoritative guideline.

⚠️ Platform scope and known limitations
Designed for Canadian healthcare shift workers. References CPSBC, CMPA, CMA, AASM, AHA, WHO, and Canadian occupational health guidelines. Domain scores are educational indicators — not validated clinical prediction tests. The MAP framework has not been submitted to peer review as a clinical instrument.

Acknowledged gaps: Intimate partner violence and domestic safety not screened (require in-person assessment). Indigenous health frameworks not represented — a gap Generation Health is committed to addressing through community co-design. STOP-BANG used in validated Yes/No binary form for educational awareness, not diagnosis. PHQ-9 and GAD-7 are validated instruments used for educational awareness only, not clinical diagnosis. D7 substance use data and D10 reproductive data are never included in any aggregate or organisational reporting.
Developed by: Dr. Sumathi Gudapati, CCFP, IFMCP, UBC Clinical Instructor.
Designed in accordance with: CPSBC Ethical Principles for AI in Medicine (October 2024, v1.1) · CMPA 2024 medico-legal guidance on AI · CPSBC/CMPA educational platform standards
Guideline authorities: CMA · CPSBC · CMPA · WHO · AHA · ADA · AASM · NIOSH · WorkSafeBC · EAU · AASM · ICSD · ACOG · Cochrane Collaboration.
Compliance: CPSBC / CMPA educational platform standards · PIPEDA (Canada) · DPDPA 2023 / DPDP Rules 2025 (India).
All content is educational. It does not diagnose conditions or replace professional medical advice.
🍁 CMA / CPSBC
🌍 WHO
🫀 AHA
🔬 ADA
😴 AASM / ICSD
🧬 Cochrane
🏥 ACOG
🕐 D2 — Shift Pattern & Circadian Disruption Grade A
  • 1Erdem M et al. Shift work and cardiovascular disease risk: updated meta-analysis. Eur Heart J. 2025. Grade A
  • 2Sooriyaarachchi P et al. Metabolic syndrome and shift work: systematic review. Nutr Metab Cardiovasc Dis. 2022;OR 2.17. Grade A
  • 3Wright KP Jr, et al. Circadian misalignment and metabolic dysfunction: mechanisms. Curr Biol. 2013. Grade A
  • 4Vyas MV, et al. Shift work and vascular events: systematic review and meta-analysis. BMJ. 2012;345:e4800. Grade A · CDI formula basis
🌙 D3 — Sleep & Circadian Health Grade A
  • 1Johns MW. A new method for measuring daytime sleepiness: the Epworth Sleepiness Scale. Sleep. 1991;14(6):540–545. Validated — ESS
  • 2Chung F, et al. STOP questionnaire: a tool to screen patients for obstructive sleep apnea. Anesthesiology. 2008. Validated — STOP-BANG
  • 3AASM / ICSD-3. International Classification of Sleep Disorders, 3rd ed. 2014. Guideline
  • 4Harma M, et al. Shift work disorder prevalence 27–44% in shift workers. Occup Environ Med. 2018. Grade B
  • 5Shriane AV, et al. Sleep hygiene in shift workers: Delphi consensus. Sleep. 2023. Consensus
❤️ D4 — Cardiometabolic Health (ADAPT Framework) Grade A
  • 1Lloyd-Jones DM, et al. Life's Essential 8: Updating the AHA CV Health Framework. Circulation. 2022. Guideline — LE8
  • 2Kivimäki M, et al. Shift work as a risk factor for cardiovascular disease. Lancet. 2015. Grade A
  • 3Richter G, et al. Type 2 diabetes and shift work: 3-fold risk increase. J Clin Endocrinol Metab. 2020. Grade A
  • 4Goff DC Jr, et al. ACC/AHA Guideline on CV Risk Assessment — Pooled Cohort Equations. JACC. 2014. Guideline — PCE
  • 5Qian J, et al. Meal timing during simulated night work prevents mood vulnerability. PNAS. 2022. Grade B — chrononutrition
💚 D5 — Mental Health & Burnout Grade A
⚠️ PHQ-9 Item 9 Crisis Protocol: Any answer other than "Not at all" to the self-harm item triggers a mandatory non-bypassable crisis screen. This is a patient safety feature — not a diagnostic finding. Canadian crisis lines are displayed (1-833-456-4566 · Text 45645 · 9-8-8). This protocol is implemented per CMPA guidance on PHQ-9 use in educational platforms.
  • 1Kroenke K, Spitzer RL, Williams JBW. The PHQ-9: validity of a brief depression severity measure. J Gen Intern Med. 2001. Validated — PHQ-9
  • 2Spitzer RL, et al. A brief measure for assessing generalized anxiety disorder — GAD-7. Arch Intern Med. 2006. Validated — GAD-7
  • 3Boivin DB, Bherer L. Shift work, burnout, and mental health — review. Sleep Med Rev. 2017. Grade B
  • 4Stimpfel AW, et al. The longer the shifts for hospital nurses, the higher the levels of burnout. Health Aff. 2012. Grade B

D5 data never reportable: Mental health domain data (PHQ-9, GAD-7, burnout, moral distress scores) is categorically excluded from all Layer 2 aggregate reporting. No PHQ/GAD/burnout aggregate data is ever shared with any institution, regardless of consent settings.

🦴 D6 — Musculoskeletal Health Grade B
  • 1de Cordier M, et al. Musculoskeletal disorders in nurses: systematic review. Work. 2018. Grade B
  • 2Stimpfel AW, et al. Nurses' sleep, work hours, and patient safety outcomes. Health Aff. 2012. Grade B
  • 3Lim LL, et al. Pain interference and shift work: fatigue amplification pathway. Occup Environ Med. 2019. Grade B
💊 D7 — Medications, Alertness & Substance Use Grade B
  • 1Bush K, et al. The AUDIT-C: an alcohol screen for primary care patients who drink. Arch Intern Med. 1998. Validated — AUDIT-C
  • 2Drake CL, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013. Grade A — caffeine cutoff
  • 3Liira J, et al. Pharmacological interventions for sleepiness and sleep disturbances in shift work. Cochrane. 2014. Cochrane — melatonin

D7 data never reportable: Substance use domain data is categorically excluded from all Layer 2 aggregate reporting with no exceptions. Higher individual consent bar required before D7 questions are shown.

🏢 D8 — Work Exposure & Demands Grade B
  • 1Aiken LH, et al. Nurse staffing and patient mortality, nurse burnout, and job dissatisfaction. JAMA. 2002. Grade A — staffing ratios
  • 2Liu W, et al. Workplace violence against healthcare workers: meta-analysis. J Nurs Manag. 2019. Grade B — WPV
  • 3Hamric AB, Epstein EG. A health system-wide moral distress consultation service. HEC Forum. 2017. Grade B — moral distress
  • 4WorkSafeBC. Occupational health and safety for healthcare workers — chemical, biological, and physical hazards. BC Workers Compensation Act, s. 234. Regulatory
  • 5Government of Canada. Canada Labour Code, Part II — right to refuse unsafe work; occupational health regulations SOR/86-304. Regulatory
  • 6IARC Monographs. Night shift work classified as Group 2A probable carcinogen (2019). IARC Vol. 124. IARC Grade 2A
  • 7EWG. PFAS in waterproof/DWR-treated healthcare garments — exposure pathway for shift workers. Available: ewg.org/pfaschemicals. Resource
  • 8NIOSH. Hazardous drugs in healthcare settings — antineoplastic agent safe handling. Updated 2023. Guideline
🗺️ D9 — Retention & Career Planning Grade B
  • 1Hayes LJ, et al. Nurse turnover: a literature review. Int J Nurs Stud. 2012;OR 5.68. Grade B · Basis for OR 5.68 industry caveat in Layer 2 reporting.
  • 2Canadian Nurses Association. Nursing workforce data and shortage projections. 2023. National Data
  • 3Rother O, et al. Healthcare worker retention strategies: systematic review. J Adv Nurs. 2020. Grade B
🌸 D10 — Hormonal & Reproductive Health Grade B
  • 1Stocker LJ, et al. Influence of shift work on early pregnancy outcomes — meta-analysis. Occup Environ Med. 2014. Grade B
  • 2Viramgami A, et al. Shift work and male reproductive health — meta-analysis. 2025. Grade B
  • 3Stock D, et al. Rotating night shift work and risk of natural menopause. Human Reproduction. 2019. Grade B
  • 4Garde AH, et al. Pregnancy planning and night work among nurses: Danish register study. Scand J Work Environ Health. 2020. Grade B

D10 data never reportable: Reproductive and hormonal health domain data is categorically excluded from all Layer 2 aggregate reporting with no exceptions.

Designed in accordance with CPSBC Ethical Principles for AI in Medicine (October 2024, v1.1) · CMPA 2024 guidance · PIPEDA (Canada) · BC PIPA.
Privacy Policy · Terms of Use · Privacy Impact Assessment · Evidence Methodology · Accessibility

Report
Switch report:
Layer 2 — Institutional
🏛
Institutional Access — Layer 2
For health authorities and occupational health teams with a signed Generation Health institutional agreement. Aggregate data only — minimum N≥20. Individual worker data is never accessible.
Please enter a valid access code and confirm the agreement.
Try a demo code:
💬 Ask Shift Health AI
Ask anything about your results or shift worker health
🌐 ✓ Set
Hi! I'm your Shift Health assistant. Ask me about your results, what any score means, which supplements to discuss with your provider, or anything about shift worker health. What's on your mind?
What does my ESS score mean?
Which supplements should I discuss with my doctor?
How does night shift affect my heart health?
What is melatonin dosing for shift workers?
🎤 Listening…
Generation Health · Shift Health MAP

Shift Health
Calculator

Enter your shift pattern to estimate your Circadian Disruption Index. Optionally add your lab results for a cardiovascular health picture.

Live State
Formula
Handoff Doc
Shift Inputs
CDI Calculation Breakdown
— run the calculator to see breakdown —
Lab State
Tier & Repro
Circadian Disruption Index (CDI)
CDI = (nights × 0.6) + (nightHrs / 10) + qrScore + consecScore + sjlScore + ctScore

// Component calculations:
nightHrs = nights × hours
qrScore = min(qr × 0.4, 3) // quick returns <11h, capped at 3
consecScore = min(consec × 0.3, 2) // consecutive nights, capped at 2
sjlScore = min(sjl × 0.5, 2.5) // social jetlag hours, capped at 2.5
ctScore = evening→0.8 | intermediate→0.3 | morning→0

// Tier thresholds:
CDI ≤ 5 → Flourishing (#4A8C5C)
CDI ≤ 10 → Nurture (#2D7D7B)
CDI > 10 → Room to Grow (#D4A849)
CVD Risk — Pooled Cohort Equations (PCE, 2013 ACC/AHA)
baseRisk = 1 − S₀₁₀ ^ exp(Σ(coefficients) − meanCoeffSum)

// Shift-adjusted relative risk:
durationMult = years > 5 ? 1 + (0.071 × ((years−5)/5)) : 1.0 // Torquati 2018
sexMult = female → 1.1 | male → 1.0 // Vetter 2016 JAMA
adjustedRR = 1.17 × durationMult × sexMult // Ho 2022 (×1.17 base)
shiftRisk = 1 − (1 − baseRisk) ^ adjustedRR

// Biomarker thresholds (mmol/L inputs converted to mg/dL internally):
TyG = ln[(TG_mgdL × Glu_mgdL) / 2] // <4.68 normal | 4.68–8.46 IR | ≥8.46 high
TG/HDL = (TG_mgdL) / (HDL_mgdL) // M: >2.6 elev, >3.5 high | F: >1.7 elev, >2.5 high
TG → mg/dL: × 88.57 | HDL/TC → mg/dL: × 38.67 | Glu → mg/dL: × 18.02

1 — File Overview

Single-file HTML/CSS/JS application. No external dependencies except Google Fonts (preconnect). No data is transmitted, stored, or persisted — everything runs in browser memory. Session consent is stored in sessionStorage only.

File: shift-health-calculator-v4.html · ~1,550 lines · Generation Health Inc. · March 2026

Public JS namespace: SHCalc (IIFE). Dev namespace: SHDev (IIFE).

2 — Architecture

LayerLocationNotes
Consent gate#consent-gateCheckbox required before calculator loads. Dismissed state stored in sessionStorage('shCalcConsented')
Inputs.calc-inputsAll inputs write to state object and call calculate() on every change
Lab accordion#lab-accordionOptional. PCE inputs. Opens/closes with SHCalc.toggleLabs()
Results section#calc-results-sectionHidden until first calculation. Animated via max-height transition
Quick wins grid#qw-gridRendered by renderResults() from TIERS[tierKey].wins data object. Repro status affects which 6th card shows.
Dev panel#dev-panelHidden by default. Toggle via SHDev.toggle(). Updates on every renderResults() call.

3 — State Object

KeyTypeRangeDescription
nightsint0–31Night shifts per month
hoursint8|10|12|13|24Shift length in hours
yearsfloat0–50Years in shift work
qrint0–20Quick returns <11h per month
consecint0–14Max consecutive nights in a row
sjlint0–6Social jetlag in hours
chronotypestringmorning|intermediate|eveningSelf-reported chronotype
reproStatusstringnone|planning|pregnant|menopauseReproductive status — controls 6th advice card
labsOpenboolLab accordion open state
ageint|null30–79PCE input
sexstringfemale|malePCE equation selector
tcfloat|nullmmol/LTotal cholesterol
hdlfloat|nullmmol/LHDL cholesterol
sbpint|nullmmHgSystolic blood pressure
bpMedsstringyes|noOn antihypertensives
smokerstringyes|noCurrent smoker
diabetesstringyes|noDiabetes diagnosis
tgfloat|nullmmol/LTriglycerides (optional biomarker)
fgfloat|nullmmol/LFasting glucose (optional biomarker)

4 — Public API (SHCalc)

MethodSignatureDescription
begin()begin(skipAnim?)Dismiss consent gate, show calculator
step()step(field, delta)Increment/decrement nights|qr|sjl by delta
setHours()setHours(val, btn)Set shift length. val: 8|10|12|13|24
setChronotype()setChronotype(val, btn)val: morning|intermediate|evening
setConsec()setConsec(val, btn)Set consecutive nights (0–14)
setYearsDirect()setYearsDirect(val)Set years from direct input (0–50)
jumpYears()jumpYears(delta)Add delta to years (e.g. +5, −5)
setReproStatus()setReproStatus(val, btn)val: none|planning|pregnant|menopause
toggleLabs()toggleLabs()Open/close lab accordion
setSex()setSex(val, btn)val: female|male
setBpMeds()setBpMeds(val, btn)val: yes|no
setSmoker()setSmoker(val, btn)val: yes|no
setDiabetes()setDiabetes(val, btn)val: yes|no
labInput()labInput()Fires on any lab field change, triggers PCE recalc if complete
calculateLabs()calculateLabs()Manual PCE calculation trigger
reset()reset()Clear all state and inputs back to defaults
getResult()getResult() → objectReturns lastResult: {cdi, tierKey, tier, nightHrs, annualShifts, cumulativeHrs, cumulYears, years, sjl, chronotype}
prefillFromAssessment()prefillFromAssessment(answers)Accepts PPC/MAP assessment answer object, maps D1/D2 fields to calculator inputs and auto-calculates

5 — prefillFromAssessment() Answer Schema

Accepts an object with d1 and d2 keys, each containing answer strings in format "DOMAIN-Qn-INDEX":

FieldAnswer KeyMapping
nightsd2['D2-Q1']0→0, 1→4, 2→7, 3→11, 4→15 shifts/month
consecd2['D2-Q2']0→0, 1→2, 2→4, 3→6, 4→7 nights
hoursd2['D2-Q4']0→12, 1→12, 2→13 hours
qrd2['D2-Q5']0→0, 1→0, 2→1, 3→3, 4→6 per month
yearsd1['D1-Q1']0→0.5, 1→2.5, 2→7, 3→12, 4→17 years

6 — TIERS Data Structure

Each tier key (fl, nu, rg) contains:

KeyTypeDescription
labelstringDisplay name: Flourishing | Nurture | Room to Grow
iconstringEmoji icon
color / bg / borderhexTier colour system (locked — matches PPC/MAP)
msgstringHero paragraph text
citestringTier-level evidence citation
cta{label, href}CTA button config
wins.tonight{title, body, cite}Tonight card
wins.week{title, body, cite}This Week card
wins.provider{title, body, cite}Ask Your Provider card
wins.schedule{title, body, cite}Your Schedule card
wins.nutrition{title, body, cite}Nutrition & Fuel card
wins.precon{title, body, cite}Preconception/Pregnancy card (shown if reproStatus ≠ none or years ≥ 2)

7 — Reproductive Status Card Logic

reproStatus6th card shown
none + years < 2Hidden
none + years ≥ 2wins.precon (general awareness)
planningwins.precon (preconception framing)
pregnantwins.precon (pregnancy-specific, label changes to "Pregnancy")
menopauseInline menopause card (hardcoded, not from TIERS data)

8 — Evidence Traceability

ClaimSourceNotes
CDI base weight nights × 0.6Vyas et al., 2012 — BMJ23% higher MI/coronary risk framework
SJL >30% CVD risk/hrGamboa Madeira et al., 2021 — J Sleep ResearchUsed for sjlScore weighting
+7.1% CVD per 5yr shift durationTorquati et al., 2018 — Scand J Work Environ HealthdurationMult after yr 5
×1.17 overall CVD shift workHo et al., 2022 — Int J Epidemiol (n=238,661)Base RR for shift adjustment
×1.23 MI-specificVyas et al., 2012 — BMJDisplayed in note, not multiplied separately
×1.1 womenVetter et al., 2016 — JAMAsexMult
PCE coefficientsGoff et al., 2014 — JACCWhite female/male equations used as default per ACC/AHA guidance
TyG 4.68 cutoffGuerrero-Romero et al., 2010 — JCEM96.5% sensitivity vs euglycaemic clamp
TyG 8.46 cutoffMavraganis et al., 2025 — Diabetes Obes MetabCVD risk threshold
TG/HDL sex-specificSalazar 2012 AmJCardiol; von Bibra 2017 HormMetabResM >2.6/3.5; F >1.7/2.5 mg/dL
Early menopause 25% higher riskStock et al., 2019 — Human Reproduction≥20 months rotating nights
≤1 night/wk in pregnancyGarde et al., 2020 — Scand J Work Environ HealthInternational scheduling consensus
Caffeine 6h cutoffDrake et al., 2013 — J Clin Sleep MedReduces slow-wave sleep
Meal timing in night workQian et al., 2022 — PNAS (n=19)26% reduction in depression-like mood
Melatonin shift workLiira et al., 2014 — Cochrane; Sletten et al., 2020 — SleepTiming and dosing

9 — Integration with PPC / Shift Health MAP

The calculator exposes SHCalc.prefillFromAssessment(answers) for embedding in assessment flows. Pass the full answer object from the parent platform — the function extracts D1 and D2 keys and populates all relevant fields automatically.

To embed in an iframe: <iframe src="shift-health-calculator-v4.html" width="640" height="900" frameborder="0"></iframe>

To read the result after calculation: SHCalc.getResult() returns the full lastResult object. For cross-frame communication use postMessage — Dinesh/Akhil to implement the listener on the parent platform side.

10 — CPSBC / CMPA Compliance Checklist

  • ✅ No diagnostic language — all outputs framed as "educational estimates"
  • ✅ No treatment recommendations — supplements framed as "discuss with your provider"
  • ✅ No prescriptive commands — GDM screening framed as "worth discussing" not "request"
  • ✅ PCE limitations disclosed (US-derived, White equations default, PREVENT named)
  • ✅ Shift RR limitations disclosed inline with CVD result
  • ✅ Consent gate with explicit educational-only framing required before use
  • ✅ Footer disclaimer on every result view
  • ✅ Melatonin: "discuss with provider before starting" on every instance
  • ✅ Pregnancy fasting protocol explicitly contraindicated

11 — Known Limitations / Future Work

  • PCE: PREVENT equations not yet implemented (coefficients require peer-reviewed precision confirmation)
  • TyG and TG/HDL chips only display when both TG and fasting glucose are entered
  • CDI formula is custom-weighted, not a validated clinical instrument — disclose clearly
  • 24h shift option included but no specific CDI adjustment for >16h shifts (Cochrane 2023 data) — consider adding penalty modifier in v5
  • Melatonin IR caveat (AHA 2025): "emerging data" framing — update if AHA publishes full statement
  • reproStatus does not modify CDI calculation — it only changes advice cards. A future version could weight the CDI differently for pregnant users.

12 — Colour System (Locked)

TierHexCSS var
Flourishing#4A8C5C--flourishing
Nurture#2D7D7B--nurture / --teal-deep
Room to Grow#D4A849--rtg
Educational#A09080warm taupe — used for dev/meta elements
Precon/Repro#E8C0D4 / #FDF0F5Rose — not a tier colour, context only
Enter your shift details below. Results appear as you type — nothing is saved or uploaded.
✓ We've pre-filled this from your assessment responses — adjust any values if needed.
Night shifts per month
How many night shifts do you work each month? A night shift includes hours between midnight and 6am.
0
shifts / month
Typical shift length
How long is a typical shift? Include any overtime you regularly work.
Years working shifts
Total years in any shift work role. Includes all past jobs.
years
Quick returns / month
Times with less than 11 h between shifts. e.g. finish at 7am, back at 5pm.
0
Max consecutive nights in a row
What's the most night shifts you work back-to-back? Tap to select.

Social jetlag (hours)
How many hours later do you wake up on days off vs. workdays? e.g. 7am on workdays, 10am off = 3 hrs. Each hour of social jetlag is linked to >30% higher cardiovascular risk.
0
hours difference
Your natural body clock (chronotype)
Without work commitments, when do you naturally feel most alert? Evening chronotype in shift workers independently elevates cardiometabolic risk.
Educational use only. CVD risk figures below use the 2013 ACC/AHA Pooled Cohort Equations, which were derived from US populations and may not fully represent all Canadian or international patients. The shift-adjusted figure applies a 23% relative risk increase from Vyas et al., 2012 (BMJ) — this is not a validated shift-specific equation. Discuss all results with your provider before making any health decisions.
Age (years)
PCE validated age 40–79 · PREVENT age 30–79
Sex assigned at birth
Used for published PCE equations · not a value judgment
Total Cholesterol (mmol/L)
mmol/L · normal: 2.0–5.2
HDL Cholesterol (mmol/L)
mmol/L · optimal: >1.0 (F) / >0.9 (M)
Systolic BP (mmHg)
top number · optimal: <120
On BP medication?
Current smoker?
Diabetes diagnosis?
Optional — shift-work specific biomarkers
If you have these values, adding them unlocks your TyG index (insulin resistance marker) and TG:HDL ratio — both specifically elevated in shift workers.
Triglycerides (mmol/L)
optimal: <1.7 mmol/L
Fasting Glucose (mmol/L)
optimal: <5.6 mmol/L
10-year CVD Risk
Based on your lab values alone (ACC/AHA PCE)
Shift-Adjusted Estimate
+23% relative risk for shift workers · Vyas 2012
Your Circadian Load Estimate
Circadian Load Tier
CDI Score
Flourishing Nurture Room to Grow
Night hours / month
hours of night work each month
Shifts / year
estimated night shifts annually
Cumulative lifetime night exposure
hours
0 years 10+ years = elevated risk threshold
Your quick wins — leave with answers
⚕ The Circadian Disruption Index (CDI) is an educational scoring formula informed by Vyas et al. 2012 (BMJ), Torquati et al. 2018 (Scand J Work Environ Health), Gamboa Madeira et al. 2021 (J Sleep Research), and Wanigasinghe et al. 2025 (Br J Nutr). CVD risk estimates use the 2013 ACC/AHA Pooled Cohort Equations (PCE; Goff et al., 2014 JACC), the current standard with real-world c-stat 0.78. Note: The 2023 AHA PREVENT equations are newer (race-free, age 30–79, includes eGFR/BMI) but systematically estimate lower risk than PCE; disclosure provided in results. Shift-adjusted figures: ×1.17 overall CVD (Ho et al., 2022 Int J Epidemiol, n=238,661); ×1.23 MI (Vyas et al., 2012 BMJ); +7.1%/5 yrs duration (Torquati 2018); ×1.1 women (Vetter et al., 2016 JAMA). TyG cutoffs: Guerrero-Romero 2010 JCEM (4.68 IR) and Mavraganis 2025 DOM (8.46 CVD). TG:HDL sex-specific cutoffs: Salazar 2012 AmJCardiol; von Bibra 2017 HormMetabRes. None of these outputs are clinical diagnoses. Discuss with your provider.