package thyyxxk.webserver.entity.datamodify;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

@Data
@TableName("yz_temperature")
public class YzTemperature implements Serializable {

    private static final long serialVersionUID = 8042518365378175786L;
    @TableField(exist = false)
    private String temperature1Str;
    /**
     * inpatientNo
     */
    private String inpatientNo;

    /**
     * 患者姓名
     */
    @TableField(exist = false)
    private String patientName;

    /**
     * admissTimes
     */
    private Integer admissTimes;

    /**
     * 获取前端的日期，然后在拆分出来
     */
    @TableField(exist = false)
    private Date date;
    @TableField(exist = false)
    private Date tempDate;
    /**
     * 录入日期
     */
    private Date recDate;

    /**
     * recTime
     */
    private Date recTime;
    @TableField(exist = false)
    private String recDateStr;
    @TableField(exist = false)
    private String recTimeStr;
    @TableField(exist = false)
    private String toStringRecDate;
    @TableField(exist = false)
    private String toStringRecTime;
    @TableField(exist = false)
    private String splicingOtherInfo;

    /**
     * detailNo
     */
    @TableId(value = "detail_no", type = IdType.AUTO)
    private Integer detailNo;

    /**
     * 病情
     */
    private String patientState;

    /**
     * 体温
     */
    private BigDecimal temperature;

    /**
     * 类型 1.口表 2.腋表 3.肛表
     */
    private String temperatureType;

    /**
     * 脉搏
     */
    private BigDecimal pulse;

    /**
     * 呼吸
     */
    private Integer breathe;

    /**
     * pressureAm
     */
    private String pressureAm;

    /**
     * pressurePm
     */
    private String pressurePm;

    /**
     * spo2
     */
    private Double spo2;

    /**
     * 意识
     */
    private String mind;

    /**
     * lpupil
     */
    private BigDecimal lpupil;

    /**
     * rpupil
     */
    private BigDecimal rpupil;

    /**
     * pupil
     */
    private String pupil;

    /**
     * colName
     */
    private String colName;

    /**
     * intake
     */
    private BigDecimal intake;

    /**
     * shit
     */
    private BigDecimal shit;

    /**
     * shitOther
     */
    private String shitOther;

    /**
     * shitUnit
     */
    private String shitUnit;

    /**
     * shitShape
     */
    private String shitShape;

    /**
     * urineQuanAm
     */
    private BigDecimal urineQuanAm;

    /**
     * bodyWeight
     */
    private String bodyWeight;

    /**
     * bodyWeightInfo
     */
    private String bodyWeightInfo;

    /**
     * blood
     */
    private BigDecimal blood;

    /**
     * bodyFluid
     */
    private BigDecimal bodyFluid;

    /**
     * outputSum
     */
    private BigDecimal outputSum;

    /**
     * outputOther
     */
    private BigDecimal outputOther;

    /**
     * decubitus
     */
    private String decubitus;

    /**
     * 皮肤情况
     */
    private String skin;

    /**
     * sputumFlag
     */
    private Integer sputumFlag;

    /**
     * atomizationFlag
     */
    private Integer atomizationFlag;

    /**
     * mouthpieceFlag
     */
    private Integer mouthpieceFlag;

    /**
     * eyesFlag
     */
    private Integer eyesFlag;

    /**
     * otherInfo
     */
    private String otherInfo;

    /**
     * 录入人
     */
    private String userid;
    @TableField(exist = false)
    private String useridName;

    /**
     * 录入时间
     */
    private Date inputTime;

    /**
     * physicalFlag
     */
    private Integer physicalFlag;

    /**
     * skinFlag
     */
    private Integer skinFlag;

    /**
     * 修改人
     */
    private String modifyUserid;

    /**
     * 修改时间
     */
    private Date modifyTime;

    /**
     * sumFlag
     */
    private Integer sumFlag;

    /**
     * urineQuanInfo
     */
    private BigDecimal urineQuanInfo;

    /**
     * 特殊标识 0 无  1 有
     */
    private Integer scdFlag;

    /**
     * roomTemperature
     */
    private BigDecimal roomTemperature;

    /**
     * humidness
     */
    private BigDecimal humidness;

    /**
     * intakeSpeed
     */
    private BigDecimal intakeSpeed;

    /**
     * 母乳
     */
    private BigDecimal intakeBreastMilk;

    /**
     * 糖水
     */
    private BigDecimal intakeWater;

    /**
     * 配方奶
     */
    private BigDecimal intakeMilk;

    /**
     * urineQuanColor
     */
    private String urineQuanColor;

    /**
     * shitWater
     */
    private BigDecimal shitWater;

    /**
     * outputOtherInfo
     */
    private String outputOtherInfo;

    /**
     * 脐护
     */
    private Integer bellybuttonFlag;

    /**
     * 臀护
     */
    private Integer buttocksFlag;

    /**
     * 沐浴
     */
    private Integer showerFlag;

    /**
     * 擦澡
     */
    private Integer spongeBathFlag;

    /**
     * infoCry
     */
    private String infoCry;

    /**
     * infoSuck
     */
    private String infoSuck;

    /**
     * infoSleep
     */
    private String infoSleep;

    /**
     * infoActivity
     */
    private String infoActivity;

    /**
     * acraTemperature
     */
    private String acraTemperature;

    /**
     * 特殊标注
     */
    private String scdSpecialtext;

    /**
     * tableStyle
     */
    private Integer tableStyle;

    /**
     * 降温标识  0 否 1 是
     */
    private String physicalMethodFlag;

    /**
     * bodyStature
     */
    private BigDecimal bodyStature;

    /**
     * 心率
     */
    private Integer heart;

    /**
     * 标注时间
     */
    private Date specialtextTime;

    /**
     * 其他标注
     */
    private String specialtextOther;

    /**
     * 降温后 体温
     */
    private BigDecimal temperatureCool;

    /**
     * temperature1
     */
    @TableField(value ="temperature_1" )
    private BigDecimal temperature1;

    /**
     * pulse1
     */
    @TableField(value ="pulse_1" )
    private BigDecimal pulse1;

    /**
     * breathe1
     */
    @TableField(value = "breathe_1")
    private Integer breathe1;

    /**
     * pressure1Am
     */
    @TableField(value = "pressure_1_am")
    private BigDecimal pressure1Am;

    /**
     * pressure1Pm
     */
    @TableField(value = "pressure_1_pm")
    private BigDecimal pressure1Pm;
    @TableField(exist = false)
    private String pressureAmPm;

    public String getPressure1AmAndPm() {
        String a = "";
        String b = "";
        if (pressure1Am != null) {
            a = pressure1Am.stripTrailingZeros().toPlainString();
        }
        if (pressure1Pm != null) {
            b = pressure1Pm.stripTrailingZeros().toPlainString();
        }
        if (pressure1Pm == null && pressure1Am == null) {
            return "";
        } else {
            return a + "/" + b;
        }

    }

    /**
     * 入量名称
     */
    @TableField(value = "col_1_name")
    private String col1Name;

    /**
     * 入量数  ml col1_am
     */
    @TableField(value = "col_1_am")
    private BigDecimal col1Am;

    /**
     * 吸痰 1 是
     */
    private Integer isSputum;

    /**
     * 雾化 1 是
     */
    private Integer isAtomization;

    /**
     * 口腔护理
     */
    private Integer isMouthpiece;

    /**
     * isEyes
     */
    private Integer isEyes;

    /**
     * isPhysical
     */
    private Integer isPhysical;

    /**
     * isSkin
     */
    private Integer isSkin;

    /**
     * temperature1Type
     */
    @TableField(value = "temperature_1_type")
    private String temperature1Type;

    /**
     * isPhysicalMethod
     */
    private Integer isPhysicalMethod;

    /**
     * 管道名称
     */
    private String tubesName;

    /**
     * isTubes
     */
    private Integer isTubes;

    /**
     * 出量名称
     */
    @TableField(value = "col_2_name")
    private String col2Name;

    /**
     * 出量数  ml
     */
    @TableField(value = "col_2_am")
    private BigDecimal col2Am;

    /**
     * 管道情况
     */
    private String tubesStatus;

    /**
     * boxTemp
     */
    private BigDecimal boxTemp;

    /**
     * boxHumi
     */
    private BigDecimal boxHumi;

    /**
     * urineColor
     */
    private String urineColor;

    /**
     * shitQuan
     */
    private BigDecimal shitQuan;

    /**
     * shitWaterQuan
     */
    private BigDecimal shitWaterQuan;

    /**
     * 阴道流血
     */
    private BigDecimal outputDblood;

    /**
     * fHeartSound
     */
    private String fHeartSound;

    /**
     * fetalBreak
     */
    private String fetalBreak;

    /**
     * 宫口开大
     */
    private String uterineOpen;

    /**
     * 宫缩状况
     */
    private String uterineStatus;

    /**
     * 宫底高度脐下
     */
    private String uterineHigh;

    /**
     * 子宫收缩状态
     */
    private String uterineMove;

    /**
     * outBlood
     */
    private String outBlood;

    /**
     * redHurt
     */
    private String redHurt;

    /**
     * 胎膜破否
     */
    private String anusAir;

    /**
     * suckleFun
     */
    private String suckleFun;

    /**
     * 面色
     */
    private String faceColour;

    /**
     * skinColour
     */
    private String skinColour;

    /**
     * skinStatus
     */
    private String skinStatus;

    /**
     * urineQuan
     */
    private Integer urineQuan;

    /**
     * 温箱温度 入
     */
    private BigDecimal boxTempIn;

    /**
     * 温箱温度 出
     */
    private BigDecimal boxTempOut;

    /**
     * breath
     */
    private String breath;

    /**
     * acraStatus
     */
    private String acraStatus;

    /**
     * intakeFlag
     */
    private String intakeFlag;

    /**
     * outtakeFlag
     */
    private String outtakeFlag;

    /**
     * urineInfo
     */
    private String urineInfo;

    /**
     * intakeInfo
     */
    private String intakeInfo;

    /**
     * outputInfo
     */
    private String outputInfo;

    /**
     * pupilr
     */
    private String pupilr;

    /**
     * pupilbj
     */
    private String pupilbj;

    /**
     * fmTime
     */
    private Date fmTime;

    /**
     * csTime
     */
    private Date csTime;

    /**
     * 胎心音(次/min)
     */
    private String fHeartSoundStr;

    /**
     * 血糖
     */
    @TableField(value = "GLU")
    private BigDecimal glu;

    /**
     * 疼痛强度
     */
    private String painLvl;

    /**
     * 呼吸机
     */
    private String breatheMachine;

    /**
     * map
     */
    @TableField(value = "MAP")
    private Integer map;

    /**
     * col1Srl
     */
    @TableField(value = "col_1_srl")
    private String col1Srl;

    /**
     * gastric
     */
    private String gastric;

    /**
     * cvp
     */
    @TableField(value ="CVP" )
    private String cvp;

    /**
     * etcho2
     */
    @TableField(value = "ETCHO2")
    private String etcho2;

    /**
     * gcs
     */
    @TableField(value = "GCS")
    private String gcs;

    /**
     * rass
     */
    @TableField(value = "RASS")
    private String rass;

    /**
     * othJc
     */
    private String othJc;

    /**
     * 体位
     */
    private String position;

    /**
     * isBreath
     */
    private Integer isBreath;

    /**
     * 会阴护理
     */
    private Integer isHuiyin;

    /**
     * 床上擦浴
     */
    private Integer isBed;

    /**
     * A-V护理
     */
    @TableField(value = "is_a_v")
    private Integer isAV;

    /**
     * col1Dos
     */
    @TableField(value = "col_1_dos")
    private String col1Dos;

    /**
     * ward
     */
    private String ward;
    private String cpot;

}
