---
schema_version: "1"
id: 1f59765b596e1dce9ae0622c237958c22f22de3d145e1d1925e81ceb22abd802
title: Create a Custom Flow to Add Medications
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/admin_medication_review_custom_flow.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.admin_medication_review_custom_flow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 885bf74b8bf1cb218a75b4e89c96f773a02eae79f30a459fda4ec4ea31c92137
description: Provide additional flexibility for your clinicians to add medications by using a custom flow instead of the built-in Add Patient Medication or Add Basic Medication Details flow. Depending on your business needs, you can set up a custom flow and associate it with the Patient Medication Manager Lightning component.
products:
  - Health
release: "264"
---
# Create a Custom Flow to Add Medications

Provide additional flexibility for your clinicians to add medications by using a custom flow instead of the built-in Add Patient Medication or Add Basic Medication Details flow. Depending on your business needs, you can set up a custom flow and associate it with the Patient Medication Manager Lightning component.

### 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;">
              <p>Available in: Lightning Experience</p>
              <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions with Health Cloud</p>
            </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="d76996e66">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d76996e66 ">To associate the custom flow with the component:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d76996e66 ">Read permission on Account object</td>

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

1. From Setup, in the Quick Find box, enter Flows, and then select **Flows**.
2. Design and create a flow to suit your clinician’s needs.
3. To ensure your flow is compatible with the Patient Medication Manager Lightning component, add an input variable called recordId for Person Account records.
4. Go to the Lightning App Builder from the Person Account record page. On the Patient Medication Manager component, select the custom flow from the Add Medication Flow dropdown menu.

Now, when your clinicians start adding a medication, the custom flow is triggered instead of the built-in flow.