Use Cases

Thu thập dữ liệu bệnh nhân đái tháo đường từ Bệnh viện Hùng Vương

  1. Service hvmigrateuser được triển khai tại bệnh viện, kết nối với API Gateway của bệnh viện thực hiện đồng bộ dữ liệu hàng giờ.
  2. Service hvmigrateuser kết nối đến event store tại VDAT để publish event và fetch event để lấy trạng thái mới nhất khi cần.
  3. Service hvmigrateuser kiểm tra trạng thái của bệnh nhân tại hệ thống VDAT và thực hiện đồng bộ khi cần.
  4. Service hvconsumer được triển khai tại VDAT, kết nối đến event store tại VDAT fetch các event được lưu trữ trên event store và cung cấp API để truy vấn thông tin mới nhất của bệnh nhân.
graph LR
    hvmigrateuser[hvmigrateuser] --> API[API Gateway]
    API --> HV[Hung Vuong Hospital]
    hvmigrateuser --> EventStore[Event Store]
    
    hvconsumer[hvconsumer] --> EventStore
    hvconsumer --> VDAT[VDAT System]
    hvmigrateuser --> VDAT
    VDAT --> EventStore
    
    classDef hospitalNode fill:#f9d5e5,stroke:#333,stroke-width:1px;
    classDef serviceNode fill:#eeeeee,stroke:#333,stroke-width:1px;
    classDef platformNode fill:#d5f9e8,stroke:#333,stroke-width:1px;
    
    class HV,API hospitalNode;
    class hvmigrateuser,hvconsumer serviceNode;
    class EventStore,VDAT platformNode;
    
    subgraph "Hung Vuong Hospital"
        HV
        API
        hvmigrateuser
    end
    
    subgraph "VDAT Platform"
        EventStore
        hvconsumer
        VDAT
    end

Last modified March 27, 2025: Edit members.yaml (21070ed)