费用清单不好准确定位,暂不替换

This commit is contained in:
2024-10-17 15:38:14 +08:00
parent e1bd9f3786
commit a2e1f10261

View File

@@ -510,15 +510,16 @@ def photo_review(pk_phhd, name):
discharge_text += ocr_text
for key, value in ie_result.items():
discharge_ie_result[key].append(value)
elif phrec.cRectype == '4':
if not is_cost_updated:
try:
ufile.copy_file(BUCKET, phrec.cfjaddress, "drg2015", phrec.cfjaddress)
ufile.upload_file(phrec.cfjaddress, better_cost_path)
except Exception as e:
logging.error("更新费用清单pdf图片出错", exc_info=e)
finally:
is_cost_updated = True
# 暂不替换费用清单
# elif phrec.cRectype == '4':
# if not is_cost_updated:
# try:
# ufile.copy_file(BUCKET, phrec.cfjaddress, "drg2015", phrec.cfjaddress)
# ufile.upload_file(phrec.cfjaddress, better_cost_path)
# except Exception as e:
# logging.error("更新费用清单pdf图片出错", exc_info=e)
# finally:
# is_cost_updated = True
# 合并出院记录
for key, value in discharge_ie_result.items():