# Configure MHRA Gateway

Set up a Safety UK MHRA Gateway profile to support submissions through the MHRA Gateway.


<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>: 
With the 23R3 release, Veeva Safety <em>AS2 Connections</em> replace Safety Gateways. <em>AS2 Connections</em> provide significant technical improvements including Admin management of Internet Protocol (IP) lists, more concise outbound IP lists, and improved Certificate Management. Though Gateways are still supported, we recommend configuring your Vault to use an
<a href="/en/gr/01454/">MHRA AS2 Connection</a>
instead of the MHRA Gateway.</p>
    </div>
  </div>
</div>



## About Safety MHRA Gateway Integration

Safety supports the United Kingdom Medical and Healthcare products Regulatory Agency (UK MHRA) Gateway through AS2 (system-to-system) communication. The UK MHRA Gateway can be used for ICSR submissions to the MHRA in the EMA E2B (R3) file format. Safety defines the case criteria for these submissions using the MHRA Rule Set, which is based on the EMA ICSR Reporting Rule Set. 

Vault's integration with the UK MHRA allows you to set up a Gateway Profile to submit ICSRs directly from Safety and receive gateway responses. 

<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>: If your organization is a CRO making Submissions on behalf of clients, you must complete each of the steps on this page separately for each sponsor, including setting up a new MHRA Account and obtaining new certificates per sponsor.</p>
    </div>
  </div>
</div>



## Prerequisites

You must perform the following one-time configuration changes before you can set up MHRA Gateway submissions:

* [Activate MHRA as a Standard Organization][1]
* [Update Country Records][2]

### <a id="activate-mhra-org"></a>Prerequisite: Activate MHRA as a Standard Organization

MHRA comes preconfigured in each Vault as a standard Organization. In certain Vaults, an Admin must make the Agency active.

Complete the following steps if MHRA is inactive in your Vault:

1. Go to **Business Admin > Objects > Organizations**.
2. Open the **MHRA (UK)** Agency record.
3. Select the **All Actions** menu.
4. Select **Change State to Active**.

<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 <strong>Change State to Active</strong> user action  only appeard if it has been configured in your Vault. <a href="/en/gr/01433/#add-user-action-to-the-organization-lifecycle-inactive-state">Add User Action to the Organization Lifecycle</a> provides instructions for this configuration.</p>
    </div>
  </div>
</div>



### <a id="update-uk-northern-ireland"></a>Prerequisite: Update Country Records

From January 1, 2021, all products authorized in Great Britain must have their ICSRs submitted to the MHRA owing to Brexit, the United Kingdom's formal exit from the European Union. ICSRs for products authorized in Northern Ireland should be submitted to the EMA. For more information, visit the United Kingdom's <a target="_blank" href="https://www.gov.uk/government/publications/guidance-on-pharmacovigilance-procedures-in-the-event-from-1-january-2021/updated-guidance-on-pharmacovigilance-procedures">Pharmacovigilance Procedures website</a>.

To ensure all new cases reference the correct country and agency, we recommend you update the existing United Kingdom of Great Britain and Northern Ireland record in your Vault to separate Great Britain and Northern Ireland records. 

Complete the following steps to update the country records:

1. [Update Existing Country Record to the United Kingdom (Great Britain) Record][3]
2. [Create the United Kingdom (Northern Ireland) Record][4]


#### <a id="update-uk-gb"></a>Update Existing Country Record to the United Kingdom (Great Britain) Record

1. Go to **Business Admin > Objects > Countries**.
2. Search for **United Kingdom of Great Britain and Northern Ireland** and select it. The **Country** page appears.
3. Select **Edit**.
4. Under **Details**, update the following fields:
    * **Name**: Enter **United Kingdom (Great Britain)**.
    * **Code (2-letter)**: Enter **GB**.
    * **Code (3-letter)**: Enter **GBR**.
    * **Agency**: Select **MHRA (UK)** from the picklist.
5. 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>: We recommend updating the existing country record as detailed above instead of changing its state to Inactive and creating a new record for Great Britain. Owing to an overlap in Code (3-letter) values, doing so will cause E2B imports to fail.</p>
    </div>
  </div>
</div>



#### <a id="create-uk-ni"></a>Create the United Kingdom (Northern Ireland) Record


1. Go to **Business Admin > Objects > Countries**.
2. Select **Create**. The **Create Country** page appears.
3. Under **Details**, complete the following fields:
    * **Name**: Enter **United Kingdom (Northern Ireland)**.
    * **Code (2-letter)**: Enter **XI**.
    * **Code (3-letter)**: Enter **GBR**.
    * **Agency**: Select **EMA** from the picklist.
4. Select **Save**.

**Result**

Your Vault has two updated country records.

<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>: Once the country records have been updated, it is recommended that pre-existing products and cases should be reviewed and updated with the correct country and agency. For more information, see the EMA’s <a class="external-link " href="https://www.ema.europa.eu/en/documents/other/questions-answers-stakeholders-implementation-protocol-ireland/northern-ireland_en.pdf" target="_blank" rel="noopener">Northern Ireland Submission Guidelines<i class="fa fa-external-link" aria-hidden="true"></i></a>.</p>
    </div>
  </div>
</div>



## Configure a UK MHRA AS2 Account

Before you can configure the Safety Gateway Profile, you must have an active UK MHRA AS2 account. The <a class="external-link " href="https://www.gov.uk/guidance/registering-to-make-submissions-to-the-mhra-from-1-january-2021" target="_blank" rel="noopener">MHRA website<i class="fa fa-external-link" aria-hidden="true"></i></a> provides instructions to set up the gateway registration.

### Public and Private Certificates

As part of the MHRA registration process, you must obtain a public and private certificate pair and send the public certificate to the MHRA. If you need help generating these certificates, contact your Veeva Representative.

### Copy Your Vault AS2 URL 

When you configure your UK MHRA account, ensure that AS2 URL exactly matches the Vault AS2 URL for your Vault. The following steps will help you in this process:

1. Go to **Admin > Settings > Gateway Profiles**.
2. Open the **UK MHRA** Gateway Profile.
3. Under **Vault AS2 URL**, select **Copy URL**.

## Configure Sender User

For Submissions to the MHRA, you must enter full contact details for the Sender User. This user's information will appear in generated forms and E2B files. The Sender User is assigned on Submission records in the **Sender (User)** field.

<a href="/en/gr/01274/">Managing Roles & Security in Safety</a> provides more information on setting up user contact details. 

An Admin can [configure the MHRA Transmission Profile][5] to populate this field with a default Sender User on system generated transmissions based on the Transmission Profile.

## Configure the Safety Gateway Profile 

Vault comes provisioned with an inactive standard profile for the UK MHRA. In order for users to send Submissions to the UK MHRA, you must configure and activate the appropriate Gateway Profile by completing the following steps:

1. In the **Admin** area, go to the **Settings** tab.
2. In the left pane, select **Gateway Profiles**.
3. Open the **UK MHRA** Gateway Profile and select **Edit**. The profile page is unlocked for editing.
4. Under **Details**, in the **Sponsor Email Address** field, enter the Vault user email address to be used as a contact in gateway transmissions.
5. Under **AS2 Profile Configuration**, complete the following fields:
    * **Vault AS2 URL**: This field is read-only. Verify that the DNS configured in your MHRA account exactly matches the URL in this field.
    * **Sponsor Certificate**: Select **Choose**, and then open the private encryption certificate used to register with the MHRA. The private certificate is usually a PFX file.
    * **Sponsor Certificate Password**: Enter the password for the sponsor certificate.
    * **Sponsor ID**: Enter the sponsor ID registered with the MHRA. This value is the same as the customer's Routing ID you provided when setting up your production or test MHRA account.
    * **Health Authority Certificate**: Select **Choose**, and then open the public encryption certificate received from the MHRA during account setup. The public certificate is usually a P7B file.
    * **Health Authority ID**: Enter one of the following EMA identification codes:
      * For a production account, enter `MHRAUK`.
      * For a test account, enter `MHRAUKTEST`.
    * **Health Authority URL**: Enter one of the following destination MHRA Gateway URLs:
      * For a production account, enter: `https://mft.mhra.gov.uk:443/as2receiver.aspx?Tag=PV`
      * For a test account, enter: `https://mft-test.mhra.gov.uk:443/as2receiver.aspx?Tag=PV`
    * **Gateway User**: Select the Safety user whose name should appear in audit logs and gateway transactions.
6. Select **Save**.
7. To activate the profile, on the top-right corner, select **Set Active**.

<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 <strong>Gateway User Required</strong> checkbox is automatically populated by the system and is informational only.</p>
    </div>
  </div>
</div>



**Result** 

The UK MHRA Gateway Profile is active and available to use to submit case reports to the MHRA.

## <a id="configure-the-MHRA-transmission-profile"></a>Configure the MHRA Transmission Profile

Safety comes with a system-provided **MHRA** Transmission Profile for electronic Submissions to MHRA.

<a href="/en/gr/01202/">Manage Transmission Profiles</a> provides instructions on setting up Transmission Profiles.

Complete the following steps to set up the Transmission Profile:

* **Origin ID**: Enter the ID registered with the MHRA, typically your D-U-N-S number. This value is the same as the customer's Routing ID you provided when setting up your production or test MHRA account.
* **Destination ID**: Enter one of the following Destination IDs:
* For a production account, enter `MHRAUK`.
* For a test account, enter `MHRAUKTEST`.
* **Routing ID**: Enter one of the following Routing IDs:
  * For a production account, enter `MHRAUK`.
  * For a test account, enter `MHRAUKTEST`.

Once you set up the MHRA Transmission Profile, the system uses the appropriate Transmission Profile to generate Submissions based on your Vault's MHRA <a href="/en/gr/01252/">reporting rules</a>.

[1]: #activate-mhra-org
[2]: #update-uk-northern-ireland
[3]: #update-uk-gb
[4]: #create-uk-ni
[5]: #configure-the-MHRA-transmission-profile