parent
2eeb1e998f
commit
ffdc7906b7
|
|
@ -14,7 +14,7 @@ from datetime import datetime
|
|||
from decimal import Decimal, ROUND_HALF_UP
|
||||
from hashlib import md5
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Optional, Tuple
|
||||
from typing import Any, Dict, List, Optional, Tuple
|
||||
|
||||
import cv2
|
||||
import numpy
|
||||
|
|
@ -294,7 +294,7 @@ if __name__ == "__main__":
|
|||
) from exception
|
||||
|
||||
# noinspection PyShadowingNames
|
||||
def query_institution_type(self, institution: str) -> Optional[Dict[str, Any]]:
|
||||
def query_institution_type(self, institution: str) -> Optional[str]:
|
||||
"""
|
||||
查询并获取单条购药及就医机构类型
|
||||
:param institution: 购药及就医机构
|
||||
|
|
@ -316,6 +316,12 @@ if __name__ == "__main__":
|
|||
"查询并获取单条购药及就医机构类型发生异常"
|
||||
) from exception
|
||||
|
||||
# noinspection PyShadowingNames
|
||||
def query_individual_policy(
|
||||
self, insurance_branch: str, certificate_type: str, certificate_number: str
|
||||
) -> Optional[List[Dict[str, Any]]]:
|
||||
pass
|
||||
|
||||
# 实例化主数据
|
||||
master_data = MasterData()
|
||||
|
||||
|
|
@ -613,6 +619,8 @@ if __name__ == "__main__":
|
|||
}
|
||||
)
|
||||
|
||||
# 查询
|
||||
|
||||
# noinspection PyShadowingNames
|
||||
def bankcard_recognize(image_guid, image_format, image_base64) -> None:
|
||||
"""
|
||||
|
|
@ -761,7 +769,7 @@ if __name__ == "__main__":
|
|||
institution_type = master_data.query_institution_type(
|
||||
institution
|
||||
)
|
||||
# TODO: 若购药及就医机构类型为None则流转至主数据人工处理
|
||||
# TODO: 若查询并获取单条购药及就医机构类型发生异常则流转至主数据人工处理
|
||||
if institution_type is None:
|
||||
raise RuntimeError(
|
||||
"查询并获取单条购药及就医机构类型发生异常"
|
||||
|
|
@ -1431,10 +1439,9 @@ if __name__ == "__main__":
|
|||
image_base64, image_type = image_classify(
|
||||
image_guid, image_format, image_ndarray
|
||||
)
|
||||
# image["影像件BASE64编码"] = image_base64
|
||||
image["影像件BASE64编码"] = image_base64
|
||||
image["影像件类型"] = image_type
|
||||
# 将影像件数据添加至影像件层
|
||||
# TODO: 若影像件类型为居民身份证(国徽面)和居民身份证(头像面)需合并
|
||||
|
||||
dossier["影像件层"].append(image)
|
||||
|
||||
# 就影像件层按照影像件类型排序
|
||||
|
|
|
|||
Loading…
Reference in New Issue