当前位置: 首页>>代码示例>>Python>>正文


Python EMR_utilities.makeClock方法代码示例

本文整理汇总了Python中EMR_utilities.makeClock方法的典型用法代码示例。如果您正苦于以下问题:Python EMR_utilities.makeClock方法的具体用法?Python EMR_utilities.makeClock怎么用?Python EMR_utilities.makeClock使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EMR_utilities的用法示例。


在下文中一共展示了EMR_utilities.makeClock方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import makeClock [as 别名]
    def __init__(self, parent, id, starts_with="ba"):
        wx.Panel.__init__(self, parent, id)

        self.log = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE)
        ptcolumns = (
            ("Patient ID", 95),
            ("Firstname", 125),
            ("Lastname", 150),
            ("Phone", 125),
            ("SSN", 125),
            ("DOB", 100),
        )
        patients = name_find(starts_with)
        self.list = EMR_utilities.buildCheckListCtrl(self, ptcolumns, patients)

        vbox = wx.BoxSizer(wx.VERTICAL)
        hbox = wx.BoxSizer(wx.HORIZONTAL)
        vbox2 = wx.BoxSizer(wx.VERTICAL)

        buttons = (
            ("Get Record", self.OnGetPt, vbox2),
            ("Deselect", self.OnDeselectAll, vbox2),
            ("Patient Info", self.OnApply, vbox2),
        )
        for label, handler, sizer in buttons:
            EMR_utilities.buildOneButton(self, self, label, handler, sizer)
        clock = EMR_utilities.makeClock(self, vbox2)

        vbox.Add(self.list, 2, wx.EXPAND | wx.TOP, 3)
        vbox.Add((-1, 10))
        vbox.Add(self.log, 1, wx.EXPAND)
        vbox.Add((-1, 10))
        hbox.Add(vbox2, 0, wx.RIGHT, 5)
        hbox.Add(vbox, 1, wx.EXPAND)
        hbox.Add((3, -1))

        self.SetSizer(hbox)

        self.Centre()
        self.Show(True)
开发者ID:barronmo,项目名称:gecko_emr,代码行数:42,代码来源:Selectable.py

示例2: __init__

# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import makeClock [as 别名]
    def __init__(self, parent, id, ptID):
        wx.Panel.__init__(self, parent, id)

        self.ptID = ptID
        self.problem = '' 	#receives the newly selected problem back from AddProblemDialog
        self.probs = []
        for items in prob_find(ptID):
                self.probs.append(Problem(items["short_des"], items["prob_date"], items["icd10"], items["problem_number"]))
        self.problist = ObjectListView(self, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
        self.problist.SetColumns([
                ColumnDefn("Problem", "left", 400, valueGetter="short_des"),
                ColumnDefn("First Treated", "left", 100, valueGetter="prob_date"),
                ColumnDefn("ICD-10 Code", "left", 100, valueGetter="icd10")
                ])
        self.problist.rowFormatter = self.rowFormatter
        self.problist.useAlternateBackColors = False
        self.problist.SetObjects(self.probs)
        self.problist.cellEditMode = ObjectListView.CELLEDIT_DOUBLECLICK
        self.problist.Bind(EVT_CELL_EDIT_STARTING, self.HandleCellEditStarting)
        self.problist.Bind(EVT_CELL_EDIT_FINISHED, self.HandleCellEditFinished)
        
                
        leftprob = wx.BoxSizer(wx.VERTICAL)
        rightprob = wx.BoxSizer(wx.VERTICAL)
        mainsizer = wx.BoxSizer(wx.HORIZONTAL)

        buttons = (('Add', self.OnNewProb, leftprob),
             ('Remove', self.OnRemProb, leftprob),
             ('icd Toggle', self.OnToggle, leftprob))
        for label, handler, sizer in buttons:
            EMR_utilities.buildOneButton(self, self, label, handler, sizer)
        clock = EMR_utilities.makeClock(self, leftprob)
            
        rightprob.Add(self.problist, 1, wx.EXPAND | wx.TOP, 5)
        mainsizer.Add(leftprob, 0)
        mainsizer.Add(rightprob, 1, wx.EXPAND)
        self.SetSizer(mainsizer)
        listBilledICD(ptID)
        self.myFont = wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD)
开发者ID:barronmo,项目名称:gecko_emr,代码行数:41,代码来源:Problems.py


注:本文中的EMR_utilities.makeClock方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。