|
@@ -42,7 +42,7 @@ public class BEH02902 extends QCCatalogue {
|
|
|
String name = pd.getName();
|
|
|
int timeIndex = pacsText.indexOf(name);
|
|
|
String beforeTimeText = pacsText.substring(Math.max(timeIndex - 5, 0), timeIndex);
|
|
|
- String afterTimeText = pacsText.substring(timeIndex + name.length(), timeIndex + name.length() + 10);
|
|
|
+ String afterTimeText = pacsText.substring(timeIndex + name.length(), Math.min(timeIndex + name.length() + 10, pacsText.length()));
|
|
|
if (beforeTimeText.contains("院") || afterTimeText.contains("院")) {
|
|
|
findPlace = true;
|
|
|
break;
|