Skip to main content

Module code_lookup

Module code_lookup 

Source
Expand description

Code enrichment lookup — maps EDIFACT companion field codes to human-readable meanings.

Built from PID schema JSON files. Used by the mapping engine to automatically enrich companion field values during forward mapping (EDIFACT → BO4E).

Structs§

CodeEnrichment
Enrichment data for a single EDIFACT code value.
CodeLookup
Complete code lookup table built from a PID schema JSON.

Type Aliases§

CodeLookupKey
Lookup key: (source_path, segment_tag, element_index, component_index).
CodeMeanings
Maps EDIFACT code values to their enrichment data (meaning + optional enum key). E.g., “Z15” → CodeEnrichment { meaning: “Haushaltskunde gem. EnWG”, enum_key: Some(“HAUSHALTSKUNDE_ENWG”) }.