gnumed:mjohannsen-gnumed.git
7 years agoBump to 0.7.10. rel-0-7-patches rel-0-7-10
Karsten Hilbert [Mon, 29 Nov 2010 12:58:29 +0000 (13:58 +0100)]
Bump to 0.7.10.

7 years agoFix insecure setting of PYTHONPATH as found by Debian Squeeze (#605159).
Karsten Hilbert [Mon, 29 Nov 2010 12:38:19 +0000 (13:38 +0100)]
Fix insecure setting of PYTHONPATH as found by Debian Squeeze (#605159).

7 years agoException on trying to create hospital stay without episode.
Karsten Hilbert [Fri, 24 Sep 2010 20:26:43 +0000 (22:26 +0200)]
Exception on trying to create hospital stay without episode.

7 years agoBump to 0.7.9. rel-0-7-9
Karsten Hilbert [Thu, 9 Sep 2010 10:14:21 +0000 (12:14 +0200)]
Bump to 0.7.9.

7 years agoFix exception inside *wxPython itself* when wrapping long expando.py input.
Karsten Hilbert [Wed, 8 Sep 2010 15:21:22 +0000 (17:21 +0200)]
Fix exception inside *wxPython itself* when wrapping long expando.py input.

- fix lifted from SVN TRUNK and overriding method in platform expando.py
- traceback said "pte: index out of range" in _wrapLine()

7 years agoFix creating DOB in new-patient on Windows.
Karsten Hilbert [Thu, 9 Sep 2010 09:39:30 +0000 (11:39 +0200)]
Fix creating DOB in new-patient on Windows.

7 years agoProperly create allergies from multi-INN drugs.
Karsten Hilbert [Thu, 29 Jul 2010 15:24:43 +0000 (17:24 +0200)]
Properly create allergies from multi-INN drugs.

- if an allergy was created from each of a multi-INN
  drug the second would overwrite the first in terms
  of the allergene :-(

7 years agoBump version to 0.7.8. rel-0-7-8
Karsten Hilbert [Thu, 29 Jul 2010 07:46:48 +0000 (09:46 +0200)]
Bump version to 0.7.8.

7 years agoFix two shutdown bugs.
Karsten Hilbert [Sat, 24 Jul 2010 13:00:47 +0000 (15:00 +0200)]
Fix two shutdown bugs.

- encoding exception with shutdown message
- backend listener connection already closed

7 years agoref.v_substance_in_brand does not have external_code_type_brand
Karsten Hilbert [Thu, 22 Jul 2010 15:48:00 +0000 (17:48 +0200)]
ref.v_substance_in_brand does not have external_code_type_brand

7 years agov_substance in brand does not have external_code_type_brand
Karsten Hilbert [Thu, 22 Jul 2010 15:47:05 +0000 (17:47 +0200)]
v_substance in brand does not have external_code_type_brand

8 years agoBump to version 0.7.7.
Karsten Hilbert [Fri, 16 Jul 2010 12:33:27 +0000 (14:33 +0200)]
Bump to version 0.7.7.

8 years agoFix medication saving.
Karsten Hilbert [Fri, 16 Jul 2010 12:26:27 +0000 (14:26 +0200)]
Fix medication saving.

8 years agoFix exception when updating medication.
Karsten Hilbert [Wed, 14 Jul 2010 15:34:50 +0000 (17:34 +0200)]
Fix exception when updating medication.

- cannot apply gm.is_null_or_blank_string
  to .duration interval

8 years agoFix nasty bug when saving several notelets at once.
Karsten Hilbert [Tue, 13 Jul 2010 14:45:16 +0000 (16:45 +0200)]
Fix nasty bug when saving several notelets at once.

- we looped 0 -> page_count but also deleted pages along
  the way thereby invalidating the page index ...

8 years agoDon't forget to cwd() back while creating LaTeX document.
Karsten Hilbert [Fri, 9 Jul 2010 20:57:05 +0000 (22:57 +0200)]
Don't forget to cwd() back while creating LaTeX document.

- in certain cases GNUmed could stay in the old directory
  which would then get deleted making os.get_cwd() fail

8 years agoFreeDIAMS.check_drug_interactions() didn't conform to call signature.
Karsten Hilbert [Wed, 7 Jul 2010 19:54:34 +0000 (21:54 +0200)]
FreeDIAMS.check_drug_interactions() didn't conform to call signature.

8 years agoNo more cursor.isready() in psycopg2 2.2 so work around that.
Karsten Hilbert [Wed, 7 Jul 2010 19:29:32 +0000 (21:29 +0200)]
No more cursor.isready() in psycopg2 2.2 so work around that.

- use a query to poll data
- for that use a dedicated cursor

8 years agoBootstrapping still didn't quite work under Russian locale.
Karsten Hilbert [Wed, 7 Jul 2010 12:55:34 +0000 (14:55 +0200)]
Bootstrapping still didn't quite work under Russian locale.

- try to fix by using %d rather than %s
- must use "global" on variable access

8 years agoWork around cwd() permission problem on MacOSX.
Karsten Hilbert [Mon, 5 Jul 2010 14:17:36 +0000 (16:17 +0200)]
Work around cwd() permission problem on MacOSX.

- os.path.getcwd() fails on MacOSX when running sytemwide

8 years agoFix a few cases where the DOB could become <today> when entering new persons.
Karsten Hilbert [Thu, 1 Jul 2010 14:41:15 +0000 (16:41 +0200)]
Fix a few cases where the DOB could become <today> when entering new persons.

- add wx_now_here()
- work around date picker ctrl failing to pick up keyboard changes
- do not set ranges as that will make invalids become today !!

8 years agoCleaner checking of DOB on new-person creation.
Karsten Hilbert [Thu, 1 Jul 2010 11:34:43 +0000 (13:34 +0200)]
Cleaner checking of DOB on new-person creation.

8 years agoEver better detection of whether cluster supports unicode.
Karsten Hilbert [Thu, 1 Jul 2010 10:26:06 +0000 (12:26 +0200)]
Ever better detection of whether cluster supports unicode.

8 years agoStamp 0.7.6 release. rel-0-7-6
Karsten Hilbert [Mon, 28 Jun 2010 12:31:03 +0000 (14:31 +0200)]
Stamp 0.7.6 release.

8 years agoFix exception when aborting person creation during adding staff.
Karsten Hilbert [Mon, 28 Jun 2010 11:57:16 +0000 (13:57 +0200)]
Fix exception when aborting person creation during adding staff.

- also fix undefined def_country when def_region is not set

8 years agoProperly poll database connection socket on psycopg2 2.2.
Karsten Hilbert [Sun, 27 Jun 2010 22:19:17 +0000 (00:19 +0200)]
Properly poll database connection socket on psycopg2 2.2.

- first seen on MacOSX
- fileno() moved from cursor class to connection class

8 years agoFix old non-fatal errors on v9-10 bootstrapping and make gmPsql more robust in logging.
Karsten Hilbert [Thu, 17 Jun 2010 10:08:03 +0000 (12:08 +0200)]
Fix old non-fatal errors on v9-10 bootstrapping and make gmPsql more robust in logging.

8 years agoMuch improved robustness when formatting PostgreSQL messages in strange languages.
Karsten Hilbert [Tue, 15 Jun 2010 21:40:23 +0000 (23:40 +0200)]
Much improved robustness when formatting PostgreSQL messages in strange languages.

- try: to print message on console anyway
- log hint without the problematic message

8 years agoFix failure on using "allergy_state" placeholder when "last_confirmed" is None.
Karsten Hilbert [Mon, 14 Jun 2010 13:57:54 +0000 (15:57 +0200)]
Fix failure on using "allergy_state" placeholder when "last_confirmed" is None.

8 years agoFix faulty variable access when detecting OOo UNO bridge.
Karsten Hilbert [Mon, 14 Jun 2010 10:38:35 +0000 (12:38 +0200)]
Fix faulty variable access when detecting OOo UNO bridge.

8 years agoBump version to (0.7/v13).5. rel-0-7-5
Karsten Hilbert [Tue, 8 Jun 2010 12:04:35 +0000 (14:04 +0200)]
Bump version to (0.7/v13).5.

8 years agoFail after using os.system() as Windows does not properly understand exit codes.
Karsten Hilbert [Sun, 6 Jun 2010 20:51:51 +0000 (22:51 +0200)]
Fail after using os.system() as Windows does not properly understand exit codes.

8 years agoMake sOAP fields scrollable to when typing a lot into Soap.
Karsten Hilbert [Tue, 25 May 2010 07:21:01 +0000 (09:21 +0200)]
Make sOAP fields scrollable to when typing a lot into Soap.

When typing a lot into the top soap fields they do
expand but the ones below it cannot be reached anymore
due to lack of a scrollbar. Reported by J.Jaarsveld as
bug #583019 on Launchpad.

8 years agoBump to 0.7.4. rel-0-7-4
Karsten Hilbert [Sat, 22 May 2010 19:51:52 +0000 (21:51 +0200)]
Bump to 0.7.4.

8 years agoSlightly improved query handling in data mining widget.
Karsten Hilbert [Wed, 19 May 2010 20:51:59 +0000 (22:51 +0200)]
Slightly improved query handling in data mining widget.

8 years agoFix DISTINCT ON when retrieving DDDs for ATC.
Karsten Hilbert [Wed, 19 May 2010 12:34:51 +0000 (14:34 +0200)]
Fix DISTINCT ON when retrieving DDDs for ATC.

8 years agoDo not throw exception when medication list template is not suitable.
Karsten Hilbert [Wed, 19 May 2010 12:10:54 +0000 (14:10 +0200)]
Do not throw exception when medication list template is not suitable.

8 years agoFix exception when not selecting an episode but pressing OK after printing letter.
Karsten Hilbert [Sat, 15 May 2010 21:04:20 +0000 (23:04 +0200)]
Fix exception when not selecting an episode but pressing OK after printing letter.

- the episode selector allowed to not select any episode
  but still press [OK]

8 years agoBump version to 0.7.3/13.3. rel-0-7-3
Karsten Hilbert [Sat, 15 May 2010 13:31:52 +0000 (15:31 +0200)]
Bump version to 0.7.3/13.3.

8 years agoBetter allow pseudo-setting current patient from gmCurrentPatient(), too.
Karsten Hilbert [Sat, 15 May 2010 13:27:27 +0000 (15:27 +0200)]
Better allow pseudo-setting current patient from gmCurrentPatient(), too.

- IOW, setting it from itself
- won't actually do anything, eventually

8 years agoBetter deal with dob-less persons in waiting list.
Karsten Hilbert [Sat, 15 May 2010 12:38:06 +0000 (14:38 +0200)]
Better deal with dob-less persons in waiting list.

- items aren't cIdentity's so cannot use .get_formatted_dob()
- use plain ['dob'] for now
- consider better fix for HEAD

8 years agoFix mogrifying xsanerc when no EOL has been seen.
Karsten Hilbert [Sat, 15 May 2010 11:57:55 +0000 (13:57 +0200)]
Fix mogrifying xsanerc when no EOL has been seen.

8 years agoAccess proper column when setting default country.
Karsten Hilbert [Sat, 15 May 2010 09:22:38 +0000 (11:22 +0200)]
Access proper column when setting default country.

- get_countries() returns ['name'] rather than ['country']

8 years agoFixed missing "s" after % noted in Italian log file.
Karsten Hilbert [Sat, 15 May 2010 09:14:15 +0000 (11:14 +0200)]
Fixed missing "s" after % noted in Italian log file.

8 years agoProperly deal with un-DOBed persons.
Karsten Hilbert [Thu, 13 May 2010 17:32:46 +0000 (19:32 +0200)]
Properly deal with un-DOBed persons.

8 years agoAdd missing CHANGELOG entries.
Karsten Hilbert [Wed, 12 May 2010 12:21:50 +0000 (14:21 +0200)]
Add missing CHANGELOG entries.

8 years agoMore robust acquiring of data from image sources.
Karsten Hilbert [Wed, 12 May 2010 12:14:39 +0000 (14:14 +0200)]
More robust acquiring of data from image sources.

- switch XSane fault signalling to OSError
- catch OSError in all places including when getting patient picture

8 years agoFail gracefully on failure to read MMI/Gelbe Liste data version file.
Karsten Hilbert [Mon, 10 May 2010 12:53:49 +0000 (14:53 +0200)]
Fail gracefully on failure to read MMI/Gelbe Liste data version file.

8 years agoBump version to 0.7.2/v13.2. rel-0-7-2
Karsten Hilbert [Wed, 5 May 2010 11:36:17 +0000 (13:36 +0200)]
Bump version to 0.7.2/v13.2.

8 years agoModernize logging in gmPsql.py.
Karsten Hilbert [Wed, 5 May 2010 11:04:09 +0000 (13:04 +0200)]
Modernize logging in gmPsql.py.

- this still used ASCII
- better use unicode these days so our Russian friends can report problems

8 years agoDo not fail if laterality happens to be u'' or some other illegal value.
Karsten Hilbert [Wed, 5 May 2010 10:24:50 +0000 (12:24 +0200)]
Do not fail if laterality happens to be u'' or some other illegal value.

8 years agoBetter log unhandled exceptions.
Karsten Hilbert [Wed, 5 May 2010 09:58:50 +0000 (11:58 +0200)]
Better log unhandled exceptions.

8 years agoMake bootstrapper accept any cased variation of uTf(-)8.
Karsten Hilbert [Wed, 5 May 2010 09:29:17 +0000 (11:29 +0200)]
Make bootstrapper accept any cased variation of uTf(-)8.

Apparently, some Russion PostgreSQLs run with .utf8.

8 years agoFix exception when trying to write letter from template for which there's no engine.
Karsten Hilbert [Thu, 29 Apr 2010 20:56:19 +0000 (22:56 +0200)]
Fix exception when trying to write letter from template for which there's no engine.

8 years agoTry finding the OpenOffice installation if simply importing uno.py fails.
Karsten Hilbert [Thu, 29 Apr 2010 12:25:59 +0000 (14:25 +0200)]
Try finding the OpenOffice installation if simply importing uno.py fails.

- method recommended by http://udk.openoffice.org/common/man/spec/transparentofficecomponents.html

8 years agoDo not fail creating new person record when called from unsuccessful search.
Karsten Hilbert [Tue, 27 Apr 2010 21:38:33 +0000 (23:38 +0200)]
Do not fail creating new person record when called from unsuccessful search.

- cannot use patient search text ctrl as parent

8 years agoImprove detection of unconfigured visual progress notes editor.
Karsten Hilbert [Tue, 27 Apr 2010 20:48:30 +0000 (22:48 +0200)]
Improve detection of unconfigured visual progress notes editor.

8 years agoActually fail the DB connect if we detect a secondary problem !
Karsten Hilbert [Thu, 22 Apr 2010 12:19:45 +0000 (14:19 +0200)]
Actually fail the DB connect if we detect a secondary problem !

8 years agoDon't use potentially dangerous gnumed.py arguments when running from inside tarball.
Karsten Hilbert [Thu, 22 Apr 2010 10:40:44 +0000 (12:40 +0200)]
Don't use potentially dangerous gnumed.py arguments when running from inside tarball.

- no --override-schema-check
- no --skip-update-check

8 years agoBump to 0.7.1/v13.1. rel-0-7-1
Karsten Hilbert [Tue, 20 Apr 2010 10:42:13 +0000 (12:42 +0200)]
Bump to 0.7.1/v13.1.

8 years agoAdjust .local_base_dir to gnumed.py move.
Karsten Hilbert [Thu, 15 Apr 2010 12:44:08 +0000 (14:44 +0200)]
Adjust .local_base_dir to gnumed.py move.

Due to the gnumed.py move .local_base_dir went up one
level thereby invalidating .system_app_data_dir if
running from a tarball without a prior systemwide
installation thereby making looking for resources fail.

8 years agoFix missing decode()s on some .strftime()s.
Karsten Hilbert [Thu, 15 Apr 2010 09:48:09 +0000 (11:48 +0200)]
Fix missing decode()s on some .strftime()s.

- including cPerson.get_formatted_dob()

8 years agoProperly report missing CLI-derived config file.
Karsten Hilbert [Thu, 15 Apr 2010 09:13:08 +0000 (11:13 +0200)]
Properly report missing CLI-derived config file.

- exception on faulty constant/variable access

8 years agoRemoved spurious print() when switching encounters.
Karsten Hilbert [Mon, 12 Apr 2010 14:02:36 +0000 (16:02 +0200)]
Removed spurious print() when switching encounters.

8 years agoSet up for 0.7.0/v13. rel-0-7-0
Karsten Hilbert [Sun, 11 Apr 2010 12:15:45 +0000 (14:15 +0200)]
Set up for 0.7.0/v13.

8 years agoMerge branch 'master' into 0-7-rc
Karsten Hilbert [Sun, 11 Apr 2010 11:05:44 +0000 (13:05 +0200)]
Merge branch 'master' into 0-7-rc

8 years agoFix problem with starting new encounter after old one was saved already. rel-0-7
Karsten Hilbert [Sun, 11 Apr 2010 11:00:11 +0000 (13:00 +0200)]
Fix problem with starting new encounter after old one was saved already.

- we misinterpreted the return of cEncounter.same_payload()

8 years agoCompare encounter.started/last_affirmed only to the minute level.
Karsten Hilbert [Sat, 10 Apr 2010 17:44:12 +0000 (19:44 +0200)]
Compare encounter.started/last_affirmed only to the minute level.

- this avoids false positives

8 years agoBump version to rc5.
Karsten Hilbert [Thu, 8 Apr 2010 16:23:50 +0000 (18:23 +0200)]
Bump version to rc5.

8 years agoMerge branch 'master' into 0-7-rc
Karsten Hilbert [Thu, 8 Apr 2010 16:22:23 +0000 (18:22 +0200)]
Merge branch 'master' into 0-7-rc

8 years agoWhen continuing encounters update last_affirmed properly if not modified earlier.
Karsten Hilbert [Thu, 8 Apr 2010 15:49:47 +0000 (17:49 +0200)]
When continuing encounters update last_affirmed properly if not modified earlier.

- fix cEncounter.set_active()
- but use explicit logic in cClinicalRecord

8 years agoWhen selecting a file as a form template use appropriate per-engine filename pattern.
Karsten Hilbert [Thu, 8 Apr 2010 12:50:45 +0000 (14:50 +0200)]
When selecting a file as a form template use appropriate per-engine filename pattern.

8 years agoFix data import script name clash problem during import.
Karsten Hilbert [Thu, 8 Apr 2010 11:30:50 +0000 (13:30 +0200)]
Fix data import script name clash problem during import.

- assume bootstrapping at least two versions in lock-step
- assume both use a same-name dataset import script
- the second instance did not work because the first
  one was already imported as a module of the same name ...
- so try our best to un-import the script

8 years agoImproved logging when %s mismatch in translation.
Karsten Hilbert [Thu, 8 Apr 2010 10:41:40 +0000 (12:41 +0200)]
Improved logging when %s mismatch in translation.

8 years agoFix faulty translation.
Karsten Hilbert [Thu, 8 Apr 2010 10:41:16 +0000 (12:41 +0200)]
Fix faulty translation.

8 years agoFix faulty attribute access on cMedDoc.
Karsten Hilbert [Thu, 8 Apr 2010 10:40:48 +0000 (12:40 +0200)]
Fix faulty attribute access on cMedDoc.

8 years agoMake .parts and has_unreviewed_parts properties of cMedDoc.
Karsten Hilbert [Thu, 8 Apr 2010 10:00:04 +0000 (12:00 +0200)]
Make .parts and has_unreviewed_parts properties of cMedDoc.

8 years agoBump to .rc4.
Karsten Hilbert [Tue, 6 Apr 2010 21:24:26 +0000 (23:24 +0200)]
Bump to .rc4.

8 years agoMerge branch 'master' into 0-7-rc
Karsten Hilbert [Tue, 6 Apr 2010 21:23:10 +0000 (23:23 +0200)]
Merge branch 'master' into 0-7-rc

8 years agoWhen using configure_string_option() don't fail on floats.
Karsten Hilbert [Tue, 6 Apr 2010 21:22:15 +0000 (23:22 +0200)]
When using configure_string_option() don't fail on floats.

- noticed with OOo settle time

8 years agoEventually convince the document tree to sort documents.
Karsten Hilbert [Tue, 6 Apr 2010 20:42:35 +0000 (22:42 +0200)]
Eventually convince the document tree to sort documents.

8 years agoDo not include docs/test results in issue formatting when there are no episodes on...
Karsten Hilbert [Tue, 6 Apr 2010 17:19:38 +0000 (19:19 +0200)]
Do not include docs/test results in issue formatting when there are no episodes on that issue.

8 years agoSpeed up getting document parts.
Karsten Hilbert [Tue, 6 Apr 2010 17:18:49 +0000 (19:18 +0200)]
Speed up getting document parts.

8 years agoProperly import reference data even when bootstrapping multiple DBs at once.
Karsten Hilbert [Tue, 6 Apr 2010 17:15:32 +0000 (19:15 +0200)]
Properly import reference data even when bootstrapping multiple DBs at once.

Import_data() was run too late, thus catching only the
very last database. However, we may also need it for
earlier databases, say, for importing templates etc.

8 years agoMissing :.
Karsten Hilbert [Thu, 1 Apr 2010 19:10:07 +0000 (21:10 +0200)]
Missing :.

8 years agoRework get_documents() to only access the database once.
Karsten Hilbert [Thu, 1 Apr 2010 19:01:40 +0000 (21:01 +0200)]
Rework get_documents() to only access the database once.

8 years agoMerge branch 'master' into 0-7-rc
Karsten Hilbert [Thu, 1 Apr 2010 10:50:16 +0000 (12:50 +0200)]
Merge branch 'master' into 0-7-rc

8 years agoImproved Windows bogus sort handling.
Karsten Hilbert [Thu, 1 Apr 2010 10:49:46 +0000 (12:49 +0200)]
Improved Windows bogus sort handling.

8 years agoNeeded an explicit .Destroy() on the dummy EA panel in order to get rid of it complet...
Karsten Hilbert [Tue, 30 Mar 2010 21:53:41 +0000 (23:53 +0200)]
Needed an explicit .Destroy() on the dummy EA panel in order to get rid of it completely, layout-wise.

8 years agoMerge branch 'master' into 0-7-rc
Karsten Hilbert [Tue, 30 Mar 2010 14:31:55 +0000 (16:31 +0200)]
Merge branch 'master' into 0-7-rc

8 years agobusiness/gmMedDoc -> business/gmDocuments.py.
Karsten Hilbert [Tue, 30 Mar 2010 14:30:26 +0000 (16:30 +0200)]
business/gmMedDoc -> business/gmDocuments.py.

8 years agoCleanup.
Karsten Hilbert [Tue, 30 Mar 2010 14:23:47 +0000 (16:23 +0200)]
Cleanup.

8 years agoMerge branch 'master' into 0-7-rc
Karsten Hilbert [Tue, 30 Mar 2010 14:19:50 +0000 (16:19 +0200)]
Merge branch 'master' into 0-7-rc

8 years agoLots of i18n fixes.
Karsten Hilbert [Tue, 30 Mar 2010 14:17:47 +0000 (16:17 +0200)]
Lots of i18n fixes.

- added Catalan
- updated German/Dutch
- fixed some _()ed strings
- improved helper scripts

8 years agoLucky day implementation.
Karsten Hilbert [Tue, 30 Mar 2010 12:19:11 +0000 (14:19 +0200)]
Lucky day implementation.

8 years agoDon't remove gnumed.pot anymore now that it's a respected non-debris file.
Karsten Hilbert [Mon, 29 Mar 2010 15:16:41 +0000 (17:16 +0200)]
Don't remove gnumed.pot anymore now that it's a respected non-debris file.

8 years agoAdd an explicit gnumed.pot, for chrissake.
Karsten Hilbert [Mon, 29 Mar 2010 14:24:03 +0000 (16:24 +0200)]
Add an explicit gnumed.pot, for chrissake.

- launchpad seems to want that to facility auto-sync the translation source
- so, add and unignore it
- also, make a language-code-less create-gnumed_po.sh create it
- one more German string

8 years agoYet again new Windows bootstrapping batch.
Karsten Hilbert [Mon, 29 Mar 2010 13:57:20 +0000 (15:57 +0200)]
Yet again new Windows bootstrapping batch.

8 years agoMerge branch 'master' into 0-7-rc
Karsten Hilbert [Thu, 25 Mar 2010 11:19:33 +0000 (12:19 +0100)]
Merge branch 'master' into 0-7-rc

8 years agoProper engine type for visual progress note templates.
Karsten Hilbert [Thu, 25 Mar 2010 09:28:43 +0000 (10:28 +0100)]
Proper engine type for visual progress note templates.