A project for medical error detection and analysis
This software has been tested on:
- macOS (Darwin 24.2.0 and later)
- Linux (Ubuntu 20.04, 22.04)
- Windows (Windows 10/11 with WSL2 recommended)
Sample data files are available in the assets/ folder:
error_definition.yaml- Error category definitionserror_labels.json- Annotated medical text examples
git clone https://github.com/OHNLP/MedError.git
cd MedErrorconda env create -f environment.yml
conda activate mederrorpip install -e .For development dependencies:
pip install -e .[dev]- With Conda: ~5 minutes
** Edit path in the code to run the demo**
-
Run error classification:
python src/mederror/prompt.py
-
Post-process results:
python src/mederror/postprocess.py
-
Evaluate results:
python src/mederror/eval.py
If you plan to contribute to this repository, follow these steps:
- Fork the repository and create a new branch for your changes:
git checkout -b your-branch-name- Install development dependencies:
pip install .[dev]- Set up pre-commit hooks:
pre-commit install- Commit your changes and open pull request with a clear description of changes.