|
@ -313,7 +313,7 @@ public class MedOrderService {
|
|
|
settleTmp.put("needCharge",true);//是否需要医保结算
|
|
|
settleTmp.put("needHisCharge",true);//是否需要医保结算
|
|
|
settleTmp.put("medicalState",ylzMedicalRelationDO.getMedicalState());//结算方式
|
|
|
settleTmp.put("RECIPE_NO",null==ylzMedicalRelationDO.getLogNo()?"":ylzMedicalRelationDO.getLogNo());//用挂号号关联,非处方号
|
|
|
settleTmp.put("RECIPE_NO",null==ylzMedicalRelationDO.getLogNo()?"":ylzMedicalRelationDO.getLogNo());//用挂号号关联,非处方号 前端交互字段
|
|
|
if (1==ylzMedicalRelationDO.getMedicalState()&&0.0==Double.valueOf(ylzMedicalRelationDO.getTotalAmount())){
|
|
|
//费用为0的医保结算也需要当作自费处理
|
|
|
settleTmp.put("medicalState",0);//结算方式
|
|
@ -427,7 +427,7 @@ public class MedOrderService {
|
|
|
}
|
|
|
inputDetail.put("mdtrt_cert_type",mdtrt_cert_type);
|
|
|
|
|
|
inputDetail.put("ipt_otp_no",ylzMedicalRelationDO.getLogNo());
|
|
|
inputDetail.put("ipt_otp_no",ylzMedicalRelationDO.getLogNo().split("_")[0]);
|
|
|
inputDetail.put("atddr_no",ylzMedicalRelationDO.getAtddrNo());
|
|
|
inputDetail.put("dr_name",ylzMedicalRelationDO.getDrName());
|
|
|
inputDetail.put("dept_code",ylzMedicalRelationDO.getDeptCode());
|
|
@ -575,7 +575,7 @@ public class MedOrderService {
|
|
|
for (String key : chrgBchnoKey.keySet()) {
|
|
|
resultTmp = new JSONObject();
|
|
|
resultTmp.put("needCharge",true);
|
|
|
resultTmp.put("recipe_no",recipe_no);
|
|
|
resultTmp.put("recipe_no",recipe_no);//前端交互字段
|
|
|
List<YlzMedicalMxDO> ylzMedicalMxDOSTmp = chrgBchnoKey.get(key);
|
|
|
JSONObject strinObj = JSONObject.parseObject(deviceParam.get("yb_strin").toString());
|
|
|
JSONObject netData = new JSONObject();
|
|
@ -908,6 +908,17 @@ public class MedOrderService {
|
|
|
if (StringUtils.isBlank(prescription_code)){
|
|
|
prescription_code = RECIPE_NO;
|
|
|
}
|
|
|
|
|
|
|
|
|
/****************************************************
|
|
|
* 门诊号与处方号拼接
|
|
|
* 避免患者在自助机先把门诊结算后 又开了一单药品。同样的门诊号导致无法结算
|
|
|
* 后续与医保和his的交互需要还原成原始门诊号
|
|
|
* ****************************************************/
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(prescription_code)){
|
|
|
VISIT_NO = VISIT_NO+"_"+prescription_code;
|
|
|
}
|
|
|
|
|
|
ylzMedicalRelationDO = ylzMedicailRelationDao.findByLog_no(VISIT_NO);
|
|
|
//新的记录
|
|
|
if (null==ylzMedicalRelationDO){
|