Package Gnumed :: Package wxpython :: Module gmEMRStructWidgets
[frames] | no frames]

Module gmEMRStructWidgets

source code

GNUmed EMR structure editors

This module contains widgets to create and edit EMR structural elements (issues, enconters, episodes).

This is based on initial work and ideas by Syan <kittylitter@swiftdsl.com.au> and Karsten <Karsten.Hilbert@gmx.net>.


Author: cfmoro1976@yahoo.es, karsten.hilbert@gmx.net

License: GPL v2 or later

Classes
  cEpisodeListSelectorDlg
  cEpisodeDescriptionPhraseWheel
Let user select an episode *description*.
  cEpisodeSelectionPhraseWheel
Let user select an episode.
  cEpisodeEditAreaPnl
  cIssueListSelectorDlg
  cIssueSelectionPhraseWheel
Let the user select a health issue.
  cIssueSelectionDlg
  cHealthIssueEditAreaPnl
Panel encapsulating health issue edit area functionality.
  cDiagnosticCertaintyClassificationPhraseWheel
Functions
 
emr_access_spinner(time2spin=0)
Spin time in seconds but let wx go on.
source code
 
edit_episode(parent=None, episode=None, single_entry=True) source code
 
manage_episodes(parent=None) source code
 
promote_episode_to_issue(parent=None, episode=None, emr=None) source code
 
move_episode_to_issue(episode=None, target_issue=None, save_to_backend=False)
Prepare changing health issue for an episode.
source code
 
edit_health_issue(parent=None, issue=None, single_entry=False) source code
 
select_health_issues(parent=None, emr=None) source code

Imports: sys, time, logging, pydt, wx, gmI18N, gmDateTime, gmExceptions, gmCfg, gmTools, gmDispatcher, gmMatchProvider, gmEMRStructItems, gmPraxis, gmPerson, gmPhraseWheel, gmGuiHelpers, gmListWidgets, gmEditArea, wxgEpisodeEditAreaPnl, wxgIssueSelectionDlg, wxgHealthIssueEditAreaPnl


Function Details

move_episode_to_issue(episode=None, target_issue=None, save_to_backend=False)

source code 

Prepare changing health issue for an episode.

Checks for two-open-episodes conflict. When this function succeeds, the pk_health_issue has been set on the episode instance and the episode should - for all practical purposes - be ready for save_payload().