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

Capitation Report Data Structure

Reporting DB objects

See details here

GitHub

capitation_reports

This table stores all the reports generated by the system

AttributeData TypeM/ODescription
idUUIDMUnique report id
billing_dateDATEMReport billing date
created_atTIMESTAMPMDate that shows when the report was generated

capitation_report_details

This table stores all the details, related to the report. It includes all metrics and aggregations

AttributeData TypeM/ODescription
idUUIDMUnique record id
capitation_report_idUUIDM

Capitation report ID.

Reference to capitation_reports.id

legal_entity_idUUIDM

Legal entity ID.

Reference to legal_entities.id

capitation_contract_idUUIDM

Capitation contract ID.

Reference to contracts.id

mountain_groupBOOLEANMMountain group
age_groupVARCHAR(50)MOne of the specified age group, defined in AGE_GROUPS
declarations_countINTEGERM

Number of all active declarations related to (specified):

  • age group
  • mountaing group
  • legal_entity
  • contract

capitation_report_errors

This table stores all records that cause the problem during report generation. It includes references to related objects, action and error message

AttributeData TypeM/ODescription
idUUIDMUnique record id
capitation_report_idUUIDM

Capitation report ID.

Reference to capitation_reports.id

declaration_idUUIDM

Declaration ID.

Reference to declarations.id

actionVARCHAR(50)MAction that cause the problem
messageTEXTMError message
inserted_atTIMESTAMPMRecord inserted_at datetime

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