Versions Compared

Key

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

Table of Contents

Introduction

...

  1. Select party_id from PRM.Party_users where  user_id = token.user_id 
  2. Select id from PRM.Employee where
    1. party_id = a Select 1.
    2. legal_entitty_id= token.client_id
  3. Select patient_id from OPS.Declarations where  
    1. employee_id = b Select 2.
    2. status = active
  4. Write selected records into Redis in the structure:
    user_id | client_id | employee_id | [{patient_id}|

The data in the Redis expires after N minutes or when declared event happens:

...