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 owner | Implemented responsibility and boundary |
|---|---|
duet-api::identity | Duet identity store and authentication; standalone sign-up/session acceptance requires the whole journey |
front-door | Existing 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::auth | Practice-authorized invitations; cross-practice access stays refused |
duet-api and duet-client | Join, consent and premium router adapters and client calls; the Duet binary does not mount the adapters |
duet-app::account, duet-app | The 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.