路泰机电科技体检——数据平台后端
zhaowenxuan
2024-12-18 238acb74ab1891c8835d2d04e0af0de1d91853f3
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
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.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * his接口请求
 * @Company: 西安路泰科技有限公司
 * @Author: zhaowenxuan
 * @Date: 2024/12/17 17:16
 */
@RestController
@RequestMapping("/api/his")
public class HisController {
 
    private final ServiceFactory serviceFactory;
    private final HisService hisService;
 
    @Autowired
    public HisController(ServiceFactory serviceFactory) {
        this.serviceFactory = serviceFactory;
        hisService= serviceFactory.getService();
    }
 
 
    /**
     * 建档
     * @param customer
     * @return
     */
    @PostMapping("creat")
    public String jianDang (TjCustomer customer) {
        return hisService.jianDang(customer);
    }
 
    /**
     * 验证身份证是否建过档
     * @param customer
     * @return
     */
    @PostMapping("isCreat")
    public String getBingRenXxByShengFenZheng (TjCustomer customer) {
        return hisService.getBingRenXxByShengFenZheng(customer);
    }
 
    /**
     * 病人基本信息变更
     * @param customer
     * @return
     */
    @PostMapping("update")
    public String saveBingRenXx (TjCustomer customer) {
        return hisService.saveBingRenXx(customer);
    }
 
    /**
     * 待收费费用查询
     * @param bingRenId
     * @param jiuZhenKh
     * @param yuanQuId
     * @return
     */
    @PostMapping("getPendingPaymentList")
    public String getListDaiShouFei (String bingRenId,String jiuZhenKh,String yuanQuId) {
        return hisService.getListDaiShouFei(bingRenId,jiuZhenKh,yuanQuId);
    }
 
 
    /**
     * 生成待收费/待退费 费用
     * @param dto
     * @return
     */
    @PostMapping("creatCostInfo")
    public String createMenZhenFy (CreateMenZhenFyDto dto) {
        return hisService.createMenZhenFy(dto);
    }
 
 
    /**
     * 门诊未收费费用撤销
     * @param dto
     * @return
     */
    @PostMapping("revokeCost")
    public String cheXiaoMzFy (CheXiaoMzFyDto dto) {
        return hisService.cheXiaoMzFy(dto);
    }
 
 
    /**
     * 收费/退费完成通知第三方
     * @param feiYongId
     * @param yeWuLx
     * @return
     */
    @PostMapping("pushPayMsg")
    public String pushZhiFuMsg (String feiYongId,int yeWuLx ) {
        return hisService.pushZhiFuMsg(feiYongId,yeWuLx);
    }
 
 
    /**
     * 科室信息查询
     * @param yuanQuId
     * @param keShiMc
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getKeShiList")
    public String getKeShi (String yuanQuId,String keShiMc,int pageIndex,int pageSize ) {
        return hisService.getKeShi(yuanQuId,keShiMc,pageIndex,pageSize);
    }
 
    /**
     * 医生信息查询
     * @param yuanQuId
     * @param keShiMc
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getYiShengList")
    public String getListYiShengZd (String yuanQuId,String keShiMc,int pageIndex,int pageSize ) {
        return hisService.getListYiShengZd(yuanQuId,keShiMc,pageIndex,pageSize);
    }
 
 
    /**
     * 获取收费项目分页
     * @param queryString
     * @param bianGengSj
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getShouFeiXmList")
    public String getShouFeiXm (String queryString,String bianGengSj,int pageIndex,int pageSize ) {
        return hisService.getShouFeiXm(queryString,bianGengSj,pageIndex,pageSize);
    }
 
 
 
    /**
     *科室信息推送
     * @param xingZhiSx 组织属性 第一位1 表示 挂号
     * 第二位 1表示临床
     * 第三位 1表示检查
     * 第四位 1 表示手术
     * 第五位 1 表示治疗
     * 第六位 1 表示护理
     * @param queryString 模糊匹配输⼊码1、科室名称
     * @param zuoFeiBz 作废标志:0 正常;1 作废
     * @param yuanQuId 院区id
     * @param keShiIds 科室ID集合
     * @param ifPlus 是否查询plus属性
     * @return
     */
    @PostMapping("getKeShiByConditionsList")
    public String getKeShiByConditions (int xingZhiSx, String queryString, int zuoFeiBz, String yuanQuId, List<String> keShiIds, int ifPlus) {
        return hisService.getKeShiByConditions(xingZhiSx, queryString, zuoFeiBz, yuanQuId, keShiIds,ifPlus);
    }
 
 
 
    /**
     * 取样本字典
     * @param queryString 样本类型名称(样本名称/样本类型id)
     * @param pageIndex
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getYangBen")
    public String getYangBen (String queryString,int pageIndex,int pageSize ) {
        return hisService.getYangBen(queryString,pageIndex,pageSize);
    }
 
 
    /**
     *  病区信息推送
     * @param yuanQuId 院区Id
     * @param keShiId 科室Id
     * @param pageIndex 当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getBingQuList")
    public String getListBingQuZd (String yuanQuId,String keShiId,int pageIndex,int pageSize ) {
        return hisService.getListBingQuZd(yuanQuId,keShiId,pageIndex,pageSize);
    }
 
    /**
     * 职⼯信息
     * @param bianGengSj 变更时间
     * @param pageIndex 当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getZhiGongList")
    public String getZhiGongPage (String bianGengSj,int pageIndex,int pageSize ) {
        return hisService.getZhiGongPage(bianGengSj,pageIndex,pageSize);
    }
 
 
    /**
     * 检查项目
     * @param queryString
     * @param bianGengSj
     * @param pageIndex
     * @param pageSize
     * @return
     */
    @PostMapping("getJcxm")
    public String getJianChaXm (String queryString,String bianGengSj,int pageIndex,int pageSize ) {
        return hisService.getJianChaXm(queryString,bianGengSj,pageIndex,pageSize);
    }
 
    /**
     * 检验项⽬推送
     * @param queryCode 查询码(项⽬编码/拼⾳码
     * @param page 当前⻚
     * @param size 每⻚条数(最⼤不能超过100
     * @return
     */
    @PostMapping("getJyxm")
    public String getJianYanXm(String queryCode,Integer page,Integer size){
        return hisService.getJianYanXm(queryCode,page,size);
    }
 
    /**
     * 检验项⽬收费推送
     * @param shouFeiXmId 收费项⽬id
     * @param jiaGeTx 价格体系
     * @return
     */
    @PostMapping("getShouFeiXmjg")
    public String getShouFeiXmJg(String shouFeiXmId,String jiaGeTx){
        return hisService.getShouFeiXmJg(shouFeiXmId,jiaGeTx);
    }
 
    /**
     * 检验容器
     * @param queryString 容器名称(容器名称/输⼊码1)
     * @param pageIndex 当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getJyrqList")
    public String getRongQi(String queryString,Integer pageIndex,Integer pageSize){
        return hisService.getRongQi(queryString,pageIndex,pageSize);
    }
 
    /**
     *  检验样本
     * @param queryString 样本类型名称(样本名称/样本类型id)
     * @param pageIndex  当前⻚
     * @param pageSize 每⻚条数(最⼤不能超过100)
     * @return
     */
    @PostMapping("getJyybList")
    public String getYangBen(String queryString,Integer pageIndex,Integer pageSize){
        return hisService.getJyYangBen(queryString,pageIndex,pageSize);
    }
}