aboutsummaryrefslogtreecommitdiffhomepage
path: root/specification/src/Text/Edifact/D01B/Simples/S6321.hs
blob: cb4b7fb5fcf9aeb23d6d49d30fa2d9aa7786d3f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{-# LANGUAGE OverloadedStrings #-}

---- Machine generated code.
---- Output of edi-parser-scaffolder

module Text.Edifact.D01B.Simples.S6321
  ( simple6321
  ) where

import           Text.Edifact.Parsing
import           Text.Edifact.Types   (Value)

-- | Derived from this specification:
--
-- > *    6321  Measurement significance code                           [C]
-- >
-- >      Desc: Code specifying the significance of a measurement.
-- >
-- >      Repr: an..3
-- >
-- >      3     Approximately
-- >               The measurement is approximately equal to that
-- >               specified.
-- >
-- >      4     Equal to
-- >               The measurement is equal to that specified.
-- >
-- >      5     Greater than or equal to
-- >               The measurement is greater than or equal to that
-- >               specified.
-- >
-- >      6     Greater than
-- >               The measurement is greater than that specified.
-- >
-- >      7     Less than
-- >               The measurement is less than that specified.
-- >
-- >      8     Less than or equal to
-- >               The measurement is less than or equal to that specified.
-- >
-- >      9     Average value
-- >               Average value for a specific series of readings.
-- >
-- >      10    Not equal to
-- >               The measurement is not equal to that specified.
-- >
-- > X    11    Trace
-- >               Description to be provided.
-- >
-- >            Note:
-- >               1. This code value will be removed effective with
-- >               directory D.04B.
-- >
-- >      12    True value
-- >               The measurement reported is a true value.
-- >
-- >      13    Observed value
-- >               The measurement reported is an observed value.
-- >
-- >      15    Out of range
-- >               The measurement reported is out of range.
simple6321 :: Parser Value
simple6321 = simple "6321" (alphaNumeric `upTo` 3)