Module gmSOAPimporter
source code
GNUmed SOAP importer
(specification by Karsten Hilbert <Karsten.Hilbert@gmx.net>)
This script is designed for importing GNUmed SOAP input
"bundles".
-
"bundle" is list of dicts
-
each "bundle" is processed dict by dict
-
the dicts in the list are INDEPENDANT of each other
-
each dict contains information for one new clin_narrative row
-
each dict has the keys: 'soap', 'types', 'text', 'clin_context'
-
'soap':
-
relates to clin_narrative.soap_cat
-
'types':
-
a list of strings
-
the strings must be found in clin_item_type.type
-
strings not found in clin_item_type.type are ignored during
import and the user is warned about that
-
'text':
-
the narrative for clin_narrative.narrative, imported as is
-
'clin_context':
-
'clin_context' is a dictionary containing clinical context
information, required to properly create clinical items. Its
'episode_id' must always be supplied.
Version:
$Revision: 1.24 $
Author:
Carlos Moro <cfmoro1976@yahoo.es>
License:
GPL (details at http://www.gnu.org)
|
soap_bundle_SOAP_CAT_KEY = ' soap '
|
|
soap_bundle_TYPES_KEY = ' types '
|
|
soap_bundle_TEXT_KEY = ' text '
|
|
soap_bundle_CLIN_CTX_KEY = ' clin_context '
|
|
soap_bundle_TYPE_KEY = ' type '
|
|
soap_bundle_EPISODE_ID_KEY = ' episode_id '
|
|
soap_bundle_ENCOUNTER_ID_KEY = ' encounter_id '
|
|
soap_bundle_STAFF_ID_KEY = ' staff_id '
|
|
soap_bundle_SOAP_CATS = [ ' s ' , ' o ' , ' a ' , ' p ' ]
|
Imports:
sys,
re,
logging,
gmExceptions,
gmI18N,
gmDispatcher,
gmClinNarrative,
gmPerson,
gmPersonSearch