aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/IMD.hs
blob: 165c1af63263e63f670e4574d3f1aec612300bc8 (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
{-# LANGUAGE OverloadedStrings #-}

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

module Text.Edifact.D96A.Segments.IMD
  ( -- * Definition
    segmentIMD
    -- * Dependencies
  , compositeC273
  , simple7077
  , simple7081
  , simple7383
  ) where

import           Text.Edifact.D96A.Composites (compositeC273)
import           Text.Edifact.D96A.Simples    (simple7077, simple7081,
                                               simple7383)

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

-- | Derived from this specification:
--
-- >       IMD    ITEM DESCRIPTION
-- >
-- >       Function: To describe an item in either an industry or free
-- >                 format.
-- >
-- > 010   7077  ITEM DESCRIPTION TYPE, CODED                   C  an..3
-- >
-- > 020   7081  ITEM CHARACTERISTIC, CODED                     C  an..3
-- >
-- > 030   C273  ITEM DESCRIPTION                               C
-- >       7009   Item description identification               C  an..17
-- >       1131   Code list qualifier                           C  an..3
-- >       3055   Code list responsible agency, coded           C  an..3
-- >       7008   Item description                              C  an..35
-- >       7008   Item description                              C  an..35
-- >       3453   Language, coded                               C  an..3
-- >
-- > 040   7383  SURFACE/LAYER INDICATOR, CODED                 C  an..3
--
-- Dependencies: 'compositeC273', 'simple7077', 'simple7081', 'simple7383'.
segmentIMD :: Parser Value
segmentIMD =
  segment "IMD"
    [ "010" .@ optional  simple7077
    , "020" .@ optional  simple7081
    , "030" .@ optional  compositeC273
    , "040" .@ optional  simple7383
    ]