MCPcopy Create free account

hub / github.com/bedriyan/medkit-app / functions

Functions381 in github.com/bedriyan/medkit-app

↓ 1 callersFunctioncolourFor
(label: string)
src/data/cases.ts:136
↓ 1 callersFunctioncomputeStats
(history: EvalHistoryEntry[])
src/components/HomeScreen.tsx:97
↓ 1 callersFunctionconsumeStream
( sessionId: string, signal: AbortSignal, onEval: (e: CaseEvaluationInput) => void, onPartialDelta: (d
src/agents/useAttendingDebrief.ts:139
↓ 1 callersFunctioncreate
(getSnapshot: () => T, subscribe: (fn: () => void) => () => void)
src/components/three/createStore.ts:3
↓ 1 callersFunctioncreateSession
(title?: string)
src/agents/managedAgent.ts:89
↓ 1 callersFunctiondebriefRequestToUserMessage
(req: DebriefRequest)
src/agents/debriefRequest.ts:163
↓ 1 callersFunctiondeleteEvalHistory
(id: string)
src/data/evalHistory.ts:76
↓ 1 callersFunctionderiveExpression
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 callersFunctiondiagLabel
(id: string)
src/data/cases.ts:83
↓ 1 callersFunctiondrawStar
(cxx: number, cyy: number, spikes: number, outer: number, inner: number)
src/components/three/Polyclinic.tsx:902
↓ 1 callersFunctionendConsultation
()
src/components/EncounterScreen.tsx:316
↓ 1 callersFunctionfetchHistory
(sessionId: string)
src/agents/managedAgent.ts:128
↓ 1 callersFunctionfetchVoiceToken
(opts: { caseId: string; systemPrompt: string; initialLine: string; gender: 'M' | 'F'; })
src/voice/conversation.ts:98
↓ 1 callersFunctionformatScore
(n: number)
src/components/DebriefScreen.tsx:118
↓ 1 callersFunctiongetCaseSpecialty
(caseId: string)
src/data/polyclinicPatients.ts:6767
↓ 1 callersFunctiongetEvalHistory
(id: string)
src/data/evalHistory.ts:86
↓ 1 callersFunctiongetImagingExamples
( testId: string, abnormal: boolean, diagnosisId?: string, )
src/data/radiologyImages.ts:1603
↓ 1 callersFunctiongetOrCreatePatientConversation
( bedIndex: number, patientCase: PatientCase, listeners: ConversationListeners )
src/voice/conversationStore.ts:37
↓ 1 callersFunctiongetTestReport
( testId: string, caseSpecific: string | undefined, abnormal: boolean )
src/data/defaultTestResults.ts:493
↓ 1 callersMethodhandleAgentTranscription
(seg: TranscriptionSegment)
src/voice/conversation.ts:314
↓ 1 callersMethodhandleUserTranscription
(seg: TranscriptionSegment)
src/voice/conversation.ts:298
↓ 1 callersFunctionhasClaudeKey
()
src/voice/claude.ts:11
↓ 1 callersFunctionhasEncounterActivity
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 callersFunctionhashString
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 callersFunctionhashString
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 callersMethodinit
()
src/voice/conversation.ts:332
↓ 1 callersMethodloadMessages
()
src/voice/conversation.ts:160
↓ 1 callersFunctionmain
()
backend/smoke_test.py:112
↓ 1 callersFunctionmain
()
scripts/loop/verify-loop.ts:63
↓ 1 callersFunctionmakeAnatomyChartTexture
()
src/components/three/Polyclinic.tsx:957
↓ 1 callersFunctionmakeDiplomaTexture
( institution: string, degree: string, name: string, year: string, sealColor: string = '#8a0a0a' )
src/components/three/Polyclinic.tsx:806
↓ 1 callersFunctionmakeMonitorTexture
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 callersFunctionmakeWindowViewTexture
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 callersMethodmarkAttempted
Mark a case as attempted so the next-patient picker skips it.
src/game/store.ts:195
↓ 1 callersFunctiononDelete
(id: string)
src/components/HomeScreen.tsx:158
↓ 1 callersFunctionopenEventStream
( sessionId: string, opts: StreamOptions = {}, )
src/agents/managedAgent.ts:158
↓ 1 callersFunctionopenExamine
()
src/components/EncounterScreen.tsx:285
↓ 1 callersFunctionorderPanel
(testIds: string[])
src/components/ExamineOverlay.tsx:383
↓ 1 callersFunctionpalette
(age: number, gender: 'M' | 'F', seed: string | undefined, doctor: boolean)
src/components/three/StylizedCharacter.tsx:51
↓ 1 callersFunctionparseViolations
(output: string)
scripts/loop/verify-loop.ts:36
↓ 1 callersFunctionparse_metadata
(raw: str | None)
backend/voice_agent.py:74
↓ 1 callersFunctionpickAccessories
( h: number, age: number, override?: CharacterAccessory[], )
src/components/three/StylizedCharacter.tsx:99
↓ 1 callersFunctionpickBodyType
(h: number, override?: CharacterBodyType)
src/components/three/StylizedCharacter.tsx:93
↓ 1 callersFunctionpickHair
(p: PatientCase)
src/data/cases.ts:67
↓ 1 callersFunctionpickHairStyle
( h: number, gender: 'M' | 'F', age: number, override?: CharacterHairStyle, )
src/components/three/StylizedCharacter.tsx:73
↓ 1 callersFunctionpickMood
(p: PatientCase)
src/data/cases.ts:73
↓ 1 callersFunctionpickSkin
(p: PatientCase)
src/data/cases.ts:63
↓ 1 callersFunctionpick_voice
(case_id: str, gender: str)
backend/voice_agent.py:69
↓ 1 callersFunctionpoolFor
Which pool does a given (age, gender) map to? * Thresholds mirror the ones in `figureParams.ts`.
src/data/avatarModels.ts:197
↓ 1 callersFunctionrand
()
src/components/ExamineOverlay.tsx:861
↓ 1 callersFunctionreadOnboarded
()
src/game/store.ts:26
↓ 1 callersFunctionrefresh
()
src/components/HomeScreen.tsx:157
↓ 1 callersFunctionrunVerify
()
scripts/loop/verify-loop.ts:44
↓ 1 callersFunctionrun_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 callersFunctionsaveEvalHistory
( payload: Omit<EvalHistoryEntry, 'id' | 'savedAt'>, )
src/data/evalHistory.ts:62
↓ 1 callersFunctionsbp
(bp: string)
scripts/verify/triage-priority.ts:20
↓ 1 callersFunctionsendUserMessage
(sessionId: string, text: string)
src/agents/managedAgent.ts:93
↓ 1 callersMethodsetListeners
(listeners: ConversationListeners)
src/voice/conversation.ts:175
↓ 1 callersFunctionshuffleSeeded
(input: readonly T[], seedKey: string)
src/components/ExamineOverlay.tsx:855
↓ 1 callersFunctionstableViolations
(p: PatientCase)
scripts/verify/triage-priority.ts:25
↓ 1 callersFunctionsummarise
(req: ReturnType<typeof buildDebriefRequest> | null)
src/components/DebriefScreen.tsx:602
↓ 1 callersFunctionsummariseRequest
(req: DebriefRequest)
src/agents/debriefRequest.ts:220
↓ 1 callersFunctiontagMatches
(tags: string[] | undefined, diagnosisId: string)
src/data/radiologyImages.ts:1588
↓ 1 callersFunctiontagsFor
(p: PatientCase, clinic: ClinicId)
src/data/cases.ts:87
↓ 1 callersFunctiontestById
(id: string)
src/data/tests.ts:110
↓ 1 callersFunctiontoCase
(p: PatientCase, clinic: ClinicId)
src/data/cases.ts:95
↓ 1 callersFunctiontoPatientCase
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 callersFunctiontruncate
(s: string, n: number)
src/components/DebriefScreen.tsx:608
↓ 1 callersFunctiontryAttach
()
src/components/DockedVoicePanel.tsx:31
↓ 1 callersFunctionuseActiveInteractable
()
src/components/three/interactions.ts:54
↓ 1 callersFunctionuseAttendingDebrief
( request: DebriefRequest | null, opts: Options = {}, )
src/agents/useAttendingDebrief.ts:56
↓ 1 callersFunctionverifyRubricCitations
()
scripts/verify/rubric-smoke.ts:29
↓ 1 callersFunctionwait
()
src/agents/managedAgent.ts:181
↓ 1 callersFunctionwalk
(rel: string)
scripts/test/loop-commands.test.ts:141
↓ 1 callersMethodwireRoomEvents
(room: Room)
src/voice/conversation.ts:256
↓ 1 callersFunctionwriteMuted
(v: boolean)
src/components/BackgroundMusic.tsx:15
↓ 1 callersFunctionwriteOnboarded
(v: boolean)
src/game/store.ts:34
FunctionActionChips
({ patient, c }: { patient: ActivePatient; c: PatientCase })
src/components/DebriefScreen.tsx:255
FunctionAdaptiveCameraFov
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
FunctionAgentTab
()
src/components/AgenticRoundsScreen.tsx:1463
FunctionAgentTopologyScreen
()
src/components/AgentTopologyScreen.tsx:446
FunctionAgenticRoundsScreen
()
src/components/AgenticRoundsScreen.tsx:429
FunctionAnatomyPoster
Realistic anatomy chart — framed with a canvas texture.
src/components/three/Polyclinic.tsx:1312
FunctionAnimalFace
({ size = 120 }: { size?: number })
src/components/primitives.tsx:126
FunctionApp
()
src/App.tsx:19
FunctionBackgroundMusic
()
src/components/BackgroundMusic.tsx:23
FunctionBigStat
({ label, value, sub }: { label: string; value: string; sub: string })
src/components/AgenticRoundsScreen.tsx:1249
FunctionBookshelf
Bookshelf against a wall — decorative, conveys "muayenehane" vibe.
src/components/three/Polyclinic.tsx:767
FunctionBreadcrumb
({ steps, here }: BreadcrumbProps)
src/components/primitives.tsx:302
FunctionBriefScreen
()
src/components/BriefScreen.tsx:23
FunctionBulletinBoard
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
FunctionCard
({ title, children }: { title: string; children: React.ReactNode })
src/components/AgenticRoundsScreen.tsx:1268
FunctionCaseCard
({ c, delay = 0, avatarStyle }: CaseCardProps)
src/components/CaseLibraryScreen.tsx:13
FunctionCaseFieldGroup
({ kind, title, fields, }: { kind: NodeKind; title: string; fields: Array<[string, string]>; })
src/components/AgenticRoundsScreen.tsx:1339
FunctionCaseLibraryScreen
()
src/components/CaseLibraryScreen.tsx:152
FunctionCasesTab
()
src/components/AgenticRoundsScreen.tsx:1107
FunctionCeilingLight
({ position }: { position: [number, number, number] })
src/components/three/Polyclinic.tsx:366
FunctionChartFolder
()
src/components/GPRoomScreen.tsx:325
FunctionChatTab
({ patientName }: { patientName: string })
src/components/ExamineOverlay.tsx:978
FunctionCoatRack
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
← previousnext →101–200 of 381, ranked by callers