package cn.iocoder.yudao.module.system.controller.admin.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 护理计划（按长者）执行记录 Response VO")
@Data
public class NursingPlanLogRespVO {

    @Schema(description = "id", example = "1024")
    private Long id;

    @Schema(description = "护理计划项目id", example = "1")
    private Long nursingPlanItemId;

    @Schema(description = "护理项目名称", example = "基础护理")
    private String nurseItemName;

    @Schema(description = "长者id", example = "1")
    private Long elderId;

    @Schema(description = "护理员")
    private String nurse;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "护理日期")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private LocalDate nurseDate;

    @Schema(description = "机构id")
    private Long tenantId;

    @Schema(description = "完成时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime finishTime;

    @Schema(description = "超时时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime timeout;

    @Schema(description = "状态，0：待完成，1：已完成，2：未完成")
    private Integer status;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;
}
