hippo 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. data/CHANGELOG +7 -0
  2. data/README.md +58 -7
  3. data/lib/hippo/exceptions.rb +2 -1
  4. data/lib/hippo/field.rb +87 -1
  5. data/lib/hippo/parser/segment.rb +2 -2
  6. data/lib/hippo/segments/AK1.rb +1 -2
  7. data/lib/hippo/segments/AK3.rb +1 -2
  8. data/lib/hippo/segments/AK4.rb +4 -8
  9. data/lib/hippo/segments/AK9.rb +3 -6
  10. data/lib/hippo/segments/AMT.rb +1 -1
  11. data/lib/hippo/segments/BPR.rb +1 -1
  12. data/lib/hippo/segments/CAS.rb +12 -12
  13. data/lib/hippo/segments/CLM.rb +1 -1
  14. data/lib/hippo/segments/CLP.rb +5 -5
  15. data/lib/hippo/segments/CN1.rb +3 -3
  16. data/lib/hippo/segments/CR1.rb +2 -2
  17. data/lib/hippo/segments/CR2.rb +4 -5
  18. data/lib/hippo/segments/CR3.rb +1 -1
  19. data/lib/hippo/segments/CR4.rb +16 -16
  20. data/lib/hippo/segments/CR5.rb +7 -7
  21. data/lib/hippo/segments/CR7.rb +2 -4
  22. data/lib/hippo/segments/CTP.rb +15 -16
  23. data/lib/hippo/segments/CTX.rb +6 -12
  24. data/lib/hippo/segments/CUR.rb +1 -1
  25. data/lib/hippo/segments/DMG.rb +1 -1
  26. data/lib/hippo/segments/DN1.rb +2 -2
  27. data/lib/hippo/segments/DN2.rb +1 -1
  28. data/lib/hippo/segments/DSB.rb +2 -2
  29. data/lib/hippo/segments/FRM.rb +1 -1
  30. data/lib/hippo/segments/GE.rb +2 -2
  31. data/lib/hippo/segments/GS.rb +6 -6
  32. data/lib/hippo/segments/HCP.rb +5 -5
  33. data/lib/hippo/segments/HI.rb +24 -24
  34. data/lib/hippo/segments/HSD.rb +3 -4
  35. data/lib/hippo/segments/IEA.rb +2 -2
  36. data/lib/hippo/segments/IK3.rb +1 -2
  37. data/lib/hippo/segments/IK4.rb +4 -8
  38. data/lib/hippo/segments/ISA.rb +10 -10
  39. data/lib/hippo/segments/K3.rb +10 -10
  40. data/lib/hippo/segments/LX.rb +1 -2
  41. data/lib/hippo/segments/MEA.rb +13 -13
  42. data/lib/hippo/segments/MIA.rb +19 -19
  43. data/lib/hippo/segments/MOA.rb +4 -4
  44. data/lib/hippo/segments/PAT.rb +1 -1
  45. data/lib/hippo/segments/PLB.rb +6 -6
  46. data/lib/hippo/segments/PS1.rb +1 -1
  47. data/lib/hippo/segments/PWK.rb +1 -2
  48. data/lib/hippo/segments/QTY.rb +11 -11
  49. data/lib/hippo/segments/SE.rb +1 -2
  50. data/lib/hippo/segments/STC.rb +2 -2
  51. data/lib/hippo/segments/SV1.rb +8 -12
  52. data/lib/hippo/segments/SV2.rb +4 -4
  53. data/lib/hippo/segments/SV3.rb +6 -10
  54. data/lib/hippo/segments/SV5.rb +3 -3
  55. data/lib/hippo/segments/SV6.rb +6 -10
  56. data/lib/hippo/segments/SVC.rb +4 -4
  57. data/lib/hippo/segments/SVD.rb +3 -4
  58. data/lib/hippo/segments/TA1.rb +5 -5
  59. data/lib/hippo/segments/TS2.rb +19 -19
  60. data/lib/hippo/segments/TS3.rb +21 -21
  61. data/lib/hippo/segments/UR.rb +1 -1
  62. data/lib/hippo/segments/base.rb +12 -14
  63. data/lib/hippo/version.rb +1 -1
  64. data/lib/hippo.rb +4 -0
  65. data/test/test_helper.rb +4 -0
  66. data/test/test_parser.rb +3 -3
  67. data/test/test_segments_base.rb +42 -0
  68. metadata +6 -6
@@ -5,7 +5,7 @@ module Hippo::Segments
5
5
 
6
6
  field :name => 'Quantity',
7
7
  :sequence => 1,
8
- :datatype => :numeric,
8
+ :datatype => :decimal,
9
9
  :minimum => 1,
10
10
  :maximum => 15,
11
11
  :required => true,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'MonetaryAmount',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
16
+ :datatype => :decimal,
17
17
  :minimum => 1,
18
18
  :maximum => 18,
19
19
  :required => false,
@@ -21,7 +21,7 @@ module Hippo::Segments
21
21
 
22
22
  field :name => 'Quantity',
23
23
  :sequence => 3,
24
- :datatype => :numeric,
24
+ :datatype => :decimal,
25
25
  :minimum => 1,
26
26
  :maximum => 15,
27
27
  :required => false,
@@ -29,7 +29,7 @@ module Hippo::Segments
29
29
 
30
30
  field :name => 'MonetaryAmount',
31
31
  :sequence => 4,
32
- :datatype => :numeric,
32
+ :datatype => :decimal,
33
33
  :minimum => 1,
34
34
  :maximum => 18,
35
35
  :required => false,
@@ -45,7 +45,7 @@ module Hippo::Segments
45
45
 
46
46
  field :name => 'MonetaryAmount',
47
47
  :sequence => 6,
48
- :datatype => :numeric,
48
+ :datatype => :decimal,
49
49
  :minimum => 1,
50
50
  :maximum => 18,
51
51
  :required => false,
@@ -53,7 +53,7 @@ module Hippo::Segments
53
53
 
54
54
  field :name => 'MonetaryAmount',
55
55
  :sequence => 7,
56
- :datatype => :numeric,
56
+ :datatype => :decimal,
57
57
  :minimum => 1,
58
58
  :maximum => 18,
59
59
  :required => false,
@@ -61,7 +61,7 @@ module Hippo::Segments
61
61
 
62
62
  field :name => 'MonetaryAmount',
63
63
  :sequence => 8,
64
- :datatype => :numeric,
64
+ :datatype => :decimal,
65
65
  :minimum => 1,
66
66
  :maximum => 18,
67
67
  :required => false,
@@ -69,7 +69,7 @@ module Hippo::Segments
69
69
 
70
70
  field :name => 'MonetaryAmount',
71
71
  :sequence => 9,
72
- :datatype => :numeric,
72
+ :datatype => :decimal,
73
73
  :minimum => 1,
74
74
  :maximum => 18,
75
75
  :required => false,
@@ -77,7 +77,7 @@ module Hippo::Segments
77
77
 
78
78
  field :name => 'MonetaryAmount',
79
79
  :sequence => 10,
80
- :datatype => :numeric,
80
+ :datatype => :decimal,
81
81
  :minimum => 1,
82
82
  :maximum => 18,
83
83
  :required => false,
@@ -85,7 +85,7 @@ module Hippo::Segments
85
85
 
86
86
  field :name => 'MonetaryAmount',
87
87
  :sequence => 11,
88
- :datatype => :numeric,
88
+ :datatype => :decimal,
89
89
  :minimum => 1,
90
90
  :maximum => 18,
91
91
  :required => false,
@@ -93,7 +93,7 @@ module Hippo::Segments
93
93
 
94
94
  field :name => 'MonetaryAmount',
95
95
  :sequence => 12,
96
- :datatype => :numeric,
96
+ :datatype => :decimal,
97
97
  :minimum => 1,
98
98
  :maximum => 18,
99
99
  :required => false,
@@ -101,7 +101,7 @@ module Hippo::Segments
101
101
 
102
102
  field :name => 'MonetaryAmount',
103
103
  :sequence => 13,
104
- :datatype => :numeric,
104
+ :datatype => :decimal,
105
105
  :minimum => 1,
106
106
  :maximum => 18,
107
107
  :required => false,
@@ -109,7 +109,7 @@ module Hippo::Segments
109
109
 
110
110
  field :name => 'MonetaryAmount',
111
111
  :sequence => 14,
112
- :datatype => :numeric,
112
+ :datatype => :decimal,
113
113
  :minimum => 1,
114
114
  :maximum => 18,
115
115
  :required => false,
@@ -117,7 +117,7 @@ module Hippo::Segments
117
117
 
118
118
  field :name => 'Quantity',
119
119
  :sequence => 15,
120
- :datatype => :numeric,
120
+ :datatype => :decimal,
121
121
  :minimum => 1,
122
122
  :maximum => 15,
123
123
  :required => false,
@@ -125,7 +125,7 @@ module Hippo::Segments
125
125
 
126
126
  field :name => 'MonetaryAmount',
127
127
  :sequence => 16,
128
- :datatype => :numeric,
128
+ :datatype => :decimal,
129
129
  :minimum => 1,
130
130
  :maximum => 18,
131
131
  :required => false,
@@ -133,7 +133,7 @@ module Hippo::Segments
133
133
 
134
134
  field :name => 'MonetaryAmount',
135
135
  :sequence => 17,
136
- :datatype => :numeric,
136
+ :datatype => :decimal,
137
137
  :minimum => 1,
138
138
  :maximum => 18,
139
139
  :required => false,
@@ -141,7 +141,7 @@ module Hippo::Segments
141
141
 
142
142
  field :name => 'MonetaryAmount',
143
143
  :sequence => 18,
144
- :datatype => :numeric,
144
+ :datatype => :decimal,
145
145
  :minimum => 1,
146
146
  :maximum => 18,
147
147
  :required => false,
@@ -149,7 +149,7 @@ module Hippo::Segments
149
149
 
150
150
  field :name => 'MonetaryAmount',
151
151
  :sequence => 19,
152
- :datatype => :numeric,
152
+ :datatype => :decimal,
153
153
  :minimum => 1,
154
154
  :maximum => 18,
155
155
  :required => false,
@@ -189,7 +189,7 @@ module Hippo::Segments
189
189
 
190
190
  field :name => 'MonetaryAmount',
191
191
  :sequence => 24,
192
- :datatype => :numeric,
192
+ :datatype => :decimal,
193
193
  :minimum => 1,
194
194
  :maximum => 18,
195
195
  :required => false,
@@ -5,7 +5,7 @@ module Hippo::Segments
5
5
 
6
6
  field :name => 'PercentageAsDecimal',
7
7
  :sequence => 1,
8
- :datatype => :numeric,
8
+ :datatype => :decimal,
9
9
  :minimum => 1,
10
10
  :maximum => 10,
11
11
  :required => false,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'MonetaryAmount',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
16
+ :datatype => :decimal,
17
17
  :minimum => 1,
18
18
  :maximum => 18,
19
19
  :required => false,
@@ -61,7 +61,7 @@ module Hippo::Segments
61
61
 
62
62
  field :name => 'MonetaryAmount',
63
63
  :sequence => 8,
64
- :datatype => :numeric,
64
+ :datatype => :decimal,
65
65
  :minimum => 1,
66
66
  :maximum => 18,
67
67
  :required => false,
@@ -69,7 +69,7 @@ module Hippo::Segments
69
69
 
70
70
  field :name => 'MonetaryAmount',
71
71
  :sequence => 9,
72
- :datatype => :numeric,
72
+ :datatype => :decimal,
73
73
  :minimum => 1,
74
74
  :maximum => 18,
75
75
  :required => false,
@@ -61,7 +61,7 @@ module Hippo::Segments
61
61
 
62
62
  field :name => 'Weight',
63
63
  :sequence => 8,
64
- :datatype => :numeric,
64
+ :datatype => :decimal,
65
65
  :minimum => 1,
66
66
  :maximum => 10,
67
67
  :required => false,
@@ -41,7 +41,7 @@ module Hippo::Segments
41
41
 
42
42
  field :name => 'MonetaryAmount',
43
43
  :sequence => 4,
44
- :datatype => :numeric,
44
+ :datatype => :decimal,
45
45
  :minimum => 1,
46
46
  :maximum => 18,
47
47
  :required => true,
@@ -69,7 +69,7 @@ module Hippo::Segments
69
69
 
70
70
  field :name => 'MonetaryAmount',
71
71
  :sequence => 6,
72
- :datatype => :numeric,
72
+ :datatype => :decimal,
73
73
  :minimum => 1,
74
74
  :maximum => 18,
75
75
  :required => false,
@@ -97,7 +97,7 @@ module Hippo::Segments
97
97
 
98
98
  field :name => 'MonetaryAmount',
99
99
  :sequence => 8,
100
- :datatype => :numeric,
100
+ :datatype => :decimal,
101
101
  :minimum => 1,
102
102
  :maximum => 18,
103
103
  :required => false,
@@ -125,7 +125,7 @@ module Hippo::Segments
125
125
 
126
126
  field :name => 'MonetaryAmount',
127
127
  :sequence => 10,
128
- :datatype => :numeric,
128
+ :datatype => :decimal,
129
129
  :minimum => 1,
130
130
  :maximum => 18,
131
131
  :required => false,
@@ -153,7 +153,7 @@ module Hippo::Segments
153
153
 
154
154
  field :name => 'MonetaryAmount',
155
155
  :sequence => 12,
156
- :datatype => :numeric,
156
+ :datatype => :decimal,
157
157
  :minimum => 1,
158
158
  :maximum => 18,
159
159
  :required => false,
@@ -181,7 +181,7 @@ module Hippo::Segments
181
181
 
182
182
  field :name => 'MonetaryAmount',
183
183
  :sequence => 14,
184
- :datatype => :numeric,
184
+ :datatype => :decimal,
185
185
  :minimum => 1,
186
186
  :maximum => 18,
187
187
  :required => false,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'MonetaryAmount',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
16
+ :datatype => :decimal,
17
17
  :minimum => 1,
18
18
  :maximum => 18,
19
19
  :required => true,
@@ -21,8 +21,7 @@ module Hippo::Segments
21
21
 
22
22
  field :name => 'ReportCopiesNeeded',
23
23
  :sequence => 3,
24
- :datatype => :numeric,
25
- :decimal => 0,
24
+ :datatype => :integer,
26
25
  :minimum => 1,
27
26
  :maximum => 2,
28
27
  :required => false,
@@ -13,7 +13,7 @@ module Hippo::Segments
13
13
 
14
14
  field :name => 'Quantity',
15
15
  :sequence => 2,
16
- :datatype => :numeric,
16
+ :datatype => :decimal,
17
17
  :minimum => 1,
18
18
  :maximum => 15,
19
19
  :required => false,
@@ -31,7 +31,7 @@ module Hippo::Segments
31
31
 
32
32
  field :name => 'Exponent',
33
33
  :sequence => 2,
34
- :datatype => :numeric,
34
+ :datatype => :decimal,
35
35
  :minimum => 1,
36
36
  :maximum => 15,
37
37
  :required => false,
@@ -39,7 +39,7 @@ module Hippo::Segments
39
39
 
40
40
  field :name => 'Multiplier',
41
41
  :sequence => 3,
42
- :datatype => :numeric,
42
+ :datatype => :decimal,
43
43
  :minimum => 1,
44
44
  :maximum => 10,
45
45
  :required => false,
@@ -55,7 +55,7 @@ module Hippo::Segments
55
55
 
56
56
  field :name => 'Exponent',
57
57
  :sequence => 5,
58
- :datatype => :numeric,
58
+ :datatype => :decimal,
59
59
  :minimum => 1,
60
60
  :maximum => 15,
61
61
  :required => false,
@@ -63,7 +63,7 @@ module Hippo::Segments
63
63
 
64
64
  field :name => 'Multiplier',
65
65
  :sequence => 6,
66
- :datatype => :numeric,
66
+ :datatype => :decimal,
67
67
  :minimum => 1,
68
68
  :maximum => 10,
69
69
  :required => false,
@@ -79,7 +79,7 @@ module Hippo::Segments
79
79
 
80
80
  field :name => 'Exponent',
81
81
  :sequence => 8,
82
- :datatype => :numeric,
82
+ :datatype => :decimal,
83
83
  :minimum => 1,
84
84
  :maximum => 15,
85
85
  :required => false,
@@ -87,7 +87,7 @@ module Hippo::Segments
87
87
 
88
88
  field :name => 'Multiplier',
89
89
  :sequence => 9,
90
- :datatype => :numeric,
90
+ :datatype => :decimal,
91
91
  :minimum => 1,
92
92
  :maximum => 10,
93
93
  :required => false,
@@ -103,7 +103,7 @@ module Hippo::Segments
103
103
 
104
104
  field :name => 'Exponent',
105
105
  :sequence => 11,
106
- :datatype => :numeric,
106
+ :datatype => :decimal,
107
107
  :minimum => 1,
108
108
  :maximum => 15,
109
109
  :required => false,
@@ -111,7 +111,7 @@ module Hippo::Segments
111
111
 
112
112
  field :name => 'Multiplier',
113
113
  :sequence => 12,
114
- :datatype => :numeric,
114
+ :datatype => :decimal,
115
115
  :minimum => 1,
116
116
  :maximum => 10,
117
117
  :required => false,
@@ -127,7 +127,7 @@ module Hippo::Segments
127
127
 
128
128
  field :name => 'Exponent',
129
129
  :sequence => 14,
130
- :datatype => :numeric,
130
+ :datatype => :decimal,
131
131
  :minimum => 1,
132
132
  :maximum => 15,
133
133
  :required => false,
@@ -135,7 +135,7 @@ module Hippo::Segments
135
135
 
136
136
  field :name => 'Multiplier',
137
137
  :sequence => 15,
138
- :datatype => :numeric,
138
+ :datatype => :decimal,
139
139
  :minimum => 1,
140
140
  :maximum => 10,
141
141
  :required => false,
@@ -5,8 +5,7 @@ module Hippo::Segments
5
5
 
6
6
  field :name => 'NumberOfIncludedSegments',
7
7
  :sequence => 1,
8
- :datatype => :numeric,
9
- :decimal => 0,
8
+ :datatype => :integer,
10
9
  :minimum => 1,
11
10
  :maximum => 10,
12
11
  :required => true,
@@ -57,7 +57,7 @@ module Hippo::Segments
57
57
 
58
58
  field :name => 'MonetaryAmount',
59
59
  :sequence => 4,
60
- :datatype => :numeric,
60
+ :datatype => :decimal,
61
61
  :minimum => 1,
62
62
  :maximum => 18,
63
63
  :required => false,
@@ -65,7 +65,7 @@ module Hippo::Segments
65
65
 
66
66
  field :name => 'MonetaryAmount',
67
67
  :sequence => 5,
68
- :datatype => :numeric,
68
+ :datatype => :decimal,
69
69
  :minimum => 1,
70
70
  :maximum => 18,
71
71
  :required => false,
@@ -73,7 +73,7 @@ module Hippo::Segments
73
73
 
74
74
  field :name => 'MonetaryAmount',
75
75
  :sequence => 2,
76
- :datatype => :numeric,
76
+ :datatype => :decimal,
77
77
  :minimum => 1,
78
78
  :maximum => 18,
79
79
  :required => false,
@@ -89,7 +89,7 @@ module Hippo::Segments
89
89
 
90
90
  field :name => 'Quantity',
91
91
  :sequence => 4,
92
- :datatype => :numeric,
92
+ :datatype => :decimal,
93
93
  :minimum => 1,
94
94
  :maximum => 15,
95
95
  :required => false,
@@ -115,8 +115,7 @@ module Hippo::Segments
115
115
 
116
116
  field :name => 'DiagnosisCodePointer',
117
117
  :sequence => 1,
118
- :datatype => :numeric,
119
- :decimal => 0,
118
+ :datatype => :integer,
120
119
  :minimum => 1,
121
120
  :maximum => 2,
122
121
  :required => true,
@@ -124,8 +123,7 @@ module Hippo::Segments
124
123
 
125
124
  field :name => 'DiagnosisCodePointer',
126
125
  :sequence => 2,
127
- :datatype => :numeric,
128
- :decimal => 0,
126
+ :datatype => :integer,
129
127
  :minimum => 1,
130
128
  :maximum => 2,
131
129
  :required => false,
@@ -133,8 +131,7 @@ module Hippo::Segments
133
131
 
134
132
  field :name => 'DiagnosisCodePointer',
135
133
  :sequence => 3,
136
- :datatype => :numeric,
137
- :decimal => 0,
134
+ :datatype => :integer,
138
135
  :minimum => 1,
139
136
  :maximum => 2,
140
137
  :required => false,
@@ -142,8 +139,7 @@ module Hippo::Segments
142
139
 
143
140
  field :name => 'DiagnosisCodePointer',
144
141
  :sequence => 4,
145
- :datatype => :numeric,
146
- :decimal => 0,
142
+ :datatype => :integer,
147
143
  :minimum => 1,
148
144
  :maximum => 2,
149
145
  :required => false,
@@ -153,7 +149,7 @@ module Hippo::Segments
153
149
 
154
150
  field :name => 'MonetaryAmount',
155
151
  :sequence => 8,
156
- :datatype => :numeric,
152
+ :datatype => :decimal,
157
153
  :minimum => 1,
158
154
  :maximum => 18,
159
155
  :required => false,
@@ -241,7 +237,7 @@ module Hippo::Segments
241
237
 
242
238
  field :name => 'MonetaryAmount',
243
239
  :sequence => 19,
244
- :datatype => :numeric,
240
+ :datatype => :decimal,
245
241
  :minimum => 1,
246
242
  :maximum => 18,
247
243
  :required => false,
@@ -81,7 +81,7 @@ module Hippo::Segments
81
81
 
82
82
  field :name => 'MonetaryAmount',
83
83
  :sequence => 3,
84
- :datatype => :numeric,
84
+ :datatype => :decimal,
85
85
  :minimum => 1,
86
86
  :maximum => 18,
87
87
  :required => false,
@@ -97,7 +97,7 @@ module Hippo::Segments
97
97
 
98
98
  field :name => 'Quantity',
99
99
  :sequence => 5,
100
- :datatype => :numeric,
100
+ :datatype => :decimal,
101
101
  :minimum => 1,
102
102
  :maximum => 15,
103
103
  :required => false,
@@ -105,7 +105,7 @@ module Hippo::Segments
105
105
 
106
106
  field :name => 'UnitRate',
107
107
  :sequence => 6,
108
- :datatype => :numeric,
108
+ :datatype => :decimal,
109
109
  :minimum => 1,
110
110
  :maximum => 10,
111
111
  :required => false,
@@ -113,7 +113,7 @@ module Hippo::Segments
113
113
 
114
114
  field :name => 'MonetaryAmount',
115
115
  :sequence => 7,
116
- :datatype => :numeric,
116
+ :datatype => :decimal,
117
117
  :minimum => 1,
118
118
  :maximum => 18,
119
119
  :required => false,
@@ -73,7 +73,7 @@ module Hippo::Segments
73
73
 
74
74
  field :name => 'MonetaryAmount',
75
75
  :sequence => 2,
76
- :datatype => :numeric,
76
+ :datatype => :decimal,
77
77
  :minimum => 1,
78
78
  :maximum => 18,
79
79
  :required => false,
@@ -141,7 +141,7 @@ module Hippo::Segments
141
141
 
142
142
  field :name => 'Quantity',
143
143
  :sequence => 6,
144
- :datatype => :numeric,
144
+ :datatype => :decimal,
145
145
  :minimum => 1,
146
146
  :maximum => 15,
147
147
  :required => false,
@@ -183,8 +183,7 @@ module Hippo::Segments
183
183
 
184
184
  field :name => 'DiagnosisCodePointer',
185
185
  :sequence => 1,
186
- :datatype => :numeric,
187
- :decimal => 0,
186
+ :datatype => :integer,
188
187
  :minimum => 1,
189
188
  :maximum => 2,
190
189
  :required => true,
@@ -192,8 +191,7 @@ module Hippo::Segments
192
191
 
193
192
  field :name => 'DiagnosisCodePointer',
194
193
  :sequence => 2,
195
- :datatype => :numeric,
196
- :decimal => 0,
194
+ :datatype => :integer,
197
195
  :minimum => 1,
198
196
  :maximum => 2,
199
197
  :required => false,
@@ -201,8 +199,7 @@ module Hippo::Segments
201
199
 
202
200
  field :name => 'DiagnosisCodePointer',
203
201
  :sequence => 3,
204
- :datatype => :numeric,
205
- :decimal => 0,
202
+ :datatype => :integer,
206
203
  :minimum => 1,
207
204
  :maximum => 2,
208
205
  :required => false,
@@ -210,8 +207,7 @@ module Hippo::Segments
210
207
 
211
208
  field :name => 'DiagnosisCodePointer',
212
209
  :sequence => 4,
213
- :datatype => :numeric,
214
- :decimal => 0,
210
+ :datatype => :integer,
215
211
  :minimum => 1,
216
212
  :maximum => 2,
217
213
  :required => false,
@@ -81,7 +81,7 @@ module Hippo::Segments
81
81
 
82
82
  field :name => 'Quantity',
83
83
  :sequence => 3,
84
- :datatype => :numeric,
84
+ :datatype => :decimal,
85
85
  :minimum => 1,
86
86
  :maximum => 15,
87
87
  :required => true,
@@ -89,7 +89,7 @@ module Hippo::Segments
89
89
 
90
90
  field :name => 'MonetaryAmount',
91
91
  :sequence => 4,
92
- :datatype => :numeric,
92
+ :datatype => :decimal,
93
93
  :minimum => 1,
94
94
  :maximum => 18,
95
95
  :required => false,
@@ -97,7 +97,7 @@ module Hippo::Segments
97
97
 
98
98
  field :name => 'MonetaryAmount',
99
99
  :sequence => 5,
100
- :datatype => :numeric,
100
+ :datatype => :decimal,
101
101
  :minimum => 1,
102
102
  :maximum => 18,
103
103
  :required => false,
@@ -89,7 +89,7 @@ module Hippo::Segments
89
89
 
90
90
  field :name => 'MonetaryAmount',
91
91
  :sequence => 4,
92
- :datatype => :numeric,
92
+ :datatype => :decimal,
93
93
  :minimum => 1,
94
94
  :maximum => 18,
95
95
  :required => false,
@@ -99,8 +99,7 @@ module Hippo::Segments
99
99
 
100
100
  field :name => 'DiagnosisCodePointer',
101
101
  :sequence => 1,
102
- :datatype => :numeric,
103
- :decimal => 0,
102
+ :datatype => :integer,
104
103
  :minimum => 1,
105
104
  :maximum => 2,
106
105
  :required => true,
@@ -108,8 +107,7 @@ module Hippo::Segments
108
107
 
109
108
  field :name => 'DiagnosisCodePointer',
110
109
  :sequence => 2,
111
- :datatype => :numeric,
112
- :decimal => 0,
110
+ :datatype => :integer,
113
111
  :minimum => 1,
114
112
  :maximum => 2,
115
113
  :required => false,
@@ -117,8 +115,7 @@ module Hippo::Segments
117
115
 
118
116
  field :name => 'DiagnosisCodePointer',
119
117
  :sequence => 3,
120
- :datatype => :numeric,
121
- :decimal => 0,
118
+ :datatype => :integer,
122
119
  :minimum => 1,
123
120
  :maximum => 2,
124
121
  :required => false,
@@ -126,8 +123,7 @@ module Hippo::Segments
126
123
 
127
124
  field :name => 'DiagnosisCodePointer',
128
125
  :sequence => 4,
129
- :datatype => :numeric,
130
- :decimal => 0,
126
+ :datatype => :integer,
131
127
  :minimum => 1,
132
128
  :maximum => 2,
133
129
  :required => false,
@@ -137,7 +133,7 @@ module Hippo::Segments
137
133
 
138
134
  field :name => 'Quantity',
139
135
  :sequence => 6,
140
- :datatype => :numeric,
136
+ :datatype => :decimal,
141
137
  :minimum => 1,
142
138
  :maximum => 15,
143
139
  :required => false,