/* Parent → Health & Nurse: medications, allergies, nurse visits, immunizations. */ function HealthScreen({ onNav, onBack }) { const allergies = [ { n:'Peanuts', sev:'Severe', bg:'var(--danger-100)', fg:'var(--danger-600)', icon:'nut' }, { n:'Penicillin', sev:'Moderate', bg:'var(--warning-100)', fg:'var(--warning-600)', icon:'pill' }, ]; const meds = [ { n:'Albuterol Inhaler', dose:'As needed for asthma', when:'Kept in nurse\u2019s office', icon:'wind', tint:'var(--info-100)', ic:'var(--info-500)' }, { n:'Children\u2019s Claritin', dose:'10 mg · once daily', when:'Seasonal · through Jun', icon:'pill', tint:'var(--blue-100)', ic:'var(--blue-500)' }, ]; const visits = [ { r:'Headache — rested 20 min, returned to class', when:'May 28 · 1:15 PM', by:'Nurse Adams', icon:'thermometer' }, { r:'Scraped knee at recess — cleaned & bandaged', when:'May 14 · 10:40 AM', by:'Nurse Adams', icon:'bandage' }, ]; return (
{/* allergy alert hero */}
ON FILE FOR {jlChild().name.toUpperCase()}
2 allergies flagged
Shared with staff and the cafeteria
jlToast('Request sent to school nurse', { icon:'send' })} style={{ fontSize:12, fontWeight:700, color:'var(--blue-500)', cursor:'pointer' }}>Update}>Allergies
{allergies.map((a,i) => (
{a.n}
{a.sev}
))}
{jlT('l_medications')}
{meds.map((m,i) => ( {i>0 && }
{m.n}
{m.dose} · {m.when}
))}
{jlT('l_nurse_visits')}
{visits.map((v,i) => ( {i>0 && }
{v.r}
{v.when} · {v.by}
))}
{/* immunization status */}
Immunizations up to date
Last reviewed Aug 2025 · compliant
); } Object.assign(window, { HealthScreen });