# Configuring CoA Attribute Test Result Variants (QMS)

After <a href="/en/gr/63414/#define-ref-items">defining the global _Characteristics_ and _Materials_</a>
, you must create _Attribute Test Result Variants_ to define various alternate terms for qualitative test results to improve the accuracy of field value ingestion for <a href="/en/gr/69952/">CoA inspections</a>
. Users can view the matched text from relevant CoA files that determined the verdict of each _Inspection Sample Test Result_.

<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>: This feature is currently available only to Early Adopters. Contact your Veeva Representative for more details.</p>
    </div>
  </div>
</div>



## About Attribute Test Result Variants {#about}

CoA _Attribute Test Result Variants_ inform Vault that there are similar terms used to describe attributes and verdicts for different languages, materials, suppliers, and supplier manufacturing sites. Matching the variants to specific verdicts helps to generate test results more accurately for each inspection plan requirement.

The _Attribute Test Result Variant_ object has two (2) object types:

* **Attribute Variant**: Stores information about test result attribute variations that can define a specification for a specified _Characteristic_ and _Material_.
* **Verdict Variant:** Stores information about test result verdict variations.

When users run the <a href="/en/gr/69952/#config-coa-actions">_Analyze COA_ action</a>
, Vault updates the applicable _Inspection Sample Test Result_ record fields in the following ways:

* If a matching _Attribute Test Result Variant_ exists, Vault updates the _Observed Attribute Result_ field with the relevant value found from the CoA file.
* If the _Verdict_ value of the matching _Attribute Test Result Variant_ is "Pass", Vault updates the _Attribute Verdict_ field to "Pass".
* If the _Verdict_ value of the matching _Attribute Test Result Variant_ is "Fail", Vault updates the _Attribute Verdict_ field to "Fail" and updates the _Failure Reason_ field to "Failed Due to Verdict".
* If no defined _Variant Text_ of _Attribute Test Result Variants_ matches the value in the CoA file, Vault updates the _Attribute Verdict_ field to "Fail" and the _Failure Reason_ field to "Not Found".

### Variant Matching Rules {#var-mr}

There are four (4) variant matching rules you can use to define the logic Vault uses to interpret data when creating an _Attribute Test Result Variant_:

* **Exact Match**: Used to map an exact value of a defined variant. Exact Match values are not case-sensitive.
* **Contains**: Used to map to a defined variant that comprises specific values.
* **Starts With**: Used to map to a defined variant that begins with specific values.
* **Ends With**: Used to map to a defined variant that concludes with specific values.

### Matching Rule Prioritization {#priority}

If Vault matches _Attribute Test Result Variants_ to data found in the CoA file, Vault prioritizes the variants in the following ways:

* Object type:
  1. _Verdict Variants_
  2. _Attribute Variants_
* Record fields:
  1. _Supplier Manufacturing Site_
  2. _Supplier_
  3. _Material_
  4. _Characteristic_
  5. _Language_

If your Vault uses both _Attribute Test Result Variants_ and _Acceptable Attributes_ to match field values in CoA files, Vault prioritizes _Attribute Test Result Variants_ over _Acceptable Attributes_.

## Defining Attribute Test Result Variants {#define}

You must create _Attribute Test Result Variants_ to define the attribute and verdict variants. For example, you can create an _Attribute Variant_ type that defines "white powder" as a variant for the "white fine crystalline powder" text found for a particular match of _Characteristic_, _Material_, and _Supplier Name_ extracted from certain CoA files and a _Verdict Variant_ type that defines "Conforms" as a variant for the "Pass" text found for a particular match of _Material_ and _Supplier Manufacturing Site Name_ extracted from another set of CoA files. You can create multiple _Attribute Variants_ with different variations of _Characteristics_, _Materials_, _Supplier Names_, and _Supplier Manufacturing Site Names_ for matching against the extracted data from CoA files.


<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>: As an alternative to manually creating variant records, we recommend using the <a href="/en/gr/824752/"><em>COA Ingestion Setup</em> panel</a>
 to guide you through the CoA variant setup process all in a single page.</p>
    </div>
  </div>
</div>



To define an _Attribute Test Result Variant_:

1. Navigate to **Business Admin > Objects > Attribute Test Result Variants**.
2. Click **Create**.
3. Select a variant type and click **Continue**.
4. Enter the **Variant Text**.
5. Select a **Verdict**.
6. For _Attribute Variant_ types, you can select values for the following fields:
   1. Optional: Select a **Characteristic**.
   2. Optional: Select a **Material**.
   3. Optional: Select a **Supplier Name**.
   4. Optional: Select a **Supplier Manufacturing Site Name**.
7. Optional: Select a **Language**.
8. Select a **Variant Type** to specify the [matching rule][2].
9. Click **Save**. To create another _Attribute Test Result Variant_ of the same type, click **Save + Create**.

## About Acceptable Attribute {#accept-att}

<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>: In Vaults created after 22R3, this feature is automatically enabled and the acceptable attribute objects are inactive. If your Vault was created prior to 23R1, contact your Veeva Representative to enable this feature in your Vault.</p>
    </div>
  </div>
</div>



Depending on your Vault's configuration, you can configure both _Attribute Test Result Variants_ and _Acceptable Attributes_ to match field values in CoA files. If you decide to use only _Attribute Test Result Variants_, the following acceptable attribute objects will be inactivated:

* _Acceptable Attribute_
* _Item Specification Acceptable Attribute_
* _Localized Acceptable Attribute_
* _Specification Acceptable Attribute_

[1]: #about
[2]: #var-mr
[3]: #priority
[4]: #define