Repository navigation
Expand file tree
/
Copy pathdocumentation.html
More file actions
275 lines (265 loc) · 48 KB
/
Copy pathdocumentation.html
File metadata and controls
275 lines (265 loc) · 48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Vibe Rounds: project overview for reviewers</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,500;0,700;1,400&family=Public+Sans:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root{--paper:#F1F4F6;--surf:#fff;--ink:#0E1A24;--soft:#4B5C68;--line:#D3DBE0;--person:#2A4BA8;--person-t:#E5EBFA;--pop:#9A5A08;--pop-t:#FAEBD3;--gate:#1F6B4F;
box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--paper:#0E1620;--surf:#15212C;--ink:#E6EDF2;--soft:#93A5B2;--line:#26384A;--person:#8EA6F2;--person-t:#1A2748;--pop:#E3A24A;--pop-t:#3A2A10;--gate:#5CCB9E}}
:root[data-theme="dark"]{--paper:#0E1620;--surf:#15212C;--ink:#E6EDF2;--soft:#93A5B2;--line:#26384A;--person:#8EA6F2;--person-t:#1A2748;--pop:#E3A24A;--pop-t:#3A2A10;--gate:#5CCB9E}
html{color-scheme:light dark;scroll-padding-top:24px;-webkit-text-size-adjust:100%}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 'Public Sans',system-ui,sans-serif;overflow-x:hidden}
.w{max-width:1000px;margin:0 auto;padding:0 max(20px,env(safe-area-inset-left)) 0 max(20px,env(safe-area-inset-right))}
#mb{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:calc(12px + env(safe-area-inset-left,0px));z-index:30;font:600 14px 'Public Sans',sans-serif;padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surf);color:var(--ink);cursor:pointer}
#mb:hover{border-color:var(--person)}#mb:focus-visible{outline:3px solid var(--person);outline-offset:2px}
#side{position:fixed;top:0;left:0;bottom:0;width:260px;max-width:82vw;z-index:20;background:var(--surf);border-right:1px solid var(--line);padding:calc(64px + env(safe-area-inset-top,0px)) 20px 24px;display:flex;flex-direction:column;gap:4px;transform:translateX(-100%);visibility:hidden;transition:transform .25s ease,visibility 0s .25s;overflow-y:auto}
#side.open{transform:none;visibility:visible;transition:transform .25s ease}
#side a{color:var(--soft);text-decoration:none;padding:9px 12px;border-radius:6px;font-size:15px}
#side a:hover,#side a:focus-visible{background:var(--paper);color:var(--ink)}
#ov{position:fixed;inset:0;z-index:10;background:rgba(0,0,0,.35);display:none}#ov.open{display:block}
@media(prefers-reduced-motion:reduce){#side,#side.open{transition:none}}
a{color:var(--person)}a:focus-visible{outline:3px solid var(--person);outline-offset:2px}
h1,h2,h3{font-family:'Spectral',Georgia,serif;line-height:1.15;margin:0}
h1{font-size:clamp(34px,6vw,58px);font-weight:700;letter-spacing:-.02em;max-width:16ch}
h2{font-size:clamp(26px,3.6vw,34px);font-weight:700;margin-bottom:12px}
h3{font-size:20px;font-weight:700;margin-bottom:6px}
section{padding:44px 0;border-top:1px solid var(--line)}
.lead{font-family:'Spectral',Georgia,serif;font-size:clamp(18px,2.4vw,22px);line-height:1.5;max-width:60ch;color:var(--soft);margin:18px 0 0}
p{max-width:68ch;margin:0 0 12px}.soft{color:var(--soft)}
header.hero{padding:76px 0 40px}
.facts{display:flex;flex-wrap:wrap;gap:8px 22px;margin:26px 0 0;padding:0;list-style:none;font-size:14px;color:var(--soft)}
.facts b{color:var(--ink);font-weight:600}
.facts details.repos>summary{display:inline-flex;justify-content:flex-start;gap:6px}
.facts details.repos>summary::after{font-size:16px}
.facts details.repos>.dbody{margin-top:4px}
.fig{background:var(--surf);border:1px solid var(--line);border-radius:10px;padding:14px;margin:22px 0}
.fig svg{display:block;width:100%;height:auto}.fig text{font-family:'Public Sans',sans-serif;fill:var(--ink)}
.cap{font-size:13.5px;color:var(--soft);margin:8px 2px 0}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.col{background:var(--surf);border:1px solid var(--line);border-top:4px solid var(--person);border-radius:8px;padding:18px 20px}
.col.pop{border-top-color:var(--pop)}
.col h3{color:var(--person)}.col.pop h3{color:var(--pop)}
ul{margin:6px 0 12px;padding-left:20px}li{margin:4px 0}
.tbl{overflow-x:auto;margin:14px 0}
table{border-collapse:collapse;width:100%;min-width:620px;font-size:14.5px;background:var(--surf);border:1px solid var(--line)}
th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-weight:600;background:var(--paper)}
.p{color:var(--person);font-weight:600}.q{color:var(--pop);font-weight:600}
.pill{display:inline-block;font-size:12.5px;padding:1px 9px;border-radius:99px;background:var(--person-t);color:var(--person);font-weight:600}
.pill.pop{background:var(--pop-t);color:var(--pop)}.pill.g{background:color-mix(in srgb,var(--gate) 18%,transparent);color:var(--gate)}
.steps{counter-reset:s;list-style:none;padding:0}
.steps li{counter-increment:s;position:relative;padding:0 0 0 44px;margin:0 0 14px}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--paper);display:grid;place-items:center;font-weight:600;font-size:14px}
.note{border-left:4px solid var(--gate);background:var(--surf);padding:12px 16px;border-radius:0 8px 8px 0;margin:16px 0;max-width:72ch}
.warn{border-left-color:var(--pop)}
.g6{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 14px}.g6 div{background:var(--surf);border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:14.5px}.g6 b{display:block;color:var(--person)}
.lc{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:14px 0}.lc div{background:var(--surf);border:1px solid var(--line);padding:14px 16px}.lc div+div{border-left:0}.lc div:first-child{border-radius:8px 0 0 8px}.lc div:last-child{border-radius:0 8px 8px 0}.lc b{font-family:'Spectral',Georgia,serif;font-size:19px;display:block;color:var(--person)}
@media(max-width:720px){.g6{grid-template-columns:1fr 1fr}.lc{grid-template-columns:1fr}.lc div+div{border-left:1px solid var(--line);border-top:0}.lc div:first-child{border-radius:8px 8px 0 0}.lc div:last-child{border-radius:0 0 8px 8px}}
details>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
details>summary::-webkit-details-marker{display:none}
details>summary::after{content:"+";font:600 24px/1 'Public Sans',sans-serif;color:var(--person);flex:none}
details[open]>summary::after{content:"\2013"}
summary:focus-visible{outline:3px solid var(--person);outline-offset:3px;border-radius:6px}
summary h2,summary h3{margin:0}
details.sec>.dbody{margin-top:16px}
details.sub{background:var(--surf);border:1px solid var(--line);border-radius:8px;margin:12px 0}
details.sub>summary{padding:12px 16px}
details.sub>.dbody{padding:0 16px 10px}
details.sub.inner{background:var(--paper)}
details.sub .tbl table{background:var(--surf)}
.ctl{display:flex;gap:8px;margin-top:14px}.ctl button{font:500 13px 'Public Sans',sans-serif;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);cursor:pointer}
.ctl button:hover{border-color:var(--person)}
footer{padding:30px 0 50px;border-top:1px solid var(--line);font-size:13.5px;color:var(--soft)}
@media(max-width:720px){.two{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
</style>
</head>
<body>
<button id="mb" aria-expanded="false" aria-controls="side">☰ Menu</button>
<div id="ov"></div>
<nav id="side" aria-label="Sections"><a href="#lanes">Two lanes</a><a href="#stages">Five stages</a><a href="#stage3">Stage 3: Socratic</a><a href="#stage4">Stage 4: Guided discovery</a><a href="#ccos">CCOS: how it is built</a><a href="#stage5">Stage 5: Research</a><a href="#courses">Courses and literacy</a><a href="#trust">Trust design</a><div class="ctl"><button type="button" id="ea">Expand all</button><button type="button" id="ca">Collapse all</button></div></nav>
<header class="hero"><div class="w">
<h1>Vibe Rounds: AI that questions, not answers</h1>
<p class="lead">A paradigm for using AI to deepen clinical reasoning, built as two connected lanes: person-centred tools that train how one case is thought through, and one population-centred app that speeds up how many cases are explored at once.</p>
<ul class="facts">
<li><b>Author</b> Dr. Avinash Kumar Gupta</li><li><b>Coined</b> June 2026</li><li><b>Website</b> <a href="https://avi33tbtt.github.io" target="_blank" rel="noopener noreferrer">avi33tbtt.github.io</a></li><li><details class="repos"><summary><b>Repos reviewed</b></summary><div class="dbody"><a href="https://github.com/avi33tbtt/avi33tbtt.github.io" target="_blank" rel="noopener noreferrer">avi33tbtt.github.io</a>, <a href="https://github.com/avi33tbtt/VibeRounds-Clinical-Analytics-App" target="_blank" rel="noopener noreferrer">VibeRounds-Clinical-Analytics-App</a></div></details></li><li><b>Status</b> education and research use, not clinical decision support</li></ul>
</div></header>
<main class="w">
<div class="note" id="summary" aria-label="Three-line summary"><p style="margin:0 0 6px"><b>What it is.</b> AI tools and prompts that make clinical learners do the reasoning (the AI asks, the human commits), in two lanes: person-centred tools for one case and a population-centred analytics app.</p><p style="margin:0 0 6px"><b>What exists.</b> Browser-based Socratic tools, 57+ CCOS prompt modules, an evidence-mapping workflow (worked ASV example), a FHIR analytics app and three courses.</p><p style="margin:0"><b>Status.</b> For education and research, not clinical decision support. The benefits are design hypotheses; no learner outcome study has been reported yet.</p></div>
<section id="lanes">
<h2>The project in one picture</h2>
<p>Everything except the Clinical Analytics app is <span class="p">person-centred</span>: one learner, one case, one chain of reasoning at a time. The Analytics app is <span class="q">population-centred</span>: cohorts, prevalence, trends and care gaps across many patients. Both end at the same place: a human decides.</p>
<div class="fig"><svg viewBox="0 0 900 330" role="img" aria-label="Two lanes: person-centred learning and population-centred analytics, both ending at a human decision">
<defs><marker id="a" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0L10 5L0 10z" fill="currentColor"/></marker></defs>
<g style="color:var(--person)"><text x="10" y="26" font-size="15" font-weight="600" style="fill:var(--person)">Person-centred lane: one case, one reasoner (Stages 3 and 4)</text>
<g font-size="13"><rect x="10" y="40" width="150" height="62" rx="8" fill="var(--person-t)" stroke="currentColor"/><text x="85" y="67" text-anchor="middle">Socratic tools</text><text x="85" y="86" text-anchor="middle" font-size="11.5" style="fill:var(--soft)">commit before hints</text>
<rect x="215" y="40" width="150" height="62" rx="8" fill="var(--person-t)" stroke="currentColor"/><text x="290" y="67" text-anchor="middle">57+ CCOS modules</text><text x="290" y="86" text-anchor="middle" font-size="11.5" style="fill:var(--soft)">bias, DDx, evidence</text>
<rect x="420" y="40" width="150" height="62" rx="8" fill="var(--person-t)" stroke="currentColor"/><text x="495" y="67" text-anchor="middle">Pipelines</text><text x="495" y="86" text-anchor="middle" font-size="11.5" style="fill:var(--soft)">e.g. 1→12→9→21→35</text></g>
<path d="M162 71H213M367 71H418" stroke="currentColor" stroke-width="2" marker-end="url(#a)"/></g>
<g style="color:var(--pop)"><text x="10" y="196" font-size="15" font-weight="600" style="fill:var(--pop)">Population-centred lane: many patients (Stage 5)</text>
<g font-size="13"><rect x="10" y="210" width="150" height="62" rx="8" fill="var(--pop-t)" stroke="currentColor"/><text x="85" y="237" text-anchor="middle">FHIR data</text><text x="85" y="256" text-anchor="middle" font-size="11.5" style="fill:var(--soft)">files, HAPI, synthetic</text>
<rect x="215" y="210" width="150" height="62" rx="8" fill="var(--pop-t)" stroke="currentColor"/><text x="290" y="237" text-anchor="middle">Cohort + analytics</text><text x="290" y="256" text-anchor="middle" font-size="11.5" style="fill:var(--soft)">5 readings, V1 to V5</text>
<rect x="420" y="210" width="150" height="62" rx="8" fill="var(--pop-t)" stroke="currentColor"/><text x="495" y="237" text-anchor="middle">LLM assistant</text><text x="495" y="256" text-anchor="middle" font-size="11.5" style="fill:var(--soft)">reads, never calculates</text></g>
<path d="M162 241H213M367 241H418" stroke="currentColor" stroke-width="2" marker-end="url(#a)"/></g>
<g style="color:var(--gate)"><rect x="680" y="108" width="205" height="108" rx="10" fill="none" stroke="currentColor" stroke-width="2.5"/><text x="782" y="150" text-anchor="middle" font-size="16" font-weight="600" style="fill:var(--gate)">Human decides</text><text x="782" y="173" text-anchor="middle" font-size="12" style="fill:var(--soft)">learner commits, analyst</text><text x="782" y="190" text-anchor="middle" font-size="12" style="fill:var(--soft)">approves or rejects</text>
<path d="M572 71C640 71 640 140 678 150M572 241C640 241 640 180 678 172" fill="none" stroke="currentColor" stroke-width="2" marker-end="url(#a)"/></g>
<path d="M290 106V206" stroke="var(--line)" stroke-width="2" stroke-dasharray="5 5"/><text x="300" y="160" font-size="12" style="fill:var(--soft)">same principle: code or prompt structure shapes the AI’s role</text>
<text x="10" y="318" font-size="12" style="fill:var(--soft)">Pedagogical spectrum: 1 Lecture, 2 Dyadic, 3 Socratic, 4 Guided discovery, 5 Research. Vibe Rounds claims stages 3 to 5.</text></svg></div>
<p class="cap">Figure 1. Synthesis of the hub documentation and the analytics app’s About page.</p>
<div class="note"><b>Why it matters for learning gains.</b> The same design bet runs through both lanes: learners and analysts do the thinking, the AI shapes and challenges it. This is a design hypothesis grounded in cognitive load theory, the generation effect and desirable difficulties. The project’s own documentation states that no learner outcome study has been reported yet.</div>
</section>
<section id="stages">
<h2>The five stages of learning</h2>
<p>Vibe Rounds sits on a spectrum that moves from instructor-centred to learner-centred. It claims stages 3 to 5 (marked ★) and maps each to a part of the project.</p>
<div class="tbl"><table><thead><tr><th>Stage</th><th>Centred on</th><th>What happens</th><th>In Vibe Rounds</th></tr></thead><tbody>
<tr><td><b>1. Lecture</b></td><td>Instructor</td><td>Shared vocabulary and framing</td><td>Foundation; not claimed</td></tr>
<tr><td><b>2. Dyadic</b></td><td>Peer</td><td>Peers explain to each other, which forces encoding</td><td>Not claimed</td></tr>
<tr><td><b>3. Socratic ★</b></td><td>Self</td><td>Stress-test understanding with “Why?” and “What if?”</td><td>Hub and learner tools (person-centred)</td></tr>
<tr><td><b>4. Guided discovery ★</b></td><td>Self, scaffolded</td><td>Scaffolded problems; tiered hints build the environment on demand</td><td>Prompt library and CCOS (person-centred)</td></tr>
<tr><td><b>5. Research ★</b></td><td>Self or researcher</td><td>Case analytics, evidence mapping</td><td>Evidence maps and the Clinical Analytics app (population-centred)</td></tr></tbody></table></div>
<p class="soft">The progression is a design hypothesis informed by cognitive load theory and the expertise-reversal effect: starting at research overwhelms novices, and staying at lecture never builds independent thought.</p>
</section>
<section id="stage3">
<details class="sec"><summary><h2>Stage 3: Socratic learning</h2></summary>
<div class="dbody">
<details class="sub"><summary><h3>Lane 1: person-centred clinical cognition</h3></summary><div class="dbody"><p>Scope: learn and explore how a single case is reasoned through. All tools run in the browser with the learner’s own API key (Claude, Gemini, ChatGPT or an OpenAI-compatible endpoint) and are intended for fictional, synthetic or de-identified cases only.</p></div></details>
<details class="sub"><summary><h3>Socratic toolset (Stage 3)</h3></summary><div class="dbody"><ul><li><b>Practice:</b> <a href="https://avi33tbtt.github.io/bench.html" target="_blank" rel="noopener noreferrer">Case Bench</a>, <a href="https://avi33tbtt.github.io/case-simulator.html" target="_blank" rel="noopener noreferrer">Case Simulator</a>, <a href="https://avi33tbtt.github.io/case-practice.html" target="_blank" rel="noopener noreferrer">Clinical Practice</a>, <a href="https://avi33tbtt.github.io/case-question-bank.html" target="_blank" rel="noopener noreferrer">Case Question Bank</a>, <a href="https://avi33tbtt.github.io/lesson_bench.html" target="_blank" rel="noopener noreferrer">Lesson Bench</a>, Dx Dojo</li><li><b>Debate:</b> <a href="https://avi33tbtt.github.io/clinical-polemos.html" target="_blank" rel="noopener noreferrer">Clinical Polemos</a>, a stakeholder-persona panel</li><li><b>Lenses:</b> <a href="https://avi33tbtt.github.io/case-lens.html" target="_blank" rel="noopener noreferrer">Case Lens</a> (8 lenses), <a href="https://avi33tbtt.github.io/sdm-lens.html" target="_blank" rel="noopener noreferrer">SDM Lens</a> (7 domains, patient’s voice), EBM Query Generator</li><li><b>Navigation:</b> Complex Flow Builder</li><li><b>Prompt kits:</b> <a href="https://avi33tbtt.github.io/case-analytics.html" target="_blank" rel="noopener noreferrer">Case Analytics</a> and <a href="https://avi33tbtt.github.io/case-reading.html" target="_blank" rel="noopener noreferrer">Case Reading</a> for Google NotebookLM</li></ul>
<div class="note"><b>How to use: bring your own key (BYOK)</b><ol style="margin:6px 0 0;padding-left:20px"><li>Open a tool, for example <a href="https://avi33tbtt.github.io/bench.html" target="_blank" rel="noopener noreferrer">Case Bench</a>. No account or install is needed; it runs in your browser.</li><li>In <b>Step 1: Model</b>, choose Claude, Gemini, ChatGPT or Other (any OpenAI-compatible endpoint). Paste your own API key and the model name. The tool has a “Where do I get a key?” link, and usage is billed by your own provider.</li><li>Your key is stored only in this browser’s local storage and is sent directly from your browser to the provider you chose.</li><li>In <b>Step 2: Case</b>, paste a fictional, synthetic or de-identified case (vignette, discharge summary, your own notes, or a case link), or generate a sample case at a chosen difficulty.</li><li>Pick a mode (for example Dialogue or Analytics in Case Bench) and commit to your own answer before asking for hints.</li></ol></div>
<p class="soft">Ten constraints stop the model from “filling the silence”: forced commitment, minimum effort, delayed rescue, tiered hints, effort-weighted help, grading reasoning, adaptive difficulty, role-calibrated rigor, reflect-before-reveal, answer withholding.</p></div></details>
<details class="sub"><summary><h3>Socratic toolset: what each tool does and what you gain</h3></summary><div class="dbody"><div class="tbl"><table><thead><tr><th>Tool</th><th>Function</th><th>Intended gain</th></tr></thead><tbody>
<tr><td><b><a href="https://avi33tbtt.github.io/bench.html" target="_blank" rel="noopener noreferrer">Case Bench</a></b></td><td>Main workbench. Paste a case, upload a PDF, Word or text file, or generate one by specialty and difficulty. Dialogue mode runs Socratic rounds, a case audit, a differential challenge or a quick quiz in an exam style (NEET PG, USMLE, MRCP, PLAB); Analytics mode gives a one-pass report.</td><td>Practise commit-then-hint reasoning on one case; keep a downloadable transcript and see reasoning analytics.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/case-simulator.html" target="_blank" rel="noopener noreferrer">Case Simulator</a></b></td><td>Interview a simulated patient, examine, order tests and manage. The AI plays patient, nurse and results; new findings appear only when your action would elicit them. A live panel tracks vitals and flagged labs, with SOAP, ranked differential and pearls tabs.</td><td>Practise history-taking, test selection and sequencing under realistic information flow.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/case-practice.html" target="_blank" rel="noopener noreferrer">Clinical Practice</a></b></td><td>Reveals a case one stage at a time. You log your differential and reasoning before each reveal, then lock a diagnosis to open the debrief.</td><td>See where you anchored early, through a reasoning trail and a differential-evolution view.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/dx_dojo.html" target="_blank" rel="noopener noreferrer">Dx Dojo</a></b></td><td>Fictional cases set to your training level. The diagnosis is withheld until you commit to a differential. Your training log drives case selection, spreads cases across specialties and periodically forces a can’t-miss diagnosis.</td><td>Deliberate practice with adaptive difficulty, rather than reading case reports.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/case-question-bank.html" target="_blank" rel="noopener noreferrer">Case Question Bank</a></b></td><td>Offline, with no AI call. Matches about 64 fixed questions to the modules or module chains that answer them, with ratings for patient, clinical and research value.</td><td>Learn which questions are worth asking about a case, and which module to use for each.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/lesson_bench.html" target="_blank" rel="noopener noreferrer">Lesson Bench</a></b></td><td>Topic to lesson to discussion in one chat. Choose a topic, learner level and length; follow up with quick prompts such as key differentials or “quiz me”.</td><td>A structured lesson that moves straight into retrieval practice.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/clinical-polemos.html" target="_blank" rel="noopener noreferrer">Clinical Polemos</a></b></td><td>A panel of stakeholder personas debates your case, dilemma or policy question round after round; you can interject. A plain-language switch simplifies positions.</td><td>See one decision from several seats in the system and practise weighing competing arguments.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/case-lens.html" target="_blank" rel="noopener noreferrer">Case Lens</a></b></td><td>Eight lenses, from framing the problem to systems and self-monitoring, each giving 2 to 4 impact-scored, case-specific questions, then a roll-up and reflection debrief. It asks questions only and does not diagnose.</td><td>A systematic critical-thinking audit of your own handling of a case.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/sdm-lens.html" target="_blank" rel="noopener noreferrer">SDM Lens</a></b></td><td>Seven shared-decision-making domains, producing first-person questions in the patient’s voice and an “Ask 3” priority list. It never recommends or ranks options.</td><td>Practise seeing a decision from the patient’s side and spotting gaps in case data.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/ebm.html" target="_blank" rel="noopener noreferrer">EBM Query Generator</a></b></td><td>Turns a de-identified case into critical-appraisal queries (therapy, diagnosis, prognosis, harm, cost-effectiveness, guideline check) with PICO(T), study design, search string and appraisal pointer. It does not answer the clinical question.</td><td>Learn to convert a case into answerable questions; companion to the EBM course.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/complex-flow-builder.html" target="_blank" rel="noopener noreferrer">Complex Flow Builder</a></b></td><td>A canvas for chaining modules from the library into a multi-step flow, with branches and end nodes that write a .md or .html file. It builds the prompt chain; it does not run it.</td><td>Design a reasoning pipeline for a specific case and export it to run in any AI chat.</td></tr>
<tr><td><b><a href="https://avi33tbtt.github.io/case-analytics.html" target="_blank" rel="noopener noreferrer">Case Analytics</a> and <a href="https://avi33tbtt.github.io/case-reading.html" target="_blank" rel="noopener noreferrer">Case Reading</a></b></td><td>Copy-ready prompt kits for Google NotebookLM, tiered by training level (intern, resident, attending, cross-level synthesis, SOAP practice). Case Reading adapts the approach to published case reports and keeps a running pearl bank.</td><td>Depth matched to your level, grounded in the one source you upload.</td></tr></tbody></table></div>
<p class="soft">The gains are the intended learning benefits of each design. They have not yet been measured in a learner study.</p></div></details>
</div></details>
</section>
<section id="stage4">
<details class="sec"><summary><h2>Stage 4: Guided discovery</h2></summary>
<div class="dbody">
<details class="sub"><summary><h3>Guided discovery: CCOS (Stage 4)</h3></summary><div class="dbody"><ul><li>57+ prompt modules, 4 frameworks (Humanistic Persona, Fink, Bloom, Critical Awareness), lifecycle Initiation → Execution → Closure</li><li>Six cognitive layers: reasoning, workflow, metacognition, uncertainty framing, decision architecture, learning</li><li>Shadow Modules: adversarial, self-auditing counterparts</li><li>Orchestration: Module 59 (adaptive pipeline orchestrator)</li><li>Two run modes: Socratic (AI asks, learner commits) and analytics (learner supplies a case, AI works through the module and returns a text, Markdown or HTML report)</li></ul>
<div class="note"><b>How to use: case text or link, plus the Complex Flow Builder</b><ol style="margin:6px 0 0;padding-left:20px"><li>Get your case ready as de-identified text, or as a link to it.</li><li>Open the <a href="https://avi33tbtt.github.io/complex-flow-builder.html" target="_blank" rel="noopener noreferrer">Complex Flow Builder</a>. Use <b>+ Add case link</b> for the case, then drag modules onto the canvas and connect them in the order you want. A node can branch into several paths.</li><li>End every path with <b>End: Create .md File</b> or <b>End: Create .html File</b> to choose the output format.</li><li>Click <b>Copy .txt</b> (or <b>Export .txt</b>). This gives a ready prompt with your case, the ranked paths, a link to each module, and the output instructions.</li><li>Paste it into an LLM chat that can open links, so it can read each module and run the paths in rank order. If your LLM cannot open links, paste the module text from the <a href="https://github.com/avi33tbtt/avi33tbtt.github.io/tree/main/Prompts" target="_blank" rel="noopener noreferrer">prompt library</a> yourself.</li><li>To use just one module, open its file in the prompt library and paste it into the chat with your case. Read and critique the result; do not accept it as written.</li></ol></div>
<p class="soft">CCOS is a structured prompt architecture, not software with persistent state. Its uncertainty layer is prompt-level framing, not automated verification.</p></div></details>
<details class="sub" id="ccos"><summary><h3>How CCOS is built, shown through Module 52 (Clinical Pearls)</h3></summary><div class="dbody"><p>CCOS modules are plain-text prompt files that a learner pastes into any AI chat. Module 52 (“Clinical Pearls Distillation”, status mature in its own header) turns research evidence into bedside-ready pearls. It shows every building block in one place: a lifecycle, layered steps, patient anchors, AI modes and all four frameworks.</p>
<p class="soft">Its design problem: a pearl fails through false precision, not brevity. The module therefore deconstructs the evidence first, then compresses it, so each pearl states its own scope.</p>
<details class="sub inner"><summary><h3>1. Lifecycle: Initiation, Execution, Closure</h3></summary><div class="dbody"><div class="lc"><div><b>Initiation (CP.0 to CP.1)</b>Load the evidence and extract the core finding; anchor it to a real de-identified patient.</div><div><b>Execution (CP.2 to CP.11)</b>Five layers of distillation, from what the finding claims to how it fits local resources.</div><div><b>Closure (CP.12 to CP.15)</b>Critical awareness debrief, exportable pearl set, significant-learning check, difficulty for the next session.</div></div></div></details>
<details class="sub inner"><summary><h3>2. The execution layers</h3></summary><div class="dbody"><div class="tbl"><table><thead><tr><th>Layer</th><th>Steps</th><th>What the learner does</th><th>AI mode</th></tr></thead><tbody>
<tr><td>1. Evidence boundary</td><td>CP.2, CP.3</td><td>Map population, setting, comparator and outcome; test the boundary against a second patient</td><td>Traditional; Devil’s Advocate</td></tr>
<tr><td>2. Effect calibration</td><td>CP.4, CP.5</td><td>Translate effect size into absolute terms, CI and NNT; then attack what the numbers cannot warrant</td><td>Traditional; Devil’s Advocate</td></tr>
<tr><td>3. Compression</td><td>CP.6, CP.7</td><td>Draft three candidate pearls; stress-test the best against a third patient for safety and scope</td><td>Traditional; Devil’s Advocate</td></tr>
<tr><td>4. Teaching and retention</td><td>CP.8, CP.9</td><td>Bloom-level teaching pearl and vignette; three memory architectures tried on a fourth patient</td><td>Traditional; Brainstorming</td></tr>
<tr><td>5. Integration</td><td>CP.10, CP.11</td><td>Check against the current guideline landscape; translate to a resource-constrained context using a fifth patient</td><td>Traditional; Devil’s Advocate</td></tr></tbody></table></div>
<p>Five steps are patient-anchored. The learner pastes a brief de-identified vignette and the AI tests whether the pearl applies, partly applies, or must be withheld for that patient, which guards against applying a population statement to someone outside the source population.</p></div></details>
<details class="sub inner"><summary><h3>3. Where the four frameworks sit in Module 52</h3></summary><div class="dbody"><div class="tbl"><table><thead><tr><th>Framework</th><th>In Module 52</th><th>Why</th></tr></thead><tbody>
<tr><td><b>A. Humanistic Persona</b></td><td>Persona language throughout</td><td>Six traits (specific affirmation before challenge, strength-forward closure, uncertainty as intelligence, progress acknowledgement, calibrated difficulty, failure as information) keep challenge from becoming defensive</td></tr>
<tr><td><b>C. Bloom’s revised taxonomy</b></td><td>CP.8, teaching pearl</td><td>Levels Remember, Understand, Apply, Analyse, Evaluate, Create set the difficulty. The module notes Analyse is most valuable: it trains recognition of the boundary case where the pearl fails</td></tr>
<tr><td><b>D. Critical Awareness</b></td><td>CP.12, debrief</td><td>Asks about publication bias, funding influence and a concrete harm model; a pearl that fails needs a verbal caveat every time. Prompt-level only, not verification</td></tr>
<tr><td><b>B. Fink’s taxonomy (FLINK)</b></td><td>CP.14, significant learning</td><td>Six non-hierarchical dimensions: foundational knowledge, application, integration, human dimension, caring, learning how to learn. “Caring” surfaces whose values shaped the outcome measure behind the pearl</td></tr>
<tr><td>Adaptive difficulty</td><td>CP.15, difficulty ratchet</td><td>Sets the next session’s evidence complexity from how this one went</td></tr></tbody></table></div></div></details>
<details class="sub inner"><summary><h3>4. Beyond one module</h3></summary><div class="dbody"><ul><li>Modules are single lenses organised by learner moment. <b>Pipelines</b> chain them, for example 1 → 12 → 9 → 21 → 35, composed in the Complex Flow Builder; Module 59 orchestrates adaptively.</li><li><b>Shadow modules</b> are adversarial, self-auditing counterparts.</li><li>Every module is tagged A to E for what its output may honestly claim, from genuine analysis to dependence on real input supplied step by step.</li><li>Module 52 offers entry paths by purpose (for example a teaching session: run the full module, then export CP.13 and the CP.8 vignette).</li></ul></div></details>
<details class="sub inner"><summary><h3>5. Two ways to run the same module</h3></summary><div class="dbody"><p>Each CCOS module can be run in either of two modes. The module file and its lifecycle stay the same; what changes is who does the work in each step.</p>
<div class="tbl"><table><thead><tr><th></th><th>Socratic mode</th><th>Analytics mode</th></tr></thead><tbody>
<tr><td><b>How it starts</b></td><td>The learner works through the module step by step</td><td>The learner gives a case once (or the evidence, for Module 52) and hands the module prompts to the AI</td></tr>
<tr><td><b>AI’s role</b></td><td>Asks, challenges, withholds answers until the learner commits; tiered hints under the ten constraints</td><td>Works through the module’s steps itself, as a structured analysis of the supplied case</td></tr>
<tr><td><b>Learner’s role</b></td><td>Commits to an answer before any help; reasoning is graded</td><td>Reads, checks and critiques the finished analysis</td></tr>
<tr><td><b>Output</b></td><td>A live transcript, a reasoning trail and a debrief</td><td>A finished text, Markdown or HTML report; Complex Flow Builder pipelines end in a node that writes a .md or .html file</td></tr>
<tr><td><b>Best for</b></td><td>Building reasoning skill, practising before you know the answer</td><td>Fast structured review of a case, second opinions on your own reasoning, teaching material, consistent write-ups across many cases</td></tr>
<tr><td><b>Main risk</b></td><td>Slower; depends on the learner engaging</td><td>A complete-looking answer can replace the learner’s own thinking, and the AI may fabricate specifics it was not given</td></tr></tbody></table></div>
<p><b>Module 52 shows the analytics side clearly.</b> Its own file says it contains no Socratic prompts by design, because it distils evidence into the clinician rather than testing prior knowledge. In analytics mode the learner supplies the paper or guideline summary, and the AI runs CP.0 to CP.15 in order and returns the final pearl set (CP.13), the Bloom teaching pearl and vignette (CP.8), the critical awareness debrief (CP.12) and the next-session difficulty (CP.15). Its five patient-anchored steps need real de-identified vignettes; without them they are best left out or clearly marked as placeholders. For a Socratic route into the same clinical topic, the module points to Module 1 on a related case, run before Module CP.</p>
<p>The Case Bench tool offers the same split: a Dialogue mode (Socratic rounds, case audit, differential challenge, quick quiz) and an Analytics mode that produces a one-pass report through a chosen lens.</p>
<div class="note"><b>Why this design.</b> Bloom sets how hard the question is. Fink widens the learning beyond cognition to values and learning strategy. The persona keeps challenge from turning defensive, and Framework D keeps the learner from over-trusting the AI. The same lifecycle opens and closes every session, which makes sessions comparable and auditable.</div></div></details>
<details class="sub inner"><summary><h3>In plain terms: how this architecture helps</h3></summary><div class="dbody"><div class="two">
<div class="col"><h3>For the learner</h3><ul><li><b>In Socratic mode you do the thinking.</b> The AI asks and challenges, so reasoning is practised rather than outsourced.</li><li><b>In analytics mode you get a fast structured review.</b> The AI works the case through the module and you critique the result.</li><li><b>Shows your blind spots.</b> Bias audits, devil’s-advocate steps and pre-mortems expose anchoring and premature closure.</li><li><b>Right-sized difficulty.</b> Bloom levels and the difficulty ratchet raise the challenge as you improve.</li><li><b>Whole-person learning.</b> Fink’s dimensions and the humanistic persona add values, the patient’s view and learning strategy to the facts.</li></ul></div>
<div class="col"><h3>For teachers, reviewers and safety</h3><ul><li><b>Repeatable.</b> The same open, work, close shape makes sessions comparable and easy to review.</li><li><b>Honest about limits.</b> Patient-anchored steps and A to E tags stop a pearl or module claiming more than it can support.</li><li><b>Low barrier.</b> Plain text in any AI chat: nothing to install, easy to fork, adapt or critique.</li><li><b>Composable.</b> Single lenses chain into pipelines for different cases and learners.</li></ul></div></div>
<div class="note warn"><b>Evidence status.</b> These are design intentions grounded in learning science. The project’s documentation reports no learner outcome study yet, so the benefits above are not yet measured. The learning evaluation in the plan below is the step that would test them.</div></div></details>
</div></details>
</div></details>
</section>
<section id="stage5">
<details class="sec"><summary><h2>Stage 5: Research</h2></summary>
<div class="dbody">
<p>Research is generating or testing something that could hold beyond the one patient in front of you. Every output traces back to a source and a human verifies it.</p>
<details class="sub"><summary><h3>Worked evidence</h3></summary><div class="dbody"><div class="tbl"><table><thead><tr><th>Artefact</th><th>What it shows</th></tr></thead><tbody>
<tr><td><a href="https://avi33tbtt.github.io/demo/critical-hub-node-navigation/asv-full.html" target="_blank" rel="noopener noreferrer">ASV evidence map</a></td><td>Evidence-pyramid trajectory mapping for anti-snake-venom. Mortality signal sits in case reports; RCTs and meta-analyses are not designed to show it. Built with the Evidence-Pyramid Trajectory Mapper prompt (details below).</td></tr>
<tr><td><a href="https://avi33tbtt.github.io/demo/cases/VibeRounds-Dashboard-14M-MicrocyticAnemia-UrinaryObstruction.html" target="_blank" rel="noopener noreferrer">Analytics dashboard demo</a></td><td>Worked output from the analytics lane: an anonymised paediatric case (microcytic anaemia with urinary obstruction) worked through as a dashboard with a printable report.</td></tr>
</tbody></table></div>
<div class="note"><b>How to use: build an evidence map from your own papers</b><ol style="margin:6px 0 0;padding-left:20px"><li>Choose the research papers you want to map. They should address the same question and outcome, ideally from more than one study design.</li><li>Open the <a href="https://github.com/avi33tbtt/avi33tbtt.github.io/blob/main/Prompts/evidence-pyramid-trajectory-mapper.md" target="_blank" rel="noopener noreferrer">Evidence-Pyramid Trajectory Mapper prompt on GitHub</a> and paste it into an AI chat.</li><li>Give it <b>one paper at a time</b> (as text or a file). It names the study design, applies the matching module and returns an interactive HTML map for that paper. Save each map.</li><li>Once you have papers from several designs, ask it to run the evidence-pyramid climb (Module G). It places each paper in its tier and marks how adjacent tiers reinforce, attenuate or contradict each other.</li><li>Check each extraction against the original paper. The map is a reading aid, and a human verifies it.</li></ol></div>
<details class="sub inner"><summary><h3>Prompt behind the ASV map: Evidence-Pyramid Trajectory Mapper</h3></summary><div class="dbody">
<p>One system prompt, <code>Prompts/evidence-pyramid-trajectory-mapper.md</code>, that is pasted into an AI chat with one paper at a time. It is a router plus module set: it first identifies the study design, applies the matching module, and returns an interactive HTML map. It does not run searches itself; the PubMed search and paper selection happen before it.</p>
<div class="tbl"><table><thead><tr><th>Part</th><th>What it does</th></tr></thead><tbody>
<tr><td><b>Step 0: classify design</b></td><td>Names one primary design (case report or series, case-control, cohort, cross-sectional, RCT, systematic review or meta-analysis) and the evidence for it before anything else. Mixed papers get one dominant module; unclear ones are stated and the better-supported design is used.</td></tr>
<tr><td><b>Modules A to F</b></td><td>One module per design, each with the same skeleton: extract, merge into a network, build the HTML plot. Only the unit of analysis changes: a patient (A), a subject traced backward (B), a forward trajectory (C), a snapshot cell (D), a trial arm (E) or an included study (F).</td></tr>
<tr><td><b>Module G: evidence-pyramid climb</b></td><td>Runs after each paper has its own A to F output. Checks that the papers share a comparable question and outcome (G0), distils one 3 to 5 node signal chain per paper (G1), then places each paper as a node in its design’s tier, from case reports at the base to meta-analyses at the apex (G2). Edges between adjacent tiers are marked reinforcing, attenuating, contradicting or unresolved, and the clearest chain of papers is traced as the climb path.</td></tr>
<tr><td><b>HTML output</b></td><td>A single self-contained file with a tiered diagram, hover tooltips per paper, and a prominent toggle to show only reinforcing edges (solid evidence) or only contradicting and attenuating edges (shaky evidence).</td></tr>
</tbody></table></div>
<p><b>Why it suits the ASV question.</b> Each tier keeps its own native units: a case-series impression is never converted into a number, and an RCT interval is never turned into an anecdote. That is how the map can show a signal in case reports without pooling incompatible evidence.</p>
<p><b>Built-in safeguards:</b></p>
<ul><li>Uses only data present in the paper; missing values are marked, not estimated.</li><li>Never pools or averages effects across papers, unless a paper is itself a meta-analysis that reports the pooled estimate.</li><li>Declines to draw a pyramid when only one design tier is present, and splits or excludes papers with different outcomes or populations.</li><li>Carries each paper’s own citation into the chat summary, the HTML tooltips and a final reference list; no anonymous “Study 7” labels and no invented citations.</li><li>Applies Vibe Rounds branding, a disclaimer banner and collapsed module sections to every output.</li></ul>
<p class="soft">The repository documents the ASV workflow (one paper at a time into a running map, tiers kept separate) and does not name the prompt file explicitly. This prompt is the one that matches that description.</p>
</div></details></div></details>
<details class="sub"><summary><h3>Lane 2: Clinical Analytics app (population-centred)</h3></summary><div class="dbody"><p><b>Try it:</b> <a href="https://viberounds-clinical-analytics-app.onrender.com/about" target="_blank" rel="noopener noreferrer">Vibe Rounds Clinical Analytics app</a> (About page).</p>
<p><b>One line:</b> ask better questions of clinical data, and know how far to trust the answers. It is deliberately lightweight: it reads FHIR as it is (no common data model conversion) and is meant for the exploratory step before platforms such as OHDSI ATLAS or TriNetX.</p>
<ol class="steps">
<li><b>Bring data.</b> Own FHIR files (JSON, NDJSON, CSV), the open HAPI test server, or a deterministic synthetic generator. Imported into PostgreSQL batches.</li>
<li><b>Check the data first.</b> Coding coverage, unrecognised code systems and date problems are measured; “analytics readiness” runs every analytic once per method and reports which the data can support.</li>
<li><b>Define the cohort.</b> Plain-English question fills a PICO or PECO form; a SNOMED CT query builder writes cohort SQL with descendant or ancestor expansion (from RF2 or CSV hierarchies).</li>
<li><b>Run the analytics in five readings.</b> V1 notes, V2 codes, V3 codes plus approved enrichment, V4 codes with dates, V5 enriched codes with dates. Seeing up to five answers side by side shows how much a result depends on method.</li>
<li><b>AI assistant or AI researcher.</b> The model reads results, flags findings, proposes up to four next analytics. The researcher chains 1 to 20 rounds; the analyst can stop, continue or review each query.</li>
<li><b>Look at the data and approve enrichment.</b> Patient explorer, cohort knowledge graph (lift, order, typical gap in days), care pathways and trajectories. For text-only records the model proposes real candidate codes and a person approves, edits or rejects each.</li></ol>
<div class="two" style="grid-template-columns:1fr">
<div class="col pop"><h3>Who it serves</h3><ul><li>Clinical researchers and quality analysts for fast first answers and reusable SQL</li><li>Informatics students and educators, as a teaching sandbox for cohort logic</li><li>FHIR engineers and developers needing realistic test data</li></ul><p class="soft">Not for clinical decisions, real patient data without approval, multi-site or publication-grade studies, or very large datasets.</p></div></div></div></details>
</div></details>
</section>
<section id="courses">
<details class="sec"><summary><h2>Courses and literacy</h2></summary>
<div class="dbody">
<ul><li><b><a href="https://avi33tbtt.github.io/ebm/" target="_blank" rel="noopener noreferrer">EBM for Techies</a>:</b> 9 lessons from PICO to a full patient case, plus a lesson on using LLMs responsibly</li><li><b><a href="https://avi33tbtt.github.io/cc/" target="_blank" rel="noopener noreferrer">Clinical Cognition, From First Principles</a>:</b> 13 lessons and 5 electives, built from the module library</li><li><b>AI Literacy for Clinical Learners:</b> 4-part series on where LLMs help and where they fail (common-case blind spot, prompt structure, one case under several framings)</li></ul>
</div></details>
</section>
<section id="trust">
<details class="sec"><summary><h2>Trust design: what the AI may and may not do</h2></summary>
<div class="dbody">
<div class="tbl"><table><thead><tr><th>Principle</th><th>Person-centred lane</th><th>Population lane</th></tr></thead><tbody>
<tr><td>AI’s role</td><td>Asks, challenges, surfaces bias; withholds answers until an attempt (Socratic mode). Works through a supplied case as a structured analysis (analytics mode)</td><td>Reads results, flags, suggests the next analytic from a fixed catalog</td></tr>
<tr><td>Source of numbers</td><td>Prompt-level uncertainty framing; stated confidence is not calibrated probability</td><td>Tested analytics or a query a person reviewed</td></tr>
<tr><td>Human gate</td><td>Learner commits before hints; clinician remains decision-maker</td><td>Analyst runs, skips, dismisses, approves enrichment; audit log of every run</td></tr>
<tr><td>Data rule</td><td>Fictional or de-identified cases only; key stays in the browser</td><td>Synthetic or de-identified data; only the question goes to the model</td></tr></tbody></table></div>
</div></details>
</section>
<section id="collaborate">
<div class="note"><b>Invitation to collaborate.</b> Educators, clinicians, researchers and developers are welcome to review, critique, adapt or co-develop Vibe Rounds, including learner studies to measure the intended gains. Write to <a href="mailto:[email protected]?subject=Vibe%20Rounds%20collaboration">[email protected]</a>.</div>
</section>
</main>
<footer><div class="w">Independent summary for academic and expert review. Vibe Rounds is for education and research, not clinical decision support. All outputs need independent clinical verification.</div></footer>
<script>
(function(){var b=document.getElementById('mb'),s=document.getElementById('side'),o=document.getElementById('ov');
function set(x){s.classList.toggle('open',x);o.classList.toggle('open',x);b.setAttribute('aria-expanded',x);b.innerHTML=x?'× Close':'☰ Menu'}
b.addEventListener('click',function(){set(!s.classList.contains('open'))});
o.addEventListener('click',function(){set(false)});
s.addEventListener('click',function(e){if(e.target.tagName==='A')set(false)});
document.addEventListener('keydown',function(e){if(e.key==='Escape')set(false)});})();
</script>
<script>
(function(){function openFor(el){if(!el)return;var d=el.tagName==='SECTION'?el.querySelector('details.sec'):el;while(d){if(d.tagName==='DETAILS')d.open=true;d=d.parentElement&&d.parentElement.closest('details')}}
function go(){var h=location.hash.slice(1);if(h)openFor(document.getElementById(h))}
window.addEventListener('hashchange',go);go();
document.getElementById('side').addEventListener('click',function(e){var a=e.target.closest('a');if(a&&a.hash)openFor(document.getElementById(a.hash.slice(1)))});
document.getElementById('ea').addEventListener('click',function(){document.querySelectorAll('details').forEach(function(d){d.open=true})});
document.getElementById('ca').addEventListener('click',function(){document.querySelectorAll('details').forEach(function(d){d.open=false})});})();
</script>
</body>
</html>