Skip to content

Conversation

@charanw
Copy link

@charanw charanw commented Dec 10, 2025

Contributor: Charan Williams (charanw2@illinois.edu)

Contribution Type: New Model

Description:
Added a new clinical summarization model, BHCToAVS, which converts Brief Hospital Course (BHC) notes into patient-friendly After-Visit Summaries (AVS). The model wraps a fine-tuned Mistral-7B LoRA adapter hosted on Hugging Face and integrates with the PyHealth model API. This contribution includes the full model implementation, unit tests, documentation, and an example usage script.

Files to Review:

  • pyhealth/models/bhc_to_avs.py — Main model implementation
  • pyhealth/models/__init__.py — Added import for the new model
  • tests/core/test_bhc_to_avs.py — Unit test for the BHCToAVS model
  • docs/api/models/pyhealth.models.bhc_to_avs.rst — Sphinx documentation file
  • docs/api/models.rst — Updated model index to include BHCToAVS
  • examples/bhc_to_avs_example.py — Example usage demonstrating model prediction

Introduces the BHCToAVS model, which converts clinical Brief Hospital Course (BHC) notes into After-Visit Summaries (AVS) using a fine-tuned Mistral 7B model with LoRA adapters. Adds model implementation, documentation, an example usage script, and unit tests.
@LogicFan LogicFan added the model Contribute a new model to PyHealth label Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

model Contribute a new model to PyHealth

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants