# venkatgade/doctor_utiliztion_credit_realization architecture

> Architecture diagram of the GitHub repository venkatgade/doctor_utiliztion_credit_realization, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/venkatgade/doctor_utiliztion_credit_realization
- Repository: https://github.com/venkatgade/doctor_utiliztion_credit_realization

## Overview

This Django application models doctor and hospital performance from operational healthcare data, computes measures and KPIs, and supports intelligence, recommendations, and agent-assisted analysis. The apparent central workflow is ingest and validate data, map it to canonical entities, compute results, then derive signals and actions. The source index supports several module dependencies, but README content is absent and API views and URL routing were not sampled, so the user-facing request path and some subsystem connections cannot be verified.

Main entry points: [`doctor-performance/edns_engine/generic_pipeline.py`](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/generic_pipeline.py) (Generic KPI computation), [`doctor-performance/edns_ingestion/pipeline.py`](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_ingestion/pipeline.py) (Upload validation and mapping), [`doctor-performance/edns_incremental/engine.py`](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_incremental/engine.py) (Incremental recalculation), [`doctor-performance/edns_engine/models.py`](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/models.py) (Runs and KPI results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data ingestion"]
  node_ingest_pipeline["Upload validation and mapping<br/>[pipeline.py]"]
  node_upload_records[("Upload and staging records<br/>[models.py]")]
  node_ingest_service["Ingestion service<br/>[services.py]"]
end

subgraph group_compute["Performance computation"]
  node_demo_compute["Demo analytics pipeline<br/>[demo_pipeline.py]"]
  node_compute_pipeline["Generic KPI computation"]
  node_formula["Measure formulas<br/>[formula.py]"]
  node_results[("Runs and KPI results<br/>[models.py]")]
  node_incremental["Incremental recalculation<br/>[engine.py]"]
end

subgraph group_insight["Intelligence and agents"]
  node_intelligence[("Signals and actions<br/>[models.py]")]
  node_ml["Predictive models<br/>[ml.py]"]
  node_agent_services["Agent learning services<br/>[services.py]"]
  node_agent_knowledge["Agent knowledge<br/>[knowledge.py]"]
  node_agent_records[("Agent runs and artifacts<br/>[models.py]")]
  node_llm["Ollama client<br/>[llm_client.py]"]
end

subgraph group_platform["Domain data"]
  node_metadata[("Entity and KPI metadata<br/>[models.py]")]
  node_operating_model["Operating model registry<br/>[operating_model.py]"]
  node_canonical[("Canonical healthcare records<br/>[models.py]")]
  node_core[("Shared domain records<br/>[models.py]")]
end

node_operator(("Data operator"))
node_api["REST API views<br/>[views.py]"]

node_ingest_pipeline -->|"records uploads"| node_upload_records
node_ingest_pipeline -->|"seeds definitions"| node_metadata
node_ingest_pipeline -->|"maps entities"| node_canonical
node_ingest_pipeline -->|"seeds registry"| node_operating_model
node_ingest_service -->|"uses pipeline"| node_ingest_pipeline
node_ingest_service -->|"uses demo run"| node_demo_compute
node_compute_pipeline -->|"reads definitions"| node_metadata
node_compute_pipeline -->|"reads entities"| node_canonical
node_compute_pipeline -->|"reads ingested data"| node_upload_records
node_compute_pipeline -->|"evaluates formulas"| node_formula
node_compute_pipeline -->|"stores results"| node_results
node_incremental -->|"runs computation"| node_compute_pipeline
node_incremental -->|"ingests missing data"| node_ingest_pipeline
node_incremental -->|"creates calculation runs"| node_results
node_intelligence -->|"references KPI results"| node_results
node_ml -->|"models action outcomes"| node_intelligence
node_agent_services -->|"trains and scores"| node_ml
node_agent_services -->|"reads agent bindings"| node_agent_records
node_agent_knowledge -->|"uses client"| node_llm
node_operator -.->|"submits requests"| node_api

click node_ingest_pipeline "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_ingestion/pipeline.py"
click node_upload_records "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_ingestion/models.py"
click node_ingest_service "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_ingestion/services.py"
click node_metadata "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_metadata/models.py"
click node_operating_model "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_metadata/operating_model.py"
click node_canonical "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_canonical/models.py"
click node_core "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_core/models.py"
click node_demo_compute "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/demo_pipeline.py"
click node_compute_pipeline "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/generic_pipeline.py"
click node_formula "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/formula.py"
click node_results "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/models.py"
click node_incremental "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_incremental/engine.py"
click node_intelligence "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_intelligence/models.py"
click node_ml "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_intelligence/ml.py"
click node_agent_services "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/services.py"
click node_agent_knowledge "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/knowledge.py"
click node_agent_records "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/models.py"
click node_llm "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/llm_client.py"
click node_api "https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_api/views.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ingest_pipeline,node_upload_records,node_ingest_service,node_api toneBlue
class node_demo_compute,node_compute_pipeline,node_formula,node_results,node_incremental toneAmber
class node_intelligence,node_ml,node_agent_services,node_agent_knowledge,node_agent_records,node_llm toneMint
class node_metadata,node_operating_model,node_canonical,node_core toneRose
class node_operator toneIndigo
```

## Components

### Data ingestion

- [Upload validation and mapping](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_ingestion/pipeline.py): `doctor-performance/edns_ingestion/pipeline.py`
- [Upload and staging records](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_ingestion/models.py): `doctor-performance/edns_ingestion/models.py`
- [Ingestion service](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_ingestion/services.py): `doctor-performance/edns_ingestion/services.py`

### Performance computation

- [Demo analytics pipeline](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/demo_pipeline.py): `doctor-performance/edns_engine/demo_pipeline.py`
- [Generic KPI computation](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/generic_pipeline.py): `doctor-performance/edns_engine/generic_pipeline.py`
- [Measure formulas](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/formula.py): `doctor-performance/edns_engine/formula.py`
- [Runs and KPI results](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_engine/models.py): `doctor-performance/edns_engine/models.py`
- [Incremental recalculation](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_incremental/engine.py): `doctor-performance/edns_incremental/engine.py`

### Intelligence and agents

- [Signals and actions](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_intelligence/models.py): `doctor-performance/edns_intelligence/models.py`
- [Predictive models](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_intelligence/ml.py): `doctor-performance/edns_intelligence/ml.py`
- [Agent learning services](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/services.py): `doctor-performance/edns_agents/services.py`
- [Agent knowledge](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/knowledge.py): `doctor-performance/edns_agents/knowledge.py`
- [Agent runs and artifacts](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/models.py): `doctor-performance/edns_agents/models.py`
- [Ollama client](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_agents/llm_client.py): `doctor-performance/edns_agents/llm_client.py`

### Domain data

- [Entity and KPI metadata](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_metadata/models.py): `doctor-performance/edns_metadata/models.py`
- [Operating model registry](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_metadata/operating_model.py): `doctor-performance/edns_metadata/operating_model.py`
- [Canonical healthcare records](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_canonical/models.py): `doctor-performance/edns_canonical/models.py`
- [Shared domain records](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_core/models.py): `doctor-performance/edns_core/models.py`

### Other components

- **Data operator**
- [REST API views](https://github.com/venkatgade/doctor_utiliztion_credit_realization/blob/main/doctor-performance/edns_api/views.py): `doctor-performance/edns_api/views.py`

## Connections

- Upload validation and mapping → Upload and staging records: records uploads (evidence: `doctor-performance/edns_ingestion/pipeline.py`)
- Upload validation and mapping → Entity and KPI metadata: seeds definitions (evidence: `doctor-performance/edns_ingestion/pipeline.py`)
- Upload validation and mapping → Canonical healthcare records: maps entities (evidence: `doctor-performance/edns_ingestion/pipeline.py`)
- Upload validation and mapping → Operating model registry: seeds registry (evidence: `doctor-performance/edns_ingestion/pipeline.py`)
- Ingestion service → Upload validation and mapping: uses pipeline (evidence: `doctor-performance/edns_ingestion/services.py`)
- Ingestion service → Demo analytics pipeline: uses demo run (evidence: `doctor-performance/edns_ingestion/services.py`)
- Generic KPI computation → Entity and KPI metadata: reads definitions (evidence: `doctor-performance/edns_engine/generic_pipeline.py`)
- Generic KPI computation → Canonical healthcare records: reads entities (evidence: `doctor-performance/edns_engine/generic_pipeline.py`)
- Generic KPI computation → Upload and staging records: reads ingested data (evidence: `doctor-performance/edns_engine/generic_pipeline.py`)
- Generic KPI computation → Measure formulas: evaluates formulas (evidence: `doctor-performance/edns_engine/generic_pipeline.py`)
- Generic KPI computation → Runs and KPI results: stores results (evidence: `doctor-performance/edns_engine/generic_pipeline.py`)
- Incremental recalculation → Generic KPI computation: runs computation (evidence: `doctor-performance/edns_incremental/engine.py`)
- Incremental recalculation → Upload validation and mapping: ingests missing data (evidence: `doctor-performance/edns_incremental/engine.py`)
- Incremental recalculation → Runs and KPI results: creates calculation runs (evidence: `doctor-performance/edns_incremental/engine.py`)
- Signals and actions → Runs and KPI results: references KPI results (evidence: `doctor-performance/edns_intelligence/models.py`)
- Predictive models → Signals and actions: models action outcomes (evidence: `doctor-performance/edns_agents/services.py`)
- Agent learning services → Predictive models: trains and scores (evidence: `doctor-performance/edns_agents/services.py`)
- Agent learning services → Agent runs and artifacts: reads agent bindings (evidence: `doctor-performance/edns_agents/services.py`)
- Agent knowledge → Ollama client: uses client (evidence: `doctor-performance/edns_agents/knowledge.py`)
- Data operator → REST API views: submits requests
