# About the RIM-Medical Connection

The RIM-Medical Connection is a standard [Veeva Connection](/en/lr/533581/) that enables organizations with both RIM and Medical Vaults to increase data quality when managing medical content and medical inquiries.



<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 RIM-Medical Connection must be <a href="/en/lr/9164781/">configured</a> by a Vault Admin.</p>
    </div>
  </div>
</div>



## About the RIM-Medical Connection

The RIM-Medical Connection currently includes the following features:

* [**Document Exchange**][1] eliminates manual document transfer between RIM and Medical Vaults by automating [CrossLink](/en/lr/23143/) document creation in Medical upon approval in RIM.
* [**Product Data Transfer**][2] automatically aligns product data between the RIM and Medical application families, transferring product, indications, and local product data between Vaults to facilitate common terminology across teams.


### Prerequisites & Dependencies

Document Exchange requires the following Vault applications:

* **RIM**: Submissions
* **Medical**: MedComms

To take full advantage of the Product Data Transfer feature, your organization must have a Medical Vault enabled with any applications, and a RIM Vault enabled with both the Submissions and Registrations applications. When RIM Registrations is not enabled, Medical users must [manually populate][7] some details.


### Related Articles & Resources

The RIM-Medical Connection is one of many Veeva-provided standard connections that support and automate business processes between separate Vaults. See [About Veeva Connections](/en/lr/533581/) for general information about how a connection can work for your organization. 

We also recommend visiting a Veeva Connect community to learn about best practices and interact with the Veeva Vault Product Team:

* RIM: <a class="external-link " href="https://veevaconnect.com/communities/ALLaSExbEAA/about" target="_blank" rel="noopener">Submissions, Publishing and Archive<i class="fa fa-external-link" aria-hidden="true"></i></a> or <a class="external-link " href="https://veevaconnect.com/communities/ALR_0Abp0AA/about" target="_blank" rel="noopener">Registrations<i class="fa fa-external-link" aria-hidden="true"></i></a>
* Medical: <a class="external-link " href="https://veevaconnect.com/communities/ANS96aeVoAA/about" target="_blank" rel="noopener">MedComms<i class="fa fa-external-link" aria-hidden="true"></i></a> or <a class="external-link " href="https://veevaconnect.com/communities/AOoNGV47QAA/about" target="_blank" rel="noopener">MedInquiry<i class="fa fa-external-link" aria-hidden="true"></i></a>


## How Document Exchange Works {#doc-exchange}

The RIM-Medical Connection's Document Exchange feature supports the one-way transfer of Steady-state RIM source documents to the target Medical Vault as [CrossLinks](/en/lr/23143/).

With some [limitations][6], Document Exchange creates and maintains Medical CrossLink documents when a RIM document:

* Enters the Steady state for the first time.
* Undergoes a metadata update while in the Steady state.
* Re-enters the Steady state after revision.
* Enters the Superseded or Obsolete state.

To do this, Vault stores the RIM document event details within a *Connection Document Source Event* record, then applies those changes in the Medical Vault.

<a href="https://platform.veevavault.help/assets/images/rim-medical-doc-exchange.png" data-lightbox="RIM-Medical" data-title="" data-alt="doc exchange flow diagram">
  <img class="docimage" src="https://platform.veevavault.help/assets/images/rim-medical-doc-exchange.png" alt="doc exchange flow diagram" style="max-width: 75%;"  />
</a>


## How Product Data Transfer Works {#product-data-transfer}

The RIM-Medical Connection's Product Data Transfer feature synchronizes [product][3], [indications][5], and [local product][4] data between RIM and Medical Vaults to facilitate common terminology across teams.

To do this, the connection references the RIM and Medical records' *External ID* (`external_id__v`) to check for duplicates, then creates or updates the record in the target Vault. This ensures any Medical records populated from an external system are not duplicated.

| RIM Object | Medical Object | Considerations |
|---|---|---|
| Product Family | Product Family |  |
| Product | Product Form |  |
| Product Variant | Product Variant |  |
| Packaging | Packaging |  |
| Packaging Product Variant | Packaging Product Variant | Records are used for drug or multiform products only. |
| Regulatory Text | Local Product |  |
| Product Regulatory Text | Product Family Local Product | Due to underlying records in both Vaults, Medical _Product Family Local Products_ may have duplicate values. This is expected and does not impact Medical functionality. |
| Therapeutic Indication | Indication |  |
| Registered Regulatory Text  | Local Product Country | RIM Vault must have [Registrations][7]. In Medical, records are created for each unique country where the local product is registered. |

### Product Hierarchy Transfer {#product-hierarchy}

The diagram below illustrates the various RIM and Medical object records the connection transfers for a simple drug product.

<a href="https://platform.veevavault.help/assets/images/rim-medical-product-hierarchy.png" data-lightbox="RIM-Medical" data-title="" data-alt="product hierarchy transfer">
  <img class="docimage" src="https://platform.veevavault.help/assets/images/rim-medical-product-hierarchy.png" alt="product hierarchy transfer" style="max-width: 75%;"  />
</a>


### Local Product Transfer {#local-product}

The diagram below illustrates the various RIM and Medical object records the connection transfers for a simple drug product.


<a href="https://platform.veevavault.help/assets/images/rim-medical-local-product.png" data-lightbox="RIM-Medical" data-title="" data-alt="local product transfer">
  <img class="docimage" src="https://platform.veevavault.help/assets/images/rim-medical-local-product.png" alt="local product transfer" style="max-width: 75%;"  />
</a>


### Therapeutic Indication Transfer {#indication}

The diagram below illustrates *Therapeutic Indication* transfer from RIM to Medical.


<a href="https://platform.veevavault.help/assets/images/rim-medical-therapeutic-indication.png" data-lightbox="RIM-Medical" data-title="" data-alt="therapeutic indication transfer">
  <img class="docimage" src="https://platform.veevavault.help/assets/images/rim-medical-therapeutic-indication.png" alt="therapeutic indication transfer" style="max-width: 75%;"  />
</a>


## Limitations {#limitations}

### Document Exchange Limitations {#doc-exchange-limits}

* This feature only supports the one-way transfer of Steady-state RIM source documents to the target Medical Vault. It does not support transferring documents from Medical to RIM.
* Upon Document Exchange enablement, the connection only initiates document transfer once the source document reaches its next Steady state. For example, if RIM document v2.0 is updated to Steady state v3.0, only v3.0 is transferred to Medical. The Medical CrossLink version history begins at v3.0, and any subsequent Steady state versions (4.0 and later) are properly reflected.
    * Similarly, Document Exchange does not create target Medical CrossLinks for source RIM documents created in the Steady state. A source document must exit a given state (for example, *Draft*), then enter the Steady state in order for Vault to create a target CrossLink.
* The RIM-Medical Connection does not support [CrossLinks of CrossLinks](/en/lr/23143/#crosslink-crosslink). This can occur in Vaults which also use the [RIM-PromoMats](/en/lr/72311/) and [PromoMats-Medical](/en/lr/680370/) connections for [label management](/en/lr/72311/#label-management). For example, if a label document were to go from RIM to Medical to PromoMats, then back to RIM for the Compliance Package, RIM would not be able to identify the label document. This is because the document's Source Document Details fields would be referencing the Medical CrossLink, not the RIM CrossLink. As a result, RIM cannot match the source document or create a reference leaf.


### Product Data Transfer Limitations {#product-transfer-limits}

This feature only creates target *Local Product Country* records in Medical when the source Vault includes RIM Registrations. This is because Registrations users generate the *Registered Regulatory Text* records necessary to populate *Local Product Country*. As a result, Medical users must manually populate *Local Product Country* records when Registrations is not in use in the RIM Vault.

[1]: #doc-exchange
[2]: #product-data-transfer
[3]: #product-hierarchy
[4]: #local-product
[5]: #indication
[6]: #doc-exchange-limits
[7]: #product-transfer-limits