package thyyxxk.webserver.entity.adverseevent;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class ReportDetail {
    private Integer pid;
    private String tid;
    private String category;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date occurDatetime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date submitDatetime;
    private String department;
    private String deptCode;
    private String userName;
    private String userLevel;
    private Integer workYear;
    private Integer eventResult;
    private String course;
    private String result;
    private String nurseReason;
    private List<String> nurseReasonArr;
    private String nurseReasonElse;
    private String patientReason;
    private List<String> patientReasonArr;
    private String patientReasonElse;
    private String environReason;
    private List<String> environReasonArr;
    private String environReasonElse;
    private String manageReason;
    private List<String> manageReasonArr;
    private String manageReasonElse;
    private String proNurse;
    private List<String> proNurseArr;
    private String proNurseElse;
    private String proPatient;
    private List<String> proPatientArr;
    private String proPatientElse;
    private String proEnviron;
    private List<String> proEnvironArr;
    private String proEnvironElse;
    private String proManage;
    private List<String> proManageArr;
    private String proManageElse;
    private String userId;
    private String deptDealerId;
    private String deptDealerName;
    private Integer eventLevel;
    private String deptDealing;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deptDealTime;
    private String finalDealerId;
    private String finalDealerName;
    private String finalDealing;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finalDealTime;
    private Integer accepted;
    private Integer handled;
    private Integer deleted;
    private String deleteOperateId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    private String feedback;
    private List<String> feedbackList;
    private String feedbackStaffId;
    private String feedbackStaffName;
    private Date feedbackTime;

    private Integer printed;
    private Boolean isModify;

    public Boolean getModify() {
        return null != isModify && isModify;
    }
}
