1
2gm-import_incoming(1)       General Commands Manual      gm-import_incoming(1)
3
4
5

NAME

7       gm-import_incoming  -  a script to import a file into the INCOMING area
8       of a GNUmed database.
9
10
11

SYNOPSIS

13       gm-import_incoming [-h|?]  [--help] [--local-import] --file2import=FILE
14       --data-type=TYPE --user=USER [--host=HOST] [--port=PORT]
15
16
17

DESCRIPTION

19       gm-import_incoming  is  a  script  for importing a file into the GNUmed
20       database area where incoming files  are  stored  which  have  not  been
21       linked  to  any  patient. A type is associated with the data for easier
22       recognition.
23
24       This script can be used to import for later processing fax images,  lab
25       data,  referral  letters, and similar data which electronically arrives
26       on your system.
27
28
29

OPTIONS

31       --help, -h, -?
32              Show a help screen.
33
34       --local-import
35              At startup adjust the PYTHONPATH such that the GNUmed client  is
36              run  from a local copy of the source tree (say, an unpacked tar‐
37              ball) rather than from a proper system-wide installation.
38
39       --file2import=FILE
40              This is the file to be imported into GNUmed.
41
42              Successfully imported files are renamed to FILE.imported  within
43              the directory in which FILE resides.
44
45       --data-type=TYPE
46              A  short  moniker, say, a word or two, used to describe the data
47              in FILE to the user when viewed inside GNUmed.
48
49              The actual content of TYPE is  only  limited  by  the  execution
50              environment   (locale,  encoding,  ...)  of  gm-import_incoming.
51              GNUmed does not need to understand what TYPE means to the user.
52
53       --user=USER
54              The PostgreSQL user to be used for connecting to the database.
55
56              Note that this must currently be a GNUmed staff account. It will
57              also work with the cluster superuser (usually "postgres") or the
58              GNUmed database owner (typically "gm-dbo") but  using  these  in
59              production is strongly discouraged for data security reasons.
60
61       --host=HOST
62              The  hostname  of  the  machine  PostgreSQL  is  running  on, if
63              required.
64
65              If this option is not used (or set to an empty string)  it  will
66              default to connecting over UNIX domain sockets.
67
68       --port=PORT
69              The  port PostgreSQL is listening on. Default PostgreSQL instal‐
70              lations listen on port 5432.
71
72       There are no options for database name or password.
73
74       The script uses the default database name of  the  GNUmed  version  the
75       script  is  released  with  thereby assuring data does not get imported
76       into an older database following an upgrade.
77
78       If a password is needed (that is, if TRUST, IDENT, or PEER  authentica‐
79       tion  is not in use) it must be supplied by either setting the $PGPASS‐
80       FILE environment variable or using a standard ~/.pgpass file.
81
82
83

ENVIRONMENT

85       PGPASSFILE
86
87            http://www.postgresql.org/docs/devel/static/libpq-pgpass.html
88
89

FILES

91       ~/.pgpass
92
93            http://www.postgresql.org/docs/devel/static/libpq-pgpass.html
94
95
96

SEE ALSO

98       http://wiki.gnumed.de
99              Detailed Wiki-style documentation
100
101       /usr/share/doc/gnumed/
102              Local documentation
103
104       man -k gm-*
105              List man pages on gm-* commands.
106
107
108
109gm-import_incoming              2016 April 19th          gm-import_incoming(1)
Impressum