Consts

HL7apy - Constants

hl7apy.consts.DEFAULT_ENCODING_CHARS = {'COMPONENT': '^', 'ESCAPE': '\\', 'FIELD': '|', 'GROUP': '\r', 'REPETITION': '~', 'SEGMENT': '\r', 'SUBCOMPONENT': '&'}

Dictionary with default encoding characters as per standard specifications

hl7apy.consts.DEFAULT_VERSION = '2.5'

default hl7 version

class hl7apy.consts.VALIDATION_LEVEL

Allowed validation levels

STRICT = 1

Strict validation

TOLERANT = 2

Tolerant validation

class hl7apy.consts.MLLP_ENCODING_CHARS

MLLP encoding chars

CR = '\r'

Carriage return

EB = '\x1c'

End Block

SB = '\x0b'

Start Block