---
schema_version: "1"
id: 892726a06577f80f8e65f13a78aadbae5df8e40b05fedb4a189d523169445b97
title: Recalculate Patient Risk Scores at a Scheduled Time
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/admin_apex_recalculate_scheduled.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.admin_apex_recalculate_scheduled.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2718e5127155868494c090b1429bf9ad6753593ae4729c8dd13816ee6b39da96
description: Recalculate Medicare and Medicaid patient risk scores in Health Cloud at a specific time with a batch Apex job.
products:
  - Health
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
        <colgroup>
          <col>
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p>Available in: Lightning Experience</p>
              <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions with Health
                Cloud</p>
            </td>

          </tr>
        </tbody>
      </table>

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

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-health-264-0-0-production-enus/90a9f828-79ab-49cd-ac8c-86e58ef7478e/images/icon_example.png)

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**.

```java
HealthcloudGA.HcCMSRiskScoringScheduledJob  riskJob = 
        new HealthcloudGA.HcCMSRiskScoringScheduledJob (2017);
String sch = '0 00 00 * * ?';
String jobName = 'Risk Scoring Job';
System.schedule('Risk Scoring Job', sch , riskJob);
```