1Net::HL7(3) User Contributed Perl Documentation Net::HL7(3)
2
3
4
6 Net::HL7
7
9 The Net-HL7 package is a simple Perl API for creating, parsing sending
10 and receiving HL7 messages. To create an empty HL7 message object, do:
11
12 and add segments like:
13
14 For details, please consult the man pages of each specific class, or
15 consult the generated API docs on http://hl7toolkit.sourceforge.net/.
16 You might also check the test files in the 't' directory for examples.
17
18 The Net::HL7 class is only used for documentation purposes (the stuff
19 you're reading right now), to set HL7 configuration properties such as
20 control characters on a global level and to provide a version number of
21 the package to the Perl installation process. This can be used in a
22 'require' statement, or to create a dependency from another Perl
23 package.
24
26 Some HL7 properties may be altered on a global level. Altering the
27 variable makes it changed for this remainder of the lifetime of this
28 Perl process. All HL7 messages will use the values provided here,
29 unless something is changed in the MSH segment concerning these
30 properties.
31
32 SEGMENT_SEPARATOR
33 Separator for segments within a message. Usually this is \015.
34
35 FIELD_SEPARATOR
36 Field separator for this message. In general '|' is used.
37
38 NULL
39 HL7 NULL field, defaults to "". This is therefore different from
40 not setting the fields at all.
41
42 COMPONENT_SEPARATOR
43 Separator used in fields supporting components. Usually this is the
44 '^' character.
45
46 REPETITION_SEPARATOR
47 Separator for fields that may be repeated. Defaults to '~'.
48
49 ESCAPE_CHARACTER
50 Escape character for escaping special characters. Defaults to '\'.
51
52 SUBCOMPONENT_SEPARATOR
53 Separator used in fields supporting subcomponents. Usually this is
54 the '&' character.
55
56 HL7_VERSION
57 This is the version used in the MSH(12) field. Defaults to 2.2.
58
59
60
61perl v5.32.1 2021-01-27 Net::HL7(3)