# Enable Auto-Ranking Case Adverse Events

Learn how to configure ranking rules and automatic _Case Adverse Event_ ranking in your Vault. 

## About the Feature

With the 25R2 release, Veeva Safety introduces automatic ranking of _Case Adverse Events_ based on your configured ranking priority. This feature supports identifying the primary event and ensuring that case tags and roll-ups accurately reflect rankings. You can configure your Vault to rank using either of the following priority orders:

* 1. Seriousness 2. Relatedness 3. Expectedness (default)
* 1. Relatedness 2. Seriousness 3. Expectedness

When events are tied, Vault applies a fixed sequence of tie-breakers using outcome, severity, CTCAE Grade, and then creation date. When complete, Vault populates the _Auto-Rank_ and _Rank_ fields. Users can override the _Rank_. Any manual change results in Vault setting the _Event Rank (Status)_ field to _Overridden_. Based on your business process, you can configure automatic ranking through user action or entry action.

Additionally, this feature introduces the _Overall Case Seriousness_ field to the _Case_ object, which rolls up the most critical seriousness value across all adverse events, regardless of rank, on a given case.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: The <em>Overall Case Seriousness</em> field does not roll up <a href="/en/gr/654889/">device-specific seriousness values</a>.</p>
    </div>
  </div>
</div>



After you have configured this feature, see <a href="/en/gr/881477/">How Case Adverse Events are Auto-Ranked</a> and <a href="/en/gr/01287/#overall-seriousness">Case Field Reference</a> for more information.

## Update General Settings

To define the priority values Vault uses to rank _Case Adverse Events_:

1. Navigate to **Admin > Settings > Safety General Settings**.
2. Select **Edit**.
3. In the _Auto-calculation Settings_ section, select an option in the **Adverse Event Ranking Order** drop-down.
4. Select **Save**.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: Enabling this setting does not impact <em>Cases</em> on which ranking exists. To auto-rank these <em>Cases</em>, users must run the <a href="#action"><em>Auto-Rank Case Adverse Events</em> action</a>.</p>
    </div>
  </div>
</div>



## Configure the Case Object

To configure the _Case_ object, you must configure the [_Auto-Rank Case Adverse Events_ action][1] and update the [layout][2].

### Configure the Auto-Rank Case Adverse Events Action {#action}

To configure the _Auto-Rank Case Adverse Events_ action, <a href="/en/gr/43127/#assign-actions">assign</a> the action to the _Case_ object and do the following, according to your business process:

* Add the action as a <a href="/en/gr/59885/#define-actions">user action</a> to applicable states of the _Case Lifecycle_ object lifecycle.
* Add the action as an <a href="/en/gr/59885/#entry-actions">entry action</a> for applicable _Case Lifecycle_ object lifecycle states. We do not recommend configuring the entry action during promotion to initial or follow-up _Case_.

### Update the Case Layout {#layout}

<a href="/en/gr/26387/#how-to-add-object-fields">Add</a> the following fields to _Case_ object layouts for the _Case_ and _Imported Case_ object types:

* **Overall Case Seriousness**
* **Event Rank (Status)**

## Update the Case Adverse Event Layout

<a href="/en/gr/26387/#how-to-add-object-fields">Add</a> the **Auto-Rank** field to the _Case Adverse Event Detail Page Layout_ of the _Case Adverse Event_ object.

[1]: #action
[2]: #layout