1Net::HL7::Connection(3)User Contributed Perl DocumentatioNnet::HL7::Connection(3)
2
3
4

NAME

6       Net::HL7::Connection - An HL7 connection
7

SYNOPSIS

9       use Net::HL7::Connection; use Net::HL7::Request;
10
11       my $conn = new Net::HL7::Connection('localhost', 8089);
12
13       my $req = new Net::HL7::Request();
14
15       ... set some request attributes
16
17       my $res = $conn->send($req);
18
19       $conn->close();
20

DESCRIPTION

22       The Net::HL7::Connection object represents the tcp connection to the
23       HL7 message broker. The Connection has only two useful methods (apart
24       from the constructor), send and close. The 'send' method takes a
25       Net::HL7::Request as argument, and returns a Net::HL7::Response. The
26       send method can be used more than once, before the connection is
27       closed.
28

FIELDS

30       The Connection object holds the following fields:
31
32       MESSAGE_PREFIX
33           The prefix to be sent to the HL7 server to initiate the message.
34           Defaults to \013.
35
36       MESSAGE_SUFFIX
37           End of message signal for HL7 server. Defaults to \034\015.
38

METHODS

40       The following methods are available:
41
42       $c = new Net::HL7::Connection( $host, $port[, Timeout = timeout] )>
43       Creates a connection to a HL7 server, or returns undef when a
44       connection could not be established. timeout is optional, and will
45       default to 10 seconds.
46       send($request)
47           Sends a Net::HL7::Request object over this connection.
48
49       close()
50           Close the connection.
51

AUTHOR

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

LICENSE

56       Copyright (c) 2002 D.A.Dokter. All rights reserved.  This program is
57       free software; you can redistribute it and/or modify it under the same
58       terms as Perl itself.
59
60
61
62perl v5.32.0                      2020-07-28           Net::HL7::Connection(3)
Impressum