Overall process
Capitation report starts periodically based on the value of configuration parameter CAPITATION_REPORT_SCHEDULE
Configuration
Parameter | Description | Value |
---|---|---|
CAPITATION_REPORT_SCHEDULE | (Cron Format) How often to run capitation report | `* 1 * * *` |
CAPITATION_REPORT_VALIDATE_SIGNATURE | true |
Specification
Prepare dataset
- Determine billing_date
Billing_date - first calendar day of month. Month is equal to the month of report execution date
2. Find active contracts
Active contract - contract that meets the following conditions:
Attribute | Condition |
---|---|
contract.start_date | < billing_date |
contract.end_date | >= billing_date |
contract.status | in (ACTIVE) |
3. Find active employees declared in Active contract's
Active employee - employee that meets the following conditions:
Attribute | Condition |
---|---|
contract_employees.start_date | < billing_date |
contract_employees.end_date | >= billing_date |
4. Find active declarations signed with Active employee