Versions Compared

Key

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

...

  1. Select list of employees from PRM.employees related to the current user in the current legal_entity, using data from the token.

  2. Select all active approvals on service_groups from ME.approvals (Mongo DB), where these employees referenced as granted_to.

  3. Get services (PRM.service_inclusions DB) by service_group_id. Save service to services list.

  4. Get Procedures by person_id from ME.procedures (Mongo DB) where:

    1. code.identifier.value is in services list (from previous step)

  5. Filter Procedures by submitted search params (diagnosesservice_group_id, managing_organization_id…).

  6. Order Proedures by inserted_at and render a response according to specification