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

# Advanced Document Generation

> Specialty templates + billing codes

```text theme={"system"}
POST /api/therapy/generate-soap-note-enhanced
```

### Body

```json theme={"system"}
{ "session_data": {... }, "patient_context": {... }, "specialty": "psychiatry", "template_config": { "format_version": "v3", "include_assessments": true, "include_billing_codes": true }
}
```

`specialty` values: `psychiatry`, `primary_care`, `cardiology`, `neurology`,...
