File Coverage

blib/lib/TableData/Business/ID/BPOM/NutritionLabelRef.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package ## no critic: Modules::RequireFilenameMatchesPackage
2             TableDataRole::Business::ID::BPOM::NutritionLabelRef; # hide from PAUSE indexer
3              
4 2     2   453645 use strict;
  2         7  
  2         111  
5              
6 2     2   551 use Role::Tiny;
  2         7121  
  2         25  
7             with 'TableDataRole::Source::AOH';
8              
9             my $data = [
10             # for the first row, make sure we mention all columns because
11             # TableDataRole::Source::AOH uses the first row to enumerate the columns
12             {group => '0to6mo', ref => 550, symbol => 'Energy', unit => 'kkal'},
13             {group => '7to11mo', ref => 725, symbol => 'Energy', unit => 'kkal'},
14             {group => '1to3y', ref => 1125, symbol => 'Energy', unit => 'kkal'},
15             {group => 'general', ref => 2150, symbol => 'Energy', unit => 'kkal'},
16             {group => 'pregnant', ref => 2510, symbol => 'Energy', unit => 'kkal'},
17             {group => 'breastfeeding', ref => 2615, symbol => 'Energy', unit => 'kkal'},
18             {group => '0to6mo', ref => 12, symbol => 'Protein', unit => 'g'},
19             {group => '7to11mo', ref => 18, symbol => 'Protein', unit => 'g'},
20             {group => '1to3y', ref => 26, symbol => 'Protein', unit => 'g'},
21             {group => 'general', ref => 60, symbol => 'Protein', unit => 'g'},
22             {group => 'pregnant', ref => 76, symbol => 'Protein', unit => 'g'},
23             {group => 'breastfeeding', ref => 76, symbol => 'Protein', unit => 'g'},
24             {group => '0to6mo', ref => 34, symbol => 'Total_Fat', unit => 'g'},
25             {group => '7to11mo', ref => 36, symbol => 'Total_Fat', unit => 'g'},
26             {group => '1to3y', ref => 44, symbol => 'Total_Fat', unit => 'g'},
27             {group => 'general', ref => 67, symbol => 'Total_Fat', unit => 'g'},
28             {group => 'pregnant', ref => 84, symbol => 'Total_Fat', unit => 'g'},
29             {group => 'breastfeeding', ref => 87, symbol => 'Total_Fat', unit => 'g'},
30             {group => '0to6mo', ref => undef, symbol => 'Saturated_Fat', unit => 'g'},
31             {group => '7to11mo', ref => undef, symbol => 'Saturated_Fat', unit => 'g'},
32             {group => '1to3y', ref => undef, symbol => 'Saturated_Fat', unit => 'g'},
33             {group => 'general', ref => 20, symbol => 'Saturated_Fat', unit => 'g'},
34             {group => 'pregnant', ref => 20, symbol => 'Saturated_Fat', unit => 'g'},
35             {group => 'breastfeeding', ref => 20, symbol => 'Saturated_Fat', unit => 'g'},
36             {group => '0to6mo', ref => undef, symbol => 'Cholesterol', unit => 'mg'},
37             {group => '7to11mo', ref => undef, symbol => 'Cholesterol', unit => 'mg'},
38             {group => '1to3y', ref => undef, symbol => 'Cholesterol', unit => 'mg'},
39             {group => 'general', ref => '<300', symbol => 'Cholesterol', unit => 'mg'},
40             {group => 'pregnant', ref => '<300', symbol => 'Cholesterol', unit => 'mg'},
41             {group => 'breastfeeding', ref => '<300', symbol => 'Cholesterol', unit => 'mg'},
42             {group => '0to6mo', ref => 4.4, symbol => 'Linoleic_Acid', unit => 'g'},
43             {group => '7to11mo', ref => 4.4, symbol => 'Linoleic_Acid', unit => 'g'},
44             {group => '1to3y', ref => 7, symbol => 'Linoleic_Acid', unit => 'g'},
45             {group => 'general', ref => 13, symbol => 'Linoleic_Acid', unit => 'g'},
46             {group => 'pregnant', ref => 14, symbol => 'Linoleic_Acid', unit => 'g'},
47             {group => 'breastfeeding', ref => 14, symbol => 'Linoleic_Acid', unit => 'g'},
48             {group => '0to6mo', ref => 0.5, symbol => 'Alpha_Linoleic_Acid', unit => 'g'},
49             {group => '7to11mo', ref => 0.5, symbol => 'Alpha_Linoleic_Acid', unit => 'g'},
50             {group => '1to3y', ref => 0.7, symbol => 'Alpha_Linoleic_Acid', unit => 'g'},
51             {group => 'general', ref => 1.4, symbol => 'Alpha_Linoleic_Acid', unit => 'g'},
52             {group => 'pregnant', ref => 1.4, symbol => 'Alpha_Linoleic_Acid', unit => 'g'},
53             {group => 'breastfeeding', ref => 1.3, symbol => 'Alpha_Linoleic_Acid', unit => 'g'},
54             {group => '0to6mo', ref => 58, symbol => 'Carbohydrate', unit => 'g'},
55             {group => '7to11mo', ref => 82, symbol => 'Carbohydrate', unit => 'g'},
56             {group => '1to3y', ref => 155, symbol => 'Carbohydrate', unit => 'g'},
57             {group => 'general', ref => 325, symbol => 'Carbohydrate', unit => 'g'},
58             {group => 'pregnant', ref => 345, symbol => 'Carbohydrate', unit => 'g'},
59             {group => 'breastfeeding', ref => 360, symbol => 'Carbohydrate', unit => 'g'},
60             {group => '0to6mo', ref => 0, symbol => 'Dietary_Fiber', unit => 'g'},
61             {group => '7to11mo', ref => 5, symbol => 'Dietary_Fiber', unit => 'g'},
62             {group => '1to3y', ref => 16, symbol => 'Dietary_Fiber', unit => 'g'},
63             {group => 'general', ref => 30, symbol => 'Dietary_Fiber', unit => 'g'},
64             {group => 'pregnant', ref => 35, symbol => 'Dietary_Fiber', unit => 'g'},
65             {group => 'breastfeeding', ref => 38, symbol => 'Dietary_Fiber', unit => 'g'},
66             {group => '0to6mo', ref => 375, symbol => 'VA', unit => 'mcg'},
67             {group => '7to11mo', ref => 400, symbol => 'VA', unit => 'mcg'},
68             {group => '1to3y', ref => 400, symbol => 'VA', unit => 'mcg'},
69             {group => 'general', ref => 600, symbol => 'VA', unit => 'mcg'},
70             {group => 'pregnant', ref => 816, symbol => 'VA', unit => 'mcg'},
71             {group => 'breastfeeding', ref => 850, symbol => 'VA', unit => 'mcg'},
72             {group => '0to6mo', ref => 5, symbol => 'VD', unit => 'mcg'},
73             {group => '7to11mo', ref => 5, symbol => 'VD', unit => 'mcg'},
74             {group => '1to3y', ref => 15, symbol => 'VD', unit => 'mcg'},
75             {group => 'general', ref => 15, symbol => 'VD', unit => 'mcg'},
76             {group => 'pregnant', ref => 15, symbol => 'VD', unit => 'mcg'},
77             {group => 'breastfeeding', ref => 15, symbol => 'VD', unit => 'mcg'},
78             {group => '0to6mo', ref => 4, symbol => 'VE', unit => 'mg'},
79             {group => '7to11mo', ref => 5, symbol => 'VE', unit => 'mg'},
80             {group => '1to3y', ref => 6, symbol => 'VE', unit => 'mg'},
81             {group => 'general', ref => 15, symbol => 'VE', unit => 'mg'},
82             {group => 'pregnant', ref => 15, symbol => 'VE', unit => 'mg'},
83             {group => 'breastfeeding', ref => 19, symbol => 'VE', unit => 'mg'},
84             {group => '0to6mo', ref => 5, symbol => 'VK', unit => 'mcg'},
85             {group => '7to11mo', ref => 10, symbol => 'VK', unit => 'mcg'},
86             {group => '1to3y', ref => 15, symbol => 'VK', unit => 'mcg'},
87             {group => 'general', ref => 60, symbol => 'VK', unit => 'mcg'},
88             {group => 'pregnant', ref => 55, symbol => 'VK', unit => 'mcg'},
89             {group => 'breastfeeding', ref => 55, symbol => 'VK', unit => 'mcg'},
90             {group => '0to6mo', ref => 0.3, symbol => 'VB1', unit => 'mg'},
91             {group => '7to11mo', ref => 0.4, symbol => 'VB1', unit => 'mg'},
92             {group => '1to3y', ref => 0.6, symbol => 'VB1', unit => 'mg'},
93             {group => 'general', ref => 1.4, symbol => 'VB1', unit => 'mg'},
94             {group => 'pregnant', ref => 1.4, symbol => 'VB1', unit => 'mg'},
95             {group => 'breastfeeding', ref => 1.4, symbol => 'VB1', unit => 'mg'},
96             {group => '0to6mo', ref => 0.3, symbol => 'VB2', unit => 'mg'},
97             {group => '7to11mo', ref => 0.4, symbol => 'VB2', unit => 'mg'},
98             {group => '1to3y', ref => 0.7, symbol => 'VB2', unit => 'mg'},
99             {group => 'general', ref => 1.6, symbol => 'VB2', unit => 'mg'},
100             {group => 'pregnant', ref => 1.7, symbol => 'VB2', unit => 'mg'},
101             {group => 'breastfeeding', ref => 1.8, symbol => 'VB2', unit => 'mg'},
102             {group => '0to6mo', ref => 2, symbol => 'VB3', unit => 'mg'},
103             {group => '7to11mo', ref => 4, symbol => 'VB3', unit => 'mg'},
104             {group => '1to3y', ref => 6, symbol => 'VB3', unit => 'mg'},
105             {group => 'general', ref => 15, symbol => 'VB3', unit => 'mg'},
106             {group => 'pregnant', ref => 16, symbol => 'VB3', unit => 'mg'},
107             {group => 'breastfeeding', ref => 15, symbol => 'VB3', unit => 'mg'},
108             {group => '0to6mo', ref => 1.7, symbol => 'VB5', unit => 'mg'},
109             {group => '7to11mo', ref => 1.8, symbol => 'VB5', unit => 'mg'},
110             {group => '1to3y', ref => 2, symbol => 'VB5', unit => 'mg'},
111             {group => 'general', ref => 5, symbol => 'VB5', unit => 'mg'},
112             {group => 'pregnant', ref => 6, symbol => 'VB5', unit => 'mg'},
113             {group => 'breastfeeding', ref => 7, symbol => 'VB5', unit => 'mg'},
114             {group => '0to6mo', ref => 0.1, symbol => 'VB6', unit => 'mg'},
115             {group => '7to11mo', ref => 0.3, symbol => 'VB6', unit => 'mg'},
116             {group => '1to3y', ref => 0.5, symbol => 'VB6', unit => 'mg'},
117             {group => 'general', ref => 1.3, symbol => 'VB6', unit => 'mg'},
118             {group => 'pregnant', ref => 1.7, symbol => 'VB6', unit => 'mg'},
119             {group => 'breastfeeding', ref => 1.8, symbol => 'VB6', unit => 'mg'},
120             {group => '0to6mo', ref => 65, symbol => 'VB9', unit => 'mcg'},
121             {group => '7to11mo', ref => 80, symbol => 'VB9', unit => 'mcg'},
122             {group => '1to3y', ref => 160, symbol => 'VB9', unit => 'mcg'},
123             {group => 'general', ref => 400, symbol => 'VB9', unit => 'mcg'},
124             {group => 'pregnant', ref => 600, symbol => 'VB9', unit => 'mcg'},
125             {group => 'breastfeeding', ref => 500, symbol => 'VB9', unit => 'mcg'},
126             {group => '0to6mo', ref => 0.4, symbol => 'VB12', unit => 'mcg'},
127             {group => '7to11mo', ref => 0.5, symbol => 'VB12', unit => 'mcg'},
128             {group => '1to3y', ref => 0.9, symbol => 'VB12', unit => 'mcg'},
129             {group => 'general', ref => 2.4, symbol => 'VB12', unit => 'mcg'},
130             {group => 'pregnant', ref => 2.6, symbol => 'VB12', unit => 'mcg'},
131             {group => 'breastfeeding', ref => 2.8, symbol => 'VB12', unit => 'mcg'},
132             {group => '0to6mo', ref => 5, symbol => 'Biotin', unit => 'mcg'},
133             {group => '7to11mo', ref => 6, symbol => 'Biotin', unit => 'mcg'},
134             {group => '1to3y', ref => 8, symbol => 'Biotin', unit => 'mcg'},
135             {group => 'general', ref => 30, symbol => 'Biotin', unit => 'mcg'},
136             {group => 'pregnant', ref => 30, symbol => 'Biotin', unit => 'mcg'},
137             {group => 'breastfeeding', ref => 35, symbol => 'Biotin', unit => 'mcg'},
138             {group => '0to6mo', ref => 125, symbol => 'Choline', unit => 'mg'},
139             {group => '7to11mo', ref => 150, symbol => 'Choline', unit => 'mg'},
140             {group => '1to3y', ref => 200, symbol => 'Choline', unit => 'mg'},
141             {group => 'general', ref => 450, symbol => 'Choline', unit => 'mg'},
142             {group => 'pregnant', ref => 450, symbol => 'Choline', unit => 'mg'},
143             {group => 'breastfeeding', ref => 500, symbol => 'Choline', unit => 'mg'},
144             {group => '0to6mo', ref => 40, symbol => 'VC', unit => 'mg'},
145             {group => '7to11mo', ref => 50, symbol => 'VC', unit => 'mg'},
146             {group => '1to3y', ref => 40, symbol => 'VC', unit => 'mg'},
147             {group => 'general', ref => 90, symbol => 'VC', unit => 'mg'},
148             {group => 'pregnant', ref => 90, symbol => 'VC', unit => 'mg'},
149             {group => 'breastfeeding', ref => 100, symbol => 'VC', unit => 'mg'},
150             {group => '0to6mo', ref => 200, symbol => 'Ca', unit => 'mg'},
151             {group => '7to11mo', ref => 250, symbol => 'Ca', unit => 'mg'},
152             {group => '1to3y', ref => 650, symbol => 'Ca', unit => 'mg'},
153             {group => 'general', ref => 1100, symbol => 'Ca', unit => 'mg'},
154             {group => 'pregnant', ref => 1300, symbol => 'Ca', unit => 'mg'},
155             {group => 'breastfeeding', ref => 1300, symbol => 'Ca', unit => 'mg'},
156             {group => '0to6mo', ref => 100, symbol => 'P', unit => 'mg'},
157             {group => '7to11mo', ref => 250, symbol => 'P', unit => 'mg'},
158             {group => '1to3y', ref => 500, symbol => 'P', unit => 'mg'},
159             {group => 'general', ref => 700, symbol => 'P', unit => 'mg'},
160             {group => 'pregnant', ref => 700, symbol => 'P', unit => 'mg'},
161             {group => 'breastfeeding', ref => 700, symbol => 'P', unit => 'mg'},
162             {group => '0to6mo', ref => 30, symbol => 'Mg', unit => 'mg'},
163             {group => '7to11mo', ref => 55, symbol => 'Mg', unit => 'mg'},
164             {group => '1to3y', ref => 60, symbol => 'Mg', unit => 'mg'},
165             {group => 'general', ref => 350, symbol => 'Mg', unit => 'mg'},
166             {group => 'pregnant', ref => 350, symbol => 'Mg', unit => 'mg'},
167             {group => 'breastfeeding', ref => 310, symbol => 'Mg', unit => 'mg'},
168             {group => '0to6mo', ref => 120, symbol => 'Na', unit => 'mg'},
169             {group => '7to11mo', ref => 200, symbol => 'Na', unit => 'mg'},
170             {group => '1to3y', ref => 1000, symbol => 'Na', unit => 'mg'},
171             {group => 'general', ref => 1500, symbol => 'Na', unit => 'mg'},
172             {group => 'pregnant', ref => 1500, symbol => 'Na', unit => 'mg'},
173             {group => 'breastfeeding', ref => 1500, symbol => 'Na', unit => 'mg'},
174             {group => '0to6mo', ref => 500, symbol => 'K', unit => 'mg'},
175             {group => '7to11mo', ref => 700, symbol => 'K', unit => 'mg'},
176             {group => '1to3y', ref => 3000, symbol => 'K', unit => 'mg'},
177             {group => 'general', ref => 4700, symbol => 'K', unit => 'mg'},
178             {group => 'pregnant', ref => 4700, symbol => 'K', unit => 'mg'},
179             {group => 'breastfeeding', ref => 5100, symbol => 'K', unit => 'mg'},
180             {group => '0to6mo', ref => 5.5, symbol => 'Mn', unit => 'mcg'},
181             {group => '7to11mo', ref => 600, symbol => 'Mn', unit => 'mcg'},
182             {group => '1to3y', ref => 1200, symbol => 'Mn', unit => 'mcg'},
183             {group => 'general', ref => 2000, symbol => 'Mn', unit => 'mcg'},
184             {group => 'pregnant', ref => 2000, symbol => 'Mn', unit => 'mcg'},
185             {group => 'breastfeeding', ref => 2600, symbol => 'Mn', unit => 'mcg'},
186             {group => '0to6mo', ref => 200, symbol => 'Cu', unit => 'mcg'},
187             {group => '7to11mo', ref => 220, symbol => 'Cu', unit => 'mcg'},
188             {group => '1to3y', ref => 340, symbol => 'Cu', unit => 'mcg'},
189             {group => 'general', ref => 800, symbol => 'Cu', unit => 'mcg'},
190             {group => 'pregnant', ref => 1000, symbol => 'Cu', unit => 'mcg'},
191             {group => 'breastfeeding', ref => 1300, symbol => 'Cu', unit => 'mcg'},
192             {group => '0to6mo', ref => undef, symbol => 'Cr', unit => 'mcg'},
193             {group => '7to11mo', ref => 6, symbol => 'Cr', unit => 'mcg'},
194             {group => '1to3y', ref => 11, symbol => 'Cr', unit => 'mcg'},
195             {group => 'general', ref => 26, symbol => 'Cr', unit => 'mcg'},
196             {group => 'pregnant', ref => 30, symbol => 'Cr', unit => 'mcg'},
197             {group => 'breastfeeding', ref => 45, symbol => 'Cr', unit => 'mcg'},
198             {group => '0to6mo', ref => 2.5, symbol => 'Fe', unit => 'mg'},
199             {group => '7to11mo', ref => 7, symbol => 'Fe', unit => 'mg'},
200             {group => '1to3y', ref => 8, symbol => 'Fe', unit => 'mg'},
201             {group => 'general', ref => 22, symbol => 'Fe', unit => 'mg'},
202             {group => 'pregnant', ref => 34, symbol => 'Fe', unit => 'mg'},
203             {group => 'breastfeeding', ref => 33, symbol => 'Fe', unit => 'mg'},
204             {group => '0to6mo', ref => 90, symbol => 'I', unit => 'mcg'},
205             {group => '7to11mo', ref => 120, symbol => 'I', unit => 'mcg'},
206             {group => '1to3y', ref => 120, symbol => 'I', unit => 'mcg'},
207             {group => 'general', ref => 150, symbol => 'I', unit => 'mcg'},
208             {group => 'pregnant', ref => 220, symbol => 'I', unit => 'mcg'},
209             {group => 'breastfeeding', ref => 250, symbol => 'I', unit => 'mcg'},
210             {group => '0to6mo', ref => 2.75, symbol => 'Zn', unit => 'mg'},
211             {group => '7to11mo', ref => 3, symbol => 'Zn', unit => 'mg'},
212             {group => '1to3y', ref => 4, symbol => 'Zn', unit => 'mg'},
213             {group => 'general', ref => 13, symbol => 'Zn', unit => 'mg'},
214             {group => 'pregnant', ref => 16, symbol => 'Zn', unit => 'mg'},
215             {group => 'breastfeeding', ref => 15, symbol => 'Zn', unit => 'mg'},
216             {group => '0to6mo', ref => 5, symbol => 'Se', unit => 'mcg'},
217             {group => '7to11mo', ref => 10, symbol => 'Se', unit => 'mcg'},
218             {group => '1to3y', ref => 17, symbol => 'Se', unit => 'mcg'},
219             {group => 'general', ref => 30, symbol => 'Se', unit => 'mcg'},
220             {group => 'pregnant', ref => 35, symbol => 'Se', unit => 'mcg'},
221             {group => 'breastfeeding', ref => 40, symbol => 'Se', unit => 'mcg'},
222             {group => '0to6mo', ref => undef, symbol => 'F', unit => 'mg'},
223             {group => '7to11mo', ref => 0.4, symbol => 'F', unit => 'mg'},
224             {group => '1to3y', ref => 0.6, symbol => 'F', unit => 'mg'},
225             {group => 'general', ref => 2.5, symbol => 'F', unit => 'mg'},
226             {group => 'pregnant', ref => 2.5, symbol => 'F', unit => 'mg'},
227             {group => 'breastfeeding', ref => 2.5, symbol => 'F', unit => 'mg'},
228             {group => '0to6mo', ref => 6.6, symbol => 'L_Carnitine', unit => 'mg'},
229             {group => '7to11mo', ref => 8.7, symbol => 'L_Carnitine', unit => 'mg'},
230             {group => '1to3y', ref => 13.5, symbol => 'L_Carnitine', unit => 'mg'},
231             {group => 'general', ref => undef, symbol => 'L_Carnitine', unit => 'mg'},
232             {group => 'pregnant', ref => undef, symbol => 'L_Carnitine', unit => 'mg'},
233             {group => 'breastfeeding', ref => undef, symbol => 'L_Carnitine', unit => 'mg'},
234             {group => '0to6mo', ref => 22, symbol => 'Myo_Inositol', unit => 'mg'},
235             {group => '7to11mo', ref => 29, symbol => 'Myo_Inositol', unit => 'mg'},
236             {group => '1to3y', ref => 45, symbol => 'Myo_Inositol', unit => 'mg'},
237             {group => 'general', ref => undef, symbol => 'Myo_Inositol', unit => 'mg'},
238             {group => 'pregnant', ref => undef, symbol => 'Myo_Inositol', unit => 'mg'},
239             {group => 'breastfeeding', ref => undef, symbol => 'Myo_Inositol', unit => 'mg'},
240             ];
241              
242             around new => sub {
243             my $orig = shift;
244              
245             $orig->(@_, aoh => $data);
246             };
247              
248             package TableData::Business::ID::BPOM::NutritionLabelRef; # hide from PAUSE indexer
249              
250 2     2   9245 use strict;
  2         5  
  2         74  
251              
252 2     2   464 use Role::Tiny::With;
  2         299  
  2         653  
253             with 'TableDataRole::Business::ID::BPOM::NutritionLabelRef';
254              
255             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
256             our $DATE = '2024-06-13'; # DATE
257             our $DIST = 'TableData-Business-ID-BPOM-NutritionLabelRef'; # DIST
258             our $VERSION = '0.005'; # VERSION
259              
260             our %STATS = ("num_columns",4,"num_rows",228); # STATS
261              
262             1;
263             # ABSTRACT: BPOM's nutrition label reference (ALG, acuan label gizi)
264              
265             __END__