]> git.immae.eu Git - github/fretlink/edi-parser.git/blob - specification/src/Text/Edifact/D01B/Composites/C501.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Composites / C501.hs
1 {-# LANGUAGE OverloadedStrings #-}
2
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
5
6 module Text.Edifact.D01B.Composites.C501
7 ( -- * Definition
8 compositeC501
9 -- * Dependencies
10 , simple1131
11 , simple3055
12 , simple5245
13 , simple5249
14 , simple5482
15 ) where
16
17 import Text.Edifact.D01B.Simples (simple1131, simple3055, simple5245,
18 simple5249, simple5482)
19
20 import Text.Edifact.Parsing
21 import Text.Edifact.Types (Value)
22
23 -- | Derived from this specification:
24 --
25 -- > C501 PERCENTAGE DETAILS
26 -- >
27 -- > Desc: Percentage relating to a specified basis.
28 -- >
29 -- > 010 5245 Percentage type code qualifier M an..3
30 -- > 020 5482 Percentage C n..10
31 -- > 030 5249 Percentage basis identification code C an..3
32 -- > 040 1131 Code list identification code C an..17
33 -- > 050 3055 Code list responsible agency code C an..3
34 --
35 -- Dependencies: 'simple1131', 'simple3055', 'simple5245', 'simple5249', 'simple5482'.
36 compositeC501 :: Parser Value
37 compositeC501 =
38 composite "C501"
39 [ "010" .@ mandatory simple5245
40 , "020" .@ optional simple5482
41 , "030" .@ optional simple5249
42 , "040" .@ optional simple1131
43 , "050" .@ optional simple3055
44 ]