예제 #1
0
 def GetWidget(self, parent):
     self._widget = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(
         parent, -1)
     return self._widget
예제 #2
0
파일: gmSoapPlugin.py 프로젝트: sk/gnumed
	from Gnumed.business import gmPersonSearch
	from Gnumed.wxpython import gmSOAPWidgets

	_log.info("starting Notebooked progress notes input plugin...")

	try:
		# obtain patient
		patient = gmPersonSearch.ask_for_patient()
		if patient is None:
			print "None patient. Exiting gracefully..."
			sys.exit(0)
		gmPatSearchWidgets.set_active_patient(patient=patient)

		# display standalone multisash progress notes input
		application = wx.wx.PyWidgetTester(size = (800,600))
		multisash_notes = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(application.frame, -1)

		application.frame.Show(True)
		application.MainLoop()

		# clean up
		if patient is not None:
			try:
				patient.cleanup()
			except:
				print "error cleaning up patient"
	except Exception:
		_log.exception("unhandled exception caught !")
		# but re-raise them
		raise
예제 #3
0
    # GNUmed
    from Gnumed.business import gmPersonSearch

    _log.info("starting Notebooked progress notes input plugin...")

    # obtain patient
    patient = gmPersonSearch.ask_for_patient()
    if patient is None:
        print("None patient. Exiting gracefully...")
        sys.exit(0)
    gmPatSearchWidgets.set_active_patient(patient=patient)

    # display standalone multisash progress notes input
    application = wx.wx.PyWidgetTester(size=(800, 600))
    multisash_notes = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(
        application.frame, -1)

    application.frame.Show(True)
    application.MainLoop()

    # clean up
    if patient is not None:
        try:
            patient.cleanup()
        except Exception:
            print("error cleaning up patient")

    _log.info("closing Notebooked progress notes input plugin...")
#======================================================================
	def GetWidget (self, parent):
		self._widget = gmSOAPWidgets.cNotebookedProgressNoteInputPanel(parent, -1)
		return self._widget