hplx-feature-library 1.0.172 → 1.0.174

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 (158) hide show
  1. package/dist/APIAction-DP4YAX6k.cjs +1 -0
  2. package/dist/APIAction-DsHApdnW.js +161 -0
  3. package/dist/AllInvestigations/index.js +1 -1
  4. package/dist/AllInvestigationsTable-C7uQ56B0.cjs +79 -0
  5. package/dist/{AllInvestigationsTable-C7jrmW8z.js → AllInvestigationsTable-txmu7PTJ.js} +5853 -6144
  6. package/dist/Attachments/components/document-canvas/document-pen-tool.d.ts +1 -1
  7. package/dist/Attachments/components/drag-drop-overlay.d.ts +1 -1
  8. package/dist/Attachments/components/edit-document-modal.d.ts +1 -1
  9. package/dist/Attachments/components/uploading-toast.d.ts +1 -1
  10. package/dist/Attachments/context/index.d.ts +2 -2
  11. package/dist/Attachments/hooks/useDropdownPosition.d.ts +1 -1
  12. package/dist/Attachments/index.js +512 -534
  13. package/dist/CameraCapture/index.d.ts +1 -1
  14. package/dist/NetworkInstance-CPW2SeAM.cjs +9 -0
  15. package/dist/NetworkInstance-D0jiwhQe.js +3597 -0
  16. package/dist/PatientAddEdit/index.js +1663 -0
  17. package/dist/PatientPopup/action/APIAction.d.ts +65 -0
  18. package/dist/PatientPopup/app/PatientPopupContainer.d.ts +6 -0
  19. package/dist/PatientPopup/app/PatientPopupContext.d.ts +30 -0
  20. package/dist/PatientPopup/common/common.d.ts +14 -0
  21. package/dist/PatientPopup/components/Lab/HPLXLab.d.ts +8 -0
  22. package/dist/PatientPopup/components/Lab/LISLab.d.ts +8 -0
  23. package/dist/PatientPopup/components/Lab/LabTable.d.ts +5 -0
  24. package/dist/PatientPopup/components/Lab/index.d.ts +5 -0
  25. package/dist/PatientPopup/components/Loader/Loader.d.ts +2 -0
  26. package/dist/PatientPopup/components/Pagination.d.ts +9 -0
  27. package/dist/PatientPopup/components/Profile/Abha.d.ts +11 -0
  28. package/dist/PatientPopup/components/Profile/PatientDetailsModal.d.ts +1 -0
  29. package/dist/PatientPopup/components/Profile/Profile.d.ts +11 -0
  30. package/dist/PatientPopup/components/Profile/Sms.d.ts +2 -0
  31. package/dist/PatientPopup/components/Visits/Table.d.ts +11 -0
  32. package/dist/PatientPopup/components/Visits/index.d.ts +15 -0
  33. package/dist/PatientPopup/components/addBills/AddBillFooter.d.ts +2 -0
  34. package/dist/PatientPopup/components/addBills/AddBills.d.ts +5 -0
  35. package/dist/PatientPopup/components/addBills/AddBillsTable.d.ts +17 -0
  36. package/dist/PatientPopup/components/addBills/DropDown.d.ts +15 -0
  37. package/dist/PatientPopup/components/appointment/AllAppts.d.ts +8 -0
  38. package/dist/PatientPopup/components/appointment/Appointment.d.ts +2 -0
  39. package/dist/PatientPopup/components/appointment/AppointmentsTable.d.ts +10 -0
  40. package/dist/PatientPopup/components/bills/Bills.d.ts +6 -0
  41. package/dist/PatientPopup/components/bills/BillsTable.d.ts +11 -0
  42. package/dist/PatientPopup/components/deposit/DepositSection.d.ts +9 -0
  43. package/dist/PatientPopup/components/mainNavItem/MainNavItem.d.ts +13 -0
  44. package/dist/PatientPopup/components/patientPopupBody/PatientPopupBody.d.ts +8 -0
  45. package/dist/PatientPopup/components/patientPopupHeader/PatientPopupHeader.d.ts +10 -0
  46. package/dist/PatientPopup/components/patientPopupSummary/BillSummary.d.ts +19 -0
  47. package/dist/PatientPopup/components/patientPopupSummary/ConsultationDetails.d.ts +14 -0
  48. package/dist/PatientPopup/components/patientPopupSummary/DeleteItem.d.ts +11 -0
  49. package/dist/PatientPopup/components/patientPopupSummary/DepositRefundSummary.d.ts +8 -0
  50. package/dist/PatientPopup/components/patientPopupSummary/LabServiceDetails.d.ts +13 -0
  51. package/dist/PatientPopup/components/patientPopupSummary/OtherServiceDetails.d.ts +13 -0
  52. package/dist/PatientPopup/components/patientPopupSummary/PatientPopupSummary.d.ts +8 -0
  53. package/dist/PatientPopup/components/patientPopupSummary/PaymentCard.d.ts +25 -0
  54. package/dist/PatientPopup/components/patientPopupSummary/ServiceLevelBillSummary.d.ts +18 -0
  55. package/dist/PatientPopup/components/payments/DepositRefundTable.d.ts +14 -0
  56. package/dist/PatientPopup/components/payments/OtherServicesTable.d.ts +16 -0
  57. package/dist/PatientPopup/components/payments/PaymentEditModal.d.ts +15 -0
  58. package/dist/PatientPopup/components/payments/PaymentHeader.d.ts +7 -0
  59. package/dist/PatientPopup/components/payments/Payments.d.ts +5 -0
  60. package/dist/PatientPopup/components/payments/PaymentsTable.d.ts +14 -0
  61. package/dist/PatientPopup/constants/AppConstants.d.ts +123 -0
  62. package/dist/PatientPopup/index.d.ts +1 -0
  63. package/dist/PatientPopup/index.js +14681 -0
  64. package/dist/PatientPopup/types/hplxAPITypes.d.ts +37 -0
  65. package/dist/PatientPopup/utils/PrintFontLoader.d.ts +4 -0
  66. package/dist/PatientPopup/utils/helperFunctions.d.ts +3 -0
  67. package/dist/PediatricsCalculator/components/PediatricsCalculatorTableContext.d.ts +1 -1
  68. package/dist/PediatricsCalculator/index.js +1 -1
  69. package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +9 -0
  70. package/dist/PediatricsCalculatorTable-CNWwNxCr.js +1167 -0
  71. package/dist/PrintModal-9636D2oo.js +120749 -0
  72. package/dist/PrintModal-BZmh4_Md.cjs +425 -0
  73. package/dist/ReusableModal-BteIK-YX.js +29 -0
  74. package/dist/ReusableModal-CIgDYOWZ.cjs +1 -0
  75. package/dist/ReusableTable/context/TableContextBase.d.ts +1 -1
  76. package/dist/Subscription/components/SubscriptionBadge.d.ts +2 -0
  77. package/dist/TrendGraphs/context/index.d.ts +1 -1
  78. package/dist/changePasswordModal/APIAction/APIActions.d.ts +8 -0
  79. package/dist/changePasswordModal/component/ChangePasswordModal.d.ts +14 -0
  80. package/dist/clsx-C11secjj.cjs +1 -0
  81. package/dist/clsx-OuTLNxxd.js +16 -0
  82. package/dist/common/APIAction/APIAction.d.ts +28 -0
  83. package/dist/common/components/BorderFullWidth.d.ts +2 -0
  84. package/dist/common/components/table/ExistingPatients.d.ts +17 -0
  85. package/dist/common/editRibbon/EditRibbon.d.ts +9 -0
  86. package/dist/common/utils/NetworkInstance.d.ts +4 -0
  87. package/dist/common/utils/common-utils.d.ts +36 -0
  88. package/dist/components/CustomDropdown.d.ts +1 -1
  89. package/dist/components/PatientAddEdit.d.ts +3 -0
  90. package/dist/constants/CommonConstant.d.ts +70 -0
  91. package/dist/dayjs.min-B2cg6pUo.js +284 -0
  92. package/dist/dayjs.min-DXp74Ozx.cjs +1 -0
  93. package/dist/fonts/AnekMalayalam-Bold.ttf +0 -0
  94. package/dist/fonts/AnekMalayalam-Regular.ttf +0 -0
  95. package/dist/fonts/Arial-Bold-Italic.ttf +0 -0
  96. package/dist/fonts/Arial-Bold.ttf +0 -0
  97. package/dist/fonts/Arial-Italic.ttf +0 -0
  98. package/dist/fonts/Arial.ttf +0 -0
  99. package/dist/fonts/IndianRupee.ttf +0 -0
  100. package/dist/fonts/MuktaMaheePunjabi-Bold.ttf +0 -0
  101. package/dist/fonts/MuktaMaheePunjabi-Regular.ttf +0 -0
  102. package/dist/fonts/Noto-Sans-Telugu-Bold.ttf +0 -0
  103. package/dist/fonts/Noto-Sans-Telugu-Regular.ttf +0 -0
  104. package/dist/fonts/NotoNastaliqUrdu-Bold.ttf +0 -0
  105. package/dist/fonts/NotoNastaliqUrdu-Regular.ttf +0 -0
  106. package/dist/fonts/NotoSansArabic-Bold.ttf +0 -0
  107. package/dist/fonts/NotoSansArabic.ttf +0 -0
  108. package/dist/fonts/NotoSansHindi-Bold.ttf +0 -0
  109. package/dist/fonts/NotoSansHindi.ttf +0 -0
  110. package/dist/fonts/NotoSansKannada-Bold.ttf +0 -0
  111. package/dist/fonts/NotoSansKannada.ttf +0 -0
  112. package/dist/fonts/NotoSansOriya-Bold.ttf +0 -0
  113. package/dist/fonts/NotoSansOriya.ttf +0 -0
  114. package/dist/fonts/NotoSansTamil-Bold.ttf +0 -0
  115. package/dist/fonts/NotoSansTamil.ttf +0 -0
  116. package/dist/fonts/NotoSerifGujarati-Bold.ttf +0 -0
  117. package/dist/fonts/NotoSerifGujarati-Regular.ttf +0 -0
  118. package/dist/fonts/Roboto-Regular.ttf +0 -0
  119. package/dist/fonts/Times-Bold-Italic.ttf +0 -0
  120. package/dist/fonts/Times-Bold.ttf +0 -0
  121. package/dist/fonts/Times-Italic.ttf +0 -0
  122. package/dist/fonts/Times.ttf +0 -0
  123. package/dist/fonts/TiroBangla-Bold.ttf +0 -0
  124. package/dist/fonts/TiroBangla-Regular.ttf +0 -0
  125. package/dist/fonts/Verdana-Bold-Italic.ttf +0 -0
  126. package/dist/fonts/Verdana-Bold.ttf +0 -0
  127. package/dist/fonts/Verdana-Italic.ttf +0 -0
  128. package/dist/fonts/Verdana.ttf +0 -0
  129. package/dist/hooks/useMediaQuery.d.ts +1 -0
  130. package/dist/hplx-feature-library.css +1 -1
  131. package/dist/index-BUI6-03D.js +7242 -0
  132. package/dist/index-DQlbIHh3.cjs +102 -0
  133. package/dist/index-DXvmjJBJ.js +961 -0
  134. package/dist/index-DkA8S5IK.cjs +32 -0
  135. package/dist/index.js +2 -2
  136. package/dist/nineDots/NineDotsTypes.d.ts +22 -0
  137. package/dist/nineDots/NineDotsUtils.d.ts +3 -0
  138. package/dist/nineDots/nineDots.d.ts +3 -0
  139. package/dist/print-pdf/index.js +4 -0
  140. package/dist/searchPatients/SearchPatients.d.ts +11 -0
  141. package/dist/types/APIEndPoints.d.ts +11 -0
  142. package/dist/types/ApiResponseTypes.d.ts +290 -0
  143. package/dist/types/CommonTypes.d.ts +255 -0
  144. package/dist/types/PatientAddEditTypes/index.js +1 -0
  145. package/dist/types/PatientAddEditTypes.d.ts +7 -0
  146. package/dist/types/PatientPopupTypes/index.js +1 -0
  147. package/dist/types/PatientPopupTypes.d.ts +836 -0
  148. package/dist/userProfile/APIAction/APIActions.d.ts +18 -0
  149. package/dist/userProfile/UserProfile.d.ts +18 -0
  150. package/dist/userProfile/UserProfileItem.d.ts +7 -0
  151. package/dist/warning-BozzKWdr.js +38 -0
  152. package/dist/warning-W0tkkrLJ.cjs +1 -0
  153. package/package.json +31 -5
  154. package/dist/AllInvestigationsTable-C3aTtdGN.cjs +0 -79
  155. package/dist/PediatricsCalculatorTable-Be2H_OXh.js +0 -2156
  156. package/dist/PediatricsCalculatorTable-fk_QinWG.cjs +0 -40
  157. package/dist/index-4whwJbrk.js +0 -6867
  158. package/dist/index-C6KQLMQs.cjs +0 -92
@@ -0,0 +1,836 @@
1
+ import { GET_VISITPAD_PREFERENCES_RESPONSE } from './ApiResponseTypes';
2
+ export type I_SERVICE_LIST = {
3
+ service_name: string;
4
+ service_owner: string;
5
+ service_category: string;
6
+ price: number;
7
+ service_identifier: string;
8
+ service_tax: number;
9
+ order_item_discount: number;
10
+ };
11
+ export interface GET_SERVICE_LIST_RESPONSE {
12
+ service_list: Array<I_SERVICE_LIST>;
13
+ total_count: boolean;
14
+ status: boolean;
15
+ }
16
+ export interface GET_DOCTOR_LIST_RESPONSE {
17
+ doctor_list: Array<{
18
+ doctor_name: string;
19
+ doctor_identifier: string;
20
+ doctor_phone: number;
21
+ doctor_email: string;
22
+ doctor_speciality: string;
23
+ }>;
24
+ total_count: boolean;
25
+ status: boolean;
26
+ }
27
+ export interface I_PAYMENT_RECORD {
28
+ order_payment_id: string;
29
+ order_id_str: string;
30
+ order_id: string;
31
+ paid_amount: string;
32
+ paid_mode: string;
33
+ created_on: string;
34
+ external_reference: string;
35
+ service_category_id: string;
36
+ order_total: string;
37
+ order_item_sum_discount: string;
38
+ order_paid_amount: string;
39
+ order_discount: string;
40
+ refund_amount: string;
41
+ order_service_tax: string;
42
+ patient_role_id: string;
43
+ payment_refund: string;
44
+ balance_amount: string;
45
+ net_bill_amount: string;
46
+ details: string;
47
+ }
48
+ export interface GET_PAYMENTS_RESPONSE {
49
+ data: Array<I_PAYMENT_RECORD>;
50
+ page_number: number;
51
+ total_records: number;
52
+ }
53
+ export interface I_BILL_ORDER_ITEMS {
54
+ order_item_id: string;
55
+ service_id: string;
56
+ service_name: string;
57
+ item_quantity: string;
58
+ order_unit_item_price: string;
59
+ order_item_price: string;
60
+ order_item_discount: string;
61
+ order_item_service_tax: string;
62
+ order_item_service_tax_percent: string;
63
+ created_on: string;
64
+ net_amount: string;
65
+ }
66
+ export interface I_BILL_ITEM {
67
+ order_id: string;
68
+ order_date: string;
69
+ order_created_on: string;
70
+ service_category: string;
71
+ service_category_id: string;
72
+ order_id_str: string;
73
+ order_total: string;
74
+ order_paid_amount: string;
75
+ order_item_sum_discount: string;
76
+ order_discount: string;
77
+ refund_amount: string;
78
+ order_service_tax: string;
79
+ balance_amount: string;
80
+ net_bill_amount: string;
81
+ order_items: Array<I_BILL_ORDER_ITEMS>;
82
+ }
83
+ export interface GET_BILLS_RESPONSE {
84
+ bill_list: Array<I_BILL_ITEM>;
85
+ total_pages: number;
86
+ total_records: number;
87
+ page_no: number;
88
+ message: string;
89
+ }
90
+ export type FlattenedBillItem = {
91
+ order_id: string;
92
+ order_date: string;
93
+ order_created_on: string;
94
+ service_category: string;
95
+ service_category_id: string;
96
+ order_id_str: string;
97
+ order_total: string;
98
+ order_paid_amount: string;
99
+ order_item_sum_discount: string;
100
+ order_discount: string;
101
+ refund_amount: string;
102
+ order_service_tax: string;
103
+ balance_amount: string;
104
+ net_bill_amount: string;
105
+ order_item_id: string;
106
+ service_id: string;
107
+ service_name: string;
108
+ item_quantity: string;
109
+ order_unit_item_price: string;
110
+ order_item_price: string;
111
+ order_item_discount: string;
112
+ order_item_service_tax: string;
113
+ order_item_service_tax_percent: string;
114
+ created_on: string;
115
+ net_amount: string;
116
+ order_item_service_tax_percentage?: number;
117
+ };
118
+ export type PastBillOrderItem = I_BILL_ORDER_ITEMS & {
119
+ service_category: string;
120
+ service_category_id: string;
121
+ };
122
+ export type I_BILL_ITEM_DETAILS = {
123
+ doctor_name: string;
124
+ appointment_details: {
125
+ appnt_id: string;
126
+ doctor_role_id: string;
127
+ appnt_date: string;
128
+ appnt_time: string;
129
+ appnt_duration: number;
130
+ appnt_status: number;
131
+ };
132
+ lab_owner_name: string;
133
+ lab_owner_id: string;
134
+ appnt_doctor_role_id: string;
135
+ referrer_doctor_role_id: string;
136
+ };
137
+ export type BillFormData = FlattenedBillItem & {
138
+ bill_item_details: I_BILL_ITEM_DETAILS;
139
+ };
140
+ export interface GET_BILL_ITEMS_RESPONSE {
141
+ message: string;
142
+ data: {
143
+ order_item_id: string;
144
+ service_id: string;
145
+ service_name: string;
146
+ service_category: string;
147
+ service_category_id: string;
148
+ item_quantity: string;
149
+ order_unit_item_price: string;
150
+ order_item_price: string;
151
+ order_item_discount: string;
152
+ order_item_service_tax: string;
153
+ created_on: string;
154
+ bill_item_details: I_BILL_ITEM_DETAILS;
155
+ appnt_doctor_role_id: string;
156
+ appnt_doctor_name: string;
157
+ };
158
+ }
159
+ export interface GET_PAST_DUE_RESPONSE {
160
+ message: string;
161
+ total_amount: string;
162
+ bill_amount_details: Array<{
163
+ order_id: string;
164
+ order_id_str: string;
165
+ balance_amount: string;
166
+ order_date: string;
167
+ service_category_id: number;
168
+ }>;
169
+ }
170
+ export interface CREATE_BILL_RESPONSE {
171
+ order_id: string;
172
+ order_item_id: string;
173
+ message: string;
174
+ status: boolean;
175
+ }
176
+ export interface UPDATE_BILL_RESPONSE {
177
+ message: string;
178
+ error: string;
179
+ status: boolean;
180
+ status_code: number;
181
+ }
182
+ export interface I_APPOINTMENT {
183
+ appnt_id: string;
184
+ patient_role_id: string;
185
+ appnt_doctor_role_id: string;
186
+ appnt_service_id: string;
187
+ appnt_date: string;
188
+ appnt_time: string;
189
+ appnt_status: number;
190
+ appnt_duration: string;
191
+ appnt_doctor_name: string;
192
+ appnt_service_name: string;
193
+ order_item_id: string;
194
+ item_quantity: string;
195
+ order_unit_item_price: string;
196
+ order_item_price: string;
197
+ order_item_discount: string;
198
+ order_item_service_tax: string;
199
+ total_price: string;
200
+ appnt_created_on: string;
201
+ order_item_created_on: string;
202
+ }
203
+ export interface GET_APPOINTMENTS_RESPONSE {
204
+ appointments: Array<I_APPOINTMENT>;
205
+ order_item_ids: Array<string>;
206
+ page_no: number;
207
+ status: boolean;
208
+ message: string;
209
+ total_records: number;
210
+ }
211
+ export type I_APPOINTMENT_WITHOUT_BILL = {
212
+ appnt_id: string;
213
+ patient_role_id: string;
214
+ appnt_doctor_role_id: string;
215
+ appnt_service_id: string;
216
+ appnt_date: string;
217
+ appnt_time: string;
218
+ appnt_time_time: string;
219
+ appnt_time_format: string;
220
+ appnt_status: number;
221
+ appnt_duration: number;
222
+ appnt_doctor_name: string;
223
+ appnt_service_name: string;
224
+ appnt_created_on: string;
225
+ };
226
+ export interface AppointmentFormData extends FlattenedBillItem {
227
+ appnt_id: string;
228
+ patient_role_id: string;
229
+ appnt_doctor_role_id: string;
230
+ appnt_service_id: string;
231
+ appnt_date: string;
232
+ appnt_time: string;
233
+ appnt_status: number;
234
+ appnt_duration: string;
235
+ appnt_doctor_name: string;
236
+ appnt_service_name: string;
237
+ total_price: string;
238
+ appnt_created_on: string;
239
+ order_item_created_on: string;
240
+ deleted: boolean;
241
+ appnt_time_time: string;
242
+ appnt_time_format: string;
243
+ order_item_service_tax_percentage: number;
244
+ appnt_mode?: string;
245
+ }
246
+ export interface GET_APPOINTMENT_WITHOUT_BILL_RESPONSE {
247
+ appointments: Array<I_APPOINTMENT_WITHOUT_BILL>;
248
+ count: number;
249
+ status: boolean;
250
+ }
251
+ export interface CREATE_APPOINTMENT_RESPONSE {
252
+ appnt_id: number;
253
+ error: string;
254
+ order_id: string;
255
+ order_item_id: string;
256
+ appnt_create_status: boolean;
257
+ appnt_create_message: string;
258
+ bill_create_status: boolean;
259
+ bill_create_message: string;
260
+ }
261
+ export interface UPDATE_APPOINTMENT_RESPONSE {
262
+ appnt_id: number;
263
+ error: string;
264
+ order_item_id_in_db: string;
265
+ appnt_update_status: boolean;
266
+ appnt_update_message: string;
267
+ bill_update_status: boolean;
268
+ bill_update_message: string;
269
+ }
270
+ export interface I_VISIT_METADATA {
271
+ patient_history: any;
272
+ values: {
273
+ [subfield: string]: string;
274
+ };
275
+ edited_from_last: boolean;
276
+ created_at: string;
277
+ updated_at: string;
278
+ custom_field_names: {
279
+ [index: string]: string;
280
+ };
281
+ }
282
+ export interface I_Vitals_Test {
283
+ id: string;
284
+ patient_role_id: string;
285
+ test_date: string;
286
+ created_on: string;
287
+ updated_on: string;
288
+ test_id: string;
289
+ test_value: string;
290
+ out_of_range: boolean;
291
+ branch_id: string;
292
+ watermelon_id: string;
293
+ test_name: string;
294
+ }
295
+ export interface GET_VISIT_ALL_RESPONSE {
296
+ visits: Array<I_VISIT_RESPONSE>;
297
+ first_visit_date: string;
298
+ total_visit_count: number;
299
+ current_vitals: [];
300
+ current_updated_tests: [];
301
+ current_day_created_tests: [];
302
+ previous_tests: Array<I_Vitals_Test>;
303
+ total_visits_of_patient: number;
304
+ default_investigation_order: Array<number>;
305
+ }
306
+ export interface I_VISIT_RESPONSE {
307
+ pdf_created_on: string;
308
+ moved_from_date: string;
309
+ visit_id: string;
310
+ branch_id: string;
311
+ doctor_id: string;
312
+ doctor_role_id: string;
313
+ doctor_name: string;
314
+ patient_role_id: string;
315
+ patient_id: string;
316
+ visit_date: string;
317
+ from: string;
318
+ complaints: Array<{
319
+ date: string;
320
+ severity: string;
321
+ duration: string;
322
+ frequency: string;
323
+ complaints: string;
324
+ }>;
325
+ diagnosis: Array<{
326
+ duration: string;
327
+ date: string;
328
+ diagnosis: string;
329
+ }>;
330
+ prescriptions: Array<{
331
+ medicine_complex_name: string;
332
+ partner_med_id: string;
333
+ medicine_unit: string;
334
+ medicine_type: number;
335
+ medicine_id: string;
336
+ medicine_qty: number;
337
+ dosage: {
338
+ breakfast: number;
339
+ dinner: number;
340
+ lunch: number;
341
+ night: number;
342
+ random1: number;
343
+ random2: number;
344
+ random3: number;
345
+ random4: number;
346
+ };
347
+ timing: string;
348
+ when_timing: string;
349
+ frequency: string;
350
+ where_to: string;
351
+ duration: number;
352
+ duration_type: string;
353
+ notes: string;
354
+ generic_med_name: string;
355
+ tapered_id: string;
356
+ tapered_duration: null;
357
+ administration_route: string;
358
+ details: string;
359
+ dosage_str: {
360
+ breakfast: string;
361
+ dinner: string;
362
+ lunch: string;
363
+ night: string;
364
+ random1: string;
365
+ random2: string;
366
+ random3: string;
367
+ random4: string;
368
+ };
369
+ }>;
370
+ advice: string;
371
+ tests_adviced: {
372
+ tests_name: Array<string>;
373
+ later_lab_reports_requested: string;
374
+ later_test_time: string;
375
+ };
376
+ diet_exercise: string;
377
+ next_visit: {
378
+ date: string;
379
+ text: string;
380
+ text_flag: boolean;
381
+ };
382
+ print_count: number;
383
+ last_translated_to: string;
384
+ source: string;
385
+ general_examination: string;
386
+ past_medication: Array<string>;
387
+ assessment: string;
388
+ referral_doctors: Array<{
389
+ name: string;
390
+ speciality: string;
391
+ phone: string;
392
+ email: string;
393
+ }>;
394
+ custom_forms_data: Array<{
395
+ title: string;
396
+ content: string;
397
+ }>;
398
+ notes: {
399
+ cns_note: string;
400
+ cvs_note: string;
401
+ ent_note: string;
402
+ other_examination_note: string;
403
+ pa_note: string;
404
+ quick_note: string;
405
+ rs_note: string;
406
+ };
407
+ current_visit: boolean;
408
+ formatted_date: string;
409
+ key_stroke_count: number;
410
+ character_count: number;
411
+ created_on: string;
412
+ updated_on: string;
413
+ ip_address: string;
414
+ end_consultation_time: string;
415
+ pinned_tests: [];
416
+ opthal_presc: {
417
+ visualActivity: object;
418
+ curGlsPwrPresc: object;
419
+ pupillaryReaction: object;
420
+ autoRefraction: object;
421
+ iopNctPres: object;
422
+ glassPresc: object;
423
+ examination: object;
424
+ topography: object;
425
+ };
426
+ opthal_diagram: string;
427
+ vitals: Array<I_Vitals_Test>;
428
+ mysql_visit_id: string;
429
+ visit_metadata: {
430
+ lab_test_imaging: I_VISIT_METADATA;
431
+ patient_history: I_VISIT_METADATA;
432
+ pedia_growth_chart: I_VISIT_METADATA;
433
+ physical_examination: I_VISIT_METADATA;
434
+ [key: string]: I_VISIT_METADATA;
435
+ };
436
+ latest_visit_metadata: {
437
+ obstetric_history: I_VISIT_METADATA;
438
+ patient_history: I_VISIT_METADATA;
439
+ [key: string]: I_VISIT_METADATA;
440
+ };
441
+ rheumatology: {
442
+ das_ary: [];
443
+ Swollen: [];
444
+ Tender: [];
445
+ };
446
+ reward_token: string;
447
+ current_doctor: boolean;
448
+ pdf_url: string;
449
+ all_tests: [];
450
+ update_diagnosis: boolean;
451
+ watermelon_id: string;
452
+ tests_adviced_tabular: {
453
+ tests_name: Array<{
454
+ name: string;
455
+ date: string;
456
+ partner_test_id: string;
457
+ partner_test_category: string;
458
+ }>;
459
+ later_lab_reports_requested: string;
460
+ later_test_time: string;
461
+ };
462
+ patient_watermelon_id: string;
463
+ source_cta: string;
464
+ page_url: string;
465
+ is_patient_new: boolean;
466
+ network_speed: string;
467
+ viewport_size: string;
468
+ visit_number: string;
469
+ investigation_order: [];
470
+ cta: string;
471
+ token: string;
472
+ patient_tag_count: number;
473
+ partner_service_enabled: boolean;
474
+ appointment_id: string;
475
+ admission_advice: {
476
+ enabled: number;
477
+ remarks: string;
478
+ };
479
+ nutritional_advice: {
480
+ enabled: number;
481
+ remarks: string;
482
+ };
483
+ dressing_done: {
484
+ enabled: number;
485
+ remarks: string;
486
+ };
487
+ suture_out: {
488
+ enabled: number;
489
+ remarks: string;
490
+ };
491
+ }
492
+ export interface GET_PATIENT_POPUP_VISIT_RESPONSE {
493
+ visits: Array<{
494
+ doctor_role_id: string;
495
+ visit_date: string;
496
+ visit_id: string;
497
+ service_name: string;
498
+ appnt_type: string;
499
+ doctor_name: string;
500
+ created_at: string;
501
+ updated_at: string;
502
+ doctor_id: string;
503
+ appnt_id: string;
504
+ appnt_status: string;
505
+ }>;
506
+ doctor_role_id_list: Array<string>;
507
+ visit_dates: Array<string>;
508
+ status: boolean;
509
+ message: string;
510
+ total_visit_count: string;
511
+ error?: string;
512
+ }
513
+ export interface GET_PATIENT_POPUP_HPLXLAB_RESPONSE {
514
+ status: boolean;
515
+ message: string;
516
+ data: Array<{
517
+ report_id: string;
518
+ order_date: string;
519
+ test: string;
520
+ status: string;
521
+ }>;
522
+ total_lab_count: number;
523
+ }
524
+ export interface I_BILL_SUMMARY_ITEM {
525
+ order_date: string;
526
+ order_id: string;
527
+ order_id_str: string;
528
+ order_total: string;
529
+ order_paid_amount: string;
530
+ order_item_sum_discount: string;
531
+ order_discount: string;
532
+ refund_amount: string;
533
+ order_service_tax: string;
534
+ balance_amount: string;
535
+ net_bill_amount: string;
536
+ }
537
+ export interface GET_BILL_SUMMARY_RESPONSE {
538
+ bill_summary: Record<string, I_BILL_SUMMARY_ITEM>;
539
+ status: boolean;
540
+ message: string;
541
+ }
542
+ export interface UPDATE_PATIENT_RESPONSE {
543
+ code: number;
544
+ message: string;
545
+ details: Array<[]>;
546
+ status: boolean;
547
+ }
548
+ export interface UPDATE_PAYMENT_DETAILS_RESPONSE {
549
+ message: string;
550
+ status: boolean;
551
+ }
552
+ export interface GET_REFERRED_BY_LISTS_RESPONSE {
553
+ apiError: string;
554
+ ref_doc_id: Array<string>;
555
+ ref_doc_list: Array<string>;
556
+ through_channel: Array<string>;
557
+ total_ref_doc_details: Array<{
558
+ doctor_id: string;
559
+ doctor_name: string;
560
+ specialist: string;
561
+ }>;
562
+ }
563
+ export interface GET_IPD_CASE_RESPONSE {
564
+ status: number;
565
+ message: string;
566
+ case_id: number;
567
+ }
568
+ export interface DELETE_PATIENT_IMAGE_RESPONSE {
569
+ apiError: string;
570
+ }
571
+ export interface ADD_PATIENT_IMAGE_RESPONSE {
572
+ apiError: string;
573
+ data: string;
574
+ }
575
+ export interface SAVE_PAYMENT_RESPONSE {
576
+ code: number;
577
+ message: string;
578
+ details: Array<[]>;
579
+ status?: boolean;
580
+ status_code: number;
581
+ error: string;
582
+ }
583
+ export interface I_REFFERAL_DOCTOR {
584
+ referralId: string;
585
+ referralName: string;
586
+ referralQualification: string;
587
+ referralSpecialist: string;
588
+ referralPhone: string;
589
+ referralEmail: string;
590
+ orgBranchId: string;
591
+ referralType: string;
592
+ }
593
+ export interface GET_REFERRAL_RESPONSE {
594
+ referrals: Array<I_REFFERAL_DOCTOR>;
595
+ totalReferrals: number;
596
+ message: string;
597
+ status: boolean;
598
+ }
599
+ export interface POST_REFERAL_RESPONSE {
600
+ status: boolean;
601
+ status_code: number;
602
+ message: string;
603
+ error: string;
604
+ }
605
+ export interface DELETE_TRANSACTION_RESPONSE {
606
+ error: string;
607
+ message: string;
608
+ status: boolean;
609
+ status_code: number;
610
+ }
611
+ export interface GET_ALL_BILL_PAYMENT_RESPONSE {
612
+ order_id: string;
613
+ order_date: string;
614
+ order_created_on: string;
615
+ service_category_id: number;
616
+ order_id_str: string;
617
+ order_total: string;
618
+ order_paid_amount: string;
619
+ order_item_sum_discount: string;
620
+ order_discount: string;
621
+ refund_amount: string;
622
+ order_service_tax: string;
623
+ lab_owner_id: string;
624
+ lab_owner_name: string;
625
+ order_items: [];
626
+ payments: [
627
+ {
628
+ id: string;
629
+ amount: string;
630
+ mode: number;
631
+ created_on: string;
632
+ }
633
+ ];
634
+ refunds: [
635
+ {
636
+ id: string;
637
+ amount: string;
638
+ mode: number;
639
+ created_on: string;
640
+ }
641
+ ];
642
+ message: string;
643
+ status: boolean;
644
+ }
645
+ export interface GET_ABHA_USER_INFO_RESPONSE {
646
+ patient_details_mongo: [
647
+ {
648
+ name: string;
649
+ abha_address: string;
650
+ abha_number: string;
651
+ year_of_birth: string;
652
+ gender: string;
653
+ mobile: string;
654
+ patient_id: string;
655
+ patient_role_id: string;
656
+ branch_id: string;
657
+ }
658
+ ];
659
+ status: boolean;
660
+ error: string;
661
+ }
662
+ export interface GET_ABHA_ADDRESS_RESPONSE {
663
+ abha_address: [];
664
+ error: string;
665
+ phone: string;
666
+ status: boolean;
667
+ }
668
+ export interface GENERATE_OTP_BY_ABHA_ADDRESS_RESPONSE {
669
+ error: string;
670
+ status: boolean;
671
+ OtpSentTo: string;
672
+ abha_address: string;
673
+ }
674
+ export interface VERIFY_ABHA_OTP_RESPONSE {
675
+ abha_address: string;
676
+ PatientDetails: [
677
+ {
678
+ name: string;
679
+ abhaAddress: string;
680
+ abhaNumber: string;
681
+ yearOfBirth: string;
682
+ gender: string;
683
+ mobile: string;
684
+ }
685
+ ];
686
+ status: boolean;
687
+ error: string;
688
+ }
689
+ export interface GET_ABHA_CONSENT_RESPONSE {
690
+ status: boolean;
691
+ error: string;
692
+ }
693
+ export interface GET_INSURANCE_LIST_RESPONSE {
694
+ insurance_companies: {
695
+ [key: string]: string;
696
+ };
697
+ }
698
+ export interface VERIFY_INSURANCE_RESPONSE {
699
+ success: boolean;
700
+ status_code: number;
701
+ data: string;
702
+ error: string;
703
+ }
704
+ export interface I_TestRangesList {
705
+ test_id: string;
706
+ test_names: string;
707
+ test_units: string;
708
+ test_range_text: string;
709
+ test_range_rule: string;
710
+ }
711
+ export interface GET_TEST_RANGE_RESPONSE {
712
+ test_ranges: I_TestRangesList[];
713
+ total: number;
714
+ org_branch_id: string;
715
+ doctor_id: string;
716
+ doctor_role_id: string;
717
+ }
718
+ export interface UPDATE_WALLET_RESPONSE {
719
+ message: string;
720
+ status: boolean;
721
+ wallet_balance: number;
722
+ wallet_bill_detail: Array<{
723
+ mode: string;
724
+ amount: number;
725
+ details: string;
726
+ bill_no: number;
727
+ }>;
728
+ }
729
+ export interface GET_WALLET_BALANCE_RESPONSE {
730
+ message: string;
731
+ status: boolean;
732
+ wallet_balance: number;
733
+ }
734
+ export interface I_WALLET_TRANSACTION {
735
+ type: string;
736
+ paid_amount: number;
737
+ bill_amount: number;
738
+ mode: string;
739
+ transaction_time: string;
740
+ details: string;
741
+ opening_balance: number;
742
+ closing_balance: number;
743
+ bill_number: string;
744
+ wallet_transaction_id: string;
745
+ wallet_transaction_item_id: string;
746
+ }
747
+ export interface GET_WALLET_TRANSACTION_RESPONSE {
748
+ status: boolean;
749
+ message: string;
750
+ wallet_transactions: I_WALLET_TRANSACTION[];
751
+ wallet_balance: number;
752
+ entity_id: string;
753
+ page_no: number;
754
+ page_size: number;
755
+ total_records: number;
756
+ emr_entity_id: string;
757
+ }
758
+ export interface PpEventPropsState {
759
+ patient_id: string;
760
+ patient_registered_date: string;
761
+ patient_age: string;
762
+ patient_gender: string;
763
+ }
764
+ export interface PatientIDsState {
765
+ patientRoleID?: string;
766
+ patientID?: string;
767
+ }
768
+ export interface ToastState {
769
+ id: number;
770
+ title: string;
771
+ description: string;
772
+ type: string;
773
+ duration: number;
774
+ }
775
+ export interface PatientCustomField {
776
+ id: string;
777
+ title: string;
778
+ type: string;
779
+ required: boolean;
780
+ sort: number;
781
+ value?: string;
782
+ }
783
+ export type T_TranslationRecord = {
784
+ id: string;
785
+ language: string;
786
+ hi: string;
787
+ kn: string;
788
+ ml: string;
789
+ te: string;
790
+ gu: string;
791
+ mr: string;
792
+ ta: string;
793
+ bn: string;
794
+ ur: string;
795
+ pa: string;
796
+ od: string;
797
+ ar: string;
798
+ asa: string;
799
+ };
800
+ export interface ShowPrintModalState {
801
+ visible: boolean;
802
+ whichPreview: string;
803
+ printData: string;
804
+ visitId: string;
805
+ visit_date: string;
806
+ details: any;
807
+ visit_number: number;
808
+ printDataFrom: 'past_visit' | 'current_visit' | 'patient_popup' | '';
809
+ currentPrintTime: number;
810
+ printType: 'visit' | 'bill' | 'bill_deposit_refund' | '';
811
+ visitpadPref?: GET_VISITPAD_PREFERENCES_RESPONSE;
812
+ trackEventHandler?: (sourceCTA?: string) => void;
813
+ appointmentInfo?: {
814
+ appnt_id: string;
815
+ appnt_type: string;
816
+ };
817
+ }
818
+ export interface LIS_DATA {
819
+ uhid: string;
820
+ name: string;
821
+ age: string;
822
+ gender: string;
823
+ mobile: string;
824
+ visits: {
825
+ date: string;
826
+ reports: {
827
+ lab_number: string;
828
+ report_link: string;
829
+ }[];
830
+ }[];
831
+ }
832
+ export interface GET_LIS_RESPONSE {
833
+ status: boolean;
834
+ message: string;
835
+ data: LIS_DATA;
836
+ }