/
[AUTO] Deactivate Medications

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

[AUTO] Deactivate Medications

Purpose

This procedure (automatic schedule task) is designed to deactivate Medications after the end date ends.

Specification

Components

ePrescription

Зазначається перелік бізнес компонентів, які використовують цей метод, наприклад: ePrescription

Microservices

no

Перелік мікросервісів, які використовує метод API, наприклад: Auth, ABAC

Logic

  1. Fetch records from PRM.medications, where:

    1. is_active = TRUE

    2. end_date < current_date()

  2. Update all records to:

    1. is_active = FALSE

    2. updated_at = now()

    3. updated_by = SYSTEM_USER

  3. Write changes to audit log

  4. Write changes to event manager

Process configuration

Name

Description

Format

Default value

Name

Description

Format

Default value

MEDICATION_DEACTIVATION_SCHEDULE

How often to perform this task

Cron Format

`0 0 * * *`

 

Related content

[Depricated] [AUTO] Deactivate Program medications
[Depricated] [AUTO] Deactivate Program medications
More like this
Deactivate program medication registry
Deactivate program medication registry
Read with this
[AUTO] Deactivate Medications_UA
[AUTO] Deactivate Medications_UA
More like this
Update program medication registry
Update program medication registry
Read with this
[AUTO] Deactivate Program medications_UA
[AUTO] Deactivate Program medications_UA
More like this
[Transferred] Sign Medication Request Request
[Transferred] Sign Medication Request Request
Read with this

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