Package Gnumed :: Package wxpython :: Module gmDemographicsWidgets :: Class cNewPatientWizard
[frames] | no frames]

Class cNewPatientWizard

source code

     object --+                        
              |                        
wx._core.Object --+                    
                  |                    
wx._core.EvtHandler --+                
                      |                
        wx._core.Window --+            
                          |            
 wx._windows.TopLevelWindow --+        
                              |        
             wx._windows.Dialog --+    
                                  |    
                   wx.wizard.Wizard --+
                                      |
                                     cNewPatientWizard


Wizard to create a new patient.

TODO:
- write pages for different "themes" of patient creation
- make it configurable which pages are loaded
- make available sets of pages that apply to a country
- make loading of some pages depend upon values in earlier pages, eg
  when the patient is female and older than 13 include a page about
  "female" data (number of kids etc)

FIXME: use: wizard.FindWindowById(wx.ID_FORWARD).Disable()

Instance Methods
EvtHandler
__init__(self, parent, title=_('Register new person'), subtitle=_('Basic demographic details'))
Creates a new instance of NewPatientWizard @param parent - The parent widget @type parent - A wx.Window instance
source code
 
RunWizard(self, activate=False)
Create new patient.
source code

Inherited from wx.wizard.Wizard: Create, FitToPage, GetCurrentPage, GetPageAreaSizer, GetPageSize, HasNextPage, HasPrevPage, Init, IsRunning, SetBorder, SetPageSize, ShowPage, __repr__

Inherited from wx._windows.Dialog: CreateButtonSizer, CreateStdDialogButtonSizer, CreateTextSizer, EndModal, GetReturnCode, IsModal, SendSizeEvent, SetReturnCode, ShowModal

Inherited from wx._windows.TopLevelWindow: CenterOnScreen, CentreOnScreen, GetIcon, GetTitle, Iconize, IsActive, IsFullScreen, IsIconized, IsMaximized, MacGetMetalAppearance, MacSetMetalAppearance, Maximize, RequestUserAttention, Restore, SetIcon, SetIcons, SetShape, SetTitle, ShowFullScreen

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AssociateHandle, CacheBestSize, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDefaultItem, GetDropTarget, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetHandle, GetHelpText, GetId, GetLabel, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsRetained, IsShown, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDefaultItem, SetDimensions, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetLabel, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetTmpDefaultItem, SetToolTip, SetToolTipString, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.Object: GetClassName

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from wx._windows.Dialog: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Properties

Inherited from object: __class__

Method Details

__init__(self, parent, title=_('Register new person'), subtitle=_('Basic demographic details'))
(Constructor)

source code 

Creates a new instance of NewPatientWizard @param parent - The parent widget @type parent - A wx.Window instance

Returns: EvtHandler
Overrides: object.__init__

RunWizard(self, activate=False)

source code 

Create new patient.

activate, too, if told to do so (and patient successfully created)

Overrides: wx.wizard.Wizard.RunWizard