优化医生名字的处理,没有时填充无

This commit is contained in:
2024-12-03 13:27:18 +08:00
parent be27f753ba
commit 96b8a06e6c
3 changed files with 9 additions and 3 deletions

View File

@@ -126,6 +126,12 @@ def handle_name(string):
return re.sub(r'[^⺀-鿿·]', '', string)[:30]
def handle_doctor(string):
if not string:
return ""
return re.sub(r'[^⺀-鿿·]', '', string)[:30]
# 处理医保类型数据
def handle_insurance_type(string):
if not string: