|
@@ -63,13 +63,18 @@ public class CesareanSectionTran extends TargetTran {
|
|
|
|
|
|
private Map<String, String> caesareanSectionMethod( Map<String, String> retMap) {
|
|
|
if(retMap.containsKey("剖宫产手术过程")){
|
|
|
- String caesareanSection = retMap.get("剖宫产手术过程").replace("子宫下段收缩","宫缩").replace("子宫下段仍收缩","宫缩").replace("子宫收缩","宫缩").replace("。",",").replace(":",",");
|
|
|
+ String caesareanSection = retMap.get("剖宫产手术过程").replace("分娩胎","").replace("助娩","分娩").replace("娩出","分娩").replace(",予保暖、清理呼吸道后5分钟Apgar评分10分","").replace("子宫下段收缩","宫缩").replace("子宫下段仍收缩","宫缩").replace("子宫收缩","宫缩").replace(",",",").replace("。",",").replace(":",",");
|
|
|
+ if(caesareanSection.contains("新生儿外观")){
|
|
|
+ String newKidCase= caesareanSection.substring(caesareanSection.lastIndexOf("新生儿外观"));
|
|
|
+ if(newKidCase.contains("胎盘胎膜")){
|
|
|
+ newKidCase= newKidCase.split("胎盘胎膜")[0];
|
|
|
+ newKidCase= newKidCase.substring(0,newKidCase.lastIndexOf(","));
|
|
|
+ retMap.put("新生儿异常情况", newKidCase);
|
|
|
+ }
|
|
|
+ }
|
|
|
if(caesareanSection.contains(",")){
|
|
|
String[] split = caesareanSection.split(",");
|
|
|
for (String str : split) {
|
|
|
- if(!(str.contains("宫缩") || str.contains("性别"))){
|
|
|
- continue;
|
|
|
- }
|
|
|
if(str.contains("宫缩")){
|
|
|
String strFir = str.substring(str.indexOf("宫缩")+"宫缩".length());
|
|
|
if(strFir.trim().length()>0){
|
|
@@ -83,8 +88,24 @@ public class CesareanSectionTran extends TargetTran {
|
|
|
if(str.contains("女")){
|
|
|
retMap.put("新生儿性别", "女");
|
|
|
}
|
|
|
+ }
|
|
|
+ if(str.contains("分娩一")){
|
|
|
+ String strFir = str.substring(str.indexOf("分娩一"));
|
|
|
+ if(strFir.trim().length()>0){
|
|
|
+ retMap.put("分娩结局", strFir);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!str.contains("分娩") && str.contains("胎膜包裹死胎")){
|
|
|
+ retMap.put("分娩结局", "胎膜包裹死胎");
|
|
|
+ }
|
|
|
|
|
|
+ if(str.contains("有产瘤") || str.contains("cm产瘤")){
|
|
|
+ retMap.put("产瘤", "有产瘤");
|
|
|
}
|
|
|
+ if(str.contains("无产瘤")){
|
|
|
+ retMap.put("产瘤", "无产瘤");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|