|
@@ -12,6 +12,7 @@ import com.lantone.structure.model.entity.Drug;
|
|
|
import com.lantone.structure.model.entity.UCAgent;
|
|
|
import com.lantone.structure.model.label.CaesareanSectionLabel;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
@@ -45,12 +46,15 @@ public class CesareanSectionTran extends TargetTran {
|
|
|
Map<String, String> sourceMap = Maps.newHashMap();
|
|
|
text = text.replace("第1次手术", "第1次手术:");
|
|
|
List<String> titles = CommonAnalysisUtil.sortTitles(
|
|
|
- Lists.newArrayList("手术开始时间", "手术结束时间", "手术日期", "术前诊断", "手术名称", "术中诊断", "手 术 者",
|
|
|
+ Lists.newArrayList("手术开始时间", "手术结束时间", "手术日期", "术前诊断", "手术名称", "术中诊断", "手 术 者","护婴者","麻醉方法",
|
|
|
"麻 醉 者", "手术标本", "术中并发症", "术中失血量", "手术经过", "第1次手术"),
|
|
|
text
|
|
|
);
|
|
|
CommonAnalysisUtil.cutByTitles(text, titles, 0, sourceMap);
|
|
|
opeTimeHandle(sourceMap, ret);
|
|
|
+ if(StringUtils.isNotEmpty(sourceMap.get("护婴者"))){
|
|
|
+ ret.put("护婴者", sourceMap.get("护婴者"));
|
|
|
+ }
|
|
|
ret.put("术前诊断", sourceMap.get("术前诊断"));
|
|
|
ret.put("剖宫产手术过程", sourceMap.get("手术经过").replace("(包括体位、切口处理经过,病理标本肉眼所见)", "").trim());
|
|
|
return ret;
|