@bahmni/widgets 0.0.1-dev.4 → 0.0.1-dev.401

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 (441) hide show
  1. package/README.md +1 -1
  2. package/dist/DocumentsTable-Dzer5eOY.js +228 -0
  3. package/dist/FormsTable-CwXX7pm4.js +306 -0
  4. package/dist/Observations-00pOtH3y.js +214 -0
  5. package/dist/activePractitioner/ActivePractitionerContext.d.ts +10 -0
  6. package/dist/activePractitioner/ActivePractitionerContext.d.ts.map +1 -0
  7. package/dist/activePractitioner/ActivePractitionerProvider.d.ts +7 -0
  8. package/dist/activePractitioner/ActivePractitionerProvider.d.ts.map +1 -0
  9. package/dist/activePractitioner/index.d.ts +5 -0
  10. package/dist/activePractitioner/index.d.ts.map +1 -0
  11. package/dist/activePractitioner/useActivePractitioner.d.ts +7 -0
  12. package/dist/activePractitioner/useActivePractitioner.d.ts.map +1 -0
  13. package/dist/allergies/AllergiesTable.d.ts +2 -4
  14. package/dist/allergies/AllergiesTable.d.ts.map +1 -1
  15. package/dist/appContext/AppContextProvider.d.ts +7 -0
  16. package/dist/appContext/AppContextProvider.d.ts.map +1 -0
  17. package/dist/appContext/index.d.ts +2 -0
  18. package/dist/appContext/index.d.ts.map +1 -0
  19. package/dist/appointments/AppointmentsTable.d.ts +5 -0
  20. package/dist/appointments/AppointmentsTable.d.ts.map +1 -0
  21. package/dist/appointments/components/AppointmentTabContent.d.ts +23 -0
  22. package/dist/appointments/components/AppointmentTabContent.d.ts.map +1 -0
  23. package/dist/appointments/components/PastAppointments.d.ts +18 -0
  24. package/dist/appointments/components/PastAppointments.d.ts.map +1 -0
  25. package/dist/appointments/components/UpcomingAppointments.d.ts +18 -0
  26. package/dist/appointments/components/UpcomingAppointments.d.ts.map +1 -0
  27. package/dist/appointments/components/__tests__/appointmentComponentTestHelper.d.ts +19 -0
  28. package/dist/appointments/components/__tests__/appointmentComponentTestHelper.d.ts.map +1 -0
  29. package/dist/appointments/constants.d.ts +5 -0
  30. package/dist/appointments/constants.d.ts.map +1 -0
  31. package/dist/appointments/hooks/useAppointmentQuery.d.ts +10 -0
  32. package/dist/appointments/hooks/useAppointmentQuery.d.ts.map +1 -0
  33. package/dist/appointments/hooks/useFormattedAppointments.d.ts +9 -0
  34. package/dist/appointments/hooks/useFormattedAppointments.d.ts.map +1 -0
  35. package/dist/appointments/hooks/usePaginatedAppointments.d.ts +20 -0
  36. package/dist/appointments/hooks/usePaginatedAppointments.d.ts.map +1 -0
  37. package/dist/appointments/index.d.ts +2 -0
  38. package/dist/appointments/index.d.ts.map +1 -0
  39. package/dist/appointments/models.d.ts +13 -0
  40. package/dist/appointments/models.d.ts.map +1 -0
  41. package/dist/appointments/utils.d.ts +6 -0
  42. package/dist/appointments/utils.d.ts.map +1 -0
  43. package/dist/commandPalette/CommandPalette.d.ts +3 -0
  44. package/dist/commandPalette/CommandPalette.d.ts.map +1 -0
  45. package/dist/commandPalette/CommandPaletteContext.d.ts +12 -0
  46. package/dist/commandPalette/CommandPaletteContext.d.ts.map +1 -0
  47. package/dist/commandPalette/CommandPaletteProvider.d.ts +13 -0
  48. package/dist/commandPalette/CommandPaletteProvider.d.ts.map +1 -0
  49. package/dist/commandPalette/PatientCommandItem.d.ts +12 -0
  50. package/dist/commandPalette/PatientCommandItem.d.ts.map +1 -0
  51. package/dist/commandPalette/index.d.ts +5 -0
  52. package/dist/commandPalette/index.d.ts.map +1 -0
  53. package/dist/commandPalette/models.d.ts +40 -0
  54. package/dist/commandPalette/models.d.ts.map +1 -0
  55. package/dist/commandPalette/useCommandPalette.d.ts +3 -0
  56. package/dist/commandPalette/useCommandPalette.d.ts.map +1 -0
  57. package/dist/commandPalette/useCommandPaletteKeyboard.d.ts +3 -0
  58. package/dist/commandPalette/useCommandPaletteKeyboard.d.ts.map +1 -0
  59. package/dist/commandPalette/useCommandPaletteSearch.d.ts +10 -0
  60. package/dist/commandPalette/useCommandPaletteSearch.d.ts.map +1 -0
  61. package/dist/commandPalette/useDebounce.d.ts +2 -0
  62. package/dist/commandPalette/useDebounce.d.ts.map +1 -0
  63. package/dist/commandPalette/utils.d.ts +24 -0
  64. package/dist/commandPalette/utils.d.ts.map +1 -0
  65. package/dist/conditions/ConditionsTabContent.d.ts +21 -0
  66. package/dist/conditions/ConditionsTabContent.d.ts.map +1 -0
  67. package/dist/conditions/ConditionsTable.d.ts +2 -5
  68. package/dist/conditions/ConditionsTable.d.ts.map +1 -1
  69. package/dist/conditions/index.d.ts +1 -1
  70. package/dist/conditions/index.d.ts.map +1 -1
  71. package/dist/conditions/models.d.ts +1 -0
  72. package/dist/conditions/models.d.ts.map +1 -1
  73. package/dist/conditions/utils.d.ts.map +1 -1
  74. package/dist/configProvider/createConfigHook.d.ts +3 -0
  75. package/dist/configProvider/createConfigHook.d.ts.map +1 -0
  76. package/dist/configProvider/createConfigProvider.d.ts +21 -0
  77. package/dist/configProvider/createConfigProvider.d.ts.map +1 -0
  78. package/dist/configProvider/index.d.ts +3 -0
  79. package/dist/configProvider/index.d.ts.map +1 -0
  80. package/dist/confirmationModal/ConfirmationModal.d.ts +16 -0
  81. package/dist/confirmationModal/ConfirmationModal.d.ts.map +1 -0
  82. package/dist/diagnoses/DiagnosesTable.d.ts +2 -1
  83. package/dist/diagnoses/DiagnosesTable.d.ts.map +1 -1
  84. package/dist/documentPrintButton/DocumentPrintButton.d.ts +20 -0
  85. package/dist/documentPrintButton/DocumentPrintButton.d.ts.map +1 -0
  86. package/dist/documentPrintButton/index.d.ts +3 -0
  87. package/dist/documentPrintButton/index.d.ts.map +1 -0
  88. package/dist/documentPrintButton/printViaIframe.d.ts +2 -0
  89. package/dist/documentPrintButton/printViaIframe.d.ts.map +1 -0
  90. package/dist/documentUpload/DocumentUpload.d.ts +5 -0
  91. package/dist/documentUpload/DocumentUpload.d.ts.map +1 -0
  92. package/dist/documentUpload/constants.d.ts +3 -0
  93. package/dist/documentUpload/constants.d.ts.map +1 -0
  94. package/dist/documentUpload/index.d.ts +5 -0
  95. package/dist/documentUpload/index.d.ts.map +1 -0
  96. package/dist/documentUpload/models.d.ts +16 -0
  97. package/dist/documentUpload/models.d.ts.map +1 -0
  98. package/dist/documentUpload/renderDocumentTile.d.ts +9 -0
  99. package/dist/documentUpload/renderDocumentTile.d.ts.map +1 -0
  100. package/dist/documentUpload/utils.d.ts +2 -0
  101. package/dist/documentUpload/utils.d.ts.map +1 -0
  102. package/dist/documents/DocumentsTable.d.ts +5 -0
  103. package/dist/documents/DocumentsTable.d.ts.map +1 -0
  104. package/dist/documents/constants.d.ts +2 -0
  105. package/dist/documents/constants.d.ts.map +1 -0
  106. package/dist/documents/index.d.ts +2 -0
  107. package/dist/documents/index.d.ts.map +1 -0
  108. package/dist/documents/utils.d.ts +7 -0
  109. package/dist/documents/utils.d.ts.map +1 -0
  110. package/dist/forms/FormsTable.d.ts +6 -0
  111. package/dist/forms/FormsTable.d.ts.map +1 -0
  112. package/dist/forms/index.d.ts +2 -0
  113. package/dist/forms/index.d.ts.map +1 -0
  114. package/dist/forms/models.d.ts +13 -0
  115. package/dist/forms/models.d.ts.map +1 -0
  116. package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts +10 -0
  117. package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -0
  118. package/dist/genericServiceRequest/__tests__/__mocks__/serviceRequestMocks.d.ts +15 -0
  119. package/dist/genericServiceRequest/__tests__/__mocks__/serviceRequestMocks.d.ts.map +1 -0
  120. package/dist/genericServiceRequest/index.d.ts +2 -0
  121. package/dist/genericServiceRequest/index.d.ts.map +1 -0
  122. package/dist/genericServiceRequest/models.d.ts +18 -0
  123. package/dist/genericServiceRequest/models.d.ts.map +1 -0
  124. package/dist/genericServiceRequest/utils.d.ts +38 -0
  125. package/dist/genericServiceRequest/utils.d.ts.map +1 -0
  126. package/dist/hooks/usePatientPhoto.d.ts +10 -0
  127. package/dist/hooks/usePatientPhoto.d.ts.map +1 -0
  128. package/dist/immunizationHistory/ImmunizationHistory.d.ts +5 -0
  129. package/dist/immunizationHistory/ImmunizationHistory.d.ts.map +1 -0
  130. package/dist/immunizationHistory/__tests__/__mocks__/immunizationMocks.d.ts +6 -0
  131. package/dist/immunizationHistory/__tests__/__mocks__/immunizationMocks.d.ts.map +1 -0
  132. package/dist/immunizationHistory/components/AdministeredTab.d.ts +9 -0
  133. package/dist/immunizationHistory/components/AdministeredTab.d.ts.map +1 -0
  134. package/dist/immunizationHistory/components/NotAdministeredTab.d.ts +9 -0
  135. package/dist/immunizationHistory/components/NotAdministeredTab.d.ts.map +1 -0
  136. package/dist/immunizationHistory/constants.d.ts +10 -0
  137. package/dist/immunizationHistory/constants.d.ts.map +1 -0
  138. package/dist/immunizationHistory/index.d.ts +2 -0
  139. package/dist/immunizationHistory/index.d.ts.map +1 -0
  140. package/dist/immunizationHistory/model.d.ts +48 -0
  141. package/dist/immunizationHistory/model.d.ts.map +1 -0
  142. package/dist/immunizationHistory/utils.d.ts +13 -0
  143. package/dist/immunizationHistory/utils.d.ts.map +1 -0
  144. package/dist/index-BqbZxHvD.js +114862 -0
  145. package/dist/index.css +1 -1
  146. package/dist/index.d.ts +29 -4
  147. package/dist/index.d.ts.map +1 -1
  148. package/dist/index.js +63 -81397
  149. package/dist/labinvestigation/AttachmentViewer.d.ts +10 -0
  150. package/dist/labinvestigation/AttachmentViewer.d.ts.map +1 -0
  151. package/dist/labinvestigation/LabInvestigation.d.ts +2 -1
  152. package/dist/labinvestigation/LabInvestigation.d.ts.map +1 -1
  153. package/dist/labinvestigation/LabInvestigationItem.d.ts +4 -2
  154. package/dist/labinvestigation/LabInvestigationItem.d.ts.map +1 -1
  155. package/dist/labinvestigation/models.d.ts +41 -0
  156. package/dist/labinvestigation/models.d.ts.map +1 -0
  157. package/dist/labinvestigation/utils.d.ts +34 -0
  158. package/dist/labinvestigation/utils.d.ts.map +1 -0
  159. package/dist/location/LocationContext.d.ts +13 -0
  160. package/dist/location/LocationContext.d.ts.map +1 -0
  161. package/dist/location/LocationProvider.d.ts +7 -0
  162. package/dist/location/LocationProvider.d.ts.map +1 -0
  163. package/dist/location/LocationSelector.d.ts +3 -0
  164. package/dist/location/LocationSelector.d.ts.map +1 -0
  165. package/dist/location/__tests__/__mocks__/LocationSelectorMocks.d.ts +14 -0
  166. package/dist/location/__tests__/__mocks__/LocationSelectorMocks.d.ts.map +1 -0
  167. package/dist/location/index.d.ts +4 -0
  168. package/dist/location/index.d.ts.map +1 -0
  169. package/dist/medications/MedicationsTable.d.ts +2 -1
  170. package/dist/medications/MedicationsTable.d.ts.map +1 -1
  171. package/dist/medications/__tests__/__mocks__/actionsMocks.d.ts +4 -0
  172. package/dist/medications/__tests__/__mocks__/actionsMocks.d.ts.map +1 -0
  173. package/dist/medications/__tests__/__mocks__/medicationMocks.d.ts +10 -0
  174. package/dist/medications/__tests__/__mocks__/medicationMocks.d.ts.map +1 -0
  175. package/dist/medications/components/Actions.d.ts +12 -0
  176. package/dist/medications/components/Actions.d.ts.map +1 -0
  177. package/dist/medications/components/actionHandlers.d.ts +4 -0
  178. package/dist/medications/components/actionHandlers.d.ts.map +1 -0
  179. package/dist/medications/constants.d.ts +8 -0
  180. package/dist/medications/constants.d.ts.map +1 -0
  181. package/dist/medications/index.d.ts +1 -0
  182. package/dist/medications/index.d.ts.map +1 -1
  183. package/dist/medications/models.d.ts +30 -0
  184. package/dist/medications/models.d.ts.map +1 -0
  185. package/dist/medications/utils.d.ts +4 -11
  186. package/dist/medications/utils.d.ts.map +1 -1
  187. package/dist/observations/Observations.d.ts +12 -0
  188. package/dist/observations/Observations.d.ts.map +1 -0
  189. package/dist/observations/__mocks__/observationTestData.d.ts +176 -0
  190. package/dist/observations/__mocks__/observationTestData.d.ts.map +1 -0
  191. package/dist/observations/components/ObsByEncounter.d.ts +10 -0
  192. package/dist/observations/components/ObsByEncounter.d.ts.map +1 -0
  193. package/dist/observations/index.d.ts +5 -0
  194. package/dist/observations/index.d.ts.map +1 -0
  195. package/dist/observations/models.d.ts +47 -0
  196. package/dist/observations/models.d.ts.map +1 -0
  197. package/dist/observations/utils.d.ts +16 -0
  198. package/dist/observations/utils.d.ts.map +1 -0
  199. package/dist/observationsRenderer/ObservationsRenderer.d.ts +18 -0
  200. package/dist/observationsRenderer/ObservationsRenderer.d.ts.map +1 -0
  201. package/dist/observationsRenderer/index.d.ts +3 -0
  202. package/dist/observationsRenderer/index.d.ts.map +1 -0
  203. package/dist/patientDetails/PatientDetails.d.ts.map +1 -1
  204. package/dist/patientDetails/__tests__/__mocks__/patientDetailsMocks.d.ts +4 -0
  205. package/dist/patientDetails/__tests__/__mocks__/patientDetailsMocks.d.ts.map +1 -0
  206. package/dist/patientDetails/models.d.ts +7 -0
  207. package/dist/patientDetails/models.d.ts.map +1 -0
  208. package/dist/patientDetails/utils.d.ts +4 -0
  209. package/dist/patientDetails/utils.d.ts.map +1 -0
  210. package/dist/patientPrograms/PatientProgramsTable.d.ts +8 -0
  211. package/dist/patientPrograms/PatientProgramsTable.d.ts.map +1 -0
  212. package/dist/patientPrograms/__tests__/__mocks__/patientProgramMocks.d.ts +3 -0
  213. package/dist/patientPrograms/__tests__/__mocks__/patientProgramMocks.d.ts.map +1 -0
  214. package/dist/patientPrograms/constants.d.ts +3 -0
  215. package/dist/patientPrograms/constants.d.ts.map +1 -0
  216. package/dist/patientPrograms/index.d.ts +2 -0
  217. package/dist/patientPrograms/index.d.ts.map +1 -0
  218. package/dist/patientPrograms/model.d.ts +24 -0
  219. package/dist/patientPrograms/model.d.ts.map +1 -0
  220. package/dist/patientPrograms/utils.d.ts +10 -0
  221. package/dist/patientPrograms/utils.d.ts.map +1 -0
  222. package/dist/programDetails/ProgramDetails.d.ts +15 -0
  223. package/dist/programDetails/ProgramDetails.d.ts.map +1 -0
  224. package/dist/programDetails/__mocks__/mocks.d.ts +3 -0
  225. package/dist/programDetails/__mocks__/mocks.d.ts.map +1 -0
  226. package/dist/programDetails/constants.d.ts +4 -0
  227. package/dist/programDetails/constants.d.ts.map +1 -0
  228. package/dist/programDetails/index.d.ts +2 -0
  229. package/dist/programDetails/index.d.ts.map +1 -0
  230. package/dist/programDetails/model.d.ts +21 -0
  231. package/dist/programDetails/model.d.ts.map +1 -0
  232. package/dist/programDetails/utils.d.ts +6 -0
  233. package/dist/programDetails/utils.d.ts.map +1 -0
  234. package/dist/radiologyInvestigation/ExpandedContentForPrimaryOrder.d.ts +13 -0
  235. package/dist/radiologyInvestigation/ExpandedContentForPrimaryOrder.d.ts.map +1 -0
  236. package/dist/radiologyInvestigation/QualityAssessment.d.ts +8 -0
  237. package/dist/radiologyInvestigation/QualityAssessment.d.ts.map +1 -0
  238. package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts +3 -1
  239. package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts.map +1 -1
  240. package/dist/radiologyInvestigation/__mocks__/mocks.d.ts +16 -16
  241. package/dist/radiologyInvestigation/__mocks__/mocks.d.ts.map +1 -1
  242. package/dist/radiologyInvestigation/index.d.ts +1 -1
  243. package/dist/radiologyInvestigation/index.d.ts.map +1 -1
  244. package/dist/radiologyInvestigation/models.d.ts +22 -0
  245. package/dist/radiologyInvestigation/models.d.ts.map +1 -0
  246. package/dist/radiologyInvestigation/utils.d.ts +12 -3
  247. package/dist/radiologyInvestigation/utils.d.ts.map +1 -1
  248. package/dist/radiologyInvestigationReport/RadiologyInvestigationReport.d.ts +7 -0
  249. package/dist/radiologyInvestigationReport/RadiologyInvestigationReport.d.ts.map +1 -0
  250. package/dist/radiologyInvestigationReport/index.d.ts +2 -0
  251. package/dist/radiologyInvestigationReport/index.d.ts.map +1 -0
  252. package/dist/registry/index.d.ts +11 -0
  253. package/dist/registry/index.d.ts.map +1 -0
  254. package/dist/registry/model.d.ts +28 -0
  255. package/dist/registry/model.d.ts.map +1 -0
  256. package/dist/registry/widgetMap.d.ts +3 -0
  257. package/dist/registry/widgetMap.d.ts.map +1 -0
  258. package/dist/search/commonSearch/CommonSearchWidget.d.ts +4 -0
  259. package/dist/search/commonSearch/CommonSearchWidget.d.ts.map +1 -0
  260. package/dist/search/commonSearch/__tests__/__mocks__/commonSearchWidgetMocks.d.ts +15 -0
  261. package/dist/search/commonSearch/__tests__/__mocks__/commonSearchWidgetMocks.d.ts.map +1 -0
  262. package/dist/search/commonSearch/__tests__/__mocks__/criterionRowMocks.d.ts +5 -0
  263. package/dist/search/commonSearch/__tests__/__mocks__/criterionRowMocks.d.ts.map +1 -0
  264. package/dist/search/commonSearch/__tests__/__mocks__/dateCriterionInputMocks.d.ts +7 -0
  265. package/dist/search/commonSearch/__tests__/__mocks__/dateCriterionInputMocks.d.ts.map +1 -0
  266. package/dist/search/commonSearch/__tests__/__mocks__/lookupCriterionInputMocks.d.ts +13 -0
  267. package/dist/search/commonSearch/__tests__/__mocks__/lookupCriterionInputMocks.d.ts.map +1 -0
  268. package/dist/search/commonSearch/__tests__/__mocks__/numericCriterionInputMocks.d.ts +7 -0
  269. package/dist/search/commonSearch/__tests__/__mocks__/numericCriterionInputMocks.d.ts.map +1 -0
  270. package/dist/search/commonSearch/__tests__/__mocks__/optionsCriterionInputMocks.d.ts +4 -0
  271. package/dist/search/commonSearch/__tests__/__mocks__/optionsCriterionInputMocks.d.ts.map +1 -0
  272. package/dist/search/commonSearch/__tests__/__mocks__/resultsTableMocks.d.ts +25 -0
  273. package/dist/search/commonSearch/__tests__/__mocks__/resultsTableMocks.d.ts.map +1 -0
  274. package/dist/search/commonSearch/__tests__/__mocks__/searchFormMocks.d.ts +15 -0
  275. package/dist/search/commonSearch/__tests__/__mocks__/searchFormMocks.d.ts.map +1 -0
  276. package/dist/search/commonSearch/__tests__/__mocks__/searchSummaryMocks.d.ts +14 -0
  277. package/dist/search/commonSearch/__tests__/__mocks__/searchSummaryMocks.d.ts.map +1 -0
  278. package/dist/search/commonSearch/__tests__/__mocks__/textCriterionInputMocks.d.ts +4 -0
  279. package/dist/search/commonSearch/__tests__/__mocks__/textCriterionInputMocks.d.ts.map +1 -0
  280. package/dist/search/commonSearch/__tests__/__mocks__/utilsMocks.d.ts +34 -0
  281. package/dist/search/commonSearch/__tests__/__mocks__/utilsMocks.d.ts.map +1 -0
  282. package/dist/search/commonSearch/components/CriterionRow.d.ts +12 -0
  283. package/dist/search/commonSearch/components/CriterionRow.d.ts.map +1 -0
  284. package/dist/search/commonSearch/components/DateCriterionInput.d.ts +11 -0
  285. package/dist/search/commonSearch/components/DateCriterionInput.d.ts.map +1 -0
  286. package/dist/search/commonSearch/components/LookupCriterionInput.d.ts +10 -0
  287. package/dist/search/commonSearch/components/LookupCriterionInput.d.ts.map +1 -0
  288. package/dist/search/commonSearch/components/NumericCriterionInput.d.ts +11 -0
  289. package/dist/search/commonSearch/components/NumericCriterionInput.d.ts.map +1 -0
  290. package/dist/search/commonSearch/components/OptionsCriterionInput.d.ts +10 -0
  291. package/dist/search/commonSearch/components/OptionsCriterionInput.d.ts.map +1 -0
  292. package/dist/search/commonSearch/components/ResultsTable.d.ts +9 -0
  293. package/dist/search/commonSearch/components/ResultsTable.d.ts.map +1 -0
  294. package/dist/search/commonSearch/components/SearchForm.d.ts +12 -0
  295. package/dist/search/commonSearch/components/SearchForm.d.ts.map +1 -0
  296. package/dist/search/commonSearch/components/SearchSummary.d.ts +7 -0
  297. package/dist/search/commonSearch/components/SearchSummary.d.ts.map +1 -0
  298. package/dist/search/commonSearch/components/TextCriterionInput.d.ts +10 -0
  299. package/dist/search/commonSearch/components/TextCriterionInput.d.ts.map +1 -0
  300. package/dist/search/commonSearch/components/index.d.ts +11 -0
  301. package/dist/search/commonSearch/components/index.d.ts.map +1 -0
  302. package/dist/search/commonSearch/constants.d.ts +5 -0
  303. package/dist/search/commonSearch/constants.d.ts.map +1 -0
  304. package/dist/search/commonSearch/index.d.ts +2 -0
  305. package/dist/search/commonSearch/index.d.ts.map +1 -0
  306. package/dist/search/commonSearch/models.d.ts +134 -0
  307. package/dist/search/commonSearch/models.d.ts.map +1 -0
  308. package/dist/search/commonSearch/schema.json.d.ts +300 -0
  309. package/dist/search/commonSearch/sourceMaps.d.ts +3 -0
  310. package/dist/search/commonSearch/sourceMaps.d.ts.map +1 -0
  311. package/dist/search/commonSearch/utils.d.ts +37 -0
  312. package/dist/search/commonSearch/utils.d.ts.map +1 -0
  313. package/dist/search/index.d.ts +4 -0
  314. package/dist/search/index.d.ts.map +1 -0
  315. package/dist/search/models.d.ts +5 -0
  316. package/dist/search/models.d.ts.map +1 -0
  317. package/dist/search/registry/index.d.ts +3 -0
  318. package/dist/search/registry/index.d.ts.map +1 -0
  319. package/dist/search/registry/models.d.ts +6 -0
  320. package/dist/search/registry/models.d.ts.map +1 -0
  321. package/dist/search/registry/registry.d.ts +9 -0
  322. package/dist/search/registry/registry.d.ts.map +1 -0
  323. package/dist/search/searchPatient/SearchPatient.d.ts +4 -0
  324. package/dist/search/searchPatient/SearchPatient.d.ts.map +1 -0
  325. package/dist/search/searchPatient/__mocks__/mocks.d.ts +10 -0
  326. package/dist/search/searchPatient/__mocks__/mocks.d.ts.map +1 -0
  327. package/dist/search/searchPatient/actions/appointmentSearchResultActionHandler.d.ts +13 -0
  328. package/dist/search/searchPatient/actions/appointmentSearchResultActionHandler.d.ts.map +1 -0
  329. package/dist/search/searchPatient/components/PatientSearchResults.d.ts +15 -0
  330. package/dist/search/searchPatient/components/PatientSearchResults.d.ts.map +1 -0
  331. package/dist/search/searchPatient/components/SearchPatientInput.d.ts +20 -0
  332. package/dist/search/searchPatient/components/SearchPatientInput.d.ts.map +1 -0
  333. package/dist/search/searchPatient/index.d.ts +3 -0
  334. package/dist/search/searchPatient/index.d.ts.map +1 -0
  335. package/dist/search/searchPatient/models.d.ts +7 -0
  336. package/dist/search/searchPatient/models.d.ts.map +1 -0
  337. package/dist/search/searchPatient/schema.json.d.ts +188 -0
  338. package/dist/{searchPatient → search/searchPatient}/strategies/AppointmentSearchStrategy.d.ts +1 -1
  339. package/dist/search/searchPatient/strategies/AppointmentSearchStrategy.d.ts.map +1 -0
  340. package/dist/{searchPatient → search/searchPatient}/strategies/AttributeSearchStrategy.d.ts +2 -2
  341. package/dist/search/searchPatient/strategies/AttributeSearchStrategy.d.ts.map +1 -0
  342. package/dist/{searchPatient → search/searchPatient}/strategies/NameOrIdSearchStrategy.d.ts +7 -3
  343. package/dist/search/searchPatient/strategies/NameOrIdSearchStrategy.d.ts.map +1 -0
  344. package/dist/{searchPatient → search/searchPatient/strategies}/SearchStrategy.interface.d.ts +2 -1
  345. package/dist/search/searchPatient/strategies/SearchStrategy.interface.d.ts.map +1 -0
  346. package/dist/{searchPatient → search/searchPatient}/strategies/SearchStrategyRegistry.d.ts +1 -1
  347. package/dist/search/searchPatient/strategies/SearchStrategyRegistry.d.ts.map +1 -0
  348. package/dist/search/searchPatient/utils.d.ts +8 -0
  349. package/dist/search/searchPatient/utils.d.ts.map +1 -0
  350. package/dist/tasks/TaskList.d.ts +9 -0
  351. package/dist/tasks/TaskList.d.ts.map +1 -0
  352. package/dist/tasks/__tests__/__mocks__/configMocks.d.ts +9 -0
  353. package/dist/tasks/__tests__/__mocks__/configMocks.d.ts.map +1 -0
  354. package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts +32 -0
  355. package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts.map +1 -0
  356. package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts +49 -0
  357. package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts.map +1 -0
  358. package/dist/tasks/actions/TaskActions.d.ts +9 -0
  359. package/dist/tasks/actions/TaskActions.d.ts.map +1 -0
  360. package/dist/tasks/actions/actionHandlers.d.ts +4 -0
  361. package/dist/tasks/actions/actionHandlers.d.ts.map +1 -0
  362. package/dist/tasks/actions/index.d.ts +3 -0
  363. package/dist/tasks/actions/index.d.ts.map +1 -0
  364. package/dist/tasks/constants.d.ts +12 -0
  365. package/dist/tasks/constants.d.ts.map +1 -0
  366. package/dist/tasks/index.d.ts +2 -0
  367. package/dist/tasks/index.d.ts.map +1 -0
  368. package/dist/tasks/models.d.ts +38 -0
  369. package/dist/tasks/models.d.ts.map +1 -0
  370. package/dist/tasks/utils.d.ts +10 -0
  371. package/dist/tasks/utils.d.ts.map +1 -0
  372. package/dist/tasks/views/TaskViewResults.d.ts +9 -0
  373. package/dist/tasks/views/TaskViewResults.d.ts.map +1 -0
  374. package/dist/tasks/views/ViewFormData/ViewFormData.d.ts +12 -0
  375. package/dist/tasks/views/ViewFormData/ViewFormData.d.ts.map +1 -0
  376. package/dist/tasks/views/ViewFormData/index.d.ts +2 -0
  377. package/dist/tasks/views/ViewFormData/index.d.ts.map +1 -0
  378. package/dist/tasks/views/index.d.ts +4 -0
  379. package/dist/tasks/views/index.d.ts.map +1 -0
  380. package/dist/tasks/views/viewHandlers.d.ts +4 -0
  381. package/dist/tasks/views/viewHandlers.d.ts.map +1 -0
  382. package/dist/userGlobalAction/UserGlobalAction.d.ts +5 -0
  383. package/dist/userGlobalAction/UserGlobalAction.d.ts.map +1 -0
  384. package/dist/userGlobalAction/actions/changePassword/index.d.ts +3 -0
  385. package/dist/userGlobalAction/actions/changePassword/index.d.ts.map +1 -0
  386. package/dist/userGlobalAction/actions/index.d.ts +3 -0
  387. package/dist/userGlobalAction/actions/index.d.ts.map +1 -0
  388. package/dist/userGlobalAction/actions/logout/index.d.ts +3 -0
  389. package/dist/userGlobalAction/actions/logout/index.d.ts.map +1 -0
  390. package/dist/userGlobalAction/constants.d.ts +2 -0
  391. package/dist/userGlobalAction/constants.d.ts.map +1 -0
  392. package/dist/userGlobalAction/index.d.ts +4 -0
  393. package/dist/userGlobalAction/index.d.ts.map +1 -0
  394. package/dist/userGlobalAction/models.d.ts +9 -0
  395. package/dist/userGlobalAction/models.d.ts.map +1 -0
  396. package/dist/userGlobalAction/registry/context.d.ts +10 -0
  397. package/dist/userGlobalAction/registry/context.d.ts.map +1 -0
  398. package/dist/userGlobalAction/registry/hook.d.ts +2 -0
  399. package/dist/userGlobalAction/registry/hook.d.ts.map +1 -0
  400. package/dist/userGlobalAction/registry/index.d.ts +3 -0
  401. package/dist/userGlobalAction/registry/index.d.ts.map +1 -0
  402. package/dist/userGlobalAction/registry/provider.d.ts +7 -0
  403. package/dist/userGlobalAction/registry/provider.d.ts.map +1 -0
  404. package/dist/userPrivileges/UserPrivilegeProvider.d.ts.map +1 -1
  405. package/dist/userPrivileges/consultationPadPrivileges.d.ts +18 -0
  406. package/dist/userPrivileges/consultationPadPrivileges.d.ts.map +1 -0
  407. package/dist/userPrivileges/useHasPrivilege.d.ts +2 -0
  408. package/dist/userPrivileges/useHasPrivilege.d.ts.map +1 -0
  409. package/dist/utils/Investigations.d.ts +18 -0
  410. package/dist/utils/Investigations.d.ts.map +1 -0
  411. package/dist/utils/Observations.d.ts +14 -0
  412. package/dist/utils/Observations.d.ts.map +1 -0
  413. package/dist/utils/urlUtils.d.ts +2 -0
  414. package/dist/utils/urlUtils.d.ts.map +1 -0
  415. package/dist/vitalFlowSheet/VitalFlowSheet.d.ts +4 -1
  416. package/dist/vitalFlowSheet/VitalFlowSheet.d.ts.map +1 -1
  417. package/package.json +9 -11
  418. package/dist/allergies/useAllergies.d.ts +0 -14
  419. package/dist/allergies/useAllergies.d.ts.map +0 -1
  420. package/dist/diagnoses/useDiagnoses.d.ts +0 -14
  421. package/dist/diagnoses/useDiagnoses.d.ts.map +0 -1
  422. package/dist/hooks/useActivePractitioner.d.ts +0 -15
  423. package/dist/hooks/useActivePractitioner.d.ts.map +0 -1
  424. package/dist/labinvestigation/useLabInvestigations.d.ts +0 -11
  425. package/dist/labinvestigation/useLabInvestigations.d.ts.map +0 -1
  426. package/dist/medications/useMedicationRequest.d.ts +0 -14
  427. package/dist/medications/useMedicationRequest.d.ts.map +0 -1
  428. package/dist/patientDetails/usePatient.d.ts +0 -14
  429. package/dist/patientDetails/usePatient.d.ts.map +0 -1
  430. package/dist/radiologyInvestigation/useRadiologyInvestigation.d.ts +0 -14
  431. package/dist/radiologyInvestigation/useRadiologyInvestigation.d.ts.map +0 -1
  432. package/dist/searchPatient/SearchPatient.d.ts +0 -9
  433. package/dist/searchPatient/SearchPatient.d.ts.map +0 -1
  434. package/dist/searchPatient/SearchStrategy.interface.d.ts.map +0 -1
  435. package/dist/searchPatient/index.d.ts +0 -2
  436. package/dist/searchPatient/index.d.ts.map +0 -1
  437. package/dist/searchPatient/strategies/AppointmentSearchStrategy.d.ts.map +0 -1
  438. package/dist/searchPatient/strategies/AttributeSearchStrategy.d.ts.map +0 -1
  439. package/dist/searchPatient/strategies/NameOrIdSearchStrategy.d.ts.map +0 -1
  440. package/dist/searchPatient/strategies/SearchStrategyRegistry.d.ts.map +0 -1
  441. /package/{LICENCE → LICENSE} +0 -0
@@ -0,0 +1,214 @@
1
+ import { jsx as d, jsxs as D } from "react/jsx-runtime";
2
+ import { q as M, z as C, t as w, V as Q, s as q, y as k, N as z, v as G, u as P, a as H, R as j, w as J, O as Y, x as W, A as X, D as Z, E as x, b as ee } from "./index-BqbZxHvD.js";
3
+ import { useQueries as te, useQuery as se } from "@tanstack/react-query";
4
+ import { useRef as oe, useEffect as N, useMemo as h } from "react";
5
+ import { useTranslation as U } from "react-i18next";
6
+ const A = (t, i, c, l, u, r) => {
7
+ const s = w(t, i, u), o = s.value, a = Q(o);
8
+ let n = o;
9
+ a === "Image" && (n = /* @__PURE__ */ d(
10
+ k,
11
+ {
12
+ imageSrc: o,
13
+ alt: o,
14
+ id: `${o}-img`,
15
+ hideThumbnail: r
16
+ }
17
+ )), a === "Video" && (n = /* @__PURE__ */ d(
18
+ z,
19
+ {
20
+ id: `${o}-video`,
21
+ videoSrc: o,
22
+ hideThumbnail: r
23
+ }
24
+ )), a === "PDF" && (n = /* @__PURE__ */ d(G, { id: `${o}-pdf`, src: o }));
25
+ const b = u("OBSERVATIONS_RECORDED_BY", {
26
+ provider: s.provider
27
+ }), m = t.display, p = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", f = l ? `${l}-${p}-${m}-${c}-${i}` : `${p}-${m}-${c}-${i}`;
28
+ return /* @__PURE__ */ d(
29
+ q,
30
+ {
31
+ header: s.header,
32
+ value: n,
33
+ info: b,
34
+ id: f,
35
+ testId: f,
36
+ ariaLabel: f
37
+ },
38
+ `obs-${t.id}`
39
+ );
40
+ }, re = (t, i, c, l, u, r, s) => /* @__PURE__ */ d(
41
+ C,
42
+ {
43
+ title: t.display,
44
+ id: `grouped-obs-${t.display}-${l}`,
45
+ open: c,
46
+ children: t.members?.map(
47
+ (o, a) => A(
48
+ o,
49
+ a,
50
+ u,
51
+ r,
52
+ i,
53
+ s
54
+ )
55
+ )
56
+ },
57
+ `grouped-obs-${t.id}`
58
+ ), ae = ({
59
+ groupedData: t,
60
+ title: i = "",
61
+ hideThumbnail: c
62
+ }) => {
63
+ const { t: l } = U(), u = (r, s, o) => {
64
+ const a = M(r.encounterDetails, l);
65
+ return /* @__PURE__ */ D(
66
+ C,
67
+ {
68
+ title: a,
69
+ id: `encounter-${r.encounterId}`,
70
+ open: s,
71
+ children: [
72
+ r.observations.map(
73
+ (n, b) => A(
74
+ n,
75
+ b,
76
+ o,
77
+ i,
78
+ l,
79
+ c
80
+ )
81
+ ),
82
+ r.groupedObservations.map(
83
+ (n, b) => re(
84
+ n,
85
+ l,
86
+ s,
87
+ b,
88
+ o,
89
+ i,
90
+ c
91
+ )
92
+ )
93
+ ]
94
+ },
95
+ `encounter-${r.encounterId}`
96
+ );
97
+ };
98
+ return /* @__PURE__ */ d(
99
+ "div",
100
+ {
101
+ id: "obs-by-encounter",
102
+ "data-testid": "obs-by-encounter-test-id",
103
+ "aria-label": "obs-by-encounter-aria-label",
104
+ children: t.map(
105
+ (r, s) => u(r, s === 0, s)
106
+ )
107
+ }
108
+ );
109
+ }, ne = "Observations-module_observations__RKSyo", ie = "Observations-module_title__TJL3z", S = {
110
+ observations: ne,
111
+ title: ie
112
+ }, ce = (t) => ["conceptUuid", t], le = (t, i) => ["observations", t, ...i], ve = ({ config: t }) => {
113
+ const i = t, {
114
+ conceptNames: c = [],
115
+ conceptUuid: l = [],
116
+ hideThumbnail: u = !1
117
+ } = i, r = oe(/* @__PURE__ */ new Set()), s = P(), { addNotification: o } = H(), { t: a } = U(), n = te({
118
+ queries: c.map((e) => ({
119
+ queryKey: ce(e),
120
+ queryFn: () => j(e),
121
+ enabled: !!e
122
+ }))
123
+ });
124
+ N(() => {
125
+ n.forEach((e, v) => {
126
+ if (e.isError && !r.current.has(v)) {
127
+ const g = c[v];
128
+ o({
129
+ title: a("ERROR_DEFAULT_TITLE"),
130
+ message: a("ERROR_FETCHING_CONCEPT", { conceptName: g }),
131
+ type: "error"
132
+ }), r.current.add(v);
133
+ } else e.isError || r.current.delete(v);
134
+ });
135
+ }, [n, c]);
136
+ const b = h(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), m = h(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), y = h(() => c.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, c.length]), {
137
+ data: p,
138
+ isLoading: f,
139
+ isError: R,
140
+ refetch: T
141
+ } = se({
142
+ queryKey: le(s, m),
143
+ queryFn: () => J(s, m),
144
+ enabled: !!s && m.length > 0 && y
145
+ });
146
+ Y(
147
+ (e) => {
148
+ e.patientUUID === s && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
149
+ (g) => m.includes(g)
150
+ ) && T();
151
+ },
152
+ [s, T]
153
+ ), N(() => {
154
+ R && o({
155
+ title: a("ERROR_DEFAULT_TITLE"),
156
+ message: a("ERROR_FETCHING_OBSERVATIONS"),
157
+ type: "error"
158
+ });
159
+ }, [R]);
160
+ const _ = h(() => {
161
+ if (!p) return [];
162
+ const e = W(p), v = X(e);
163
+ return Z(v);
164
+ }, [p]), B = [
165
+ { key: "name", header: "name" },
166
+ { key: "value", header: "value" },
167
+ { key: "form", header: "form" }
168
+ ], I = f || !y, $ = R && y, L = (!p || p.entry?.length === 0 || m.length === 0) && y, F = $ ? a("ERROR_FETCHING_OBSERVATIONS") : null, V = L ? a("NO_OBSERVATIONS_FOUND") : void 0, K = _.length > 0 && !I && !$, O = i.titleTranslationKey, E = O ? a(O) : "";
169
+ return /* @__PURE__ */ D(
170
+ "div",
171
+ {
172
+ id: "observations",
173
+ "data-testid": O ? `observations-${E}` : "observations",
174
+ "aria-label": "observations-aria-label",
175
+ className: S.observations,
176
+ children: [
177
+ /* @__PURE__ */ d(
178
+ x,
179
+ {
180
+ id: "observations-title",
181
+ testId: O ? `observations-title-${E}` : "observations-title",
182
+ title: E,
183
+ className: S.title,
184
+ children: /* @__PURE__ */ d("p", { children: E })
185
+ }
186
+ ),
187
+ K ? /* @__PURE__ */ d(
188
+ ae,
189
+ {
190
+ groupedData: _,
191
+ title: E,
192
+ hideThumbnail: u
193
+ }
194
+ ) : /* @__PURE__ */ d(
195
+ ee,
196
+ {
197
+ headers: B,
198
+ rows: [],
199
+ ariaLabel: a("OBSERVATIONS"),
200
+ loading: I,
201
+ errorStateMessage: F,
202
+ emptyStateMessage: V,
203
+ dataTestId: "observations-table"
204
+ }
205
+ )
206
+ ]
207
+ }
208
+ );
209
+ };
210
+ export {
211
+ ce as conceptUuidQueryKeys,
212
+ ve as default,
213
+ le as observationsQueryKeys
214
+ };
@@ -0,0 +1,10 @@
1
+ import { Provider, User } from '@bahmni/services';
2
+ export interface ActivePractitionerContextType {
3
+ practitioner: Provider | null;
4
+ user: User | null;
5
+ loading: boolean;
6
+ error: Error | null;
7
+ refetch: () => void;
8
+ }
9
+ export declare const ActivePractitionerContext: import('react').Context<ActivePractitionerContextType | undefined>;
10
+ //# sourceMappingURL=ActivePractitionerContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivePractitionerContext.d.ts","sourceRoot":"","sources":["../../src/activePractitioner/ActivePractitionerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGlD,MAAM,WAAW,6BAA6B;IAC5C,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,yBAAyB,oEAE1B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ interface ActivePractitionerProviderProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const ActivePractitionerProvider: React.FC<ActivePractitionerProviderProps>;
6
+ export {};
7
+ //# sourceMappingURL=ActivePractitionerProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivePractitionerProvider.d.ts","sourceRoot":"","sources":["../../src/activePractitioner/ActivePractitionerProvider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AAGf,UAAU,+BAA+B;IACvC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAC/C,+BAA+B,CAwEhC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { ActivePractitionerProvider } from './ActivePractitionerProvider';
2
+ export { useActivePractitioner } from './useActivePractitioner';
3
+ export { ActivePractitionerContext } from './ActivePractitionerContext';
4
+ export type { ActivePractitionerContextType } from './ActivePractitionerContext';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/activePractitioner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Custom hook to access the active practitioner context
3
+ * @throws {Error} If used outside of ActivePractitionerProvider
4
+ * @returns Object containing practitioner, user, loading state, error state, and refetch function
5
+ */
6
+ export declare const useActivePractitioner: () => import('./ActivePractitionerContext').ActivePractitionerContextType;
7
+ //# sourceMappingURL=useActivePractitioner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useActivePractitioner.d.ts","sourceRoot":"","sources":["../../src/activePractitioner/useActivePractitioner.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,2EAUjC,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import { default as React } from 'react';
2
- /**
3
- * Component to display patient allergies using SortableDataTable
4
- */
5
- declare const AllergiesTable: React.FC;
2
+ import { WidgetProps } from '../registry/model';
3
+ declare const AllergiesTable: React.FC<WidgetProps>;
6
4
  export default AllergiesTable;
7
5
  //# sourceMappingURL=AllergiesTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AllergiesTable.d.ts","sourceRoot":"","sources":["../../src/allergies/AllergiesTable.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAwBvC;;GAEG;AACH,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EA0G3B,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"AllergiesTable.d.ts","sourceRoot":"","sources":["../../src/allergies/AllergiesTable.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAsB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA2BpE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4LzC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ interface AppContextProviderProps {
3
+ children: ReactNode;
4
+ }
5
+ export declare const AppContextProvider: React.FC<AppContextProviderProps>;
6
+ export {};
7
+ //# sourceMappingURL=AppContextProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppContextProvider.d.ts","sourceRoot":"","sources":["../../src/appContext/AppContextProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAEpD,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAgBhE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { AppContextProvider } from './AppContextProvider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '../registry/model';
3
+ declare const AppointmentsTable: React.FC<WidgetProps>;
4
+ export default AppointmentsTable;
5
+ //# sourceMappingURL=AppointmentsTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppointmentsTable.d.ts","sourceRoot":"","sources":["../../src/appointments/AppointmentsTable.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAYhD,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyJ5C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { default as React } from 'react';
2
+ import { FormattedAppointment } from '../utils';
3
+ interface AppointmentTabContentProps {
4
+ appointments: FormattedAppointment[];
5
+ isLoading: boolean;
6
+ emptyMessageKey: string;
7
+ headers: Array<{
8
+ key: string;
9
+ header: string;
10
+ }>;
11
+ sortable: Array<{
12
+ key: string;
13
+ sortable: boolean;
14
+ }>;
15
+ renderCell: (row: FormattedAppointment, key: string) => React.ReactNode;
16
+ pageSize?: number;
17
+ page?: number;
18
+ totalItems?: number;
19
+ onPageChange?: (page: number, pageSize: number) => void;
20
+ }
21
+ declare const AppointmentTabContent: React.FC<AppointmentTabContentProps>;
22
+ export default AppointmentTabContent;
23
+ //# sourceMappingURL=AppointmentTabContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppointmentTabContent.d.ts","sourceRoot":"","sources":["../../../src/appointments/components/AppointmentTabContent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,UAAU,0BAA0B;IAClC,YAAY,EAAE,oBAAoB,EAAE,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,QAAQ,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACpD,UAAU,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAiC/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { FormattedAppointment } from '../utils';
3
+ interface PastAppointmentsProps {
4
+ patientUUID: string;
5
+ pageSize: number;
6
+ headers: Array<{
7
+ key: string;
8
+ header: string;
9
+ }>;
10
+ sortable: Array<{
11
+ key: string;
12
+ sortable: boolean;
13
+ }>;
14
+ renderCell: (row: FormattedAppointment, key: string) => React.ReactNode;
15
+ }
16
+ declare const PastAppointments: React.FC<PastAppointmentsProps>;
17
+ export default PastAppointments;
18
+ //# sourceMappingURL=PastAppointments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PastAppointments.d.ts","sourceRoot":"","sources":["../../../src/appointments/components/PastAppointments.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrD,UAAU,qBAAqB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,QAAQ,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACpD,UAAU,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CACzE;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoCrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { FormattedAppointment } from '../utils';
3
+ interface UpcomingAppointmentsProps {
4
+ patientUUID: string;
5
+ pageSize: number;
6
+ headers: Array<{
7
+ key: string;
8
+ header: string;
9
+ }>;
10
+ sortable: Array<{
11
+ key: string;
12
+ sortable: boolean;
13
+ }>;
14
+ renderCell: (row: FormattedAppointment, key: string) => React.ReactNode;
15
+ }
16
+ declare const UpcomingAppointments: React.FC<UpcomingAppointmentsProps>;
17
+ export default UpcomingAppointments;
18
+ //# sourceMappingURL=UpcomingAppointments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpcomingAppointments.d.ts","sourceRoot":"","sources":["../../../src/appointments/components/UpcomingAppointments.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGrD,UAAU,yBAAyB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,QAAQ,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACpD,UAAU,EAAE,CAAC,GAAG,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CACzE;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAqC7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { useTranslation } from '@bahmni/services';
2
+ import { useQuery } from '@tanstack/react-query';
3
+ import { useNotification } from '../../../notification';
4
+ export declare const getAppointmentMocks: () => {
5
+ mockUseQuery: jest.MockedFunction<typeof useQuery>;
6
+ mockUseTranslation: jest.MockedFunction<typeof useTranslation>;
7
+ mockUseNotification: jest.MockedFunction<typeof useNotification>;
8
+ };
9
+ export declare const setupAppointmentMocks: (mocks: ReturnType<typeof getAppointmentMocks>) => jest.Mock<any, any, any>;
10
+ export declare const getAppointmentTestCases: (config: {
11
+ Component: React.ComponentType<any>;
12
+ queryKeyPrefix: string;
13
+ testProps?: Record<string, any>;
14
+ }, mocks: ReturnType<typeof getAppointmentMocks>) => {
15
+ renderLoadingTest: () => void;
16
+ errorNotificationTest: () => void;
17
+ correctParametersTest: () => void;
18
+ };
19
+ //# sourceMappingURL=appointmentComponentTestHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointmentComponentTestHelper.d.ts","sourceRoot":"","sources":["../../../../src/appointments/components/__tests__/appointmentComponentTestHelper.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,eAAO,MAAM,mBAAmB;kBACJ,IAAI,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC;wBACxB,IAAI,CAAC,cAAc,CACvD,OAAO,cAAc,CACtB;yBACuC,IAAI,CAAC,cAAc,CACzD,OAAO,eAAe,CACvB;CACD,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAChC,OAAO,UAAU,CAAC,OAAO,mBAAmB,CAAC,6BAqB9C,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ;IACN,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC,EACD,OAAO,UAAU,CAAC,OAAO,mBAAmB,CAAC;;;;CA+C9C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const APPOINTMENT_STATUS_STYLES_MAP: Record<string, string>;
2
+ export declare const getAppointmentStatusKey: (status: string) => string;
3
+ export declare const FIELD_TRANSLATION_MAP: Record<string, string>;
4
+ export declare const DEFAULT_FIELDS: string[];
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/appointments/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWhE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,QAAQ,MAAM,KAAG,MAIxD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQxD,CAAC;AAEF,eAAO,MAAM,cAAc,UAQ1B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { Appointment as FhirAppointment, Bundle } from 'fhir/r4';
3
+ interface UseAppointmentQueryOptions {
4
+ queryKey: string[];
5
+ queryFn: () => Promise<Bundle<FhirAppointment>>;
6
+ patientUUID: string;
7
+ }
8
+ export declare const useAppointmentQuery: ({ queryKey, queryFn, patientUUID, }: UseAppointmentQueryOptions) => UseQueryResult<Bundle<FhirAppointment>>;
9
+ export {};
10
+ //# sourceMappingURL=useAppointmentQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAppointmentQuery.d.ts","sourceRoot":"","sources":["../../../src/appointments/hooks/useAppointmentQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAItE,UAAU,0BAA0B;IAClC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;IAChD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,mBAAmB,GAAI,qCAIjC,0BAA0B,KAAG,cAAc,CAAC,MAAM,CAAC,eAAe,CAAC,CAqBrE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Appointment as FhirAppointment, Bundle } from 'fhir/r4';
2
+ import { FormattedAppointment } from '../utils';
3
+ interface UseFormattedAppointmentsOptions {
4
+ data: Bundle<FhirAppointment> | undefined;
5
+ idPrefix: string;
6
+ }
7
+ export declare const useFormattedAppointments: ({ data, idPrefix, }: UseFormattedAppointmentsOptions) => FormattedAppointment[];
8
+ export {};
9
+ //# sourceMappingURL=useFormattedAppointments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormattedAppointments.d.ts","sourceRoot":"","sources":["../../../src/appointments/hooks/useFormattedAppointments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtE,OAAO,EACL,oBAAoB,EAErB,MAAM,UAAU,CAAC;AAElB,UAAU,+BAA+B;IACvC,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IAC1C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB,GAAI,qBAGtC,+BAA+B,KAAG,oBAAoB,EAmBxD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { AppointmentPage } from '@bahmni/services';
2
+ import { FormattedAppointment } from '../utils';
3
+ interface UsePaginatedAppointmentsOptions {
4
+ queryKeyPrefix: string;
5
+ patientUUID: string;
6
+ pageSize: number;
7
+ idPrefix: string;
8
+ queryFn: (count: number, page: number) => Promise<AppointmentPage>;
9
+ }
10
+ interface UsePaginatedAppointmentsResult {
11
+ formattedAppointments: FormattedAppointment[];
12
+ isLoading: boolean;
13
+ currentPage: number;
14
+ selectedPageSize: number;
15
+ serverTotal: number | undefined;
16
+ handlePageChange: (page: number, pageSize: number) => void;
17
+ }
18
+ export declare const usePaginatedAppointments: ({ queryKeyPrefix, patientUUID, pageSize, idPrefix, queryFn, }: UsePaginatedAppointmentsOptions) => UsePaginatedAppointmentsResult;
19
+ export {};
20
+ //# sourceMappingURL=usePaginatedAppointments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePaginatedAppointments.d.ts","sourceRoot":"","sources":["../../../src/appointments/hooks/usePaginatedAppointments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,kBAAkB,CAAC;AAIxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGhD,UAAU,+BAA+B;IACvC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CACpE;AAED,UAAU,8BAA8B;IACtC,qBAAqB,EAAE,oBAAoB,EAAE,CAAC;IAC9C,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,wBAAwB,GAAI,+DAMtC,+BAA+B,KAAG,8BA4DpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as AppointmentsTable } from './AppointmentsTable';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appointments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface FormattedAppointment {
2
+ readonly id: string;
3
+ readonly uuid: string;
4
+ readonly appointmentNumber: string;
5
+ readonly appointmentDate: string;
6
+ readonly appointmentStartTime: string;
7
+ readonly appointmentEndTime?: string;
8
+ readonly service: string;
9
+ readonly reason: string;
10
+ readonly status: string;
11
+ readonly provider: string;
12
+ }
13
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/appointments/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B"}
@@ -0,0 +1,6 @@
1
+ import { Appointment as FhirAppointment } from 'fhir/r4';
2
+ import { FormattedAppointment } from './models';
3
+ export type { FormattedAppointment };
4
+ export declare const sortAppointmentsByDate: (appointments: FormattedAppointment[]) => FormattedAppointment[];
5
+ export declare const transformFhirAppointmentToFormatted: (fhirAppt: FhirAppointment) => FormattedAppointment;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/appointments/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,YAAY,EAAE,oBAAoB,EAAE,CAAC;AA0DrC,eAAO,MAAM,sBAAsB,GACjC,cAAc,oBAAoB,EAAE,KACnC,oBAAoB,EAatB,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC9C,UAAU,eAAe,KACxB,oBAAkE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const CommandPalette: React.FC;
3
+ //# sourceMappingURL=CommandPalette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../src/commandPalette/CommandPalette.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AA4BrD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAuSlC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { NavItem, PatientAction, PatientFieldsConfig, SearchAnnotation } from './models';
2
+ export interface CommandPaletteContextType {
3
+ isOpen: boolean;
4
+ toggle: () => void;
5
+ setOpen: (open: boolean) => void;
6
+ navItems: NavItem[];
7
+ patientActions: PatientAction[];
8
+ patientFieldsConfig: PatientFieldsConfig;
9
+ searchAnnotations: SearchAnnotation[];
10
+ }
11
+ export declare const CommandPaletteContext: import('react').Context<CommandPaletteContextType | null>;
12
+ //# sourceMappingURL=CommandPaletteContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPaletteContext.d.ts","sourceRoot":"","sources":["../../src/commandPalette/CommandPaletteContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,qBAAqB,2DACqB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ import { NavItem, PatientAction, PatientFieldsConfig, SearchAnnotation, TriggerConfig } from './models';
3
+ interface CommandPaletteProviderProps {
4
+ children?: ReactNode;
5
+ navItems: NavItem[];
6
+ patientActions: PatientAction[];
7
+ patientFieldsConfig: PatientFieldsConfig;
8
+ trigger: TriggerConfig;
9
+ searchAnnotations: SearchAnnotation[];
10
+ }
11
+ export declare const CommandPaletteProvider: React.FC<CommandPaletteProviderProps>;
12
+ export {};
13
+ //# sourceMappingURL=CommandPaletteProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPaletteProvider.d.ts","sourceRoot":"","sources":["../../src/commandPalette/CommandPaletteProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACd,MAAM,UAAU,CAAC;AAGlB,UAAU,2BAA2B;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,OAAO,EAAE,aAAa,CAAC;IACvB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC;AA2CD,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAMxE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { PatientSearchResult } from '@bahmni/services';
2
+ import { default as React } from 'react';
3
+ import { PatientAction, PatientFieldsConfig } from './models';
4
+ export interface PatientCommandItemProps {
5
+ patient: PatientSearchResult;
6
+ patientFieldsConfig: PatientFieldsConfig;
7
+ patientActions: PatientAction[];
8
+ activeActionIndex: number;
9
+ onNavigate: (path: string) => void;
10
+ }
11
+ export declare const PatientCommandItem: React.FC<PatientCommandItemProps>;
12
+ //# sourceMappingURL=PatientCommandItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PatientCommandItem.d.ts","sourceRoot":"","sources":["../../src/commandPalette/PatientCommandItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EACV,aAAa,EAEb,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAsHhE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { CommandPaletteProvider } from './CommandPaletteProvider';
2
+ export { useCommandPalette } from './useCommandPalette';
3
+ export type { CommandPaletteContextType } from './CommandPaletteContext';
4
+ export type { AnnotationSearchType, NavItem, PatientAction, PatientActionContext, PatientFieldKey, PatientFieldsConfig, SearchAnnotation, TriggerConfig, } from './models';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,YAAY,EACV,oBAAoB,EACpB,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,GACd,MAAM,UAAU,CAAC"}
@@ -0,0 +1,40 @@
1
+ export type PatientFieldKey = 'name' | 'identifier' | 'age' | 'gender' | 'birthDate' | 'addressFieldValue' | 'extraIdentifiers' | 'customAttribute' | 'activeVisitUuid';
2
+ export interface NavItem {
3
+ id: string;
4
+ label: string;
5
+ path: string;
6
+ icon?: string;
7
+ newTab?: boolean;
8
+ }
9
+ export interface PatientActionContext {
10
+ patientUuid: string;
11
+ patientIdentifier?: string;
12
+ }
13
+ export interface PatientAction {
14
+ id: string;
15
+ label: string;
16
+ icon?: string;
17
+ getPath: (context: PatientActionContext) => string;
18
+ basePath: string;
19
+ }
20
+ export interface PatientFieldsConfig {
21
+ primaryFields: PatientFieldKey[];
22
+ additionalFields: PatientFieldKey[];
23
+ }
24
+ export type AnnotationSearchType = 'patientAttribute' | 'patientNameOrId';
25
+ export interface SearchAnnotation {
26
+ prefix: string;
27
+ label: string;
28
+ searchType?: AnnotationSearchType;
29
+ fieldType: 'person' | 'address';
30
+ fieldsToSearch: string[];
31
+ }
32
+ export type TriggerConfig = {
33
+ type: 'combination';
34
+ keys: string[];
35
+ } | {
36
+ type: 'double';
37
+ keys: string[];
38
+ interval?: number;
39
+ };
40
+ //# sourceMappingURL=models.d.ts.map