|
@@ -26,7 +26,6 @@ import thyyxxk.webserver.entity.medicalinsurance.inpatient.YbZyDisDiag;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.ZyDisDiagYb;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.inpatient.ZyInactpatient;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.log.SiLog;
|
|
|
-import thyyxxk.webserver.entity.medicalinsurance.query.SiPatInfo;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.query.SiSetlFeeDetl;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllistupld.*;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllistupldTemp.*;
|
|
@@ -208,9 +207,6 @@ public class SetlListUpldService {
|
|
|
// 因为我们是三级医院 所以就是三
|
|
|
setlinfoUpld.setHiSetlLv("3");
|
|
|
|
|
|
- // TODO: 2021/12/17 住院医疗类型 不知道
|
|
|
- // setlinfoUpld.setIptMedType("1");
|
|
|
-
|
|
|
String setlId = setlinfoUpld.getSetlId();
|
|
|
List<IteminfoUpld> amtAndOthAmt = dao.amtAndOthAmt(setlId);
|
|
|
if (ListUtil.isBlank(amtAndOthAmt)) {
|
|
@@ -292,8 +288,6 @@ public class SetlListUpldService {
|
|
|
// if (ListUtil.notBlank(amtAndOthAmt)) {
|
|
|
// amtAndOthAmt.sort(Comparator.comparing(IteminfoUpld::getMedChrgitm));
|
|
|
// }
|
|
|
- // 计算医保的支付方式
|
|
|
- setlinfoUpld.setHiPaymtd(yiBaoZhiFuFangShi(patNo, times, ledgerSn));
|
|
|
// 基金支付信息
|
|
|
upldCollection.setPayinfo(payinfo);
|
|
|
// 门特慢特病诊断信息 目前还没有
|
|
@@ -309,39 +303,6 @@ public class SetlListUpldService {
|
|
|
return ResultVoUtil.success(upldCollection);
|
|
|
}
|
|
|
|
|
|
- public String yiBaoZhiFuFangShi(String patNo, Integer times, Integer ledgerSn) {
|
|
|
- SiPatInfo patInfo = dao.huoQuZhiFuFangShi(patNo, times, ledgerSn);
|
|
|
- String hiPaymtd = "3";
|
|
|
- String insuplcAdmdvs = patInfo.getInsuplcAdmdvs();
|
|
|
- String insutype = patInfo.getInsutype();
|
|
|
- String medType = patInfo.getMedType();
|
|
|
- // 参保地
|
|
|
- List<String> chanBaoDi = new ArrayList<>();
|
|
|
- chanBaoDi.add("430121");
|
|
|
- chanBaoDi.add("430181");
|
|
|
- // 医疗保障类型
|
|
|
- List<String> mdcsType = new ArrayList<>();
|
|
|
- mdcsType.add("340");
|
|
|
- mdcsType.add("350");
|
|
|
- // 险种类型
|
|
|
- List<String> insutypeList = new ArrayList<>();
|
|
|
- insutypeList.add("340");
|
|
|
- insutypeList.add("350");
|
|
|
- if (medType.equals("2101") || medType.equals("22")) {
|
|
|
- if (!insuplcAdmdvs.startsWith("4301") || chanBaoDi.contains(insuplcAdmdvs) || mdcsType.contains(insuplcAdmdvs) || insutypeList.contains(insutype)) {
|
|
|
- hiPaymtd = "1";
|
|
|
- }
|
|
|
- }
|
|
|
- if (medType.equals("2106") || medType.equals("2107") || medType.equals("52")) {
|
|
|
- hiPaymtd = "7";
|
|
|
- }
|
|
|
- if (medType.equals("2102")) {
|
|
|
- hiPaymtd = "2";
|
|
|
- }
|
|
|
- dao.genXingYiBaoZhiFuFangShi(patNo, times, ledgerSn, Integer.parseInt(hiPaymtd));
|
|
|
- return hiPaymtd;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 这里是获取打印结算单的信息,需要重新分装一下
|
|
|
*
|
|
@@ -859,7 +820,6 @@ public class SetlListUpldService {
|
|
|
if (item.getSsrq() == null) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "手术日期不能为空。");
|
|
|
}
|
|
|
- log.info("item:{}", item);
|
|
|
if (StringUtil.isBlank(item.getSsys())) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "手术医生不能为空");
|
|
|
}
|