HNTAI / TODO.md
sachinchandrankallar's picture
Revert "Merge branch 'FT-DEV-17/09/2025'"
aba0d25
|
Raw
History Blame
995 Bytes
# TODO: Fix None Type Handling and Stream Ending on Generation Failure
## Tasks to Complete
- [x] Update `active_set` in `openvino_summarizer_utils.py` to handle None visits
- [x] Update `compute_deltas` in `openvino_summarizer_utils.py` to ensure old_visits and new_visits are lists
- [x] Update `visits_sorted` in `openvino_summarizer_utils.py` to handle None input
- [x] Update `latest_value` and related functions in `openvino_summarizer_utils.py` to handle None visits
- [x] Update `parse_ehr_chartsummarydtl` in `openvino_summarizer_utils.py` to return [] if chartsummarydtl is None
- [ ] Ensure `visits` is always a list in `routes.py` background_patient_summary
- [ ] Wrap `delta = compute_deltas([], visits)` in try-except in `routes.py`
- [ ] Ensure on generation failure in `background_patient_summary`, update job to 'error' and provide fallback
- [ ] Verify `sse_generator` ends stream properly on error
- [ ] Test the fixes to ensure no None type errors and proper stream ending