|
@@ -8,6 +8,7 @@ import com.lantone.qc.pub.model.OutputInfo;
|
|
|
import com.lantone.qc.pub.model.doc.DeathRecordDoc;
|
|
|
import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -32,17 +33,19 @@ public class LEA02901 extends QCCatalogue {
|
|
|
if (deathRecordDoc == null || deathRecordDoc.getText() == null) {
|
|
|
Map<String, String> structureMap = leaveHospitalDoc.getStructureMap();
|
|
|
String dischargeOrder = structureMap.get("出院医嘱");
|
|
|
- //跟医学部任燕青确认过, 去除括号里的东西
|
|
|
- dischargeOrder = RegularUtil.ClearBracket(dischargeOrder);
|
|
|
- if (StringUtil.isNotBlank(dischargeOrder)) {
|
|
|
- List<String> words = Lists.newArrayList("qd","bid","tid","qid","qh","q2h","q4h","q6h","q8h",
|
|
|
- "qn","q3w","qod","biw","qw","prn","sos","ad","lib","st","stat","hs","am","po","ID","IH","IM",
|
|
|
- "IV","OD","OL","OS","OU","ivgtt","Q12H","QN","ONCE");
|
|
|
- for (String word : words) {
|
|
|
- if (dischargeOrder.contains(word.toUpperCase()) || dischargeOrder.contains(word.toLowerCase())) {
|
|
|
- status.set("-1");
|
|
|
- info.set("出院医嘱用法用量不规范");
|
|
|
- return;
|
|
|
+ if(StringUtils.isNotEmpty(dischargeOrder)){
|
|
|
+ //跟医学部任燕青确认过, 去除括号里的东西
|
|
|
+ dischargeOrder = RegularUtil.ClearBracket(dischargeOrder);
|
|
|
+ if (StringUtil.isNotBlank(dischargeOrder)) {
|
|
|
+ List<String> words = Lists.newArrayList("qd","bid","tid","qid","qh","q2h","q4h","q6h","q8h",
|
|
|
+ "qn","q3w","qod","biw","qw","prn","sos","ad","lib","st","stat","hs","am","po","ID","IH","IM",
|
|
|
+ "IV","OD","OL","OS","OU","ivgtt","Q12H","QN","ONCE");
|
|
|
+ for (String word : words) {
|
|
|
+ if (dischargeOrder.contains(word.toUpperCase()) || dischargeOrder.contains(word.toLowerCase())) {
|
|
|
+ status.set("-1");
|
|
|
+ info.set("出院医嘱用法用量不规范");
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|