# How Case Relatedness is Calculated

Vault populates the _Relatedness_ field in the _Details_ section of _Cases_. This provides high visibility of the relatedness (causality) evaluation from the primary _Case Assessment_ and its <a href="/en/gr/01172/#case-assessments">Case Assessment Results</a>. Vault considers the _Case Assessment_ with `1` in the _Rank_ field to be the primary _Case Assessment_. Vault considers _Case Assessment Results_ to be primary when they are associated with the primary _Case Assessment_.

## Auto-Calculation Logic

Vault uses the following logic to determine _Case_ relatedness and populate the _Relatedness_ field:

* **Yes**: (Related) Populated when the _Causality Established_ field in any primary _Case Assessment Result_ is set to _Yes_.
* **No**: (Unrelated) Populated when the _Causality Established_ field in at least two (2) primary _Case Assessment Results_ is set to _No_, including one (1) company assessment and one (1) reporter's assessment.
<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>: For any custom source types, the E2B code in the <a href="/en/gr/01195/#relatedness">custom <em>Controlled Vocabulary</em></a> record must be set to <code class="language-plaintext highlighter-rouge">2</code> (sponsor) or <code class="language-plaintext highlighter-rouge">4</code> (MAH) for Vault to consider it a company assessment.</p>
    </div>
  </div>
</div>


* **Unknown**: Populated when the _Causality Established_ field in all primary _Case Assessment Results_ is unknown or unspecified, or when any primary _Case Assessment Result_ is _No_ and the remaining primary _Case Assessment Results_ are unknown or unspecified.
<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>: When assessing <em>Combination Products</em>, the <em>Case</em> relatedness is based on the drug or biologic constituent. The device constituent relatedness is not assessed.</p>
    </div>
  </div>
</div>



## How to Trigger Auto-Calculation

Any time the _Causality Established_ field on a primary _Case Assessment_ is updated, Vault re-calculates the _Relatedness_ field in the _Details_ section of the _Case_.
