Pisgah

Verified diagnostic workflows for hospitals from lab to delivery, on-chain.

Pisgah

Created At

ETHGlobal Cannes 2026

Winner of

Dynamic

Dynamic - Best use of Dynamic Javascript SDK (any framework)

Project Description

Pisgah is a diagnostic workflow platform that coordinates the entire patient journey — from doctor order to lab result to prescription to medication delivery. An AI clinic assistant, registered in AgentBook and backed by a verified human, drafts clinical interpretations that the doctor reviews and approves. Every facility — clinic, lab, pharmacy — has a verifiable ENS identity with on-chain metadata. Lab results, prescriptions, and deliveries are each attested on World Chain. Patients access their records through World App, gated by World ID, and receive a one-time delivery code that only they can reveal.

We built this for Nigeria, where 80–90% of clinics are paper-based, 20–30% of patients never return for their results, and prescriptions are handwritten slips that anyone can reuse or fake. Pisgah replaces all of that with a verifiable, end-to-end digital chain where the doctor stays in control and every step has provenance.

How it's Made

The project uses Next.js 16 with Drizzle ORM and Neon Postgres — one app that serves both the provider dashboard and the patient experience inside World App, deployed on Vercel. For provider login, we used Dynamic's JavaScript SDK and built our own email OTP flow from scratch — no pre-built widgets. The user enters their email, gets a code, and we verify it by calling Dynamic's API directly. On the backend, we check the JWT against Dynamic's public key. This gave us full control over the login experience while Dynamic handles identity under the hood.

For patients, we used MiniKit walletAuth so they sign in seamlessly inside World App. Before they can see sensitive information — like lab results or their delivery code — they must verify with World ID. We deliberately scoped these as two separate verifications, so proving your identity to view results doesn't automatically unlock your delivery code. Each action requires its own proof. The AI clinic assistant uses AgentKit. It has its own wallet registered in AgentBook on World Chain, backed by a real verified human. When the assistant generates a draft, it signs the request and our server checks two things: is the signature valid, and is this agent actually human-backed? If either check fails, nothing gets generated. The assistant even has its own ENS name — like assistant.clinic.pisgah.eth — with public metadata describing what it does and which facility it belongs to.

For facility identity, we used ENS through NameStone. When a hospital signs up, we automatically create ENS subnames under pisgah.eth for every department — clinic, lab, pharmacy, and the AI assistant — each with its own wallet. Instead of resolving names on-chain (which kept getting rate-limited), we use NameStone's public API, which turned out to be much faster and more reliable.

For trust and provenance, we used EAS on World Chain Sepolia. At three key moments — when a lab result is uploaded, when a prescription is issued, and when a delivery is confirmed — we create an on-chain attestation. Only hashes go on-chain, never actual medical data. Every attestation shows up in the app as a clickable link to the blockchain explorer so anyone can verify it.

One thing we're proud of: each hospital's AI assistant has its own encrypted private key stored in the database using AES-256-GCM — so every hospital gets its own cryptographic identity without any keys sitting in plaintext.

background image mobile

Join the mailing list

Get the latest news and updates