(String[] args)
| 6 | |
| 7 | public class GroupTest { |
| 8 | public static void main(String[] args) { |
| 9 | GroupProxy grouper=new GroupProxy(); |
| 10 | System.out.println(grouper.group_record("22089232,1,63,23267,,13120001,28,1,\"Z51.100x004,C80.900,C79.811,C78.500x004,C77.900x001\",99.2503,,")); |
| 11 | // args=new String[]{"c:\\yb\\cz\\ba_group_2023.csv","病案号,性别,年龄,新生儿年龄天,新生儿出生体重,科室,住院天数,离院方式,诊断编码,手术操作编码,住院天数,医保DRG分组"}; |
| 12 | // grouper.group_csv(Paths.get(args[0]),Arrays.asList(args[1].split(",",-1))); |
| 13 | System.exit(0); |
| 14 | if (args==null||args.length==0){ |
| 15 | String path=System.getProperty("user.dir"); |
| 16 | if (!new File(path, "input.txt").exists()){ |
| 17 | System.out.println(String.format("文件不存在:%s", new File(path, "input.txt"))); |
| 18 | System.exit(1); |
| 19 | } |
| 20 | new GroupProxy().group_txt(); |
| 21 | }else if (args.length==1){ |
| 22 | GroupResult result=grouper.group_record(args[0]); |
| 23 | System.out.println(result); |
| 24 | }else{ |
| 25 | if (!new File(args[0]).exists()){ |
| 26 | System.out.println(String.format("文件不存在:%s", args[0])); |
| 27 | System.exit(1); |
| 28 | } |
| 29 | grouper.group_csv(Paths.get(args[0]),Arrays.asList(args[1].split(",",-1))); |
| 30 | } |
| 31 | } |
| 32 | } |
nothing calls this directly
no test coverage detected