Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Check Patient Location for Appointments

          Check Patient Location for Appointments

          Create custom fields and edit an Omniscript to check that a patient’s location at the time of a virtual appointment matches with a care provider license jurisdiction.

          Required Editions

          Available in: Lightning Experience

          Available in: Enterprise and Unlimited Editions with Health Cloud

          User Permissions Needed
          To edit OmniScripts: OmniStudio Admin permission set

          To show only providers that can provide care in the user’s location, set up a custom filter for licensing jurisdictions.

          1. To store locations where the provider can practice Virtual Care, add a custom field to the Healthcare Provider Object.
            1. From Setup, click Object Manager, then click Healthcare Provider
            2. Open Fields & Relationships and click New.
            3. Select the Picklist (Multi-Select) data type and click Next.
            4. Enter the Field Label. For example, Licensing State.
            5. Select Enter values, with each value separated by a new line.
            6. Enter the jurisdictions where your providers can legally practice virtual care.
              Depending on your location, you can enter all of your country’s states and territories, or enter a few that apply to your providers.
            7. Leave the Field Name as is and click Next.
            8. Set field-level security to allow users to update provider information, then click Next.
            9. Leave the default page layout assignment as is and click Save.
          2. Add a Licensing State custom field to the Care Provider Searchable Field object so that location is a searchable field.
            1. In the Object Manager, click Care Provider Searchable Field.
            2. Open Fields & Relationships, and click New.
            3. Select the Picklist (Multi-Select) data type, and click Next.
            4. Enter the Field Label. We suggest Licensing State_PS.
            5. Select Enter values, with each value separated by a new line.
            6. Enter the jurisdictions where your providers can legally practice Virtual Care.
              Enter the same jurisdictions that you entered for the custom field in the Healthcare Provider object.
            7. Make a note of the Field Name as you need it later in this task. Then click Next.
            8. Set field-level security to Read-Only for all users that need access to this field in Provider Search, then click Next.
            9. Leave the default page layout assignment as is, then save your work.
          3. Map the Licensing State field on the Healthcare Provider object to the Licensing State field on the Care Provider Searchable Field object.
            1. From Setup, in the Quick Find box, type Care Provider Search, and select Care Provider Search Config.
            2. Click New.
            3. Enter a label. We suggest Licensing_State_Config.
            4. Select Healthcare Provider from the Mapped Object dropdown list.
            5. In Source Field, add the Field Name of the field you added to the Healthcare Provider object. For example, Licensing_State__c.
            6. In Target Field, add the Field Name of the field you added to the Care Provider Searchable Field object. For example, Licensing_State_PS__c.
            7. Select IsActive.
            8. Save your changes.
          4. Edit the Omniscript to ask the user their location at the time of the appointment.
            This strategy directly asks the user’s location at the time of appointment. There are other programmatic approaches to determine location, but they’re more complex.
            1. From the App Launcher, find and select OmniStudio.
            2. Go to the OmniScripts page and enter healthCloudIAM in the search field.
            3. Expand the healthCloudIAM/selfService Omniscript and open the latest version.
            4. Click New Version.
            5. In the Build panel, expand Groups.
            6. Drag the Step option above the Step named SelectLocation.
            7. Enter a Field Label. For example, Current State.
            8. Enter Instructions. For example, Which state will you be located in at the time of your appointment?
            9. In the Build panel, expand Inputs.
            10. Drag the Select component inside the step.
            11. In Select Properties, enter a Name. We suggest CurrentStateValues.
            12. Select Required.
            13. In Option Source, select $Object.
            14. In Source Type, enter the Object and Field API names where the state multi-select picklist is located. The format is ObjectName.FieldName. For example, if you created the Licensed State field on the Healthcare Provider, enter HealthcareProvider.Licensing_State__c.
          5. After the customer indicates the state where they are at the time of the appointment, we pass that value into the filter choices for Provider Search.
            1. From the OmniStudio app, select OmniStudio Integration Procedures.
            2. Expand healthCloudIAM/FetchProviderAndTimeSlots and select the latest version.
            3. Click Create Version.
            4. Click the DRTransformProviderSearchInput step.
            5. In the Omnistudio Data Mapper Transform Action Properties panel, open the Data Mapper by clicking the blue chain link to the right of name next to the Data Mapper Interface field.
            6. Go to the Transforms tab.
            7. Add a transform by clicking the + icon.
            8. In the Output JSON Path, enter ProviderSearchInput:CustomFilter
            9. In Output Data Type, select List<Map>.
            10. Add another transform by clicking the plus sign located top right of list of dataraptors.
            11. In the Input JSON Path, enter the name of the step that was added to ask the user’s location and the name of the element holding the current state value. Type CurrentState:CurrentStateValues.
            12. In the Output JSON Path, enter ProviderSearchInput:Licensing_State_PS__c.
          6. Update the applied filter in the ScheduleProvider step.
            1. Go back to the healthCloudIAM/selfService Omniscript.
            2. Expand the ScheduleProvider step by clicking drop down arrow at right end of step
            3. Click Apply Filter.
            4. In the Properties panel on the Integration Procedure field, click the blue link to right of the field to open the healthCloudIAM_FetchProviderandTimeSlotsFilter.
            5. Select the DRTransformProviderSearchInput step.
            6. In the Data Mapper Transform Action Properties panel, open the Data Mapper by clicking blue link to the right of the field next to the Data Mapper Interface field.
            7. Go to the Transforms tab.
            8. Add a Transform by clicking the grey plus sign at top right
            9. In the Output JSON Path, enter ProviderSearchInput:CustomFilter.
            10. In Output Data Type, select List<Map>.
            11. Add another Transform by clicking grey plus sign at top right.
            12. In the Input JSON Path, enter the name of the step that was added to ask the user’s location and the name of the element holding the current state value. For example, CurrentState:CurrentStateValues
            13. In the Output JSON Path, enter ProviderSearchInput:Licensing_State_PS__c.
            14. Save your work.
          7. In the OmniScript Designer, click Activate Version.
           
          Loading
          Salesforce Help | Article