Class Hierarchy   Class Index   Method Index  

CHMparseErrorEnum.h

00001 //---------------------------------------------------------------------------
00002 //
00003 // Module: CHMparseErrorEnum.h
00004 //
00005 // Description:
00006 //
00007 // This file contains declarations for the enumerations used to
00008 // declare parsing errors in the product.  These are used both in
00009 // the COM and C++ interfaces
00010 //
00011 //---------------------------------------------------------------------------
00012 
00013 // Common file with debug macros for use in application
00014 #ifndef __CHM_PARSE_ERROR_ENUM_H__
00015 #define __CHM_PARSE_ERROR_ENUM_H__
00016 
00017 // Parse errors - used for errors with parameters
00018 #define CHM_DEF_peRequiredFieldNotPresent      0x00
00019 #define CHM_DEF_peFieldMaxRepeatsExceeded      0x01
00020 #define CHM_DEF_peUnexpectedExtraFields        0x02
00021 #define CHM_DEF_peFieldMaxLengthExceeded       0x03
00022 #define CHM_DEF_peUnexpectedSegment            0x04
00023 #define CHM_DEF_peRequiredSegmentMissing       0x05
00024 #define CHM_DEF_peRequiredSegmentGroupMissing  0x06
00025 #define CHM_DEF_peUnexpectedTrailingSegments   0x07
00026 #define CHM_DEF_peBadEscapeSequence            0x08
00027 #define CHM_DEF_peNoSegmentIdentifier          0x09
00028 #define CHM_DEF_peBadIntegerFormat             0x0A
00029 #define CHM_DEF_peBadDoubleFormat              0x0B
00030 #define CHM_DEF_peBadDateTimeFormat            0x0C 
00031 #define CHM_DEF_peBadEnumFormat                0x0D 
00032 #define CHM_DEF_peRequiredSubFieldNotPresent    0x0F
00033 #define CHM_DEF_peRequiredSubSubFieldNotPresent 0x10
00034 
00035 // Exceptions - used as codes in CHMerror
00036 #define CHM_DEF_ecPreCondition         0x80000100
00037 #define CHM_DEF_ecPostCondition        0x80000101
00038 #define CHM_DEF_ecFileExists           0x80000200
00039 #define CHM_DEF_ecFileError            0x80000201
00040 #define CHM_DEF_ecBoundaryError        0x80000300
00041 #define CHM_DEF_ecTableContainsData    0x80000400
00042 #define CHM_DEF_ecSystemError          0x80000500
00043 #define CHM_DEF_ecInvalidDateTime      0x80000600
00044 #define CHM_DEF_ecInvalidRepeatChar    0x80000700
00045 #define CHM_DEF_ecIllegalOperation     0x80000800
00046 #define CHM_DEF_ecWrongDataType        0x80000801
00047 #define CHM_DEF_ecUnknownDataType      0x80000900
00048 #define CHM_DEF_ecSerializationError   0x80001000
00049 #define CHM_DEF_ecMessageTooShort      0x80001100
00050 #define CHM_DEF_ecNoHeaderSegment      0x80001200
00051 #define CHM_DEF_ecNoEncodingCharField  0x80001201
00052 #define CHM_DEF_ecNoHeaderSegmentName  0x80001202
00053 #define CHM_DEF_ecNoSegmentDelimiter   0x80001203
00054 #define CHM_DEF_ecHl7NoFieldDelimiter  0x80001204
00055 #define CHM_DEF_ecSubSubWithoutSub     0x80001205
00056 #define CHM_DEF_ecNonExistentSubTable  0x80001300
00057 #define CHM_DEF_ecNoMessagesLoaded     0x80001400
00058 #define CHM_DEF_ecInterfaceFrozen      0x80001500
00059 #define CHM_DEF_ecInterfaceOutOfDate   0x80001501
00060 #define CHM_DEF_ecNotLicensed          0x80001600
00061 #define CHM_DEF_ecBadEquation          0x80001700
00062 #define CHM_DEF_ecSubscriptOutOfRange  0x80002000
00063 
00064 // Parse Results - set of exception codes from the HL7engine
00065 #define CHM_DEF_prUnknownMessage           0x80002001
00066 #define CHM_DEF_prUnknownSegment           0x80002002
00067 #define CHM_DEF_prBadSegmentGrammar        0x80002003
00068 #define CHM_DEF_prBadMessageGrammar        0x80002004
00069 #define CHM_DEF_prNoSegmentIdentifier      0x80002005
00070 #define CHM_DEF_prValidationRuleFailed     0x80002006
00071 #define CHM_DEF_prUnexpectedSegment        0x80002007
00072 #define CHM_DEF_prExpectedSegmentMissing   0x80002008
00073 #define CHM_DEF_prMaxSegmentRepeatExceeded 0x80002009
00074 #define CHM_DEF_prMaxSegmentGroupRepeatExceeded 0x80002010
00075 
00076 #endif  // end of defensive include