@ampath/esm-reports-app 1.0.0-next.41 → 1.0.0-next.42

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 (147) hide show
  1. package/dist/110.js +2 -1
  2. package/dist/110.js.LICENSE.txt +35 -0
  3. package/dist/110.js.map +1 -1
  4. package/dist/205.js +1 -1
  5. package/dist/441.js +1 -0
  6. package/dist/441.js.map +1 -0
  7. package/dist/738.js +1 -0
  8. package/dist/738.js.map +1 -0
  9. package/dist/812.js +1 -1
  10. package/dist/812.js.map +1 -1
  11. package/dist/ampath-esm-reports-app.js +1 -1
  12. package/dist/ampath-esm-reports-app.js.buildmanifest.json +66 -39
  13. package/dist/main.js +1 -1
  14. package/dist/main.js.map +1 -1
  15. package/dist/routes.json +1 -1
  16. package/package.json +1 -1
  17. package/src/common/report-error/index.ts +1 -0
  18. package/src/common/report-error/show-report-error.ts +25 -0
  19. package/src/common/report-filters/date-range.ts +137 -0
  20. package/src/common/report-filters/index.ts +4 -0
  21. package/src/common/report-filters/report-filters.component.tsx +281 -151
  22. package/src/common/report-filters/report-filters.scss +180 -55
  23. package/src/common/report-filters/types.ts +66 -0
  24. package/src/common/report-filters/use-restore-period.ts +43 -0
  25. package/src/common/report-page/index.ts +2 -0
  26. package/src/common/report-page/report-page.component.tsx +32 -0
  27. package/src/common/report-page/report-page.scss +45 -0
  28. package/src/common/report-page/use-page-scale.ts +50 -0
  29. package/src/common/report-placeholder/has-report-data.ts +15 -0
  30. package/src/common/report-placeholder/index.ts +2 -0
  31. package/src/common/report-placeholder/report-placeholder.component.tsx +56 -0
  32. package/src/common/report-placeholder/report-placeholder.scss +46 -0
  33. package/src/common/report-register/index.ts +5 -0
  34. package/src/common/report-register/register-columns.ts +34 -0
  35. package/src/common/report-register/register-layout.component.tsx +237 -0
  36. package/src/common/report-register/register-layout.scss +140 -0
  37. package/src/common/report-register/register-table.scss +62 -0
  38. package/src/common/report-register/report-parents.ts +27 -0
  39. package/src/common/report-register/rows-to-csv.ts +59 -0
  40. package/src/common/report-register/use-patient-list.ts +92 -0
  41. package/src/common/report-skeleton/index.ts +1 -0
  42. package/src/common/report-skeleton/report-skeleton.component.tsx +46 -0
  43. package/src/common/report-skeleton/report-skeleton.scss +29 -0
  44. package/src/config-schema.ts +9 -1
  45. package/src/dashboard/report-catalog.ts +173 -0
  46. package/src/dashboard/reports-dasboard.tsx +101 -35
  47. package/src/dashboard/reports-dashboard.module.scss +269 -11
  48. package/src/index.ts +13 -1
  49. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +50 -48
  50. package/src/reports/moh-240/moh-240-header.component.tsx +54 -56
  51. package/src/reports/moh-240/moh-240.columns.ts +64 -0
  52. package/src/reports/moh-240/moh-240.component.tsx +65 -84
  53. package/src/reports/moh-240/moh-240.scss +36 -7
  54. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +27 -65
  55. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +2 -2
  56. package/src/reports/moh-505/moh-505-header.component.tsx +59 -57
  57. package/src/reports/moh-505/moh-505.component.tsx +51 -56
  58. package/src/reports/moh-505/moh-505.scss +116 -2
  59. package/src/reports/moh-705B/moh-204b-register.component.tsx +41 -42
  60. package/src/reports/moh-705B/moh-204b.columns.ts +39 -0
  61. package/src/reports/moh-705B/moh-705b.component.tsx +492 -473
  62. package/src/reports/moh-705B/moh-705b.scss +110 -24
  63. package/src/reports/moh-705a/moh-705a.component.tsx +496 -476
  64. package/src/reports/moh-705a/moh-705a.scss +109 -24
  65. package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +41 -42
  66. package/src/reports/moh-705a/registers/moh-204a.columns.ts +57 -0
  67. package/src/reports/moh-706/moh-706-header.component.tsx +58 -56
  68. package/src/reports/moh-706/moh-706.component.tsx +84 -55
  69. package/src/reports/moh-706/moh-706.scss +115 -19
  70. package/src/reports/moh-710/moh-710.component.tsx +743 -727
  71. package/src/reports/moh-710/moh-710.scss +140 -23
  72. package/src/reports/moh-710/registers/moh-511-710-register.component.tsx +48 -43
  73. package/src/reports/moh-710/registers/moh-511-710.columns.ts +52 -0
  74. package/src/reports/moh-711/moh-711.component.tsx +94 -106
  75. package/src/reports/moh-711/moh711.scss +95 -64
  76. package/src/reports/moh-711/registers/moh-333-register.component.tsx +92 -94
  77. package/src/reports/moh-711/registers/moh-333.columns.ts +119 -0
  78. package/src/reports/moh-711/registers/moh-405-register.component.tsx +88 -89
  79. package/src/reports/moh-711/registers/moh-405.columns.ts +120 -0
  80. package/src/reports/moh-711/registers/moh-406-register.component.tsx +85 -88
  81. package/src/reports/moh-711/registers/moh-406.columns.ts +133 -0
  82. package/src/reports/moh-711/registers/moh-510-register.component.tsx +38 -44
  83. package/src/reports/moh-711/registers/moh-511-register.component.tsx +42 -43
  84. package/src/reports/moh-711/registers/moh-511.columns.ts +59 -0
  85. package/src/reports/moh-711/sections/anc.component.tsx +3 -3
  86. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +3 -3
  87. package/src/reports/moh-711/sections/chanis.component.tsx +2 -3
  88. package/src/reports/moh-711/sections/family-planning.component.tsx +2 -2
  89. package/src/reports/moh-711/sections/gbv.component.tsx +2 -2
  90. package/src/reports/moh-711/sections/maternity.component.tsx +3 -8
  91. package/src/reports/moh-711/sections/medical-social-work.component.tsx +2 -12
  92. package/src/reports/moh-711/sections/other.component.tsx +2 -2
  93. package/src/reports/moh-711/sections/physiotherapy.component.tsx +2 -2
  94. package/src/reports/moh-711/sections/pnc.component.tsx +7 -5
  95. package/src/reports/moh-711/sections/post-abortion.component.tsx +2 -2
  96. package/src/reports/moh-711/sections/rehabilitation.component.tsx +2 -2
  97. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +12 -4
  98. package/src/reports/moh-711/sections/tb-screening.component.tsx +2 -2
  99. package/src/reports/moh-717/moh-717.component.tsx +100 -121
  100. package/src/reports/moh-717/moh717.scss +163 -102
  101. package/src/reports/moh-717/sections/maternity.component.tsx +1 -1
  102. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +1 -1
  103. package/src/reports/moh-717/sections/outpatient.component.tsx +23 -23
  104. package/src/reports/moh-717/sections/preparedby.component.tsx +7 -2
  105. package/src/reports/moh-717/sections/special-services.component.tsx +1 -1
  106. package/src/reports/moh-731/moh-731.component.tsx +127 -110
  107. package/src/reports/moh-731/moh-731.scss +396 -68
  108. package/src/reports/moh-731/registers/moh-366.columns.ts +38 -0
  109. package/src/reports/moh-731/registers/moh-366.component.tsx +76 -83
  110. package/src/reports/moh-731/registers/prep-register.component.tsx +70 -78
  111. package/src/reports/moh-731/registers/prep.columns.ts +34 -0
  112. package/src/reports/moh-731/sections/hiv-and-tb-treatment.component.tsx +1031 -751
  113. package/src/reports/moh-731/sections/hiv-testing-and-pre-exposure.component.tsx +230 -86
  114. package/src/reports/moh-731/sections/pmtct.component.tsx +185 -64
  115. package/src/reports/moh-740/moh-740.component.scss +159 -79
  116. package/src/reports/moh-740/moh-740.component.tsx +258 -227
  117. package/src/reports/moh-740/moh-740.resource.ts +17 -10
  118. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +77 -96
  119. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +50 -70
  120. package/src/reports/moh-740/registers/moh-740-patient-list.tsx +61 -32
  121. package/src/reports/moh-740/registers/moh-740.columns.ts +52 -0
  122. package/src/reports/moh-745/moh-745.component.tsx +897 -877
  123. package/src/reports/moh-745/moh-745.scss +104 -46
  124. package/src/reports/moh-745/registers/moh-412-register.component.tsx +42 -43
  125. package/src/reports/moh-745/registers/moh-412.columns.ts +52 -0
  126. package/src/reports/table-wrapper/table-wrapper.component.tsx +23 -14
  127. package/src/reports/table-wrapper/table-wrapper.scss +1 -16
  128. package/src/resources/moh-505.resource.ts +18 -35
  129. package/src/resources/moh-705.resource.ts +28 -39
  130. package/src/resources/moh-706.resource.ts +17 -30
  131. package/src/resources/moh-710.resource.ts +7 -17
  132. package/src/resources/moh-711.resource.ts +46 -64
  133. package/src/resources/moh-717.resource.ts +7 -17
  134. package/src/resources/moh-731.resource.ts +26 -32
  135. package/src/resources/moh-745.resource.ts +18 -20
  136. package/src/resources/patient-list-page.ts +66 -0
  137. package/src/root.component.tsx +28 -26
  138. package/src/root.scss +39 -0
  139. package/src/utils/get-base-url.ts +39 -7
  140. package/dist/822.js +0 -2
  141. package/dist/822.js.LICENSE.txt +0 -20
  142. package/dist/822.js.map +0 -1
  143. package/src/reports/moh-731/registers/moh-366.scss +0 -45
  144. package/src/reports/moh-731/registers/prep-registers.scss +0 -45
  145. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.scss +0 -18
  146. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +0 -18
  147. /package/src/{reports/moh-740/shared/utils → utils}/format-indicator.ts +0 -0
@@ -19,31 +19,31 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
19
19
  }) => {
20
20
  const navigate = useNavigate();
21
21
 
22
- const navigateToRegister = (indicator: string, gender: string) => {
22
+ const navigateToRegister = (indicator: string, gender: string, label: string) => {
23
23
  navigate(
24
- `/moh-366-register?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}&gender=${gender}`,
24
+ `/moh-366-register?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}&gender=${gender}&label=${encodeURIComponent(label)}&from=moh-731`,
25
25
  );
26
26
  };
27
27
 
28
- const navigateToPrepRegister = (indicator: string, gender: string) => {
28
+ const navigateToPrepRegister = (indicator: string, gender: string, label: string) => {
29
29
  navigate(
30
- `/prep-register?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}&gender=${gender}`,
30
+ `/prep-register?startDate=${startDate}&endDate=${endDate}&locationUuids=${locationUuids}&indicator=${indicator}&gender=${gender}&label=${encodeURIComponent(label)}&from=moh-731`,
31
31
  );
32
32
  };
33
33
  return (
34
- <table>
35
- <tbody>
36
- <div className={styles.flexRow}>
37
- <div className={styles.flexColumn}>
34
+ <div className={styles.flexRow}>
35
+ <div className={styles.flexColumn}>
36
+ <table className={styles.block}>
37
+ <tbody>
38
38
  <tr>
39
- <td className={styles.spaceAfter} style={{ fontWeight: 'bold' }}>
39
+ <td className={styles.blockTitle} colSpan={3}>
40
40
  1.1 HIV Tests
41
41
  </td>
42
42
  </tr>
43
43
  <tr>
44
44
  <td className={styles.emptyColumn}></td>
45
45
  <td className={styles.subTitle}>Male</td>
46
- <td className={styles.subTitle} style={{ paddingLeft: '60px' }}>
46
+ <td className={styles.subTitle}>
47
47
  Female(Including <br /> PMTCT)
48
48
  </td>
49
49
  </tr>
@@ -51,24 +51,36 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
51
51
  <td>Tests</td>
52
52
  <td className={styles.textBox}>
53
53
  <span>HV01-01</span>
54
- <div onClick={() => navigateToRegister('hiv_male', 'M')} className={styles.rectangle}>
54
+ <div
55
+ onClick={() => navigateToRegister('hiv_male', 'M', 'Tests')}
56
+ className={styles.rectangle}
57
+ title="Click to open linelist"
58
+ >
55
59
  {MOH731Data.hiv_male}
56
60
  </div>
57
61
  </td>
58
62
  <td>
59
63
  <div className={classNames(styles.textBox, styles.textBox2)}>
60
64
  <span>HV01-02</span>
61
- <div onClick={() => navigateToRegister('hiv_female', 'F')} className={styles.rectangle}>
65
+ <div
66
+ onClick={() => navigateToRegister('hiv_female', 'F', 'Tests')}
67
+ className={styles.rectangle}
68
+ title="Click to open linelist"
69
+ >
62
70
  {MOH731Data.hiv_female}
63
71
  </div>
64
72
  </div>
65
73
  </td>
66
74
  </tr>
67
- <tr className={styles.margin}>
75
+ <tr>
68
76
  <td>Tests_Facility</td>
69
77
  <td className={styles.textBox}>
70
78
  <span>HV01-03</span>
71
- <div onClick={() => navigateToRegister('hiv_setting_facility', '')} className={styles.rectangle}>
79
+ <div
80
+ onClick={() => navigateToRegister('hiv_setting_facility', '', 'Tests_Facility')}
81
+ className={styles.rectangle}
82
+ title="Click to open linelist"
83
+ >
72
84
  {MOH731Data.hiv_setting_facility}
73
85
  </div>
74
86
  </td>
@@ -77,7 +89,11 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
77
89
  <td>Tests_Community</td>
78
90
  <td className={styles.textBox}>
79
91
  <span>HV01-04</span>
80
- <div onClick={() => navigateToRegister('hiv_setting_community', '')} className={styles.rectangle}>
92
+ <div
93
+ onClick={() => navigateToRegister('hiv_setting_community', '', 'Tests_Community')}
94
+ className={styles.rectangle}
95
+ title="Click to open linelist"
96
+ >
81
97
  {MOH731Data.hiv_setting_community}
82
98
  </div>
83
99
  </td>
@@ -86,31 +102,38 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
86
102
  <td>Tested KVP</td>
87
103
  <td className={styles.textBox}>
88
104
  <span>HV01-05</span>
89
- <div onClick={() => navigateToRegister('hiv_setting_kvp', '')} className={styles.rectangle}>
105
+ <div
106
+ onClick={() => navigateToRegister('hiv_setting_kvp', '', 'Tested KVP')}
107
+ className={styles.rectangle}
108
+ title="Click to open linelist"
109
+ >
90
110
  {MOH731Data.hiv_setting_kvp}
91
111
  </div>
92
112
  </td>
93
113
  </tr>
94
- ____________________________________________________________________
114
+ </tbody>
115
+ </table>
116
+ <hr className={styles.divider} />
117
+ <table className={styles.block}>
118
+ <tbody>
95
119
  <tr>
96
- <td className={styles.spaceAfter} style={{ fontWeight: 'bold' }}>
120
+ <td className={styles.blockTitle} colSpan={3}>
97
121
  1.3 No. Initiated on PrEP(NEW)
98
122
  </td>
99
123
  </tr>
100
124
  <tr>
101
125
  <td className={styles.emptyColumn}></td>
102
126
  <td className={styles.subTitle}>Male</td>
103
- <td className={styles.subTitle} style={{ paddingLeft: '60px' }}>
104
- Female
105
- </td>
127
+ <td className={styles.subTitle}>Female</td>
106
128
  </tr>
107
129
  <tr>
108
130
  <td>General popn</td>
109
131
  <td className={styles.textBox}>
110
132
  <span>HV01-19</span>
111
133
  <div
112
- onClick={() => navigateToPrepRegister('prep_new_male_general_pop', 'M')}
134
+ onClick={() => navigateToPrepRegister('prep_new_male_general_pop', 'M', 'General popn')}
113
135
  className={styles.rectangle}
136
+ title="Click to open linelist"
114
137
  >
115
138
  {MOH731Data.prep_new_male_general_pop}
116
139
  </div>
@@ -119,8 +142,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
119
142
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
120
143
  <span>HV01-20</span>
121
144
  <div
122
- onClick={() => navigateToPrepRegister('prep_new_female_general_pop', 'F')}
145
+ onClick={() => navigateToPrepRegister('prep_new_female_general_pop', 'F', 'General popn')}
123
146
  className={styles.rectangle}
147
+ title="Click to open linelist"
124
148
  >
125
149
  {MOH731Data.prep_new_female_general_pop}
126
150
  </div>
@@ -131,7 +155,11 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
131
155
  <td>MSM/MSW</td>
132
156
  <td className={styles.textBox}>
133
157
  <span>HV01-21</span>
134
- <div onClick={() => navigateToPrepRegister('prep_new_msm', 'M')} className={styles.rectangle}>
158
+ <div
159
+ onClick={() => navigateToPrepRegister('prep_new_msm', 'M', 'MSM/MSW')}
160
+ className={styles.rectangle}
161
+ title="Click to open linelist"
162
+ >
135
163
  {MOH731Data.prep_new_msm}
136
164
  </div>
137
165
  </td>
@@ -143,7 +171,11 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
143
171
  <td>
144
172
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
145
173
  <span>HV01-22</span>
146
- <div onClick={() => navigateToPrepRegister('prep_new_fsw', 'F')} className={styles.rectangle}>
174
+ <div
175
+ onClick={() => navigateToPrepRegister('prep_new_fsw', 'F', 'FSW')}
176
+ className={styles.rectangle}
177
+ title="Click to open linelist"
178
+ >
147
179
  {MOH731Data.prep_new_fsw}
148
180
  </div>
149
181
  </div>
@@ -153,14 +185,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
153
185
  <td>PWID/PWUD</td>
154
186
  <td className={styles.textBox}>
155
187
  <span>HV01-23</span>
156
- <div onClick={() => navigateToPrepRegister('prep_new_pwud_male', 'M')} className={styles.rectangle}>
188
+ <div
189
+ onClick={() => navigateToPrepRegister('prep_new_pwud_male', 'M', 'PWID/PWUD')}
190
+ className={styles.rectangle}
191
+ title="Click to open linelist"
192
+ >
157
193
  {MOH731Data.prep_new_pwud_male}
158
194
  </div>
159
195
  </td>
160
196
  <td>
161
197
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
162
198
  <span>HV01-24</span>
163
- <div onClick={() => navigateToPrepRegister('prep_new_pwud_female', 'F')} className={styles.rectangle}>
199
+ <div
200
+ onClick={() => navigateToPrepRegister('prep_new_pwud_female', 'F', 'PWID/PWUD')}
201
+ className={styles.rectangle}
202
+ title="Click to open linelist"
203
+ >
164
204
  {MOH731Data.prep_new_pwud_female}
165
205
  </div>
166
206
  </div>
@@ -171,8 +211,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
171
211
  <td className={styles.textBox}>
172
212
  <span>HV01-25</span>
173
213
  <div
174
- onClick={() => navigateToPrepRegister('prep_new_discordant_male', 'M')}
214
+ onClick={() => navigateToPrepRegister('prep_new_discordant_male', 'M', 'Discordant Couple')}
175
215
  className={styles.rectangle}
216
+ title="Click to open linelist"
176
217
  >
177
218
  {MOH731Data.prep_new_discordant_male}
178
219
  </div>
@@ -181,8 +222,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
181
222
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
182
223
  <span>HV01-26</span>
183
224
  <div
184
- onClick={() => navigateToPrepRegister('prep_new_discordant_female', 'F')}
225
+ onClick={() => navigateToPrepRegister('prep_new_discordant_female', 'F', 'Discordant Couple')}
185
226
  className={styles.rectangle}
227
+ title="Click to open linelist"
186
228
  >
187
229
  {MOH731Data.prep_new_discordant_female}
188
230
  </div>
@@ -194,8 +236,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
194
236
  <td className={styles.textBox}>
195
237
  <span>HV01-27</span>
196
238
  <div
197
- onClick={() => navigateToPrepRegister('prep_new_vulnerable_male', 'M')}
239
+ onClick={() => navigateToPrepRegister('prep_new_vulnerable_male', 'M', 'Vulnerable Pop.')}
198
240
  className={styles.rectangle}
241
+ title="Click to open linelist"
199
242
  >
200
243
  {MOH731Data.prep_new_vulnerable_male}
201
244
  </div>
@@ -204,8 +247,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
204
247
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
205
248
  <span>HV01-28</span>
206
249
  <div
207
- onClick={() => navigateToPrepRegister('prep_new_vulnerable_female', 'F')}
250
+ onClick={() => navigateToPrepRegister('prep_new_vulnerable_female', 'F', 'Vulnerable Pop.')}
208
251
  className={styles.rectangle}
252
+ title="Click to open linelist"
209
253
  >
210
254
  {MOH731Data.prep_new_vulnerable_female}
211
255
  </div>
@@ -216,14 +260,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
216
260
  <td>AYP (10-24yrs)</td>
217
261
  <td className={styles.textBox}>
218
262
  <span>HV01-29</span>
219
- <div onClick={() => navigateToPrepRegister('prep_new_ayp', 'F')} className={styles.rectangle}>
263
+ <div
264
+ onClick={() => navigateToPrepRegister('prep_new_ayp', 'F', 'AYP (10-24yrs)')}
265
+ className={styles.rectangle}
266
+ title="Click to open linelist"
267
+ >
220
268
  {MOH731Data.prep_new_ayp}
221
269
  </div>
222
270
  </td>
223
271
  <td>
224
272
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
225
273
  <span>HV01-30</span>
226
- <div onClick={() => navigateToPrepRegister('prep_new_ayp', 'F')} className={styles.rectangle}>
274
+ <div
275
+ onClick={() => navigateToPrepRegister('prep_new_ayp', 'F', 'AYP (10-24yrs)')}
276
+ className={styles.rectangle}
277
+ title="Click to open linelist"
278
+ >
227
279
  {MOH731Data.prep_new_ayp}
228
280
  </div>
229
281
  </div>
@@ -236,71 +288,94 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
236
288
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
237
289
  <span>HV01-31</span>
238
290
  <div
239
- onClick={() => navigateToPrepRegister('prep_new_preg_breastfeeding', 'F')}
291
+ onClick={() =>
292
+ navigateToPrepRegister('prep_new_preg_breastfeeding', 'F', 'Pregnant and breastfeeding women')
293
+ }
240
294
  className={styles.rectangle}
295
+ title="Click to open linelist"
241
296
  >
242
297
  {MOH731Data.prep_new_preg_breastfeeding}
243
298
  </div>
244
299
  </div>
245
300
  </td>
246
301
  </tr>
247
- ____________________________________________________________________
302
+ </tbody>
303
+ </table>
304
+ <hr className={styles.divider} />
305
+ <table className={styles.block}>
306
+ <tbody>
248
307
  <tr>
249
- <td className={styles.spaceAfter} style={{ fontWeight: 'bold' }}>
308
+ <td className={styles.blockTitle} colSpan={3}>
250
309
  1.5 No. Seroconverted while on PrEP
251
310
  </td>
252
311
  </tr>
253
312
  <tr>
254
313
  <td className={styles.emptyColumn}></td>
255
314
  <td className={styles.subTitle}>Male</td>
256
- <td className={styles.subTitle} style={{ paddingLeft: '60px' }}>
257
- Female
258
- </td>
315
+ <td className={styles.subTitle}>Female</td>
259
316
  </tr>
260
317
  <tr>
261
318
  <td>HIV Positive</td>
262
319
  <td className={styles.textBox}>
263
320
  <span>HV01-45</span>
264
- <div onClick={() => navigateToPrepRegister('seroconverted_male', 'M')} className={styles.rectangle}>
321
+ <div
322
+ onClick={() => navigateToPrepRegister('seroconverted_male', 'M', 'HIV Positive')}
323
+ className={styles.rectangle}
324
+ title="Click to open linelist"
325
+ >
265
326
  {MOH731Data.seroconverted_male}
266
327
  </div>
267
328
  </td>
268
329
  <td>
269
330
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
270
331
  <span>HV01-46</span>
271
- <div onClick={() => navigateToPrepRegister('seroconverted_female', 'F')} className={styles.rectangle}>
332
+ <div
333
+ onClick={() => navigateToPrepRegister('seroconverted_female', 'F', 'HIV Positive')}
334
+ className={styles.rectangle}
335
+ title="Click to open linelist"
336
+ >
272
337
  {MOH731Data.seroconverted_female}
273
338
  </div>
274
339
  </div>
275
340
  </td>
276
341
  </tr>
277
- ____________________________________________________________________
278
- </div>
279
- <div className={styles.flexColumn}>
342
+ </tbody>
343
+ </table>
344
+ <hr className={styles.divider} />
345
+ </div>
346
+ <div className={styles.flexColumn}>
347
+ <table className={styles.block}>
348
+ <tbody>
280
349
  <tr>
281
- <td className={styles.spaceAfter} style={{ fontWeight: 'bold' }}>
350
+ <td className={styles.blockTitle} colSpan={3}>
282
351
  1.2 HIV Positive Results
283
352
  </td>
284
353
  </tr>
285
354
  <tr>
286
355
  <td className={styles.emptyColumn}></td>
287
356
  <td className={styles.subTitle}>Male</td>
288
- <td className={styles.subTitle} style={{ paddingLeft: '60px' }}>
289
- Female
290
- </td>
357
+ <td className={styles.subTitle}>Female</td>
291
358
  </tr>
292
359
  <tr>
293
360
  <td>Positive_2-9</td>
294
361
  <td className={styles.textBox}>
295
362
  <span>HV01-06</span>
296
- <div onClick={() => navigateToRegister('male_2_9', 'M')} className={styles.rectangle}>
363
+ <div
364
+ onClick={() => navigateToRegister('male_2_9', 'M', 'Positive_2-9')}
365
+ className={styles.rectangle}
366
+ title="Click to open linelist"
367
+ >
297
368
  {MOH731Data.male_2_9}
298
369
  </div>
299
370
  </td>
300
371
  <td>
301
372
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
302
373
  <span>HV01-07</span>
303
- <div onClick={() => navigateToRegister('female_2_9', 'F')} className={styles.rectangle}>
374
+ <div
375
+ onClick={() => navigateToRegister('female_2_9', 'F', 'Positive_2-9')}
376
+ className={styles.rectangle}
377
+ title="Click to open linelist"
378
+ >
304
379
  {MOH731Data.female_2_9}
305
380
  </div>
306
381
  </div>
@@ -310,14 +385,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
310
385
  <td>Positive_10-14</td>
311
386
  <td className={styles.textBox}>
312
387
  <span>HV01-08</span>
313
- <div onClick={() => navigateToRegister('male_10_14', 'M')} className={styles.rectangle}>
388
+ <div
389
+ onClick={() => navigateToRegister('male_10_14', 'M', 'Positive_10-14')}
390
+ className={styles.rectangle}
391
+ title="Click to open linelist"
392
+ >
314
393
  {MOH731Data.male_10_14}
315
394
  </div>
316
395
  </td>
317
396
  <td>
318
397
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
319
398
  <span>HV01-09</span>
320
- <div onClick={() => navigateToRegister('female_10_14', 'F')} className={styles.rectangle}>
399
+ <div
400
+ onClick={() => navigateToRegister('female_10_14', 'F', 'Positive_10-14')}
401
+ className={styles.rectangle}
402
+ title="Click to open linelist"
403
+ >
321
404
  {MOH731Data.female_10_14}
322
405
  </div>
323
406
  </div>
@@ -327,14 +410,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
327
410
  <td>Positive_15-19</td>
328
411
  <td className={styles.textBox}>
329
412
  <span>HV01-10</span>
330
- <div onClick={() => navigateToRegister('male_15_19', 'M')} className={styles.rectangle}>
413
+ <div
414
+ onClick={() => navigateToRegister('male_15_19', 'M', 'Positive_15-19')}
415
+ className={styles.rectangle}
416
+ title="Click to open linelist"
417
+ >
331
418
  {MOH731Data.male_15_19}
332
419
  </div>
333
420
  </td>
334
421
  <td>
335
422
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
336
423
  <span>HV01-11</span>
337
- <div onClick={() => navigateToRegister('female_15_19', 'F')} className={styles.rectangle}>
424
+ <div
425
+ onClick={() => navigateToRegister('female_15_19', 'F', 'Positive_15-19')}
426
+ className={styles.rectangle}
427
+ title="Click to open linelist"
428
+ >
338
429
  {MOH731Data.female_15_19}
339
430
  </div>
340
431
  </div>
@@ -344,14 +435,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
344
435
  <td>Positive_20-24</td>
345
436
  <td className={styles.textBox}>
346
437
  <span>HV01-12</span>
347
- <div onClick={() => navigateToRegister('male_20_24', 'M')} className={styles.rectangle}>
438
+ <div
439
+ onClick={() => navigateToRegister('male_20_24', 'M', 'Positive_20-24')}
440
+ className={styles.rectangle}
441
+ title="Click to open linelist"
442
+ >
348
443
  {MOH731Data.male_20_24}
349
444
  </div>
350
445
  </td>
351
446
  <td>
352
447
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
353
448
  <span>HV01-13</span>
354
- <div onClick={() => navigateToRegister('female_20_24', 'F')} className={styles.rectangle}>
449
+ <div
450
+ onClick={() => navigateToRegister('female_20_24', 'F', 'Positive_20-24')}
451
+ className={styles.rectangle}
452
+ title="Click to open linelist"
453
+ >
355
454
  {MOH731Data.female_20_24}
356
455
  </div>
357
456
  </div>
@@ -361,14 +460,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
361
460
  <td>Positive_25+</td>
362
461
  <td className={styles.textBox}>
363
462
  <span>HV01-14</span>
364
- <div onClick={() => navigateToRegister('male_25_above', 'M')} className={styles.rectangle}>
463
+ <div
464
+ onClick={() => navigateToRegister('male_25_above', 'M', 'Positive_25+')}
465
+ className={styles.rectangle}
466
+ title="Click to open linelist"
467
+ >
365
468
  {MOH731Data.male_25_above}
366
469
  </div>
367
470
  </td>
368
471
  <td>
369
472
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
370
473
  <span>HV01-15</span>
371
- <div onClick={() => navigateToRegister('female_25_above', 'F')} className={styles.rectangle}>
474
+ <div
475
+ onClick={() => navigateToRegister('female_25_above', 'F', 'Positive_25+')}
476
+ className={styles.rectangle}
477
+ title="Click to open linelist"
478
+ >
372
479
  {MOH731Data.female_25_above}
373
480
  </div>
374
481
  </div>
@@ -381,7 +488,7 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
381
488
  <div className={styles.rectangle}></div>
382
489
  </td>
383
490
  </tr>
384
- <tr style={{ paddingTop: '10px', paddingBottom: '10px' }}>
491
+ <tr>
385
492
  <td>Discordant</td>
386
493
  <td className={styles.textBox}>
387
494
  <span>HV01-17</span>
@@ -407,26 +514,29 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
407
514
  </div>
408
515
  </td>
409
516
  </tr>
410
- ____________________________________________________________________
517
+ </tbody>
518
+ </table>
519
+ <hr className={styles.divider} />
520
+ <table className={styles.block}>
521
+ <tbody>
411
522
  <tr>
412
- <td className={styles.spaceAfter} style={{ fontWeight: 'bold' }}>
523
+ <td className={styles.blockTitle} colSpan={3}>
413
524
  1.4 No. on PrEP Diagnosed with STI
414
525
  </td>
415
526
  </tr>
416
527
  <tr>
417
528
  <td className={styles.emptyColumn}></td>
418
529
  <td className={styles.subTitle}>Male</td>
419
- <td className={styles.subTitle} style={{ paddingLeft: '60px' }}>
420
- Female
421
- </td>
530
+ <td className={styles.subTitle}>Female</td>
422
531
  </tr>
423
532
  <tr>
424
533
  <td>General popn</td>
425
534
  <td className={styles.textBox}>
426
535
  <span>HV01-32</span>
427
536
  <div
428
- onClick={() => navigateToPrepRegister('prep_sti_male_general_pop', 'M')}
537
+ onClick={() => navigateToPrepRegister('prep_sti_male_general_pop', 'M', 'General popn')}
429
538
  className={styles.rectangle}
539
+ title="Click to open linelist"
430
540
  >
431
541
  {MOH731Data.prep_sti_male_general_pop}
432
542
  </div>
@@ -435,8 +545,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
435
545
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
436
546
  <span>HV01-33</span>
437
547
  <div
438
- onClick={() => navigateToPrepRegister('prep_sti_female_general_pop', 'F')}
548
+ onClick={() => navigateToPrepRegister('prep_sti_female_general_pop', 'F', 'General popn')}
439
549
  className={styles.rectangle}
550
+ title="Click to open linelist"
440
551
  >
441
552
  {MOH731Data.prep_sti_female_general_pop}
442
553
  </div>
@@ -447,7 +558,11 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
447
558
  <td>MSM/MSW</td>
448
559
  <td className={styles.textBox}>
449
560
  <span>HV01-34</span>
450
- <div onClick={() => navigateToPrepRegister('prep_sti_msm', 'M')} className={styles.rectangle}>
561
+ <div
562
+ onClick={() => navigateToPrepRegister('prep_sti_msm', 'M', 'MSM/MSW')}
563
+ className={styles.rectangle}
564
+ title="Click to open linelist"
565
+ >
451
566
  {MOH731Data.prep_sti_msm}
452
567
  </div>
453
568
  </td>
@@ -455,26 +570,40 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
455
570
  </tr>
456
571
  <tr>
457
572
  <td>FSW</td>
458
- <td className={styles.textBox}>
459
- <span>HV01-35</span>
460
- <div onClick={() => navigateToPrepRegister('prep_sti_fsw', 'F')} className={styles.rectangle}>
461
- {MOH731Data.prep_sti_fsw}
573
+ <td></td>
574
+ <td>
575
+ <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
576
+ <span>HV01-35</span>
577
+ <div
578
+ onClick={() => navigateToPrepRegister('prep_sti_fsw', 'F', 'FSW')}
579
+ className={styles.rectangle}
580
+ title="Click to open linelist"
581
+ >
582
+ {MOH731Data.prep_sti_fsw}
583
+ </div>
462
584
  </div>
463
585
  </td>
464
- <td></td>
465
586
  </tr>
466
587
  <tr>
467
588
  <td>PWID/PWUD</td>
468
589
  <td className={styles.textBox}>
469
590
  <span>HV01-36</span>
470
- <div onClick={() => navigateToPrepRegister('prep_sti_pwud_male', 'M')} className={styles.rectangle}>
591
+ <div
592
+ onClick={() => navigateToPrepRegister('prep_sti_pwud_male', 'M', 'PWID/PWUD')}
593
+ className={styles.rectangle}
594
+ title="Click to open linelist"
595
+ >
471
596
  {MOH731Data.prep_sti_pwud_male}
472
597
  </div>
473
598
  </td>
474
599
  <td>
475
600
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
476
601
  <span>HV01-37</span>
477
- <div onClick={() => navigateToPrepRegister('prep_sti_pwud_female', 'F')} className={styles.rectangle}>
602
+ <div
603
+ onClick={() => navigateToPrepRegister('prep_sti_pwud_female', 'F', 'PWID/PWUD')}
604
+ className={styles.rectangle}
605
+ title="Click to open linelist"
606
+ >
478
607
  {MOH731Data.prep_sti_pwud_female}
479
608
  </div>
480
609
  </div>
@@ -485,8 +614,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
485
614
  <td className={styles.textBox}>
486
615
  <span>HV01-38</span>
487
616
  <div
488
- onClick={() => navigateToPrepRegister('prep_sti_discordant_male', 'M')}
617
+ onClick={() => navigateToPrepRegister('prep_sti_discordant_male', 'M', 'Discordant Couple')}
489
618
  className={styles.rectangle}
619
+ title="Click to open linelist"
490
620
  >
491
621
  {MOH731Data.prep_sti_discordant_male}
492
622
  </div>
@@ -495,8 +625,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
495
625
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
496
626
  <span>HV01-39</span>
497
627
  <div
498
- onClick={() => navigateToPrepRegister('prep_sti_discordant_female', 'F')}
628
+ onClick={() => navigateToPrepRegister('prep_sti_discordant_female', 'F', 'Discordant Couple')}
499
629
  className={styles.rectangle}
630
+ title="Click to open linelist"
500
631
  >
501
632
  {MOH731Data.prep_sti_discordant_female}
502
633
  </div>
@@ -508,8 +639,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
508
639
  <td className={styles.textBox}>
509
640
  <span>HV01-40</span>
510
641
  <div
511
- onClick={() => navigateToPrepRegister('prep_sti_vulnerable_male', 'M')}
642
+ onClick={() => navigateToPrepRegister('prep_sti_vulnerable_male', 'M', 'Vulnerable Pop.')}
512
643
  className={styles.rectangle}
644
+ title="Click to open linelist"
513
645
  >
514
646
  {MOH731Data.prep_sti_vulnerable_male}
515
647
  </div>
@@ -518,8 +650,9 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
518
650
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
519
651
  <span>HV01-41</span>
520
652
  <div
521
- onClick={() => navigateToPrepRegister('prep_sti_vulnerable_female', 'F')}
653
+ onClick={() => navigateToPrepRegister('prep_sti_vulnerable_female', 'F', 'Vulnerable Pop.')}
522
654
  className={styles.rectangle}
655
+ title="Click to open linelist"
523
656
  >
524
657
  {MOH731Data.prep_sti_vulnerable_female}
525
658
  </div>
@@ -530,14 +663,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
530
663
  <td>AYP(10-24 yrs)</td>
531
664
  <td className={styles.textBox}>
532
665
  <span>HV01-42</span>
533
- <div onClick={() => navigateToPrepRegister('prep_sti_ayp', 'F')} className={styles.rectangle}>
666
+ <div
667
+ onClick={() => navigateToPrepRegister('prep_sti_ayp', 'F', 'AYP(10-24 yrs)')}
668
+ className={styles.rectangle}
669
+ title="Click to open linelist"
670
+ >
534
671
  {MOH731Data.prep_sti_ayp}
535
672
  </div>
536
673
  </td>
537
674
  <td>
538
675
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
539
676
  <span>HV01-43</span>
540
- <div onClick={() => navigateToPrepRegister('prep_sti_ayp', 'F')} className={styles.rectangle}>
677
+ <div
678
+ onClick={() => navigateToPrepRegister('prep_sti_ayp', 'F', 'AYP(10-24 yrs)')}
679
+ className={styles.rectangle}
680
+ title="Click to open linelist"
681
+ >
541
682
  {MOH731Data.prep_sti_ayp}
542
683
  </div>
543
684
  </div>
@@ -550,19 +691,22 @@ const HivTestingandPreExposusreProphylaxis: React.FC<HivTestingandPreExposusrePr
550
691
  <div className={classNames(`${styles.textBox}`, `${styles.textBox2}`)}>
551
692
  <span>HV01-44</span>
552
693
  <div
553
- onClick={() => navigateToPrepRegister('prep_sti_preg_breastfeeding', 'F')}
694
+ onClick={() =>
695
+ navigateToPrepRegister('prep_sti_preg_breastfeeding', 'F', 'Pregnant and breastfeeding women')
696
+ }
554
697
  className={styles.rectangle}
698
+ title="Click to open linelist"
555
699
  >
556
700
  {MOH731Data.prep_sti_preg_breastfeeding}
557
701
  </div>
558
702
  </div>
559
703
  </td>
560
704
  </tr>
561
- ____________________________________________________________________
562
- </div>
563
- </div>
564
- </tbody>
565
- </table>
705
+ </tbody>
706
+ </table>
707
+ <hr className={styles.divider} />
708
+ </div>
709
+ </div>
566
710
  );
567
711
  };
568
712