EHR Risk Framework API — leakage-aware FastAPI risk modeling (research/education only)
1.4K
Image: ranasl62/ehr-risk-api
Source: github.com/ranasl62/ehr-chronic-disease-risk-prediction
Docs: ehr.larucare.com · Docker images page
DOI: 10.5281/zenodo.21448693
Research and education only. Not a medical device. Not for patient care. Use demo/synthetic data only — never put PHI in public containers.
FastAPI backend for leakage-aware, calibrated chronic-disease–style risk modeling (package openhealth, CLI ehr-ai). Used by Compose services api, prepare, and train.
docker pull ranasl62/ehr-risk-api:latest
Tags: latest (default branch), sha-<short>, and semver from GitHub v* tags.
docker pull ranasl62/ehr-risk-web:latest
Clone the repo (Compose bind-mounts data/, reports/, model.pkl):
git clone https://github.com/ranasl62/ehr-chronic-disease-risk-prediction.git
cd ehr-chronic-disease-risk-prediction
docker compose -f docker-compose.yml -f docker-compose.publish.yml pull
docker compose -f docker-compose.yml -f docker-compose.publish.yml up
| Service | URL |
|---|---|
| Workbench | http://127.0.0.1:8080 |
| API / OpenAPI | http://127.0.0.1:8000/docs |
Override: IMAGE_API=ranasl62/ehr-risk-api:latest in .env.
/docsAPI_KEY authCORS_ORIGINS (comma-separated UI origins; empty → localhost :8080/:4200)# Example: UI on a separate host talking to this API
docker run --rm -p 8000:8000 \
-e CORS_ORIGINS=https://ehr-risk-framework.larucare.com \
ranasl62/ehr-risk-api:latest
Compose / .env: set CORS_ORIGINS= (see .env.example). Render/Vercel: set the same runtime env on the API service.
License: MIT
Content type
Image
Digest
sha256:6425765d4…
Size
675.6 MB
Last updated
3 months ago
docker pull ranasl62/ehr-risk-api