本文整理汇总了Python中EMR_utilities.wrapper方法的典型用法代码示例。如果您正苦于以下问题:Python EMR_utilities.wrapper方法的具体用法?Python EMR_utilities.wrapper怎么用?Python EMR_utilities.wrapper使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EMR_utilities
的用法示例。
在下文中一共展示了EMR_utilities.wrapper方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: OnPrint
# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import wrapper [as 别名]
def OnPrint(self, event):
if self.soapNote.IsShown():
note = self.soapNote.GetValue()
else:
note = self.newsoapNote.GetValue()
qry = 'SELECT firstname, lastname \
FROM demographics \
WHERE patient_ID = "%s";' % self.PtID
print_data = EMR_utilities.getDictData(qry)
print_data['date'] = self.textctrl['Date'].GetValue()
print_data['soap'] = EMR_utilities.wrapper(note, 80)
print print_data['soap']
lt = "%s/EMR_outputs/SoapNote.html" % settings.LINUXPATH
at = "%s/EMR_outputs/SoapNote.html" % settings.APPLEPATH
wt = "%s\EMR_outputs\SoapNote.html" % settings.WINPATH
form = open(EMR_utilities.platformText(lt, at, wt), 'r')
s = form.read()
form.close()
note_text = s % (print_data)
printer = EMR_utilities.Printer()
printer.PreviewText(note_text)