zhaowenxuan
2024-08-12 81f642b4c834a739553a5c89da9f9b8fd3063acf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
package com.ltkj.web.controller.his;
 
 
import com.ltkj.common.core.controller.BaseController;
import com.ltkj.common.core.domain.AjaxResult;
import com.ltkj.common.core.page.TableDataInfo;
import com.ltkj.common.utils.http.HttpUtils;
import com.ltkj.hosp.domain.DictSsdm;
import com.ltkj.hosp.domain.TjCustomer;
import com.ltkj.hosp.hisDto.*;
import com.ltkj.hosp.service.ITjCustomerService;
import com.ltkj.web.wxUtils.HttpClientUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
 
@Api(tags = "AAAAA-----HISAPI相关接口文档")
@RestController
@RequestMapping("/api/His")
public class HisApiController extends BaseController {
//    @Autowired
//    private ITjCustomerService tjCustomerService;
//
//    @Autowired
//    private HisApiGetMethodService service;
//
//    private static final String HIS_URL = "https://mock.mengxuegu.com/mock/664d3dbce45d2156fa209c80/example/api/His/HisRequest";
//
//
//    @GetMapping("/his")
//    public AjaxResult Outpinconapply() {
//        Map<String, Object> maps = new HashMap<>();
//        maps.put("his_registration_id","20240704000218");
//        maps.put("ksbm", "体检中心");
//        maps.put("pagecount", 100);
//        maps.put("page", 1);
//       service.getHISDataNew("", maps);
//        return AjaxResult.success();
//    }
 
 
//    @PostMapping("/Outpincreateapply")
//    @ApiOperation(value = "新增/修改门诊注册信息")
//    public AjaxResult Outpincreateapply(@RequestBody TjCustomer customer) {
//        Map<String, Object> map = new HashMap<>();
//        if (null != customer.getCusId()) {
//            map.put("pationid", customer.getCusId());
//        } else {
//            map.put("pationid", null);
//        }
//        map.put("brxm", customer.getCusName());
//        map.put("brxb", customer.getCusSex());
//        map.put("csrq", customer.getCusBrithday());
//        map.put("brnl", customer.getAge());
//        map.put("brnldw", customer.getAgeUnit());
//        map.put("addr", customer.getAddr());
//        map.put("gzdw", null);
//        map.put("dwdz", null);
//        map.put("lxr", customer.getCusName());
//        map.put("lxrdh", customer.getCusPhone());
//        map.put("lxrgx", "本人");
//        map.put("sfzh", customer.getCusIdcard());
//        map.put("jhrxm", null);
//        map.put("jhrsfzh", null);
//        map.put("mz", customer.getCusNational());
//        map.put("zy", customer.getCareer());
//        map.put("fbbm", null);
//        map.put("czy", customer.getCreateBy());
//        map.put("jkkkh", customer.getIndexCard());
//        map.put("mindex_id", customer.getIndexCard());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpinconapply")
//    @ApiOperation(value = "门诊医生接诊")
//    public AjaxResult Outpinconapply(@RequestParam @ApiParam(value = "就诊号") String jzh,
//                                     @ApiParam(value = "接诊日期") @RequestParam Date jzrq,
//                                     @ApiParam(value = "接诊医师") @RequestParam String jzysbm) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("jzh",jzh);
//        map.put("jzrq",jzrq);
//        map.put("jzysbm",jzysbm);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpinunconapply")
//    @ApiOperation(value = "门诊医生取消接诊")
//    public AjaxResult Outpinunconapply(@RequestParam @ApiParam(value = "就诊号") String jzh,
//                                     @ApiParam(value = "接诊日期") @RequestParam Date jzrq,
//                                     @ApiParam(value = "接诊医师") @RequestParam String jzysbm) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("jzh",jzh);
//        map.put("jzrq",jzrq);
//        map.put("jzysbm",jzysbm);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Outpinimpapply")
//    @ApiOperation(value = "新增/修改门诊诊断")
//    public AjaxResult Outpinimpapply(@RequestBody OutpinimpapplyDto dto ) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dto.getHisRegistrationId());
//        map.put("mzzdid",dto.getMzzdid());
//        map.put("sqysbm",dto.getSqysbm());
//        map.put("mzksbm",dto.getMzksbm());
//        map.put("fbrq",dto.getFbrq());
//        map.put("zdrq",dto.getZdrq());
//        map.put("czybm",dto.getCzybm());
//        map.put("czyksbm",dto.getCzyksbm());
//        map.put("zs",dto.getZs());
//        map.put("bs",dto.getBs());
//        map.put("clyz",dto.getClyz());
//        map.put("jws",dto.getJws());
//        map.put("tgjc",dto.getTgjc());
//        map.put("gms",dto.getGms());
//        map.put("jbbm",dto.getJbbm());
//        map.put("jbbm1",dto.getJbbm1());
//        map.put("jbbm2",dto.getJbbm2());
////        map.put("tw",dto.getTw());
////        map.put("mb",dto.getMb());
////        map.put("hx",dto.getHx());
////        map.put("bp",dto.getBp());
//        map.put("fzbz",dto.getFzbz());
//        map.put("hzqx",dto.getHzqx());
//        map.put("sfqc",dto.getSfqc());
//        map.put("qchs",dto.getQchs());
//        map.put("sfqj",dto.getSfqj());
//        map.put("jzqk",dto.getJzqk());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpinmesapply")
//    @ApiOperation(value = "门诊预交收费")
//    public AjaxResult Outpinmesapply(@RequestParam @ApiParam(value = "门诊患者 ID") String pationid,
//                                       @ApiParam(value = "操作员") @RequestParam String czybm,
//                                       @ApiParam(value = "支付类型编码") @RequestParam String zflxbm,
//                                       @ApiParam(value = "预交金额") @RequestParam int yjje) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("pationid",pationid);
//        map.put("czybm",czybm);
//        map.put("zflxbm",zflxbm);
//        map.put("yjje",yjje);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpinregapply")
//    @ApiOperation(value = "新增/修改门诊挂号申请")
//    public AjaxResult Outpinregapply(@RequestBody OutpinregapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("pationid",dao.getPationid());
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("sqysbm",dao.getSqysbm());
//        map.put("mzksbm",dao.getMzksbm());
//        map.put("czybm",dao.getCzybm());
//        map.put("sfjz",dao.getSfjz());
//        map.put("ghzlbm",dao.getGhzlbm());
//        map.put("ywckbm",dao.getYwckbm());
//        map.put("sflstd",dao.getSflstd());
//        map.put("ghrq",dao.getGhrq());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Outpintestapply")
//    @ApiOperation(value = "门诊检验申请")
//    public AjaxResult Outpintestapply(@RequestBody OutpintestapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("sfzh",dao.getHisRegistrationId());
//        map.put("sqysbm",dao.getSqysbm());
//        map.put("mzksbm",dao.getMzksbm());
//        map.put("sjrq",dao.getSjrq());
//        map.put("czybm",dao.getCzybm());
//        map.put("czyksbm",dao.getCzyksbm());
//        map.put("sfjz",dao.getSfjz());
//        map.put("details",dao.getDetails());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpindeltestapply")
//    @ApiOperation(value = "作废门诊检验申请")
//    public AjaxResult Outpindeltestapply(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                     @ApiParam(value = "操作员") @RequestParam String czybm,
//                                     @ApiParam(value = "申请单号") @RequestParam String sqdh) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("czybm",czybm);
//        map.put("zflxbm",sqdh);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpinexamapply")
//    @ApiOperation(value = "门诊检查申请")
//    public AjaxResult Outpinexamapply(@RequestBody OutpinexamapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("sfzh",dao.getHisRegistrationId());
//        map.put("sqysbm",dao.getSqysbm());
//        map.put("mzksbm",dao.getMzksbm());
//        map.put("sjrq",dao.getSjrq());
//        map.put("czybm",dao.getCzybm());
//        map.put("czyksbm",dao.getCzyksbm());
//        map.put("lczz",dao.getLczz());
//        map.put("lczd",dao.getLczd());
//        map.put("jcms",dao.getJcms());
//        map.put("jcbw",dao.getJcbw());
//        map.put("sfjz",dao.getSfjz());
//        map.put("details",dao.getDetails());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpindelexamapply")
//    @ApiOperation(value = "作废门诊检查申请")
//    public AjaxResult Outpindelexamapply(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                         @ApiParam(value = "操作员") @RequestParam String czybm,
//                                         @ApiParam(value = "申请单号") @RequestParam String sqdh) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("czybm",czybm);
//        map.put("zflxbm",sqdh);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpinmedapply")
//    @ApiOperation(value = "门诊医疗医嘱申请")
//    public AjaxResult Outpinmedapply(@RequestBody OutpinmedapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("sfzh",dao.getHisRegistrationId());
//        map.put("sqysbm",dao.getSqysbm());
//        map.put("mzksbm",dao.getMzksbm());
//        map.put("sjrq",dao.getSjrq());
//        map.put("czybm",dao.getCzybm());
//        map.put("czyksbm",dao.getCzyksbm());
//        map.put("bqsm",dao.getBqsm());
//        map.put("sfjz",dao.getSfjz());
//        map.put("details",dao.getDetails());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpindelmedapply")
//    @ApiOperation(value = "作废门诊医疗医嘱申请")
//    public AjaxResult Outpindelmedapply(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                         @ApiParam(value = "操作员") @RequestParam String czybm,
//                                         @ApiParam(value = "申请单号") @RequestParam String sqdh) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("czybm",czybm);
//        map.put("zflxbm",sqdh);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpintreatapply")
//    @ApiOperation(value = "门诊治疗处置申请")
//    public AjaxResult Outpintreatapply(@RequestBody OutpintreatapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("sfzh",dao.getHisRegistrationId());
//        map.put("sqysbm",dao.getSqysbm());
//        map.put("mzksbm",dao.getMzksbm());
//        map.put("sjrq",dao.getSjrq());
//        map.put("czybm",dao.getCzybm());
//        map.put("czyksbm",dao.getCzyksbm());
//        map.put("bqsm",dao.getBqsm());
//        map.put("sfjz",dao.getSfjz());
//        map.put("zlbz",dao.getZlbz());
//        map.put("details",dao.getDetails());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Outpintdelreatapply")
//    @ApiOperation(value = "作废门诊治疗处置申请")
//    public AjaxResult Outpintdelreatapply(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                        @ApiParam(value = "操作员") @RequestParam String czybm,
//                                        @ApiParam(value = "申请单号") @RequestParam String sqdh) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("czybm",czybm);
//        map.put("zflxbm",sqdh);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Outpinmedicapply")
//    @ApiOperation(value = "门诊药品申请")
//    public AjaxResult Outpinmedicapply(@RequestBody OutpinmedicapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("sfzh",dao.getHisRegistrationId());
//        map.put("sqysbm",dao.getSqysbm());
//        map.put("mzksbm",dao.getMzksbm());
//        map.put("sjrq",dao.getSjrq());
//        map.put("czybm",dao.getCzybm());
//        map.put("czyksbm",dao.getCzyksbm());
//        map.put("cflxbm",dao.getCflxbm());
//        map.put("yfbm",dao.getYfbm());
//        map.put("fyts",dao.getFyts());
//        map.put("mzzd",dao.getMzzd());
//        map.put("details",dao.getDetails());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Outpindelmedicapply")
//    @ApiOperation(value = "作废门诊药品申请")
//    public AjaxResult Outpindelmedicapply(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                          @ApiParam(value = "操作员") @RequestParam String czybm,
//                                          @ApiParam(value = "申请单号") @RequestParam String sqdh) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("czybm",czybm);
//        map.put("zflxbm",sqdh);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getexamapplyinfo")
//    @ApiOperation(value = "获取检查申请信息")
//    public AjaxResult Getexamapplyinfo(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                          @ApiParam(value = "科室编码") @RequestParam String ksbm,
//                                          @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                          @ApiParam(value = "开始日期") @RequestParam Date ksrq) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("ksbm",ksbm);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getexamreportinfo")
//    @ApiOperation(value = "获取检查报告信息")
//    public AjaxResult Getexamreportinfo(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                       @ApiParam(value = "科室名称") @RequestParam String ksmc,
//                                       @ApiParam(value = "患者 ID") @RequestParam String pationid,
//                                       @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                       @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                       @ApiParam(value = "页大小,最小 10 行") @RequestParam(defaultValue = "10") Integer pagecount,
//                                       @ApiParam(value = "页数,最小 1 页") @RequestParam(defaultValue = "1") Integer page,
//                                       @ApiParam(value = "状态:已登记 ,已诊断,已作废") @RequestParam String status,
//                                       @ApiParam(value = "卡类型 5 就诊流水号 9 电子健康卡 流水号 默认 5") @RequestParam String cardtype) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("ksmc",ksmc);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("pationid",pationid);
//        map.put("pagecount",pagecount);
//        map.put("page",page);
//        map.put("status",status);
//        map.put("cardtype",cardtype);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Examreportrecordinfo")
//    @ApiOperation(value = "新增/修改检查报告记录")
//    public AjaxResult Examreportrecordinfo(@RequestBody ExamreportrecordinfoDto dto) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dto.getHisRegistrationId());
//        map.put("jcbgid",dto.getJcbgid());
//        map.put("sfjz",dto.getSfjz());
//        map.put("pationid",dto.getPationid());
//        map.put("mzzybz",dto.getMzzybz());
//        map.put("brxm",dto.getBrxm());
//        map.put("brxb",dto.getBrxb());
//        map.put("brnl",dto.getBrnl());
//        map.put("brnldw",dto.getBrnldw());
//        map.put("lxrdh",dto.getLxrdh());
//        map.put("hzksbm",dto.getHzksbm());
//        map.put("sqdh",dto.getSqdh());
//        map.put("sqjgdm",dto.getSqjgdm());
//        map.put("sqsj",dto.getSqsj());
//        map.put("sqrbm",dto.getSqrbm());
//        map.put("sqrxm",dto.getSqrxm());
//        map.put("hzzs",dto.getHzzs());
//        map.put("hzbs",dto.getHzbs());
//        map.put("xyzdbm",dto.getXyzdbm());
//        map.put("xyzdmc",dto.getXyzdmc());
//        map.put("zdrq",dto.getZdrq());
//        map.put("fbrq",dto.getFbrq());
//        map.put("tsjcbz",dto.getTsjcbz());
//        map.put("jcxmdm",dto.getJcxmdm());
//        map.put("jcxmmc",dto.getJcxmmc());
//        map.put("jcjgdm",dto.getJcjgdm());
//        map.put("jcjsbh",dto.getJcjsbh());
//        map.put("jcjsxm",dto.getJcjsxm());
//        map.put("jcrq",dto.getJcrq());
//        map.put("jcbgdbh",dto.getJcbgdbh());
//        map.put("jcff",dto.getJcff());
//        map.put("jcksbh",dto.getJcksbh());
//        map.put("jcksmc",dto.getJcksmc());
//        map.put("yqbm",dto.getYqbm());
//        map.put("jcbgbz",dto.getJcbgbz());
//        map.put("jcbwdm",dto.getJcbwdm());
//        map.put("bgksbh",dto.getBgksbh());
//        map.put("bgksmc",dto.getBgksmc());
//        map.put("bgrq",dto.getBgrq());
//        map.put("bgysbh",dto.getBgysbh());
//        map.put("bgysxm",dto.getBgysxm());
//        map.put("shysbh",dto.getShysbh());
//        map.put("shysxm",dto.getShysxm());
//        map.put("jch",dto.getJch());
//        map.put("yxh",dto.getYxh());
//        map.put("kdsj",dto.getKdsj());
//        map.put("jclx",dto.getJclx());
//        map.put("yyh",dto.getYyh());
//        map.put("yxbx",dto.getYxbx());
//        map.put("yxzd",dto.getYxzd());
//        map.put("sfyyx",dto.getSfyyx());
//        map.put("yxzl",dto.getYxzl());
//        map.put("yxs",dto.getYxs());
//        map.put("jlysbh",dto.getJlysbh());
//        map.put("jlrq",dto.getJlrq());
//        map.put("bgzt",dto.getBgzt());
//        map.put("lczdfh",dto.getLczdfh());
//        map.put("wjz",dto.getWjz());
//        map.put("wjzzdmc",dto.getWjzzdmc());
//        map.put("wjzjcysyj",dto.getWjzjcysyj());
//        map.put("wjzjcysbh",dto.getWjzjcysbh());
//        map.put("wjzjcysxyj",dto.getWjzjcysyj());
//        map.put("wjzqrrq",dto.getWjzqrrq());
//        map.put("wjzjsrbh",dto.getWjzjsrbh());
//        map.put("wjzjsrxm",dto.getWjzjsrxm());
//        map.put("wjzjsrq",dto.getWjzjsrq());
//        map.put("wjzclysbh",dto.getWjzclysbh());
//        map.put("wjzclysxm",dto.getWjzclysxm());
//        map.put("wjzclyj",dto.getWjzclyj());
//        map.put("wjzclrq",dto.getWjzclrq());
//        map.put("sfkf",dto.getSfkf());
//        map.put("yzid",dto.getYzid());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Getexamurgentinfo")
//    @ApiOperation(value = "获取检查危急值信息")
//    public AjaxResult Getexamurgentinfo(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                        @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                        @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                        @ApiParam(value = "页大小,最小 10 行") @RequestParam(defaultValue = "10") Integer pagecount,
//                                        @ApiParam(value = "页数,最小 1 页") @RequestParam(defaultValue = "1") Integer page) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("pagecount",pagecount);
//        map.put("page",page);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getexamimageinfo")
//    @ApiOperation(value = "获取检查影像信息")
//    public AjaxResult Getexamimageinfo(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                        @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                        @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                        @ApiParam(value = "页大小,最小 10 行") @RequestParam(defaultValue = "10") Integer pagecount,
//                                        @ApiParam(value = "页数,最小 1 页") @RequestParam(defaultValue = "1") Integer page) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("pagecount",pagecount);
//        map.put("page",page);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getlabapplyinfo")
//    @ApiOperation(value = "获取检验申请信息")
//    public AjaxResult Getlabapplyinfo(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                       @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                       @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                       @ApiParam(value = "卡类型, 1 电子健康卡 2 身份证 3" +
//                                               "诊疗卡 4 患者 ID 5 就诊流水号 默认" +
//                                               "4 患者 ID") @RequestParam String cardtype,
//                                       @ApiParam(value = "业务类型:门诊、住院、体检、其他") @RequestParam String mzorzy,
//                                       @ApiParam(value = "申请科室") @RequestParam String ksbm) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("cardtype",cardtype);
//        map.put("mzorzy",mzorzy);
//        map.put("ksbm",ksbm);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getlabreportinfo")
//    @ApiOperation(value = "获取检验报告记录信息")
//    public AjaxResult Getlabreportinfo(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                       @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                       @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                       @ApiParam(value = "申请科室") @RequestParam String ksbm,
//                                       @ApiParam(value = "申请科室") @RequestParam String pationid,
//                                       @ApiParam(value = "页大小,最小 10 行") @RequestParam(defaultValue = "10") Integer pagecount,
//                                       @ApiParam(value = "页数,最小 1 页") @RequestParam(defaultValue = "1") Integer page) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("ksbm",ksbm);
//        map.put("pationid",pationid);
//        map.put("pagecount",pagecount);
//        map.put("page",page);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//
//    @PostMapping("/Getlabgermrepinfo")
//    @ApiOperation(value = "获取微生物报告记录信息")
//    public AjaxResult Getlabgermrepinfo(@RequestParam @ApiParam(value = "检验报告 ID") String jybgid) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("jybgid",jybgid);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Getlabgermdetailinfo")
//    @ApiOperation(value = "获取微生物药敏信息")
//    public AjaxResult Getlabgermdetailinfo(@RequestParam @ApiParam(value = "检验报告 ID") String jybgid) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("jybgid",jybgid);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getlaburgentinfo")
//    @ApiOperation(value = "获取危急值信息")
//    public AjaxResult Getlaburgentinfo(@RequestParam @ApiParam(value = "检验报告 ID") String jybgid,
//                                       @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                       @ApiParam(value = "开始日期") @RequestParam Date ksrq) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("jybgid",jybgid);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Labreportapply")
//    @ApiOperation(value = "检验样本拒收记录")
//    public AjaxResult Labreportapply(@RequestParam @ApiParam(value = "条码号") String tmh,
//                                       @ApiParam(value = "接收人员代码,字典代码") @RequestParam String jsrydm,
//                                       @ApiParam(value = "拒收报告日期,yyyy-mm-dd hh:mm:ss") @RequestParam Date jsrq,
//                                       @ApiParam(value = "拒收原因") @RequestParam String jsyy) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("tmh",tmh);
//        map.put("jsrydm",jsrydm);
//        map.put("jsrq",jsrq);
//        map.put("jsyy",jsyy);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getlabreginfoinfo")
//    @ApiOperation(value = "获取检验登记信息")
//    public AjaxResult Getlabreginfoinfo(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                        @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                        @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                        @ApiParam(value = "状态: 已申请 已采样 已检测 已审" +
//                                                "核 已作废") @RequestParam String Status,
//                                        @ApiParam(value = "患者 ID") @RequestParam String pationid,
//                                        @ApiParam(value = "页大小,最小 10 行") @RequestParam(defaultValue = "10") Integer pagecount,
//                                        @ApiParam(value = "页数,最小 1 页") @RequestParam(defaultValue = "1") Integer page) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("Status",Status);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("pationid",pationid);
//        map.put("pagecount",pagecount);
//        map.put("page",page);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//    @PostMapping("/Testcostapply")
//    @ApiOperation(value = "体检费用申请")
//    public AjaxResult Testcostapply(@RequestBody TestcostapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("czybm",dao.getCzybm());
//        map.put("czyksbm",dao.getCzyksbm());
//        map.put("brxm",dao.getBrxm());
//        map.put("ywck",dao.getYwck());
//        map.put("sfzh",dao.getSfzh());
//        map.put("jkkkh",dao.getJkkkh());
//        map.put("mindexId",dao.getMindexId());
//        map.put("brxb",dao.getBrxb());
//        map.put("csrq",dao.getCsrq());
//        map.put("brnl",dao.getBrnl());
//        map.put("brnldw",dao.getBrnldw());
//        map.put("addr",dao.getAddr());
//        map.put("lxrdh",dao.getLxrdh());
//        map.put("mz",dao.getMz());
//        map.put("zy",dao.getZy());
//        map.put("details",dao.getDetails());
//        map.put("mxfyxmbm",dao.getMxfyxmbm());
//        map.put("sfzhfy",dao.getSfzhfy());
//        map.put("sl",dao.getSl());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Testregapply")
//    @ApiOperation(value = "新增或修改体检登记信息")
//    public AjaxResult Testregapply(@RequestBody TestregapplyDto dao) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",dao.getHisRegistrationId());
//        map.put("czybm",dao.getCzybm());
//        map.put("czyksbm",dao.getCzyksbm());
//        map.put("tjbh",dao.getTjbh());
//        map.put("grbh",dao.getGrbh());
//        map.put("sfzh",dao.getSfzh());
//        map.put("xm",dao.getXm());
//        map.put("xb",dao.getXb());
//        map.put("nl",dao.getNl());
//        map.put("csrq",dao.getCsrq());
//        map.put("nldw",dao.getNldw());
//        map.put("addr",dao.getAddr());
//        map.put("sj",dao.getSj());
//        map.put("dwbm",dao.getDwbm());
//        map.put("tcbm",dao.getTcbm());
//        map.put("details",dao.getDetails());
//        map.put("je",dao.getJe());
//        map.put("sjje",dao.getSjje());
//        map.put("details_mx",dao.getDetailsMx());
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getoutpatientcostinfo")
//    @ApiOperation(value = "获取门诊患者费用清单信息")
//    public AjaxResult Getoutpatientcostinfo(@RequestParam @ApiParam(value = "卡类型 1 电子健康卡 2 身份证 3 诊" +
//            "疗卡 4 患者 ID 5 就诊流水号 9 电子" +
//            "健康卡流水号") String cardtype,
//                                        @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                        @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                        @ApiParam(value = "检索码" +
//                                                "1 电子健康卡,长度>=64   2 身份证,长度=18(注册身份证或卡号身份证号码)3 诊疗卡,长度=8  4 患者 ID   5 就诊流水号   " +
//                                                "9 健康卡流水号(建档唯一号)长度n" +
//                                                "14") @RequestParam String input,
//                                        @ApiParam(value = "页大小,最小 10 行") @RequestParam(defaultValue = "10") Integer pagecount,
//                                        @ApiParam(value = "页数,最小 1 页") @RequestParam(defaultValue = "1") Integer page) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("cardtype",cardtype);
//        map.put("input",input);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("pagecount",pagecount);
//        map.put("page",page);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getoutaccountrecord")
//    @ApiOperation(value = "获取门诊结算记录")
//    public AjaxResult Getoutaccountrecord(@RequestParam @ApiParam(value = "就诊号 ID") String hisRegistrationId,
//                                          @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                          @ApiParam(value = "开始日期") @RequestParam Date ksrq,
//                                          @ApiParam(value = "页大小,最小 10 行") @RequestParam(defaultValue = "10") Integer pagecount,
//                                          @ApiParam(value = "页数,最小 1 页") @RequestParam(defaultValue = "1") Integer page) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("his_registration_id",hisRegistrationId);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        map.put("pagecount",pagecount);
//        map.put("page",page);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
//
//
//    @PostMapping("/Getpatientalterregrecord")
//    @ApiOperation(value = "获取患者注册信息(含变更记录)")
//    public AjaxResult Getpatientalterregrecord(@RequestParam @ApiParam(value = "就诊号 ID") String mzzybz,
//                                          @ApiParam(value = "结束日期") @RequestParam Date jsrq,
//                                          @ApiParam(value = "开始日期") @RequestParam Date ksrq) {
//        Map<String, Object> map = new HashMap<>();
//        map.put("mzzybz",mzzybz);
//        map.put("jsrq",jsrq);
//        map.put("ksrq",ksrq);
//        String post = HttpClientUtils.sendPost(HIS_URL, map);
//        return AjaxResult.success(post);
//    }
}