MediCafe
Project description
MediCafe
MediCafe is a mixed local/cloud healthcare workflow automation repository. It combines legacy clinic-side workflows (MediBot, MediLink, and xp_client) with shared package utilities in MediCafe and a newer Gmail ingestion/orchestration path in cloud/orchestrator.
This repository intentionally supports more than one runtime model. It is not a single deployable app with one entrypoint.
Runtime Tracks
| Track | Primary code | Python | Primary use |
|---|---|---|---|
| Local / XP-compatible workflow | MediCafe, MediBot, MediLink, xp_client |
3.4.4-compatible package path | Clinic-side claims, eligibility, deductible, reconciliation, download, and Medisoft-oriented automation |
| Cloud / orchestrator workflow | cloud/orchestrator, tools, docs/runbooks |
3.11+ repo-run path | Gmail ingestion, queueing, preprocessor validation, alerting, setup, and runtime operations |
| Shared migration / validation tooling | MediCafe, scripts/unified_model, sql, tests |
Mixed | Shadow-pipeline, cloud-readiness, schema, validation, and reporting support |
setup.py packages the local/XP-compatible path. The cloud orchestrator is maintained as repo-run code.
Primary Entry Points
Package CLI:
medicafe launcher
python -m MediCafe launcher
Current package commands exposed by MediCafe/__main__.py:
medicafe launchermedicafe medibot [config_file]medicafe medilinkmedicafe claims_statusmedicafe deductiblemedicafe download_emailsmedicafe cloud_daemon [config_file]medicafe send_error_reportmedicafe send_queued_error_reportsmedicafe docx_index_rebuildmedicafe preflightmedicafe reconcilemedicafe version
Canonical cloud operator path:
py -3.11 cloud/orchestrator/validate_and_complete_setup.py
Repository Map
MediCafe/: shared package, CLI entrypoint, launcher, preflight, cloud-readiness helpers (including Layer 1 Readiness for operator system-health and run-evidence bundles; seeMediCafe/layer1_readiness_model.pyandAGENTS.md), API utilities, reconciliation, error reporting, and shared runtime helpersMediBot/: Medisoft-oriented local preprocessing and data-entry support scriptsMediLink/: claims, eligibility, deductible, remittance, Gmail helper, and Apps Script-related assetscloud/orchestrator/: Cloud Run service, auth/config/runtime helpers, preprocessor gate, watch/admin flows, setup scripts, and cloud testsxp_client/: XP-side cloud queue consumer (medilink_cloud_daemon.py)tests/: main regression suite for package/local workflows, API helpers, launcher behavior, preflight, cloud-readiness, and integration coveragescripts/unified_model/: shadow-pipeline and unified relational validation toolingsql/: SQL artifacts used by migration and validation workdocs/: maintained documentation surfacetools/: operator and build helpers that are outside the packaged runtime
The workspace root also contains operational inputs, artifacts, and generated state such as input/, TEST_CLAIMS/, ERA_TEST_DUMP/, reports_queue/, archive/, build/, dist/, .pytest_cache/, and tmp*. Do not treat those folders as the canonical source layout.
Configuration
Primary local configuration files:
json/config.jsonjson/crosswalk.jsonjson/medisoftconfig.json
Cloud/orchestrator runtime settings are managed through cloud/orchestrator/config.py, environment variables, and the validator/setup flow.
Testing
Main test surfaces:
tests/cloud/orchestrator/tests/
Canonical automated test entrypoint:
python3 -m pytest -v
Windows equivalent:
py -3.11 -m pytest -v
XP/Python 3.4.4 local test environments should use the pinned legacy pytest versions from requirements.txt (or pip install .[test]) before running pytest-driven files:
py -3.4 -m pip install -r requirements.txt
py -3.4 -m pytest -q tests/test_json_io.py
pytest.ini collects both test surfaces and excludes the current duplicate-name conflicts plus the known api_factory pytest-incompatible file. For focused runs:
python3 -m pytest -q tests/test_preflight.py
python3 -m pytest -q tests/test_config_loader_diagnostics.py
python3 -m pytest -q tests/test_error_reporter_configloader_degraded.py
python3 -m pytest -q tests/test_launcher_next_step_orchestration.py
python3 -m pytest -q tests/test_cloud_readiness_health.py
python3 -m pytest -q tests/test_cloud_readiness_artifacts.py::TestLayer1ReadinessModel tests/test_cloud_readiness_artifacts.py::TestLayer1ReadinessSurfacesAndContract tests/test_cloud_readiness_artifacts.py::TestSystemHealthPackWiring::test_send_latest_system_health_pack_extra_meta_merges_layer1_readiness_shallow_keys tests/test_cloud_readiness_artifacts.py::TestRunCentricArtifactTools::test_send_latest_run_evidence_bundle_extra_meta_merges_layer1_readiness_shallow_keys tests/test_cloud_readiness_recommendations.py
python3 -m pytest -q tests/test_bundle_build_telemetry.py
python3 -m pytest -q cloud/orchestrator/tests
See docs/TESTING_GUIDE.md for the current suite shape, default excludes, and standalone script-style harnesses that are not part of the canonical pytest run.
Documentation
Start here:
docs/README.mddocs/MEDICAFE_MASTER_GUIDE.mddocs/TESTING_GUIDE.mddocs/MEDICAFE_API_ARCHITECTURE.mddocs/MEDILINK_CLOUD_MIGRATION.mddocs/architecture/CSV_DOCX_DAT_JOIN_SCAFFOLDING_INVENTORY.md(shadow CSV/DOCX/DAT correlation, cloud readiness read path, orchestrator context)cloud/orchestrator/README.md
Security and Repo Hygiene
- Avoid PHI in logs, reports, and committed artifacts.
- Use
send_error_reportandsend_queued_error_reportsfor diagnostics instead of ad hoc data exports. - Treat tokens, certificates, raw client secrets, build outputs, and downloaded artifacts as operational state, not documentation or source of truth.
License
MIT License. See LICENSE.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file medicafe-0.260506.2.tar.gz.
File metadata
- Download URL: medicafe-0.260506.2.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfb2bdfdbab1c782017d77cba354bf431a1c999552cd527d8173cd588f9cf17d
|
|
| MD5 |
9b35490c3e81d29ed9803e6749cd1de2
|
|
| BLAKE2b-256 |
bbe9d617b9beb5b9a371c0da5f489da5e30eafdb5b654067fe627816fdf72306
|
Provenance
The following attestation bundles were made for medicafe-0.260506.2.tar.gz:
Publisher:
release-pypi.yml on katanada2/MediCafe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medicafe-0.260506.2.tar.gz -
Subject digest:
cfb2bdfdbab1c782017d77cba354bf431a1c999552cd527d8173cd588f9cf17d - Sigstore transparency entry: 1450016668
- Sigstore integration time:
-
Permalink:
katanada2/MediCafe@c54fa3c216e05dafd0a783c3b8766be852552d79 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/katanada2
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c54fa3c216e05dafd0a783c3b8766be852552d79 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file medicafe-0.260506.2-py3-none-any.whl.
File metadata
- Download URL: medicafe-0.260506.2-py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
445db9f6c351a5f36fd214adb1d2c012918c6a1d9ccd985988382c02311fb504
|
|
| MD5 |
f93bac4676e2905fa1439bbe2b9d058b
|
|
| BLAKE2b-256 |
c8f88280b9b684899e544ee570f0b97096a7cd05347c36d3c8d2653371c1feff
|
Provenance
The following attestation bundles were made for medicafe-0.260506.2-py3-none-any.whl:
Publisher:
release-pypi.yml on katanada2/MediCafe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
medicafe-0.260506.2-py3-none-any.whl -
Subject digest:
445db9f6c351a5f36fd214adb1d2c012918c6a1d9ccd985988382c02311fb504 - Sigstore transparency entry: 1450016764
- Sigstore integration time:
-
Permalink:
katanada2/MediCafe@c54fa3c216e05dafd0a783c3b8766be852552d79 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/katanada2
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@c54fa3c216e05dafd0a783c3b8766be852552d79 -
Trigger Event:
workflow_dispatch
-
Statement type: