(String index,String mainZd,String[] otherZd)
| 48 | return false; |
| 49 | } |
| 50 | public static boolean has_mcc(String index,String mainZd,String[] otherZd){ |
| 51 | String cce=""; |
| 52 | if (Base.CCE.containsKey(mainZd)){ |
| 53 | cce=Base.CCE.get(mainZd); |
| 54 | Base.groupMessages.putMessage(index,String.format("主诊断%s排除表%s",mainZd,cce)); |
| 55 | } |
| 56 | for (String zd:otherZd){ |
| 57 | if (Base.MCC.containsKey(zd)){ |
| 58 | String mcc=Base.MCC.get(zd); |
| 59 | Base.groupMessages.putMessage(index,String.format("诊断%s属于CC,排除表%s",zd,mcc)); |
| 60 | if (!cce.isEmpty() && cce.equals(mcc)){ |
| 61 | continue; |
| 62 | }else{ |
| 63 | return true; |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | return false; |
| 68 | } |
| 69 | public static boolean intersect(String[] a,String[] b){ |
| 70 | if (a!=null && a.length>0 && b!=null && b.length>0){ |
| 71 | for (String x : a){ |
no test coverage detected