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

RC_2_PSYHO_DLS

General

Release 1

  1. DLS Registry is managed by NHS
  2. DLS Registry must be updated in eHealth daily by NHS (DB inserts, DB updates)
  3. eHealth processes DLS Replica daily to reflect division statuses

DLS Replica structure

DB: DLS

Table: dls_registry

ParameterTypeM/ODescription
division_iduuidMDivision identifier in eHealth
dls_idvarchar(20)MDLS identifier
dls_statusvarchar(50)MDLS status
inserted_attimestampM

DLS Processor

Each record from DLS Replica must be processed

  1. Find division in PRM using replica division_id
    1. In case division by id not found - log error (including id) and skip this record
  2. Update only divisions with type DRUGSTORE and DRUGSTORE_POINT
PRM.divisionsDLS.dls_registry
dls_iddls_id
dls_statusdls_status

DLS statuses

TBD

References

Deactivate Medical Program Provision

In case division becomes not verified in DLS (dls_verified=false) (according to link)

  1. If DISPENSE_DIVISION_DLS_VERIFY chart parameter is on:

    • deactivate related to the division all active medical program provision entities:

      • set is_active = false

      • set deactivate_reason = AUTO_DIVISION_DLS_NOT_VERIFIED 

      • set updated_at, updated by 

  2. If DISPENSE_DIVISION_DLS_VERIFY is off, then skip this event

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