|
|
@@ -2,12 +2,14 @@ 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.EnumUtil;
|
|
|
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 com.nb.web.api.entity.BusInfusionHistoryEntity;
|
|
|
import lombok.Data;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
@@ -85,6 +87,44 @@ public class BusClinicExcelVO {
|
|
|
private String entrust;
|
|
|
|
|
|
|
|
|
+ /*************输注部分*********************/
|
|
|
+ private String infusionId;
|
|
|
+ @ExcelProperty(value = "输注开始时间",format = DatePattern.NORM_DATETIME_PATTERN)
|
|
|
+ private Date infusionStartTime;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "总量")
|
|
|
+ private Integer totalDose;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "首次量")
|
|
|
+ private Integer firstDose;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "剩余量")
|
|
|
+ private BigDecimal remainDose;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "已输入量")
|
|
|
+ private BigDecimal inputDose;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "持续量")
|
|
|
+ private BigDecimal continueDose;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "追加量")
|
|
|
+ private BigDecimal appendDose;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "极限量")
|
|
|
+ private BigDecimal maxDose;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "自控锁时")
|
|
|
+ private BigDecimal selfControlLockTime;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "pca有效次数")
|
|
|
+ private Integer pcaValidCount;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "pca无效次数")
|
|
|
+ private Integer pcaInvalidCount;
|
|
|
+
|
|
|
+ @ExcelProperty(value = "pca总按次数")
|
|
|
+ private Integer pcaTotalCount;
|
|
|
+
|
|
|
/*************评价部分********************/
|
|
|
|
|
|
@ExcelProperty(value = "疼痛静止评分")
|
|
|
@@ -167,9 +207,9 @@ public class BusClinicExcelVO {
|
|
|
|
|
|
public void setPatientGender(String patientGender) {
|
|
|
if(ObjectUtil.isNotNull(patientGender)){
|
|
|
- SexEnum sexEnum = SexEnum.valueOf(patientGender);
|
|
|
+ SexEnum sexEnum = EnumUtil.likeValueOf(SexEnum.class,patientGender);
|
|
|
if(ObjectUtil.isNull(sexEnum)){
|
|
|
- this.patientGender = SexEnum.UNKNOW.getText();
|
|
|
+ this.patientGender = patientGender;
|
|
|
}else {
|
|
|
this.patientGender = sexEnum.getText();
|
|
|
}
|
|
|
@@ -193,8 +233,27 @@ public class BusClinicExcelVO {
|
|
|
return content;
|
|
|
}
|
|
|
|
|
|
+ public void fillInfusion(BusInfusionHistoryEntity infusion){
|
|
|
+ if(ObjectUtil.isNull(infusion)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.infusionId=infusion.getId();
|
|
|
+ this.infusionStartTime=infusion.getStartTime();
|
|
|
+ this.totalDose=infusion.getTotalDose();
|
|
|
+ this.firstDose=infusion.getFirstDose();
|
|
|
+ this.remainDose=infusion.getRemainDose();
|
|
|
+ this.inputDose=infusion.getInputDose();
|
|
|
+ this.continueDose=infusion.getContinueDose();
|
|
|
+ this.appendDose=infusion.getAppendDose();
|
|
|
+ this.maxDose=infusion.getMaxDose();
|
|
|
+ this.selfControlLockTime=infusion.getSelfControlLockTime();
|
|
|
+ this.pcaValidCount=infusion.getPcaValidCount();
|
|
|
+ this.pcaInvalidCount=infusion.getPcaInvalidCount();
|
|
|
+ this.pcaTotalCount=infusion.getPcaTotalCount();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- public void parseEval(BusEvaluationEntity eval){
|
|
|
+ public void fillEval(BusEvaluationEntity eval){
|
|
|
if(ObjectUtil.isNull(eval)){
|
|
|
return;
|
|
|
}
|