# Create Safety Data Expression Building Blocks

Learn how to create blocks of _Case_ data evaluation expressions that you can reuse in multiple _Safety Reporting Rules_.

## About Safety Data Expression Building Blocks {#about}

With _Safety Data Expression Building Blocks_, you can create _Case_ data evaluation expressions that you can combine and reuse in any number of _Safety Rules_ with the <a href="/en/gr/01250/#sde-building-blocks">_Safety Data Expression Building Blocks_</a> reporting rule parameter. This provides an efficient way to create _Safety Rules_ that share similar _Case_ data evaluation requirements and reduces the administrative effort required to maintain large groups of _Safety Rules_.

## Create Safety Data Expression Building Blocks {#create}

To create a _Safety Data Expression Building Block_:

1. Navigate to **Business Admin > Objects > Safety Data Expression Building Blocks**.
2. Select **Create**.
3. Complete the applicable [fields][3].
4. Select **Save**.

### Safety Data Expression Building Block Fields {#fields}

The following fields may be available:

<table>
    <thead>
        <tr>
            <th>Field</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td><em>Name</em></td>
            <td>Enter a unique name for the <em>Safety Data Expression Building Block</em>.</td>
        </tr>
        <tr>
            <td><em>Building Block Expression</em></td>
            <td>
                <p>
                    Enter a <em>Case</em> data evaluation expression. The expression must be a <code>VS_LET</code> function with one of the following objects as the
                    start of the <code>path_to_validating_records</code>:
                </p>
                <ul>
                    <li>For global <em>Case</em> evaluation:
                    <ul>
                        <li><code>case_version__v</code></li>
                        <li><code>eligible_case_assessments__v</code></li>
                    </ul></li>
                    <li>For <em>Localized Case</em> evaluation:
                        <ul>
                            <li><code>case_version__v</code></li>
                            <li><code>eligible_case_assessments__v</code></li>
                            <li><code>localized_case_version__v</code></li>
                            <li><code>eligible_localized_case_assessments__v</code></li>
                        </ul></li>
                </ul>
                <p>
                    Vault evaluates the expression whenever the Rule Engine runs a <em><a href="/en/gr/873466/">Safety Rule Set</a></em> on a <em>Case</em> that contains a <em><a href="/en/gr/01250/#sde-building-blocks">Safety Data Expression Building Blocks</a></em> rule parameter that references this <em>Safety Data Expression Building Block</em>.
                </p>
                <p>
                    For help with writing <em>Case</em> data evaluation expressions, see <a href="/en/gr/01461/#validation-expression-language">Configure Custom Validation Criteria</a> and <a href="/en/gr/861364/">Create Formula Expressions</a>.
                </p>
            </td>
        </tr>
        <tr>
            <td><em>API Name</em></td>
            <td>
                <p>
                    Enter a unique <code>__c</code> API name for this <em>Safety Data Expression Building Block</em>.
                </p>
                <p>
                    When creating a <em>Safety Rule Parameter</em> of the type <em><a href="/en/gr/01250/#sde-building-blocks">Safety Data Expression Building Blocks</a></em> that uses this building block, enter this <em>API Name</em> in the <em>Value</em> field of the rule parameter.
                </p>
            </td>
        </tr>
    </tbody>
</table>

[1]: #about
[2]: #create
[3]: #fields
