🏥 Digital Twin Platform

Or-care-stra Ensemble

End-to-end architecture for real-time medical equipment tracking, blockchain audit trails, and AI-powered anomaly detection

PHYSICAL LAYER 💓 Monitor 💉 Pump 🌬️ Vent BLE Tags RSSI EDGE LAYER 📶 IoT Gateway Trilateration ± 3m accuracy REST/WS CORE PLATFORM 🚀 Hono.js 🗄️ SQLite 🔌 WebSocket 🎮 Simulator Node.js Hash ⛓️ BLOCKCHAIN AUDIT #24 3f7a.. #25 8b2c.. #26 fe70.. + Immutable • Tamper-evident • SHA-256 UI Data APPLICATION LAYER Command Center ICU OT ED Assets 50 Online 47 Floor Plan 🗺️ Live Alerts 🔔 Real-time Blockchain ⛓️ Audit 👩‍⚕️ Nurses 🔒 Security 👨‍💼 Admin Chris Hani Bara
📡

Physical Layer

IoT infrastructure and equipment tagging

Hardware
🏷️ BLE Asset Tags
Ultra-low power Bluetooth beacons attached to medical equipment. Broadcast identity every 1-5 seconds.
Bluetooth 5.0 • 2+ year battery
📶 IoT Gateways
Zone-based receivers that triangulate tag positions and relay data to the platform.
WiFi/Ethernet • PoE powered
💓 Medical Equipment
Patient monitors, infusion pumps, ventilators, defibrillators, ultrasound machines.
50+ high-value assets (pilot)
🗺️ Floor Plan Zones
ICU, Operating Theatre, Emergency, Storage areas with defined geofence boundaries.
10 zones • 1 ward pilot
RSSI signals • Tag broadcasts

Edge Processing

Real-time signal processing and position calculation

Processing
📍 Trilateration Engine
Calculate precise X,Y coordinates from multiple gateway RSSI readings using signal strength algorithms.
±3m accuracy
🚨 Geofence Processor
Real-time boundary detection. Triggers alerts when equipment crosses zone perimeters.
< 5 second latency
🔄 Event Generator
Creates movement events, status changes, and alert triggers for blockchain recording.
SHA-256 hashing
💾 Offline Buffer
Local SQLite storage for 24-48 hour operation during network outages. Auto-sync on reconnect.
IndexedDB + SQLite
WebSocket • REST API
🖥️

Core Platform

Backend services, APIs, and data management

Backend
🚀 Hono.js API Server
Lightning-fast REST API for asset queries, alerts, user management, and real-time updates.
Node.js • TypeScript
🗄️ SQLite Database
Embedded database for assets, locations, events, users, and maintenance records. Zero config.
better-sqlite3 • WAL mode
🔌 WebSocket Server
Real-time bidirectional communication for live updates, simulator control, and alerts.
ws • Auto-reconnect
🎮 IoT Simulator
Realistic BLE tag movement simulation with configurable scenarios: normal, theft, hoarding, busy.
5-second tick rate
Cryptographic chaining • Merkle roots
⛓️

Blockchain Audit Layer

Tamper-evident logging and chain of custody

Immutable
📦 Block Producer
Automatic block creation every 30 seconds or 100 transactions. Merkle root calculation for integrity.
SHA-256 • Auto-seal
🔗 Chain Validator
Full chain integrity verification. Detects tampering by validating hash chains from genesis.
O(n) verification
📜 Asset Certificates
Digital identity passports for equipment. Chain of custody signatures from manufacturer to hospital.
PKI signatures
🔍 Audit Explorer
Query interface for transaction history, block details, and asset movement trails.
Full-text search
Real-time visualization • Alerts
🎯

Application Layer

User interfaces and operational dashboards

Frontend
🗺️ Command Center
Isometric 3D floor plan with real-time asset positions, zone overlays, and equipment markers.
Vanilla JS • CSS3
🔔 Alert Management
Real-time alert feed with severity levels. Acknowledge, resolve, and track incident history.
WebSocket live updates
📊 Analytics Dashboard
ROI tracking, savings metrics, equipment utilization, and trend analysis.
Chart.js • Real-time
📱 Mobile App (Future)
Nurse and security officer mobile interface for on-the-go asset lookup and alerts.
React Native • PWA

Data Flow Pipeline

🏷️

Tag Broadcast

BLE beacon transmits ID + battery level

📶

Gateway Capture

Multiple gateways receive RSSI signals

📍

Position Calc

Trilateration determines X,Y coordinates

⛓️

Chain Record

Movement hashed and added to block

🗺️

UI Update

Real-time map and alert display

50+
High-Value Assets Tracked
<5s
Alert Response Time
48h
Offline Resilience
100%
Audit Trail Coverage

Technology Stack

Hono.js

Ultra-fast API

🗄️

SQLite

Embedded DB

🖥️

Electron

Desktop App

🔐

SHA-256

Crypto Hashing

🔌

WebSocket

Real-time

☁️

Cloudflare

Edge Network