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

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

« Previous Version 2 Next »

Specification

Apiary

Purpose

This service is made to count an amount of declaration doctor has already made. The amount will increase (decrease) with each declaration signed (terminated) on prm and recalculated every night with real amount of doctor's declarations on ops.

Sign declaration request

  1. get employee_id from request
  2. add +1 to employee's properties 
    1. properties: {declaration_amount: n+1}

Terminate declaration

  1. get employee_id from request
  2. add -1 to employee's properties 
    1. properties: {declaration_amount: n-1}

Count declarations for employees

Ones a day start the process.

Calculate amount of declarations and update properties on prm.employees for each doctor


  • No labels