]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Segments/MEA.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Segments / MEA.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Segments.MEA
7 ( -- * Definition
8 segmentMEA
9 -- * Dependencies
10 , compositeC174
11 , compositeC502
12 , simple6311
13 , simple7383
14 ) where
15
16 import Text.Edifact.D01B.Composites (compositeC174, compositeC502)
17 import Text.Edifact.D01B.Simples (simple6311, simple7383)
18
19 import Text.Edifact.Parsing
20 import Text.Edifact.Types (Value)
21
22 -- | Derived from this specification:
23 --
24 -- > MEA MEASUREMENTS
25 -- >
26 -- > Function: To specify physical measurements, including
27 -- > dimension tolerances, weights and counts.
28 -- >
29 -- > 010 6311 MEASUREMENT PURPOSE CODE QUALIFIER M 1 an..3
30 -- >
31 -- > 020 C502 MEASUREMENT DETAILS C 1
32 -- > 6313 Measured attribute code C an..3
33 -- > 6321 Measurement significance code C an..3
34 -- > 6155 Non-discrete measurement name code C an..17
35 -- > 6154 Non-discrete measurement name C an..70
36 -- >
37 -- > 030 C174 VALUE/RANGE C 1
38 -- > 6411 Measurement unit code M an..3
39 -- > 6314 Measurement value C an..18
40 -- > 6162 Range minimum value C n..18
41 -- > 6152 Range maximum value C n..18
42 -- > 6432 Significant digits quantity C n..2
43 -- >
44 -- > 040 7383 SURFACE OR LAYER CODE C 1 an..3
45 --
46 -- Dependencies: 'compositeC174', 'compositeC502', 'simple6311', 'simple7383'.
47 segmentMEA :: Parser Value
48 segmentMEA =
49 segment "MEA"
50 [ "010" .@ mandatory simple6311
51 , "020" .@ optional compositeC502
52 , "030" .@ optional compositeC174
53 , "040" .@ optional simple7383
54 ]