Exemplo n.º 1
0
class IBingRen(Interface):
    """病人:
    
    """
    id = schema.Int(title=_(u"table primary key"), )
    dizhi_id = schema.Int(title=_(u"foreagn key link to wei"), )
    xingming = schema.TextLine(
        title=_(u"xing ming"),
        required=True,
    )
    xingbie = schema.Choice(
        title=_(u"xing bie"),
        vocabulary='Chinese.medical.science.vocabulary.xiebie',
        required=True,
    )
    shengri = schema.Date(title=_(u"xing ming"), )
    dianhua = schema.TextLine(title=_(u"dian hua"), )
    dizhi = schema.Object(
        title=_(u"di zhi"),
        schema=IDiZhi,
    )
    # all chufangs of bingren
    chufangs = schema.Object(
        title=_(u"chu fang"),
        schema=IChuFang,
    )
Exemplo n.º 2
0
class IYao(Interface):
    """中药:
    人参、白术、甘草
    """
    id = schema.Int(title=_(u"table primary key"), )
    yaowei_id = schema.Int(title=_(u"foreagn key link to wei"), )
    yaoxing_id = schema.Int(title=_(u"foreagn key link to yao xing"), )
    mingcheng = schema.TextLine(title=_(u"ming cheng"), )
    zhuzhi = schema.TextLine(title=_(u"zhu zhi"), )
    yaowei = schema.Object(
        title=_(u"gui jing"),
        schema=IJingLuo,
    )
    yaoxing = schema.Object(
        title=_(u"gui jing"),
        schema=IJingLuo,
    )
    guijing = schema.Object(
        title=_(u"gui jing"),
        schema=IJingLuo,
    )
Exemplo n.º 3
0
class IDanWei(Interface):
    """单位:
    任之堂
    """
    id = schema.Int(title=_(u"table primary key"), )
    dizhi_id = schema.Int(title=_(u"foreagn key link to wei"), )
    mingcheng = schema.TextLine(
        title=_(u"ming cheng"),
        required=True,
    )
    dizhi = schema.Object(
        title=_(u"di zhi"),
        schema=IDiZhi,
    )
Exemplo n.º 4
0
class IBranch(Interface):
    """分系统表 branch
    """
    branchId = schema.Int(title=_(u"branch table primary key"), )
    model = schema.Object(
        title=_(u"Model record"),
        schema=IModel,
    )
    modelId = schema.Int(title=_(u"branch table foreign key"), )
    # 分系统代码
    fxtdm = schema.TextLine(title=_(u"branch code"), )
    #分系统名称
    fxtmc = schema.TextLine(title=_(u"branch name"), )
    #分系统类别
    fxtlb = schema.TextLine(title=_(u"branch category"), )
Exemplo n.º 5
0
class IYiSheng(Interface):
    """余浩:
    
    """
    id = schema.Int(title=_(u"table primary key"), )
    danwei_id = schema.Int(title=_(u"foreagn key link to danwei"), )
    xingming = schema.TextLine(
        title=_(u"xing ming"),
        required=True,
    )
    xingbie = schema.Choice(
        title=_(u"xing bie"),
        vocabulary='Chinese.medical.science.vocabulary.xiebie',
        required=True,
    )
    shengri = schema.Date(title=_(u"xing ming"), )
    dianhua = schema.TextLine(title=_(u"dian hua"), )
    danwei = schema.Object(
        title=_(u"dan wei"),
        schema=IDanWei,
    )