# ccrngd1/hcls-ai-book architecture

> Architecture diagram of the GitHub repository ccrngd1/hcls-ai-book, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ccrngd1/hcls-ai-book
- Repository: https://github.com/ccrngd1/hcls-ai-book

## Overview

#### Purpose and Entry Points
This is a documentation-first Healthcare AI/ML Cookbook, not a deployable healthcare application. It organizes architecture guidance, implementation considerations, and illustrative Python examples across 15 AI/ML categories. Reader entry points are `README.md`, `Home.md`, and the navigable table of contents in `SUMMARY.md`; category-level navigation is in `categories/`.

#### Content Model and Source of Truth
The root Markdown files are the authored source. Each recipe commonly separates a use-case narrative, architecture discussion, and Python illustration, for example `chapter01.01-insurance-card-scanning.md`, `chapter01.01-architecture.md`, and `chapter01.01-python-example.md`. This separation lets architecture patterns evolve independently from scenario prose and sample code.

#### Taxonomy and Navigation
The cookbook’s primary organizing boundary is its 15-category taxonomy, represented by category pages such as `categories/01-document-intelligence.md`, `categories/02-llm-generative.md`, and `categories/14-optimization.md`. Chapters map category numbers to recipes, progressing from simpler to more complex use cases. `SUMMARY.md` and `_Sidebar.md` define cross-book navigation rather than application routing.

#### Recipe Architecture Corpus
The core corpus covers document intelligence, generative AI, anomaly detection, personalization, entity resolution, clustering, predictive analytics, traditional NLP, computer vision, speech, conversational AI, time series, knowledge graphs, optimization, and reinforcement learning. Architecture-specific artifacts are consistently isolated, e.g. `chapter09.10-architecture.md`, `chapter13.06-architecture.md`, and `chapter15.10-architecture.md`. These describe proposed healthcare-system integrations and controls; they are not shared executable platform components.

#### Editorial Production Flow
Planning and authoring flow from portfolio/category plans into recipe specifications and published content: `planning/healthcare-ai-cookbook-v2.md` and `planning/phase2-index.md` define scope; `specs/ch08-r03-draft.md` and related per-recipe artifacts track staged work; root chapter files hold the published Markdown. Role definitions in `personas/planner.yaml`, `personas/tech_writer.yaml`, and `personas/tech_expert_reviewer.yaml` support a multi-role drafting/review process.

#### Review, Findings, and Quality Boundaries
Recipe reviews are persisted separately from published material, preserving an editorial boundary between source and assessment: `reviews/ch09.05-code-review.md`, `reviews/ch09.05-expert-review.md`, and `specs/ch09-r05-findings.md`. Python utilities such as `check_findings.py`, `check_split.py`, and `gen_finding_tasks.py` appear to validate workflow completeness and generate remediation work. Extensive `logs/` and `pending_tasks.json` record automation state and failures, not book content.

#### Publication Outputs and Runtime
Static HTML is prebuilt under `docs/`, with primary browser entry points `docs/index.html`, `docs/Home.html`, and generated recipe pages such as `docs/chapter01.01-architecture.html`. Styling assets are local (`docs/assets/style.css`, `custom.css`); EPUB deliverables are `cookbook-test.epub` and `hcls-ai-ml-cookbook.epub`. The repository contains Python maintenance scripts, but no declared server runtime, cloud infrastructure, database, or external service integration. Healthcare external systems, PHI/HIPAA controls, and FDA/state regulation are domain constraints described by the cookbook’s patterns, not services implemented by this repository.

Main entry points: [`chapter01.01-insurance-card-scanning.md`](https://github.com/ccrngd1/hcls-ai-book/blob/main/chapter01.01-insurance-card-scanning.md) (Published recipe chapters), [`SUMMARY.md`](https://github.com/ccrngd1/hcls-ai-book/blob/main/SUMMARY.md) (Book table of contents), [`categories/01-document-intelligence.md`](https://github.com/ccrngd1/hcls-ai-book/blob/main/categories/01-document-intelligence.md) (15-category taxonomy), [`specs/ch08-r03-draft.md`](https://github.com/ccrngd1/hcls-ai-book/blob/main/specs/ch08-r03-draft.md) (Recipe specifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Authored Cookbook"]
  node_readme["README<br/>reader entry<br/>[README.md]"]
  node_home["Home<br/>reader entry<br/>[Home.md]"]
  node_summary["Book table of contents<br/>navigation source<br/>[SUMMARY.md]"]
  node_sidebar["Sidebar navigation<br/>navigation source<br/>[_Sidebar.md]"]
  node_categories["15-category taxonomy<br/>category pages"]
  node_recipes["Published recipe chapters<br/>Markdown corpus"]
  node_architecture["Architecture artifacts<br/>recipe architecture"]
  node_python_examples["Python illustrations<br/>recipe examples"]
end

subgraph group_editorial["Editorial Workflow"]
  node_portfolio_plan["Portfolio plan<br/>planning source"]
  node_phase_index["Phase index<br/>planning source<br/>[phase2-index.md]"]
  node_recipe_specs["Recipe specifications<br/>staged work spec<br/>[ch08-r03-draft.md]"]
  node_personas["Editorial roles<br/>persona definitions<br/>[planner.yaml]"]
  node_reviews["Persisted reviews<br/>review artifacts"]
  node_findings["Review findings<br/>remediation findings"]
end

subgraph group_maintenance["Workflow Automation"]
  node_validation_scripts{{"Validation utilities<br/>Python maintenance<br/>[check_findings.py]"}}
  node_automation_state["Automation state<br/>pending work state<br/>[pending_tasks.json]"]
end

subgraph group_publication["Published Outputs"]
  node_static_site["Static HTML book<br/>prebuilt site<br/>[index.html]"]
  node_site_assets["Local site styling<br/>static assets<br/>[style.css]"]
  node_epub["EPUB deliverable<br/>ebook output"]
end

node_readme -->|"guides readers to"| node_summary
node_home -->|"uses"| node_summary
node_summary -->|"organizes"| node_categories
node_sidebar -->|"links across"| node_categories
node_categories -->|"maps topics to"| node_recipes
node_recipes -->|"separates"| node_architecture
node_recipes -->|"separates"| node_python_examples
node_portfolio_plan -->|"scopes"| node_phase_index
node_phase_index -->|"plans"| node_recipe_specs
node_personas -.->|"assigns workflow roles"| node_recipe_specs
node_recipe_specs -->|"drives authoring"| node_recipes
node_recipes -.->|"is assessed by"| node_reviews
node_reviews -->|"produces"| node_findings
node_findings -.->|"is checked by"| node_validation_scripts
node_validation_scripts -->|"updates follow-up work"| node_automation_state
node_summary -->|"publishes navigation into"| node_static_site
node_recipes -->|"renders into"| node_static_site
node_site_assets -->|"styles"| node_static_site
node_recipes -->|"packages into"| node_epub

click node_readme "https://github.com/ccrngd1/hcls-ai-book/blob/main/README.md"
click node_home "https://github.com/ccrngd1/hcls-ai-book/blob/main/Home.md"
click node_summary "https://github.com/ccrngd1/hcls-ai-book/blob/main/SUMMARY.md"
click node_sidebar "https://github.com/ccrngd1/hcls-ai-book/blob/main/_Sidebar.md"
click node_categories "https://github.com/ccrngd1/hcls-ai-book/blob/main/categories/01-document-intelligence.md"
click node_recipes "https://github.com/ccrngd1/hcls-ai-book/blob/main/chapter01.01-insurance-card-scanning.md"
click node_architecture "https://github.com/ccrngd1/hcls-ai-book/blob/main/chapter01.01-architecture.md"
click node_python_examples "https://github.com/ccrngd1/hcls-ai-book/blob/main/chapter01.01-python-example.md"
click node_portfolio_plan "https://github.com/ccrngd1/hcls-ai-book/blob/main/planning/healthcare-ai-cookbook-v2.md"
click node_phase_index "https://github.com/ccrngd1/hcls-ai-book/blob/main/planning/phase2-index.md"
click node_recipe_specs "https://github.com/ccrngd1/hcls-ai-book/blob/main/specs/ch08-r03-draft.md"
click node_personas "https://github.com/ccrngd1/hcls-ai-book/blob/main/personas/planner.yaml"
click node_reviews "https://github.com/ccrngd1/hcls-ai-book/blob/main/reviews/chapter09.05-code-review.md"
click node_findings "https://github.com/ccrngd1/hcls-ai-book/blob/main/specs/ch09-r05-findings.md"
click node_validation_scripts "https://github.com/ccrngd1/hcls-ai-book/blob/main/check_findings.py"
click node_automation_state "https://github.com/ccrngd1/hcls-ai-book/blob/main/pending_tasks.json"
click node_static_site "https://github.com/ccrngd1/hcls-ai-book/blob/main/docs/index.html"
click node_site_assets "https://github.com/ccrngd1/hcls-ai-book/blob/main/docs/assets/style.css"
click node_epub "https://github.com/ccrngd1/hcls-ai-book/blob/main/hcls-ai-ml-cookbook.epub"

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_readme,node_home,node_summary,node_sidebar,node_categories,node_recipes,node_architecture,node_python_examples toneBlue
class node_portfolio_plan,node_phase_index,node_recipe_specs,node_personas,node_reviews,node_findings toneAmber
class node_validation_scripts,node_automation_state toneMint
class node_static_site,node_site_assets,node_epub toneRose
```

## Components

### Authored Cookbook

Markdown source and navigation.

- [README](https://github.com/ccrngd1/hcls-ai-book/blob/main/README.md): reader entry · `README.md`
- [Home](https://github.com/ccrngd1/hcls-ai-book/blob/main/Home.md): reader entry · `Home.md`
- [Book table of contents](https://github.com/ccrngd1/hcls-ai-book/blob/main/SUMMARY.md): navigation source · Defines navigable cross-book ordering. · `SUMMARY.md`
- [Sidebar navigation](https://github.com/ccrngd1/hcls-ai-book/blob/main/_Sidebar.md): navigation source · `_Sidebar.md`
- [15-category taxonomy](https://github.com/ccrngd1/hcls-ai-book/blob/main/categories/01-document-intelligence.md): category pages · Primary boundary for all recipe topics. · `categories/01-document-intelligence.md`
- [Published recipe chapters](https://github.com/ccrngd1/hcls-ai-book/blob/main/chapter01.01-insurance-card-scanning.md): Markdown corpus · Narrative, architecture, and Python illustration files. · `chapter01.01-insurance-card-scanning.md`
- [Architecture artifacts](https://github.com/ccrngd1/hcls-ai-book/blob/main/chapter01.01-architecture.md): recipe architecture · Proposed healthcare integrations and controls, not runtime components. · `chapter01.01-architecture.md`
- [Python illustrations](https://github.com/ccrngd1/hcls-ai-book/blob/main/chapter01.01-python-example.md): recipe examples · Illustrative code kept separate from scenario prose. · `chapter01.01-python-example.md`

### Editorial Workflow

Planning, specifications, and review artifacts.

- [Portfolio plan](https://github.com/ccrngd1/hcls-ai-book/blob/main/planning/healthcare-ai-cookbook-v2.md): planning source · `planning/healthcare-ai-cookbook-v2.md`
- [Phase index](https://github.com/ccrngd1/hcls-ai-book/blob/main/planning/phase2-index.md): planning source · `planning/phase2-index.md`
- [Recipe specifications](https://github.com/ccrngd1/hcls-ai-book/blob/main/specs/ch08-r03-draft.md): staged work spec · Tracks per-recipe drafting work. · `specs/ch08-r03-draft.md`
- [Editorial roles](https://github.com/ccrngd1/hcls-ai-book/blob/main/personas/planner.yaml): persona definitions · Planner, technical writer, and expert reviewer roles. · `personas/planner.yaml`
- [Persisted reviews](https://github.com/ccrngd1/hcls-ai-book/blob/main/reviews/chapter09.05-code-review.md): review artifacts · Assessment remains separate from published material. · `reviews/chapter09.05-code-review.md`
- [Review findings](https://github.com/ccrngd1/hcls-ai-book/blob/main/specs/ch09-r05-findings.md): remediation findings · `specs/ch09-r05-findings.md`

### Workflow Automation

Utilities and state for editorial follow-up.

- [Validation utilities](https://github.com/ccrngd1/hcls-ai-book/blob/main/check_findings.py): Python maintenance · Check workflow completeness and generate remediation tasks. · `check_findings.py`
- [Automation state](https://github.com/ccrngd1/hcls-ai-book/blob/main/pending_tasks.json): pending work state · Records outstanding remediation work and failures. · `pending_tasks.json`

### Published Outputs

Prebuilt static book deliverables.

- [Static HTML book](https://github.com/ccrngd1/hcls-ai-book/blob/main/docs/index.html): prebuilt site · Browser-ready publication with no server runtime. · `docs/index.html`
- [Local site styling](https://github.com/ccrngd1/hcls-ai-book/blob/main/docs/assets/style.css): static assets · `docs/assets/style.css`
- [EPUB deliverable](https://github.com/ccrngd1/hcls-ai-book/blob/main/hcls-ai-ml-cookbook.epub): ebook output · `hcls-ai-ml-cookbook.epub`

## Connections

- README → Book table of contents: guides readers to
- Home → Book table of contents: uses
- Book table of contents → 15-category taxonomy: organizes
- Sidebar navigation → 15-category taxonomy: links across
- 15-category taxonomy → Published recipe chapters: maps topics to
- Published recipe chapters → Architecture artifacts: separates
- Published recipe chapters → Python illustrations: separates
- Portfolio plan → Phase index: scopes
- Phase index → Recipe specifications: plans
- Editorial roles → Recipe specifications: assigns workflow roles
- Recipe specifications → Published recipe chapters: drives authoring
- Published recipe chapters → Persisted reviews: is assessed by
- Persisted reviews → Review findings: produces
- Review findings → Validation utilities: is checked by
- Validation utilities → Automation state: updates follow-up work
- Book table of contents → Static HTML book: publishes navigation into
- Published recipe chapters → Static HTML book: renders into
- Local site styling → Static HTML book: styles
- Published recipe chapters → EPUB deliverable: packages into
