Skip to content

Instantly share code, notes, and snippets.

View douglasgsouza's full-sized avatar

Douglas Gomes de Souza douglasgsouza

  • Brazil
View GitHub Profile
@douglasgsouza
douglasgsouza / feegow-auth-c4-diagram.md
Last active June 12, 2024 13:34
Feegow SSO Authentication

Overview

C4Context

    Person(usuario, "User", "Doctors and Employees")
    Person_Ext(paciente, "Patient", "Clinics patient")
    System(sistemas, Sistemas, "Feegow systems")
    System_Ext(externo, "External Providers", "Other identity providers or social networks")
flowchart TD
    A(Feegow) -->|eventEmitter| B[MS Events API]
    B --> C[(fa:fa-list<br>Events<br>queue)]
    D[MS Events Worker] <--> C
    D -->|get subscribers| E{Have subscribers?<br><small>Feegow API</small>} -->|yes| D
    D --> F[(fa:fa-list<br>Webhooks<br>queue)] <--> G[MS Events Sender]
    G --> H[fa:fa-server App A]
    G --> I[fa:fa-calendar App B]
@douglasgsouza
douglasgsouza / diagram.md
Created November 27, 2023 13:28
Medical Records Flow
sequenceDiagram
    autonumber
    title Medical Files - Data Flows
    actor C as Doctoralia App User
    participant B as DP Backend
    participant S as Feegow SSO
    participant M as Feegow Medical Records
    participant D as Feegow DWH
@douglasgsouza
douglasgsouza / mr-webhooks.md
Created May 13, 2024 13:17
Medical Records Webhooks
graph TD
    subgraph Receive
    F[Feegow emit a webhook <br><small>POST /webhooks/feegow</small>]
    F-->F1[(fa:fa-list-check Store in a webhooks queue)]
    --o W0
    end
    subgraph Webhooks Processing
    W0[end]
    .-> P1[fa:fa-spinner Worker 1<br><small>read the queue in batch</small>]