Module gmLDTimporter
source code
GNUmed LDT importer.
This script automatically imports German pathology result
files in LDT format.
It relies on patient-to-request-ID mappings to be present
in the GNUmed database. It will only import those request
that have a mapping.
The general theory of operation of automatic import at
Hilbert office is as follows:
- automatically retrieve LDT files from labs
- archive them
- make them available in a GNUmed private directory
- run importer every hour
- import those records that have a mapping
- make those records available to TurboMed
- retain unmapped records until next time around
copyright: authors
FIXME: check status on save_payload()s
Version:
$Revision: 1.34 $
Author:
Karsten Hilbert <Karsten.Hilbert@gmx.net>
License:
GPL, details at http://www.gnu.org
Imports:
glob,
os,
sys,
tempfile,
fileinput,
time,
copy,
random,
shutil,
gmCfg,
gmLoginInfo,
gmExceptions,
gmI18N,
gmPathLab,
gmXdtMappings,
gmPerson,
gmPersonSearch,
mxDT