# manojchoragudi/hospital_adf_repo architecture

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

- Interactive diagram: https://gitdiagram.com/manojchoragudi/hospital_adf_repo
- Repository: https://github.com/manojchoragudi/hospital_adf_repo

## Overview

CareSync appears to be a hospital-data analytics project organized around Azure Data Factory pipelines and Databricks notebooks. The tree names source-to-silver and silver-to-gold stages, plus Gold notebooks for daily summaries, lab trends, and patient 360. The README only identifies the project; no source excerpts were available, so the relationships below are inferred from filenames and are marked unverified rather than presented as documented calls.

Main entry points: [`linkedService/LS_ADLS.json`](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_ADLS.json) (Azure Data Lake), [`pipeline/PL_SILVER_TO_GOLD.json`](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SILVER_TO_GOLD.json) (Silver-to-gold pipeline), [`pipeline/PL_SOURCE_TO_SILVER_MAIN.json`](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SOURCE_TO_SILVER_MAIN.json) (Source-to-silver main), [`factory/adf-hospital-caresync.json`](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/factory/adf-hospital-caresync.json) (CareSync factory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data ingestion"]
  node_source_silver_main["Source-to-silver main"]
  node_source_silver_inner["Source-to-silver inner"]
  node_landing_bronze["Landing to bronze"]
end

subgraph group_transform["Data transformation"]
  node_bronze_silver["Bronze to silver"]
  node_silver_gold["Silver-to-gold pipeline"]
  node_silver_check["Silver checks<br/>[silver_check.ipynb]"]
  node_calendar["Calendar preparation"]
end

subgraph group_analytics["Gold analytics"]
  node_gold_daily["Hospital daily summary"]
  node_gold_lab["Lab test trends"]
  node_gold_patient["Patient 360"]
  node_gold_store["Gold data"]
end

subgraph group_platform["Azure platform"]
  node_adf_factory["CareSync factory"]
  node_adls[("Azure Data Lake<br/>[LS_ADLS.json]")]
  node_databricks["Azure Databricks"]
  node_azure_sql[("Azure SQL")]
  node_postgres[("PostgreSQL<br/>[LS_PostgreSql.json]")]
  node_key_vault["Azure Key Vault"]
  node_email_pipeline["Email pipeline<br/>[PL_SEND_EMAIL.json]"]
end

node_hospital_sources(("Hospital sources"))

node_hospital_sources -.->|"supplies data"| node_source_silver_main
node_source_silver_main -.->|"dispatches"| node_source_silver_inner
node_source_silver_main -.->|"runs"| node_landing_bronze
node_landing_bronze -.->|"writes landing"| node_adls
node_bronze_silver -.->|"reads bronze"| node_adls
node_bronze_silver -.->|"writes silver"| node_adls
node_silver_check -.->|"checks silver"| node_adls
node_calendar -.->|"prepares calendar"| node_adls
node_silver_gold -.->|"runs"| node_gold_daily
node_silver_gold -.->|"runs"| node_gold_lab
node_silver_gold -.->|"runs"| node_gold_patient
node_silver_gold -.->|"produces"| node_gold_store
node_adf_factory -.->|"orchestrates"| node_source_silver_main
node_adf_factory -.->|"orchestrates"| node_silver_gold
node_adls -.->|"used by"| node_databricks
node_source_silver_inner -.->|"uses source"| node_postgres
node_source_silver_inner -.->|"uses sink"| node_azure_sql
node_adf_factory -.->|"uses secrets"| node_key_vault

click node_adf_factory "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/factory/adf-hospital-caresync.json"
click node_source_silver_main "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SOURCE_TO_SILVER_MAIN.json"
click node_source_silver_inner "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SOURCE_TO_SILVER_INNER.json"
click node_landing_bronze "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/landing-to-bronze.ipynb"
click node_bronze_silver "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Bronze%20-to-silver.ipynb"
click node_silver_gold "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SILVER_TO_GOLD.json"
click node_silver_check "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/silver_check.ipynb"
click node_calendar "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Prepare%20Calendar%20table.ipynb"
click node_gold_daily "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/NB_hospital_daily_summary.ipynb"
click node_gold_lab "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/NB_lab_test_trends.ipynb"
click node_gold_patient "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/NB_patient_360.ipynb"
click node_gold_store "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/sttm_silver_to_gold.xlsx"
click node_adls "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_ADLS.json"
click node_databricks "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_AzureDatabricks.json"
click node_azure_sql "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_AzureSqlDatabase.json"
click node_postgres "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_PostgreSql.json"
click node_key_vault "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_AzureKeyVault.json"
click node_email_pipeline "https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SEND_EMAIL.json"

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_source_silver_main,node_source_silver_inner,node_landing_bronze toneBlue
class node_bronze_silver,node_silver_gold,node_silver_check,node_calendar toneAmber
class node_gold_daily,node_gold_lab,node_gold_patient,node_gold_store toneMint
class node_adf_factory,node_adls,node_databricks,node_azure_sql,node_postgres,node_key_vault,node_email_pipeline toneRose
class node_hospital_sources toneIndigo
```

## Components

### Data ingestion

- [Source-to-silver main](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SOURCE_TO_SILVER_MAIN.json): `pipeline/PL_SOURCE_TO_SILVER_MAIN.json`
- [Source-to-silver inner](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SOURCE_TO_SILVER_INNER.json): `pipeline/PL_SOURCE_TO_SILVER_INNER.json`
- [Landing to bronze](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/landing-to-bronze.ipynb): `landing-to-bronze.ipynb`

### Data transformation

- [Bronze to silver](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Bronze%20-to-silver.ipynb): `Bronze -to-silver.ipynb`
- [Silver-to-gold pipeline](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SILVER_TO_GOLD.json): `pipeline/PL_SILVER_TO_GOLD.json`
- [Silver checks](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/silver_check.ipynb): `silver_check.ipynb`
- [Calendar preparation](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Prepare%20Calendar%20table.ipynb): `Prepare Calendar table.ipynb`

### Gold analytics

- [Hospital daily summary](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/NB_hospital_daily_summary.ipynb): `Gold/NB_hospital_daily_summary.ipynb`
- [Lab test trends](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/NB_lab_test_trends.ipynb): `Gold/NB_lab_test_trends.ipynb`
- [Patient 360](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/NB_patient_360.ipynb): `Gold/NB_patient_360.ipynb`
- [Gold data](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/Gold/sttm_silver_to_gold.xlsx): `Gold/sttm_silver_to_gold.xlsx`

### Azure platform

- [CareSync factory](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/factory/adf-hospital-caresync.json): `factory/adf-hospital-caresync.json`
- [Azure Data Lake](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_ADLS.json): `linkedService/LS_ADLS.json`
- [Azure Databricks](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_AzureDatabricks.json): `linkedService/LS_AzureDatabricks.json`
- [Azure SQL](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_AzureSqlDatabase.json): `linkedService/LS_AzureSqlDatabase.json`
- [PostgreSQL](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_PostgreSql.json): `linkedService/LS_PostgreSql.json`
- [Azure Key Vault](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/linkedService/LS_AzureKeyVault.json): `linkedService/LS_AzureKeyVault.json`
- [Email pipeline](https://github.com/manojchoragudi/hospital_adf_repo/blob/main/pipeline/PL_SEND_EMAIL.json): `pipeline/PL_SEND_EMAIL.json`

### Other components

- **Hospital sources**

## Connections

- Hospital sources → Source-to-silver main: supplies data
- Source-to-silver main → Source-to-silver inner: dispatches
- Source-to-silver main → Landing to bronze: runs
- Landing to bronze → Azure Data Lake: writes landing
- Bronze to silver → Azure Data Lake: reads bronze
- Bronze to silver → Azure Data Lake: writes silver
- Silver checks → Azure Data Lake: checks silver
- Calendar preparation → Azure Data Lake: prepares calendar
- Silver-to-gold pipeline → Hospital daily summary: runs
- Silver-to-gold pipeline → Lab test trends: runs
- Silver-to-gold pipeline → Patient 360: runs
- Silver-to-gold pipeline → Gold data: produces
- CareSync factory → Source-to-silver main: orchestrates
- CareSync factory → Silver-to-gold pipeline: orchestrates
- Azure Data Lake → Azure Databricks: used by
- Source-to-silver inner → PostgreSQL: uses source
- Source-to-silver inner → Azure SQL: uses sink
- CareSync factory → Azure Key Vault: uses secrets
