Objective
Enable administrators to create new users with a transactional flow that creates the Keycloak account, FHIR Practitioner resource, and supporting PractitionerRole resources atomically.
User Story
As an administrator,
I want to create a new user with their demographics, role assignments, and organizational assignments,
So that they can log in and access the system with appropriate permissions and be queryable by the mobile sync layer.
Key Deliverables
- User create form with demographics fields
- Role assignment during creation (multi-select)
- Organization and Location assignment (creates
PractitionerRole resources)
- Gateway custom endpoint
POST /custom/users integration
- Transactional create (Keycloak + Practitioner + PractitionerRoles with rollback)
- Client-side and server-side validation
Practitioner.identifier stores Keycloak user ID
Acceptance Criteria
Cross-Repository Tasks
Web Portal (ohs-player-reference-web-portal)
Backend (ohs-player-reference-backend)
Dependencies
Depends on: Epic 2 (Core Library Extraction), Epic 7 (for PractitionerRole creation)
Objective
Enable administrators to create new users with a transactional flow that creates the Keycloak account, FHIR Practitioner resource, and supporting PractitionerRole resources atomically.
User Story
As an administrator,
I want to create a new user with their demographics, role assignments, and organizational assignments,
So that they can log in and access the system with appropriate permissions and be queryable by the mobile sync layer.
Key Deliverables
PractitionerRoleresources)POST /custom/usersintegrationPractitioner.identifierstores Keycloak user IDAcceptance Criteria
Practitioner.identifierCross-Repository Tasks
Web Portal (ohs-player-reference-web-portal)
POST /custom/usersendpointBackend (ohs-player-reference-backend)
POST /custom/usersendpoint (Keycloak + Practitioner + PractitionerRole transactional)Dependencies
Depends on: Epic 2 (Core Library Extraction), Epic 7 (for PractitionerRole creation)