1 {-# LANGUAGE OverloadedStrings #-}
3 ---- Machine generated code.
4 ---- Output of edi-parser-scaffolder
6 module Text.Edifact.D01B.Composites.C501
17 import Text.Edifact.D01B.Simples (simple1131, simple3055, simple5245,
18 simple5249, simple5482)
20 import Text.Edifact.Parsing
21 import Text.Edifact.Types (Value)
23 -- | Derived from this specification:
25 -- > C501 PERCENTAGE DETAILS
27 -- > Desc: Percentage relating to a specified basis.
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
35 -- Dependencies: 'simple1131', 'simple3055', 'simple5245', 'simple5249', 'simple5482'.
36 compositeC501 :: Parser Value
39 [ "010" .@ mandatory simple5245
40 , "020" .@ optional simple5482
41 , "030" .@ optional simple5249
42 , "040" .@ optional simple1131
43 , "050" .@ optional simple3055