#nullable enable
using Baya.Application.Models.Common;
using Baya.Application.Models.Patients;
using Mediator;

namespace Baya.Application.Features.PatientCareRecords.Commands.UpsertCarePlan;

/// <summary>Replaces the family-owned care plan for a patient (owning customer only). New items (id 0) are
/// assigned stable ids on save. The patient id comes from the route.</summary>
public record UpsertCarePlanCommand(
    long PatientId,
    IReadOnlyList<MedicationDto>? Medications,
    IReadOnlyList<RoutineItemDto>? Routine,
    IReadOnlyList<CareTaskDto>? Tasks) : IRequest<OperationResult<CarePlanDto>>;
