Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

  • DLS.service_license register is managed by NHS: inserts only inserts - , existing records shouldn't be cleared or changed.
  • NHS sets license statuses for healthcare services selected from healthcare_services table (see table specs)
  • Data in register should be updated at least once in twenty-four hours
  • eHealth perform online replicatiaon of service_license table from DLS to PRM database. PRM.service_license also serves as a history
  • PRM.licensed_healthcare_services table isn't clears. The new records are inserts, existing - updates. 

...

Field nameTypeM/ODescription
iduuidMUnique identifier of the table entry. Sets automatically 

healthcare_service_id

uuidM

Identifier of the healthcare service in eHealth. Corresponds to prm.healthcare_services.id (see table specs)

license_status

varchar(50)M

Status of the license for  healthcare service in the division of the legal entity with MSP or PHARMACY license type. Allowed values: ACTIVE, INACTIVE

inserted_at

timestampMDate of data insert. Sets automatically 

...

  1. 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, except end_date.
    • if found - update PRM.licensed_healthcare_service.statusIf it has INACTIVE value - also set PRM.licensed_healthcare_service.end_date and PRM.licensed_healthcare_service.is_active = False.

Influence

TBD