Gnumed.wxpython.gmEMRStructWidgets

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
| cProcedureEAPnl
| cHospitalWardPhraseWheel Phrasewheel to allow selection of a hospitalization.
| cHospitalStayPhraseWheel Phrasewheel to allow selection of a hospital-type org_unit.
| cHospitalStayEditAreaPnl
| 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. | source code
manage_performed_procedures(parent=None) | source code
edit_procedure(parent=None, procedure=None) | source code
manage_hospital_stays(parent=None) | source code
edit_hospital_stay(parent=None, hospital_stay=None) | source code
edit_episode(parent=None, episode=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) | source code
select_health_issues(parent=None, emr=None) | source code

Imports: sys, time, logging, pydt, wx, gmI18N, gmExceptions, gmCfg, gmDateTime, gmTools, gmDispatcher, gmMatchProvider, gmEMRStructItems, gmPraxis, gmPerson, gmPhraseWheel, gmGuiHelpers, gmListWidgets, gmEditArea, gmOrganizationWidgets, wxgProcedureEAPnl, wxgHospitalStayEditAreaPnl, 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().