路泰机电科技体检——数据平台后端
zhaowenxuan
2025-04-15 c4ea4cf098ec9fb74aa82530970c9c2e98aec6b8
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
package com.example.controller;
 
import com.example.domain.TjCustomer;
import com.example.dto.xian.meiji.CheXiaoMzFyDto;
import com.example.dto.xian.meiji.CreateMenZhenFyDto;
import com.example.factory.ServiceFactory;
import com.example.service.HisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
import java.util.Map;
 
/**
 * his接口请求
 * @Company: 西安路泰科技有限公司
 * @Author: zhaowenxuan
 * @Date: 2024/12/17 17:16
 */
@RestController
@RequestMapping("/api/his")
public class HisController {
 
//    检验检查修改的更新好了,
//    入参需要加一个参数:  needShouFeiXm=1时, 返回shouFeiXmList;
//    里面有danJia/shuLiang/shouFeiXmId;
 
    private final ServiceFactory serviceFactory;
 
    @Autowired
    public HisController(ServiceFactory serviceFactory) {
        this.serviceFactory = serviceFactory;
    }
 
    @GetMapping("/{hospName}/test")
    public String test(@PathVariable("hospName") String hospName){
        HisService hisService = serviceFactory.getService(hospName);
        hisService.syncDict(hospName);
        return "test";
    }
 
    /**
     * 建档
     */
    @PostMapping("/{hospName}/creat")
    public String jianDang (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.jianDang(map);
    }
 
    /**
     * 验证身份证是否建过档
     */
    @PostMapping("/{hospName}/isCreat")
    public String getBingRenXxByShengFenZheng (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getBingRenXxByShengFenZheng(map);
    }
 
    /**
     * 病人基本信息变更
     */
    @PostMapping("/{hospName}/update")
    public String saveBingRenXx (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.saveBingRenXx(map);
    }
 
    /**
     * 待收费费用查询
     */
    @PostMapping("/{hospName}/getPendingPaymentList")
    public String getListDaiShouFei (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getListDaiShouFei(map);
    }
 
    /**
     * 生成待收费/待退费 费用
     */
    @PostMapping("/{hospName}/creatCostInfo")
    public String createMenZhenFy (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.createMenZhenFy(map);
    }
 
    /**
     * 门诊未收费费用撤销
     */
    @PostMapping("/{hospName}/revokeCost")
    public String cheXiaoMzFy (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.cheXiaoMzFy(map);
    }
 
    /**
     * 科室信息查询
     */
    @PostMapping("/{hospName}/getKeShiList")
    public String getKeShi (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getKeShi(map);
    }
 
    /**
     * 医生信息查询
     */
    @PostMapping("/{hospName}/getYiShengList")
    public String getListYiShengZd (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
//        人员这个接口getListYishengZd,
//                增加入参 zhiGongKs
//        boolean类型,传true返回职工科室list
//        返回值里的 zhiGongKsBqList,  就是职工科室list
        return hisService.getListYiShengZd(map);
    }
 
    /**
     * 获取收费项目分页
     */
    @PostMapping("/{hospName}/getShouFeiXmList")
    public String getShouFeiXm (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getShouFeiXm(map);
    }
 
    /**
     *科室信息推送
     */
    @PostMapping("/{hospName}/getKeShiByConditionsList")
    public String getKeShiByConditions (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getKeShiByConditions(map);
    }
 
    /**
     * 取样本字典
     */
    @PostMapping("/{hospName}/getYangBen")
    public String getYangBen (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getYangBen(map);
    }
 
    /**
     *  病区信息推送
     */
    @PostMapping("/{hospName}/getBingQuList")
    public String getListBingQuZd (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getListBingQuZd(map);
    }
 
    /**
     * 职⼯信息
     */
    @PostMapping("/{hospName}/getZhiGongList")
    public String getZhiGongPage (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getZhiGongPage(map);
    }
 
    /**
     * 检查项目
     */
    @PostMapping("/{hospName}/getJcxm")
    public String getJianChaXm (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getJianChaXm(map);
    }
 
    /**
     * 检验项⽬推送
     */
    @PostMapping("/{hospName}/getJyxm")
    public String getJianYanXm(@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map){
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getJianYanXm(map);
    }
 
    /**
     * 检验项⽬收费推送
     */
    @PostMapping("/{hospName}/getShouFeiXmjg")
    public String getShouFeiXmJg(@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map){
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getShouFeiXmJg(map);
    }
 
    /**
     * 检验容器
     */
    @PostMapping("/{hospName}/getJyrqList")
    public String getRongQi(@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map){
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getRongQi(map);
    }
 
    /**
     *  检验样本
     */
    @PostMapping("/{hospName}/getJyybList")
    public String getJyYangBen(@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map){
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getJyYangBen(map);
    }
 
    /**
     * 收退费回调接口
     * @param hospName 动态园区名 我方提供
     * @param map 参数
     * @return
     */
    @PostMapping("/{hospName}/pushZhiFuMsg")
    public String getPushZhiFuMsg (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.pushZhiFuMsg(hospName,map);
    }
}