Skip to main content

Shift Plans Domain

Domain Summary

The Shift Plans domain manages employee work schedules, shift assignments, and workforce planning within the healthcare system. It handles the creation, management, and optimization of shift plans, including various types of shifts such as tours, tasks, absences, and fixed shifts.

This domain enables healthcare providers to efficiently schedule staff, ensure appropriate coverage for care services, track employee work hours, and plan workforce allocation. It serves as a critical component for operational efficiency, staff management, and service delivery within the healthcare platform.

Architectural Overview

The Shift Plans domain follows the standard domain architecture pattern.

Entities

  1. ShiftPlan - The aggregate root entity representing a complete shift plan with:

    • Residential park identification
    • Date range for the shift plan
    • Collection of shift entries
    • Methods for shift plan management and optimization
  2. ShiftEntry - Abstract base entity for entries in a shift plan with:

    • Shift identification
    • Time information (start and end times)
    • Status information
    • Methods for shift entry management
  3. EmployeeShiftEntry - Entity representing a shift assigned to an employee with:

    • Employee identification
    • Shift details
    • Assignment information
    • Collection of shift elements
  4. UnassignedShiftEntry - Entity representing a shift that has not been assigned to an employee

  5. ShiftElement - Abstract base entity for elements within a shift with:

    • Element identification
    • Time information
    • Type-specific details
  6. Shift Element Types:

    • TourShiftElement - Element representing a tour within a shift
    • TaskShiftElement - Element representing a task within a shift
    • AbsenceShiftElement - Element representing an employee absence
    • FixedShiftElement - Element representing a fixed shift assignment
  7. Templates:

    • ShiftPlanTemplate - Template for creating recurring shift plans
    • ShiftTemplate - Template for creating shifts
    • TourTemplate - Template for creating tours within shifts
    • InformationTemplate - Template for shift information
  8. SavedShiftPlan - Entity representing a saved version of a shift plan

Key Operations

Shift Plan Management

  • Create and update shift plans for specific date ranges
  • Generate shift plans from templates
  • Save and load shift plans
  • Optimize shift plans for efficiency
  • Validate shift plans against business rules

Shift Assignment

  • Assign shifts to employees
  • Manage unassigned shifts
  • Track employee shift assignments
  • Handle shift reassignments
  • Validate assignments against employee qualifications and availability

Shift Element Management

  • Create and manage tour shift elements
  • Create and manage task shift elements
  • Handle employee absences
  • Manage fixed shift assignments
  • Track shift element completion

Template Management

  • Create and update shift plan templates
  • Manage shift templates for recurring shifts
  • Configure tour templates for standard tours
  • Apply templates to create new shift plans

Integration Operations

  • Synchronize shift data with external systems (e.g., Odoo)
  • Import shift information from external sources
  • Export shift plans for reporting
  • Validate shift data across systems

Integration with Other Domains

The Shift Plans domain integrates with several other domains:

  1. Employee Domain - Shifts are assigned to employees based on qualifications and availability
  2. Residential Park Domain - Shift plans are organized by residential parks
  3. Tour Planning Domain - Tours are incorporated into shift plans as shift elements
  4. Client Domain - Client care needs influence shift planning
  5. Benefit Domain - Service requirements affect shift planning
  6. Calendar Domain - Shift plans consider calendar entries for scheduling