package com.xinelu.manage.domain.patientquestionsubmitresult;


import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 患者问卷提交结果信息对象 patient_question_submit_result
 *
 * @author xinelu
 * @date 2024-03-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "患者问卷提交结果信息对象", description = "patient_question_submit_result")
public class PatientQuestionSubmitResult extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 管理任务执行记录表id
     */
    @ApiModelProperty(value = "管理任务执行记录表id")
    @Excel(name = "管理任务执行记录表id")
    private Long taskExecuteRecordId;

    /**
     * 患者表id
     */
    @ApiModelProperty(value = "患者表id")
    @Excel(name = "患者表id")
    private Long patientId;

    /**
     * 签约患者管理任务表id
     */
    @ApiModelProperty(value = "签约患者管理任务表id")
    @Excel(name = "签约患者管理任务表id")
    private Long manageRouteId;

    /**
     * 签约患者管理任务节点表id
     */
    @ApiModelProperty(value = "签约患者管理任务节点表id")
    @Excel(name = "签约患者管理任务节点表id")
    private Long manageRouteNodeId;

    /**
     * 患者姓名（提交者姓名）
     */
    @ApiModelProperty(value = "患者姓名")
    @Excel(name = "患者姓名", readConverterExp = "提交者姓名")
    private String patientName;

    /**
     * 签约患者管理任务名称
     */
    @ApiModelProperty(value = "签约患者管理任务名称")
    @Excel(name = "签约患者管理任务名称")
    private String manageRouteName;

    /**
     * 签约患者管理路径节点名称
     */
    @ApiModelProperty(value = "签约患者管理路径节点名称")
    @Excel(name = "签约患者管理路径节点名称")
    private String manageRouteNodeName;

    /**
     * 问卷表id
     */
    @ApiModelProperty(value = "问卷表id")
    @Excel(name = "问卷表id")
    private Long questionInfoId;

    /**
     * 所属科室id
     */
    @ApiModelProperty(value = "所属科室id")
    @Excel(name = "所属科室id")
    private Long departmentId;

    /**
     * 所属科室名称
     */
    @ApiModelProperty(value = "所属科室名称")
    @Excel(name = "所属科室名称")
    private String departmentName;

    /**
     * 病种id
     */
    @ApiModelProperty(value = "病种id")
    @Excel(name = "病种id")
    private Long diseaseTypeId;

    /**
     * 病种名称
     */
    @ApiModelProperty(value = "病种名称")
    @Excel(name = "病种名称")
    private String diseaseTypeName;

    /**
     * 问卷标题
     */
    @ApiModelProperty(value = "问卷标题")
    @Excel(name = "问卷标题")
    private String questionnaireName;

    /**
     * 问卷说明
     */
    @ApiModelProperty(value = "问卷说明")
    @Excel(name = "问卷说明")
    private String questionnaireDescription;

    /**
     * 作答方式，一页一题：ONE_PAGE_ONE_QUESTION，非一页一题：NOT_ONE_PAGE_ONE_QUESTION
     */
    @ApiModelProperty(value = "作答方式，一页一题：ONE_PAGE_ONE_QUESTION，非一页一题：NOT_ONE_PAGE_ONE_QUESTION")
    @Excel(name = "作答方式，一页一题：ONE_PAGE_ONE_QUESTION，非一页一题：NOT_ONE_PAGE_ONE_QUESTION")
    private String answeringMethod;

    /**
     * 问卷ID
     */
    @ApiModelProperty(value = "问卷ID")
    @Excel(name = "问卷ID")
    private String questionnaireId;

    /**
     * 问题个数
     */
    @ApiModelProperty(value = "问题个数")
    @Excel(name = "问题个数")
    private Integer questionCount;

    /**
     * 问卷总分值，小数点后两位
     */
    @ApiModelProperty(value = "问卷总分值，小数点后两位")
    @Excel(name = "问卷总分值，小数点后两位")
    private BigDecimal questionnaireTotalScore;

    /**
     * 问卷总得分，根据患者提交问卷得出的分值
     */
    @ApiModelProperty(value = "问卷总得分，根据患者提交问卷得出的分值")
    @Excel(name = "问卷总得分，根据患者提交问卷得出的分值")
    private BigDecimal totalScore;

    private Long residentId;

    /**
     * 冗余:整个问卷中是否包含不满意项;DISCONTENTED:不满意;CONTENTED:满意;默认CONTENTED;
     * 2024/12/2
     */
    private String contentedFlag;

    /**
     * 冗余:整个问卷中是否包含异常项;REMARKABLE:异常的;ROUTINE:正常的;默认ROUTINE
     * 2024/12/2
     */
    private String remarkableFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("taskExecuteRecordId", getTaskExecuteRecordId())
                .append("patientId", getPatientId())
                .append("manageRouteId", getManageRouteId())
                .append("manageRouteNodeId", getManageRouteNodeId())
                .append("patientName", getPatientName())
                .append("manageRouteName", getManageRouteName())
                .append("manageRouteNodeName", getManageRouteNodeName())
                .append("questionInfoId", getQuestionInfoId())
                .append("departmentId", getDepartmentId())
                .append("departmentName", getDepartmentName())
                .append("diseaseTypeId", getDiseaseTypeId())
                .append("diseaseTypeName", getDiseaseTypeName())
                .append("questionnaireName", getQuestionnaireName())
                .append("questionnaireDescription", getQuestionnaireDescription())
                .append("answeringMethod", getAnsweringMethod())
                .append("questionnaireId", getQuestionnaireId())
                .append("questionCount", getQuestionCount())
                .append("questionnaireTotalScore", getQuestionnaireTotalScore())
                .append("totalScore", getTotalScore())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}