← All posts
Digits Health × myLaminin — Integration Architecture
How myLaminin's regulated-research substrate (FHIR, verifiable credentials, CTMS, ledger audit) could layer underneath Digits Health to unlock trial-grade workflows.
Digits stays the data-generating clinical edge. myLaminin becomes the regulated-research substrate underneath — FHIR mapping, verifiable credentials, 21 CFR Part 11 audit, and CTMS for trial-grade workflows.
Digits surfaceIntegration bridgemyLaminin platformExternal actors
1 — Capture (Digits clients)
Edge / IoMTWeb app
Next.js 16 + MediaPipe hand pose, ROM / dexterity / pain / arthritis
Android (Kotlin + Compose)
Native ROM assessments, on-device pose inference
Voice agent
Gemini Live STT + Google TTS Neural2 coaching
2 — Digits API (Fastify)
Business logic/assessments
ROM, dexterity, pain-v2, arthritis save handlers
/reports
PDF generation, AI summarization, email
/ai-orchestrator
Gemini 2.5-flash + MedGemma (Vertex AI)
/billing
Stripe — adds RESEARCH tier for trial-grade pipeline
3 — Local store (Postgres + Prisma)
Authoritative cachecontacts · patient_info
PHI, Auth0-linked identity
rom / dexterity / pain / arthritis
Per-joint, per-finger validated metrics
assessment_records
Becomes a pointer to myLaminin credential id
hand_journal_entries
Voice transcripts + AI summaries (sensitive PHI)
4 — Integration bridge (new)
AdapterFHIR serializer
ROM/dexterity → Observation, DeviceMetric, QuestionnaireResponse
Credential issuer client
Issues verifiable credential per finalized assessment
Audit anchor
Hashes report + signatures to myLaminin ledger
Outbox queue
Async, retried; Digits never blocks on the bridge
5 — myLaminin platform
SOC 2 · 21 CFR Part 11FHIR repository
IoMT-mapped Observations, ResearchSubject linkage
Verifiable credentials
Patented issuer / holder / verifier model
CTMS + Randomization
Block / Stratification, ethics-board, consent
Distributed-ledger audit
Immutable, e-signature backed, regulator-ready
6 — External actors
VerifiersPatient (credential holder)
Controls who sees what, no public-code leaks
Clinician / specialist
Verifies a referral without Digits exposing rows
Trial sponsor
Reads FHIR endpoints in real time for live monitoring
FDA / Ethics board
Audits ledger-anchored signatures & consent
Today
Digits only
AssessmentRecord.code— 6-char public links, no holder control- No FHIR exporter; metrics live only in app-shaped Postgres rows
- No e-signature, no audit trail, no 21 CFR Part 11 controls
- No randomization, CTMS, or sponsor-grade real-time stream
- Clinical-trials landing page sells capability the stack lacks
With myLaminin
Digits as edge, myLaminin as substrate
- Verifiable credentials replace public codes; patent-backed sharing
- Every assessment is also a FHIR Observation in the trial repository
- Reports e-signed by clinician, hash anchored on ledger
- Randomization + CTMS unlock sponsor & FDA pilot motion
- New
RESEARCHStripe tier monetizes the upgraded pipeline
Where the bridge plugs into the existing code
| Digits surface | myLaminin role | What changes |
|---|---|---|
apps/api/src/routes/assessments.ts | FHIR repository | After local persist, emit Observation / DeviceMetric via the outbox. |
prisma/schema.prisma — AssessmentRecord | Verifiable credential | Row becomes a pointer to a credential id; isPublic deprecated. |
apps/api/src/routes/reports.ts + services/report-ai.service.ts | E-signature + ledger anchor | Clinician signs; report hash anchored to ledger; share link is credential-based. |
hand_journal_entries | Holder-controlled sharing | Sensitive PHI never goes public — patient grants per-verifier access. |
subscriptions (Stripe) | Pricing surface | New RESEARCH tier gates the myLaminin-backed pipeline. |
(marketing)/clinical-trials/page.tsx | CTMS + randomization | Replace aspirational copy with a real enrollment form backed by Block/Stratification. |
Lifecycle of a single trial-grade assessment
- 1EnrollPatient consents in Digits; myLaminin randomizes them into an arm and returns a
ResearchSubjectid. - 2CaptureMediaPipe ROM + dexterity run on web/Android. Voice coach guides the session.
- 3PersistFastify writes per-joint metrics to Postgres — local source of truth.
- 4TranslateOutbox emits FHIR Observations tagged with the
ResearchSubject. - 5SignClinician reviews the AI-generated report and e-signs in myLaminin; hash anchored on ledger.
- 6SharePatient releases a verifiable credential to specialist, insurer, or sponsor — no public links.
- 7MonitorSponsor's live dashboard + FDA pilot view stream from the FHIR repository.
Proposed integration, generated for research. Visualization only; no code changes wired.