aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Segments/EQD.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/EQD.hs')
-rw-r--r--specification/src/Text/Edifact/D01B/Segments/EQD.hs61
1 files changed, 61 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/EQD.hs b/specification/src/Text/Edifact/D01B/Segments/EQD.hs
new file mode 100644
index 0000000..4eb45a7
--- /dev/null
+++ b/specification/src/Text/Edifact/D01B/Segments/EQD.hs
@@ -0,0 +1,61 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D01B.Segments.EQD
7 ( -- * Definition
8 segmentEQD
9 -- * Dependencies
10 , compositeC224
11 , compositeC237
12 , simple8053
13 , simple8077
14 , simple8169
15 , simple8249
16 ) where
17
18import Text.Edifact.D01B.Composites (compositeC224, compositeC237)
19import Text.Edifact.D01B.Simples (simple8053, simple8077,
20 simple8169, simple8249)
21
22import Text.Edifact.Parsing
23import Text.Edifact.Types (Value)
24
25-- | Derived from this specification:
26--
27-- > EQD EQUIPMENT DETAILS
28-- >
29-- > Function: To identify a unit of equipment.
30-- >
31-- > 010 8053 EQUIPMENT TYPE CODE QUALIFIER M 1 an..3
32-- >
33-- > 020 C237 EQUIPMENT IDENTIFICATION C 1
34-- > 8260 Equipment identifier C an..17
35-- > 1131 Code list identification code C an..17
36-- > 3055 Code list responsible agency code C an..3
37-- > 3207 Country name code C an..3
38-- >
39-- > 030 C224 EQUIPMENT SIZE AND TYPE C 1
40-- > 8155 Equipment size and type description code C an..10
41-- > 1131 Code list identification code C an..17
42-- > 3055 Code list responsible agency code C an..3
43-- > 8154 Equipment size and type description C an..35
44-- >
45-- > 040 8077 EQUIPMENT SUPPLIER CODE C 1 an..3
46-- >
47-- > 050 8249 EQUIPMENT STATUS CODE C 1 an..3
48-- >
49-- > 060 8169 FULL OR EMPTY INDICATOR CODE C 1 an..3
50--
51-- Dependencies: 'compositeC224', 'compositeC237', 'simple8053', 'simple8077', 'simple8169', 'simple8249'.
52segmentEQD :: Parser Value
53segmentEQD =
54 segment "EQD"
55 [ "010" .@ mandatory simple8053
56 , "020" .@ optional compositeC237
57 , "030" .@ optional compositeC224
58 , "040" .@ optional simple8077
59 , "050" .@ optional simple8249
60 , "060" .@ optional simple8169
61 ]