aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D96A/Segments/DOC.hs
diff options
context:
space:
mode:
Diffstat (limited to 'specification/src/Text/Edifact/D96A/Segments/DOC.hs')
-rw-r--r--specification/src/Text/Edifact/D96A/Segments/DOC.hs61
1 files changed, 61 insertions, 0 deletions
diff --git a/specification/src/Text/Edifact/D96A/Segments/DOC.hs b/specification/src/Text/Edifact/D96A/Segments/DOC.hs
new file mode 100644
index 0000000..61bf69c
--- /dev/null
+++ b/specification/src/Text/Edifact/D96A/Segments/DOC.hs
@@ -0,0 +1,61 @@
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D96A.Segments.DOC
7 ( -- * Definition
8 segmentDOC
9 -- * Dependencies
10 , compositeC002
11 , compositeC503
12 , simple1218
13 , simple1220
14 , simple3153
15 ) where
16
17import Text.Edifact.D96A.Composites (compositeC002, compositeC503)
18import Text.Edifact.D96A.Simples (simple1218, simple1220,
19 simple3153)
20
21import Text.Edifact.Parsing
22import Text.Edifact.Types (Value)
23
24-- | Derived from this specification:
25--
26-- > DOC DOCUMENT/MESSAGE DETAILS
27-- >
28-- > Function: To identify documents, either printed, electronically
29-- > transferred, or referenced as specified in message
30-- > description, including, where relevant, the
31-- > identification of the type of transaction that will
32-- > result from this message.
33-- >
34-- > 010 C002 DOCUMENT/MESSAGE NAME M
35-- > 1001 Document/message name, coded C an..3
36-- > 1131 Code list qualifier C an..3
37-- > 3055 Code list responsible agency, coded C an..3
38-- > 1000 Document/message name C an..35
39-- >
40-- > 020 C503 DOCUMENT/MESSAGE DETAILS C
41-- > 1004 Document/message number C an..35
42-- > 1373 Document/message status, coded C an..3
43-- > 1366 Document/message source C an..35
44-- > 3453 Language, coded C an..3
45-- >
46-- > 030 3153 COMMUNICATION CHANNEL IDENTIFIER, CODED C an..3
47-- >
48-- > 040 1220 NUMBER OF COPIES OF DOCUMENT REQUIRED C n..2
49-- >
50-- > 050 1218 NUMBER OF ORIGINALS OF DOCUMENT REQUIRED C n..2
51--
52-- Dependencies: 'compositeC002', 'compositeC503', 'simple1218', 'simple1220', 'simple3153'.
53segmentDOC :: Parser Value
54segmentDOC =
55 segment "DOC"
56 [ "010" .@ mandatory compositeC002
57 , "020" .@ optional compositeC503
58 , "030" .@ optional simple3153
59 , "040" .@ optional simple1220
60 , "050" .@ optional simple1218
61 ]