MCPcopy Index your code
hub / github.com/OpenDRG/DRG_Java / has_mcc

Method has_mcc

drg_group/guangxi_2022/Base.java:50–68  ·  view source on GitHub ↗
(String index,String mainZd,String[] otherZd)

Source from the content-addressed store, hash-verified

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){

Callers 15

UR13_groupMethod · 0.95
OB11_groupMethod · 0.95
OC11_groupMethod · 0.95
OD11_groupMethod · 0.95
OE11_groupMethod · 0.95
OF21_groupMethod · 0.95
OJ11_groupMethod · 0.95
OR11_groupMethod · 0.95
OS11_groupMethod · 0.95
OS21_groupMethod · 0.95
OT11_groupMethod · 0.95
OZ11_groupMethod · 0.95

Calls 1

putMessageMethod · 0.45

Tested by

no test coverage detected