A test harness for SMART Health Links (SHLinks). Demonstrates a patient sharing encrypted FHIR bundles with a provider via QR code or URL, using JWE (A256GCM) encryption.
- Patient side — Enter demographics, select which resources to include (medications, allergies, conditions, vitals, PDF summary), and generate an encrypted SHLink.
- Provider side — Scan the QR code or paste the
shlink:/URL to retrieve and decrypt the FHIR bundle. View demographics, PDF, and individual FHIR resources.
All data is encrypted client-side. The server only stores opaque JWE blobs and logs access audits.
python3 server.py
Open http://localhost:3000 in your browser.
- Python 3.7+
No additional dependencies — the server uses only the Python standard library. Frontend libraries (QR code, jsPDF, html5-qrcode) are loaded from CDNs.
MIT — Copyright (c) 2026 Flexpa USA Inc