|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
|
+import com.coffee.bus.bean.HisInfo;
|
|
|
import com.coffee.common.config.mybatis.DateToBigIntHandler;
|
|
import com.coffee.common.config.mybatis.DateToBigIntHandler;
|
|
|
import com.coffee.common.entity.TenantGenericEntity;
|
|
import com.coffee.common.entity.TenantGenericEntity;
|
|
|
import com.coffee.common.enums.SexEnum;
|
|
import com.coffee.common.enums.SexEnum;
|
|
@@ -83,7 +84,6 @@ public class BusClinicEntity extends TenantGenericEntity<String,String> {
|
|
|
@Length(max = 255,message = "麻醉医生不得超过255个字节")
|
|
@Length(max = 255,message = "麻醉医生不得超过255个字节")
|
|
|
private String anaDoctor;
|
|
private String anaDoctor;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@ApiModelProperty(value = "麻醉方式")
|
|
@ApiModelProperty(value = "麻醉方式")
|
|
|
private String anaType;
|
|
private String anaType;
|
|
|
|
|
|
|
@@ -94,16 +94,42 @@ public class BusClinicEntity extends TenantGenericEntity<String,String> {
|
|
|
@Length(max = 255,message = "手术医生不得超过255个字节")
|
|
@Length(max = 255,message = "手术医生不得超过255个字节")
|
|
|
private String surgeryDoctor;
|
|
private String surgeryDoctor;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
@ApiModelProperty(value = "手术名称")
|
|
@ApiModelProperty(value = "手术名称")
|
|
|
@Length(max = 255,message = "手术名称不得超过255个字节")
|
|
@Length(max = 255,message = "手术名称不得超过255个字节")
|
|
|
private String surgeryName;
|
|
private String surgeryName;
|
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "配置人员")
|
|
|
|
|
+ private String configPerson;
|
|
|
|
|
+
|
|
|
@ApiModelProperty(value = "配方")
|
|
@ApiModelProperty(value = "配方")
|
|
|
private String formula;
|
|
private String formula;
|
|
|
|
|
|
|
|
|
|
+ @ApiModelProperty(value = "临床是否结束")
|
|
|
|
|
+ private Boolean finished;
|
|
|
|
|
|
|
|
@TableField(fill = FieldFill.INSERT)
|
|
@TableField(fill = FieldFill.INSERT)
|
|
|
@TableLogic(value = "0",delval = "1")
|
|
@TableLogic(value = "0",delval = "1")
|
|
|
private Integer isDelete;
|
|
private Integer isDelete;
|
|
|
|
|
+
|
|
|
|
|
+ public static BusClinicEntity of(HisInfo hisInfo){
|
|
|
|
|
+ BusClinicEntity clinic = new BusClinicEntity();
|
|
|
|
|
+ clinic.setTenantId(hisInfo.getHospitalId());
|
|
|
|
|
+ clinic.setPatientCode(hisInfo.getPatientCode());
|
|
|
|
|
+ clinic.setPatientName(hisInfo.getPatientName());
|
|
|
|
|
+ clinic.setPatientGender(hisInfo.getGender());
|
|
|
|
|
+ clinic.setPatientAge(Integer.valueOf(hisInfo.getAge()));
|
|
|
|
|
+ clinic.setWeight(hisInfo.getWeight());
|
|
|
|
|
+ clinic.setHeight(hisInfo.getHeight());
|
|
|
|
|
+ //病区 需新增 todo
|
|
|
|
|
+ clinic.setDept(hisInfo.getWard());
|
|
|
|
|
+ clinic.setBedNo(hisInfo.getBedNo());
|
|
|
|
|
+ clinic.setName(hisInfo.getOperation());
|
|
|
|
|
+ clinic.setSurgeryDoctor(hisInfo.getSurgeon());
|
|
|
|
|
+ clinic.setStartTime(hisInfo.getOperationTime());
|
|
|
|
|
+ //asa分级 todo
|
|
|
|
|
+ //easymode todo
|
|
|
|
|
+ clinic.setFormula(hisInfo.getFormula());
|
|
|
|
|
+ clinic.setConfigPerson(hisInfo.getConfigPerson());
|
|
|
|
|
+ return clinic;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|