Configure narrative templates to customize how Vault generates narrative documents for Cases. Using custom narrative templates saves case processing time by generating a narrative document with only case-specific details. When users open a Case, Vault generates a narrative document using a document template and includes details based on the Case’s details. You can configure custom templates for any combination of Organization, Report Type, Study Type, Study, and Localization.

Prerequisites

Before configuring this feature in your Vault, you must complete the following:

In Vaults using Veeva AI for Safety, you can enable the Narrative Agent to allow users to run the agent on narrative documents.

Narrative Template Types

When generating narrative documents on a Case, Vault determines which document template to use for narrative generation based on the template type. Vault provides the following types:

  • Default: Generates the narrative document for all Cases manually entered by a user and Cases promoted from an Inbox Item, except Cases matched to any custom templates.
  • Blinded: Generates the narrative document for blinded study Cases. If your Vault does not include an active Blinded template, Vault applies the Default template. Blinded study Cases imported from E2B files use the E2B Import template.
  • E2B Import: Generates the narrative document for Cases created from an imported E2B file and Cases created from the Import Narrative Vault API.

You can add a blinded template, update templates, and create custom templates as needed.

Add a Blinded Template

If a blinded template does not already exist in your Vault, you can add one:

  1. Navigate to Business Admin > Templates.
  2. In the Template Location tree, expand Template > Narrative (Template) > Default.
  3. Select Create > Document Template.
  4. On the Create Document Template page, enter the following details:
    • Type: Select Basic Document Template.
    • Label: Enter Narrative Template Blinded.
    • Name: Ensure the name is narrative_template_blinded__c.
  5. In the More Information section, select Upload File.
  6. Select Save.

Update Templates

You can update narrative document templates from the Document & Binder Template page:

  1. Navigate to Business Admin > Templates.
  2. In the Template Location tree, expand Template > Narrative (Template) and select the template you want to update.
  3. Select Edit.
  4. In the More Information section, select Upload File.
  5. In the dialog, open the applicable DOCX file.
  6. Select Save.

Create Custom Narrative Templates

You can create custom controlled document templates to fit the specific needs of your organization, which Vault uses as the source file for the template.

Vault applies custom templates during E2B import or Case promotion. Vault applies the narrative template that shares the most details with the Case. If no custom template details match, Vault applies a system-provided narrative template. When you create a domestic Case, Vault generates a localized narrative document using a localized template, if available. Otherwise, Vault applies the global narrative template. When generating narrative documents on a Case, Vault applies custom templates based on the record’s details, including:

  • Case Type (E2B or Manual)
  • Organization
  • Report Type
  • Study Type
  • Study (Blinded or Unblinded)
  • Localization

Vault Applies the Most Specific Narrative Template

To create a custom document template:

  1. Ensure the Template > Narrative (Template) document type is active.
  2. On the Upload Files (Step 1) page, upload the applicable DOCX file and classify the type as appropriate:
    • For a default template, select Template > Narrative (Template) > Default.
    • For an E2B import template, select Template > Narrative (Template) > E2B Import.
  3. Select Next.
  4. Enter a Name to identify the template. We recommend that you include the organization in the name. For example, Narrative Template - Default - Verteo BioPharma.
  5. Select the Template Document Type depending on how you classified the uploaded document.
  6. On the Upload Files (Step 2) page, populate the applicable details to specify the parameters under which Vault applies the template:
  7. Add values for any other optional fields, as applicable.
  8. Select Save.
  9. From the document’s Workflow Actions menu, select Make Active to activate the template.
  10. In the Change Document Status dialog, select Yes.

The new template will now appear on the Document & Binder Template page in the Case > Summary > Narrative section of the Template Location tree.

Organization-Specific Templates

For Vaults with Cases across multiple Organizations, you can create Organization-specific narrative document templates. Vault applies a sponsor’s template to generate the narrative document for every Case associated with that Organization. Organization-specific templates use controlled document templates, which point to a Steady-state Vault document, referred to as a template document, as the source file for the template.

You can only configure one default organization-specific template. You cannot upload both a standard default template and a blinded template for the same organization. Controlled document narrative templates do not support both regular and blinded templates. If your organization handles blinded study data, do not upload a template with tokens for sensitive data that should be blind-protected.

Configure Merge Fields for Templates

You can configure Merge Fields to include Case field values in the template, which Vault populates based on token resolution with values from the Case record. Add Merge Fields to auto-populate generated narrative documents with details such as product name, organization, and receipt date. Because narratives are transmitted as plain text in submissions, we recommend that you use merge fields with caution and keep templates with merge fields very basic. We do not recommend including tables or images in your template.