Newer Version Available
Timeline for Health Cloud Empower Component
The HcCommunityTimeline component displays lists of events for a care plan. The events are shown on three tabs: Today (always shown); Past (can be excluded); and Future (can be excluded). This component is similar to the care team and tasks list in that it handles the plan selected event.
The Community Timeline component filter allows you to select the type of events you want displayed in the timeline by picking from a set of view configuration options.
| Name | Label | Type | Description |
|---|---|---|---|
| carePlanId | string | ID of the care plan or case for a given care team. | |
| patientId | string | Account ID of the person for whom to show care plan members. Setting patientId shows all care plans for that person. Setting carePlanId shows only the details for the referenced care plan. If both are set, carePlanId is used. | |
| showPastActivity | Show past events | boolean | Flag indicates if the Past tab is included to display past timeline activity. Default is true. |
| showFutureActivity | Show future events | boolean | Flag indicates if the Future tab is included to display future timeline activity. Default is true. |
| pageReloadSize | Page Reload Size | double | Number of activities to be loaded when a care plan is selected, Show More button is clicked, or when filters are changed. |
| picklistDefaultOptionTextForTimeline | Text instructing users to select a care plan to view timeline events. | string | Default: Select a care plan to view timeline events. |
| Name (Type) | Attributes (Type) | Description |
|---|---|---|
| HcCommunityEventCarePlanSelected (Application) |
|
Event that is fired when a care plan option is selected in the Health Cloud Care Plan Picker component. |
- Use Alongside Another Component
-
This component has an event handler for HcCommunityEventCarePlanSelected event.
Your custom component must fire HcCommunityEventCarePlanSelected event that this component handles. The value passed in the event is CaseId (type String). Health Cloud package provides a component, Care Plan Selector, that registers and fires HcCommunityEventCarePlanSelected event with CaseId.
- Use as a Child or Nested Component
-
This component would require carePlanId (type String) as input from its parent component. The value of the carePlanId must be a valid CaseId value.
- Use in a Case Record Page
-
This component can be used in Lightning Record Page for Case object. The Case Record Page sets the recordId attribute to the case Id since it implements the force:hasRecordId interface.