forked from ssrowe/go-hl7
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.go
More file actions
48 lines (37 loc) · 1.53 KB
/
constants.go
File metadata and controls
48 lines (37 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package hl7
const (
ANNOTATION_FIELDSEPARATOR = "fieldseparator"
ANNOTATION_DELIMITER = "delimiter" // annotation that triggers the delimiters in the scanner to be reset
ANNOTATION_REQUIRED = "require" // field-annotation: by default all fields are optinal
ANNOTATION_OPTIONAL = "optional" // record-annotation: by default all records are mandatory
ANNOTATION_SEQUENCE = "sequence" // indicating that a sequence number should be generated (output only)
ANNOTATION_LONGDATE = "longdate"
)
type Encoding int
const EncodingUTF8 Encoding = 1
const EncodingASCII Encoding = 2
const EncodingWindows1250 Encoding = 3
const EncodingWindows1251 Encoding = 4
const EncodingWindows1252 Encoding = 5
const EncodingDOS852 Encoding = 6
const EncodingDOS855 Encoding = 7
const EncodingDOS866 Encoding = 8
const EncodingISO8859_1 Encoding = 9
type Timezone string
const TimezoneUTC Timezone = "UTC"
const TimezoneEuropeBerlin Timezone = "Europe/Berlin"
const TimezoneEuropeBudapest Timezone = "Europe/Budapest"
const TimezoneEuropeLondon Timezone = "Europe/London"
type LineBreak int
const CR LineBreak = 0x13
const LF LineBreak = 0x10
const CRLF LineBreak = 0x1310
type FieldSeparator string
const StandardFieldSeparator FieldSeparator = "|"
/* Notation defines how the output format is build
ShortNotation will skip all delimiters to the right of the last value
StandardNotation will always produce as many delimiters as there are values in the export-format
*/
type Notation int
const StandardNotation = 1
const ShortNotation = 2