ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overall process

Capitation report starts periodically based on the value of configuration parameter CAPITATION_REPORT_SCHEDULE

Configuration

ParameterDescriptionValue
CAPITATION_REPORT_SCHEDULE(Cron Format) How often to run capitation report`* 1 * * *`
CAPITATION_REPORT_VALIDATE_SIGNATURE
true

Specification

Prepare dataset

  1. Determine billing_date

Billing_date - first calendar day of month. Month is equal to the month of report execution date

Example

Report execution date is June 5, 2018

So the billing date should be June 1, 2018

2. Find active contracts

Active contract - contract that meets the following conditions:

AttributeCondition
contract.start_date< billing_date
contract.end_date>= billing_date
contract.statusin (ACTIVE)

3. Find active employees declared in Active contract's

Active employee - employee that meets the following conditions:

AttributeCondition
contract_employees.start_date< billing_date
contract_employees.end_date>= billing_date
  • No labels