]> git.immae.eu Git - github/fretlink/edi-parser.git/blame - specification/src/Text/Edifact/D01B/Segments/PCD.hs
Release code as open source
[github/fretlink/edi-parser.git] / specification / src / Text / Edifact / D01B / Segments / PCD.hs
CommitLineData
a9d77a20
FM
1{-# LANGUAGE OverloadedStrings #-}
2
3---- Machine generated code.
4---- Output of edi-parser-scaffolder
5
6module Text.Edifact.D01B.Segments.PCD
7 ( -- * Definition
8 segmentPCD
9 -- * Dependencies
10 , compositeC501
11 , simple4405
12 ) where
13
14import Text.Edifact.D01B.Composites (compositeC501)
15import Text.Edifact.D01B.Simples (simple4405)
16
17import Text.Edifact.Parsing
18import Text.Edifact.Types (Value)
19
20-- | Derived from this specification:
21--
22-- > PCD PERCENTAGE DETAILS
23-- >
24-- > Function: To specify percentage information.
25-- >
26-- > 010 C501 PERCENTAGE DETAILS M 1
27-- > 5245 Percentage type code qualifier M an..3
28-- > 5482 Percentage C n..10
29-- > 5249 Percentage basis identification code C an..3
30-- > 1131 Code list identification code C an..17
31-- > 3055 Code list responsible agency code C an..3
32-- >
33-- > 020 4405 STATUS DESCRIPTION CODE C 1 an..3
34--
35-- Dependencies: 'compositeC501', 'simple4405'.
36segmentPCD :: Parser Value
37segmentPCD =
38 segment "PCD"
39 [ "010" .@ mandatory compositeC501
40 , "020" .@ optional simple4405
41 ]