Importer
Incomplete documentation - sorry!
Note
Neil - please put some data in technical/class_headings/Importer.rst
methods and attributes
-
class lib_openmolar.admin.data_import.importer.Importer[source]
Bases: object
this object imports data from xml files and puts them into the database
the data integrity is ensure by the db schema.. so watch output for
errors.
Inherit from this class and overwrite if importing from a different source
for some tables (eg.. I have a subclass which imports data from an
existing openmolar 1 database
-
__init__()[source]
-
ImportWarning
alias of _ImportWarning
-
emit_(*args)
emit signals but be wary of case when there is no gui
(ie. when install demo is called from CLI)
-
emit_finished_signal()
-
import_addresses()[source]
-
import_all(*args)[source]
go to work
Note
all arguments are ignored. arguments are for inherited classes only
-
import_appointments()[source]
-
import_avatars()[source]
-
import_bpe()[source]
-
import_clerical_memos()[source]
-
import_clinical_memos()[source]
-
import_contracted_practitioners()[source]
-
import_directory[source]
returns the file path where XML data files can be found
-
import_notes()[source]
-
import_patients()[source]
-
import_perio()[source]
-
import_practitioners()[source]
-
import_static_charts()[source]
-
import_telephones()[source]
-
import_tx_completed()[source]
-
import_users(ignore_errors=False)[source]
-
insert_null_user()[source]
-
log_errors(warnings, tracebacks)
output any warnings captured during import all
-
register_progress(func, percentage)
feedback on how the import is going
-
run()[source]
calls import_all
-
set_import_directory(directory)[source]
set the file path to the directory where XML data can be found
-
set_session(om2_session)
-
sno_conditions = ''
-
sno_range = None