Skip to main content

Interview Order Contract Domain

Domain Summary

The Interview Order Contract domain manages the process of counselling interviews, offers, and contracts for healthcare services. It handles the creation, validation, and management of contracts between clients and healthcare providers, including the benefits and services included in those contracts.

This domain enables healthcare providers to conduct counselling interviews with clients, create offers based on those interviews, establish formal contracts for care services, and manage the benefits included in those contracts. It serves as a critical component for service agreement management and benefit planning within the healthcare platform.

Architectural Overview

The Interview Order Contract domain follows the standard domain architecture pattern.

Entities

  1. ContractEntity - The aggregate root entity representing a contract for care services with:

    • Client and residential park identification
    • Contract date, start date, and end date
    • Care degree level
    • Training levies for daycare and nursing
    • Collection of benefit positions
    • Cost estimation document
    • Service areas covered by the contract
  2. CounsellingInterviewEntity - Entity representing a counselling interview with a client with:

    • Client and residential park identification
    • Timestamp of the interview
    • Collection of benefit references
    • Methods for determining the latest possible start date
    • Validation for day care benefit data
  3. OfferEntity - Entity representing an offer made to a client with:

    • Client identification
    • Offer details and terms
    • Benefit information
  4. BenefitData - Value object containing benefit data with:

    • Benefit position information
    • Cycle information for recurring benefits
  5. BenefitPositionData - Detailed information about a benefit position with:

    • Position reference
    • Cycle information
    • Quantity and pricing details
  6. CareDataEntity - Abstract base class for entities containing care data with:

    • Client and residential park identification
    • Collections of different types of benefits (nursing care, preventive care, etc.)

Key Operations

Interview Management

  • Create and retrieve counselling interviews for clients
  • Generate interviews from offers or contracts
  • Validate interview data and benefits
  • Clear interviews when needed

Contract Management

  • Create contracts based on client needs and care degree level
  • Terminate or cancel contracts
  • Append benefits to existing contracts
  • Update contracts when client care needs change
  • Retrieve active contracts for clients

Offer Management

  • Create offers based on client needs
  • Retrieve offers for clients
  • Convert offers to interviews or contracts

Benefit Management

  • Validate benefits against business rules
  • Calculate benefit subtotals and prices
  • Retrieve booked benefits for clients
  • Map benefit data between different formats

Budget Planning

  • Generate budget plans based on interviews or contracts
  • Calculate costs and contributions for different benefit types

Integration with Other Domains

The Interview Order Contract domain integrates with several other domains:

  1. Client Domain - Contracts and interviews are associated with clients
  2. Residential Park Domain - Contracts are organized by residential parks
  3. Benefit Domain - Contracts include benefits from the benefit catalog
  4. Budget Plan Domain - Contracts provide data for budget planning
  5. Calendar Domain - Contracts generate entries in benefit calendars