SYSTEM:PDOS/OVERVIEW

PDOS

Patient Data Operating System — A cross-platform TypeScript library for managing patient health data with privacy, security, and interoperability at its core.

Core Principles

  • Modular Architecture: Pluggable modules (auth, encryption, storage, matrix)
  • MobX Reactivity: Automatic UI updates via observable state management
  • Secure by Default: End-to-end encryption with Lit Protocol
  • Actions API: High-level abstraction for common operations

Quick Start

import pdos, { Core } from "@alpinehealthcare/pdos";

// Initialize
new Core({
  env: "marigold",
  context: {
    gatewayURL: "https://your-gateway-url.com",
    isComputeNode: false,
  },
  modules: {
    auth: {},
    encryption: { enabled: true },
    storage: {},
  },
});

// Start PDOS
await pdos().start();

// Authenticate
await pdos().modules?.auth?.initializeWalletUser(provider);