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.

Required Editions

Available in: Lightning Experience

Available in: Enterprise and Unlimited Editions with Health Cloud

Use the HcCMSRiskScoringScheduledJob class and the System.schedule method to schedule the job and a CronTrigger expression to initiate the schedule.

Example
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.
HealthcloudGA.HcCMSRiskScoringScheduledJob  riskJob = 
        new HealthcloudGA.HcCMSRiskScoringScheduledJob (2017);
String sch = '0 00 00 * * ?';
String jobName = 'Risk Scoring Job';
System.schedule('Risk Scoring Job', sch , riskJob);