Configure your Vault to generate narrative documents from case-related data. You can configure your Vault to generate narrative documents from the following sources:

  • Document templates: Vault generates narratives based on document templates.
  • Rules-based outlines: Vault generates narratives based on outline templates for which you can define conditional rules for when Vault includes related statements. If you do not configure Rules-Based Narratives, Vault generates narratives based on the applicable document template.

In Vaults using Vault AI for Safety, you can configure the Narrative Agent, which refines narrative content by correcting spelling and grammar and improving readability. The Narrative Agent can:

  • Proofread: Update any spelling and grammar issues without changing the structure or details.
  • Rewrite: Update the content to improve flow and voice. This may include changes to the structure but should not remove any details.

Configuration Overview

Configuring your Vault to generate narratives involves the following steps:

  1. Configure object layouts
  2. Configure document templates
  3. Set up rules-based narratives
  4. Define application settings
  5. Configure actions
  6. Optional: Configure the Narrative Agent

Configuring Object Layouts

We recommend using the standard layouts for the objects and object types related to this feature, when available. In addition, update the layouts in each applicable section below.

Document Template Narratives

To support document templates, update the layouts for the following Transmission Profile object types to include the Narrative Template Type field for inbound settings:

  • System Gateway
  • AS2 Gateway
  • Connection Profile

Rules-Based Narratives

To support rules-based narratives:

  • Add the Localized field to the Narrative Outline object layout.
  • Add the Include Result in Narrative? field to all applicable Case Test Result and Localized Case Test Result object layouts. When users select No, Vault excludes that result from the generated narrative, if applicable to the associated Narrative Outline.

Narrative Agent

To support the Narrative Agent, update the layouts for the following objects:

  • Case: To display the agent’s status on the narrative’s associated Case, add the Narrative Generation Status field to the Case layout for the AER, Case, and Imported Case object types in the Narrative section.
  • Narrative Outline: For rules-based narratives, add the following fields to the layouts for the Narrative Outline object:
    • Narrative Agent Initial Case Options
    • Narrative Agent Follow-up Case Options

Configuring Document Templates

Vault applies the applicable document template during E2B import or case promotion, using whichever document template applies to the record’s Case Type (E2B or Manual) and shares the most details with the document template’s parameters. Your Vault includes the following standard document templates, which you can update as needed:

  • Narrative Template - 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 document templates.
  • Narrative Template 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.
  • Narrative Template - E2B Import: Generates the narrative document for cases created from imported E2B files and narratives imported using the Vault API .

You can create custom controlled document templates for the Narrative (Template) subtypes or update the standard templates to fit the needs of your organization. Populate the following document fields for each applicable classification to specify the parameters under which Vault applies the template:

  • Organization
  • Localization
  • Study Type
  • Report Type
  • Study

When creating or updating document templates, consider the following:

  • You can only create one organization-specific template. You cannot upload both a standard default template and a blinded template for the same organization.
  • We recommend that you do not include tables or images in your templates.
  • When you create a domestic Case, Vault generates a localized narrative document using a localized template, if available. Otherwise, Vault applies the applicable global template.
  • If you update the blinded template or create a custom blinded template, do not include sensitive information, such as product name merge field tokens. Vault does not mask product information in blinded Distributions. If you do not use the standard blinded template, we recommend creating a dedicated blinded narrative template without any sensitive tokens.

Adding Merge Fields

You can add Merge Fields to include Case field values in the template, which Vault populates based on token resolution with values from the Case record, 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 basic.

Updating Transmission Profiles

To use custom document templates, update the Narrative Template Type field to Override Template for all applicable Transmission Profiles.

Configuring Document Fields

Update the Display Section document field attribute of the Study Type and Localization shared document fields to Case Information so that the fields appear in that section on the Doc Info page.

Configuring Field Dependencies

Update the Field Dependency for the Template > Narrative (Template) document type as follows:

  • Condition: If field “Document type” equals Template > Narrative (Template)
  • Dependency Rule: Picklist > Template Document Type > Narrative

Setting Up Rules-Based Narratives

You must define the associated records that specify the content Vault includes in rules-based narrative documents. See Setting Up Rules-Based Narratives for more details.

Configuring the Case Version Compare Page

We recommend adding the following fields to the Case Compare Followup layout for the Case Version Compare page so that users can review summary statements on the Inbox Item to Case Compare page:

  • Patient section:
    • Date of Birth (normalized)
  • Adverse Events section:
    • Seriousness
    • Onset (normalized)
    • Cessation (normalized)
  • Medical History & Concurrent Conditions section:
    • Start Date Normalized
    • End Date Normalized
  • Drug History section:
    • Start Date Normalized
    • End Date Normalized
  • Products section > Dosage Fields:
    • First Administration (normalized)
    • Last Administration (normalized)

Defining Application Settings

You can control how Vault generates follow-up narratives and turn off blind protection on narratives by enabling the following Safety general settings:

  • Default to previous case version narrative on follow-up: For rules-based narratives, this setting allows you to control which minor narrative document versions Vault generates for non-E2B sources when users create a follow-up Case or Localized Case with the Default to previous case version narrative on follow-up setting. When enabled, Vault generates a single narrative document by copying the previous narrative version and does not generate a new narrative from the outline template. If you do not enable this setting, Vault generates two minor narrative document versions:
    • The first copies the previous version’s narrative.
    • The second generates a new narrative for the follow-up record from the applicable Narrative Outline template.
  • Turn off Blind Protection on Narratives: This setting allows you to control blind protection for narrative documents. If you enable this setting, you must update document templates with merge fields or tokens that return blinded information so that the Blinding Type returns in the same merge field or token. If the initial narrative document contains merge fields, Vault regenerates tokens to update values. When enabled, Vault populates the Blind Protection field value of generated narrative documents with Off. When Vault generates a narrative for a follow-up record, the new narrative document inherits the Blind Protection value from the narrative of the previous version unless the follow-up record was unblinded during processing. In this scenario, Vault always sets the Blind Protection field to On. This document field value determines the following:
    • Off: Any information in the narrative document may be displayed in the Narrative Preview field.
    • On: The Narrative Preview field does not display any sensitive information and unauthorized users cannot view the narrative document.

Configuring Actions

Configure the applicable actions to allow users to generate narratives. For rules-based narratives, you can also configure actions that allow you to copy and review Narrative Outlines.

Document Template Narratives

To generate narratives from document templates:

  • Re-render Case Narrative action on the Case object:
    • As a user action on the following lifecycle states:
      • Data Entry
      • Medical Review
      • Revision
      • Triage
    • As an entry action on the following lifecycle states:
      • Data Entry
      • Medical Review
      • QC
      • Unblinded
  • Re-render Localized Case Narrative action on the Localized Case object:
    • As a user action on the Translation Entry and Active lifecycle states
    • As an entry action on the Translation Review lifecycle state

Rules-Based Narratives

To generate rules-based narratives:

  • Generate Narrative from Outline: Generates a narrative for a Case. You can configure this action on the Case object in the following ways:
  • Generate Local Narrative from Outline: Generates a narrative for a Localized Case. For Japan Localized Cases, Vault generates the narrative document in Japanese, supporting submission to the PMDA. Vault generates the narrative document in English for all other Localizations. You can configure this action on the Localized Case object in the following ways:
  • Update E2B Imported Narrative: Generates a narrative for an imported E2B Case with imported narrative content wrapped in introduction and closing statements. You can configure this action on the Case object in the following ways:

Narrative Outline Actions

We recommend configuring the following actions on the Narrative Outline object to assist you with defining rules-based narrative components:

  • Preview Narrative Outline: Define the web action as a user action on the Active state of the object’s lifecycle.
  • Copy Narrative Outline: Assign the action to the Narrative Outline object and then define the user action on the applicable states of the object’s lifecycle to copy outlines with their related Narrative Statements and Narrative Statement Options.

Configuring the Narrative Agent

Depending on your business needs, you can configure your Vault so users can manually run the Narrative Agent on any narrative document, and automatically when users run the Generate Narrative from Outline action. When the agent runs automatically, both actions execute on the narrative content. When users manually run the agent on an existing narrative document, they can select which actions to run on the content. Narratives generated by the agent may contain up to 100,000 characters, though typically include fewer than 20,000 characters.

You can configure custom instructions and custom actions that Vault applies when the Narrative Agent runs:

  • Custom Instructions: Configure the Supplemental Objective field for the Proofread Narrative and Rewrite Narrative agent actions to add custom instructions for a specific action associated with the Narrative Agent. For example, you can configure the Rewrite Narrative action to update chronologies so that the output is ordered by date and update the narrative with a specific company voice.
  • Custom Actions: Configure custom agent actions for the Narrative Agent. For rules-based narratives, you can specify when these custom actions automatically run for each Narrative Outline by selecting them in the Narrative Agent Initial Case Options and Narrative Agent Follow-up Case Options fields. For example, you can configure a custom action to summarize the document for medical review in less than 50 words.

Defining Narrative Outlines

To automatically run the agent when users run the Generate Narrative from Outline action, update the following fields on the applicable Narrative Outlines. These values specify that the agent automatically runs for Cases associated with the outline for initial Cases, follow-up Cases, or both:

  • Narrative Agent Initial Case Options
  • Narrative Agent Follow-up Case Options

Configuring the Agent User

You must update the Narrative Agent User record to include a security profile and permission sets that grant the appropriate level of access to objects and fields according to your organization’s process.

Configuring the Generate Text with Narrative Agent Action

To allow users to manually run the Narrative Agent, configure the Generate Text with Narrative Agent user action on the applicable states of the Narrative Lifecycle document lifecycle. We recommend configuring the action only on the Draft state.