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
  cEncounterPhraseWheel
  cEncounterTypePhraseWheel
Phrasewheel to allow selection of encounter type.
  cEncounterTypeEditAreaPnl
  cEncounterEditAreaPnl
  cEncounterEditAreaDlg
  cActiveEncounterPnl
  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
 
start_new_encounter(emr=None) source code
 
edit_encounter(parent=None, encounter=None, msg=None) source code
 
manage_encounters(**kwargs) source code
 
select_encounters(parent=None, patient=None, single_selection=True, encounters=None, ignore_OK_button=False) source code
 
ask_for_encounter_continuation(msg=None, caption=None, encounter=None, parent=None)
This is used as the callback when the EMR detects that the patient was here rather recently and wants to ask the provider whether to continue the recent encounter.
source code
 
manage_encounter_types(parent=None) source code
 
edit_encounter_type(parent=None, encounter_type=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, wxgProcedureEAPnl, wxgHospitalStayEditAreaPnl, wxgEncounterEditAreaDlg, wxgEncounterTypeEditAreaPnl, wxgEncounterEditAreaPnl, wxgActiveEncounterPnl, 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().