---
schema_version: "1"
id: f110836eb8914518bf36857a11fc8936463cab43b89819dea2f4dd37e52883c4
title: Health | Generate Patch FHIR 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_patch_fhir_payload.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_hc_generate_patch_fhir_payload.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 70cb09897e53245f101a6e19a6ba494c0ca7e8b3d804620f73a962629f15716e
description: Generates the Patch FHIR input payload required to update resources, such as Patient and Medication Request.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Health | Generate Patch FHIR Payload

Generates the Patch FHIR input payload required to update resources, such as Patient and Medication Request.

### 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="d89792e82">User Permissions Needed</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d89792e85">&nbsp;</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d89792e82 ">To use this action:</td>

          <td data-label="" class="slds-cell-wrap" style="vertical-align:top;" headers="d89792e85 ">
            <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="d89792e82 d89792e85 ">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;">GeneratePatchFhirPayload</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 FHIR Payload For Patch Request (GeneratePatchFhirPayload)</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 Patch FHIR Payload and Prompt Templates

This action uses the Generate FHIR Payload For Patch Request prompt template to generate the PATCH request payload in JSON format to process the user's request.