|
@@ -0,0 +1,230 @@
|
|
|
|
|
+package com.nb.web.service.bus.controller.vo;
|
|
|
|
|
+
|
|
|
|
|
+import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
|
+import cn.hutool.core.date.DatePattern;
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
+import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
|
|
+import com.nb.core.enums.SexEnum;
|
|
|
|
|
+import com.nb.web.api.bean.FormulaDrugDetailDomain;
|
|
|
|
|
+import com.nb.web.api.bean.FormulaDrugDomain;
|
|
|
|
|
+import com.nb.web.api.entity.BusEvaluationEntity;
|
|
|
|
|
+import lombok.Data;
|
|
|
|
|
+
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @ClassName : BusClinicExcelVO
|
|
|
|
|
+ * @Description : 手术信息导出excel实体
|
|
|
|
|
+ * @Author : LF
|
|
|
|
|
+ * @Date: 2024年10月11日
|
|
|
|
|
+ */
|
|
|
|
|
+@Data
|
|
|
|
|
+public class BusClinicExcelVO {
|
|
|
|
|
+
|
|
|
|
|
+ private String id;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty("住院号")
|
|
|
|
|
+ private String patientCode;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "患者姓名")
|
|
|
|
|
+ private String patientName;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "患者性别")
|
|
|
|
|
+ private String patientGender;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "患者年龄")
|
|
|
|
|
+ private Integer patientAge;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "手术开始时间",format = DatePattern.NORM_DATETIME_PATTERN)
|
|
|
|
|
+ private Date startTime;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "病区")
|
|
|
|
|
+ private String ward;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "病床号")
|
|
|
|
|
+ private String bedNo;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "体重")
|
|
|
|
|
+ private String weight;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "身高")
|
|
|
|
|
+ private String height;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty("手术名称")
|
|
|
|
|
+ private String surgeryName;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "麻醉医生")
|
|
|
|
|
+ private String anaDoctor;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "麻醉方式")
|
|
|
|
|
+ private String anaType;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "备注")
|
|
|
|
|
+ private String remark;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "镇痛方式")
|
|
|
|
|
+ private String analType;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "手术医生")
|
|
|
|
|
+ private String surgeryDoctor;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "配置人员")
|
|
|
|
|
+ private String configPerson;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "配方")
|
|
|
|
|
+ private FormulaDrugDomain formula;
|
|
|
|
|
+
|
|
|
|
|
+ private String formulas;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "ASA")
|
|
|
|
|
+ private String asa;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "医嘱")
|
|
|
|
|
+ private String entrust;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /*************评价部分********************/
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "疼痛静止评分")
|
|
|
|
|
+ private Integer statics;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "疼痛活动评分")
|
|
|
|
|
+ private Integer activity;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "镇静评分")
|
|
|
|
|
+ private Integer calm;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "左上肢")
|
|
|
|
|
+ private Integer leftArm;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "左下肢")
|
|
|
|
|
+ private Integer leftLeg;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "右上肢")
|
|
|
|
|
+ private Integer rightArm;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "右下肢")
|
|
|
|
|
+ private Integer rightLeg;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "恶心呕吐")
|
|
|
|
|
+ private Integer nauseaVomit;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "瘙痒")
|
|
|
|
|
+ private Integer itch;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "眩晕")
|
|
|
|
|
+ private Integer vertigo;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "咽喉疼痛")
|
|
|
|
|
+ private Integer soreThroat;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "尿潴留")
|
|
|
|
|
+ private Integer uroschesis;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "呼吸抑制")
|
|
|
|
|
+ private Integer breathDepression;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "声音嘶哑")
|
|
|
|
|
+ private Integer hoarseness;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "认知障碍")
|
|
|
|
|
+ private Integer cognitionObstacle;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "其他")
|
|
|
|
|
+ private String other;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "满意度")
|
|
|
|
|
+ private Integer satisfaction;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "收缩压")
|
|
|
|
|
+ private BigDecimal shrinkPressure;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "舒张压")
|
|
|
|
|
+ private BigDecimal diastensPressure;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "心率")
|
|
|
|
|
+ private BigDecimal heartRate;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "胎心")
|
|
|
|
|
+ private BigDecimal fetalHeartRate;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "呼吸频率")
|
|
|
|
|
+ private BigDecimal breathRate;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "血氧饱和度")
|
|
|
|
|
+ private BigDecimal bloodOxygenSaturation;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "评价时间")
|
|
|
|
|
+ private Date evaluateTime;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "评价人")
|
|
|
|
|
+ private String evaluator;
|
|
|
|
|
+
|
|
|
|
|
+ @ExcelProperty(value = "备注")
|
|
|
|
|
+ private String evalRemark;
|
|
|
|
|
+
|
|
|
|
|
+ public void setPatientGender(String patientGender) {
|
|
|
|
|
+ if(ObjectUtil.isNotNull(patientGender)){
|
|
|
|
|
+ SexEnum sexEnum = SexEnum.valueOf(patientGender);
|
|
|
|
|
+ if(ObjectUtil.isNull(sexEnum)){
|
|
|
|
|
+ this.patientGender = SexEnum.UNKNOW.getText();
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.patientGender = sexEnum.getText();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public String getFormulas() {
|
|
|
|
|
+ String content="";
|
|
|
|
|
+ if(ObjectUtil.isNotNull(this.formula)&& CollectionUtil.isNotEmpty(this.formula.getDetail())){
|
|
|
|
|
+ List<FormulaDrugDetailDomain> detail = this.formula.getDetail();
|
|
|
|
|
+ for (int i = 0; i < detail.size(); i++) {
|
|
|
|
|
+ FormulaDrugDetailDomain formulaDrugDetailDomain = CollectionUtil.get(detail, i);
|
|
|
|
|
+ content=content+formulaDrugDetailDomain.getName()+formulaDrugDetailDomain.getDose()+formulaDrugDetailDomain.getUnit();
|
|
|
|
|
+ if(i!=(detail.size()-1)){
|
|
|
|
|
+ content=content+1;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return content;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public void parseEval(BusEvaluationEntity eval){
|
|
|
|
|
+ if(ObjectUtil.isNull(eval)){
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.statics=eval.getStatics();
|
|
|
|
|
+ this.activity=eval.getActivity();
|
|
|
|
|
+ this.calm=eval.getCalm();
|
|
|
|
|
+ this.leftArm=eval.getLeftArm();
|
|
|
|
|
+ this.leftLeg=eval.getLeftLeg();
|
|
|
|
|
+ this.rightArm=eval.getRightArm();
|
|
|
|
|
+ this.rightLeg=eval.getRightLeg();
|
|
|
|
|
+ this.nauseaVomit=eval.getNauseaVomit();
|
|
|
|
|
+ this.itch=eval.getItch();
|
|
|
|
|
+ this.vertigo=eval.getVertigo();
|
|
|
|
|
+ this.soreThroat=eval.getSoreThroat();
|
|
|
|
|
+ this.uroschesis=eval.getUroschesis();
|
|
|
|
|
+ this.breathDepression=eval.getBreathDepression();
|
|
|
|
|
+ this.hoarseness=eval.getHoarseness();
|
|
|
|
|
+ this.cognitionObstacle=eval.getCognitionObstacle();
|
|
|
|
|
+ this.other=eval.getOther();
|
|
|
|
|
+ this.satisfaction=eval.getSatisfaction();
|
|
|
|
|
+ this.shrinkPressure=eval.getShrinkPressure();
|
|
|
|
|
+ this.diastensPressure=eval.getDiastensPressure();
|
|
|
|
|
+ this.heartRate=eval.getHeartRate();
|
|
|
|
|
+ this.fetalHeartRate=eval.getFetalHeartRate();
|
|
|
|
|
+ this.breathRate=eval.getBreathRate();
|
|
|
|
|
+ this.bloodOxygenSaturation=eval.getBloodOxygenSaturation();
|
|
|
|
|
+ this.evaluateTime=eval.getEvaluateTime();
|
|
|
|
|
+ this.evaluator=eval.getEvaluator();
|
|
|
|
|
+ this.evalRemark=eval.getRemark();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+}
|