Administrators can create a new document template atDocumentation 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/new. This route renders DocumentTemplateEditor from src/platform/templates/pages/DocumentTemplateEditor.tsx.
Overview
The New Document Template page provides a rich form for authoring document templates. Templates have a name, description, type (policy, procedure, letter, report_cover, other), status (draft, active, deprecated), and an optional letterhead assignment from useOrgLetterheads(). The template body is composed of sections via SectionEditor. An AI-assisted SectionSuggester can propose additional sections. Version history is accessible via DocumentTemplateVersionDiff. A PDF preview can be generated via useGenerateTemplatedPdf(). The same component handles editing at /settings/templates/documents/:id.
Who it’s for
No explicit permission gate on this specific route. Parent route/settings/templates requires pf.templates.view.
Before you start
- You need access to Settings > Templates.
- If you want to attach a letterhead, create it at
/settings/templates/letterheads/newfirst.
Steps
- Navigate to Settings > Templates > Documents and select New.
- Enter a Name and optional Description.
- Select a Type and Status.
- Optionally assign a Letterhead.
- Add and order sections using the section editor. Use the AI suggester if enabled.
- Preview the PDF output if needed.
- Save the template.
Key concepts
Template status —draft templates are not available for document generation; active templates are available; deprecated templates are hidden from new use but preserved for existing documents.
Sections — Ordered content blocks that define the structure of generated documents. Each section has a name and editable body.
Related
Platform Foundation
Platform Foundation overview.
Governance & parity
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/hooks/index.ts