# vikas00413/pathlabapp architecture

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

- Interactive diagram: https://gitdiagram.com/vikas00413/pathlabapp
- Repository: https://github.com/vikas00413/pathlabapp

## Overview

PathLabApp is a proof-of-concept diagnostic booking guardrail. An operator uploads a prescription or requirement document through the Streamlit dashboard; the LangGraph workflow extracts requirements, checks the simulated catalog, pauses for human review, then validates and finalizes the booking. The excerpts show the dashboard calls and extraction/catalog logic; README documents the review-and-resume workflow. Some graph routing and checkpoint details are not shown, so those links are omitted or marked unverified.

Main entry points: [`src/pathlabapp/lab_streamlit_app.py`](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/lab_streamlit_app.py) (Streamlit dashboard), [`src/pathlabapp/app_graph.py`](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py) (LangGraph runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Operator interface"]
  node_dashboard["Streamlit dashboard"]
end

subgraph group_workflow["Validation workflow"]
  node_graph["LangGraph runtime<br/>[app_graph.py]"]
  node_extract["Visual extraction<br/>[app_graph.py]"]
  node_match["Catalog validation<br/>[app_graph.py]"]
  node_review["Human review gate<br/>[app_graph.py]"]
  node_booking["Booking verification<br/>[app_graph.py]"]
end

subgraph group_data["Catalog data"]
  node_catalog[("Simulated catalog<br/>[app_graph.py]")]
end

node_operator(("Operator"))

node_operator -->|"uploads document"| node_dashboard
node_dashboard -->|"invokes workflow"| node_graph
node_dashboard -->|"displays products"| node_catalog
node_graph -->|"dispatches extraction"| node_extract
node_extract -->|"checks requirements"| node_match
node_match -->|"searches catalog"| node_catalog
node_graph -->|"pauses for review"| node_review
node_dashboard -->|"submits decision"| node_review
node_review -->|"resumes validation"| node_booking

click node_dashboard "https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/lab_streamlit_app.py"
click node_graph "https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py"
click node_extract "https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py"
click node_match "https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py"
click node_review "https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py"
click node_booking "https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py"
click node_catalog "https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.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_dashboard toneBlue
class node_graph,node_extract,node_match,node_review,node_booking toneAmber
class node_catalog toneMint
class node_operator toneIndigo
```

## Components

### Operator interface

- [Streamlit dashboard](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/lab_streamlit_app.py): `src/pathlabapp/lab_streamlit_app.py`

### Validation workflow

- [LangGraph runtime](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py): `src/pathlabapp/app_graph.py`
- [Visual extraction](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py): `src/pathlabapp/app_graph.py`
- [Catalog validation](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py): `src/pathlabapp/app_graph.py`
- [Human review gate](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py): `src/pathlabapp/app_graph.py`
- [Booking verification](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py): `src/pathlabapp/app_graph.py`

### Catalog data

- [Simulated catalog](https://github.com/vikas00413/pathlabapp/blob/main/src/pathlabapp/app_graph.py): `src/pathlabapp/app_graph.py`

### Other components

- **Operator**

## Connections

- Operator → Streamlit dashboard: uploads document (evidence: `src/pathlabapp/lab_streamlit_app.py`)
- Streamlit dashboard → LangGraph runtime: invokes workflow (evidence: `src/pathlabapp/lab_streamlit_app.py`)
- Streamlit dashboard → Simulated catalog: displays products (evidence: `src/pathlabapp/lab_streamlit_app.py`)
- LangGraph runtime → Visual extraction: dispatches extraction (evidence: `README.md`)
- Visual extraction → Catalog validation: checks requirements (evidence: `src/pathlabapp/app_graph.py`)
- Catalog validation → Simulated catalog: searches catalog (evidence: `src/pathlabapp/app_graph.py`)
- LangGraph runtime → Human review gate: pauses for review (evidence: `README.md`)
- Streamlit dashboard → Human review gate: submits decision (evidence: `src/pathlabapp/lab_streamlit_app.py`)
- Human review gate → Booking verification: resumes validation (evidence: `README.md`)
