|
Distinguishing Between Null, Zero, Empty and Invalid in FieldsIn Chameleon versions prior to 4.0, there was a problem in which the difference between 0 and Null in an HL7 message could not be distinguished in Java, Delphi and C#. For example, when using the method, Table.getInteger(col, row), you would get a zero if the message did not have a value in the corresponding field in Java after parsing an incoming HL7 message. To fix this issue for the different parser engines, two functions were added to Chameleon. The table below describes the two functions:
Usage examples are provided for each function and each supported language below:
Using the GetState FunctionC++
C#
Delphi
Java
Using the IsNull FunctionC++
C#
Delphi
Java
|