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

Method check

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

Source from the content-addressed store, hash-verified

80 return null;
81 }
82 private static DrgGroupStatus check(MedicalRecord record){
83 try{
84 if (record.gender.isEmpty()){
85 checkMessages.putMessage(record.Index,"病人性别为空");
86 return DrgGroupStatus.CHECK_FAILED;
87 }
88 if (record.gender.equals("1")&&record.gender.equals("2")){
89 checkMessages.putMessage(record.Index,String.format("病人性别取值必须为1或2:%s", record.gender));
90 return DrgGroupStatus.CHECK_FAILED;
91 }
92 if (record.zdList.length==0){
93 checkMessages.putMessage(record.Index,"诊断信息为空");
94 return DrgGroupStatus.CHECK_FAILED;
95 }
96 }catch (Exception e) {
97 e.printStackTrace();
98 checkMessages.putMessage(record.Index,"病案信息解析出错");
99 return DrgGroupStatus.CHECK_FAILED;
100 }
101 for (String x:record.zdList){
102 if (ZD_INFO.containsKey(x)){
103 checkMessages.putMessage(record.Index, String.format("%s %s",x,ZD_INFO.get(x)));
104 }else{
105 checkMessages.putMessage(record.Index, String.format("%s 未知名称",x));
106 }
107 }
108 for (String x:record.ssList){
109 if (SS_INFO.containsKey(x)){
110 checkMessages.putMessage(record.Index, String.format("%s %s",x,SS_INFO.get(x)));
111 }else{
112 checkMessages.putMessage(record.Index, String.format("%s 未知名称",x));
113 }
114 }
115 return null;
116 }
117 private static MedicalRecord preprocess(MedicalRecord record) {
118 String cce="";
119 int i=-1;

Callers 1

group_recordMethod · 0.95

Calls 1

putMessageMethod · 0.45

Tested by

no test coverage detected