Add Support for Google Map Data
By default, the main OmniScript for Self-Service Appointment Management accepts only
ZIP codes for location data. You can add support for Google Map data.
|
Available in: Lightning Experience Available in: Enterprise and Unlimited Editions with Health Cloud |
| User Permissions Needed | |
|---|---|
| To use OmniStudio | OmniStudio Admin permission set |
To add support for Google Map data, you must obtain a Google Maps API Key from
Google.
-
Create a new version of the healthCloudIAM/selfService OmniScript.
- In the source org, from the App Launcher, open the OmniStudio app.
- Go to the OmniScripts page and enter healthCloudIAM in the search field.
- Expand the healthCloudIAM/selfService OmniScript.
-
Click the link for the highest version.
The OmniScript opens in the OmniScript Designer.
-
Click New Version.
The Version value in the Header is incremented.
-
In the Navigation Panel, click the Tree View icon.
The Tree View lets you view and select step subcomponents.
-
Edit the SelectLocation step.
- Select the SelectLocation step.
- In the Navigation Panel, expand the SelectLocation step.
- Click PatientZipCode.
- In the Number Properties panel, deselect Active.
- In the Navigation Panel, click Location.
- In the Type Ahead Block Properties panel, select Active.
- In the Type Ahead Block Properties panel, scroll to the Google Maps Autocomplete section.
- Enter your Google Maps API Key.
- In the Navigation Panel, click CheckCompleteAddress.
- In the Formula Properties panel, select Active.
- In the Navigation Panel, click CompletAddressMsg.
- In the Messaging Properties panel, select Active.
-
Edit the ScheduleProvider step.
- Select the ScheduleProvider step.
- In the Navigation Panel, expand the ScheduleProvider step.
- Click FilterPatientZipCode.
- In the Number Properties panel, deselect Active.
- In the Navigation Panel, expand MoreFilters.
- Click SearchPatientLocation.
- In the Type Ahead Block Properties panel, select Active.
- In the Type Ahead Block Properties panel, scroll to the Google Maps Autocomplete section.
- Enter your Google Maps API Key.
- In the Navigation Panel, click CheckFilterAddress.
- In the Formula Properties panel, select Active.
- In the Navigation Panel, click ValidAddress.
- In the Messaging Properties panel, select Active.
-
Edit the Apply Filter button in the ScheduleProvider step.
-
In the Navigation Panel, click
IntegrationProcedureAction1.
As an alternative, you can click the Apply Filter button in the step.
-
In the Integration Procedure Action Properties panel, next to the
Integration Procedure field, click the icon to open the Integration
Procedure.
The healthCloudIAM-FetchProviderAndTimeSlotsFilter Integration Procedure opens in the Integration Procedure Designer.
- Select the DRTransformProviderSearchInput step.
-
In the DataRaptor Transform ActionProperties panel, next to the
DataRaptor Interface field, click the icon to open the DataRaptor.
The HealthCloudIAMTransformProviderSearchFiltersInput DataRaptor opens in the DataRaptor Designer.
- Click New Version.
- Go to the Transforms tab if you aren't already there.
- Edit the ScheduleProvider:FilterPatientZipCode Input JSON Path and check Is Disabled.
- Edit the ScheduleProvider:MoreFilters:SearchPatientLocation-Block:FilterPatientZipCode Input JSON Path and deselect Is Disabled.
- Click Activate.
-
In the Navigation Panel, click
IntegrationProcedureAction1.
-
In the OmniScript Designer, edit the IPGetProviderAndSlots step.
- Select the IPGetProviderAndSlots step.
-
In the Integration Procedure Action Properties panel, next to the
Integration Procedure field, click the icon to open the Integration
Procedure.
The healthCloudIAM-FetchProviderAndTimeSlots Integration Procedure opens in the Integration Procedure Designer.
- Select the DRTransformProviderSearchInput step.
-
In the DataRaptor Transform ActionProperties panel, next to the
DataRaptor Interface field, click the icon to open the DataRaptor.
The HealthCloudIAMTransformProviderSearchInput DataRaptor opens in the DataRaptor Designer.
- Click New Version.
- Go to the Formulas tab.
- Next to the UpdatePatientZipCode Formula Result Path, check Is Disabled.
- Go to the Transforms tab.
- In the Input JSON Path column, rename the UpdatedPatientZipCode field to InputPatientZipCode.
- Click Activate.
- In the OmniScript Designer, click Activate Version.