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

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
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;

@Schema(description = "管理后台 - 护理日志 Response VO")
@Data
@ExcelIgnoreUnannotated
public class NursingLogRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16038")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "长者ID", example = "22286")
    @ExcelProperty("长者ID")
    private Long elderId;

    @Schema(description = "长者名称", example = "王五")
    @ExcelProperty("长者名称")
    private String elderName;

    @Schema(description = "护理次数", example = "26478")
    @ExcelProperty("护理次数")
    private Integer count;

    @Schema(description = "护理等级")
    @ExcelProperty("护理等级")
    private String nursingGrade;

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

    @Schema(description = "护理员姓名")
    private String nurseName;

    @Schema(description = "床位ID", example = "2956")
    @ExcelProperty("床位ID")
    private Long bedId;

    @Schema(description = "床位全名称", example = "王五")
    @ExcelProperty("床位全名称")
    private String bedName;

    @Schema(description = "在院状态，0：外出  1：在院", example = "1")
    @ExcelProperty("在院状态，0：外出  1：在院")
    private Integer inHospitalStatus;

    @Schema(description = "护理状态，0：未护理  1：已护理", example = "1")
    @ExcelProperty("护理状态，0：未护理  1：已护理")
    private Integer nursingStatus;

    @Schema(description = "系统类型", example = "1")
    @ExcelProperty("系统类型")
    private String orgType;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
}
