graph TD
CP["
๐ SYSTEM ORCHESTRATORHospital OS Control Pulse"]
subgraph Gov ["Governance and Command"]
CH["๐ Chancellor"]
DIR["๐ฏ Director"]
SA["๐ก๏ธ Super Admin"]
ITA["๐ป IT Admin"]
BA["๐ผ Billing Admin"]
HR["๐ฅ HR Manager"]
AD["๐ Analytics Dashboard"]
TM["๐ Treasury Manager"]
BIO["๐งฌ Biometric Data Hub"]
end
subgraph Ops ["Resident Operations"]
RL["๐ Resident Leads"]
MS["๐งผ Maintenance Staff"]
SBE["Smart Booking Engine"]
PCV["โ
Policy Compliance"]
BGP["๐ Critical-Access"]
AUL["๐ Forensic Audit"]
ACK["Feedback Acknowledgment"]
end
subgraph Sec ["Reporting and Security"]
QI["๐งช Quality Inspectors"]
SF["๐ธ Security Feeds"]
PACS["๐๏ธ Assets Vault"]
APE["๐ System Alert"]
end
subgraph Fin ["Operational and Financial"]
REC["๐ Registration Desk"]
SUP["๐ Supply Store"]
BS["๐ณ Front-Desk Billing"]
SAP["๐ฆ Smart Auto-Procure"]
end
subgraph Fac ["Facility and Logistics"]
MT["๐จโ๐ผ Maintenance Team"]
SP["๐จ Security Personnel"]
BT["๐ง Biomedical Technicians"]
TD["๐ Transit Driver"]
SC["๐ฆ Store Controller"]
end
subgraph Ext ["External User Interface"]
RWP["๐ค Resident Web Portal"]
MOB["๐ฒ Mobile HMS App"]
GV["๐ฅ Guest Visitors"]
end
subgraph SecurityPerimeter ["Hardware Security Perimeter"]
FW["๐ก๏ธ Perimeter Firewall"]
end
subgraph Infra ["Core Infrastructure Layer"]
NSP["๐ก๏ธ SSL and Load Balancer"]
JWT["๐ Token Verification"]
NGX["๐ Nginx Gateway"]
JI["โ Java Logic Engine"]
NF["๐ข Node.js Event Layer"]
PG[("๐๏ธ PostgreSQL 16+")]
RMS["๐๏ธ Master-Slave Sync"]
WAL["๐พ WAL Integrity"]
PM2["โ๏ธ PM2 Monitor"]
SMTP["Hub Notification Relay"]
MSG["๐ฒ Messaging Hub"]
end
subgraph API ["Service API Gateway Layer"]
REST["๐ REST API Endpoints"]
WSSG["๐ฒ WebSocket Gateway"]
GRPH["๐ก๏ธ Query Orchestrator"]
end
subgraph Services ["Third-Party Ecosystem"]
PAY["๐ณ Payment Gateway"]
CLD["๐ฆ Cloud Assets Hub"]
end
subgraph CoreMainframe ["Physical Core Mainframe Cluster"]
CRM["
SEGMENT_01:ULTRA_WIDE_MAINFRAME_VAULT
XEON_COMPUTE_U4Java Backend Core / Distributed Event-Loop Node
PGSQL_NVME_U3ACID Transactions / Synchronous Master-Slave Replicas
GATEWAY_FW_U2WAF / Load Balancing / Perimeter Ingress Guard
PWR_UNIT_U1Offline Redundant Uninterrupted UPS Power Cluster "]
end
CP --> SA
CP --> RL
CP --> QI
CP --> REC
CP --> MT
CP --> NSP
CP --> CH
CP --> HR
CP --> ITA
CP --> BA
CP --> SP
CP --> BT
CP --> BIO
RL --> SBE
SBE --> PCV
PCV --> JI
RL --> BGP
MS --> BGP
BGP --> AUL
AUL --> ITA
QI --> APE
SF --> PACS
PACS --> RL
APE --> NF
NF --> WSSG
WSSG --> RWP
WSSG --> RL
WSSG --> MOB
WSSG --> FCM
REC --> JI
JI --> BT
BT --> REC
JI --> PG
JI --> SUP
JI --> BS
BS --> PG
SUP --> SC
SC --> SAP
SAP --> BA
TD --> CP
TD --> MS
MT --> CP
CP --> MT
PG --> AD
PG --> TM
AD --> DIR
TM --> DIR
CH --> DIR
HR --> DIR
DIR --> CP
GV --> FW
RWP --> FW
MOB --> FW
FW --> NSP
NSP --> JWT
JWT --> NGX
NGX --> REST
NGX --> GRPH
REST --> JI
GRPH --> JI
REST --> NF
JI --- NF
NF --> PG
NF --> SMTP
NF --> MSG
BA --> PAY
PACS --> CLD
BIO --> HR
BIO --> JI
SA --> REST
HR --> REST
SC --> REST
SP --> WSSG
ITA --> REST
BA --> PG
REST -.-> NGX
NGX -.-> NSP
NSP -.-> FW
FW -.-> GV
FW -.-> RWP
FW -.-> MOB
JI -.-> REST
JI -.-> ACK
ACK -.-> RL
WSSG -.-> SP
JI --> CRM
NF --> CRM
PG --> CRM
REST --> CRM
WSSG --> CRM
GRPH --> CRM
BIO --> CRM
MOB --> CRM
PAY --> CRM
MSG --> CRM
CLD --> CRM
FW --> CRM
linkStyle 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,20,21,22,23,24,25,26,27,28,29,31,39,41,42,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,63,64,67,69,70,71,72,73,75,76,77,78,79,80,81,84 stroke:#3b82f6,stroke-width:3px
linkStyle 16,17,18,19,40 stroke:#ef4444,stroke-width:3.5px
linkStyle 15,30,32,33,34,35,36,37,38,43,44,62,65,66,68,74,82,83 stroke:#f59e0b,stroke-width:3px
linkStyle 85,86,87,88,89,90,91,92,93,94,95,96 stroke:#00f5ff,stroke-width:4px
style CP fill:#3b82f6,color:#fff
style PG fill:#f59e0b,color:#fff
classDef iron fill:#eff6ff,stroke:#3b82f6,stroke-width:2px,color:#1e40af
classDef fluid fill:#ecfdf5,stroke:#10b981,stroke-width:2px,color:#065f46
classDef critical fill:#fff1f2,stroke:#ef4444,stroke-width:2px,color:#991b1b
classDef atomic fill:#fffbeb,stroke:#f59e0b,stroke-width:2px,color:#92400e
classDef server fill:none,stroke:none
class JI,CP,SBE,PCV,NSP,JWT,REST,WSSG,GRPH,FW iron
class NF,APE,FCM,SMTP,MSG fluid
class BGP,AUL critical
class PG,SAP,WAL,RMS,AD atomic
class CRM server