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


Python EMR_utilities.buildOneTextCtrl方法代码示例

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


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

示例1: __init__

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

        self.PtID = ptID
        self.textctrl = {}
        self.not_billable = 0
        textcontrols = [("Date", 100)]
        cptsizer = wx.BoxSizer(wx.VERTICAL)
        for label, size in textcontrols:
            EMR_utilities.buildOneTextCtrl(self, label, size, cptsizer)
        cptsizer.Add((-1, 10))
        cptsizer.Add(wx.StaticText(self, -1, "Select a template:"))
        self.tmplist = wx.ListBox(
            self,
            -1,
            pos=wx.DefaultPosition,
            size=(90, 110),
            choices=["HTN", "DM", "Obesity", "GI", "Back Pain"],
            style=wx.LB_HSCROLL,
        )
        self.Bind(wx.EVT_LISTBOX, self.EvtSelTmplist, self.tmplist)

        cptsizer.Add(self.tmplist)
        cptsizer.Add((-1, 10))

        noteSizer = wx.BoxSizer(wx.VERTICAL)
        noteLabel = wx.StaticText(self, -1, "SOAP Note")
        self.educNote = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE)
        self.educNote.Show(False)
        self.neweducNote = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE)
        noteSizer.Add(noteLabel, 0, wx.ALIGN_TOP | wx.ALIGN_LEFT, 5)
        noteSizer.Add(self.educNote, 1, wx.EXPAND)
        noteSizer.Add(self.neweducNote, 1, wx.EXPAND)

        buttons = [("Save", self.OnSave), ("New", self.OnNew), ("Print", self.OnPrint), ("PDF", self.OnPDF)]
        leftsizer = wx.BoxSizer(wx.VERTICAL)
        for label, handler in buttons:
            EMR_utilities.buildOneButton(self, self, label, handler, leftsizer)
        self.listctrl = wx.ListBox(self, -1, pos=wx.DefaultPosition, size=(145, 200), choices=[], style=wx.LB_HSCROLL)
        leftsizer.AddMany([(-1, 20), (wx.StaticText(self, -1, "Select a note:")), (self.listctrl)])
        self.Bind(wx.EVT_LISTBOX, self.EvtSelListBox, self.listctrl)
        self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtSelListBox, self.listctrl)

        mainsizer = wx.BoxSizer(wx.HORIZONTAL)
        mainsizer.AddMany(
            [(leftsizer, 0, wx.ALL, 10), (noteSizer, 1, wx.EXPAND | wx.ALL, 10), (cptsizer, 0, wx.ALL, 10)]
        )
        self.SetSizer(mainsizer)
        self.loadList()
开发者ID:barronmo,项目名称:gecko_emr,代码行数:51,代码来源:Education.py

示例2: __init__

# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import buildOneTextCtrl [as 别名]
    def __init__(self, parent, ID, PtID):
	wx.Panel.__init__(self, parent, ID)
	#I need some way to set the max size for the grid
	self.PtID = PtID
	self.qry = "SELECT * FROM vitals WHERE patient_ID = %s;" % (str(self.PtID))
	self.vitals = list(EMR_utilities.getAllDictData(self.qry))
	self.textctrl = {}
	self.vitalsList = ObjectListView(self, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
	self.vitalsList.SetColumns([
            ColumnDefn("Weight", "center", 80, valueGetter="wt"),
            ColumnDefn("Height", "center", 80, valueGetter="ht"),
            ColumnDefn("HC", "center", 80, valueGetter="hc"),
            ColumnDefn("Systolic", "center", 80, valueGetter="sBP"),
            ColumnDefn("Diastolic", "center", 80, valueGetter="dBP"),
            ColumnDefn("Pulse", "center", 80, valueGetter="pulse"),
            ColumnDefn("Resp", "center", 80, valueGetter="resp"),
            ColumnDefn("O2 Sat", "center", 80, valueGetter="sats"),
	    ColumnDefn("Temp", "center", 80, valueGetter="temp"),
	    ColumnDefn("Date", "center", 120, valueGetter="vitals_date")
            ])
	self.vitalsList.SetObjects(self.vitals)
	self.vitalsList.cellEditMode = ObjectListView.CELLEDIT_DOUBLECLICK
	self.vitalsList.Bind(EVT_CELL_EDIT_STARTING, self.HandleCellEditStarting)
	self.vitalsList.Bind(EVT_CELL_EDIT_FINISHED, self.listHandleCellEditFinished)
	self.vitalsbox = wx.BoxSizer(wx.HORIZONTAL)
	self.vitalsbox.Add(self.vitalsList, 1, wx.EXPAND |wx.ALL, 20)
	self.mainsizer = wx.BoxSizer(wx.VERTICAL)
	border = wx.StaticBox(self, -1, 'Add Vitals')
	f = wx.Font(10, wx.DEFAULT, wx.NORMAL, wx.LIGHT)
	border.SetFont(f)
	addvitals = wx.StaticBoxSizer(border, wx.HORIZONTAL)
	controls = [('Wt', 40), ('Ht', 30), ('HC', 30), ('Temp', 40), ('SBP', 40), ('DBP', 40), ('Pulse', 40), ('Resp', 30), \
		    ('O2 Sats', 30), ('Date', 80)]
	for label, size in controls:
	    EMR_utilities.buildOneTextCtrl(self, label, size, addvitals)
	self.textctrl['Date'].SetValue(str(EMR_utilities.dateToday()))
	self.mainsizer.Add(self.vitalsbox)
	self.mainsizer.Add(addvitals, 0, wx.ALL, 20)
	buttonAdd = EMR_utilities.buildOneButton(self, self, 'Update Vitals', self.UpdateVitals)
	buttonDel = EMR_utilities.buildOneButton(self, self, 'Delete Vitals', self.DeleteVitals)
	self.mainsizer.Add(buttonAdd, 0, wx.ALIGN_LEFT|wx.ALIGN_TOP|wx.LEFT|wx.TOP, 20)
	self.mainsizer.Add(buttonDel, 0, wx.ALIGN_LEFT|wx.ALIGN_TOP|wx.LEFT|wx.TOP, 20)
	self.SetSizer(self.mainsizer)
开发者ID:barronmo,项目名称:gecko_emr,代码行数:45,代码来源:Vitals.py

示例3: __init__

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

	self.PtID = ptID
	self.textctrl = {}
	self.not_billable = 0
	self.note_number = ''
	textcontrols1 = [('Date', 100)]
	textcontrols2 = [('ICD #1', 60), ('ICD #2', 60), ('ICD #3', 60), ('ICD #4', 60), ('ICD #5', 60)]
	textcontrols3 = [('ICD #6', 60), ('ICD #7', 60), ('ICD #8', 60), ('ICD #9', 60), ('ICD #10', 60)]
	cptsizer = wx.BoxSizer(wx.VERTICAL)
	icd1sizer = wx.BoxSizer(wx.VERTICAL)
	icd2sizer = wx.BoxSizer(wx.VERTICAL)
	icdMainSizer = wx.BoxSizer(wx.HORIZONTAL)
	for label, size in textcontrols1:
	    EMR_utilities.buildOneTextCtrl(self, label, size, cptsizer)
	for label, size in textcontrols2:
	    EMR_utilities.buildOneTextCtrl(self, label, size, icd1sizer)
	for label, size in textcontrols3:
	    EMR_utilities.buildOneTextCtrl(self, label, size, icd2sizer)
	icdMainSizer.Add(icd1sizer)
	icdMainSizer.Add(icd2sizer)
	cptsizer.Add(icdMainSizer)
	cptsizer.Add((-1,10))
	cptsizer.Add(wx.StaticText(self, -1, 'Select a template:'))
	self.tmplist = wx.ListBox(self, -1, pos=wx.DefaultPosition, size=(90, 110), choices = ['generic', 'prenatal', \
		       'procedure', 'phonecon', 'well child'], style=wx.LB_HSCROLL)
	self.Bind(wx.EVT_LISTBOX, self.EvtSelTmplist, self.tmplist)
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #1'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #2'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #3'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #4'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #5'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #6'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #7'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #8'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #9'])
	self.Bind(wx.EVT_TEXT, self.OnTextEnterICD, self.textctrl['ICD #10'])
	#for some reason the EVT_KILL_FOCUS does not bind with the above method, ie self.bind
	self.textctrl['ICD #1'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #2'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #3'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #4'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #5'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #6'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #7'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #8'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #9'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	self.textctrl['ICD #10'].Bind(wx.EVT_KILL_FOCUS, self.OnKillFocusICD)
	
	cptsizer.Add(self.tmplist)
	cptsizer.Add((-1, 10))
	exambutton = EMR_utilities.buildOneButton(self, self, 'Exam', self.OnExamBtn, cptsizer)
	cpbutton = EMR_utilities.buildOneButton(self, self, 'Care Plan', self.OnCarePlanBtn, cptsizer)
	self.billBtn = EMR_utilities.buildOneButton(self, self, 'Billing', self.OnBillBtn, cptsizer)
	#self.CMSbutton = EMR_utilities.buildOneButton(self, self, 'Create 1500', self.OnCMSbutton, cptsizer)
	self.HCFAbutton = EMR_utilities.buildOneButton(self, self, 'Create HCFA', self.OnHCFAbutton, cptsizer)
	self.PtBillBtn = EMR_utilities.buildOneButton(self, self, 'Bill Pt', self.OnBillPt, cptsizer)

	#self.printData = wx.PrintData()
        #self.printData.SetPaperId(wx.PAPER_LETTER)
        #self.printData.SetPrintMode(wx.PRINT_MODE_PRINTER)

	soapsizer = wx.BoxSizer(wx.VERTICAL)
	soapLabel = wx.StaticText(self, -1, 'SOAP Note')	
	self.soapNote = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE)
	self.soapNote.Show(False)
	self.newsoapNote = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE)
	soapsizer.Add(soapLabel, 0, wx.ALIGN_TOP|wx.ALIGN_LEFT, 5)
	soapsizer.Add(self.soapNote, 1, wx.EXPAND)
	soapsizer.Add(self.newsoapNote, 1, wx.EXPAND)
			
	buttons = [('Save', self.OnSave), ('New', self.OnNew), ('Print', self.OnPrint), ('PDF', self.OnPDF), ('Sign', self.OnSign)]
	leftsizer = wx.BoxSizer(wx.VERTICAL)
	for label, handler in buttons:
	    EMR_utilities.buildOneButton(self, self, label, handler, leftsizer)
	self.listctrl = wx.ListBox(self, -1, pos=wx.DefaultPosition, size=(145,200), choices = [], style=wx.LB_HSCROLL)
	leftsizer.AddMany([(-1, 20), (wx.StaticText(self, -1, 'Select a note:')), (self.listctrl)])
	self.Bind(wx.EVT_LISTBOX, self.EvtSelListBox, self.listctrl)
	self.Bind(wx.EVT_LISTBOX_DCLICK, self.EvtSelListBox, self.listctrl)

	mainsizer = wx.BoxSizer(wx.HORIZONTAL)
	mainsizer.AddMany([(leftsizer, 0, wx.ALL, 10),(soapsizer, 1, wx.EXPAND|wx.ALL, 10),(cptsizer, 0, wx.ALL, 10)])
	self.SetSizer(mainsizer)
	self.loadList()
开发者ID:barronmo,项目名称:gecko_emr,代码行数:87,代码来源:Notes.py

示例4: __init__

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

	self.ptID = ptID	
	self.textctrl = {}
	font1 = wx.Font(12, wx.SWISS, wx.NORMAL, wx.LIGHT)
	Font2 = wx.Font(7, wx.SWISS, wx.NORMAL, wx.LIGHT)
	self.labels = (('First Name', 50, 'firstname'), ('Last Name', 75, 'lastname'), ('Mid Initial', 20, 'mid_init'),
		('Address', 100, 'address'), ('City', 75, 'city'), ('State', 30, 'state'), ('Zip', 40, 'zipcode'), 
		('Phone', 40, 'phonenumber'), ('Sex', 20, 'sex'), ('DOB', 50, 'dob'), 
		('Insured', 30,  'relation_to_insured'), ('SSN', 30, 'SSN'), ('Email', 125, 'email'), 
		('Signature on File', 40, 'sof'),

		('Insurance Co', 0, 'insurance_company'), ('Policy ID', 50, 'policy_ID'), 
		('Sec Insurance', 100, 'secondary_ins'), ('Sec Policy ID', 50, 'secondary_ins_ID'), 
		('Sec Policy #', 50, 'sec_PolicyGroupOrFecaNumber'), 
		('Plan Name', 75, 'InsuredInsurancePlanNameOrProgramName'), 
		('Ins Policy/Group/FECA Number', 50, 'InsuredPolicyGroupOrFecaNumber'), 

		('Ins Last', 75, 'InsuredLast'),  ('Ins First', 50, 'InsuredFirst'), 
		('Ins Mid Initial', 20, 'InsuredMidInit'), ('Ins Address', 100, 'InsuredStreetAddress'), 
		('Ins City', 75, 'InsuredCity'), ('Ins State', 30, 'InsuredState'), ('Ins Zip', 40, 'InsuredZip'), 
		('Ins Phone', 40, 'InsuredPhone'), 

		#These were removed to make space for other demographics fields; they were not being used; still in the db though
		#('Ins DOB', 40, 'InsuredDOB'),
		#('Ins Gender', 20, 'InsuredGender'), ('Ins Employer', 100, 'InsuredEmployerNameOrSchoolName'),
		 
		('Guarantor Last', 75, 'guarantor_last'), ('Guarantor First', 50, 'guarantor_first'), 
		('Guarantor Address', 100, 'guarantor_address'), ('Guarantor City', 75, 'guarantor_city'),
		('Guarantor State', 30, 'guarantor_state'), ('Guarantor Zip', 40, 'guarantor_zip'), 
		('Guarantor Phone', 40, 'guarantor_phone'),

		('Race', 100, 'race'), ('Primary Language', 50, 'language'), ('PCP', 50, 'pcp'))
		
	for label, size, field in self.labels:
	    EMR_utilities.buildOneTextCtrl(self, label, size)

	demosizer = wx.FlexGridSizer(cols=2, hgap=5, vgap=5)
	demo2sizer = wx.FlexGridSizer(cols=2, hgap=5, vgap=5)
	demo3sizer = wx.FlexGridSizer(cols=2, hgap=5, vgap=5)
	demo4sizer = wx.FlexGridSizer(cols=2, hgap=5, vgap=5)
	demo5sizer = wx.FlexGridSizer(cols=2, hgap=5, vgap=5)
	demosizer.AddGrowableCol(1)
	demo2sizer.AddGrowableCol(1)
	demo3sizer.AddGrowableCol(1)
	demo4sizer.AddGrowableCol(1)
	demo5sizer.AddGrowableCol(1)

	#Patient Info
	nameLabel = wx.StaticText(self, -1, 'First, Middle, Last')
	nameLabel.SetFont(Font2)
	demosizer.Add(nameLabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
	namesizer = wx.BoxSizer(wx.HORIZONTAL)
	namesizer.Add(self.textctrl['First Name'], 2)
	namesizer.Add(self.textctrl['Mid Initial'], 1, wx.RIGHT|wx.LEFT, 5)
	namesizer.Add(self.textctrl['Last Name'], 3, wx.EXPAND)
	demosizer.Add(namesizer, 0, wx.EXPAND)
	addrLabel = wx.StaticText(self, -1, 'Address')
	addrLabel.SetFont(Font2)
	demosizer.Add(addrLabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
	demosizer.Add(self.textctrl['Address'], 1, wx.EXPAND)
	cityLabel = wx.StaticText(self, -1, ' City State Zip Phone')
	cityLabel.SetFont(Font2)
	demosizer.Add(cityLabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
	cstsizer = wx.BoxSizer(wx.HORIZONTAL)
	cstsizer.Add(self.textctrl['City'], 3)
	cstsizer.Add(self.textctrl['State'], 1, wx.LEFT|wx.RIGHT, 5)
	cstsizer.Add(self.textctrl['Zip'], 2, wx.RIGHT, 5)
	cstsizer.Add(self.textctrl['Phone'], 4, wx.EXPAND)
	demosizer.Add(cstsizer, 0, wx.EXPAND)
	dobLabel = wx.StaticText(self, -1, 'DOB Sex email')
	dobLabel.SetFont(Font2)
	demosizer.Add(dobLabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
	sexsizer = wx.BoxSizer(wx.HORIZONTAL)
	sexsizer.Add(self.textctrl['DOB'], 3)
	sexsizer.Add(self.textctrl['Sex'], 2, wx.LEFT|wx.RIGHT, 5)
	sexsizer.Add(self.textctrl['Email'], 5, wx.EXPAND)
	demosizer.Add(sexsizer, 0, wx.EXPAND)
	InsLabel = wx.StaticText(self, -1, 'Insured  SSN SOF')
	InsLabel.SetFont(Font2)
	demosizer.Add(InsLabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
	insuredsizer = wx.BoxSizer(wx.HORIZONTAL)
	insuredsizer.Add(self.textctrl['Insured'], 2, wx.RIGHT, 5)
	insuredsizer.Add(self.textctrl['SSN'], 4, wx.RIGHT, 5)
	insuredsizer.Add(self.textctrl['Signature on File'], 3, wx.EXPAND)
	demosizer.Add(insuredsizer, 0, wx.EXPAND)
	
	#Insurance Info
	insTuple = EMR_utilities.getAllData('SELECT InsurancePlanName FROM ins_companies;')
	insList = []	#this control forces me to choose from one of the insurance policies I accept or 'self'
	for item in insTuple:
	    insList.append(item[0])
	self.insChoice = wx.Choice(self, -1, choices=insList)

	InsCoLabel = wx.StaticText(self, -1, 'Primary Insurance Co')
	InsCoLabel.SetFont(Font2)
	demo3sizer.Add(InsCoLabel, 0, wx.ALIGN_RIGHT|wx.ALIGN_CENTER_VERTICAL)
	demo3sizer.Add(self.insChoice, 1, wx.EXPAND)
	IDLabel = wx.StaticText(self, -1, 'ID  Group#  Plan')
#.........这里部分代码省略.........
开发者ID:barronmo,项目名称:gecko_emr,代码行数:103,代码来源:demographics.py


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