|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.supervision.vo.manage;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.crypto.digest.MD5;
|
|
|
|
|
import com.supervision.model.DiseasePhysical;
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
import lombok.Data;
|
|
|
|
@ -15,7 +16,17 @@ public class DiseasePhysicalResVo extends DiseasePhysical {
|
|
|
|
|
@ApiModelProperty("工具名称")
|
|
|
|
|
private String toolName;
|
|
|
|
|
|
|
|
|
|
private String itemId;
|
|
|
|
|
@ApiModelProperty("工具类型")
|
|
|
|
|
private String toolType;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("工具父级id")
|
|
|
|
|
private String toolParentId;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("工具id路径")
|
|
|
|
|
private List<String> toolIdPath;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("身体部位id路径")
|
|
|
|
|
private List<String> locationIdPath;
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty("诊断依据 0:初步诊断依据 1:证实诊断依据 2:鉴别诊断依据 3:全面诊断依据")
|
|
|
|
|
private List<Integer> diagnosticCriteria;
|
|
|
|
@ -48,4 +59,26 @@ public class DiseasePhysicalResVo extends DiseasePhysical {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void initToolIdPath(){
|
|
|
|
|
if (null == toolIdPath){
|
|
|
|
|
toolIdPath = new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
toolIdPath.add(new MD5().digestHex16(toolType));
|
|
|
|
|
toolIdPath.add(getToolId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void initLocationIdPath(){
|
|
|
|
|
if (null == locationIdPath){
|
|
|
|
|
locationIdPath = new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
locationIdPath.add(getToolParentId());
|
|
|
|
|
locationIdPath.add(getLocationId());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void populateOther(){
|
|
|
|
|
this.aggregationDiagnosticCriteria();
|
|
|
|
|
this.initToolIdPath();
|
|
|
|
|
this.initLocationIdPath();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|