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

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 3 Next »

Configuration

Process configuration

ParameterDescriptionValue
MEDICATION_DISPENSE_SCHEDULE(Cron Format) How often to perform termination`* * * * *`
MEDICATION_DISPENSE_EXPIRATION(Minutes, integer > 0) Medication Dispense lifetime10


Specification

Search candidates

1. Read MEDICATION_DISPENSE_EXPIRATION parameter value

2. Fetch records from OPS.medication_dispenses, where:

  • status = 'NEW'
  • inserted_at < now()MEDICATION_DISPENSE_EXPIRATION

Change status

1. Update status for all records to EXPIRED:

  • status = 'EXPIRED'
  • updated_at = now()
  • updated_by = SYSTEM_USER
  • No labels