(MedicalRecord record)
| 47 | this.groupFunc=groupFunc; |
| 48 | } |
| 49 | private static DrgGroupStatus trans(MedicalRecord record){ |
| 50 | int i=-1; |
| 51 | for (String x:record.zdList){ |
| 52 | i++; |
| 53 | String zd=x; |
| 54 | if (ZD_MAP.containsKey(x)){ |
| 55 | zd=ZD_MAP.get(x); |
| 56 | if (!zd.equals(x)){ |
| 57 | record.zdList[i]=zd; |
| 58 | checkMessages.putMessage(record.Index, String.format("%s->%s",x,zd)); |
| 59 | } |
| 60 | }else{ |
| 61 | checkMessages.putMessage(record.Index, String.format("诊断%s无法转换为分组器支持的编码",zd)); |
| 62 | return DrgGroupStatus.ZD_NOT_MAPPING; |
| 63 | } |
| 64 | } |
| 65 | i=-1; |
| 66 | for (String x:record.ssList){ |
| 67 | i++; |
| 68 | String ss=x; |
| 69 | if (SS_MAP.containsKey(x)){ |
| 70 | ss=SS_MAP.get(x); |
| 71 | if (!ss.equals(x)){ |
| 72 | record.ssList[i]=ss; |
| 73 | checkMessages.putMessage(record.Index, String.format("%s->%s",x,ss)); |
| 74 | } |
| 75 | }else{ |
| 76 | checkMessages.putMessage(record.Index, String.format("手术操作%s无法转换为分组器支持的编码",ss)); |
| 77 | return DrgGroupStatus.SS_NOT_MAPPING; |
| 78 | } |
| 79 | } |
| 80 | return null; |
| 81 | } |
| 82 | private static DrgGroupStatus check(MedicalRecord record){ |
| 83 | try{ |
| 84 | if (record.gender.isEmpty()){ |
no test coverage detected