flowchart TB
%% Styling
classDef device fill:#0D1B2A,stroke:#7000ff,color:#e0e7ff,stroke-width:1px
classDef storage fill:#111E2C,stroke:#ff00aa,color:#e0e7ff,stroke-width:1px
classDef process fill:#121C2C,stroke:#7000ff,color:#e0e7ff,stroke-width:1px
classDef aimodel fill:#2D3142,stroke:#7000ff,color:#e0e7ff,stroke-width:1px
classDef api fill:#131824,stroke:#7000ff,color:#e0e7ff,stroke-width:1px
classDef client fill:#0F172A,stroke:#7000ff,color:#e0e7ff,stroke-width:1px
classDef stream fill:#000000,stroke:#7000ff,color:#7000ff,stroke-width:2px,stroke-dasharray: 5 5
classDef secure fill:#000000,stroke:#ff00aa,color:#ff00aa,stroke-width:1px
subgraph Healthcare_Edge_Computing_Network["Healthcare Edge Computing Network"]
S[Patient Monitoring Device 1]:::device -->|Real-time Data| Z
T[Patient Monitoring Device 2]:::device -->|Real-time Data| Z
Y[Remote Diagnostic Device N]:::device -->|Real-time Data| Z
subgraph Edge_Processing_Hub["Edge Processing Hub"]
subgraph Secure_Data_Gateway["Secure Data Gateway"]
Z([health.data.stream]):::stream
U[(HIPAA-Compliant Storage)]:::secure
end
Z -->|Process| A{AI Inference Router}:::process
E[(Patient Health DB)]:::storage
R[(De-identified Research DB)]:::storage
A --> |Store w/ retention policy| E
E --> |De-identify & Transform| R
R --> |Secure Transfer| Q[Research Repository]:::storage
end
subgraph AI_Models["AI Models"]
A <-->|Anomaly Detection| M[Vital Signs Analysis]:::aimodel
A <-->|Image Processing| I[Diagnostic Imaging]:::aimodel
A <-->|Event Prediction| P[Patient Risk Assessment]:::aimodel
end
subgraph API_Access_Control_Layer["API Access Control Layer"]
F[Authentication Service]:::api
G[Authorization Service]:::api
B[Rate Limiting]:::api
K[Audit Logging]:::api
end
subgraph Healthcare_Providers["Healthcare Providers"]
F --> |TLS 1.3| H[Clinical Dashboard]:::client
G --> |TLS 1.3| H
F --> |TLS 1.3| C[Emergency Response]:::client
G --> |TLS 1.3| C
F --> |TLS 1.3| D[Doctor's Mobile App]:::client
G --> |TLS 1.3| D
end
E -->|Protected Data| F
A -->|Controlled Access| G
subgraph Research_Access["Research Access"]
Q --> |Aggregate Analytics| V[Population Health Studies]:::client
Q --> |Anonymized Data| W[Clinical Research]:::client
Q --> |Model Training| X[AI Model Development]:::client
end
end