aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Segments/PCI.hs
blob: afb275b0106e42bba3db88a86a945af790d99ef3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{-# LANGUAGE OverloadedStrings #-}

---- Machine generated code.
---- Output of edi-parser-scaffolder

module Text.Edifact.D01B.Segments.PCI
  ( -- * Definition
    segmentPCI
    -- * Dependencies
  , compositeC210
  , compositeC827
  , simple4233
  , simple8275
  ) where

import           Text.Edifact.D01B.Composites (compositeC210, compositeC827)
import           Text.Edifact.D01B.Simples    (simple4233, simple8275)

import           Text.Edifact.Parsing
import           Text.Edifact.Types           (Value)

-- | Derived from this specification:
--
-- >        PCI  PACKAGE IDENTIFICATION
-- >
-- >        Function: To specify markings and labels on individual
-- >                  packages or physical units.
-- >
-- > 010    4233 MARKING INSTRUCTIONS CODE                  C    1 an..3
-- >
-- > 020    C210 MARKS & LABELS                             C    1
-- >        7102  Shipping marks description                M      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >        7102  Shipping marks description                C      an..35
-- >
-- > 030    8275 CONTAINER OR PACKAGE CONTENTS INDICATOR
-- >             CODE                                       C    1 an..3
-- >
-- > 040    C827 TYPE OF MARKING                            C    1
-- >        7511  Marking type code                         M      an..3
-- >        1131  Code list identification code             C      an..17
-- >        3055  Code list responsible agency code         C      an..3
--
-- Dependencies: 'compositeC210', 'compositeC827', 'simple4233', 'simple8275'.
segmentPCI :: Parser Value
segmentPCI =
  segment "PCI"
    [ "010" .@ optional  simple4233
    , "020" .@ optional  compositeC210
    , "030" .@ optional  simple8275
    , "040" .@ optional  compositeC827
    ]