🏠 Home

PatientPower

Glossary
๐Ÿ“š
Reference ยท Both Deployments
Glossary & Feature Inventory
Side-by-side reference for production patient-power and test3 (rooms POC). Updated 2026-05-25.

๐Ÿ›๏ธ Production patient-power

patientpower.xyz
  • Single index.html (15,619 lines)
  • Tables + tabbed sections
  • Live production โ€” git auto-deploy
  • No auth, no cloud sync

๐Ÿงช test3 (rooms POC)

beyondmychart.com
alias: rad-fudge-37b7e3.netlify.app
  • 9 rooms โ†’ 22+ portal pages
  • Avatar-dominant + orbital chips
  • Active development โ€” drag-and-drop deploy
  • Supabase auth + per-item cloud sync + sharing
Rule: test3 is a parallel deployment, NOT a replacement. Never cross-deploy. They are two separate layouts intentionally running side-by-side.

๐Ÿ—๏ธArchitecture

Hub Both
Landing page. Production: single page with anchored sections. test3: 9 room-orbits arranged radially.
Room test3
Top-level area on the hub: Vault, My Health, Cost Tracker, Records I/O, Community, My Care, PowerCoach, Practitioner Marketplace, Intelligence Platform.
Portal test3
Sub-page accessed from a room (vault.html, xrays.html, family-history.html, etc.).
Orbit test3
Circular UI pattern: large avatar at center, action chips arranged around it.
Sub-orbit test3
Second-level orbit within a portal (e.g., 8 sub-orbits inside My Health: Doctors, Scan & Analyze, etc.).

๐ŸŽจUX & interaction

Avatar-dominant UX test3
Every portal centers a large clickable avatar. Tap to talk to that portal's coach.
Coach Both
Context-specific AI assistant. Examples: VAULT-01 (records), ATLAS-01 (whole-person), MENTAL-01 (mental health), ACTIONS-01 (next steps).
Coach chip test3
"๐Ÿ’ฌ Ask Coach" button in top-bar of every portal.
3-chip pattern test3
Every room hub has the same 3 chips: ๐Ÿ“Ž Attach ยท ๐Ÿ’ฌ Ask Coach ยท โ˜๏ธ Synced.
Sync chip test3
Supabase auto-sync status indicator. Green = synced. Replaces top-bar Home link.
Push-and-hold test3
Voice UX: hold the mic to record, release to transcribe via Whisper.
Attach photo Both
Vision-AI upload for label / document / pill-bottle analysis.

๐Ÿ—„๏ธBackend & data

localStorage keys Both
Both apps namespace per category. Production: patient_meds, patient_imaging, etc. test3: pp_test3_meds_v1, pp_test3_surgeries_v1, etc.
Auto-sync test3
pp_supabase.js patches localStorage.setItem to mirror writes to the cloud automatically.
Per-item merge test3 ยท Wave 3.1
Sync conflict resolution: arrays union by id with latest updatedAt winning; objects union by top-level key with cloud winning.
Magic-link auth test3
Supabase passwordless email login. No password stored anywhere.
Physician sharing test3 ยท Wave 3.2
Invite token grants read-only access to selected categories via physician-view.html?t=<token>. Permissions stored as JSONB.
Community backend test3 ยท Wave 3.3
6 Supabase tables: groups, group_members, posts, reactions, challenges, participants.

๐ŸŽคAI & voice

Whisper STT test3
OpenAI Whisper via /.netlify/functions/transcribe. Replaced unreliable browser SpeechRecognition.
Anthropic chat Both
Claude Sonnet 4.6 via /.netlify/functions/chat. Powers every coach.
TTS test3
Browser speechSynthesis for audio reply.
Vision analysis Both
Image upload โ†’ AI extraction of pills, labels, lab reports.
Avatar-as-mic test3
Voice modal overlays page's avatar on mic button with state ring: blue idle / red listening / green speaking.

๐ŸฉบClinical patterns

Severity heuristic test3 ยท imaging
Keyword classifier from AI-analysis text. Flagged: urgent / critical / severe / mass / fracture / hemorrhage. Moderate: significant / abnormal / stenosis. Normal: unremarkable / WNL.
Risk clustering test3 ยท family
Auto-flags any condition appearing in 2+ relatives OR with onset before age 60.
Claim workflow test3 ยท cost
pending โ†’ approved โ†’ denied โ†’ paid. Click-to-cycle status badges.
Appeal workflow Production ยท cost
Submitted โ†’ Approved โ†’ Denied โ†’ Appeal Filed โ†’ Appeal Won / Appeal Denied.
MRI safety Both ยท devices
Unknown / Safe / Conditional / Unsafe flag. Critical for imaging decisions.
Follow-up highlight Both ยท surgeries
Chip colored by proximity: yellow if โ‰ค14 days, blue if further out, gray if past.
Replacement overdue Both ยท devices
Red โš ๏ธ flag if past due, yellow โฐ if โ‰ค30 days away.
Adherence streak test3 ยท Wave 2.1
Daily-dose log on meds + supps with ๐Ÿ”ฅ streak counter.

๐ŸŒŠWave releases (test3 versioning)

Wave 1.x
Auth + sync foundation.
Wave 2.1
Medication / supplement adherence streaks.
Wave 2.2
Imaging severity tags + filter pills + reviewed toggle.
Wave 2.3
Family history depth: status, cause-of-death, hereditary risk.
Wave 2.4
Cost claim workflow: pending โ†’ approved โ†’ denied โ†’ paid.
Wave 2.5
Surgeries + devices vault tabs. Backfilled with follow-up date + MRI safety + replacement overdue (2026-05-25).
Wave 3.1
Per-item cloud merge logic.
Wave 3.2
Physician sharing โ€” token URL + read-only viewer page.
Wave 3.3
Community cloud backend โ€” 6 Supabase tables.
โœ“ present โ€” absent * partial / with notes

๐Ÿ”Identity & access

FeatureProductiontest3
Profile (name, DOB, sex, blood, height)โœ“โœ“
Emergency contactโœ“โœ“
Magic-link authโ€”โœ“
Cloud syncโ€”โœ“
Multi-device convergence (per-item merge)โ€”โœ“

๐Ÿ“‹Health records

FeatureProductiontest3
Vitals โ€” BP / HR / weight / temp / SpOโ‚‚ / glucoseโœ“โœ“
Medicationsโœ“โœ“ + adherence streaks
Supplements (brand, form, dose, freq)โœ“โœ“ + adherence streaks
Allergies (severity, reaction)โœ“โœ“
Conditionsโœ“โœ“
Symptoms journalโœ“โœ“
Labs (HIGH / LOW flags)โœ“* basic
Appointmentsโœ“โœ“

๐ŸฉปImaging

FeatureProductiontest3
Image type + body region + clinical questionโœ“โœ“
AI analysis (vision)โœ“โœ“
Severity tagging (flagged / moderate / minor / normal)โ€”โœ“
Severity filter pillsโ€”โœ“
Reviewed / unreviewed toggleโ€”โœ“
Follow-up flagโ€”โœ“

๐Ÿ‘ชFamily history

FeatureProductiontest3
Relative + conditionโœ“โœ“
Status (living / deceased)โœ“โœ“
Cause of death*โœ“
Hereditary risk (low / moderate / high)*โœ“
Age of onset*โœ“
Auto risk-clustering (2+ relatives OR onset <60)โ€”โœ“

๐Ÿ’ฐCost tracker / claims

FeatureProductiontest3
Cost entries (amount, category, provider)โœ“โœ“
Insurance covered amountโœ“โœ“
Claim IDโœ“โœ“
Status workflowโœ“ appeal-focusedโœ“ pending-focused
Appeal states (Filed / Won / Denied)โœ“โ€”
YTD / monthly / category analytics tabs*โœ“
6-month trend barsโ€”โœ“

๐ŸฉนSurgeries

FeatureProductiontest3
Date + name + hospital + surgeonโœ“โœ“
Procedure typeโœ“โœ“
Status (Completed / Scheduled / Cancelled)โœ“โœ“
Anesthesiaโœ“โœ“
Reasonโœ“โœ“
Complications (with red flag)โœ“โœ“
Follow-up date (with upcoming highlight)โœ“โœ“

๐Ÿ”ŒDevices

FeatureProductiontest3
Type + model + date + statusโœ“โœ“
Manufacturerโœ“โœ“
Serial #โœ“โœ“
Body locationโœ“โœ“
MRI safety flagโœ“โœ“
Replacement date (overdue flag)โœ“โœ“
Recall tracking (active / watch / resolved)โœ“โœ“

๐Ÿ“คRecords I/O & sharing

FeatureProductiontest3
JSON exportโœ“โœ“
JSON importโœ“โœ“
Print emergency cardโœ“โœ“
QR vCardโœ“โœ“
Share with physician (token URL)โ€”โœ“
Read-only physician view pageโ€”โœ“
Revocable share permissionsโ€”โœ“

๐ŸคCommunity

FeatureProductiontest3
Support groupsโ€”โœ“ 5 seeded
Postsโ€”โœ“
Reactions (support / celebrate / relate)โ€”โœ“
Challenges + check-ins with streaksโ€”โœ“ 3 seeded
Cloud-backed (Supabase)โ€”โœ“

๐Ÿค–AI & coaches

FeatureProductiontest3
Page-context coach* limitedโœ“ per portal
Voice (push-and-hold)โ€”โœ“
Whisper STTโ€”โœ“
TTS replyโ€”โœ“
Vision (pill bottle / label scan)โœ“โœ“
Avatar-as-mic UIโ€”โœ“

๐Ÿ†•Test3-only portals

Rooms and portals that exist only in test3:

PowerCoach
Strategy + advocacy coaching room.
Practitioner Marketplace
Practitioner sign-ups, browse, profiles (public-only).
My Care
Care-team management (was "Care Team").
Intelligence Platform
Research hub (was "Research & Knowledge"), stats banner + suggestions.
Your Doctors
Sub-orbit in My Health room.
Scan & Analyze
Vision AI portal (8th sub-orbit in My Health).
Know Your Rights
Patient advocacy reference.
Bug Report
Feedback channel.
Cost Tracker
Financial portal with analytics tabs.
Symptom Journal
Symptom log with mental-health + atlas coach extensions.

๐Ÿงชtest3 file map

PurposePath
Hub (landing)index.html
Vault portalvault.html
Imagingxrays.html
Family historyfamily-history.html
Cost trackercost-tracker.html
Communitycommunity.html
Practitioner roompractitioner.html
Physician viewerphysician-view.html
Auth libraryjs/pp_auth.js
Sync libraryjs/pp_supabase.js
Voice libraryjs/pp_voice.js
Sharing libraryjs/pp_share.js
Community libraryjs/pp_community.js
Chat function (Anthropic proxy)netlify/functions/chat.js
Transcribe function (Whisper proxy)netlify/functions/transcribe.js
Deploy mirrornetlify/
This glossaryglossary.html

๐Ÿ›๏ธProduction file map

PurposePath
Single-file appPRODUCTION/patient-power/index.html (15,619 lines)
Chat functionPRODUCTION/patient-power/netlify/functions/chat.js

โš™๏ธInfrastructure

AspectProductiontest3
URLpatientpower.xyzbeyondmychart.com (alias: rad-fudge-37b7e3.netlify.app)
Netlify sitepatientpower-portalrad-fudge-37b7e3
Supabase projectโ€”ijlesuzpahhsxtkqxvzz
Deploy methodgit auto-deploydrag-and-drop netlify/
Functionschat (Anthropic)chat + transcribe
API keys (env)ANTHROPIC_API_KEYANTHROPIC + OPENAI
CORS preflighthandled before POSThandled before POST

๐ŸŽฏOpen gaps

Features that exist in one app but not the other (parity backlog):

test3 โ†’ production parity

  • Lab HIGH / LOW flag rendering
  • Surgical type / status / anesthesia / reason / complications โ€” DONE 2026-05-25
  • Device manufacturer + serial # + body location + recall โ€” DONE 2026-05-25

production โ†’ test3 parity

  • Imaging severity triage
  • Family risk clustering
  • Cost analytics tabs
  • Adherence streaks
  • Cloud sync + multi-device
  • Physician sharing
  • Community
  • Voice / Whisper

Both

  • Onboarding overlay (test3 pending)
  • Validation sweep
  • Demo-mode seeding
FEEDBACK
Beta Tester Feedback syncing…
Highlight anything → pick a type → post your feedback
How to give feedback: Highlight any text or feature, click the "+ Comment" bubble, pick a type, and post. Feedback is tagged with the page you posted from so we can triage by area.
Replying to
+ Comment