MCPcopy Create free account
hub / github.com/OpenDRG/DRG_Java / trans

Method trans

drg_group/changchun_2022/GroupProxy.java:49–81  ·  view source on GitHub ↗
(MedicalRecord record)

Source from the content-addressed store, hash-verified

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

Callers 1

group_recordMethod · 0.95

Calls 1

putMessageMethod · 0.45

Tested by

no test coverage detected