Working with Word templates

Markdown

A Word template gives exported reports your existing document layout: fonts, margins, headings, logos, tables, headers, and footers. Start with a .docx file you already use, including a completed report, or download the starter template from Word templates in your workspace.

Prepare a template in your workspace

Upload the document and give it a name. In the editor, remove report-specific text you do not want to reuse, including extra findings, impression items, and blank paragraphs. Select the text that should be filled by the API, then choose a placeholder from the sidebar. Insert Findings and Impression at least once each.

Findings
{{ findings }}

Impression
{{ impression }}

Technique
{{ technique }}

A placeholder marks where generated text belongs. The braces are literal: {{ findings }} is replaced with findings, rather than printed in the completed report. These placeholders are separate from the study labels used in Standards.

Choose the fields to include

PlaceholderWhat fills it
{{ findings }}Ordered findings from the structured report. Required for Word generation and samples.
{{ impression }}Ordered impression items. Required for Word generation and samples.
{{ technique }}Technique text supplied with the document request, or available from the report or DICOM metadata.
{{ patient_name }}Patient name returned in the report.
{{ date_of_birth }}Date of birth returned in the report.
{{ referring_physician }}Referring physician returned in the report.
{{ patient_id }}Patient ID returned in the report.
{{ date_of_study }}Date of study returned in the report.
{{ exam_title }}The examination title you supply with the document request.
{{ clinical_history }}The clinical history you supply with the document request.
{{ comparison }}The comparison text you supply with the document request.
{{ review_flags }}Issues that need review, when the report or Technique result includes them.
{{ today }}The server’s current date in YYYY-MM-DD format when the document is generated.

Findings and Impression placeholders are required. All other placeholders are optional. The five patient and study metadata placeholders receive their matching report strings, including "Not provided." when a value is unavailable. An empty optional placeholder in a standalone section can remove that section. Literal wording elsewhere in the template remains, so remove text that should not appear in every report. Review flags are preserved in the document even if you did not add their placeholder.

Control paragraphs and formatting

One Findings placeholder can expand into many Word paragraphs; you do not need to insert a placeholder for each finding. Findings array entries and blank-line-separated blocks become paragraphs. Impression entries and their lines become paragraphs. The generated text inherits the placeholder’s formatting unless you select an override.

Below Placeholders, use the separate Findings and Impression controls for bold, underline, italics, bullets, and blank paragraphs between items. Save the template, then download a sample to see three example findings and three example impression items using your selected formatting.

The editor can delete and reorder ordinary paragraphs and remove page or column breaks. Some paragraphs contain images, section boundaries, fields, or other protected structure; their markers explain why an operation is unavailable. Use Word for complex layout changes before uploading the revised document.

Use the saved template in your integration

Read the template to obtain its id and current revision. Supply these as template_id and template_revision when generating a Word document or a complete Word report. A revision identifies one saved version, so a later edit cannot change the template used by an already submitted request.

Uploads can be up to 2,000,000 bytes. Generated Word files can be up to 4,000,000 bytes. The workspace can hold up to 10 templates and retains the latest 20 saved revisions for each. A revision that has been removed from that history cannot start a new generation.

Download template returns the saved .docx. The separate Findings and Impression formatting controls are saved with its revision and applied during generation; they are not embedded in the downloaded template. Reuploading that file creates a new template with default controls.

Upload a Word template

Update a Word template

Generate a Word document

Complete Word report

Select and copy