> ## 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.

# Overview of Medera Text Generation

> SOAP notes, documents, and clinical reasoning.

Medera Text Generation produces reliable, citation-anchored documentation in your practice templates — SOAP notes, referral letters, discharge summaries, prior authorization letters, and the full validated note lifecycle.

## Endpoints

| Capability                            | Endpoint                                                                     | Surface     |
| :------------------------------------ | :--------------------------------------------------------------------------- | :---------- |
| Post-visit analysis                   | `POST /api/therapy/analyze-session`                                          | AI Services |
| SOAP note (standard)                  | `POST /api/therapy/generate-soap-note`                                       | AI Services |
| SOAP note (specialty / billing codes) | `POST /api/therapy/generate-soap-note-enhanced`                              | AI Services |
| Post-visit insights                   | `POST /api/therapy/post-visit-insights`                                      | AI Services |
| Note validation                       | `POST /api/therapy/validate-note`                                            | AI Services |
| Code suggestions                      | `POST /api/therapy/suggest-codes`                                            | AI Services |
| Note lifecycle                        | `POST /api/therapy/notes/{id}/{transition\|approve\|finalize\|track-change}` | AI Services |
| Templates                             | `GET /api/therapy/templates`                                                 | AI Services |
| Note persistence                      | `/api/clinical-notes` · `/api/note-templates`                                | Backend     |

## Model selection

| Use                       | Model              | Temperature | Response format       |
| :------------------------ | :----------------- | :---------- | :-------------------- |
| SOAP, post-visit analysis | `gpt-4o`           | 0.3         | JSON object           |
| Real-time NLP / classify  | `gpt-4o-mini`      | 0.3         | text / JSON           |
| Voice agent LLM           | `Medera reasoning` | 0.3         | text (max 500 tokens) |

## What's next

<CardGroup cols={2}>
  <Card title="Standard documents" icon="https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/file-text.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=7cc7f358d5e4af95c1bc5110b45a9b68" href="/textgen/documents-standard" width="40" height="40" data-path="icons/ui/file-text.svg">
    Generate via template.
  </Card>

  <Card title="Specialty documents" icon="https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/file-pen.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=7a092163a19603cf99af65ed0de4639b" href="/textgen/documents-advanced" width="40" height="40" data-path="icons/ui/file-pen.svg">
    Enhanced + billing codes.
  </Card>

  <Card title="Facts & Reasoning" icon="https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/search.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=51e30cf32707024c17cef3b0c6626b81" href="/textgen/factsr" width="40" height="40" data-path="icons/ui/search.svg">
    Structured facts extraction.
  </Card>

  <Card title="Clinical RAG" icon="https://mintcdn.com/medera-357fd587/iC-6rAuwl-0aQSw_/icons/ui/library.svg?fit=max&auto=format&n=iC-6rAuwl-0aQSw_&q=85&s=203ecc36d66e424c2008dade993273ae" href="/textgen/rag-overview" width="40" height="40" data-path="icons/ui/library.svg">
    Hybrid evidence retrieval.
  </Card>
</CardGroup>
