Skip to main content

Module eligibility

Module eligibility 

Source
Expand description

Daycare group-play eligibility policy for source-grounded staff review.

§Operator-summary

This module supports the daycare group-play eligibility queue: it combines species, requested care mode, current temperament assessment, vaccine readiness, spay/neuter status, active incident restriction, and staffing coverage before a pet enters group play. It can reduce labor by producing a deterministic staff-review reason instead of asking front-desk or play-yard staff to manually reconcile every source note and policy gate.

It must not automate live admission to group play, vaccine acceptance, behavior clearance, staffing overrides, or customer promises. Authoritative facts remain the pet profile, reviewed temperament/vaccine records, local play policy, incident disposition, and coverage decision. Review gates protect pets, customers, and staff by routing missing temperament, uncertain vaccine proof, spay/neuter concerns, insufficient staffing, or incident suspension to behavior, medical-document, manager, or staff review before use.

use domain::{daycare, entities, policy};
use uuid::Uuid;

let evidence = daycare::eligibility::Evidence::builder()
    .pet_id(entities::PetId(Uuid::nil()))
    .species(entities::Species::Dog)
    .service(daycare::ServiceVariant::AllDayPlay)
    .temperament(daycare::eligibility::TemperamentAssessmentFreshness::Missing)
    .vaccines(daycare::eligibility::VaccineReadiness::Current)
    .spay_neuter(entities::SpayNeuterStatus::Neutered)
    .incident(daycare::incident::Restriction::None)
    .staff_coverage(daycare::coverage::Decision::Sufficient)
    .build();

assert_eq!(
    daycare::eligibility::GroupPlayPolicy.evaluate(&evidence),
    daycare::eligibility::GroupPlayDecision::NeedsStaffReview {
        reason: daycare::eligibility::ReviewReason::MissingCurrentTemperamentAssessment,
        gate: policy::ReviewGate::BehaviorReview,
    },
);

Structs§

Evidence
Eligibility evidence staff review before a pet may enter daycare group play.
EvidenceBuilder
Use builder syntax to set the inputs and finish with build().
GroupPlayPolicy
Deterministic policy that converts source evidence into daycare group-play eligibility.

Enums§

DenialReason
Reasons a pet is not eligible for the requested group-play care mode.
EligibleBasis
Evidence basis proving a pet is eligible for group play.
GroupPlayDecision
Eligibility outcome for admitting a pet to daycare group play.
ReviewReason
Reasons daycare group-play eligibility requires staff review.
TemperamentAssessmentFreshness
Freshness state of the temperament assessment required for daycare group play.
VaccineReadiness
Vaccine-proof readiness state for daycare eligibility decisions.