添加医保类型处理方法
This commit is contained in:
@@ -17,7 +17,8 @@ from photo_review.entity.zx_ie_settlement import ZxIeSettlement
|
||||
from photo_review.entity.zx_ocr import ZxOcr
|
||||
from photo_review.entity.zx_phhd import ZxPhhd
|
||||
from photo_review.entity.zx_phrec import ZxPhrec
|
||||
from photo_review.util.data_util import handle_date, handle_decimal, handle_department, handle_name
|
||||
from photo_review.util.data_util import handle_date, handle_decimal, handle_department, handle_name, \
|
||||
handle_insurance_type
|
||||
from photo_review.util.ucloud import get_private_url
|
||||
from photo_review.util.util import get_default_datetime
|
||||
|
||||
@@ -130,7 +131,8 @@ def photo_review(pk_phhd):
|
||||
"personal_cash_payment_str": get_best_value_in_keys(settlement_list_ie_result, PERSONAL_CASH_PAYMENT),
|
||||
"personal_account_payment_str": get_best_value_in_keys(settlement_list_ie_result, PERSONAL_ACCOUNT_PAYMENT),
|
||||
"personal_funded_amount_str": get_best_value_in_keys(settlement_list_ie_result, PERSONAL_FUNDED_AMOUNT),
|
||||
"medical_insurance_type": get_best_value_in_keys(settlement_list_ie_result, MEDICAL_INSURANCE_TYPE)
|
||||
"medical_insurance_type": handle_insurance_type(
|
||||
get_best_value_in_keys(settlement_list_ie_result, MEDICAL_INSURANCE_TYPE))
|
||||
}
|
||||
settlement_data["admission_date"] = handle_date(settlement_data["admission_date_str"])
|
||||
settlement_data["admission_date"] = handle_date(settlement_data["admission_date_str"])
|
||||
|
||||
@@ -81,3 +81,10 @@ def handle_name(string):
|
||||
if not string:
|
||||
return ""
|
||||
return re.sub(r'[^⺀-鿿·]', '', string)
|
||||
|
||||
|
||||
# 处理医保类型数据
|
||||
def handle_insurance_type(string):
|
||||
if not string:
|
||||
return ""
|
||||
return string.replace(":", "").replace(":", "")
|
||||
|
||||
Reference in New Issue
Block a user