> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medera.info/llms.txt
> Use this file to discover all available pages before exploring further.

# Text Generation Architecture

> How documents, templates, and facts compose

```text theme={"system"}

TRANSCRIPT  →  Facts Extraction  →  Fact Store (tenant-scoped)
                                              │
TEMPLATE (versioned, validated)  ─────────────┤
                                              ▼
                                  Document Assembly Engine
                                              │
                                              ▼
                              Draft Document + Span Anchors
                                              │
                                              ▼
                                      Clinician Review
                                              │
                                              ▼
                                 Signed Note → EHR (FHIR)

```
