def update_in_waiting_list(self, pk = None, urgency = 0, comment = None, zone = None): cmd = """ update clin.waiting_list set urgency = %(urg)s, comment = %(cmt)s, area = %(zone)s where pk = %(pk)s""" args = { 'pk': pk, 'urg': urgency, 'cmt': gmTools.none_if(comment, ''), 'zone': gmTools.none_if(zone, '') } gmPG2.run_rw_queries(queries = [{'cmd': cmd, 'args': args}]) gmHooks.run_hook_script(hook = 'after_waiting_list_modified')
def remove_from_waiting_list(self, pk=None): cmd = 'DELETE FROM clin.waiting_list WHERE pk = %(pk)s' args = {'pk': pk} gmPG2.run_rw_queries(queries=[{'cmd': cmd, 'args': args}]) gmHooks.run_hook_script(hook='after_waiting_list_modified')
def _on_code_link_modified(): """Always relates to the active patient.""" gmHooks.run_hook_script(hook = 'after_code_link_modified')
def _on_code_link_modified(): """Always relates to the active patient.""" gmHooks.run_hook_script(hook='after_code_link_modified')
setup_locale() handle_help_request() handle_version_request() setup_paths_and_files() setup_date_time() setup_cfg() setup_ui_type() from Gnumed.pycommon import gmPG2 if ui_type in [u'web']: gmPG2.auto_request_login_params = False setup_backend() from Gnumed.pycommon import gmHooks gmHooks.run_hook_script(hook = u'startup-before-GUI') if ui_type == u'wxp': from Gnumed.wxpython import gmGuiMain profile_file = _cfg.get(option = u'--profile', source_order = [(u'cli', u'return')]) if profile_file is not None: _log.info('writing profiling data into %s', profile_file) import profile profile.run('gmGuiMain.main()', profile_file) else: gmGuiMain.main() #elif ui_type == u'web': # from Gnumed.proxiedpyjamas import gmWebGuiServer # gmWebGuiServer.main() #elif ui_type == u'chweb':
def _on_soap_modified(): """Always relates to the active patient.""" gmHooks.run_hook_script(hook = u'after_soap_modified')