Single-file app for rendering the questionnaire, computing biotype‑normalized scores, and exporting JSON/CSV for Ridges or other AI agents.
ModeCode2 attempts left
1) Paste Questionnaire Template
Paste your master template rows (CSV or TSV). Required columns: id, text, biotype, optional weight. Biotypes must be one of: Undermethylation, Overmethylation, Copper Overload, Pyroluria. (No Gut / Toxic Overload in v1 per spec.)
Tip: You can copy/paste directly from Google Sheets or Excel—headers required. If a question maps to multiple biotypes, duplicate rows with the same id and different biotype.
Response scaleNormalize by max possible per biotype Show Weights
Load your template to render questions.
Scores
Scoring = Σ(response × weight) per biotype. Response is the simple patient answer from the dropdown (e.g., 0–1 for Yes/No, or 0–3 for severity). Weight is your objective, data‑derived coefficient per question × biotype (from your frequency/lab associations). If Normalize is ON: divide by (maxResponse × Σ weights for that biotype) and ×100 to make bars comparable across biotypes.
Config — Weights (Optional)
If you have a compiled weight table from cohort analysis, paste JSON here as an object keyed by question id → per‑biotype weight map. Any missing weight falls back to 1.
(Safe to re‑apply anytime.)
Session I/O
Use this to move data between staging and production or to archive a filled questionnaire. State includes template, weights, responses, and settings.