Table of Contents |
---|
General
License verification used for healthcare services linked with divisions that relates to legal entities with MSP or PHARMACY license type. The special register is used as source for the license verification - healthcare_service_licenses table in DLS (DataLicenseStorage) database. Each insert/update event triggers replication app which replicates this data to eHealth PRM database. After that Processor app starts and perform actions in eHealth described below.
...
Search healthcare service in PRM.licensed_healthcare_services table by healthcare_service_id:
If not found - insert new record. Set all fields in PRM.licensed_healthcare_services.
if found - update PRM.licensed_healthcare_service.status.
Log status history to PRM.licensed_healthcare_services_status_history table.Processor
...
Deactivate Medical Program Provision
In case healthcare service with category = ‘PHARMACY’ becomes not verified in DLS (licensed_healthcare_service.status=inactive)
If
DISPENSE_DIVISION_HEALTHCARE_SERVICE_
...
DLS_
...
Search healthcare service in PRM.licensed_healthcare_services table by healthcare_service_id:
If not found - insert new record. Set all fields in PRM.licensed_healthcare_services.
if found - update PRM.licensed_healthcare_service.status.
Log status history to PRM.licensed_healthcare_services_status_history table.
VERIFY
chart parameter is on:deactivate related to the division from healthcare service all active medical program provision entities:
set is_active = false
set deactivate_reason =
AUTO_DIVISION_DLS_NOT_VERIFIED
set updated_at, updated by
If
DISPENSE_DIVISION_HEALTHCARE_SERVICE_DLS_VERIFY
is off, then skip this event