PL EN UA
← All 7 AI & n8n Case Studies
Private Zero-Cloud Medical AI Assistant (MedCabinet OS) — IKP, Biometrics & NFZ Queues
OLLAMA GEMMA3:12B • APPLE VISION OCR • IKP • NFZ API • ZEPP CLOUD
Zero-Cloud • $0 AI

Private Zero-Cloud Medical AI Assistant (MedCabinet OS) — IKP, Biometrics & NFZ Queues

100% local Apple Silicon ecosystem (Ollama gemma3:12b): IKP sync, native Apple Vision OCR for PDF/.heic labs, Amazfit/Zepp biometrics & concentric NFZ queue search with double-verified clinic emails.

0 zł / AI
100% local Ollama gemma3:12b on Apple Silicon (Zero-Cloud GDPR)
25–35s
Instead of 30–60 min manual NFZ queue & email lookup (-90%)
12 / 12
Automated test suites A–L passing (WebAuthn, OCR, NFZ, E2E)
Industry
MedTech / Healthcare — Private Zero-Cloud Patient Assistant (NFZ & IKP)
Verification Status
100% pass rate across 12 automated test suites A–L (Playwright Desktop + Mobile E2E, WebAuthn, OCR, NFZ API)
My Role
End-to-end zero-cloud architecture, IKP Playwright crawler, NFZ Open API & Zepp Cloud integrations, native Apple Vision OCR, local Ollama gemma3:12b triage, double-verified clinic scraper & 24/7 Apple Silicon deployment.

01 // INTERACTIVE N8N DATA PIPELINE ARCHITECTURE

Animated workflow topology & node execution order

Drag any node to bend workflow links
Step 1 & 2: Zero-Cloud Ingestion (IKP + Apple Vision OCR + Zepp) → SQLite Vault
1 IKP Playwright (2FA) → 2 iCloud Apple Vision OCR → 3 Zepp EU Cloud (2h) → 4 PII Scrub + SHA-256 → 5 SQLite Vault + Keychain → 6 WebAuthn + Cloudflare Tunnel
Step 3 & 4: Local Ollama gemma3:12b → Concentric NFZ API (R1–R3) → 2x Clinic Scraper → mailto: BCC
1 Ollama gemma3:12b (8K Metal) → 2 AI Triage SSE & Summary → 3 NFZ Open API (Ring 1–3) → 4 Parallel Clinic Scraper → 5 2x Verify (Phone/NIP/AI) → 6 Batch mailto: / BCC

02 // LIVE SYSTEM & OUTPUT SCREENSHOTS (CLICK TO ZOOM)

Real CRM tables, Klaviyo lists & automated Telegram alerts

03 // Business Context & Bottleneck

  • • Fragmented health data: e-Referrals, e-Prescriptions & sick leaves (pacjent.gov.pl), multilingual lab PDFs/.heic scans (PL/UA), and smartwatch biometrics lived in disconnected silos.
  • • Strict GDPR / medical privacy: sending blood labs, diagnoses, and national ID (PESEL) to third-party cloud LLM APIs was unacceptable.
  • • Slow manual NFZ queue hunting: the official NFZ Open API lacks clinic email addresses and requires exact benefit names plus manually browsing dozens of clinic websites.
  • • Complex ICD-10 medical codes and bilingual historical reports slowed down doctor visit preparation.

04 // Engineered Solution

  • ✓ Zero-Cloud Ingestion & Normalization: Playwright crawler syncs IKP (Shadow DOM / 2FA) and translates ICD-10 codes; iCloud watcher runs native Apple Vision OCR + PDFKit (auto-rotation, PII scrubbing, SHA-256 deduplication); 2-hour Zepp EU Cloud sync pulls sleep/REM, HRV, SpO2, skin temperature & CTL/ATL/TSB with macOS Keychain tokens.
  • ✓ Hardened Privacy & Multi-Profile Security: isolated SQLite patient vaults (403 Forbidden cross-profile isolation), WebAuthn Passkeys + PBKDF2 auth, HTTPS access via Cloudflare Tunnel, and a global AI Kill-Switch.
  • ✓ Local AI Clinician (Ollama gemma3:12b on Apple Silicon Metal GPU): SSE-streaming triage chat (8K clinical context with loop guards), lab-to-biometrics correlation, and age/sex-aware health summaries after every sync.
  • ✓ Concentric NFZ Queue Finder & Double-Verified Scraper: maps IKP referrals to /benefits → concentric search (Ring 1 ≤15 km, Ring 2 15–35 km, Ring 3 35–75 km) → parallel clinic web scraper → double verification (NFZ phone, NIP/REGON, address + gemma3:12b check) → pre-filled single or batch BCC mailto: registration.

05 // Verified Scope & Outcomes

  • ◆ 100% GDPR medical privacy and $0/month AI/cloud spend — SQLite, Apple Vision OCR, and gemma3:12b run locally 24/7 on Apple Silicon.
  • ◆ Consolidated 65+ bilingual lab PDF/.heic records, ~300 days of biometrics, 300+ workouts, and full IKP history inside one Apple Liquid Glass UI (Desktop + iPhone).
  • ◆ Cut NFZ queue & clinic contact discovery time by ~90% — 25–35 seconds instead of 30–60 minutes of manual lookups, ready for single or batch BCC registration.
  • ◆ 100% pass rate across 12 automated test suites A–L covering profile isolation, WebAuthn Passkeys, brute-force protection, OCR, NFZ API, local LLM, and Playwright E2E.
Technologies & API Integrations
Python 3 & SQLiteOllama (gemma3:12b Metal)Apple Vision OCR & PDFKitPlaywright (Chromium)NFZ Open APIZepp EU Cloud APIWebAuthn (Passkeys)macOS Keychain & LaunchAgentsCloudflare TunnelTailwind CSS & Chart.js
Deploy a similar workflow →

Explore Other AI & n8n Case Studies

1 / 1