gm-import_incoming(1) | General Commands Manual | gm-import_incoming(1) |
gm-import_incoming - a script to import a file into the INCOMING area of a GNUmed database.
gm-import_incoming [-h|?] [--help] [--local-import] --file2import=FILE --data-type=TYPE --user=USER [--host=HOST] [--port=PORT]
gm-import_incoming is a script for importing a file into the GNUmed database area where incoming files are stored which have not been linked to any patient. A type is associated with the data for easier recognition.
This script can be used to import for later processing fax images, lab data, referral letters, and similar data which electronically arrives on your system.
Successfully imported files are renamed to FILE.imported within the directory in which FILE resides.
The actual content of TYPE is only limited by the execution environment (locale, encoding, ...) of gm-import_incoming. GNUmed does not need to understand what TYPE means to the user.
Note that this must currently be a GNUmed staff account. It will also work with the cluster superuser (usually "postgres") or the GNUmed database owner (typically "gm-dbo") but using these in production is strongly discouraged for data security reasons.
If this option is not used (or set to an empty string) it will default to connecting over UNIX domain sockets.
There are no options for database name or password.
The script uses the default database name of the GNUmed version the script is released with thereby assuring data does not get imported into an older database following an upgrade.
If a password is needed (that is, if TRUST, IDENT, or PEER authentication is not in use) it must be supplied by either setting the $PGPASSFILE environment variable or using a standard ~/.pgpass file.
http://www.postgresql.org/docs/devel/static/libpq-pgpass.html
~/.pgpass
http://www.postgresql.org/docs/devel/static/libpq-pgpass.html
2016 April 19th | gm-import_incoming |