|
@@ -198,6 +198,35 @@ public class InformedConsentTran extends TargetTran {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ List<String> hitRecords = Arrays.asList("授权委托人意见","患方意见","患者知情选择","患者知情选择","患者承诺内容");
|
|
|
|
+ String hitRecordStr = "";
|
|
|
|
+ for (String hitRecord : hitRecords) {
|
|
|
|
+ if(text.contains(hitRecord)){
|
|
|
|
+ hitRecordStr = text.substring(text.indexOf(hitRecord)+hitRecord.length());
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ hitRecordStr = hitRecordStr.replace("签名","签字").replace("患者签字","患者(或授权人)签字").replace("患方签字","患者(或授权人)签字").replace("患者(代理人)签字","患者(或授权人)签字");
|
|
|
|
+ if(hitRecordStr.contains("患者(或授权人)签字")){
|
|
|
|
+ String hitRecordRet = hitRecordStr.split("患者(或授权人)签字")[0];
|
|
|
|
+ if(hitRecordRet.contains("签字")){
|
|
|
|
+ hitRecordRet = hitRecordRet.split("签字")[0];
|
|
|
|
+ }
|
|
|
|
+ if(StringUtil.isNotEmpty(hitRecordRet)){
|
|
|
|
+ retMap.put("患者/法定代理人意见", hitRecordRet);
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ String strFlag = "以上情况浙江省台州医院已经详细告知,我充分了解上述内容,并确认提供的信息属实,若信息不真实,愿承担相应责任。";
|
|
|
|
+ if(text.contains(strFlag)){
|
|
|
|
+ retMap.put("患者/法定代理人意见", strFlag);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ String caseStr = "您好!感谢您对浙江省台州医院的信任。在当前新型冠状病毒感染的肺炎疫情特殊时期,我院高度重视在院病友的医疗安全,每日定期对所有诊疗场所、公共区域、电梯等进行严格、专业的消杀,确保向您提供一个安全的就诊及住院环境。";
|
|
|
|
+ if(text.contains(caseStr)){
|
|
|
|
+ retMap.put("医疗机构意见", caseStr);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
//知情同意内容&&医疗机构意见
|
|
//知情同意内容&&医疗机构意见
|
|
if (StringUtil.isNotEmpty(retMap.get("病情告知")) && StringUtil.isNotEmpty(retMap.get("病情告知").trim())) {
|
|
if (StringUtil.isNotEmpty(retMap.get("病情告知")) && StringUtil.isNotEmpty(retMap.get("病情告知").trim())) {
|
|
@@ -307,6 +336,7 @@ public class InformedConsentTran extends TargetTran {
|
|
if (text.contains(flagName)) {
|
|
if (text.contains(flagName)) {
|
|
advice = text.substring(text.indexOf(flagName)+flagName.length());
|
|
advice = text.substring(text.indexOf(flagName)+flagName.length());
|
|
}
|
|
}
|
|
|
|
+ advice = advice.replace("医护人员签名 ","医生签名");
|
|
String replaceName = "医生签名";
|
|
String replaceName = "医生签名";
|
|
if (advice.contains(replaceName)) {
|
|
if (advice.contains(replaceName)) {
|
|
advice = advice.split(replaceName)[0];
|
|
advice = advice.split(replaceName)[0];
|