@ampath/esm-reports-app 1.0.0-next.2 → 1.0.0-next.21

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 (154) hide show
  1. package/dist/138.js +2 -0
  2. package/dist/138.js.LICENSE.txt +20 -0
  3. package/dist/138.js.map +1 -0
  4. package/dist/184.js +1 -1
  5. package/dist/184.js.map +1 -1
  6. package/dist/205.js +1 -0
  7. package/dist/205.js.map +1 -0
  8. package/dist/282.js +1 -1
  9. package/dist/282.js.LICENSE.txt +3 -3
  10. package/dist/282.js.map +1 -1
  11. package/dist/311.js +1 -0
  12. package/dist/311.js.map +1 -0
  13. package/dist/353.js +1 -1
  14. package/dist/353.js.map +1 -1
  15. package/dist/478.js +2 -0
  16. package/dist/478.js.LICENSE.txt +9 -0
  17. package/dist/478.js.map +1 -0
  18. package/dist/51.js +1 -0
  19. package/dist/51.js.map +1 -0
  20. package/dist/540.js +1 -1
  21. package/dist/540.js.map +1 -1
  22. package/dist/812.js +1 -0
  23. package/dist/812.js.map +1 -0
  24. package/dist/961.js +1 -1
  25. package/dist/961.js.map +1 -1
  26. package/dist/ampath-esm-reports-app.js +1 -1
  27. package/dist/ampath-esm-reports-app.js.buildmanifest.json +128 -151
  28. package/dist/ampath-esm-reports-app.js.map +1 -1
  29. package/dist/main.js +1 -1
  30. package/dist/main.js.map +1 -1
  31. package/dist/routes.json +1 -1
  32. package/package.json +2 -1
  33. package/src/common/report-filters/report-filters.component.tsx +127 -0
  34. package/src/common/report-filters/report-filters.scss +49 -0
  35. package/src/config-schema.ts +6 -37
  36. package/src/createDashboardLink.tsx +9 -0
  37. package/src/dashboard/reports-dasboard.tsx +44 -0
  38. package/src/dashboard/reports-dashboard.module.scss +14 -0
  39. package/src/dashboard-meta/reports-dashboard.meta.ts +6 -0
  40. package/src/index.ts +6 -35
  41. package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +54 -0
  42. package/src/reports/moh-240/moh-240-header.component.tsx +61 -0
  43. package/src/reports/moh-240/moh-240.component.tsx +68 -0
  44. package/src/reports/moh-240/moh-240.scss +3 -0
  45. package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +72 -0
  46. package/src/reports/moh-240/sub-reports/page-summary.component.tsx +95 -0
  47. package/src/reports/moh-505/moh-505-header.component.tsx +62 -0
  48. package/src/reports/moh-505/moh-505.component.tsx +240 -0
  49. package/src/reports/moh-505/moh-505.scss +3 -0
  50. package/src/reports/moh-705B/moh-705b.component.tsx +466 -0
  51. package/src/reports/moh-705B/moh-705b.scss +41 -0
  52. package/src/reports/moh-705a/moh-705a.component.tsx +473 -0
  53. package/src/reports/moh-705a/moh-705a.scss +41 -0
  54. package/src/reports/moh-706/moh-706-header.component.tsx +61 -0
  55. package/src/reports/moh-706/moh-706.component.tsx +104 -0
  56. package/src/reports/moh-706/moh-706.scss +30 -0
  57. package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +124 -0
  58. package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +318 -0
  59. package/src/reports/moh-706/sub-reports/drug-susceptibility-testing/drug-susceptibility-testing.component.tsx +137 -0
  60. package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +179 -0
  61. package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +88 -0
  62. package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +121 -0
  63. package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +47 -0
  64. package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +39 -0
  65. package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +108 -0
  66. package/src/reports/moh-710/moh-710.component.tsx +663 -0
  67. package/src/reports/moh-710/moh-710.scss +41 -0
  68. package/src/reports/moh-711/moh-711.component.tsx +121 -0
  69. package/src/reports/moh-711/moh711.scss +71 -0
  70. package/src/reports/moh-711/sections/anc.component.tsx +134 -0
  71. package/src/reports/moh-711/sections/cervical-cancer.component.tsx +104 -0
  72. package/src/reports/moh-711/sections/chanis.component.tsx +367 -0
  73. package/src/reports/moh-711/sections/family-planning.component.tsx +221 -0
  74. package/src/reports/moh-711/sections/gbv.component.tsx +115 -0
  75. package/src/reports/moh-711/sections/maternity.component.tsx +280 -0
  76. package/src/reports/moh-711/sections/medical-social-work.component.tsx +83 -0
  77. package/src/reports/moh-711/sections/other.component.tsx +47 -0
  78. package/src/reports/moh-711/sections/physiotherapy.component.tsx +61 -0
  79. package/src/reports/moh-711/sections/pnc.component.tsx +92 -0
  80. package/src/reports/moh-711/sections/post-abortion.component.tsx +42 -0
  81. package/src/reports/moh-711/sections/rehabilitation.component.tsx +57 -0
  82. package/src/reports/moh-711/sections/report-compiled-by.component.tsx +42 -0
  83. package/src/reports/moh-711/sections/tb-screening.component.tsx +57 -0
  84. package/src/reports/moh-717/moh-717.component.tsx +152 -0
  85. package/src/reports/moh-717/moh717.scss +150 -0
  86. package/src/reports/moh-717/sections/finance.component.tsx +42 -0
  87. package/src/reports/moh-717/sections/inpatient.component.tsx +374 -0
  88. package/src/reports/moh-717/sections/maternity.component.tsx +94 -0
  89. package/src/reports/moh-717/sections/medical-records.component.tsx +35 -0
  90. package/src/reports/moh-717/sections/mortuary.component.tsx +43 -0
  91. package/src/reports/moh-717/sections/operations.component.tsx +53 -0
  92. package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +98 -0
  93. package/src/reports/moh-717/sections/outpatient.component.tsx +489 -0
  94. package/src/reports/moh-717/sections/pharmacy.component.tsx +43 -0
  95. package/src/reports/moh-717/sections/preparedby.component.tsx +47 -0
  96. package/src/reports/moh-717/sections/special-services.component.tsx +114 -0
  97. package/src/reports/moh-740/moh-740.component.scss +120 -0
  98. package/src/reports/moh-740/moh-740.component.tsx +907 -0
  99. package/src/reports/moh-740/moh-740.resource.ts +42 -0
  100. package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +6 -0
  101. package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +58 -0
  102. package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
  103. package/src/reports/moh-740/registers/moh-740-patient-list.tsx +43 -0
  104. package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
  105. package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
  106. package/src/reports/moh-740/types/index.ts +115 -0
  107. package/src/reports/moh-745/moh-745.component.tsx +629 -0
  108. package/src/reports/moh-745/moh-745.scss +69 -0
  109. package/src/reports/table-wrapper/table-row-mapper.component.tsx +51 -0
  110. package/src/reports/table-wrapper/table-wrapper.component.tsx +21 -0
  111. package/src/reports/table-wrapper/table-wrapper.scss +31 -0
  112. package/src/resources/moh-705.resource.ts +60 -0
  113. package/src/resources/moh-706.resource.ts +86 -0
  114. package/src/resources/moh-710.resource.ts +34 -0
  115. package/src/resources/moh-711.resource.ts +34 -0
  116. package/src/resources/moh-717.resource.ts +35 -0
  117. package/src/resources/moh-745.resource.ts +34 -0
  118. package/src/root.component.tsx +30 -32
  119. package/src/routes.json +14 -17
  120. package/src/utils/get-base-url.ts +12 -0
  121. package/src/utils/utils.ts +36 -0
  122. package/dist/19.js +0 -2
  123. package/dist/19.js.LICENSE.txt +0 -39
  124. package/dist/19.js.map +0 -1
  125. package/dist/255.js +0 -1
  126. package/dist/255.js.map +0 -1
  127. package/dist/389.js +0 -1
  128. package/dist/389.js.map +0 -1
  129. package/dist/451.js +0 -1
  130. package/dist/451.js.map +0 -1
  131. package/dist/488.js +0 -1
  132. package/dist/488.js.map +0 -1
  133. package/dist/557.js +0 -1
  134. package/dist/557.js.map +0 -1
  135. package/dist/91.js +0 -1
  136. package/dist/91.js.map +0 -1
  137. package/dist/970.js +0 -1
  138. package/dist/970.js.map +0 -1
  139. package/src/boxes/extensions/blue-box.component.tsx +0 -15
  140. package/src/boxes/extensions/box.scss +0 -23
  141. package/src/boxes/extensions/brand-box.component.tsx +0 -15
  142. package/src/boxes/extensions/red-box.component.tsx +0 -15
  143. package/src/boxes/slot/boxes.component.tsx +0 -25
  144. package/src/boxes/slot/boxes.scss +0 -29
  145. package/src/greeter/greeter.component.tsx +0 -42
  146. package/src/greeter/greeter.scss +0 -20
  147. package/src/greeter/greeter.test.tsx +0 -28
  148. package/src/patient-getter/patient-getter.component.tsx +0 -40
  149. package/src/patient-getter/patient-getter.resource.ts +0 -39
  150. package/src/patient-getter/patient-getter.scss +0 -16
  151. package/src/patient-getter/patient-getter.test.tsx +0 -40
  152. package/src/resources/resources.component.tsx +0 -56
  153. package/src/resources/resources.scss +0 -68
  154. package/src/root.test.tsx +0 -51
@@ -0,0 +1,98 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface OrthopaedicTraumaComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const OrthopaedicTraumaComponent: React.FC<OrthopaedicTraumaComponentProps> = ({ moh717ReportData }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th className={styles.totals}>B4. ORTHOPAEDIC TRAUMA SERVICES</th>
17
+ <th colSpan={2}>&lt;5 Years</th>
18
+ <th colSpan={2}>&gt;5 Years</th>
19
+ </tr>
20
+ <tr>
21
+ <th className={styles.alighnLeft}>Description</th>
22
+ <th>New</th>
23
+ <th>Revisit</th>
24
+ <th>New</th>
25
+ <th>Revisit</th>
26
+ </tr>
27
+ </thead>
28
+ <tbody>
29
+ <tr>
30
+ <td>No of Casts fixed</td>
31
+ <td>{moh717ReportData.casts_fixed_less_5_years_new}</td>
32
+ <td>{moh717ReportData.casts_fixed_less_5_years_revisit}</td>
33
+ <td>{moh717ReportData.casts_fixed_over_5_years_new}</td>
34
+ <td>{moh717ReportData.casts_fixed_over_5_years_revisit}</td>
35
+ </tr>
36
+ <tr>
37
+ <td>No of Tractions fixed</td>
38
+ <td>{moh717ReportData.tractions_fixed_less_5_years_new}</td>
39
+ <td>{moh717ReportData.tractions_fixed_less_5_years_revisit}</td>
40
+ <td>{moh717ReportData.tractions_fixed_over_5_years_new}</td>
41
+ <td>{moh717ReportData.tractions_fixed_over_5_years_revisit}</td>
42
+ </tr>
43
+ <tr>
44
+ <td>No of Closed Reductions (Fructures, Dislocation)</td>
45
+ <td>{moh717ReportData.closed_reductions_less_5_years_new}</td>
46
+ <td>{moh717ReportData.closed_reductions_less_5_years_revisit}</td>
47
+ <td>{moh717ReportData.closed_reductions_over_5_years_new}</td>
48
+ <td>{moh717ReportData.closed_reductions_over_5_years_revisit}</td>
49
+ </tr>
50
+ <tr>
51
+ <td>No of Orthopeadic cases assisted in theatre</td>
52
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_less_5_years_new}</td>
53
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_less_5_years_revisit}</td>
54
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_over_5_years_new}</td>
55
+ <td>{moh717ReportData.orthopaedic_assisted_in_theatre_over_5_years_revisit}</td>
56
+ </tr>
57
+ <tr>
58
+ <td>No of club foot seen /corrected (Ponsseti method)</td>
59
+ <td>{moh717ReportData.club_foot_seen_less_5_years_new}</td>
60
+ <td>{moh717ReportData.club_foot_seen_less_5_years_revisit}</td>
61
+ <td>{moh717ReportData.club_foot_seen_over_5_years_new}</td>
62
+ <td>{moh717ReportData.club_foot_seen_over_5_years_revisit}</td>
63
+ </tr>
64
+ <tr>
65
+ <td>No of Crepe bandages and arm slings applied</td>
66
+ <td>{moh717ReportData.crepe_bandages_applied_less_5_years_new}</td>
67
+ <td>{moh717ReportData.crepe_bandages_applied_less_5_years_revisit}</td>
68
+ <td>{moh717ReportData.crepe_bandages_applied_over_5_years_new}</td>
69
+ <td>{moh717ReportData.crepe_bandages_applied_over_5_years_revisit}</td>
70
+ </tr>
71
+ <tr>
72
+ <th className={styles.alignLeft}>Removals</th>
73
+ <th colSpan={2}>Casts</th>
74
+ <th colSpan={2}>Tractions</th>
75
+ <th>Ex-Fixator</th>
76
+ </tr>
77
+ <tr>
78
+ <td rowSpan={2}></td>
79
+ <th>&lt;5 years</th>
80
+ <th>&gt;5 years</th>
81
+ <th>&lt;5 years</th>
82
+ <th>&gt;5 years</th>
83
+ <th>&gt;5 years</th>
84
+ </tr>
85
+ <tr>
86
+ <th>{moh717ReportData.removals_done_cast_less_5_years}</th>
87
+ <th>{moh717ReportData.removals_done_cast_over_5_years}</th>
88
+ <th>{moh717ReportData.removals_done_tractions_less_5_years}</th>
89
+ <th>{moh717ReportData.orthopaedic_removals_tractions_over_5_years}</th>
90
+ <th>{moh717ReportData.ex_fixator_removed_over_5_years}</th>
91
+ </tr>
92
+ </tbody>
93
+ </table>
94
+ </>
95
+ );
96
+ };
97
+
98
+ export default OrthopaedicTraumaComponent;
@@ -0,0 +1,489 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface OutpatientComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const OutpatientComponent: React.FC<OutpatientComponentProps> = ({ moh717ReportData }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th colSpan={5} className={styles.alighnLeft}>
17
+ A. OUTPATIENT SERVICES
18
+ </th>
19
+ </tr>
20
+ <tr>
21
+ <th colSpan={2} className={styles.alighnLeft}>
22
+ A.1 GENERAL OUTPATIENTS(FILTER CLINICS)
23
+ </th>
24
+ <th>NEW</th>
25
+ <th>RE-ATT</th>
26
+ <th>TOTAL</th>
27
+ </tr>
28
+ </thead>
29
+ <tbody>
30
+ <tr>
31
+ <td>A.1.1</td>
32
+ <td>Over 5 - Male</td>
33
+ <td>{moh717ReportData.opd_attendance_greater_5yrs_male_new}</td>
34
+ <td>{moh717ReportData.opd_attendance_greater_5yrs_male_revisit}</td>
35
+ <td>
36
+ {(moh717ReportData.opd_attendance_greater_5yrs_male_new || 0) +
37
+ (moh717ReportData.opd_attendance_greater_5yrs_male_revisit || 0)}
38
+ </td>
39
+ </tr>
40
+ <tr>
41
+ <td>A.1.2</td>
42
+ <td>Over 5 - Female</td>
43
+ <td>{moh717ReportData.opd_attendance_greater_5yrs_female_new}</td>
44
+ <td>{moh717ReportData.opd_attendance_greater_5yrs_female_revisit}</td>
45
+ <td>
46
+ {(moh717ReportData.opd_attendance_greater_5yrs_female_new || 0) +
47
+ (moh717ReportData.opd_attendance_greater_5yrs_female_revisit || 0)}
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td>A.1.3</td>
52
+ <td>Children Under 5 - Male</td>
53
+ <td>{moh717ReportData.opd_attendance_less_5yrs_male_new}</td>
54
+ <td>{moh717ReportData.opd_attendance_less_5yrs_male_revisit}</td>
55
+ <td>
56
+ {(moh717ReportData.opd_attendance_less_5yrs_male_new || 0) +
57
+ (moh717ReportData.opd_attendance_less_5yrs_male_revisit || 0)}
58
+ </td>
59
+ </tr>
60
+ <tr>
61
+ <td>A.1.4</td>
62
+ <td>Children Under 5 - Female</td>
63
+ <td>{moh717ReportData.opd_attendance_less_5yrs_female_new}</td>
64
+ <td>{moh717ReportData.opd_attendance_less_5yrs_female_revisit}</td>
65
+ <td>
66
+ {(moh717ReportData.opd_attendance_less_5yrs_female_new || 0) +
67
+ (moh717ReportData.opd_attendance_less_5yrs_female_revisit || 0)}
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <td>A.1.5</td>
72
+ <td>Over 60 years</td>
73
+ <td>{moh717ReportData.over_60_years_new}</td>
74
+ <td>{moh717ReportData.over_60_years_revisit}</td>
75
+ <td>{(moh717ReportData.over_60_years_new || 0) + (moh717ReportData.over_60_years_revisit || 0)}</td>
76
+ </tr>
77
+ <tr>
78
+ <td className={styles.totals}>A.1.5</td>
79
+ <td className={styles.totals}>TOTAL GENERAL OUTPATIENTS</td>
80
+ <td className={styles.totals}>
81
+ {(moh717ReportData.opd_attendance_greater_5yrs_male_new || 0) +
82
+ (moh717ReportData.opd_attendance_greater_5yrs_female_new || 0) +
83
+ (moh717ReportData.opd_attendance_less_5yrs_male_new || 0) +
84
+ (moh717ReportData.opd_attendance_less_5yrs_female_new || 0) +
85
+ (moh717ReportData.over_60_years_new || 0)}
86
+ </td>
87
+ <td className={styles.totals}>
88
+ {(moh717ReportData.opd_attendance_greater_5yrs_male_revisit || 0) +
89
+ (moh717ReportData.opd_attendance_greater_5yrs_female_revisit || 0) +
90
+ (moh717ReportData.opd_attendance_less_5yrs_male_revisit || 0) +
91
+ (moh717ReportData.opd_attendance_less_5yrs_female_revisit || 0) +
92
+ (moh717ReportData.over_60_years_revisit || 0)}
93
+ </td>
94
+ <td className={styles.totals}>
95
+ {(moh717ReportData.opd_attendance_greater_5yrs_male_new || 0) +
96
+ (moh717ReportData.opd_attendance_greater_5yrs_female_new || 0) +
97
+ (moh717ReportData.opd_attendance_less_5yrs_male_new || 0) +
98
+ (moh717ReportData.opd_attendance_less_5yrs_female_new || 0) +
99
+ (moh717ReportData.over_60_years_new || 0) +
100
+ (moh717ReportData.opd_attendance_greater_5yrs_male_revisit || 0) +
101
+ (moh717ReportData.opd_attendance_greater_5yrs_female_revisit || 0) +
102
+ (moh717ReportData.opd_attendance_less_5yrs_male_revisit || 0) +
103
+ (moh717ReportData.opd_attendance_less_5yrs_female_revisit || 0) +
104
+ (moh717ReportData.over_60_years_revisit || 0)}
105
+ </td>
106
+ </tr>
107
+ <tr>
108
+ <th colSpan={2} className={styles.alighnLeft}>
109
+ A.2 CASUALTY
110
+ </th>
111
+ <th></th>
112
+ <th></th>
113
+ <th></th>
114
+ </tr>
115
+ <tr>
116
+ <th colSpan={3} className={styles.alighnLeft}>
117
+ A.3 SPECIAL CLINICS(if recorded separately from General Filter Clinics)
118
+ </th>
119
+ <th></th>
120
+ <th></th>
121
+ </tr>
122
+ <tr>
123
+ <td>A.3.1</td>
124
+ <td>E.N.T. Clinic</td>
125
+ <td>{moh717ReportData.ent_clinic_attendance_new}</td>
126
+ <td>{moh717ReportData.ent_clinic_attendance_revisit}</td>
127
+ <td>
128
+ {(moh717ReportData.ent_clinic_attendance_new || 0) +
129
+ (moh717ReportData.ent_clinic_attendance_revisit || 0)}
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <td>A.3.2</td>
134
+ <td>Eye Clinic</td>
135
+ <td>{moh717ReportData.eye_clinic_attendance_new}</td>
136
+ <td>{moh717ReportData.eye_clinic_attendance_revisit}</td>
137
+ <td>
138
+ {(moh717ReportData.eye_clinic_attendance_new || 0) +
139
+ (moh717ReportData.eye_clinic_attendance_revisit || 0)}
140
+ </td>
141
+ </tr>
142
+ <tr>
143
+ <td>A.3.3</td>
144
+ <td>TB and Leprosy</td>
145
+ <td>{moh717ReportData.tb_and_leprosy_attendance_new}</td>
146
+ <td>{moh717ReportData.tb_and_leprosy_attendance_revisit}</td>
147
+ <td>
148
+ {(moh717ReportData.tb_and_leprosy_attendance_new || 0) +
149
+ (moh717ReportData.tb_and_leprosy_attendance_revisit || 0)}
150
+ </td>
151
+ </tr>
152
+ <tr>
153
+ <td>A.3.4</td>
154
+ <td>Comprehensive Care Clinic (CCC)</td>
155
+ <td>{moh717ReportData.ccc_new}</td>
156
+ <td>{moh717ReportData.ccc_revisit}</td>
157
+ <td>{(moh717ReportData.ccc_new || 0) + (moh717ReportData.ccc_revisit || 0)}</td>
158
+ </tr>
159
+ <tr>
160
+ <td>A.3.5</td>
161
+ <td>Psychiatry</td>
162
+ <td>{moh717ReportData.psychiatry_attendance_new}</td>
163
+ <td>{moh717ReportData.psychiatry_attendance_revisit}</td>
164
+ <td>
165
+ {(moh717ReportData.psychiatry_attendance_new || 0) +
166
+ (moh717ReportData.psychiatry_attendance_revisit || 0)}
167
+ </td>
168
+ </tr>
169
+ <tr>
170
+ <td>A.3.6</td>
171
+ <td>Orthopaedic Clinic</td>
172
+ <td>{moh717ReportData.orthopaedic_new}</td>
173
+ <td>{moh717ReportData.orthopaedic_revisit}</td>
174
+ <td>{(moh717ReportData.orthopaedic_new || 0) + (moh717ReportData.orthopaedic_revisit || 0)}</td>
175
+ </tr>
176
+ <tr>
177
+ <td>A.3.7</td>
178
+ <td>Occupational Therapy</td>
179
+ <td>{moh717ReportData.occupational_therapy_new}</td>
180
+ <td>{moh717ReportData.occupational_therapy_revisit}</td>
181
+ <td>
182
+ {(moh717ReportData.occupational_therapy_new || 0) + (moh717ReportData.occupational_therapy_revisit || 0)}
183
+ </td>
184
+ </tr>
185
+ <tr>
186
+ <td>A.3.8</td>
187
+ <td>Physiotherapy Clinic</td>
188
+ <td>{moh717ReportData.physiotherapy_new}</td>
189
+ <td>{moh717ReportData.physiotherapy_revisit}</td>
190
+ <td>{(moh717ReportData.physiotherapy_new || 0) + (moh717ReportData.physiotherapy_revisit || 0)}</td>
191
+ </tr>
192
+ <tr>
193
+ <td>A.3.9</td>
194
+ <td>Medical Clinics</td>
195
+ <td>{moh717ReportData.medical_attendance_new}</td>
196
+ <td>{moh717ReportData.medical_attendance_revisit}</td>
197
+ <td>
198
+ {(moh717ReportData.medical_attendance_new || 0) + (moh717ReportData.medical_attendance_revisit || 0)}
199
+ </td>
200
+ </tr>
201
+ <tr>
202
+ <td>A.3.10</td>
203
+ <td>Surgical Clinics</td>
204
+ <td>{moh717ReportData.surgical_clinics_new}</td>
205
+ <td>{moh717ReportData.surgical_clinics_revisit}</td>
206
+ <td>{(moh717ReportData.surgical_clinics_new || 0) + (moh717ReportData.surgical_clinics_revisit || 0)}</td>
207
+ </tr>
208
+ <tr>
209
+ <td>A.3.11</td>
210
+ <td>Paediatrics</td>
211
+ <td>{moh717ReportData.paediatrics_attendance_new}</td>
212
+ <td>{moh717ReportData.paediatrics_attendance_revisit}</td>
213
+ <td>
214
+ {(moh717ReportData.paediatrics_attendance_new || 0) +
215
+ (moh717ReportData.paediatrics_attendance_revisit || 0)}
216
+ </td>
217
+ </tr>
218
+ <tr>
219
+ <td>A.3.12</td>
220
+ <td>Obstetrics/Gynaecology</td>
221
+ <td>{moh717ReportData.obstetrics_gynaecology_new}</td>
222
+ <td>{moh717ReportData.obstetrics_gynaecology_revisit}</td>
223
+ <td>
224
+ {(moh717ReportData.obstetrics_gynaecology_new || 0) +
225
+ (moh717ReportData.obstetrics_gynaecology_revisit || 0)}
226
+ </td>
227
+ </tr>
228
+ <tr>
229
+ <td>A.3.13</td>
230
+ <td>Nutrition Clinic</td>
231
+ <td>{moh717ReportData.nutrition_new}</td>
232
+ <td>{moh717ReportData.nutrition_revisit}</td>
233
+ <td>{(moh717ReportData.nutrition_new || 0) + (moh717ReportData.nutrition_revisit || 0)}</td>
234
+ </tr>
235
+ <tr>
236
+ <td>A.3.14</td>
237
+ <td>Oncology Clinic</td>
238
+ <td>{moh717ReportData.oncology_new}</td>
239
+ <td>{moh717ReportData.oncology_revisit}</td>
240
+ <td>{(moh717ReportData.oncology_new || 0) + (moh717ReportData.oncology_revisit || 0)}</td>
241
+ </tr>
242
+ <tr>
243
+ <td>A.3.15</td>
244
+ <td>Renal Clinic</td>
245
+ <td>{moh717ReportData.renal_new}</td>
246
+ <td>{moh717ReportData.renal_revisit}</td>
247
+ <td>{(moh717ReportData.renal_new || 0) + (moh717ReportData.renal_revisit || 0)}</td>
248
+ </tr>
249
+ <tr>
250
+ <td>A.3.16</td>
251
+ <td>All other Special Clinics</td>
252
+ <td>{moh717ReportData.other_special_clinics_new}</td>
253
+ <td>{moh717ReportData.other_special_clinics_revisit}</td>
254
+ <td>
255
+ {(moh717ReportData.other_special_clinics_new || 0) +
256
+ (moh717ReportData.other_special_clinics_revisit || 0)}
257
+ </td>
258
+ </tr>
259
+ <tr>
260
+ <td className={styles.totals}>A.3.8</td>
261
+ <td className={styles.totals}>TOTAL SPECIAL CLINICS</td>
262
+ <td className={styles.totals}>
263
+ {(moh717ReportData.ent_clinic_attendance_new || 0) +
264
+ (moh717ReportData.eye_clinic_attendance_new || 0) +
265
+ (moh717ReportData.tb_and_leprosy_attendance_new || 0) +
266
+ (moh717ReportData.ccc_new || 0) +
267
+ (moh717ReportData.psychiatry_attendance_new || 0) +
268
+ (moh717ReportData.orthopaedic_new || 0) +
269
+ (moh717ReportData.occupational_therapy_new || 0) +
270
+ (moh717ReportData.physiotherapy_new || 0) +
271
+ (moh717ReportData.medical_attendance_new || 0) +
272
+ (moh717ReportData.surgical_clinics_new || 0) +
273
+ (moh717ReportData.paediatrics_attendance_new || 0) +
274
+ (moh717ReportData.obstetrics_gynaecology_new || 0) +
275
+ (moh717ReportData.nutrition_new || 0) +
276
+ (moh717ReportData.oncology_new || 0) +
277
+ (moh717ReportData.renal_new || 0) +
278
+ (moh717ReportData.other_special_clinics_new || 0)}
279
+ </td>
280
+ <td className={styles.totals}>
281
+ {(moh717ReportData.ent_clinic_attendance_revisit || 0) +
282
+ (moh717ReportData.eye_clinic_attendance_revisit || 0) +
283
+ (moh717ReportData.tb_and_leprosy_attendance_revisit || 0) +
284
+ (moh717ReportData.ccc_revisit || 0) +
285
+ (moh717ReportData.psychiatry_attendance_revisit || 0) +
286
+ (moh717ReportData.orthopaedic_revisit || 0) +
287
+ (moh717ReportData.occupational_therapy_revisit || 0) +
288
+ (moh717ReportData.physiotherapy_revisit || 0) +
289
+ (moh717ReportData.medical_attendance_revisit || 0) +
290
+ (moh717ReportData.surgical_clinics_revisit || 0) +
291
+ (moh717ReportData.paediatrics_attendance_revisit || 0) +
292
+ (moh717ReportData.obstetrics_gynaecology_revisit || 0) +
293
+ (moh717ReportData.nutrition_revisit || 0) +
294
+ (moh717ReportData.oncology_revisit || 0) +
295
+ (moh717ReportData.renal_revisit || 0) +
296
+ (moh717ReportData.other_special_clinics_revisit || 0)}
297
+ </td>
298
+ <td className={styles.totals}>
299
+ {(moh717ReportData.ent_clinic_attendance_new || 0) +
300
+ (moh717ReportData.eye_clinic_attendance_new || 0) +
301
+ (moh717ReportData.tb_and_leprosy_attendance_new || 0) +
302
+ (moh717ReportData.ccc_new || 0) +
303
+ (moh717ReportData.psychiatry_attendance_new || 0) +
304
+ (moh717ReportData.orthopaedic_new || 0) +
305
+ (moh717ReportData.occupational_therapy_new || 0) +
306
+ (moh717ReportData.physiotherapy_new || 0) +
307
+ (moh717ReportData.medical_attendance_new || 0) +
308
+ (moh717ReportData.surgical_clinics_new || 0) +
309
+ (moh717ReportData.paediatrics_attendance_new || 0) +
310
+ (moh717ReportData.obstetrics_gynaecology_new || 0) +
311
+ (moh717ReportData.nutrition_new || 0) +
312
+ (moh717ReportData.oncology_new || 0) +
313
+ (moh717ReportData.renal_new || 0) +
314
+ (moh717ReportData.other_special_clinics_new || 0) +
315
+ (moh717ReportData.ent_clinic_attendance_revisit || 0) +
316
+ (moh717ReportData.eye_clinic_attendance_revisit || 0) +
317
+ (moh717ReportData.tb_and_leprosy_attendance_revisit || 0) +
318
+ (moh717ReportData.ccc_revisit || 0) +
319
+ (moh717ReportData.psychiatry_attendance_revisit || 0) +
320
+ (moh717ReportData.orthopaedic_revisit || 0) +
321
+ (moh717ReportData.occupational_therapy_revisit || 0) +
322
+ (moh717ReportData.physiotherapy_revisit || 0) +
323
+ (moh717ReportData.medical_attendance_revisit || 0) +
324
+ (moh717ReportData.surgical_clinics_revisit || 0) +
325
+ (moh717ReportData.paediatrics_attendance_revisit || 0) +
326
+ (moh717ReportData.obstetrics_gynaecology_revisit || 0) +
327
+ (moh717ReportData.nutrition_revisit || 0) +
328
+ (moh717ReportData.oncology_revisit || 0) +
329
+ (moh717ReportData.renal_revisit || 0) +
330
+ (moh717ReportData.other_special_clinics_revisit || 0)}
331
+ </td>
332
+ </tr>
333
+ <tr>
334
+ <th colSpan={2} className={styles.alighnLeft}>
335
+ A.4 MCH/FP CLIENTS
336
+ </th>
337
+ <th></th>
338
+ <th></th>
339
+ <th></th>
340
+ </tr>
341
+ <tr>
342
+ <td>A.4.1</td>
343
+ <td>CWC Attendances</td>
344
+ <td>{moh717ReportData.cwc_attendance_new}</td>
345
+ <td>{moh717ReportData.cwc_attendance_revisit}</td>
346
+ <td>{(moh717ReportData.cwc_attendance_new || 0) + (moh717ReportData.cwc_attendance_revisit || 0)}</td>
347
+ </tr>
348
+ <tr>
349
+ <td>A.4.2</td>
350
+ <td>ANC Attendances</td>
351
+ <td>{moh717ReportData.anc_new}</td>
352
+ <td>{moh717ReportData.anc_revisit}</td>
353
+ <td>{(moh717ReportData.anc_new || 0) + (moh717ReportData.anc_revisit || 0)}</td>
354
+ </tr>
355
+ <tr>
356
+ <td>A.4.3</td>
357
+ <td>PNC Attendances</td>
358
+ <td>{moh717ReportData.pnc_new}</td>
359
+ <td>{moh717ReportData.pnc_revisit}</td>
360
+ <td>{(moh717ReportData.pnc_new || 0) + (moh717ReportData.pnc_revisit || 0)}</td>
361
+ </tr>
362
+ <tr>
363
+ <td>A.4.4</td>
364
+ <td>FP Attendances</td>
365
+ <td>{moh717ReportData.fp_attendance_new}</td>
366
+ <td>{moh717ReportData.fp_attendance_revisit}</td>
367
+ <td>{(moh717ReportData.fp_attendance_new || 0) + (moh717ReportData.fp_attendance_revisit || 0)}</td>
368
+ </tr>
369
+ <tr>
370
+ <td className={styles.totals}>A.4.5</td>
371
+ <td className={styles.totals}>TOTAL MCH/FP</td>
372
+ <td className={styles.totals}>
373
+ {(moh717ReportData.cwc_attendance_new || 0) +
374
+ (moh717ReportData.anc_new || 0) +
375
+ (moh717ReportData.pnc_new || 0) +
376
+ (moh717ReportData.fp_attendance_new || 0)}
377
+ </td>
378
+ <td className={styles.totals}>
379
+ {(moh717ReportData.cwc_attendance_revisit || 0) +
380
+ (moh717ReportData.anc_revisit || 0) +
381
+ (moh717ReportData.pnc_revisit || 0) +
382
+ (moh717ReportData.fp_attendance_revisit || 0)}
383
+ </td>
384
+ <td className={styles.totals}>
385
+ {(moh717ReportData.cwc_attendance_new || 0) +
386
+ (moh717ReportData.anc_new || 0) +
387
+ (moh717ReportData.pnc_new || 0) +
388
+ (moh717ReportData.fp_attendance_new || 0) +
389
+ (moh717ReportData.cwc_attendance_revisit || 0) +
390
+ (moh717ReportData.anc_revisit || 0) +
391
+ (moh717ReportData.pnc_revisit || 0) +
392
+ (moh717ReportData.fp_attendance_revisit || 0)}
393
+ </td>
394
+ </tr>
395
+ <tr>
396
+ <th colSpan={2} className={styles.alighnLeft}>
397
+ A.5 DENTAL CLINIC
398
+ </th>
399
+ <th></th>
400
+ <th></th>
401
+ <th></th>
402
+ </tr>
403
+ <tr>
404
+ <td>A.5.1</td>
405
+ <td>Attendance (Excluding fillings and extractios)</td>
406
+ <td>{moh717ReportData.dental_attendance_ex_fillings_extractions_new}</td>
407
+ <td>{moh717ReportData.dental_attendance_ex_fillings_extractions_revisit}</td>
408
+ <td>
409
+ {(moh717ReportData.dental_attendance_ex_fillings_extractions_new || 0) +
410
+ (moh717ReportData.dental_attendance_ex_fillings_extractions_revisit || 0)}
411
+ </td>
412
+ </tr>
413
+ <tr>
414
+ <td>A.5.2</td>
415
+ <td>Fillings</td>
416
+ <td>{moh717ReportData.dental_fillings_new}</td>
417
+ <td>{moh717ReportData.dental_fillings_revisit}</td>
418
+ <td>{(moh717ReportData.dental_fillings_new || 0) + (moh717ReportData.dental_fillings_revisit || 0)}</td>
419
+ </tr>
420
+ <tr>
421
+ <td>A.5.3</td>
422
+ <td>Extractions</td>
423
+ <td>{moh717ReportData.dental_extractions_new}</td>
424
+ <td>{moh717ReportData.dental_extractions_revisit}</td>
425
+ <td>
426
+ {(moh717ReportData.dental_extractions_new || 0) + (moh717ReportData.dental_extractions_revisit || 0)}
427
+ </td>
428
+ </tr>
429
+ <tr>
430
+ <td className={styles.totals}>A.5.4</td>
431
+ <td className={styles.totals}>TOTAL DENTAL SERVICES</td>
432
+ <td>
433
+ {(moh717ReportData.dental_attendance_ex_fillings_extractions_new || 0) +
434
+ (moh717ReportData.dental_fillings_new || 0) +
435
+ (moh717ReportData.dental_extractions_new || 0)}
436
+ </td>
437
+ <td>
438
+ {(moh717ReportData.dental_attendance_ex_fillings_extractions_revisit || 0) +
439
+ (moh717ReportData.dental_fillings_revisit || 0) +
440
+ (moh717ReportData.dental_extractions_revisit || 0)}
441
+ </td>
442
+ <td>
443
+ {(moh717ReportData.dental_attendance_ex_fillings_extractions_new || 0) +
444
+ (moh717ReportData.dental_fillings_new || 0) +
445
+ (moh717ReportData.dental_extractions_new || 0) +
446
+ (moh717ReportData.dental_attendance_ex_fillings_extractions_revisit || 0) +
447
+ (moh717ReportData.dental_fillings_revisit || 0) +
448
+ (moh717ReportData.dental_extractions_revisit || 0)}
449
+ </td>
450
+ </tr>
451
+ <tr>
452
+ <th colSpan={2} className={styles.totals}>
453
+ A.6 TOTAL OUTPATIENT SERVICES (=A.1.5 + A.2 + A.3.7 + A.4.5 + A.5.4)
454
+ </th>
455
+ <th className={styles.totals}></th>
456
+ <th className={styles.totals}></th>
457
+ <th className={styles.totals}></th>
458
+ </tr>
459
+ <tr>
460
+ <th colSpan={2} className={styles.alighnLeft}>
461
+ A.7 MEDICAL EXAMINATIONS (except p3)
462
+ </th>
463
+ <th className={styles.alighnLeft}>{moh717ReportData.medical_examinations_except_p3}</th>
464
+ <th className={styles.alighnLeft}>A.10 REMOVAL OF STITCHES</th>
465
+ <th className={styles.alighnLeft}>{moh717ReportData.opd_removal_of_stitches}</th>
466
+ </tr>
467
+ <tr>
468
+ <th colSpan={2} className={styles.alighnLeft}>
469
+ A.8 MEDICAL REPORTS (incl. p3, compensation, insurance, etc.)
470
+ </th>
471
+ <th className={styles.alighnLeft}>{moh717ReportData.opd_medical_reports}</th>
472
+ <th className={styles.alighnLeft}>A.12 INJECTIONS</th>
473
+ <th className={styles.alighnLeft}>{moh717ReportData.opd_injections_given}</th>
474
+ </tr>
475
+ <tr>
476
+ <th colSpan={2} className={styles.alighnLeft}>
477
+ A.9 DRESSINGS
478
+ </th>
479
+ <th className={styles.alighnLeft}>{moh717ReportData.opd_dressing_done}</th>
480
+ <th className={styles.alighnLeft}>A.12 STITCHING</th>
481
+ <th className={styles.totalighnLeftals}>{moh717ReportData.opd_stitching}</th>
482
+ </tr>
483
+ </tbody>
484
+ </table>
485
+ </>
486
+ );
487
+ };
488
+
489
+ export default OutpatientComponent;
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ interface InpatientComponentProps {
7
+ moh717ReportData: any;
8
+ }
9
+
10
+ const PharmacyComponent: React.FC<InpatientComponentProps> = ({ moh717ReportData }) => {
11
+ return (
12
+ <>
13
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
14
+ <thead>
15
+ <tr>
16
+ <th>D. PHARMACY</th>
17
+ <th>No. of Prescriptions</th>
18
+ </tr>
19
+ </thead>
20
+ <tbody>
21
+ <tr>
22
+ <td>D.1 Common Drugs</td>
23
+ <td>{moh717ReportData.prescriptions_issued_common_drugs}</td>
24
+ </tr>
25
+ <tr>
26
+ <td>D.2 Antibiotics</td>
27
+ <td>{moh717ReportData.prescriptions_issued_antibiotics}</td>
28
+ </tr>
29
+ <tr>
30
+ <td>D.3 Special Drugs</td>
31
+ <td>{moh717ReportData.prescriptions_issued_special_drugs}</td>
32
+ </tr>
33
+ <tr>
34
+ <td>D.4 Drugs For Children</td>
35
+ <td>{moh717ReportData.prescriptions_issued_drugs_children}</td>
36
+ </tr>
37
+ </tbody>
38
+ </table>
39
+ </>
40
+ );
41
+ };
42
+
43
+ export default PharmacyComponent;
@@ -0,0 +1,47 @@
1
+ import React from 'react';
2
+
3
+ import styles from '../moh717.scss';
4
+ import classNames from 'classnames';
5
+
6
+ const PreparedbyComponent: React.FC = () => {
7
+ return (
8
+ <>
9
+ <table className={classNames(`${styles.table}`, `${styles.tableBordered}`, `${styles.tableStriped}`)}>
10
+ <thead>
11
+ <tr>
12
+ <th></th>
13
+ <th>Name</th>
14
+ <th>Designation</th>
15
+ <th>Date</th>
16
+ <th>Signature</th>
17
+ </tr>
18
+ </thead>
19
+ <tbody>
20
+ <tr>
21
+ <td>Prepared by:</td>
22
+ <td></td>
23
+ <td></td>
24
+ <td></td>
25
+ <td></td>
26
+ </tr>
27
+ <tr>
28
+ <td>Checked by:</td>
29
+ <td></td>
30
+ <td></td>
31
+ <td></td>
32
+ <td></td>
33
+ </tr>
34
+ <tr>
35
+ <td>Received by:</td>
36
+ <td></td>
37
+ <td></td>
38
+ <td></td>
39
+ <td></td>
40
+ </tr>
41
+ </tbody>
42
+ </table>
43
+ </>
44
+ );
45
+ };
46
+
47
+ export default PreparedbyComponent;