Case studies
Custom

Carehaven Operations

A Bubble healthcare administration migration with reviewable access and recovery

  • Custom
  • Healthcare administration
  • Bubble

32days

Delivery

60/60

Access-control suite

20/20

Audit-event coverage

100%

Data reconciliation

Illustrative before/after figures.

The product

Coordinators managed administrative cases; practitioners viewed assigned records; restricted administrators managed access without automatically reading every document. The dataset contained 50,000 case records and 5,000 documents. Organisation membership and case assignment both affected permission. Scheduling and status workflows already existed, while diagnosis, clinical decision support and new medical integrations were outside the product boundary.

The challenge

The trigger was an internal review asking who could access a record after reassignment and how the service could recover. A role label was not enough to answer either question. Discovery mapped administrative purposes, document boundaries, retention obligations and operating ownership. The selected migration supported a separately controlled architecture and a funded operating team. It did not rely on claiming that all sensitive workloads are unsuitable for Bubble.

The administrative owner needed to answer who had opened a document, why access was allowed and how service would be restored after an incident. A good-looking replacement portal would not satisfy those questions. We worked from an approved access policy, required audit events and a defined recovery scenario using synthetic records. Independent legal, regulatory and security assessment remained separate; passing an application test suite was never treated as certification.

How we tackled it

  1. 01

    Model access purpose. Requests required the relevant organisation membership and case assignment or approved administrative authority.

  2. 02

    Protect document delivery. Authorisation preceded short-lived access to private objects, with defined logging boundaries.

  3. 03

    Define audit meaning. Read, change and administration events recorded approved fields without unnecessary sensitive payloads.

  4. 04

    Exercise revocation and recovery. Tests covered active sessions, jobs and file requests, followed by a controlled restore drill.

What we built

Next.js and TypeScript implemented the administrative interface. Postgres with Drizzle modelled records and assignments; customer-approved identity handled authentication. Private object storage held documents. Audit storage and routine diagnostics had distinct access and retention policies. Backups were encrypted, with restoration exercised in an approved non-production environment. The architecture was evaluated as a set of controls and operating procedures, not as proof supplied by a cloud logo.

The rehearsal revoked a practitioner's assignment, requested a cross-organisation record and exercised expired file links and failed background authorisation. Source relationships and document checksums were reconciled before the write window. The migration procedure specified transfer access and validation ownership. Recovery accounted for new case updates rather than simply restoring an old database. Outstanding review findings remained attached to acceptance instead of disappearing behind a launch label.

Before & after — illustrative results

The illustrative access result covers the 60 approved cases only; it is not a universal security claim. Audit coverage is measured against 20 defined event types and required fields. Recovery time and recovery point are separate: the example's 42-minute restore used a state eight minutes behind the incident point. These are invented drill values under specified conditions, not a contractual guarantee, compliance certificate or real operational history.

Illustrative before/after values. No tests or client measurements were performed for this story. The comparison conditions describe how an equivalent real migration would be evaluated; they are not a test report.

MetricBeforeAfterComparison conditions
Access-control suite49/60 approved fixture cases pass60/60 passSynthetic identities; direct requests, revoked assignments, jobs and private files.
Audit-event coverage12/20 defined types complete20/20 completeCheck actor, action, target, timestamp and prohibited-payload rules.
Data reconciliation50,000 records; 5,000 documents100% mapped; 0 unresolved ownership exceptionsSynthetic relationships and document checksums.
Recovery drillRestore: 150 min; recovery point: 60 min oldRestore: 42 min; recovery point: 8 min oldSame defined environment and incident fixture; illustrative exercise, not certification.
Retrieve a complete access-event trace, median40 min8 minTen synthetic incident prompts; same reviewer; identify actor, action, target and timestamp without exposing prohibited payloads.
Review and revoke an assigned user's access, median15 min4 minTen role-change scenarios; same operator; verify subsequent direct requests, sessions and file access against the approved policy.

The outcome

Carehaven ended the example with a technical reviewer able to trace policy to test cases and an operations team able to execute a documented restore. Handover included retention settings, alert routing and ownership of access changes. The sales value is reviewability: controls, evidence boundaries and ongoing responsibilities remain visible to the reader instead of being compressed into a claim of compliance.

Why these improvements mattered

A defined audit vocabulary and central access workflow made administrative questions answerable. Recovery had a named owner and a rehearsed scope. The benefit is inspectability and operational control, not an automatic claim that custom code is compliant or secure by virtue of its architecture.

Scope & timeline

Scope

Custom delivered the existing administrative workflow, policy-to-test mapping, audit-event specification and recovery runbook. Hosting and identity choices followed the customer's agreed requirements rather than a generic compliance label. Separate environments and synthetic fixtures bounded testing. Independent security or regulatory assessment remained separate work. The customer took explicit responsibility for monitoring, access review and recovery ownership after handover.

Delivery timeline

Delivery schedule: 32 working days. Team: Two senior engineers, shared QA and an accountable customer security/operations owner. The clock starts after scope approval, usable source data, test access and agreed UI are available. Waiting for external approvals is excluded. This is a bounded example, not a turnaround guarantee.

Days 1–6: approve policy mapping, audit events and recovery scope.

Days 7–19: build role enforcement, private documents and event capture.

Days 20–29: reconcile synthetic data and rehearse access/recovery failures.

Days 30–32: accept the operational controls and transfer ownership.

FAQ

Does migrating a healthcare portal establish compliance?
No. Application controls, hosting obligations, operating procedures and independent assessment are separate parts of the review.
How should recovery results be stated?
Report restore duration, recovery point, measured data loss and exercise conditions separately; a backup's existence is not evidence of successful recovery.

Discuss a similar migration

Bring the access exceptions, hosting constraints and the questions your reviewer needs answered. Bubble to Code can map application requirements to controls and acceptance evidence for Custom scope. Keep independent assessment and clinical features explicit rather than assuming a migration covers them.