package cn.iocoder.yudao.module.system.controller.admin.biz.vo.riskdisclosurestatement;

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

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

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

@Schema(description = "管理后台 - 风险知情书新增/修改 Request VO")
@Data
public class ElderlyRiskDisclosureStatementSaveReqVO {

    @Schema(description = "id（修改时必传）", example = "1")
    private Long id;

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

    @Schema(description = "服务安全风险知情告知书")
    private String riskData;

    @Schema(description = "第一次告知风险")
    private String firstRisk;

    @Schema(description = "第一次告知护理人员签名")
    private String firstNurseSign;

    @Schema(description = "第一次告知老年人/相关第三方签字")
    private String firstElderSign;

    @Schema(description = "第一次告知签字日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate firstSignDate;

    @Schema(description = "第二次告知风险")
    private String secondRisk;

    @Schema(description = "第二次告知护理人员签名")
    private String secondNurseSign;

    @Schema(description = "第二次告知变动风险")
    private String secondChangeRisk;

    @Schema(description = "第二次告知风险程度")
    private String secondRiskLevel;

    @Schema(description = "第二次告知老年人/相关第三方签字")
    private String secondElderSign;

    @Schema(description = "第二次告知签字日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate secondSignDate;

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

    @Schema(description = "护理人员签字")
    private String nurseSign;

    @Schema(description = "老年人/相关第三方签字")
    private String elderSign;

    @Schema(description = "签字日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate signDate;

    @Schema(description = "防噎食评估id")
    private Long asphyxiationByChokingId;

    @Schema(description = "防压疮评估id")
    private Long pressureSoresId;

    @Schema(description = "防跌倒评估id")
    private Long fallDownId;

    @Schema(description = "防坠床评估id")
    private Long fallPreventionMeasuresId;

    @Schema(description = "防烫伤评估id")
    private Long empyrosisId;

    @Schema(description = "防走失评估id")
    private Long wanderAwayId;

    @Schema(description = "自杀风险评估id")
    private Long suicideRiskId;

    @Schema(description = "攻击风险评估id")
    private Long attackRiskId;

    @Schema(description = "防文娱活动意外id")
    private Long antiEntertainmentId;

    @Schema(description = "简易精神状态量表id")
    private Long simpleMentalStateId;

    @Schema(description = "感知觉与沟通评估id")
    private Long perceptionCommunicationId;

    @Schema(description = "平衡能力评估id")
    private Long equilibriumId;

    @Schema(description = "日常生活能力评估id")
    private Long dailyLifeId;

    @Schema(description = "营养评估表id")
    private Long nutritionalRiskId;

    @Schema(description = "机构id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "机构id不能为空")
    private Long tenantId;
}
