Package Gnumed :: Package wxpython :: Module gmSOAPWidgets :: Class cResizingSoapPanel
[frames] | no frames]

Class cResizingSoapPanel

source code

wx.Panel --+
           |
          cResizingSoapPanel

Basic progress note panel.

It provides a gmResizingWindow based progress note editor
with a header line. The header either displays the episode
this progress note is associated with or it allows for
entering an episode name. The episode name either names
an existing episode or is the name for a new episode.

This panel knows how to save it's data into the backend.

Can work as:
        a) Progress note creation: displays an empty set of soap entries to
        create a new soap note for the given episode (or unassociated)

Instance Methods
 
__init__(self, parent, problem=None, input_defs=None)
Construct a new SOAP input widget.
source code
 
get_problem(self)
Retrieve the related problem for this SOAP input widget.
source code
 
is_unassociated_editor(self)
Retrieves whether the current editor is not associated with any episode.
source code
 
get_editor(self)
Retrieves widget's SOAP text editor.
source code
 
Clear(self)
Clear any entries in widget's SOAP text editor
source code
 
SetSaved(self, is_saved)
Set SOAP input widget saved (dumped to backend) state
source code
 
IsSaved(self)
Check SOAP input widget saved (dumped to backend) state
source code
 
save(self) source code
 
editor_empty(self) source code
Method Details

__init__(self, parent, problem=None, input_defs=None)
(Constructor)

source code 

Construct a new SOAP input widget.

Parameters:
  • parent - the parent widget
  • episode - the episode to create the SOAP editor for. @type episode gmEMRStructItems.cEpisode instance or None (to create an unassociated progress note). A gmEMRStructItems.cProblem instance is also allowed to be passed, as the widget will obtain the related cEpisode.
  • input_defs (a list of cSOAPLineDef instances) - the display and associated data for each displayed narrative

SetSaved(self, is_saved)

source code 

Set SOAP input widget saved (dumped to backend) state

Parameters:
  • is_saved (boolean) - Flag indicating wether the SOAP has been dumped to persistent backend