路泰机电科技体检——数据平台后端
zhaowenxuan
2025-01-02 06f3d4be5f282dea252070a1df496ab4ab5b738a
src/main/java/com/example/controller/HisController.java
@@ -6,10 +6,7 @@
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
@@ -25,163 +22,190 @@
public class HisController {
    private final ServiceFactory serviceFactory;
    private final HisService hisService;
    @Autowired
    public HisController(ServiceFactory serviceFactory) {
        this.serviceFactory = serviceFactory;
        hisService= serviceFactory.getService();
    }
    @GetMapping("/{hospName}/test")
    public String test(@PathVariable("hospName") String hospName){
        HisService hisService = serviceFactory.getService(hospName);
        hisService.syncDict(hospName);
        return "test";
    }
    /**
     * 建档
     */
    @PostMapping("creat")
    public String jianDang (@RequestBody Map<String ,Object> map) {
    @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("isCreat")
    public String getBingRenXxByShengFenZheng (@RequestBody Map<String ,Object> 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("update")
    public String saveBingRenXx (@RequestBody Map<String ,Object> 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("getPendingPaymentList")
    public String getListDaiShouFei (@RequestBody Map<String ,Object> 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("creatCostInfo")
    public String createMenZhenFy (@RequestBody Map<String ,Object> 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("revokeCost")
    public String cheXiaoMzFy (@RequestBody Map<String ,Object> 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("pushPayMsg")
    public String pushZhiFuMsg (@RequestBody Map<String ,Object> map) {
        return hisService.pushZhiFuMsg(map);
    }
    /**
     * 科室信息查询
     */
    @PostMapping("getKeShiList")
    public String getKeShi (@RequestBody Map<String ,Object> 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("getYiShengList")
    public String getListYiShengZd (@RequestBody Map<String ,Object> map) {
    @PostMapping("/{hospName}/getYiShengList")
    public String getListYiShengZd (@PathVariable("hospName") String hospName,@RequestBody Map<String ,Object> map) {
        HisService hisService = serviceFactory.getService(hospName);
        return hisService.getListYiShengZd(map);
    }
    /**
     * 获取收费项目分页
     */
    @PostMapping("getShouFeiXmList")
    public String getShouFeiXm (@RequestBody Map<String ,Object> 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("getKeShiByConditionsList")
    public String getKeShiByConditions (@RequestBody Map<String ,Object> 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("getYangBen")
    public String getYangBen (@RequestBody Map<String ,Object> 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("getBingQuList")
    public String getListBingQuZd (@RequestBody Map<String ,Object> 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("getZhiGongList")
    public String getZhiGongPage (@RequestBody Map<String ,Object> 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("getJcxm")
    public String getJianChaXm (@RequestBody Map<String ,Object> 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("getJyxm")
    public String getJianYanXm(@RequestBody Map<String ,Object> 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("getShouFeiXmjg")
    public String getShouFeiXmJg(@RequestBody Map<String ,Object> 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("getJyrqList")
    public String getRongQi(@RequestBody Map<String ,Object> 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("getJyybList")
    public String getJyYangBen(@RequestBody Map<String ,Object> 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);
    }
}