Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Key elements

This job is no longer relevant, it has been replaced by a more universal one https://e-health-ua.atlassian.net/wiki/spaces/EH/pages/18359714342

Purpose

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

Specification

Page Properties

Components

ePrescription

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

Microservices

no

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

Logic

  1. Fetch records from PRM.program_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

PROGRAM_MEDICATION_DEACTIVATION_SCHEDULE

How often to perform this task

Cron Format

`0 0 * * *`