본문으로 건너뛰기

MedOS Lite — Open-Source Health Oracle

MedOS Lite is the open-source edition of Ever's healthcare operating system. It serves two roles in the EDH ecosystem:

  1. Health Oracle — A standards-compliant gateway that connects hospital systems (HIS, EMR, LIS, PACS) to the EDH patient-centric network, transforming institutional data into patient-owned, encrypted records.

  2. Storage Node — An encrypted data host that stores and serves EDH patient data, earning revenue by contributing storage capacity to the network.

Any hospital, clinic, lab, or individual can run a MedOS Lite instance. The software is MIT-licensed and runs on commodity hardware.

The Virtuous Cycle
1. Install
Hospital installs MedOS Lite
Connects HIS/EMR → patients get sovereign records
Oracle modePatient benefit
2. Contribute
Becomes a storage node
Spare capacity hosts encrypted data for other patients
Node modeNetwork grows
3. Earn
Revenue from hosting
Micro-payments for every byte hosted, settled on-chain
Storage feesUptime rewards
4. Grow
More nodes join
Revenue incentivizes more operators → more redundancy → more patients
FlywheelNetwork effect
Every new node makes the network more valuable. Every patient makes running a node more profitable.
MedOS Lite: Install → Contribute → Earn → Grow

The Virtuous Cycle

MedOS Lite creates a self-reinforcing economic loop:

1. A hospital installs MedOS Lite to serve its own patients. The hospital connects its existing HIS/EMR system. Patient data flows through MedOS Lite, is encrypted client-side, and stored on the EDH network. The hospital's patients gain sovereign access to their records. The hospital reduces data liability — it no longer holds plaintext patient data.

2. The hospital becomes a storage node. The same MedOS Lite instance that serves the hospital's patients also contributes encrypted storage capacity to the broader EDH network. Other patients — from other hospitals, other countries — can use this node for redundant, geographically distributed storage.

3. The hospital earns revenue from hosting. Every byte of encrypted data hosted for external patients generates income for the node operator. The hospital that installed MedOS Lite to improve patient care now has a revenue stream from its idle infrastructure. Storage fees are micro-payments settled on-chain.

4. Revenue incentivizes more nodes. As hosting becomes profitable, more hospitals, clinics, and independent operators deploy MedOS Lite nodes. More nodes mean more redundancy, lower latency, better geographic coverage, and higher fault tolerance for the entire network.

5. A better network attracts more patients and institutions. Patients choose EDH because their data is available everywhere, stored redundantly across dozens of nodes, and controlled entirely by them. Institutions join because the patient demand is there and the economics work.

This is the flywheel. Every new node makes the network more valuable. Every patient that joins makes operating a node more profitable.

What MedOS Lite Does

As a Health Oracle

CapabilityDescription
HIS/EMR BridgeConnects to hospital information systems via HL7 FHIR, HL7 v2, or custom adapters
Data TransformationConverts institutional formats into FHIR R4 resources
Client-Side EncryptionAll patient data is encrypted before it touches any storage layer
Patient OnboardingAutomatically creates EDH accounts for new patients, issues sovereign wallets
Consent ManagementEnforces patient consent rules — which data, to whom, for how long
Audit TrailMerkle-anchored access logs for tamper-proof compliance

As a Storage Node

CapabilityDescription
Encrypted HostingStores encrypted patient data blobs — the node cannot read what it stores
CID-Addressed RetrievalServes data by content address (IPFS CID), independent of location
RedundancyReplicates data across peer nodes for fault tolerance
Micro-PaymentsEarns per-byte hosting fees settled on-chain
SLA EnforcementSmart contract enforces uptime and availability commitments
Geographic ComplianceNodes declare their jurisdiction — patients can choose where data is stored (PDPA, GDPR compliance)

Node Economics

Revenue Sources

SourceDescriptionSettlement
Storage feesPer-GB-month fee for hosting encrypted patient dataOn-chain micro-payment
Retrieval feesPer-request fee when external parties access hosted dataOn-chain micro-payment
Onboarding incentivesBonus for each new patient onboarded through the nodeProtocol reward
Uptime rewardsBonus for maintaining high availability (99.9%+)Protocol reward

Cost Structure

MedOS Lite runs on commodity hardware. Minimum requirements:

ResourceMinimumRecommended
CPU2 cores4+ cores
RAM4 GB8+ GB
Storage100 GB SSD1+ TB SSD
Network10 Mbps100+ Mbps
OSLinux, macOS, WindowsLinux (Ubuntu 22.04+)

A hospital with existing server infrastructure can run MedOS Lite on spare capacity at near-zero marginal cost.

Economic Model

Revenue per node = (storage_hosted_GB × fee_per_GB_month)
+ (retrievals × fee_per_retrieval)
+ uptime_bonus
+ onboarding_bonus

Break-even: ~50 GB hosted data at current fee rates
Profitable: Most hospital nodes with 500+ patients

The exact fee rates are governed by the protocol and adjust based on network supply and demand.

Architecture

Oracle Mode (Hospital → EDH)

Oracle Mode — Hospital → EDH
Hospital HIS / EMR
Existing hospital system
MedOS Lite
FHIR Adapter
Transforms to FHIR R4
Encryption
Client-side NaCl
Account Mgmt
EDH accounts
Consent Engine
Patient rules
Audit Logger
Merkle-anchored
EDH Network
Smart Contracts
Registry, SeedVault
Storage Nodes
Encrypted hosting
OIDC Provider
Patient identity (BIA)
Hospital data flows through MedOS Lite into the patient-controlled EDH network

Node Mode (Storage Provider)

Node Mode — Storage Provider
EDH Network Requests
Store / retrieve encrypted data
MedOS Lite — Storage Node
Storage Engine
Encrypted blobs
CID Index
Content addressing
Replication
Peer node sync
Payment Recv
Micro-payments
SLA Monitor
Uptime tracking
The node cannot read the data it stores — all content is encrypted before arrival. Revenue is earned per-byte, settled on-chain.
MedOS Lite earns revenue by hosting encrypted patient data

Getting Started

1. Install

# Clone the repository
git clone https://github.com/ever-network/medos-lite.git
cd medos-lite

# Install dependencies
npm install

# Run the setup wizard
npm run setup

2. Configure

The setup wizard will ask:

  • Mode: Oracle (hospital connector), Node (storage provider), or Both
  • Hospital connection (if Oracle): HIS endpoint, FHIR server URL, credentials
  • Storage allocation (if Node): How much disk space to contribute
  • Jurisdiction: Where the node is physically located (for data residency compliance)
  • Wallet: EVM wallet address for receiving payments

3. Start

# Start MedOS Lite
npm run start

# Or with Docker
docker-compose up -d

4. Register as a Node

Once running, register your node with the EDH network:

npm run register-node

This announces your node to the network, stakes a small deposit (for SLA enforcement), and begins accepting storage requests.

Open Source

MedOS Lite is MIT-licensed. The full source code is available at:

github.com/ever-network/medos-lite

We welcome contributions from:

  • Hospital IT teams building custom HIS/EMR adapters
  • Infrastructure operators optimizing storage and replication
  • Protocol developers improving the economic model and SLA enforcement
  • Security researchers auditing the encryption and access control layers

See Also