Wizard layout
A vertical sidebar navigation shows all five steps with progress indicators:- Completed steps — green checkmark replaces the step icon
- Current step — blue highlight with shadow
- Locked steps — 40% opacity, not clickable until prerequisites are met
Step 1: Facility details
| Field | Description |
|---|---|
| Name | Facility display name |
| Address | Street address, city, state, zip |
| Timezone | Facility timezone (used for all date/time display) |
| Subscription status | Trial, Active, Past Due, or Disabled |
| OR hourly rate | Operating room cost per hour |
Step 2: Administrator
Create the facility’s primary admin account:| Field | Description |
|---|---|
| First / Last name | Administrator name |
| Login email address | |
| Send welcome email | Toggle (default: on) — sends invite immediately on creation |
Step 3: Clinical templates
Select which clinical templates to seed into the new facility. Each shows a count of items:- Milestones (8 required + custom)
- Phases (4 standard)
- Procedure types (THA, TKA, ACL, etc.)
- Procedure-milestone configuration
- Delay types
- Cancellation reasons
- Complexities
- Pre-op checklist fields
Step 4: Operational templates
Select which operational configurations to seed:- Cost categories (debits and credits)
- Implant companies
- Payers (insurance carriers)
- Analytics settings (FCOTS targets, utilization thresholds)
- Flag rules
- Notification settings
Step 5: Review
A summary of all selections across steps 1–4 with Edit buttons to jump back to any step.Provisioning
When you confirm, the wizard calls theseed_facility_with_templates() database function with a JSONB configuration specifying which templates to copy. This:
- Creates the facility record
- Creates the administrator user account
- Copies selected templates from global tables to facility-specific tables
- Sends the welcome email (if enabled)
Success screen
After successful provisioning:- Green checkmark animation with the facility name
- Create Another button — resets the wizard
- View Facility button — navigates to the new facility’s settings