|
@@ -50,14 +50,16 @@ public class PreoperativeDiscussionTran extends TargetTran {
|
|
Map<String, String> sourceMap = Maps.newHashMap();
|
|
Map<String, String> sourceMap = Maps.newHashMap();
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
Lists.newArrayList("简要病情","药物、食物过敏史","月经史","一般情况","入院后辅助检查","术前诊断","手术指征","手术禁忌",
|
|
Lists.newArrayList("简要病情","药物、食物过敏史","月经史","一般情况","入院后辅助检查","术前诊断","手术指征","手术禁忌",
|
|
- "拟实施手术名称","手术方式","拟实施麻醉方式","术前准备","防范措施","手术审批医师","医师签名"),
|
|
|
|
|
|
+ "拟实施手术名称","手术方式","拟实施麻醉方式","术前准备","其他术前相关情况","防范措施","手术审批医师","医师签名"),
|
|
text
|
|
text
|
|
);
|
|
);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
- if( sourceMap.containsKey("术前诊断") || sourceMap.containsKey("月经史")|| sourceMap.containsKey("一般情况")){
|
|
|
|
|
|
+ if( sourceMap.containsKey("术前诊断") || sourceMap.containsKey("月经史")|| sourceMap.containsKey("其他术前相关情况")
|
|
|
|
+ || sourceMap.containsKey("一般情况")){
|
|
sourceMap.remove("术前诊断");
|
|
sourceMap.remove("术前诊断");
|
|
sourceMap.remove("月经史");
|
|
sourceMap.remove("月经史");
|
|
sourceMap.remove("一般情况");
|
|
sourceMap.remove("一般情况");
|
|
|
|
+ sourceMap.remove("其他术前相关情况");
|
|
}
|
|
}
|
|
return sourceMap;
|
|
return sourceMap;
|
|
}
|
|
}
|
|
@@ -87,6 +89,7 @@ public class PreoperativeDiscussionTran extends TargetTran {
|
|
"防范措施=手术要点",
|
|
"防范措施=手术要点",
|
|
"主持人总结=讨论结论",
|
|
"主持人总结=讨论结论",
|
|
"讨论摘要=讨论意见",
|
|
"讨论摘要=讨论意见",
|
|
|
|
+ "手术审批医师=手术者签名",
|
|
"药物、食物过敏史=过敏史"
|
|
"药物、食物过敏史=过敏史"
|
|
);
|
|
);
|
|
|
|
|
|
@@ -137,19 +140,16 @@ public class PreoperativeDiscussionTran extends TargetTran {
|
|
|
|
|
|
//手术指征
|
|
//手术指征
|
|
if(text.contains("手术指征:")) {
|
|
if(text.contains("手术指征:")) {
|
|
- StringBuffer sb = new StringBuffer();
|
|
|
|
String opration = text.substring(text.indexOf("手术指征:") + 5);
|
|
String opration = text.substring(text.indexOf("手术指征:") + 5);
|
|
- if(text.contains("拟实施手术名称")){
|
|
|
|
|
|
+ if(opration.contains("拟实施手术名称")){
|
|
opration = opration.substring(0,opration.indexOf("拟实施手术名称"));
|
|
opration = opration.substring(0,opration.indexOf("拟实施手术名称"));
|
|
}
|
|
}
|
|
- String[] split = opration.split("\n");
|
|
|
|
- for (int i = 0; i < split.length; i++) {
|
|
|
|
- if( split[i].contains(".")){
|
|
|
|
- sb.append(split[i]);
|
|
|
|
- }
|
|
|
|
|
|
+ if(opration.contains("主刀医生")){
|
|
|
|
+ opration = opration.substring(0,opration.indexOf("主刀医生"));
|
|
}
|
|
}
|
|
- if(StringUtil.isNotEmpty(sb.toString())){
|
|
|
|
- retMap.put("手术指征",sb.toString());
|
|
|
|
|
|
+ String[] split = opration.split("\n");
|
|
|
|
+ if(StringUtil.isNotEmpty(split[0])){
|
|
|
|
+ retMap.put("手术指征",split[0]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -202,13 +202,12 @@ public class PreoperativeDiscussionTran extends TargetTran {
|
|
//医师签名
|
|
//医师签名
|
|
if(text.contains("医师签名:")) {
|
|
if(text.contains("医师签名:")) {
|
|
String sign = text.substring(text.indexOf("医师签名:")+5).trim();
|
|
String sign = text.substring(text.indexOf("医师签名:")+5).trim();
|
|
- String docSign = "";
|
|
|
|
if(sign.contains("年") ||sign.contains( "-")){
|
|
if(sign.contains("年") ||sign.contains( "-")){
|
|
String subStr= text.substring(text.indexOf("医师签名:")+5);
|
|
String subStr= text.substring(text.indexOf("医师签名:")+5);
|
|
- docSign = subStr.split("\n")[0].trim();
|
|
|
|
|
|
+ sign = subStr.split("\n")[0].trim();
|
|
}
|
|
}
|
|
- if(StringUtil.isNotEmpty(docSign)){
|
|
|
|
- retMap.put("医师签名",docSign);
|
|
|
|
|
|
+ if(StringUtil.isNotEmpty(sign)){
|
|
|
|
+ retMap.put("医师签名",sign);
|
|
}else{
|
|
}else{
|
|
retMap.remove("医师签名");
|
|
retMap.remove("医师签名");
|
|
}
|
|
}
|
|
@@ -343,7 +342,8 @@ public class PreoperativeDiscussionTran extends TargetTran {
|
|
|
|
|
|
public static void lastSovle(List<OperationDoc> operationDocs , Map<String,String> rep) {
|
|
public static void lastSovle(List<OperationDoc> operationDocs , Map<String,String> rep) {
|
|
if(!operationDocs.isEmpty() && operationDocs.get(0)!=null && operationDocs.get(0)
|
|
if(!operationDocs.isEmpty() && operationDocs.get(0)!=null && operationDocs.get(0)
|
|
- .getPreoperativeDiscussionDoc()!=null){
|
|
|
|
|
|
+ .getPreoperativeDiscussionDoc()!=null&& operationDocs.get(0)
|
|
|
|
+ .getPreoperativeDiscussionDoc().getPreoperativeDiscussionLabel()!=null){
|
|
PreoperativeDiscussionDoc preoperativeDiscussionDoc = operationDocs.get(0).getPreoperativeDiscussionDoc();
|
|
PreoperativeDiscussionDoc preoperativeDiscussionDoc = operationDocs.get(0).getPreoperativeDiscussionDoc();
|
|
String allergyRecord = preoperativeDiscussionDoc.getPreoperativeDiscussionLabel().getAllergyRecord();
|
|
String allergyRecord = preoperativeDiscussionDoc.getPreoperativeDiscussionLabel().getAllergyRecord();
|
|
String opBottomName = preoperativeDiscussionDoc.getPreoperativeDiscussionLabel().getOpBottomName();
|
|
String opBottomName = preoperativeDiscussionDoc.getPreoperativeDiscussionLabel().getOpBottomName();
|