Skip to content

Architecture

Leandro Matayoshi edited this page May 6, 2020 · 2 revisions

Overview

Maap Store Architecture comprises the following parts:

  1. API
  2. ActiveAdmin
  3. Workers

API

This part of the application provides endpoints that enable communications with the client (Maap Collector). Endpoints' routes are scoped under /api/.

ActiveAdmin

A UI for admins is provided almost out-of-the-box through ActiveAdmin gem (https://activeadmin.info/). There, admins will be able to view and manage the different aspects of the application such as Sites, Antibiotic Consumption, Lab Record Imports, etc. Additionally, they can grant access to collectors and other admins to start using the app.

Workers

Obfuscation of Personal Health Information (PHI) and Patient Identification Numbers (PIDs) is carried out by workers, that run in background processes. By doing this, we avoid doing heavy processing when handling client requests. Workers are managed by Sidekiq Gem (https://github.com/mperham/sidekiq).

Clone this wiki locally