Skip to main content
Version: v0.0.2

Variable: IK4_SYNTAX_ERROR_CODES

const IK4_SYNTAX_ERROR_CODES: object

IK4-03 implementation data element syntax error codes (ASC X12 code list 723). Cited per IK4 segment to identify the issue against the inbound element/component/repetition.

  • 1 - Required data element missing.
  • 2 - Conditional required data element missing.
  • 3 - Too many data elements.
  • 4 - Data element too short.
  • 5 - Data element too long.
  • 6 - Invalid character in data element.
  • 7 - Invalid code value.
  • 8 - Invalid date.
  • 9 - Invalid time.
  • 10 - Exclusion condition violated.
  • 12 - Too many repetitions.
  • 13 - Too many components.
  • I6 - Code value not used in implementation.
  • I9 - Implementation dependent data element missing.
  • I10 - Implementation "Not Used" data element present.
  • I11 - Implementation too few repetitions.
  • I12 - Implementation pattern match failure.
  • I13 - Implementation dependent "Not Used" data element present.

Type Declaration

1

readonly 1: "1" = "1"

10

readonly 10: "10" = "10"

12

readonly 12: "12" = "12"

13

readonly 13: "13" = "13"

2

readonly 2: "2" = "2"

3

readonly 3: "3" = "3"

4

readonly 4: "4" = "4"

5

readonly 5: "5" = "5"

6

readonly 6: "6" = "6"

7

readonly 7: "7" = "7"

8

readonly 8: "8" = "8"

9

readonly 9: "9" = "9"

I10

readonly I10: "I10" = "I10"

I11

readonly I11: "I11" = "I11"

I12

readonly I12: "I12" = "I12"

I13

readonly I13: "I13" = "I13"

I6

readonly I6: "I6" = "I6"

I9

readonly I9: "I9" = "I9"

Example

import type { Ik403Code } from "@cosyte/x12";
const tooShort: Ik403Code = "4";