1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Segments.DOC
17 import Text.Edifact.D01B.Composites (compositeC002, compositeC503)
18 import Text.Edifact.D01B.Simples (simple1218, simple1220,
21 import Text.Edifact.Parsing
22 import Text.Edifact.Types (Value)
24 -- | Derived from this specification:
26 -- > DOC DOCUMENT/MESSAGE DETAILS
28 -- > Function: To identify documents and details directly
31 -- > 010 C002 DOCUMENT/MESSAGE NAME M 1
32 -- > 1001 Document name code C an..3
33 -- > 1131 Code list identification code C an..17
34 -- > 3055 Code list responsible agency code C an..3
35 -- > 1000 Document name C an..35
37 -- > 020 C503 DOCUMENT/MESSAGE DETAILS C 1
38 -- > 1004 Document identifier C an..35
39 -- > 1373 Document status code C an..3
40 -- > 1366 Document source description C an..70
41 -- > 3453 Language name code C an..3
42 -- > 1056 Version identifier C an..9
43 -- > 1060 Revision identifier C an..6
45 -- > 030 3153 COMMUNICATION MEDIUM TYPE CODE C 1 an..3
47 -- > 040 1220 DOCUMENT COPIES REQUIRED QUANTITY C 1 n..2
49 -- > 050 1218 DOCUMENT ORIGINALS REQUIRED QUANTITY C 1 n..2
51 -- Dependencies: 'compositeC002', 'compositeC503', 'simple1218', 'simple1220', 'simple3153'.
52 segmentDOC :: Parser Value
55 [ "010" .@ mandatory compositeC002
56 , "020" .@ optional compositeC503
57 , "030" .@ optional simple3153
58 , "040" .@ optional simple1220
59 , "050" .@ optional simple1218