增加ocr结果存表
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# coding: utf-8
|
||||
from sqlalchemy import Column, DECIMAL, Date, DateTime, Index, String, text, LargeBinary
|
||||
from sqlalchemy import Column, DECIMAL, Date, DateTime, Index, String, text, LargeBinary, Text
|
||||
from sqlalchemy.dialects.mysql import BIT, CHAR, INTEGER, TINYINT, VARCHAR
|
||||
|
||||
from db import Base
|
||||
@@ -56,6 +56,7 @@ class ZxIeCost(Base):
|
||||
|
||||
pk_ie_cost = Column(INTEGER(11), primary_key=True, comment='费用明细信息抽取主键')
|
||||
pk_phhd = Column(INTEGER(11), nullable=False, unique=True, comment='报销案子主键')
|
||||
content = Column(Text, comment='详细内容')
|
||||
name = Column(String(30), comment='患者姓名')
|
||||
admission_date_str = Column(String(255), comment='入院日期字符串')
|
||||
admission_date = Column(Date, comment='入院日期')
|
||||
@@ -63,6 +64,8 @@ class ZxIeCost(Base):
|
||||
discharge_date = Column(Date, comment='出院日期')
|
||||
medical_expenses_str = Column(String(255), comment='费用总额字符串')
|
||||
medical_expenses = Column(DECIMAL(18, 2), comment='费用总额')
|
||||
page_nums = Column(String(255), comment='页码')
|
||||
page_count = Column(TINYINT(4), comment='页数')
|
||||
create_time = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间')
|
||||
creator = Column(String(255), comment='创建人')
|
||||
update_time = Column(DateTime, server_default=text("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"),
|
||||
@@ -94,7 +97,7 @@ class ZxIeDischarge(Base):
|
||||
|
||||
pk_ie_discharge = Column(INTEGER(11), primary_key=True, comment='出院记录信息抽取主键')
|
||||
pk_phhd = Column(INTEGER(11), nullable=False, unique=True, comment='报销案子主键')
|
||||
content = Column(String(5000), comment='详细内容')
|
||||
content = Column(Text, comment='详细内容')
|
||||
hospital = Column(String(255), comment='医院')
|
||||
pk_yljg = Column(INTEGER(11), comment='医院主键')
|
||||
department = Column(String(255), comment='科室')
|
||||
|
||||
Reference in New Issue
Block a user