diff options
Diffstat (limited to 'specification/src/Text/Edifact/D01B/Segments/DGS.hs')
-rw-r--r-- | specification/src/Text/Edifact/D01B/Segments/DGS.hs | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D01B/Segments/DGS.hs b/specification/src/Text/Edifact/D01B/Segments/DGS.hs new file mode 100644 index 0000000..921aae3 --- /dev/null +++ b/specification/src/Text/Edifact/D01B/Segments/DGS.hs | |||
@@ -0,0 +1,102 @@ | |||
1 | {-# LANGUAGE OverloadedStrings #-} | ||
2 | |||
3 | ---- Machine generated code. | ||
4 | ---- Output of edi-parser-scaffolder | ||
5 | |||
6 | module Text.Edifact.D01B.Segments.DGS | ||
7 | ( -- * Definition | ||
8 | segmentDGS | ||
9 | -- * Dependencies | ||
10 | , compositeC205 | ||
11 | , compositeC223 | ||
12 | , compositeC234 | ||
13 | , compositeC235 | ||
14 | , compositeC236 | ||
15 | , simple8126 | ||
16 | , simple8211 | ||
17 | , simple8255 | ||
18 | , simple8273 | ||
19 | , simple8325 | ||
20 | , simple8339 | ||
21 | , simple8364 | ||
22 | , simple8410 | ||
23 | ) where | ||
24 | |||
25 | import Text.Edifact.D01B.Composites (compositeC205, compositeC223, | ||
26 | compositeC234, compositeC235, | ||
27 | compositeC236) | ||
28 | import Text.Edifact.D01B.Simples (simple8126, simple8211, | ||
29 | simple8255, simple8273, | ||
30 | simple8325, simple8339, | ||
31 | simple8364, simple8410) | ||
32 | |||
33 | import Text.Edifact.Parsing | ||
34 | import Text.Edifact.Types (Value) | ||
35 | |||
36 | -- | Derived from this specification: | ||
37 | -- | ||
38 | -- > DGS DANGEROUS GOODS | ||
39 | -- > | ||
40 | -- > Function: To identify dangerous goods. | ||
41 | -- > | ||
42 | -- > 010 8273 DANGEROUS GOODS REGULATIONS CODE C 1 an..3 | ||
43 | -- > | ||
44 | -- > 020 C205 HAZARD CODE C 1 | ||
45 | -- > 8351 Hazard identification code M an..7 | ||
46 | -- > 8078 Additional hazard classification | ||
47 | -- > identifier C an..7 | ||
48 | -- > 8092 Hazard code version identifier C an..10 | ||
49 | -- > | ||
50 | -- > 030 C234 UNDG INFORMATION C 1 | ||
51 | -- > 7124 United Nations Dangerous Goods (UNDG) | ||
52 | -- > identifier C n4 | ||
53 | -- > 7088 Dangerous goods flashpoint value C an..8 | ||
54 | -- > | ||
55 | -- > 040 C223 DANGEROUS GOODS SHIPMENT FLASHPOINT C 1 | ||
56 | -- > 7106 Shipment flashpoint value C n3 | ||
57 | -- > 6411 Measurement unit code C an..3 | ||
58 | -- > | ||
59 | -- > 050 8339 PACKAGING DANGER LEVEL CODE C 1 an..3 | ||
60 | -- > | ||
61 | -- > 060 8364 EMERGENCY PROCEDURE FOR SHIPS IDENTIFIER C 1 an..6 | ||
62 | -- > | ||
63 | -- > 070 8410 HAZARD MEDICAL FIRST AID GUIDE IDENTIFIER C 1 an..4 | ||
64 | -- > | ||
65 | -- > 080 8126 TRANSPORT EMERGENCY CARD IDENTIFIER C 1 an..10 | ||
66 | -- > | ||
67 | -- > 090 C235 HAZARD IDENTIFICATION PLACARD DETAILS C 1 | ||
68 | -- > 8158 Orange hazard placard upper part | ||
69 | -- > identifier C an..4 | ||
70 | -- > 8186 Orange hazard placard lower part | ||
71 | -- > identifier C an4 | ||
72 | -- > | ||
73 | -- > 100 C236 DANGEROUS GOODS LABEL C 1 | ||
74 | -- > 8246 Dangerous goods marking identifier C an..4 | ||
75 | -- > 8246 Dangerous goods marking identifier C an..4 | ||
76 | -- > 8246 Dangerous goods marking identifier C an..4 | ||
77 | -- > | ||
78 | -- > 110 8255 PACKING INSTRUCTION TYPE CODE C 1 an..3 | ||
79 | -- > | ||
80 | -- > 120 8325 HAZARDOUS MEANS OF TRANSPORT CATEGORY CODE C 1 an..3 | ||
81 | -- > | ||
82 | -- > 130 8211 HAZARDOUS CARGO TRANSPORT AUTHORISATION | ||
83 | -- > CODE C 1 an..3 | ||
84 | -- | ||
85 | -- Dependencies: 'compositeC205', 'compositeC223', 'compositeC234', 'compositeC235', 'compositeC236', 'simple8126', 'simple8211', 'simple8255', 'simple8273', 'simple8325', 'simple8339', 'simple8364', 'simple8410'. | ||
86 | segmentDGS :: Parser Value | ||
87 | segmentDGS = | ||
88 | segment "DGS" | ||
89 | [ "010" .@ optional simple8273 | ||
90 | , "020" .@ optional compositeC205 | ||
91 | , "030" .@ optional compositeC234 | ||
92 | , "040" .@ optional compositeC223 | ||
93 | , "050" .@ optional simple8339 | ||
94 | , "060" .@ optional simple8364 | ||
95 | , "070" .@ optional simple8410 | ||
96 | , "080" .@ optional simple8126 | ||
97 | , "090" .@ optional compositeC235 | ||
98 | , "100" .@ optional compositeC236 | ||
99 | , "110" .@ optional simple8255 | ||
100 | , "120" .@ optional simple8325 | ||
101 | , "130" .@ optional simple8211 | ||
102 | ] | ||