Skip to content

Overview

PATIENT Patient App hds-webapp hds-onboarding-pages DOCTOR / RESEARCHER Doctor Dashboard Account & Auth (app-web-user-account) app-data-model-browser EXTERNAL SYSTEMS Chartneo Mira athenahealth (SAML SSO) REDCap Cycle data files (FEMM · cyclefem · RYB) SHARED LIBRARIES hds-lib core library hds-forms-js form components hds-react-timeline visualization hds-feminine-cycle-ui cycle / mucus UI hds-style CSS theme BRIDGES bridge-chartneo push (HTTP) bridge-mira pull (API) bridge-athenahealth SAML SSO bridge-cycles-files file upload bridge-redcap bidirectional lib-bridge-js shared framework DATA & SERVICES Data Model Datasets Service Pryv.io Backend Dashed lines show dependency / data-flow direction. Last refreshed: 2026-05-29 — covers all currently deployed components.

Health Data Safe (HDS) is a decentralized health data platform built on Pryv.io. Patients own their data and share it with healthcare providers and researchers through secure, consent-based connections.

The platform consists of:

  • Patient & Doctor apps — web applications for data entry, visualization, and management
  • Core libraries — shared TypeScript libraries for data model, forms, styling, and Pryv integration
  • Data services — medication datasets, data model definitions
  • Bridges — integrations with external systems (Chartneo, Mira, REDCap)

At registration, each user chooses the region where their health data is hosted:

  • 🇨🇭 Switzerland — Exoscale
  • 🇺🇸 United States — Amazon Web Services (us-east-1)

Health data (events, streams, time-series, attachments, and audit logs) is region-pinned to the chosen core and stays in that region. The cores form a single platform cluster, across which only a small directory replicates — username→region routing and account-uniqueness reservations — so registration and cross-region lookups stay consistent. Those directory identifiers replicate as one-way pseudonyms (keyed HMAC), so no recoverable email or username leaves a user’s home region.

Component Type Demo Production Links
Patient App
Patient-facing mobile-first web app for health data management.
Application
7228936
Jul 16, 2026
7228936
Jul 16, 2026
Demo
Doctor Dashboard
Doctor-facing dashboard for patient management and data collection forms.
Application
2e6f2b2
Jul 16, 2026
2e6f2b2
Jul 16, 2026
Demo
Account & Auth
HDS account management + authentication: sign-in, register, reset, MFA, account pages, and the CMC consent hand-off. Successor to app-web-auth3-hds.
Application
513b7de
Jul 16, 2026
513b7de
Jul 16, 2026
Demo · GitHub
Onboarding Pages
Static "About HDS" / Welcome site shown from the patient-invite splash before login.
Application
ea427ac
May 6, 2026
5bda353
Jun 11, 2026
Demo
Data Model Browser
Searchable React browser for the HDS data-model (items, streams, event types). Replaces the static index on model.datasafe.dev.
Application
0890344
Jul 16, 2026
Demo · GitHub
Download My Data
Self-service data portability — subjects sign in, download their full account as ZIP files. Implements GDPR Art. 15/20, HIPAA §164.524, Swiss nLPD Art. 25/28.
Application
eb0bb74
Jun 16, 2026
a001119
Jun 16, 2026
Demo · GitHub
Cervical Fluid Model
Evaluate and define a unified conversion layer between cervical fluid observation methods.
Application
b401488
Jun 29, 2026
Demo · GitHub
hds-lib
Core HDS library: data model, Pryv integration, settings, appTemplates.
Library GitHub
hds-forms-js
React form components for HDS data items: fields, sections, form builder.
Library deployed Demo · GitHub
hds-react-timeline
React timeline visualization component for HDS event data.
Library deployed Demo · GitHub
hds-feminine-cycle-ui
Custom UI for cervical-fluid / cycle-tracking events: FEMM, Billings (BOM), Creighton, Mira charts + cervical-position glyph. Layout-agnostic cell renderer reused across timeline, forms, calendar, and pickers.
Library GitHub
hds-style
CSS theme package: Tailwind 4 palettes (patient/doctor/dark), typography, icons.
Library deployed Demo · GitHub
lib-bridge-js
Shared bridge framework: Express server, partner auth, user onboarding.
Library
Data Model
YAML definitions: items, streams, event types, datasources.
Data deployed Browse · GitHub
Datasets Service
REST API serving medication datasets (SQLite+FTS5, WHO-ATC/RxNorm/SNOMED).
Service deployed
Bridge Chartneo
Push bridge: partner pushes cycle tracking data to HDS.
Bridge deployed
Bridge Mira
Pull bridge: fetches hormone/cycle data from Mira API into HDS.
Bridge deployed
Bridge Cycles Files
Multi-format cycle-data file importer. Hosts per-format adapters (FEMM, Cyclefeminin, Read Your Body) at /<adapter> routes. Replaces standalone bridge-femm and bridge-cyclefeminin-net.
Bridge
882fedc
Jun 29, 2026
882fedc
Jun 29, 2026
Bridge FEMM
Client-side bridge: imports FEMM Health App JSON exports into HDS via browser upload. Archived 2026-05-29 — superseded by the /femm route in bridge-cycles-files.
Bridge
Bridge Athenahealth
SAML bridge: embeds HDS doctor dashboard inside athenahealth EHR via SSO. A mock IdP for testing the SAML flow is deployed separately at demo-athena-test-idp.datasafe.dev.
Bridge deployed deployed
Bridge REDCap
Bidirectional bridge: syncs HDS patient data with REDCap projects.
Bridge
Sample Datasets
Generate, load, and reset sample data on Pryv accounts for testing and demos.
Data
User Docs
End-user documentation: privacy policy, data deletion, legal compliance pages.
Application deployed GitHub
Compliance Matrix
Public, browsable compliance & regulation matrix — how HDS is compliant (Pryv platform → HDS → implementer layers) across HIPAA, GDPR, and Swiss nLPD, plus downloadable agreement templates.
Application
68a9c5b
Jul 14, 2026
GitHub