Healthcare Infrastructure Stellar Soroban

Decentralized Vision Care Records & Verifiable AI Diagnostics

RetinaX replaces fragmented Electronic Medical Record (EMR) siloes with a patient-controlled, privacy-preserving health data infrastructure. Featuring zero-knowledge proofs, FHIR v4 compliance, and automated AI diagnostic oracle rotation on Soroban.

Optometrist using digital eye examination scanner
🏥 Clinical Practice Verification Stellar Real-Time Audit
5s
Ledger Finality
< $0.0001
Avg Transaction Fee
100%
Patient Data Sovereignty
25
WASM Smart Contracts
Zero knowledge medical privacy dashboard
Zero-Knowledge Architecture

Patient-Controlled Privacy & Anonymous Verification

RetinaX integrates Groth16 zk-SNARK verifiers on Soroban, allowing patients to prove medical eligibility—such as meeting visual acuity standards for driver licensing—without revealing private prescriptions or personal identity.

  • Client-Side AES Encryption for all medical payloads prior to IPFS storage.
  • Instant Granular Revocation: Patient controls access duration for doctors.
  • GDPR Art. 25 & HIPAA compliant data transit boundary rules.
Test ZK Proof Generator
AI Diagnostic Integration

Decentralized AI Oracles with Automated Failover

AI computer-vision models evaluate retinal scans for diabetic retinopathy and glaucoma risk. The `ai_integration` Soroban contract monitors provider response latency and automatically rotates execution to fallback oracle nodes if SLA limits fail.

  • On-Chain Provider Health Tracking (`Active`, `Paused`, `Retired`).
  • Automated Weight Rotation when primary oracle exceeds SLA response thresholds.
  • FHIR v4 LOINC-coded diagnostic report generation.
Simulate Oracle Failover
AI diagnostic retinal scan dashboard

Interactive Protocol Playground

Test real-time execution of role access grants, zero-knowledge proofs, AI oracle failovers, and FHIR v4 converters.

Role-Based Access Control (RBAC)

Simulate patient access permission grants enforced by Soroban require_auth().

SOROBAN CONTRACT EXECUTION LOG • LIVE STATE
// Soroban Call: contracts/vision_records::grant_access()
fn grant_access(env: Env, patient: Address, doctor: Address, ttl: u64) {
    patient.require_auth(); // Validated GDC...PATIENT_KEY_99X
    
    let grant = AccessGrant {
        granted_at: env.ledger().timestamp(),
        expires_at: env.ledger().timestamp() + ttl * 3600,
        active: true,
    };
    
    env.storage().persistent().set(&(patient, doctor), &grant);
    env.events().publish(("access", "granted"), (patient, doctor));
}

Zero-Knowledge Medical Proof Generator

Generate a groth16 proof for driver's license visual acuity standards without revealing patient identity.

ZK_VERIFIER OUTPUT PROOF READY
{
  "circuit": "contracts/zk_verifier::visual_acuity_proof",
  "public_inputs": ["Threshold: 20/40"],
  "proof_bytes": "0x98f21a007b82f10d9e...",
  "status": "VERIFIED_VALID",
  "identity_revealed": false
}

AI Oracle Provider Rotation

Simulate SLA timeout on the primary oracle node to verify automated failover.

AI_INTEGRATION ROTATION LOG SLA MONITORED
[AI_INTEGRATION] Primary Provider Active: "AI_Vision_Alpha" (Weight: 100)
[ORACLE_CALL] Processing Retinal Scan CID: ipfs://QmX9z...
[STATUS] Diagnostics Confirmed: No Diabetic Retinopathy Detected.
[EVENT] ProviderStatusChecked(Active, Weight: 100)

FHIR v4 Clinical Record Converter

Map Soroban contract structs into international FHIR v4 JSON records.

FHIR_V4_CONVERTER JSON LOINC VALIDATED
{
  "resourceType": "DiagnosticReport",
  "status": "final",
  "code": {
    "coding": [{
      "system": "http://loinc.org",
      "code": "28886-0",
      "display": "Refraction examination"
    }]
  },
  "subject": { "reference": "Patient/GDC...PATIENT_KEY_99X" },
  "effectiveDateTime": "2026-08-06T23:45:00Z"
}

Core Smart Contract Modules

25 WASM smart contracts compiled in Rust and deployed on Soroban.

contracts/vision_records

Vision Records

Patient health history, refraction parameters, and role permissions (`require_auth()`).

contracts/zk_verifier

ZK Verifier

Groth16 zk-SNARK verification engine for anonymous eligibility proofs.

contracts/ai_integration

AI Integrator

Automated provider failover and weight rotation oracle for AI diagnostics.

contracts/cross_chain

Cross-Chain Bridge

Merkle proof validation and refund resilience flows across networks.

contracts/fhir

FHIR & EMR Bridge

Bidirectional mapping to international FHIR v4 and LOINC clinical standards.

contracts/compliance

Compliance Protocol

GDPR Art. 25 data transit policy enforcement and HIPAA tracking.