---
schema_version: "1"
id: 10f5f68a17d45d13df82e4835a48b14989a61a6ef1f58604eb294d4019c8697f
title: Health | Generate EMR Data Fetch Payload
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/copilot_actions_ref_hc_generate_emr_data_fetch_request.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_hc_generate_emr_data_fetch_request.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a71cff44ce34f05ad444e65c5137547168b4d36b9fd9c6ef41b8050ef08eb3f8
description: Generates the input payload required to get Fast Healthcare Interoperability Resources (FHIR) data from Electronic Medical Record (EMR) systems.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Health | Generate EMR Data Fetch Payload

Generates the input payload required to get Fast Healthcare Interoperability Resources (FHIR) data from Electronic Medical Record (EMR) systems.

### 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: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the Agentforce for Health Cloud add-on license</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="col" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" id="d161407e82">User Permissions Needed</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d161407e85">&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d161407e82 ">To use this action:</td>

          <td data-label="" class="slds-cell-wrap" style="vertical-align:top;" headers="d161407e85 ">
            <p>Use Contact Center AI Assistive Agent</p>
            <p>AND</p>
            <p>Contact Center Agent for Health Cloud
              permission set </p>
            <p>AND</p>
            <p>Prompt Template User </p>
            <p style="margin-bottom:0;">AND</p>
            <p style="margin-bottom:0;">Data Cloud User</p>
          </td>

        </tr>
        <tr class="">
          <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d161407e82 d161407e85 ">See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_actions_common_perms.htm&amp;type=5&amp;language=en_US" target="_blank">Common User Access for Standard Agent Actions</a>.</td>

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

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note The agent uses public FHIR APIs to retrieve patient data in real time, including demographic data, clinical information such as prescriptions, lab results, health conditions, procedures, referrals, and care plans, and administrative data such as visit encounters and coverage from any certified EMR such as Epic, Oracle Cerner, and AthenaHealth. Data retrieval has been tested in the publicly available sandbox environments of these EMRs.

The agent leverages a pre-packaged [MuleSoft API](https://anypoint.mulesoft.com/exchange/org.mule.examples/generic-fhir-client-api/minor/1.2/console/method/%233963/) to interact with these FHIR endpoints. To enable the integration, provide the EMR-specific FHIR base URLs and credentials outlined on the [MuleSoft setup](https://www.mulesoft.com/exchange/org.mule.examples/generic-system-app/minor/1.3/pages/hb1-pmy/Setup/) page.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note The user interface of this product is available only in English and may not be fully supported in other languages.

## Action Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small "><colgroup><col style="width:50%"> <col style="width:50%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">API Name</td><td class="slds-cell-wrap" style="vertical-align:top;">GenerateEMRDataFetchPayload</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td><td class="slds-cell-wrap" style="vertical-align:top;">Prompt Template</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Reference Action</td><td class="slds-cell-wrap" style="vertical-align:top;">Generate EMR Data Fetch Payload (GenerateEMRDataFetchPayload)</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Does this action run one or more prompt templates?</td><td class="slds-cell-wrap" style="vertical-align:top;">Yes</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Required Setup</td><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=ind.hc_admin_cs_agentforce_for_contact_center.htm&amp;type=5&amp;language=en_US" target="_blank">Agentforce for Provider Contact Center</a></td></tr></tbody></table>

## Generate EMR Data Fetch Payload and Prompt Templates

This action uses the Generate EMR Data Fetch Payload prompt template to generate the request payload in JSON format for fetching FHIR resources as per the user's request.