How databricks-industry-solutions/lakercm works
LakeRCM is a Databricks revenue-cycle review accelerator. A document enters the lakehouse pipeline for extraction, code validation, and confidence scoring; uncertain cases reach the clinician-facing reviewer, where a LangGraph assistant can answer policy questions and cite sources. Reviewer decisions feed operational storage and analytics, while agent traces and scored feedback support evaluation and gated prompt improvement. The README documents pipeline and analytics stages whose implementation is not in the supplied tree; those relationships are cited to the README rather than presented as inspected source.
Main entry points: graph.py Agent graph · main.py Agent API · App.jsx Reviewer app · documents.py Review routes
Components 27
Document intelligence
- Document arrival
- Parse and score
- Code validation
Clinician review
- Reviewer app
reviewer_app/frontend/src/App.jsx - Extraction review
reviewer_app/frontend/src/components/ExtractionComparison.jsx - In-document assistant
reviewer_app/frontend/src/components/ReviewerAssistant/ReviewerAssistantPane.jsx - Review routes
reviewer_app/routes/documents.py - Chat route
reviewer_app/routes/chat.py
Agent and data services
- Operational database
reviewer_app/services/lakehouse_db.py - Agent API
agent_app/main.py - Agent graph
agent_app/agent/graph.py - Agent tools
agent_app/agent/tools.py - Model routing
agent_app/agent/routing.py - LLM client
agent_app/agent/llm.py - Agent configuration
agent_app/config.py - Conversation checkpoints
agent_app/services/checkpointer.py - Agent memory store
agent_app/services/store.py - Policy retrieval
agent_app/agent/tools.py
Evaluation and learning
- Review analytics
- Tracing and feedback
agent_app/services/observability.py - Evaluation datasets
agent_app/eval/dataset.py - Evaluation and scoring
agent_app/eval/run_eval.py - Prompt optimization
agent_app/eval/optimize.py
Other components
- Clinician
- Unity Catalog
- Payer policies
- Model service
Connections 31
- Document arrival → Parse and score: submits documents
- Parse and score → Code validation: extracts then validates
- Parse and score → Unity Catalog: writes curated data
- Code validation → Reviewer app: routes uncertain cases
- Clinician → Reviewer app: reviews cases
- Reviewer app → Extraction review: renders review
reviewer_app/frontend/src/App.jsx - Reviewer app → In-document assistant: opens assistant
- Extraction review → Review routes: submits decisions
- In-document assistant → Chat route: sends chat
- In-document assistant → Review routes: records proposals
reviewer_app/frontend/src/components/ReviewerAssistant/ReviewerAssistantPane.jsx - Review routes → Operational database: reads and writes reviews
- Chat route → Agent API: calls agent
reviewer_app/routes/chat.py - Agent API → Agent graph: runs graph
agent_app/main.py - Agent graph → Agent tools: dispatches tools
agent_app/agent/graph.py - Agent graph → LLM client: uses model client
agent_app/agent/graph.py - Agent graph → Conversation checkpoints: persists state
agent_app/agent/graph.py - Agent graph → Agent memory store: uses memory store
agent_app/agent/graph.py - Agent tools → Operational database: queries records
agent_app/agent/tools.py - Agent tools → Policy retrieval: retrieves passages
agent_app/agent/tools.py - Policy retrieval → Payer policies: searches policies
- LLM client → Model service: calls model endpoint
agent_app/agent/llm.py - Agent API → Model routing: selects model tier
agent_app/main.py - Model routing → Agent configuration: reads routing settings
agent_app/agent/routing.py - Review routes → Review analytics: triggers refresh
- Operational database → Review analytics: syncs review data
- Review analytics → Unity Catalog: feeds reporting
- Agent API → Tracing and feedback: traces turns
agent_app/main.py - Tracing and feedback → Evaluation datasets: supplies feedback
- Evaluation datasets → Evaluation and scoring: provides examples
- Evaluation and scoring → Prompt optimization: scores candidates
- Prompt optimization → Model service: proposes prompt updates