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);
|
}
|
}
|