Package Gnumed :: Package wxpython :: Package patient :: Module gmGP_Immunisation
[frames] | no frames]

Source Code for Module Gnumed.wxpython.patient.gmGP_Immunisation

  1  #====================================================================== 
  2  # GnuMed immunisation/vaccination patient plugin 
  3  # 
  4  # this plugin holds the immunisation details 
  5  # 
  6  # @copyright: author 
  7  #====================================================================== 
  8  # $Source: /cvsroot/gnumed/gnumed/gnumed/client/wxpython/patient/gmGP_Immunisation.py,v $ 
  9  # $Id: gmGP_Immunisation.py,v 1.35 2004/07/17 11:00:31 ncq Exp $ 
 10  __version__ = "$Revision: 1.35 $" 
 11  __author__ = "R.Terry, S.J.Tan, K.Hilbert" 
 12  __license__ = 'GPL (details at http://www.gnu.org)' 
 13   
 14  from Gnumed.wxpython import gmPlugin_Patient, gmVaccWidgets 
 15   
 16  #====================================================================== 
17 -class gmGP_Immunisation(gmPlugin_Patient.wxPatientPlugin):
18 """Plugin to encapsulate the immunisation window.""" 19 20 __icons = { 21 """icon_syringe""": 'x\xdam\xd0\xb1\n\x80 \x10\x06\xe0\xbd\xa7\xf8\xa1\xc1\xa6\x9f$\xe8\x01\x1a\ 22 \x1a[Z\\#\x9a\x8a\xea\xfd\xa7N3\xf4\xb0C\x90\xff\xf3\x0e\xd4\xe6\xb8m5\x1b\ 23 \xdbCV\x07k\xaae6\xc4\x8a\xe1X\xd6=$H\x9a\xaes\x0b\xc1I\xa8G\xa9\xb6\x8d\x87\ 24 \xa9H\xa0@\xafe\xa7\xa8Bi\xa2\xdfs$\x19,G:\x175\xa1\x98W\x85\xc1\x9c\x1e\xcf\ 25 Mc4\x85\x9f%\xfc\xae\x93!\xd5K_\xd4\x86\xf8\xa1?\x88\x12\xf9\x00 =F\x87' 26 } 27
28 - def name (self):
29 return 'Immunisations Window'
30
31 - def MenuInfo (self):
32 return ('view', '&Immunisation')
33
34 - def GetIconData(self, anIconID = None):
35 if anIconID is None: 36 return self.__icons[_("""icon_syringe""")] 37 else: 38 if self.__icons.has_key(anIconID): 39 return self.__icons[anIconID] 40 else: 41 return self.__icons[_("""icon_syringe""")]
42
43 - def GetWidget (self, parent):
44 return gmVaccWidgets.ImmunisationPanel (parent, -1)
45 #====================================================================== 46 # main 47 #---------------------------------------------------------------------- 48 if __name__ == "__main__": 49 print "there isn't really any unit test for this" 50 # from wxPython.wx import * 51 # app = wxPyWidgetTester(size = (600, 600)) 52 # app.SetWidget(gmVaccWidgets.ImmunisationPanel, -1) 53 # app.MainLoop() 54 #====================================================================== 55 # $Log: gmGP_Immunisation.py,v $ 56 # Revision 1.35 2004/07/17 11:00:31 ncq 57 # - cleanup 58 # 59 # Revision 1.34 2004/07/15 23:16:21 ncq 60 # - refactor vaccinations GUI code into 61 # - gmVaccWidgets.py: layout manager independant widgets 62 # - gui/gmVaccinationsPlugins.py: Horst space notebook plugin 63 # - patient/gmPG_Immunisation.py: erstwhile Richard space patient plugin 64 # 65 # Revision 1.33 2004/06/25 13:28:00 ncq 66 # - logically separate notebook and clinical window plugins completely 67 # 68 # Revision 1.32 2004/06/13 22:31:50 ncq 69 # - gb['main.toolbar'] -> gb['main.top_panel'] 70 # - self.internal_name() -> self.__class__.__name__ 71 # - remove set_widget_reference() 72 # - cleanup 73 # - fix lazy load in _on_patient_selected() 74 # - fix lazy load in ReceiveFocus() 75 # - use self._widget in self.GetWidget() 76 # - override populate_with_data() 77 # - use gb['main.notebook.raised_plugin'] 78 # 79 # Revision 1.31 2004/05/18 22:40:04 ncq 80 # - latest due -> latest_due 81 # 82 # Revision 1.30 2004/05/18 20:43:17 ncq 83 # - check get_clinical_record() return status 84 # 85 # Revision 1.29 2004/05/13 19:27:10 ncq 86 # - dealing with VOs now, not dicts anymore, when calling get_missing_vaccinations() 87 # 88 # Revision 1.28 2004/05/13 00:07:35 ncq 89 # - work with new/improved get_missing_vaccinations() 90 # 91 # Revision 1.27 2004/04/24 12:59:17 ncq 92 # - all shiny and new, vastly improved vaccinations 93 # handling via clinical item objects 94 # - mainly thanks to Carlos Moro 95 # 96 # Revision 1.26 2004/03/09 07:34:51 ihaywood 97 # reactivating plugins 98 # 99 # Revision 1.25 2004/02/25 09:46:23 ncq 100 # - import from pycommon now, not python-common 101 # 102 # Revision 1.24 2004/02/02 16:19:49 ncq 103 # - adapt to new indication-based views in missing vaccs list 104 # 105 # Revision 1.23 2004/01/26 22:07:45 ncq 106 # - handling failure to retrieve vacc_ind into business object 107 # 108 # Revision 1.22 2004/01/26 21:53:39 ncq 109 # - gracefully handle failure to retrieve vaccinated indications list 110 # 111 # Revision 1.21 2004/01/18 21:54:39 ncq 112 # - rework from schedule/disease to indication paradigm 113 # - make progress note work in edit area 114 # - connect to vacc_mod_db signal and properly handle it 115 # - _update_ui_content() 116 # 117 # Revision 1.20 2004/01/06 10:09:06 ncq 118 # - reorder due/overdue listing 119 # 120 # Revision 1.19 2003/12/29 17:10:59 uid66147 121 # - upon selection transfer given_vaccination into edit area for modification 122 # 123 # Revision 1.18 2003/12/02 02:12:06 ncq 124 # - further cleanups 125 # - lower list: format dates sanely, hook up double-click 126 # - only edit area workup left 127 # 128 # Revision 1.17 2003/12/01 01:07:30 ncq 129 # - rip out, clean up 130 # - connect middle two lists 131 # - start connecting bottom list - doesn't display date/time properly yet 132 # 133 # Revision 1.16 2003/11/30 01:12:10 ncq 134 # - lots of cleanup 135 # - listen to patient_selected 136 # - actually fetch middle two lists from database 137 # 138 # Revision 1.15 2003/11/17 10:56:41 sjtan 139 # 140 # synced and commiting. 141 # 142 # manual edit areas modelled after r.terry's specs. 143 # Revision 1.14 2003/11/09 14:53:53 ncq 144 # - work on backend link 145 # 146 # Revision 1.13 2003/10/26 01:36:14 ncq 147 # - gmTmpPatient -> gmPatient 148 # 149 # Revision 1.12 2003/10/19 12:25:07 ncq 150 # - start connecting to backend 151 # 152 # Revision 1.11 2003/09/21 00:24:19 sjtan 153 # 154 # rollback. 155 # 156 # Revision 1.9 2003/02/07 14:29:32 ncq 157 # - == None -> is None 158 # 159 # Revision 1.8 2003/02/07 12:18:14 ncq 160 # - cvs metadata keywords 161 # 162 # @change log: 163 # 10.06.2002 rterry initial implementation, untested 164 # 30.07.2002 rterry icons inserted in file, code cleaned up 165