Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Accounts and practice connection

Duet owns standalone patient identity; the practice connection has a separate invitation and consent boundary. A Duet account does not require an invitation. An invitation attaches the practice to that account; existing accounts and data are not migrated from the old app. The products keep separate data and authority.

Scope

The connected-care spec owns what a practice connection does, from invitation and fixed consent to leaving, discharge and re-invitation. The Duet spec (D4) owns the patient’s For my doctor, including sending marked records and notes to a connected practice.

Implementation

Rust ownerImplemented responsibility and boundary
duet-api::identityDuet identity store and authentication; standalone sign-up/session acceptance requires the whole journey
front-doorExisting account, invitation, connection, consent and premium adapter, with SeaORM/Postgres persistence; its account model is not a decision to make standalone Duet depend on practice admission
physician-sample::authPractice-authorized invitations; cross-practice access stays refused
duet-api and duet-clientJoin, consent and premium router adapters and client calls; the Duet binary does not mount the adapters
duet-app::account, duet-appThe standalone account root owns private access. It offers neither invitation enrollment nor a physician sharing control and does not request practice consent status

The adapter’s consent withdrawal/resume and paid-premium fields are not approved MVP behavior.

duet-api::main mounts Duet-owned identity and durable routes. Its optional front-door store is used by readiness; the separate duet-privacy-delivery operator also uses front-door journals. The physician auth router mounts invitation operations.

front-door-migrate owns the adapter’s schema; see Duet migrations and GCP migration jobs. The existing front_door_postgres.rs proves its invitation and link path.