Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedriyan/medkit-app
/ functions
Functions
381 in github.com/bedriyan/medkit-app
⨍
Functions
381
◇
Types & classes
97
↳
Endpoints
12
↓ 1 callers
Function
colourFor
(label: string)
src/data/cases.ts:136
↓ 1 callers
Function
computeStats
(history: EvalHistoryEntry[])
src/components/HomeScreen.tsx:97
↓ 1 callers
Function
consumeStream
( sessionId: string, signal: AbortSignal, onEval: (e: CaseEvaluationInput) => void, onPartialDelta: (d
src/agents/useAttendingDebrief.ts:139
↓ 1 callers
Function
create
(getSnapshot: () => T, subscribe: (fn: () => void) => () => void)
src/components/three/createStore.ts:3
↓ 1 callers
Function
createSession
(title?: string)
src/agents/managedAgent.ts:89
↓ 1 callers
Function
debriefRequestToUserMessage
(req: DebriefRequest)
src/agents/debriefRequest.ts:163
↓ 1 callers
Function
deleteEvalHistory
(id: string)
src/data/evalHistory.ts:76
↓ 1 callers
Function
deriveExpression
Map a patient's severity + chief complaint to a facial expression for * the stylized character. Case data doesn't carry an explicit expression * f
src/components/three/Polyclinic.tsx:2582
↓ 1 callers
Function
diagLabel
(id: string)
src/data/cases.ts:83
↓ 1 callers
Function
drawStar
(cxx: number, cyy: number, spikes: number, outer: number, inner: number)
src/components/three/Polyclinic.tsx:902
↓ 1 callers
Function
endConsultation
()
src/components/EncounterScreen.tsx:316
↓ 1 callers
Function
fetchHistory
(sessionId: string)
src/agents/managedAgent.ts:128
↓ 1 callers
Function
fetchVoiceToken
(opts: { caseId: string; systemPrompt: string; initialLine: string; gender: 'M' | 'F'; })
src/voice/conversation.ts:98
↓ 1 callers
Function
formatScore
(n: number)
src/components/DebriefScreen.tsx:118
↓ 1 callers
Function
getCaseSpecialty
(caseId: string)
src/data/polyclinicPatients.ts:6767
↓ 1 callers
Function
getEvalHistory
(id: string)
src/data/evalHistory.ts:86
↓ 1 callers
Function
getImagingExamples
( testId: string, abnormal: boolean, diagnosisId?: string, )
src/data/radiologyImages.ts:1603
↓ 1 callers
Function
getOrCreatePatientConversation
( bedIndex: number, patientCase: PatientCase, listeners: ConversationListeners )
src/voice/conversationStore.ts:37
↓ 1 callers
Function
getTestReport
( testId: string, caseSpecific: string | undefined, abnormal: boolean )
src/data/defaultTestResults.ts:493
↓ 1 callers
Method
handleAgentTranscription
(seg: TranscriptionSegment)
src/voice/conversation.ts:314
↓ 1 callers
Method
handleUserTranscription
(seg: TranscriptionSegment)
src/voice/conversation.ts:298
↓ 1 callers
Function
hasClaudeKey
()
src/voice/claude.ts:11
↓ 1 callers
Function
hasEncounterActivity
True when the trainee actually engaged with the patient — asked a * history question, ordered a test, gave a treatment, prescribed, or * submitted
src/game/store.ts:80
↓ 1 callers
Function
hashString
Tiny deterministic string-hash. 32-bit FNV-1a is plenty for picking * one of ~3 bucket entries. Keeping this local so the data module has * zero r
src/data/avatarModels.ts:208
↓ 1 callers
Function
hashString
Tiny FNV-1a string hash. Used to pick a stable, well-distributed * parent gender / parent name suffix from a case ID — without falling * into the
src/voice/patientPersona.ts:13
↓ 1 callers
Method
init
()
src/voice/conversation.ts:332
↓ 1 callers
Method
loadMessages
()
src/voice/conversation.ts:160
↓ 1 callers
Function
main
()
backend/smoke_test.py:112
↓ 1 callers
Function
main
()
scripts/loop/verify-loop.ts:63
↓ 1 callers
Function
makeAnatomyChartTexture
()
src/components/three/Polyclinic.tsx:957
↓ 1 callers
Function
makeDiplomaTexture
( institution: string, degree: string, name: string, year: string, sealColor: string = '#8a0a0a' )
src/components/three/Polyclinic.tsx:806
↓ 1 callers
Function
makeMonitorTexture
Canvas texture for the consultation desk monitor. Renders a calm patient * record card (no vitals trace — this isn't an ICU monitor, just the * do
src/components/three/Polyclinic.tsx:397
↓ 1 callers
Function
makeWindowViewTexture
Canvas texture painted like an out-the-window view — blue sky, * distant city skyline, a few clouds. Backs the window panes so the * glass actuall
src/components/three/Polyclinic.tsx:2082
↓ 1 callers
Method
markAttempted
Mark a case as attempted so the next-patient picker skips it.
src/game/store.ts:195
↓ 1 callers
Function
onDelete
(id: string)
src/components/HomeScreen.tsx:158
↓ 1 callers
Function
openEventStream
( sessionId: string, opts: StreamOptions = {}, )
src/agents/managedAgent.ts:158
↓ 1 callers
Function
openExamine
()
src/components/EncounterScreen.tsx:285
↓ 1 callers
Function
orderPanel
(testIds: string[])
src/components/ExamineOverlay.tsx:383
↓ 1 callers
Function
palette
(age: number, gender: 'M' | 'F', seed: string | undefined, doctor: boolean)
src/components/three/StylizedCharacter.tsx:51
↓ 1 callers
Function
parseViolations
(output: string)
scripts/loop/verify-loop.ts:36
↓ 1 callers
Function
parse_metadata
(raw: str | None)
backend/voice_agent.py:74
↓ 1 callers
Function
pickAccessories
( h: number, age: number, override?: CharacterAccessory[], )
src/components/three/StylizedCharacter.tsx:99
↓ 1 callers
Function
pickBodyType
(h: number, override?: CharacterBodyType)
src/components/three/StylizedCharacter.tsx:93
↓ 1 callers
Function
pickHair
(p: PatientCase)
src/data/cases.ts:67
↓ 1 callers
Function
pickHairStyle
( h: number, gender: 'M' | 'F', age: number, override?: CharacterHairStyle, )
src/components/three/StylizedCharacter.tsx:73
↓ 1 callers
Function
pickMood
(p: PatientCase)
src/data/cases.ts:73
↓ 1 callers
Function
pickSkin
(p: PatientCase)
src/data/cases.ts:63
↓ 1 callers
Function
pick_voice
(case_id: str, gender: str)
backend/voice_agent.py:69
↓ 1 callers
Function
poolFor
Which pool does a given (age, gender) map to? * Thresholds mirror the ones in `figureParams.ts`.
src/data/avatarModels.ts:197
↓ 1 callers
Function
rand
()
src/components/ExamineOverlay.tsx:861
↓ 1 callers
Function
readOnboarded
()
src/game/store.ts:26
↓ 1 callers
Function
refresh
()
src/components/HomeScreen.tsx:157
↓ 1 callers
Function
runVerify
()
scripts/loop/verify-loop.ts:44
↓ 1 callers
Function
run_triage_reasoning
Invoke Opus 4.7 to classify an ER arrival. Pure function modulo the client handle — unit tests pass a mock client.
backend/server.py:1247
↓ 1 callers
Function
saveEvalHistory
( payload: Omit<EvalHistoryEntry, 'id' | 'savedAt'>, )
src/data/evalHistory.ts:62
↓ 1 callers
Function
sbp
(bp: string)
scripts/verify/triage-priority.ts:20
↓ 1 callers
Function
sendUserMessage
(sessionId: string, text: string)
src/agents/managedAgent.ts:93
↓ 1 callers
Method
setListeners
(listeners: ConversationListeners)
src/voice/conversation.ts:175
↓ 1 callers
Function
shuffleSeeded
(input: readonly T[], seedKey: string)
src/components/ExamineOverlay.tsx:855
↓ 1 callers
Function
stableViolations
(p: PatientCase)
scripts/verify/triage-priority.ts:25
↓ 1 callers
Function
summarise
(req: ReturnType<typeof buildDebriefRequest> | null)
src/components/DebriefScreen.tsx:602
↓ 1 callers
Function
summariseRequest
(req: DebriefRequest)
src/agents/debriefRequest.ts:220
↓ 1 callers
Function
tagMatches
(tags: string[] | undefined, diagnosisId: string)
src/data/radiologyImages.ts:1588
↓ 1 callers
Function
tagsFor
(p: PatientCase, clinic: ClinicId)
src/data/cases.ts:87
↓ 1 callers
Function
testById
(id: string)
src/data/tests.ts:110
↓ 1 callers
Function
toCase
(p: PatientCase, clinic: ClinicId)
src/data/cases.ts:95
↓ 1 callers
Function
toPatientCase
Resolve the full medkit `PatientCase` (anamnesis, vitals, diagnosis * options, etc.) for a cozy-cartoon `Case`. If we can't find one in the * cata
src/game/store.ts:54
↓ 1 callers
Function
truncate
(s: string, n: number)
src/components/DebriefScreen.tsx:608
↓ 1 callers
Function
tryAttach
()
src/components/DockedVoicePanel.tsx:31
↓ 1 callers
Function
useActiveInteractable
()
src/components/three/interactions.ts:54
↓ 1 callers
Function
useAttendingDebrief
( request: DebriefRequest | null, opts: Options = {}, )
src/agents/useAttendingDebrief.ts:56
↓ 1 callers
Function
verifyRubricCitations
()
scripts/verify/rubric-smoke.ts:29
↓ 1 callers
Function
wait
()
src/agents/managedAgent.ts:181
↓ 1 callers
Function
walk
(rel: string)
scripts/test/loop-commands.test.ts:141
↓ 1 callers
Method
wireRoomEvents
(room: Room)
src/voice/conversation.ts:256
↓ 1 callers
Function
writeMuted
(v: boolean)
src/components/BackgroundMusic.tsx:15
↓ 1 callers
Function
writeOnboarded
(v: boolean)
src/game/store.ts:34
Function
ActionChips
({ patient, c }: { patient: ActivePatient; c: PatientCase })
src/components/DebriefScreen.tsx:255
Function
AdaptiveCameraFov
Adaptive FOV: keeps the horizontal FOV near 82° regardless of viewport * aspect, plus a hold-Z (or scroll wheel) "lean in" zoom.
src/components/EncounterScreen.tsx:28
Function
AgentTab
()
src/components/AgenticRoundsScreen.tsx:1463
Function
AgentTopologyScreen
()
src/components/AgentTopologyScreen.tsx:446
Function
AgenticRoundsScreen
()
src/components/AgenticRoundsScreen.tsx:429
Function
AnatomyPoster
Realistic anatomy chart — framed with a canvas texture.
src/components/three/Polyclinic.tsx:1312
Function
AnimalFace
({ size = 120 }: { size?: number })
src/components/primitives.tsx:126
Function
App
()
src/App.tsx:19
Function
BackgroundMusic
()
src/components/BackgroundMusic.tsx:23
Function
BigStat
({ label, value, sub }: { label: string; value: string; sub: string })
src/components/AgenticRoundsScreen.tsx:1249
Function
Bookshelf
Bookshelf against a wall — decorative, conveys "muayenehane" vibe.
src/components/three/Polyclinic.tsx:767
Function
Breadcrumb
({ steps, here }: BreadcrumbProps)
src/components/primitives.tsx:302
Function
BriefScreen
()
src/components/BriefScreen.tsx:23
Function
BulletinBoard
Simple bulletin / information board — cork panel in a wood frame, * with a few pinned papers for visual flavour. Fills dead wall space.
src/components/three/Polyclinic.tsx:1905
Function
Card
({ title, children }: { title: string; children: React.ReactNode })
src/components/AgenticRoundsScreen.tsx:1268
Function
CaseCard
({ c, delay = 0, avatarStyle }: CaseCardProps)
src/components/CaseLibraryScreen.tsx:13
Function
CaseFieldGroup
({ kind, title, fields, }: { kind: NodeKind; title: string; fields: Array<[string, string]>; })
src/components/AgenticRoundsScreen.tsx:1339
Function
CaseLibraryScreen
()
src/components/CaseLibraryScreen.tsx:152
Function
CasesTab
()
src/components/AgenticRoundsScreen.tsx:1107
Function
CeilingLight
({ position }: { position: [number, number, number] })
src/components/three/Polyclinic.tsx:366
Function
ChartFolder
()
src/components/GPRoomScreen.tsx:325
Function
ChatTab
({ patientName }: { patientName: string })
src/components/ExamineOverlay.tsx:978
Function
CoatRack
Coat rack — tall post with hooks and three hung coats (spare white * doctor coat, wool jacket, patient overcoat). Reads as a real coatstand * with
src/components/three/Polyclinic.tsx:1477
← previous
next →
101–200 of 381, ranked by callers