Enterprise Data Flow
flowchart LR
%% ========= COLORS (Caire palette-inspired placeholders) =========
classDef source fill:#cce7ff,stroke:#2a7de1,color:#000;
classDef storage fill:#e0ffe5,stroke:#31a353,color:#000;
classDef process fill:#fff3c4,stroke:#c79b00,color:#000;
classDef security fill:#ffe0e0,stroke:#d63a3a,color:#000;
classDef output fill:#e4d7ff,stroke:#7a4ed8,color:#000;
%% ========= DIAGRAM START =========
subgraph "Attendo Systems (eCare Welfare)"
welfareAPI["Welfare API
(REST / Authentication)"]:::source
welfareCSV["Welfare CSV Export
(optional)"]:::source
welfarePDF["PDF: Care Decisions
(manual upload)"]:::source
end
subgraph "Caire Platform (AWS Stockholm - EU/EEA)"
ingest["Data Ingestion Layer
(API Gateway / Import Services)"]:::process
validate["Validation + Normalization
(Business Rules)"]:::process
encrypt["Encryption & Access Controls
(Transport & At-Rest)"]:::security
store["Datastore (High-Level)
Structured + Files
(e.g. relational + object storage)"]:::storage
optimize["Optimization Engine Level 2
Batch Scheduling"]:::process
audit["Logging, Audit & Monitoring
(Request logs, scheduling logs)"]:::security
end
subgraph Outputs
ui["Web UI
(Planner, Schedule Views)"]:::output
exportCSV["Export / Reports / CSV"]:::output
apiOut["API Response
(Planned schedule)"]:::output
end
%% ========= FLOWS =========
welfareAPI --> ingest
welfareCSV --> ingest
welfarePDF --> ingest
ingest --> validate --> encrypt --> store --> optimize --> audit
optimize --> ui
optimize --> exportCSV
optimize --> apiOut