The user must configure which fields are to be validated. The fields in question must be of the Coded Element (CE) HL7 data type (or compatible format). This data type is composed of up to three sets of subfields:

  1. Is composed of three string subfields for a code identifier, an optional description of the code and a coding system, respectively, representing the main code.
  2. Is similar, but represents an alternative code.
  3. (if present) represents a version, alternate version, and original text.

The first set is required for both code validation and translation. The second and third set are only required if the filter is configured in such a way as needing them; that is, versions are used or code translation is set to use the alternative fields.

Repeating Coded Fields and Coded Fields inside multiple levels of repeating structures are handled by the HL7 External Code Validation.

The structure of HL7 CE like composites is as follows:

  • COMPONENT NAME
  • Identifier
  • Text
  • Name of Coding System
  • Alternate Identifier
  • Alternate Text
  • Name of Alternate Coding System
  • Coding System Version ID
  • Alternate Coding System Version ID
  • Original Text

Configuration of the Code Set

The user must configure the database table(s) containing the coding systems against which coded fields are validated. All coding systems must be in one database.

Property

Description

Table Name

The name of the table in the database.

Identifier Column

The name of the column in the table that contains the coding system's identifiers.

Description Column

The name of the column in the table that contains the identifier descriptions. Leaving this field blank turns off description validation.

Coding System

The name of the coding system.

Version

The version of the coding system. A version can only be included in HL7 2.5 or higher messages so this will often be left blank.

Coding System Column

The name of the column in the table that contains the coding system names.

Version Column

The name of the column in the table that contains the coding system's version. A version can only be included in HL7 2.5 or higher messages so this will often be left blank.

The Code Validation filter can read Coding Systems from three database table structures:

Versions

Versions can be checked in any of the above situations by adding either a version or a version column or both. If version information is checked it is considered part of the coding system; if the coding system exists but the version is wrong this is treated as a coding system wrong.