package com.cftech.consultsheet.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.cftech.core.poi.ExportConfig;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.codehaus.jackson.format.DataFormatMatcher;

import java.io.Serializable;
import java.util.Date;

/**
* 咨询单
*
* @author Licc
* @date: 2020-09-22 12:06
*/
@Data
public class ConsultSheet extends UserSheet implements Serializable {



    /* 主键id */
        private Long id;

/* 咨询单编码 */
        @ExportConfig(value = "咨询单编码", width = 100, showLevel = 1)
    private Long consultId;
/* 用药人name */
        @ExportConfig(value = "用药人姓名", width = 100, showLevel = 1)
    private String userName;
/* 身份证号 */
    private String numberId;
/* 出生年月 */

    @JSONField(format="yyyy-MM-dd")
        private Date benebitId;
/* 性别 */
        @ExportConfig(value = "性别", width = 100, showLevel = 1)
    private Long sex;
/* 手机号 */
        @ExportConfig(value = "联系电话", width = 100, showLevel = 1)
    private Long iPhone;
/* 疾病史 */
        @ExportConfig(value = "疾病史", width = 100, showLevel = 1)
    private String pastRecords;
/* 处方单 */
    @ExportConfig(value = "处方单", width = 100, showLevel = 1)
    private String Prescription;
/* 药师id */

    private Long doctorId;
/* 客服id */

    private Long customerId;
/* 病情描述 */
        @ExportConfig(value = "病情描述", width = 100, showLevel = 1)
    private String illness;
/* 过敏史 */
        @ExportConfig(value = "过敏史", width = 100, showLevel = 1)
    private String allergy;
/* 本次确认症状 */
    private String symptom;
 /*是否已在医院确诊*/
         private Long diagnosis;
/* 所属的账号 */
        private Long accountsId;
/* 删除标识 */
        private boolean delFlag;
/* 状态 */
@ExportConfig(value = "是否审核", width = 100, showLevel = 1)
        private String status;
/* 创建时间 */
        private Date createTime;
/* 更新时间 */
        private Date updateTime;
/* 备注 */
        private String description;
/* 创建人 */
        private Long createBy;
/* 更新人 */
        private Long updateBy;

    private String openId;
    private Long drugsId;
    private Long memberId;
    private Long orderId;
public ConsultSheet() {
                                    this.delFlag = false;
                                this.status = "0";
    }

}