Automates the creation of demand letters based on medical PDF records.
Project description
Injury Summary Generator
This project automates the process of creating a demand letter for a client based on medical records in PDF format. It extracts relevant information from medical records and generates a "Summary of Injuries" section in a table format.
Data Source
The ICD-10 codes used in this project are sourced from the Centers for Medicare & Medicaid Services (CMS) website. You can find the official ICD-10 code lists at:
https://www.cms.gov/medicare/coordination-benefits-recovery/overview/icd-code-lists
This authoritative source ensures that our project uses up-to-date and accurate ICD-10 codes for classifying diagnoses.
Features
- PDF Processing: Reads multiple PDF files containing medical records and extracts text.
- Information Extraction: Extracts key information such as visit dates, diagnoses, and page numbers.
- ICD-10 Code Determination: Determines appropriate ICD-10 codes for extracted diagnoses.
- PDF Generation: Creates a summary PDF with a formatted table of extracted information.
Installation
You can install the Injury Summary Generator using pip:
pip install injury-summary-generator
Usage
After installation, you can run the Injury Summary Generator using the following command:
injury-summary-generator <input_folder> <output_folder>
Where:
<input_folder>
is the path to the folder containing the medical record PDF files.<output_folder>
is the path where the output summary PDF will be saved.
To check the version of the installed package, use:
injury-summary-generator --version
Project Structure
src/
: Contains the source code for the project.generate_summary_of_injuries.py
: Main script that orchestrates the entire process.pdf_reader.py
: Handles reading PDF files and extracting text.date_extractor.py
: Extracts dates from PDF text.diagnosis_extractor.py
: Extracts diagnoses from PDF text.icd_code_determiner.py
: Determines ICD-10 codes based on diagnoses.pdf_creator.py
: Creates the final summary PDF.
tests/
: Contains unit tests for the project.setup.py
: Configuration file for packaging and distribution.requirements.txt
: Lists all Python dependencies for the project.README.md
: Provides information about the project and how to use it..gitignore
: Specifies files and directories to be ignored by Git.
Contributing (if you want to, and if I make it open source)
Contributions to this project are welcome. Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes and commit them (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Create a new Pull Request.
Releasing
To create a new release:
- Update the version number in
setup.py
. - Create a new tag with the version number:
git tag v1.0.0
- Push the tag to GitHub:
git push origin v1.0.0
- Create a new release on GitHub, describing the changes and new features.
- Build and upload the package to PyPI:
python setup.py sdist bdist_wheel twine upload dist/*
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for injury_summary_generator-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 893adb8f8ccd48e4571b513bcc8f55ceefe738f85059f6d77c7ce2bb69879687 |
|
MD5 | 617d0a167959a53f871e281f8c32666b |
|
BLAKE2b-256 | 01e61ba478f7a7d9e43be8dc67d275226450fceed6d26ffdb2713f9b3a1c71e3 |
Hashes for injury_summary_generator-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c48bd22cd30a018fae8c38f4c7f8fbc8b1fc69a7aa1d8a23e8473e497422d26e |
|
MD5 | bf58335ecfc912d2cdfe034350c1e207 |
|
BLAKE2b-256 | 8b881a5b1d1cab2586d88e1d47c1a8a1e84efd542a3545d10aa78a9094c459ae |