ЕСОЗ - публічна документація
[Depricated] [AUTO] Deactivate Program medications
- 1.1 Key elements
- 1.2 Purpose
- 2 Specification
- 3 Logic
Key elements
This job is no longer relevant, it has been replaced by a more universal one [AUTO] Deactivate medical program participants
Purpose
This procedure (automatic schedule task) is designed to deactivate Program medications after end date ends.
Specification
Components | ePrescription | Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription |
Microservices | no | Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC |
Logic
Fetch records from PRM.program_medications, where:
is_active = TRUE
end_date < current_date()
Update all records to:
is_active = FALSE
updated_at = now()
updated_by = SYSTEM_USER
Write changes to audit log
Write changes to event manager
Process configuration
Name | Description | Format | Default value |
---|---|---|---|
PROGRAM_MEDICATION_DEACTIVATION_SCHEDULE | How often to perform this task | Cron Format | `0 0 * * *` |
ЕСОЗ - публічна документація