The Edit Document Template page (Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/settings/templates/documents/:id) provides a rich editor for creating and modifying reusable document templates used across the platform.
Overview
No explicit permission gate is on the/settings/templates/documents/:id route itself; the parent /settings/templates route requires pf.templates.view. The page renders DocumentTemplateEditor, which handles both new (:id = new) and edit (:id = existing ID) modes. The same component is shared for both new and :id sub-routes under letterheads and documents.
Who it’s for
No explicit permission gate on this route. Parent navigation requirespf.templates.view.
Before you start
- Navigate from the Templates Settings page (
/settings/templates). - Ensure you understand the merge fields or variable tokens available in document templates.
Steps
Open the document template editor
Navigate to
/settings/templates/documents/new to create, or /settings/templates/documents/:id to edit.Edit template content
Use
DocumentTemplateEditor to define the template body, title, and any variable fields.Related
Platform Foundation
Platform Foundation overview.
Governance & parity
Documentation coverage and governance.
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/platform.tsx
- src/platform/templates/pages/DocumentTemplateEditor.tsx
- src/platform/templates/pages/TemplatesSettingsPage.tsx