DocUA commited on
Commit
32be239
Β·
1 Parent(s): d0d6d94

after comments from Or:

Browse files

feat: Enhance spiritual care classification and consent messaging

- Updated the YELLOW category definition in spiritual_monitor.py to clarify ambiguity in distress indicators.
- Added follow-up purpose guidelines for YELLOW classifications.
- Introduced consent-based messaging requirements for RED classifications, ensuring patient autonomy.
- Created a new consent_message_generator.py to handle consent message generation and validation.
- Developed a provider_summary_generator.py to generate structured summaries for RED flag cases, including patient information and distress indicators.
- Modified the simplified_gradio_app.py to include patient phone number and correct classification options during conversation verification.
- Enhanced UI elements to support new classification and consent features.

6 files changed +812 -95
Files changed (6)
src/core/consent_message_generator.pyAdded+184
src/core/provider_summary_generator.pyAdded+242
src/core/simplified_medical_app.py+94-35
src/core/soft_triage_manager.py+80-17
src/core/spiritual_monitor.py+53-12
src/interface/simplified_gradio_app.py+159-31