Exemplo n.º 1
0
 def GetWidget(self, parent):
     self._widget = gmEMRBrowser.cEMRListJournalPluginPnl(parent, -1)
     return self._widget
Exemplo n.º 2
0
	def GetWidget (self, parent):
		self._widget = gmEMRBrowser.cEMRListJournalPluginPnl(parent, -1)
		return self._widget
Exemplo n.º 3
0
    import wx
    from Gnumed.business import gmPersonSearch
    from Gnumed.wxpython import gmPatSearchWidgets

    _log.info("starting emr journal 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 browser
    application = wx.PyWidgetTester(size=(800, 600))
    emr_journal = gmEMRBrowser.cEMRListJournalPluginPnl(application.frame, -1)
    emr_journal.refresh_journal()

    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 emr journal plugin...")

#======================================================================
Exemplo n.º 4
0
    from Gnumed.exporters import gmPatientExporter
    from Gnumed.business import gmPersonSearch

    _log.info("starting emr journal 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 browser
        application = wx.wxPyWidgetTester(size=(800,600))
        emr_journal = gmEMRBrowser.cEMRListJournalPluginPnl(application.frame, -1)
        emr_journal.refresh_journal()

        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