NAME

hl7d.pl


SYNOPSIS

hl7d.pl [--debug] [--cfg <dirname>] [--port <port>] [--nodetach] [--help]

Options:

--debug
Print lots of information on processing

--cfg
Config dir (defaults to ./etc)

--port
Listen to this port (overrides port from config file)

--nodetach
Do not detach from the console

--help
This message.


DESCRIPTION

This is a forking daemon to handle incoming HL7 messages. The server accepts requests on a port, and dispatches them, according to the plugins.conf file. All plugins must be available on the Perl include paths (@INC). The easy way is to put your plugins in the plugins dir ($HL7D_ROOT/etc/plugins).

The plugin must contain the exec() method, and will be passed the the Net::HL7::Request manpage, a reference to the logger for this server and a hash of plugin options, if there's also a plugin specific configuration file available.

The hl7d process will call the getNextRequest method of the the Net::HL7::Daemon::Client manpage object untill no data is read, to enable multiple messages on a single client. So do not use the getNextRequest method in your action handler, unless you'er really sure you want this!!!


REQUIREMENTS

This server requires:

* Net::HL7, 0.66 or better

and uses an inner class Logging.


AUTHOR

D.A.Dokter <dokter@wyldebeast-wunderliebe.com>


LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


NAME

Logging.pm


SYNOPSIS


DESCRIPTION

This module provides VERY BASIC log4j like logging to you application. The module currently supports six log methods:


PREREQUISITES

None


AUTHOR

D.A.Dokter <dokter@wyldebeast-wunderliebe.com>


LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.