---
schema_version: "1"
id: 44c8b769dc7cbbdae202cfcd9d088c78a780b07e619d691971c8044dff23a587
title: Configure Data Mappings for the Wellness Questionnaire
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/safety_cloud_create_wellness_q_datamappings.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.safety_cloud_create_wellness_q_datamappings.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e82eeb5c12739a53591960614554ca3867138a26c8c30ae1c5d356691cfa80bd
description: The Wellness Questionnaire comes preconfigured with default data mappings that map Wellness Questionnaire survey responses to fields on the Health Verification record. When a respondent submits the Wellness Questionnaire, Safety Cloud generates a Health Verification record and, using the questionnaire’s data mappings, maps the survey responses to the matching fields on the record.
products:
  - Salesforce Platform
release: "264"
---
# Configure Data Mappings for the Wellness Questionnaire

The Wellness Questionnaire comes preconfigured with default data mappings that map Wellness Questionnaire survey responses to fields on the Health Verification record. When a respondent submits the Wellness Questionnaire, Safety Cloud generates a Health Verification record and, using the questionnaire’s data mappings, maps the survey responses to the matching fields on the record.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d918e60">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d918e60 ">To install a package:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d918e60 ">Modify All Data</td>

          </tr>
        </tbody>
      </table>

To view and configure the Wellness Questionnaire default data mappings, complete these steps.

1. To ensure that you’re using an inactive version of the Wellness Questionnaire, from the dropdown menu, select **Create New Version**.
2. From the dropdown, select **Advanced Settings**, and select **Survey Data Mapping**.
    
    The Survey Data Mapping page is displayed. The page shows the default data mapping object named `Questionnaire_To_HealthVerification` that comes with the Wellness Questionnaire.
3. Edit the default data mappings in Questionnaire\_To\_HealthVerification by clicking the pencil icon.
    
    The Edit Mapping page is displayed.
4. Configure the mappings between survey responses on the questionnaire and fields on the Health Verification record, and save your changes.
5. To create more mappings between a survey response and a field on the Health Verification record, click **Add Row**.
    
    1. Specify the field, information type, and the value from the survey.
    2. Save your changes.
    
    If you want to map a survey response to a particular Occasion, the mapping row contains these values.
    
    - Field: Occasion Id
    - Information Type: String
    - Value: Occasion Id, such as a0B7x0000007KGXEA2
    
    For this example to work, you must first create an Occasion record in Safety Cloud to get the Occasion ID value.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-vaccine_cloud-264-0-0-production-enus/efba81cf-4df2-478b-9074-4524c9b354ed/images/icon_note.png)
    
    Note To keep the Wellness Questionnaire configurable and extensible for any implementation, we don’t include Occasion ID in the default mapping for the Wellness Questionnaire. Additionally, Occasion Id isn’t a required field on the Health Verification record.
    
    For information about Occasions, see [Managing Events with Occasions](https://help.salesforce.com/s/articleView?id=service.safety_cloud_occasions_intro.htm&release=264.0.0&type=5 "Safety Cloud comes with an Occasion Object data model that allows you to create Health Verification configurations specific to an event.").
6. **Optional:** Stamp the Wellness Questionnaire with the OccasionId dynamically.
    
    Stamping the Wellness Questionnaire with the OccasionId allows you to locate and map Health Verification records with their associated OccasionId.
    
    1. From your version of the Wellness Questionnaire, go to **Survey Builder** | **Merge Field** | **Org and Custom Variable**, and set these fields.
    2. Click **New Variable**, then add the Variable = varOccasionId, and Type = Custom.
    3. Save your changes, and click **Back to Builder**.
    4. Go to**Advanced Settings** **Survey Data Mapping**, and click the pencil icon.
    5. From Define Target Object Fields and Values, add a row.
        
        - Field: Occasion Id
        - Information Type: Custom Variable
        - Value: varOccasionId
    6. Ensure that the URL parameter includes the Occasion Id value in OccId.
    
    The OccasionId is stamped to the Health Verification record.
    
    Here’s an example URL:
    
    ```
    https://connect-force-2871-dev-ed.my.salesforce.com/survey/
    runtimeApp.app?invitationId=0Ki7x0000000xRV&surveyName=safetycloud__wellness_questionnaire
    &UUID=8f2c6871-62e6-4ca1-a24c-a8f69a5a7a04&varFirstName=Codey&varLastName=Bear
    ```
    
    Any system that reads a QR code must read these four pieces of information.
    
    - Verification ID.
    - Verification Start Date and Time.
    - Verification End Date and Time
    - Occasion ID
    
    Dates are for offline support. If your event has unstable WiFi, the QR codes can be scanned using the start and end dates or times.
    
    You can configure these fields so that the QR code is only valid for a specific set of hours, as shown in the sample.
    
    - **Access Start Time** = Beginning of day for negative test (the day of the event)
    - **Access End Time** = End of day for day of negative test (the day of the event)
    - **Access Offset**\= Time in minutes after a user’s health status is verified
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-vaccine_cloud-264-0-0-production-enus/efba81cf-4df2-478b-9074-4524c9b354ed/images/icon_note.png)
    
    Note You can use the Access Offset field or the Access Start Datetime and Access End Datetime fields to set the time range for which the generated QR code remains valid. You can’t use both.

#### See Also

- [Set Up a Wellness Questionnaire for Health Verifications](https://help.salesforce.com/s/articleView?id=service.safety_cloud_setup_wellnes_questionnaire_hv.htm&release=264.0.0&type=5 "You can access and set up a Wellness Questionnaire for Health Verifications.")
- [Customize the Wellness Questionnaire](https://help.salesforce.com/s/articleView?id=service.safety_cloud_customize_wellnes_questionnaire_hv.htm&release=264.0.0&type=5 "You can customize the Wellness Questionnaire by including the name of the event and the first and last name of the individual who is filling it out.")