|
@@ -20,9 +20,11 @@ public class BeHospitalizedDocTrans extends ModelDocTrans {
|
|
String content = medrecVo.getContent().get("content").toString();
|
|
String content = medrecVo.getContent().get("content").toString();
|
|
int index1 = content.indexOf("初步诊断") + 5;
|
|
int index1 = content.indexOf("初步诊断") + 5;
|
|
int index2 = content.indexOf("\n", index1) - 1;
|
|
int index2 = content.indexOf("\n", index1) - 1;
|
|
- content = content.substring(0, index1)
|
|
|
|
- + StringUtil.specialCharComma(content.substring(index1, index2))
|
|
|
|
- + content.substring(index2);
|
|
|
|
|
|
+ if (index1 < index2) {
|
|
|
|
+ content = content.substring(0, index1)
|
|
|
|
+ + StringUtil.specialCharComma(content.substring(index1, index2))
|
|
|
|
+ + content.substring(index2);
|
|
|
|
+ }
|
|
|
|
|
|
int index3 = content.indexOf("辅助检查");
|
|
int index3 = content.indexOf("辅助检查");
|
|
content = content.substring(0, index3) + "\n" + content.substring(index3);
|
|
content = content.substring(0, index3) + "\n" + content.substring(index3);
|