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 map) { HisService hisService = serviceFactory.getService(hospName); return hisService.jianDang(map); } /** * 验证身份证是否建过档 */ @PostMapping("/{hospName}/isCreat") public String getBingRenXxByShengFenZheng (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getBingRenXxByShengFenZheng(map); } /** * 病人基本信息变更 */ @PostMapping("/{hospName}/update") public String saveBingRenXx (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.saveBingRenXx(map); } /** * 待收费费用查询 */ @PostMapping("/{hospName}/getPendingPaymentList") public String getListDaiShouFei (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getListDaiShouFei(map); } /** * 生成待收费/待退费 费用 */ @PostMapping("/{hospName}/creatCostInfo") public String createMenZhenFy (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.createMenZhenFy(map); } /** * 门诊未收费费用撤销 */ @PostMapping("/{hospName}/revokeCost") public String cheXiaoMzFy (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.cheXiaoMzFy(map); } /** * 科室信息查询 */ @PostMapping("/{hospName}/getKeShiList") public String getKeShi (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getKeShi(map); } /** * 医生信息查询 */ @PostMapping("/{hospName}/getYiShengList") public String getListYiShengZd (@PathVariable("hospName") String hospName,@RequestBody Map 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 map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getShouFeiXm(map); } /** *科室信息推送 */ @PostMapping("/{hospName}/getKeShiByConditionsList") public String getKeShiByConditions (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getKeShiByConditions(map); } /** * 取样本字典 */ @PostMapping("/{hospName}/getYangBen") public String getYangBen (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getYangBen(map); } /** * 病区信息推送 */ @PostMapping("/{hospName}/getBingQuList") public String getListBingQuZd (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getListBingQuZd(map); } /** * 职⼯信息 */ @PostMapping("/{hospName}/getZhiGongList") public String getZhiGongPage (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getZhiGongPage(map); } /** * 检查项目 */ @PostMapping("/{hospName}/getJcxm") public String getJianChaXm (@PathVariable("hospName") String hospName,@RequestBody Map map) { HisService hisService = serviceFactory.getService(hospName); return hisService.getJianChaXm(map); } /** * 检验项⽬推送 */ @PostMapping("/{hospName}/getJyxm") public String getJianYanXm(@PathVariable("hospName") String hospName,@RequestBody Map map){ HisService hisService = serviceFactory.getService(hospName); return hisService.getJianYanXm(map); } /** * 检验项⽬收费推送 */ @PostMapping("/{hospName}/getShouFeiXmjg") public String getShouFeiXmJg(@PathVariable("hospName") String hospName,@RequestBody Map map){ HisService hisService = serviceFactory.getService(hospName); return hisService.getShouFeiXmJg(map); } /** * 检验容器 */ @PostMapping("/{hospName}/getJyrqList") public String getRongQi(@PathVariable("hospName") String hospName,@RequestBody Map map){ HisService hisService = serviceFactory.getService(hospName); return hisService.getRongQi(map); } /** * 检验样本 */ @PostMapping("/{hospName}/getJyybList") public String getJyYangBen(@PathVariable("hospName") String hospName,@RequestBody Map 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 map) { HisService hisService = serviceFactory.getService(hospName); return hisService.pushZhiFuMsg(hospName,map); } }