package cn.iocoder.yudao.module.system.dal.dataobject.biz;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 医疗护理记录主 DO
 *
 * @author 系统管理员
 */
@TableName("medical_care_records")
@KeySequence("medical_care_records_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MedicalCareRecordsDO {

    /**
     * 记录ID（主键）
     */
    @TableId
    private Integer recordId;
    /**
     * 长者ID
     */
    @Schema(description = "长者ID")
    private Integer elderId;

    @Schema(description = "长者姓名")
    private String elderName;
    /**
     * 情况发现时间
     */
    @Schema(description = "情况发现时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date discoveryTime;
    /**
     * 情况发现人
     */
    @Schema(description = "情况发现人")
    private String discoverer;
    /**
     * 情况描述
     */
    @Schema(description = "情况描述")
    private String conditionDesc;
    /**
     * 处理说明
     */
    @Schema(description = "处理说明")
    private String handlingNote;


    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
    private LocalDateTime updateTime;

    private Long tenantId;

    @TableField(exist = false)
    @Schema(description = "长者信息")
    private ElderlyInfoDO elderlyInfo;

    @TableField(exist = false)
    @Schema(description = "附件")
    private List<AttachmentsDO> attachments;

    @TableField(exist = false)
    private String bedInfo;

}