Recalculate Patient Risk Scores at a Scheduled Time
Recalculate Medicare and Medicaid patient risk scores in Health Cloud at a specific time
with a batch Apex job.
|
Available in: Lightning Experience Available in: Enterprise and Unlimited Editions with Health Cloud |
Use the HcCMSRiskScoringScheduledJob class and the Schedule.system method to schedule the job and a CronTrigger expression to initiate the schedule.
Example
To run the HcCMSRiskScoringScheduledJob class
each day at midnight, select Debug | Open Execute Anonymous Window. Enter
the following text in the Enter Apex Code window in Developer Console, and select
Execute.
1HealthcloudGA.HcCMSRiskScoringScheduledJob riskJob =
2 new HealthcloudGA.HcCMSRiskScoringScheduledJob (2017);
3String sch = '0 00 00 * * ?';
4String jobName = 'Risk Scoring Job';
5System.schedule('Risk Scoring Job', sch , riskJob);