DocUA Claude Opus 5 commited on
Commit
09c4875
·
1 Parent(s): e90d802

fix: Or_6 feedback — consent questions, unrecorded verdicts, feedback types

Browse files

Findings from Alex's first reviewed test case (review/Or_6.txt).

Fixed:
- A question about the spiritual care team was scored as a refusal.
"I don't know, who are they" contains "don't"/"not", so _check_consent's
negative keyword scan matched first, _process_consent_declined closed the
topic and moved the session back to GREEN while the patient was still in an
unresolved RED. _is_consent_question now runs before _check_consent, explains
what the chaplains do, re-asks for consent and stays in AWAITING_CONSENT.
- Saving from the always-visible verification panel never set is_correct, so a
fully reviewed session exported as "0 reviewed". Picking a classification is
now the verdict itself (PROVIDER_SUMMARY step excluded, its radio is hidden).
The panel also stays open after Save so a note left on an exchange whose
classification was correct doesn't disappear.

Added:
- "Type of feedback" multi-select (wrong classification / tone / missing
information / conversation flow) in both interfaces, exported as a
feedback_types column with stable codes. An exchange can carry more than one,
which splits reviewer notes into classifier-prompt vs response-prompt fixes
without re-reading free text.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

4 files changed +148 -32
Files changed (4)
src/core/simplified_medical_app.py+60-6
src/interface/gradio_app.py+12-3
src/interface/simplified_gradio_app.py+12-3
src/interface/verification_handlers.py+64-20