THIS SOFTWARE IS COVERED BY THIS DISCLAIMER.
This component is an enhancement some examples found in an SDO for showing Einstein Discovery results in a component on page. The original components found were "hard coded" to the object that stored the Einstein Discovery results. This component is fully generic and can be placed on any object and all parameters are configurable.
The following is example screenshot of the component showing the Einstein Discovery results in component on right-hand side.
- Setup the Einstein Discovery writeback as defined here
If you are going to hand enter some dummy text values in the explanation or prescription fields, please follow this format in the rich text editor. Create entry like following on separate line
+ 12.75 if you Close Case within 3 hours
- 7.949 if you change Offer Voucher to false
Make sure to have a space between the '+' or '-' sign and the number.
Latest version has configuration options (Card title color, Header logo, Header background image, Header background color) to configure the colors to your needs. Here is sample card:
- Card title - the title string of the card to be displayed at top
- Card title color - the text color for the title of the card to be displayed at top
- Header logo - the icon to show on right-side of header section; this should be relative URL to a static resource file; default is Einstein logo at "/resource/PSEinsteinImages/einstein_header_icon.svg"; if you use custom logo icon, suggest to adjust height to about 110px
- Header background image - the background image of the header section; this should be relative URL to a static resource file; default is cloud image at "/resource/PSEinsteinImages/einstein_header_background.svg"
- Header background color - the background color of the header section (this will override the background image)
- Label for outcome score - the label string to display at right of outcome score
- Unit of measure of outcome score - the unit of measure for the outcome score
- Space before unit of measure - boolean flag to put a space before the unit of measure
- Place unit before outcome value - boolean flag to place unit before outcome value (ex: for $ values)
- API field name for outcome score - the API field name of the object field to pull the outcome score
- Color range definition for red,yellow,green - a range of values to determine the color of the outcome score. The string is in format like "-100,0|0,0|0,100" where first range defines red, second yellow and third green.
- Label for section 1 - the label to show at top of the first section of Einstein Discovery results
- Empty msg for section 1 - the message to show if this data is empty
- API field name for section 1 - the API field name of the object field to pull the Einstein Discovery analysis results. This field is rich text field that will store a value like "
+ 43.78 units because Age at Admission is 25.77 to 29.69 and Program Category is Outpatient<br>+ 11.15 units because Program Category is Outpatient<br>- 8.872 units because Secondary Substance is None<br>- 6.052 units because of other factors from the baseline
" - Section 1 color range - a range of values to determine the color of the section 1 values. The string is in format like "0,25|25,75|75,100" where first range defines red, second yellow and third green.
- Section 1 row limit - integer value to limit the number of displayed rows in section 1
- Label for section 2 - the label to show at top of the section section of Einstein Discovery results
- Empty msg for section 2 - the message to show if this data is empty
- API field name for section 2 - the API field name of the object field to pull the Einstein Discovery analysis results. This field is rich text field that will store a value like "
- 52.7 units if you change Program Category to Crisis<br>- 33.66 units if you change Service to Intensive Residential<br>- 32.34 units if you change Service to Residential Rehab for Youth
" - Section 2 color range - a range of values to determine the color of the section 2 values. The string is in format like "-100,0|0,0|0,100" where first range defines red, second yellow and third green.
- Section 2 row limit - integer value to limit the number of displayed rows in section 2
- Outcome Score - a Number(16,2) field to store the outcome results
- Explanation Field - a Rich Text Field to store the Einstein Analytics explanation results (for Section 1 above)
- Prescription Field - a Rich Text Field to store the Einstein Analytics prescription results (for Section 2 above)