@hisptz/dhis2-analytics 2.0.37 → 2.0.38

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 (90) hide show
  1. package/dist/components/Scorecard/Scorecard.stories.js +6 -927
  2. package/dist/components/Scorecard/Scorecard.stories.js.map +1 -1
  3. package/dist/components/Scorecard/components/ScorecardTable/components/AverageCell.js +30 -8
  4. package/dist/components/Scorecard/components/ScorecardTable/components/AverageCell.js.map +1 -1
  5. package/dist/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js +7 -4
  6. package/dist/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js.map +1 -1
  7. package/dist/components/Scorecard/components/ScorecardTable/components/CellLoader.js +2 -2
  8. package/dist/components/Scorecard/components/ScorecardTable/components/CellLoader.js.map +1 -1
  9. package/dist/components/Scorecard/components/ScorecardTable/components/DataContainer.js +5 -2
  10. package/dist/components/Scorecard/components/ScorecardTable/components/DataContainer.js.map +1 -1
  11. package/dist/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js +19 -10
  12. package/dist/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js.map +1 -1
  13. package/dist/components/Scorecard/components/ScorecardTable/components/DataRow.js +2 -8
  14. package/dist/components/Scorecard/components/ScorecardTable/components/DataRow.js.map +1 -1
  15. package/dist/components/Scorecard/components/ScorecardTable/components/LinkedCell.js +2 -1
  16. package/dist/components/Scorecard/components/ScorecardTable/components/LinkedCell.js.map +1 -1
  17. package/dist/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.js +3 -1
  18. package/dist/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.js.map +1 -1
  19. package/dist/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js +4 -1
  20. package/dist/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js.map +1 -1
  21. package/dist/components/Scorecard/components/ScorecardTable/components/TableBody.js +4 -14
  22. package/dist/components/Scorecard/components/ScorecardTable/components/TableBody.js.map +1 -1
  23. package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/ExpandCell.js +3 -2
  24. package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/ExpandCell.js.map +1 -1
  25. package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js +3 -3
  26. package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js.map +1 -1
  27. package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/NumberCell.js +6 -4
  28. package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/NumberCell.js.map +1 -1
  29. package/dist/components/Scorecard/hooks/columns.js +4 -0
  30. package/dist/components/Scorecard/hooks/columns.js.map +1 -1
  31. package/dist/components/Scorecard/utils/columns.js +4 -0
  32. package/dist/components/Scorecard/utils/columns.js.map +1 -1
  33. package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js +1 -1
  34. package/dist/components/Visualization/components/VisualizationDimensionSelector/index.js.map +1 -1
  35. package/dist/esm/components/Scorecard/Scorecard.stories.js +6 -927
  36. package/dist/esm/components/Scorecard/Scorecard.stories.js.map +1 -1
  37. package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageCell.js +30 -8
  38. package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageCell.js.map +1 -1
  39. package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js +7 -4
  40. package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js.map +1 -1
  41. package/dist/esm/components/Scorecard/components/ScorecardTable/components/CellLoader.js +2 -2
  42. package/dist/esm/components/Scorecard/components/ScorecardTable/components/CellLoader.js.map +1 -1
  43. package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataContainer.js +5 -2
  44. package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataContainer.js.map +1 -1
  45. package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js +19 -10
  46. package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js.map +1 -1
  47. package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataRow.js +3 -9
  48. package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataRow.js.map +1 -1
  49. package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedCell.js +2 -1
  50. package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedCell.js.map +1 -1
  51. package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.js +3 -1
  52. package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.js.map +1 -1
  53. package/dist/esm/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js +4 -1
  54. package/dist/esm/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js.map +1 -1
  55. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableBody.js +5 -15
  56. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableBody.js.map +1 -1
  57. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/ExpandCell.js +3 -2
  58. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/ExpandCell.js.map +1 -1
  59. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js +3 -3
  60. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js.map +1 -1
  61. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/NumberCell.js +6 -4
  62. package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/NumberCell.js.map +1 -1
  63. package/dist/esm/components/Scorecard/hooks/columns.js +4 -0
  64. package/dist/esm/components/Scorecard/hooks/columns.js.map +1 -1
  65. package/dist/esm/components/Scorecard/utils/columns.js +4 -0
  66. package/dist/esm/components/Scorecard/utils/columns.js.map +1 -1
  67. package/dist/esm/components/Visualization/components/VisualizationDimensionSelector/index.js +1 -1
  68. package/dist/esm/components/Visualization/components/VisualizationDimensionSelector/index.js.map +1 -1
  69. package/dist/types/components/Scorecard/components/ScorecardTable/components/AverageCell.d.ts +4 -2
  70. package/dist/types/components/Scorecard/components/ScorecardTable/components/AverageCell.d.ts.map +1 -1
  71. package/dist/types/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.d.ts +1 -1
  72. package/dist/types/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.d.ts.map +1 -1
  73. package/dist/types/components/Scorecard/components/ScorecardTable/components/CellLoader.d.ts +3 -1
  74. package/dist/types/components/Scorecard/components/ScorecardTable/components/CellLoader.d.ts.map +1 -1
  75. package/dist/types/components/Scorecard/components/ScorecardTable/components/DataContainer.d.ts.map +1 -1
  76. package/dist/types/components/Scorecard/components/ScorecardTable/components/DataFooterCell.d.ts.map +1 -1
  77. package/dist/types/components/Scorecard/components/ScorecardTable/components/DataRow.d.ts +3 -5
  78. package/dist/types/components/Scorecard/components/ScorecardTable/components/DataRow.d.ts.map +1 -1
  79. package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedCell.d.ts +2 -1
  80. package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedCell.d.ts.map +1 -1
  81. package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.d.ts +2 -1
  82. package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.d.ts.map +1 -1
  83. package/dist/types/components/Scorecard/components/ScorecardTable/components/SingleDataCell.d.ts +2 -1
  84. package/dist/types/components/Scorecard/components/ScorecardTable/components/SingleDataCell.d.ts.map +1 -1
  85. package/dist/types/components/Scorecard/components/ScorecardTable/components/TableBody.d.ts.map +1 -1
  86. package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts.map +1 -1
  87. package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts.map +1 -1
  88. package/dist/types/components/Scorecard/hooks/columns.d.ts.map +1 -1
  89. package/dist/types/components/Scorecard/utils/columns.d.ts.map +1 -1
  90. package/package.json +3 -3
@@ -5,928 +5,6 @@ import { useForm, FormProvider, Controller } from 'react-hook-form';
5
5
  import { RHFCheckboxField } from '@hisptz/dhis2-ui';
6
6
  import i18n from '@dhis2/d2-i18n';
7
7
 
8
- const hmisConfig = {
9
- id: "BhKVCyUvoWX",
10
- name: "NACP PEDIATRIC/ADOLESCENT/YOUTH HIV SCORECARD",
11
- user: {
12
- id: "ZXkqhHnNxUv"
13
- },
14
- title: "NACP PEDIATRIC/ADOLESCENT/YOUTH HIV SCORECARD",
15
- options: {
16
- title: true,
17
- legend: true,
18
- emptyRows: true,
19
- averageRow: false,
20
- itemNumber: true,
21
- averageColumn: false,
22
- showHierarchy: false,
23
- averageDisplayType: "ALL",
24
- highlightedIndicators: false
25
- },
26
- subtitle: "",
27
- periodType: "RelativeQuarter",
28
- description: "The scorecard to monitor the performance of HIV indicators for pediatric, adolescent and youth ",
29
- customHeader: '<h3 style="text-align:center"><small>NACP HIV Scorecard for Pediatric, Adolescent and Youth&nbsp;</small></h3>\n',
30
- publicAccess: {
31
- id: "public",
32
- type: "public",
33
- access: "r-----",
34
- displayName: "Public"
35
- },
36
- userAccesses: [],
37
- dataSelection: {
38
- dataGroups: [
39
- {
40
- id: 1,
41
- style: {
42
- color: "#000000",
43
- backgroundColor: "#ffffff"
44
- },
45
- title: "HEID",
46
- dataHolders: [
47
- {
48
- id: 10,
49
- dataSources: [
50
- {
51
- id: "IthUUAMiFfL",
52
- name: "% of HEI tested for HIV by using DNA PCR at birth",
53
- type: "customFunction",
54
- label: "% of HEI tested for HIV by using DNA PCR at birth",
55
- weight: 100,
56
- legends: [
57
- {
58
- id: "Sxqhyp0mTNy",
59
- endValue: "-",
60
- startValue: "79",
61
- legendDefinitionId: "#008000"
62
- },
63
- {
64
- id: "aUPSsUgydxI",
65
- endValue: "79",
66
- startValue: "59",
67
- legendDefinitionId: "#FFFF00"
68
- },
69
- {
70
- id: "i2bk3Z5N5dc",
71
- endValue: "59",
72
- startValue: "0",
73
- legendDefinitionId: "#FF0000"
74
- }
75
- ],
76
- highIsGood: true,
77
- showColors: true,
78
- effectiveGap: 5,
79
- displayArrows: true
80
- }
81
- ]
82
- },
83
- {
84
- id: 11,
85
- dataSources: [
86
- {
87
- id: "gRPou3d8CE9",
88
- name: "% of HEI tested for HIV by using DNA PCR by 2 months of age",
89
- type: "customFunction",
90
- label: "% of HEI tested for HIV by using DNA PCR by 2 months of age",
91
- weight: 100,
92
- legends: [
93
- {
94
- id: "wUkD7XzHb0j",
95
- endValue: "-",
96
- startValue: "89",
97
- legendDefinitionId: "#008000"
98
- },
99
- {
100
- id: "yhF2fhp24cq",
101
- endValue: "89",
102
- startValue: "69",
103
- legendDefinitionId: "#FFFF00"
104
- },
105
- {
106
- id: "vHyCp61XFcq",
107
- endValue: "89",
108
- startValue: "0",
109
- legendDefinitionId: "#FF0000"
110
- }
111
- ],
112
- highIsGood: true,
113
- showColors: true,
114
- effectiveGap: 5,
115
- displayArrows: true
116
- },
117
- {
118
- id: "N0uX7d0NaVB",
119
- name: "% of HEI who received a first HIV test",
120
- type: "customFunction",
121
- label: "% of HEI who received a first HIV test",
122
- weight: 100,
123
- legends: [
124
- {
125
- id: "dNElN1hn00o",
126
- endValue: "-",
127
- startValue: "89",
128
- legendDefinitionId: "#008000"
129
- },
130
- {
131
- id: "YMPnRvYDN36",
132
- endValue: "89",
133
- startValue: "69",
134
- legendDefinitionId: "#FFFF00"
135
- },
136
- {
137
- id: "K5BWj3BrgZj",
138
- endValue: "69",
139
- startValue: "0",
140
- legendDefinitionId: "#FF0000"
141
- }
142
- ],
143
- highIsGood: true,
144
- showColors: true,
145
- effectiveGap: 5,
146
- displayArrows: true
147
- }
148
- ]
149
- }
150
- ]
151
- },
152
- {
153
- id: 3,
154
- style: {
155
- color: "#000000",
156
- backgroundColor: "#ffffff"
157
- },
158
- title: "Children (0-14 Years)",
159
- dataHolders: [
160
- {
161
- id: 18,
162
- dataSources: [
163
- {
164
- id: "Jx7KCLruuYV",
165
- name: "Proportion of Children Knowing HIV Status",
166
- type: "customFunction",
167
- label: "Proportion of Children Knowing HIV Status",
168
- weight: 100,
169
- legends: [
170
- {
171
- id: "W4PYAXl1mUS",
172
- endValue: "-",
173
- startValue: "94",
174
- legendDefinitionId: "#008000"
175
- },
176
- {
177
- id: "Axbz0ktD7Hp",
178
- endValue: "94",
179
- startValue: "79",
180
- legendDefinitionId: "#FFFF00"
181
- },
182
- {
183
- id: "wPv7QSNUzXR",
184
- endValue: "79",
185
- startValue: "0",
186
- legendDefinitionId: "#FF0000"
187
- }
188
- ],
189
- highIsGood: true,
190
- showColors: true,
191
- effectiveGap: 5,
192
- displayArrows: true
193
- }
194
- ]
195
- },
196
- {
197
- id: 15,
198
- dataSources: [
199
- {
200
- id: "HkfV3tNXRZb",
201
- name: "% of Children who are on ART",
202
- type: "customFunction",
203
- label: "% of Children who are on ART",
204
- weight: 100,
205
- legends: [
206
- {
207
- id: "BT9KhOryZk2",
208
- endValue: "-",
209
- startValue: "94",
210
- legendDefinitionId: "#008000"
211
- },
212
- {
213
- id: "doqLR5kCUds",
214
- endValue: "94",
215
- startValue: "79",
216
- legendDefinitionId: "#FFFF00"
217
- },
218
- {
219
- id: "XDNw10t5dw5",
220
- endValue: "79",
221
- startValue: "0",
222
- legendDefinitionId: "#FF0000"
223
- }
224
- ],
225
- highIsGood: true,
226
- showColors: true,
227
- effectiveGap: 5,
228
- displayArrows: true
229
- }
230
- ]
231
- },
232
- {
233
- id: 7,
234
- dataSources: [
235
- {
236
- id: "HmbRukEsmjU",
237
- name: "% children with HVL tests < 1000 copies/mL",
238
- type: "customFunction",
239
- label: "% children with HVL tests < 1000 copies/mL",
240
- weight: 100,
241
- legends: [
242
- {
243
- id: "Qj7kJibCyu4",
244
- endValue: 100,
245
- startValue: "94",
246
- legendDefinitionId: "#008000"
247
- },
248
- {
249
- id: "SqOWUnm4lno",
250
- endValue: "94",
251
- startValue: "79",
252
- legendDefinitionId: "#FFFF00"
253
- },
254
- {
255
- id: "VLPCRzM69xJ",
256
- endValue: "79",
257
- startValue: "0",
258
- legendDefinitionId: "#FF0000"
259
- }
260
- ],
261
- highIsGood: true,
262
- showColors: true,
263
- effectiveGap: 5,
264
- displayArrows: true
265
- }
266
- ]
267
- },
268
- {
269
- id: 5,
270
- dataSources: [
271
- {
272
- id: "jEGIBmPhEEK",
273
- name: "% of children initiated ART within 7 days",
274
- type: "customFunction",
275
- label: "% of children initiated ART within 7 days",
276
- weight: 100,
277
- legends: [
278
- {
279
- id: "LfhMUJjUYti",
280
- endValue: "-",
281
- startValue: "97",
282
- legendDefinitionId: "#008000"
283
- },
284
- {
285
- id: "edU1iXxAX9Z",
286
- endValue: "97",
287
- startValue: "84",
288
- legendDefinitionId: "#FFFF00"
289
- },
290
- {
291
- id: "bXd2d5Vsdwn",
292
- endValue: "84",
293
- startValue: "0",
294
- legendDefinitionId: "#FF0000"
295
- }
296
- ],
297
- highIsGood: true,
298
- showColors: true,
299
- effectiveGap: 5,
300
- displayArrows: true
301
- }
302
- ]
303
- },
304
- {
305
- id: 2,
306
- dataSources: [
307
- {
308
- id: "FeW7SL5GuOR",
309
- name: "% of children screened for TB",
310
- type: "customFunction",
311
- label: "% of children screened for TB",
312
- weight: 100,
313
- legends: [
314
- {
315
- id: "ReVDVNbTs5e",
316
- endValue: "-",
317
- startValue: "94",
318
- legendDefinitionId: "#008000"
319
- },
320
- {
321
- id: "ZWdPRzqTmew",
322
- endValue: "94",
323
- startValue: "79",
324
- legendDefinitionId: "#FFFF00"
325
- },
326
- {
327
- id: "PoeevSi8XRQ",
328
- endValue: "79",
329
- startValue: "0",
330
- legendDefinitionId: "#FF0000"
331
- }
332
- ],
333
- highIsGood: true,
334
- showColors: true,
335
- effectiveGap: 5,
336
- displayArrows: true
337
- }
338
- ]
339
- },
340
- {
341
- id: 27,
342
- dataSources: [
343
- {
344
- id: "cFljxyUNM1J",
345
- name: "% of children dispensed 3 months ARVs",
346
- type: "customFunction",
347
- label: "% of children dispensed 3 months ARVs",
348
- weight: 100,
349
- legends: [
350
- {
351
- id: "YVF1WWC3y8r",
352
- endValue: "-",
353
- startValue: "79",
354
- legendDefinitionId: "#008000"
355
- },
356
- {
357
- id: "frmDM5JBqGd",
358
- endValue: "79",
359
- startValue: "69",
360
- legendDefinitionId: "#FFFF00"
361
- },
362
- {
363
- id: "ODHJdmbS4qn",
364
- endValue: "69",
365
- startValue: "0",
366
- legendDefinitionId: "#FF0000"
367
- }
368
- ],
369
- highIsGood: true,
370
- showColors: true,
371
- effectiveGap: 5,
372
- displayArrows: true
373
- }
374
- ]
375
- }
376
- ]
377
- },
378
- {
379
- id: 2,
380
- style: {
381
- color: "#000000",
382
- backgroundColor: "#ffffff"
383
- },
384
- title: "Adolescents (10-19 Years)",
385
- dataHolders: [
386
- {
387
- id: 19,
388
- dataSources: [
389
- {
390
- id: "uYxyQJZC75P",
391
- name: "Proportion of Adolescent knowing HIV Status",
392
- type: "customFunction",
393
- label: "Proportion of Adolescent knowing HIV Status",
394
- weight: 100,
395
- legends: [
396
- {
397
- id: "pNc1EYpMBYb",
398
- endValue: "-",
399
- startValue: "94",
400
- legendDefinitionId: "#008000"
401
- },
402
- {
403
- id: "nWz2xKgBamK",
404
- endValue: "94",
405
- startValue: "79",
406
- legendDefinitionId: "#FFFF00"
407
- },
408
- {
409
- id: "pE0d0pgG2Sh",
410
- endValue: "79",
411
- startValue: "0",
412
- legendDefinitionId: "#FF0000"
413
- }
414
- ],
415
- highIsGood: true,
416
- showColors: true,
417
- effectiveGap: 5,
418
- displayArrows: true
419
- }
420
- ]
421
- },
422
- {
423
- id: 16,
424
- dataSources: [
425
- {
426
- id: "ZkCW7fqvsvy",
427
- name: "% of Adolescent who are on ART",
428
- type: "customFunction",
429
- label: "% of Adolescent who are on ART",
430
- weight: 100,
431
- legends: [
432
- {
433
- id: "Ux204RVn0Qm",
434
- endValue: "-",
435
- startValue: "94",
436
- legendDefinitionId: "#008000"
437
- },
438
- {
439
- id: "Aormlo8t3fv",
440
- endValue: "94",
441
- startValue: "79",
442
- legendDefinitionId: "#FFFF00"
443
- },
444
- {
445
- id: "Nz5ZNbnMMIV",
446
- endValue: "79",
447
- startValue: "0",
448
- legendDefinitionId: "#FF0000"
449
- }
450
- ],
451
- highIsGood: true,
452
- showColors: true,
453
- effectiveGap: 5,
454
- displayArrows: true
455
- }
456
- ]
457
- },
458
- {
459
- id: 8,
460
- dataSources: [
461
- {
462
- id: "eyiLj3lv6cW",
463
- name: "% Adolescent with HVL tests < 1000 copies/mL",
464
- type: "customFunction",
465
- label: "% Adolescent with HVL tests < 1000 copies/mL",
466
- weight: 100,
467
- legends: [
468
- {
469
- id: "SARZtkvaBix",
470
- endValue: "-",
471
- startValue: "94",
472
- legendDefinitionId: "#008000"
473
- },
474
- {
475
- id: "txh985aZM0k",
476
- endValue: "94",
477
- startValue: "79",
478
- legendDefinitionId: "#FFFF00"
479
- },
480
- {
481
- id: "yoveVKWINCJ",
482
- endValue: "79",
483
- startValue: "0",
484
- legendDefinitionId: "#FF0000"
485
- }
486
- ],
487
- highIsGood: true,
488
- showColors: true,
489
- effectiveGap: 5,
490
- displayArrows: true
491
- }
492
- ]
493
- },
494
- {
495
- id: 6,
496
- dataSources: [
497
- {
498
- id: "V45fiUhHi5I",
499
- name: "% of Adolescent initiated ART within 7 days",
500
- type: "customFunction",
501
- label: "% of Adolescent initiated ART within 7 days",
502
- weight: 100,
503
- legends: [
504
- {
505
- id: "lJ6cJPmFX1o",
506
- endValue: "-",
507
- startValue: "97",
508
- legendDefinitionId: "#008000"
509
- },
510
- {
511
- id: "qP7Nrpv0RYV",
512
- endValue: "97",
513
- startValue: "84",
514
- legendDefinitionId: "#FFFF00"
515
- },
516
- {
517
- id: "hDgBzaw9ao2",
518
- endValue: "84",
519
- startValue: "0",
520
- legendDefinitionId: "#FF0000"
521
- }
522
- ],
523
- highIsGood: true,
524
- showColors: true,
525
- effectiveGap: 5,
526
- displayArrows: true
527
- }
528
- ]
529
- },
530
- {
531
- id: 4,
532
- dataSources: [
533
- {
534
- id: "apGNvWVPjdD",
535
- name: "% Adolescent screened for TB",
536
- type: "customFunction",
537
- label: "% Adolescent screened for TB",
538
- weight: 100,
539
- legends: [
540
- {
541
- id: "Zel8b8MskEJ",
542
- endValue: "-",
543
- startValue: "94",
544
- legendDefinitionId: "#008000"
545
- },
546
- {
547
- id: "TTPQnNKTqY4",
548
- endValue: "94",
549
- startValue: "79",
550
- legendDefinitionId: "#FFFF00"
551
- },
552
- {
553
- id: "teysd5btMXI",
554
- endValue: "79",
555
- startValue: "0",
556
- legendDefinitionId: "#FF0000"
557
- }
558
- ],
559
- highIsGood: true,
560
- showColors: true,
561
- effectiveGap: 5,
562
- displayArrows: true
563
- }
564
- ]
565
- },
566
- {
567
- id: 26,
568
- dataSources: [
569
- {
570
- id: "SLMGdkRqQJQ",
571
- name: "% of adolescent dispensed 3 months ARVs",
572
- type: "customFunction",
573
- label: "% of adolescent dispensed 3 months ARVs",
574
- weight: 100,
575
- legends: [
576
- {
577
- id: "Gt8y7k8YB0P",
578
- endValue: "-",
579
- startValue: "79",
580
- legendDefinitionId: "#008000"
581
- },
582
- {
583
- id: "CxRB3bBUM6S",
584
- endValue: "79",
585
- startValue: "69",
586
- legendDefinitionId: "#FFFF00"
587
- },
588
- {
589
- id: "enUy3TXKOCY",
590
- endValue: "69",
591
- startValue: "0",
592
- legendDefinitionId: "#FF0000"
593
- }
594
- ],
595
- highIsGood: true,
596
- showColors: true,
597
- effectiveGap: 5,
598
- displayArrows: true
599
- }
600
- ]
601
- }
602
- ]
603
- },
604
- {
605
- id: 4,
606
- style: {
607
- color: "#000000",
608
- backgroundColor: "#ffffff"
609
- },
610
- title: "Youth (15-24 years)",
611
- dataHolders: [
612
- {
613
- id: 29,
614
- dataSources: [
615
- {
616
- id: "GTn4oYrnpSf",
617
- name: "Proportion of youth knowing HIV Status",
618
- type: "customFunction",
619
- label: "Proportion of youth knowing HIV Status",
620
- weight: 100,
621
- legends: [
622
- {
623
- id: "KCpQiMQ6Xwy",
624
- endValue: "-",
625
- startValue: "94",
626
- legendDefinitionId: "#008000"
627
- },
628
- {
629
- id: "sMyIGfUuKtl",
630
- endValue: "94",
631
- startValue: "79",
632
- legendDefinitionId: "#FFFF00"
633
- },
634
- {
635
- id: "Mt7awKnicq5",
636
- endValue: "79",
637
- startValue: "0",
638
- legendDefinitionId: "#FF0000"
639
- }
640
- ],
641
- highIsGood: true,
642
- showColors: true,
643
- effectiveGap: 5,
644
- displayArrows: true
645
- }
646
- ]
647
- },
648
- {
649
- id: 21,
650
- dataSources: [
651
- {
652
- id: "vjcbzF7Xb4e",
653
- name: "% of Youth who are on ART",
654
- type: "customFunction",
655
- label: "% of Youth who are on ART",
656
- weight: 100,
657
- legends: [
658
- {
659
- id: "q47yVLbjJli",
660
- endValue: "-",
661
- startValue: "94",
662
- legendDefinitionId: "#008000"
663
- },
664
- {
665
- id: "oh9ZcL4Qof4",
666
- endValue: "94",
667
- startValue: "79",
668
- legendDefinitionId: "#FFFF00"
669
- },
670
- {
671
- id: "nodM5MY5V86",
672
- endValue: "79",
673
- startValue: "0",
674
- legendDefinitionId: "#FF0000"
675
- }
676
- ],
677
- highIsGood: true,
678
- showColors: true,
679
- effectiveGap: 5,
680
- displayArrows: true
681
- }
682
- ]
683
- },
684
- {
685
- id: 22,
686
- dataSources: [
687
- {
688
- id: "v1tiAysZvsG",
689
- name: "% of youth with VL tests < 1000 copies/mL",
690
- type: "customFunction",
691
- label: "% of youth with VL tests < 1000 copies/mL",
692
- weight: 100,
693
- legends: [
694
- {
695
- id: "V0M7jjMoQQ4",
696
- endValue: "-",
697
- startValue: "94",
698
- legendDefinitionId: "#008000"
699
- },
700
- {
701
- id: "RKzIuDtKgUD",
702
- endValue: "94",
703
- startValue: "79",
704
- legendDefinitionId: "#FFFF00"
705
- },
706
- {
707
- id: "IFB9yHATD62",
708
- endValue: "79",
709
- startValue: "0",
710
- legendDefinitionId: "#FF0000"
711
- }
712
- ],
713
- highIsGood: true,
714
- showColors: true,
715
- effectiveGap: 5,
716
- displayArrows: true
717
- }
718
- ]
719
- },
720
- {
721
- id: 23,
722
- dataSources: [
723
- {
724
- id: "fbR5IKAROdW",
725
- name: "% of youth initiated on ART within 7 days",
726
- type: "customFunction",
727
- label: "% of youth initiated on ART within 7 days",
728
- weight: 100,
729
- legends: [
730
- {
731
- id: "wRz5KfLvT3s",
732
- endValue: "-",
733
- startValue: "97",
734
- legendDefinitionId: "#008000"
735
- },
736
- {
737
- id: "RJ0qeY9jClT",
738
- endValue: "97",
739
- startValue: "84",
740
- legendDefinitionId: "#FFFF00"
741
- },
742
- {
743
- id: "OZ1QA11qkm4",
744
- endValue: "84",
745
- startValue: "0",
746
- legendDefinitionId: "#FF0000"
747
- }
748
- ],
749
- highIsGood: true,
750
- showColors: true,
751
- effectiveGap: 5,
752
- displayArrows: true
753
- }
754
- ]
755
- },
756
- {
757
- id: 24,
758
- dataSources: [
759
- {
760
- id: "iWivT3AD9xf",
761
- name: "% of youth screened for TB",
762
- type: "customFunction",
763
- label: "% of youth screened for TB",
764
- weight: 100,
765
- legends: [
766
- {
767
- id: "wAflNuY7yMg",
768
- endValue: "-",
769
- startValue: "94",
770
- legendDefinitionId: "#008000"
771
- },
772
- {
773
- id: "vCLABA0Xqhr",
774
- endValue: "94",
775
- startValue: "79",
776
- legendDefinitionId: "#FFFF00"
777
- },
778
- {
779
- id: "BTT2lrVjh4o",
780
- endValue: "79",
781
- startValue: "0",
782
- legendDefinitionId: "#FF0000"
783
- }
784
- ],
785
- highIsGood: true,
786
- showColors: true,
787
- effectiveGap: 5,
788
- displayArrows: true
789
- }
790
- ]
791
- },
792
- {
793
- id: 25,
794
- dataSources: [
795
- {
796
- id: "gJAAd40LS1n",
797
- name: "% of youth dispensed 3 months ARVs",
798
- type: "customFunction",
799
- label: "% of youth dispensed 3 months ARVs",
800
- weight: 100,
801
- legends: [
802
- {
803
- id: "gTeRmLEdzJL",
804
- endValue: "-",
805
- startValue: "79",
806
- legendDefinitionId: "#008000"
807
- },
808
- {
809
- id: "P4bGlXE4BkO",
810
- endValue: "79",
811
- startValue: "69",
812
- legendDefinitionId: "#FFFF00"
813
- },
814
- {
815
- id: "pNOvvh4V641",
816
- endValue: "69",
817
- startValue: "0",
818
- legendDefinitionId: "#FF0000"
819
- }
820
- ],
821
- highIsGood: true,
822
- showColors: true,
823
- effectiveGap: 5,
824
- displayArrows: true
825
- }
826
- ]
827
- },
828
- {
829
- id: 28,
830
- dataSources: [
831
- {
832
- id: "OMsCcpxndJs",
833
- name: "% of youth screened positive for STI and linked to HIV counselling and testing services",
834
- type: "customFunction",
835
- label: "% of youth screened positive for STI and linked to HIV counselling and testing services",
836
- weight: 100,
837
- legends: [
838
- {
839
- id: "cPgHZPyV1ss",
840
- endValue: "-",
841
- startValue: "94",
842
- legendDefinitionId: "#008000"
843
- },
844
- {
845
- id: "tDsYUAt8fGj",
846
- endValue: "94",
847
- startValue: "79",
848
- legendDefinitionId: "#FFFF00"
849
- },
850
- {
851
- id: "VqA5f7RNc99",
852
- endValue: "79",
853
- startValue: "0",
854
- legendDefinitionId: "#FF0000"
855
- }
856
- ],
857
- highIsGood: true,
858
- showColors: true,
859
- effectiveGap: 5,
860
- displayArrows: true
861
- }
862
- ]
863
- }
864
- ]
865
- }
866
- ]
867
- },
868
- targetOnLevels: false,
869
- periodSelection: {
870
- type: "RelativeQuarter",
871
- periods: [
872
- {
873
- id: "LAST_QUARTER",
874
- name: "Last Quarter"
875
- }
876
- ]
877
- },
878
- additionalLabels: [],
879
- orgUnitSelection: {
880
- groups: [],
881
- levels: [],
882
- orgUnits: [
883
- {
884
- id: "m0frOspS7JY"
885
- }
886
- ],
887
- userOrgUnit: false,
888
- userSubUnit: false,
889
- userSubX2Unit: false
890
- },
891
- legendDefinitions: [
892
- {
893
- id: "#008000",
894
- name: "Target achieved / on track",
895
- color: "#008000"
896
- },
897
- {
898
- id: "#FFFF00",
899
- name: "Progress, but more effort required",
900
- color: "#FFFF00"
901
- },
902
- {
903
- id: "#FF0000",
904
- name: "Not on track",
905
- color: "#FF0000"
906
- },
907
- {
908
- id: "N/A",
909
- name: "N/A",
910
- color: "#D3D3D3",
911
- isDefault: true
912
- },
913
- {
914
- id: "No data",
915
- name: "No data",
916
- color: "#FFFFFF",
917
- isDefault: true
918
- }
919
- ],
920
- userGroupAccesses: [
921
- {
922
- id: "yeLkdx7xMIj",
923
- type: "userGroup",
924
- access: "r-----",
925
- displayName: "NACP Group"
926
- }
927
- ],
928
- highlightedIndicators: []
929
- };
930
8
  const config = {
931
9
  additionalLabels: ["Data label"],
932
10
  customHeader: "<p>W</p>\n",
@@ -1339,21 +417,22 @@ const meta = {
1339
417
  {
1340
418
  initialState: {
1341
419
  options: {
1342
- ...hmisConfig.options,
420
+ ...config.options,
1343
421
  averageRow: true,
1344
422
  averageColumn: true,
1345
423
  arrows: true,
1346
424
  averageDisplayType: "ALL",
1347
- itemNumber: false
425
+ itemNumber: true
1348
426
  },
1349
427
  orgUnitSelection: {
1350
- ...hmisConfig.orgUnitSelection
428
+ userOrgUnit: true,
429
+ levels: ["VJJOhuBJSJe"]
1351
430
  },
1352
431
  periodSelection: {
1353
- ...hmisConfig.periodSelection
432
+ ...config.periodSelection
1354
433
  }
1355
434
  },
1356
- config: hmisConfig,
435
+ config,
1357
436
  children: /* @__PURE__ */ jsx(
1358
437
  Story,
1359
438
  {