Observers¶
app.observers
¶
Formative review: deterministic observers, critical-action rules and the nine anchor domains.
Observers cite events or abstain. Countable behaviour (facts elicited, follow-ups, exams, orders, reasoning revisions) is judged deterministically; semantic quality is left to a model observer whose claims are annotations for expert review, never upgrades. Degraded audio suspends the domains that depend on it. No scalar or overall score is produced.
ANCHOR_REVIEW = 'draft_pending_faculty_review'
module-attribute
¶
DOMAINS = (('history', 'History taking', 'Elicits the presenting problem and relevant history, following up on what the patient says.'), ('problem_representation', 'Problem representation', 'States a concise working summary that integrates the key findings.'), ('differential_revision', 'Differential and revision', 'Holds a differential and revises it when new information arrives.'), ('examination_planning', 'Examination planning', 'Requests examinations targeted to the problem rather than everything at once.'), ('investigations', 'Investigations', 'Orders investigations that would change management, naming them specifically.'), ('management', 'Management', 'Proposes a safe, supervised plan that avoids authored unsafe actions.'), ('communication', 'Communication', 'Explores concerns, clarifies colloquial expressions and involves family appropriately.'), ('documentation', 'Documentation', 'Writes a note that separates what was elicited from what was inferred.'), ('closure', 'Closure', 'Summarises, explains next steps, checks understanding and safety-nets.'))
module-attribute
¶
STATES = ('evidenced', 'partially_evidenced', 'not_yet_evidenced', 'suspended', 'safety_concern')
module-attribute
¶
AUDIO_DOMAINS = ('communication', 'closure')
module-attribute
¶
LEARNER = ('question', 'live_question', 'native_question')
module-attribute
¶
critical_actions(encounter)
¶
Deterministic checks of authored required and unsafe actions.
degraded(encounter)
¶
Share of voice events whose delivery or learner transcript is unreliable.
observe(encounter)
¶
Deterministic claims for each domain; every non-empty claim cites events.
cognitive_biases(encounter, evidence)
¶
Deterministic cognitive-bias indicators grounded in encounter events (formative coaching flags).
art_idea_rubric(encounter, domains, critical, evidence, biases)
¶
Map deterministic observations onto validated ART (5 domains) and IDEA (4 elements) anchors.
review(encounter)
¶
The formative review shown at the end of an encounter and in session history.
reconcile(review_, semantic_claims)
¶
Attach semantic observer claims to domains as annotations; they never change a deterministic state.