# marthaaparna82-star/careflow-daily-progress-log architecture

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

- Interactive diagram: https://gitdiagram.com/marthaaparna82-star/careflow-daily-progress-log
- Repository: https://github.com/marthaaparna82-star/careflow-daily-progress-log

## Overview

CareFlow is an early healthcare process-analytics project: it prepares synthetic EHR event data in BigQuery and develops SQL analyses of patient journeys and operational performance. The visible loader creates a dataset, parses timestamps, and loads a typed table. The repository also contains query files covering event summaries, patient analysis, waiting, departments, journeys, and repeated events. Query contents were not provided, so their exact inputs and behavior cannot be verified; dashed links indicate this limitation.

Main entry points: [`load_to_bigquery.py`](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/load_to_bigquery.py) (BigQuery loader), [`query_01_event_summary.sql`](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_01_event_summary.sql) (Event summary), [`query_02_patient_analysis.sql`](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_02_patient_analysis.sql) (Patient analysis), [`query_03_er_patients_waiting.sql`](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_03_er_patients_waiting.sql) (ER waiting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data Ingestion"]
  node_loader["BigQuery loader"]
  node_initial_csv["Initial event export"]
  node_timestamp_csv["Prepared event data"]
end

subgraph group_warehouse["Event Warehouse"]
  node_bigquery[("BigQuery table")]
end

subgraph group_analytics["SQL Analytics"]
  node_event_summary["Event summary"]
  node_patient_analysis["Patient analysis"]
  node_er_waiting["ER waiting"]
  node_department_events["Department events"]
  node_patient_journey["Patient journeys"]
  node_repeated_events["Repeated events"]
  node_bottlenecks["Operational bottlenecks"]
end

node_operator(("Project operator"))

node_operator -->|"runs"| node_loader
node_loader -->|"loads table"| node_bigquery
node_event_summary -.->|"queries"| node_bigquery
node_patient_analysis -.->|"queries"| node_bigquery
node_er_waiting -.->|"queries"| node_bigquery
node_department_events -.->|"queries"| node_bigquery
node_patient_journey -.->|"queries"| node_bigquery
node_repeated_events -.->|"queries"| node_bigquery
node_bottlenecks -.->|"queries"| node_bigquery

click node_loader "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/load_to_bigquery.py"
click node_initial_csv "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/job_iRZMCSsTxTWBuAyDTYa121VSfccK.csv"
click node_timestamp_csv "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/raw_ehr_events_timestamp_filled.csv"
click node_event_summary "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_01_event_summary.sql"
click node_patient_analysis "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_02_patient_analysis.sql"
click node_er_waiting "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_03_er_patients_waiting.sql"
click node_department_events "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_04_departments_events.sql"
click node_patient_journey "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_05_patients_journey.sql"
click node_repeated_events "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_06_repeated_events.sql"
click node_bottlenecks "https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_08_bottelnecks.sql"

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_loader,node_initial_csv,node_timestamp_csv toneBlue
class node_bigquery toneAmber
class node_event_summary,node_patient_analysis,node_er_waiting,node_department_events,node_patient_journey,node_repeated_events,node_bottlenecks toneMint
class node_operator toneIndigo
```

## Components

### Data Ingestion

- [BigQuery loader](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/load_to_bigquery.py): `load_to_bigquery.py`
- [Initial event export](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/job_iRZMCSsTxTWBuAyDTYa121VSfccK.csv): `job_iRZMCSsTxTWBuAyDTYa121VSfccK.csv`
- [Prepared event data](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/raw_ehr_events_timestamp_filled.csv): `raw_ehr_events_timestamp_filled.csv`

### Event Warehouse

- **BigQuery table**

### SQL Analytics

- [Event summary](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_01_event_summary.sql): `query_01_event_summary.sql`
- [Patient analysis](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_02_patient_analysis.sql): `query_02_patient_analysis.sql`
- [ER waiting](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_03_er_patients_waiting.sql): `query_03_er_patients_waiting.sql`
- [Department events](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_04_departments_events.sql): `query_04_departments_events.sql`
- [Patient journeys](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_05_patients_journey.sql): `query_05_patients_journey.sql`
- [Repeated events](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_06_repeated_events.sql): `query_06_repeated_events.sql`
- [Operational bottlenecks](https://github.com/marthaaparna82-star/careflow-daily-progress-log/blob/main/query_08_bottelnecks.sql): `query_08_bottelnecks.sql`

### Other components

- **Project operator**

## Connections

- Project operator → BigQuery loader: runs (evidence: `load_to_bigquery.py`)
- BigQuery loader → BigQuery table: loads table (evidence: `load_to_bigquery.py`)
- Event summary → BigQuery table: queries
- Patient analysis → BigQuery table: queries
- ER waiting → BigQuery table: queries
- Department events → BigQuery table: queries
- Patient journeys → BigQuery table: queries
- Repeated events → BigQuery table: queries
- Operational bottlenecks → BigQuery table: queries
