Create a Custom Timeline View
Events on the patient timeline can include a square icon less than 1MB in size. Let’s add this calendar icon .
Upload an Icon for Timeline Events
- Download the icon.
- From the App Launcher, select Health Cloud – Lightning Admin.
- Click .
- Under Options, select Switch to Salesforce Classic.
- In the App Menu, select Health Cloud – Admin ().
- Click the Documents tab.
- For Folder, select Health Cloud Assets.
- Click New Document.
- Define a new document:
- Document Name:
timeline-icon-calendar
- Document Unique Name:
timeline_icon_calendar
- Externally Available Image: selected
- Folder: Health Cloud Assets
- Description:
Timeline icon for physical therapy sessions
- Keywords:
timeline, therapy, session
- Document Name:
- Select the file:
- Click Choose File.
- Select timeline-icon-calendar.png file.
- Click Open.
- Save the document, and return to Lightning Experience.
Add a Timeline View Configuration
Leif would like to identify therapy sessions by type on the timeline. He also wants an easy way to find out how long each session is.
Let’s configure a custom timeline view. Let’s display the therapy type as the event label and specify the session duration as hover text.
- In the App Launcher search, enter
Timeline
and then select Timeline View Configurations. - Click New.
- Define a timeline view configuration:
Note: Always use field names, not field labels.- Timeline View Configuration Name:
Physical Therapy Sessions
- Object Category:
Therapy
- Friendly Name:
Therapy Sessions
- Object Name:
Physical_Therapy_Session__c
- Detail Field:
Therapy_Type__c
- Hover Field Name:
Duration__c
- Position Field:
Session_Date__c
- Graphical Icon:
timeline_icon_calendar
(good thing we already uploaded that!) - Sort Order:
3
- Active: selected
- Patient Account Lookup: Account__c (autofilled)
- Filter Criterion: Blank (keep as is)
- Language: English (United States)
- Show on Load: selected
- Timeline View Configuration Name:
- For Configuration Target, move both Health Cloud Console App and Timeline For Health Cloud Empower to the Chosen list.
- Save the timeline view configuration.
The timeline’s Select All Events list has a new section: Therapy.
Now, when Leif visits a patient’s timeline view, he sees details of the therapy sessions that the patient attended.