MedCoPilot is a Docker Compose platform for recording a medical consultation, transcribing it, showing live clinical assistance, generating post-session analysis, and optionally reading from or writing to FHIR.
- Docker Desktop or Docker Engine with Compose
- Microphone access in the browser
- One working transcription path:
- Groq API key, or
- local Whisper download with Kaggle credentials
cp .env.example .envSet the minimum values you need:
TRANSCRIBATION_GROQ_API_KEYif you use Groq for ASR- or
TRANSCRIBATION_USE_GROQ_API=falseplusKAGGLE_USERNAMEandKAGGLE_KEYfor local Whisper bootstrap POST_ANALYTICS_LLM_API_KEYif you want post-session analysis on session closeMEDCOPILOT_FHIR_BASE_URLonly if you want to use an external FHIR instead of the bundled local one
REALTIME_ANALYSIS_* defaults already point to a local Ollama endpoint. If you do not use Ollama, switch those values in .env to an OpenAI-compatible provider before starting the stack.
docker compose up --build -ddocker compose ps
curl http://localhost:3000/health
curl http://localhost:8080/health
curl http://localhost:8092/fhir/metadataExpected host endpoints:
- frontend:
http://localhost:3000 - session manager API:
http://localhost:8080 - local FHIR:
http://localhost:8092/fhir
If something is still starting, inspect logs:
docker compose logs -f session-manager
docker compose logs -f transcribation- Open
http://localhost:3000. - Enter any doctor ID.
- Enter a patient ID.
- Start a session, allow microphone access, record, stop, and close the session.
Notes:
- If your configured FHIR already contains that patient, realtime analysis can use patient context.
- If the configured FHIR does not contain that patient, the system still runs, but FHIR-backed context will be empty.
- To preload synthetic demo patients into the bundled local FHIR, use the FHIR guide below.
- Providers, models, API keys, and environment variables: Docs/configuration.md
- FHIR switching, sample data import, and cleanup: Docs/services/fhir.md
- Full setup and troubleshooting: Docs/setup-installation.md
- Deployment and integration notes: Docs/integration-deployment.md
- Repository documentation index: Docs/README.md
frontend/- web UIbackend-session-manager/- API used by the frontendtranscribation/- speech-to-text servicereal_time_analysis/- live clinical assistanceknowledge-extractor/- structured extraction and FHIR write-backpost-session-analytics/- post-session analysisclinical-recommendations-service/- recommendation lookup and PDF deliveryfhir/- local HAPI FHIR server and helper scripts
docker compose up --build -d
docker compose logs -f
docker compose down
docker compose down -v