]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D96A/Segments/DOC.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D96A / Segments / DOC.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D96A.Segments.DOC
7 ( -- * Definition
8 segmentDOC
9 -- * Dependencies
10 , compositeC002
11 , compositeC503
12 , simple1218
13 , simple1220
14 , simple3153
15 ) where
16
17 import Text.Edifact.D96A.Composites (compositeC002, compositeC503)
18 import Text.Edifact.D96A.Simples (simple1218, simple1220,
19 simple3153)
20
21 import Text.Edifact.Parsing
22 import 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'.
53 segmentDOC :: Parser Value
54 segmentDOC =
55 segment "DOC"
56 [ "010" .@ mandatory compositeC002
57 , "020" .@ optional compositeC503
58 , "030" .@ optional simple3153
59 , "040" .@ optional simple1220
60 , "050" .@ optional simple1218
61 ]