Code Format

From Wiki

Jump to: navigation, search

The Code Format defined for a particular Level of a Code List/CV Set defines the pattern that controls what Codes are valid for Code List Elements belonging to that Level.

A Code Format is made up of a sequence of pattern characters (e.g. NnnA) where:

Pattern char Description
N A single digit is expected
n A single digit is allowed
A A single alphabetic is expected
a A single alphabetic is allowed
Z A single alphanumeric is expected
z A single alphanumeric is allowed
p A punctuation character (. - / : |) is allowed
* Between 1 and 255 printable characters including spaces are allowed - no other rules are tested

So, NNa would match 12 or 34K but not 1 or 567

Note that the 'p' option is only really intended to handle badly structured code lists where some elements have codes containing a punctuation character and others don't or have a different punctuation character. Where there is a consistent character separating different code components the code list should be structured into two (or more) Levels and the separator character should be handled as a Code Prefix for the lower Level(s).

The * option (known as Free Format) relaxes Code Format checks on Code Lists so that lists that do not have properly structured codes can still be recorded and mapped. Please use this as a last resort as it bypasses many of the data quality checks that Listpoint otherwise applies against recorded code lists to try to avoid inadvertent errors. A single * is all that is required.

Personal tools