Newer Version Available
Timeline for Health Cloud Empower Component
The HcCommunityTimeline component displays lists of events for a care plan as configured in the Timeline configuration records. 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.
| Name | Label | Type | Description |
|---|---|---|---|
| carePlanId | string | ID of the care plan or case for a given care team. | |
| patientId | string | Account ID of the patient for whom to show care plan members Setting patientId shows all care plans for the patient. 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 should be included to display past timeline activity. Default is true. |
| showFutureActivity | Show future events | boolean | Flag indicates if the Future tab should be 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 would need to fire HcCommunityEventCarePlanSelected event that this component will handle. 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/Nested Component
-
This component would require carePlanId (type String) as input from its parent component. The value of the carePlanId should 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 will set the recordId attribute to the case Id since it implements the force:hasRecordId interface.