Skip to main content

MediCafe

Project description

MediCafe

Comprehensive Healthcare Data Processing and Claims Management System

MediCafe is a production-ready healthcare automation suite designed to streamline medical practice administrative workflows. The system automates data processing, claims submission, payer communication, and revenue cycle management tasks for healthcare providers.

๐ŸŽฏ Overview

MediCafe consists of two integrated components:

  • MediBot: Automated document processing, data validation, and Medisoft data entry automation
  • MediLink: Claims submission, payer API integration, EDI processing (837P, 835, 999, 277CA), and eligibility verification

Key Capabilities

  • Claims Management: Generate and submit 837P claims with COB (Coordination of Benefits) support
  • Payer API Integration: Direct integration with UnitedHealthcare (UHCAPI), OptumAI, Availity, and PNT Data
  • Eligibility & Status: Real-time eligibility verification, claim status checking, and deductible inquiry
  • ERA Processing: Automated 835 remittance processing and reconciliation
  • Data Processing: CSV parsing, validation, crosswalk mapping, and fixed-width file handling
  • Performance Optimized: 70-85% faster processing through algorithmic improvements and caching

๐Ÿš€ Installation

Standard Installation

pip install medicafe

Virtual Environment (Recommended)

python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install medicafe

Development Installation

git clone https://github.com/katanada2/MediCafe.git
cd MediCafe
pip install -e .

๐Ÿ“– Quick Start

Command-Line Interface

MediCafe provides a unified command-line entry point. Run the interactive menu: medicafe launcher. Or run a specific command (see below). You can also use python -m MediCafe <command>.

Available Commands

  • medicafe launcher - Launch interactive menu (recommended for first use)
  • medicafe medibot [config_file] - Run MediBot data entry automation
  • medicafe medilink - Run MediLink claims processing interface
  • medicafe claims_status - Check UnitedHealthcare claim status
  • medicafe deductible - Check UnitedHealthcare deductible information
  • medicafe download_emails - Download payer emails via Gmail (future work)
  • medicafe send_error_report - Generate and email support bundle
  • medicafe version - Display version information

Example Workflows

Process and submit claims:

medicafe medilink

Check claim status for recent submissions:

medicafe claims_status

Verify patient deductibles:

medicafe deductible

๐Ÿ”ง Configuration

MediCafe uses JSON-based configuration files located in the json/ directory:

  • config.json - Main system configuration (API endpoints, credentials, file paths)
  • crosswalk.json - Data mapping tables (payer IDs, diagnosis codes, procedure codes)
  • medisoftconfig.json - Medisoft-specific settings

See docs for configuration details.

๐Ÿ”Œ API Integrations

Supported Payer APIs

  • UnitedHealthcare (UHCAPI): Eligibility, claim status, deductible inquiry
  • OptumAI: Real Claims Inquiry (GraphQL), eligibility verification
  • Availity: Claims submission, ERA processing, acknowledgments
  • PNT Data: Claims routing and processing

Supported EDI Transactions

  • 837P: Professional claims submission
  • 835: Electronic Remittance Advice (ERA)
  • 999: Implementation Acknowledgment
  • 277CA: Claim Status Response
  • 270/271: Eligibility Inquiry/Response

๐Ÿ“š Documentation

Full system documentation, API details, and integration guides are in the docs/ directory. Start with the Master System Guide in docs/ for setup, configuration, and troubleshooting.

๐Ÿ› ๏ธ Future Work

Automated email ingestion from payer communications is planned for future releases. Infrastructure exists in cloud/orchestrator/ when needed; see that directory if pursuing cloud integration later. No immediate setup required.

โšก Performance

Recent optimizations have significantly improved system performance:

  • 70-85% faster overall processing time
  • 80-95% reduction in API calls through intelligent caching
  • Eliminated O(nยฒ) complexity in data processing operations
  • Optimized memory management for constrained environments

Technical details are in the docs (see Master Guide and cache/performance notes in docs/).

๐Ÿ”’ Security & Compliance

  • HIPAA Compliance: No protected health information (PHI) in logs
  • Secure Credential Management: OAuth 2.0 token-based authentication
  • Error Reporting: Automated support bundle generation with PHI exclusion
  • Audit Logging: Comprehensive logging for compliance and troubleshooting

๐Ÿ’ป System Requirements

Runtime Requirements (End Users)

  • Python: 3.4.4
  • OS: Windows XP SP3 (primary target). MediCafe is built to run in this environment.
  • Memory: Optimized for constrained environments (~200 patients, ~100 parameters per patient)

Development/Build Requirements

Building the package requires Python 3.11+ (build_package.py); the resulting package runs on Python 3.4.4.

Modern Environments

The codebase may also run on newer Windows and Python versions for development.

๐Ÿ—๏ธ Architecture

MediCafe/
โ”œโ”€โ”€ MediBot/                 # Data processing and automation
โ”‚   โ”œโ”€โ”€ MediBot.py          # Main entry point
โ”‚   โ”œโ”€โ”€ MediBot_UI.py       # User interface
โ”‚   โ””โ”€โ”€ MediBot_*.py        # Processing modules
โ”œโ”€โ”€ MediLink/               # Claims and API integration
โ”‚   โ”œโ”€โ”€ MediLink_main.py    # Main entry point
โ”‚   โ”œโ”€โ”€ MediLink_UI.py      # User interface
โ”‚   โ””โ”€โ”€ MediLink_*.py       # Claims modules
โ”œโ”€โ”€ MediCafe/               # Core utilities package
โ”‚   โ”œโ”€โ”€ launcher.py         # Interactive menu entry point
โ”‚   โ”œโ”€โ”€ api_core.py         # Unified API client
โ”‚   โ”œโ”€โ”€ graphql_utils.py    # GraphQL operations
โ”‚   โ”œโ”€โ”€ core_utils.py       # Shared utilities
โ”‚   โ””โ”€โ”€ MediLink_ConfigLoader.py  # Configuration management
โ”œโ”€โ”€ json/                   # Configuration files
โ”œโ”€โ”€ tools/                  # Utility scripts
โ””โ”€โ”€ docs/                   # Documentation

๐Ÿ› Troubleshooting

Common Issues

  1. Import Errors: Ensure the project root is in PYTHONPATH or use python -m MediCafe
  2. API Authentication: Verify credentials in json/config.json
  3. File Path Issues: Check CSV_FILE_PATH and other path configurations
  4. Python 3.4 Compatibility: Some features require Python 3.4.4+ syntax

Error Reporting

Generate a support bundle for troubleshooting:

medicafe send_error_report

This creates a comprehensive diagnostic package (excluding PHI) for support.

๐Ÿ“ Recent Improvements

2024-2025 Updates

  • โœ… Cache Optimization (Nov 2025): Invalid code validation, date parsing consistency, +10-15% cache hit rate
  • โœ… API Client Consolidation: Unified API client architecture
  • โœ… Performance Optimizations: 70-85% faster processing
  • โœ… Enhanced Error Handling: Detailed logging and user guidance
  • โœ… COB Library Integration: Medicare secondary billing support
  • โœ… OptumAI Integration: Real Claims Inquiry implementation
  • โœ… Documentation Consolidation: Streamlined documentation structure

See the Master System Guide in docs/ for full changelog and details.

๐Ÿค Contributing

This is community-supported software. Contributions are welcome:

  1. Open an issue for bugs or feature requests
  2. Include Python version, OS, and exact command/error details
  3. Follow existing code style and Python 3.4.4 compatibility guidelines

๐Ÿ“„ License

MIT License. See LICENSE file for details.

๐Ÿ‘ค Author

Daniel Vidaud
Email: daniel@personalizedtransformation.com

๐Ÿ”— Links


Note: MediCafe is designed for healthcare administrative workflows. Ensure proper HIPAA compliance and security measures are in place for production deployments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

medicafe-0.260128.9.tar.gz (642.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

medicafe-0.260128.9-py3-none-any.whl (696.9 kB view details)

Uploaded Python 3

File details

Details for the file medicafe-0.260128.9.tar.gz.

File metadata

  • Download URL: medicafe-0.260128.9.tar.gz
  • Upload date:
  • Size: 642.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for medicafe-0.260128.9.tar.gz
Algorithm Hash digest
SHA256 02fa7f57ad353aaae1cc54bd33fef938ee7a6bdbe214951a946226f22fcbc5d3
MD5 ca2ac4b6fcbad7d7c2e93d792f9344c2
BLAKE2b-256 569dfcf318f8416ccf71e6760b99364d7d7915088e758fc1fca05316cf1a6ba6

See more details on using hashes here.

File details

Details for the file medicafe-0.260128.9-py3-none-any.whl.

File metadata

  • Download URL: medicafe-0.260128.9-py3-none-any.whl
  • Upload date:
  • Size: 696.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for medicafe-0.260128.9-py3-none-any.whl
Algorithm Hash digest
SHA256 df80ed2214ca3bb1f18d01e8b00500f8bd01f1e18ac578b34a6dce1d3bf910c3
MD5 44e75dc4e682d187c5acc20fa4bee351
BLAKE2b-256 a605b3239717643b2b57f68edd2afe74802d79d8591ebfc001ef0a8c53258a6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page