Esempio n. 1
0
 def GetWidget(self, parent):
     self._widget = gmSOAPWidgets.cMultiSashedProgressNoteInputPanel(
         parent, -1)
     return self._widget
	def GetWidget (self, parent):
		self._widget = gmSOAPWidgets.cMultiSashedProgressNoteInputPanel(parent, -1)
		return self._widget
Esempio n. 3
0
    _log.info("starting multisashed progress notes input plugin...")

    # make sure we have a db connection
    pool = gmPG.ConnectionPool()

    # 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.wxPyWidgetTester(size=(800, 600))
    multisash_notes = gmSOAPWidgets.cMultiSashedProgressNoteInputPanel(
        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"
    pool.StopListeners()

    _log.info("closing multisashed progress notes input plugin...")

#======================================================================
    _log.info("starting multisashed progress notes input plugin...")

    try:
        # make sure we have a db connection
        pool = gmPG.ConnectionPool()

        # 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.wxPyWidgetTester(size=(800,600))
        multisash_notes = gmSOAPWidgets.cMultiSashedProgressNoteInputPanel(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
    try: