Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Get all employees with a related party (party.id = employee.party_id)

  2. Get all declared specialities (where speciality_officio = true) per party

  3. Get current limit for each speciality from global parameters

    1. PEDIATRICIAN: pediatrician_declaration_limit

    2. THERAPIST: therapist_declaration_limit

    3. FAMILY_DOCTOR: family_doctor_declaration_limit

  4. Get lowest limit for each party (declarations_limit)

  5. Find and count all active (status active or pending_verification) declarations for all this employees (per party) (declarations_count)

...