@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,188 @@
1
+ declare const _default: {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Search Patient Widget Config Schema",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "patientDetailUrl": {
8
+ "type": "string",
9
+ "description": "URL template for navigating to a patient detail page. Use {{patientUuid}} as a placeholder."
10
+ },
11
+ "customAttributes": {
12
+ "type": "array",
13
+ "description": "Array of available search fields",
14
+ "items": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "translationKey": {
19
+ "type": "string",
20
+ "description": "Translation key for the dropdown label"
21
+ },
22
+ "fields": {
23
+ "type": "array",
24
+ "description": "Array of field names to search against",
25
+ "items": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "columnTranslationKeys": {
30
+ "type": "array",
31
+ "description": "Array of translation keys for the column headers",
32
+ "items": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ "expectedFields": {
37
+ "type": "array",
38
+ "description": "Array of fields configurations with translation keys to display on table headers",
39
+ "items": {
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "properties": {
43
+ "field": {
44
+ "type": "string",
45
+ "description": "field corresponding to table header"
46
+ },
47
+ "translationKey": {
48
+ "type": "string",
49
+ "description": "Translation key for the table header"
50
+ }
51
+ }
52
+ }
53
+ },
54
+ "type": {
55
+ "type": "string",
56
+ "enum": ["person", "address", "program", "appointment"],
57
+ "description": "Type of the search field (person, address, program, appointment)"
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "appointment": {
63
+ "type": "array",
64
+ "description": "Array of available search fields for appointments",
65
+ "items": {
66
+ "type": "object",
67
+ "additionalProperties": true,
68
+ "required": ["translationKey", "fields"],
69
+ "properties": {
70
+ "translationKey": {
71
+ "type": "string",
72
+ "description": "Translation key for the field label"
73
+ },
74
+ "fields": {
75
+ "type": "array",
76
+ "description": "Array of field names to search against",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "expectedFields": {
82
+ "type": "array",
83
+ "description": "Array of expected fields with optional types",
84
+ "items": {
85
+ "type": "object",
86
+ "required": ["field", "translationKey"],
87
+ "properties": {
88
+ "field": {
89
+ "type": "string",
90
+ "description": "The field name (e.g., apptNumber, apptDate)"
91
+ },
92
+ "translationKey": {
93
+ "type": "string",
94
+ "description": "Translation key for the field's display label"
95
+ },
96
+ "type": {
97
+ "type": "string",
98
+ "description": "Optional field type (e.g., date, string)"
99
+ }
100
+ }
101
+ }
102
+ },
103
+ "type": {
104
+ "type": "string",
105
+ "enum": ["appointment"],
106
+ "description": "Type of the search field (appointment)"
107
+ },
108
+ "actions": {
109
+ "type": "array",
110
+ "description": "Array of actions allowed on this search field",
111
+ "items": {
112
+ "type": "object",
113
+ "required": ["translationKey", "type", "enabledRule", "onAction"],
114
+ "properties": {
115
+ "translationKey": {
116
+ "type": "string",
117
+ "description": "Translation key for the action button label"
118
+ },
119
+ "type": {
120
+ "type": "string",
121
+ "enum": ["changeStatus", "navigate", "checkInAndStartVisit"],
122
+ "description": "Type of action to perform"
123
+ },
124
+ "enabledRule": {
125
+ "type": "array",
126
+ "description": "Conditions to enable this action (rules)",
127
+ "items": {
128
+ "type": "object",
129
+ "properties": {
130
+ "type": {
131
+ "type": "string",
132
+ "enum": ["privilegeCheck", "statusCheck", "appDateCheck", "appointmentService"],
133
+ "description": "Type of rule to evaluate"
134
+ },
135
+ "values": {
136
+ "type": "array",
137
+ "items": { "type": "string" },
138
+ "description": "Values to match for the rule"
139
+ },
140
+ "excludeValues": {
141
+ "type": "array",
142
+ "items": { "type": "string" },
143
+ "description": "Values to exclude for the rule"
144
+ }
145
+ }
146
+ }
147
+ },
148
+ "onAction": {
149
+ "type": "object",
150
+ "description": "What happens when action is triggered",
151
+ "additionalProperties": true,
152
+ "properties": {
153
+ "status": {
154
+ "type": "string",
155
+ "description": "Status to set (for changeStatus type)"
156
+ },
157
+ "navigation": {
158
+ "type": "string",
159
+ "description": "URL path to navigate to (for navigate type)"
160
+ },
161
+ "submit": {
162
+ "type": "string",
163
+ "description": "API endpoint URL to submit to (for checkInAndStartVisit type)"
164
+ }
165
+ }
166
+ },
167
+ "onSuccess": {
168
+ "type": "object",
169
+ "description": "Notification or other success response",
170
+ "additionalProperties": true,
171
+ "properties": {
172
+ "notification": {
173
+ "type": "string",
174
+ "description": "Translation key for success notification message"
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ ;
187
+
188
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import { PatientSearchResultBundle } from '@bahmni/services';
2
- import { SearchStrategy, SearchContext, ValidationResult } from '../SearchStrategy.interface';
2
+ import { SearchStrategy, SearchContext, ValidationResult } from './SearchStrategy.interface';
3
3
  /**
4
4
  * Strategy for searching patients by appointment attributes
5
5
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppointmentSearchStrategy.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/AppointmentSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,yBAAyB,EAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,qBAAa,yBAA0B,YAAW,cAAc;IAC9D,QAAQ,CAAC,IAAI,EAAG,aAAa,CAAU;IAEvC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAUrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAOzC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlC;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAoB1B;;OAEG;IACH,OAAO,CAAC,oCAAoC;IAY5C;;OAEG;IACH,OAAO,CAAC,kCAAkC,CAgCvC;IAEH;;OAEG;IACH,OAAO,CAAC,qBAAqB;CAS9B"}
@@ -1,5 +1,5 @@
1
1
  import { PatientSearchResultBundle } from '@bahmni/services';
2
- import { SearchStrategy, SearchContext, ValidationResult } from '../SearchStrategy.interface';
2
+ import { SearchStrategy, SearchContext, ValidationResult } from './SearchStrategy.interface';
3
3
  /**
4
4
  * Strategy for searching patients by custom attributes (e.g., phone number)
5
5
  */
@@ -22,7 +22,7 @@ export declare class AttributeSearchStrategy implements SearchStrategy {
22
22
  /**
23
23
  * Transform results to format dates and calculate ages
24
24
  */
25
- transformResults(results: PatientSearchResultBundle): PatientSearchResultBundle;
25
+ transformResults(results: PatientSearchResultBundle, context: SearchContext): PatientSearchResultBundle;
26
26
  /**
27
27
  * Check if the current search is for phone numbers
28
28
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttributeSearchStrategy.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/AttributeSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,qBAAa,uBAAwB,YAAW,cAAc;IAC5D,QAAQ,CAAC,IAAI,EAAG,YAAY,CAAU;IAEtC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAgBrC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,gBAAgB;IAajE;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM;IAS1D;;OAEG;IACH,gBAAgB,CACd,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB;IAqB5B;;OAEG;IACH,OAAO,CAAC,aAAa;IAQrB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAgB3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAK1B"}
@@ -1,5 +1,5 @@
1
1
  import { PatientSearchResultBundle } from '@bahmni/services';
2
- import { SearchStrategy, SearchContext, ValidationResult } from '../SearchStrategy.interface';
2
+ import { SearchStrategy, SearchContext, ValidationResult } from './SearchStrategy.interface';
3
3
  /**
4
4
  * Strategy for searching patients by name or patient ID
5
5
  */
@@ -18,8 +18,12 @@ export declare class NameOrIdSearchStrategy implements SearchStrategy {
18
18
  */
19
19
  formatInput(input: string): string;
20
20
  /**
21
- * Transform results to format dates and calculate ages
21
+ * Parse JSON string safely
22
22
  */
23
- transformResults(results: PatientSearchResultBundle): PatientSearchResultBundle;
23
+ private parseJSON;
24
+ /**
25
+ * Transform results to format dates, calculate ages, and parse address/custom attributes
26
+ */
27
+ transformResults(results: PatientSearchResultBundle, context: SearchContext): PatientSearchResultBundle;
24
28
  }
25
29
  //# sourceMappingURL=NameOrIdSearchStrategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NameOrIdSearchStrategy.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/NameOrIdSearchStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAG1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAC3D,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAU;IAEpC;;OAEG;IACG,OAAO,CACX,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC;IAQrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB;IAOzC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAIlC;;OAEG;IACH,OAAO,CAAC,SAAS;IAUjB;;OAEG;IACH,gBAAgB,CACd,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB;CA4B7B"}
@@ -54,8 +54,9 @@ export interface SearchStrategy {
54
54
  /**
55
55
  * Optional: Transform/post-process the search results
56
56
  * @param results - The raw search results
57
+ * @param context - Context for transformation
57
58
  * @returns Transformed search results
58
59
  */
59
- transformResults?(results: PatientSearchResultBundle): PatientSearchResultBundle;
60
+ transformResults?(results: PatientSearchResultBundle, context: SearchContext): PatientSearchResultBundle;
60
61
  }
61
62
  //# sourceMappingURL=SearchStrategy.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchStrategy.interface.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/SearchStrategy.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,GAAG,aAAa,CAAC;AAE1E;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,YAAY,EAAE,kBAAkB,EAAE,CAAC;IAEnC,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAEjC;;;;;OAKG;IACH,OAAO,CACL,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAEtC;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,gBAAgB,CAAC;IAEnE;;;;;OAKG;IACH,WAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,CAAC;IAE5D;;;;;OAKG;IACH,gBAAgB,CAAC,CACf,OAAO,EAAE,yBAAyB,EAClC,OAAO,EAAE,aAAa,GACrB,yBAAyB,CAAC;CAC9B"}
@@ -1,4 +1,4 @@
1
- import { SearchStrategy, PatientSearchType } from '../SearchStrategy.interface';
1
+ import { SearchStrategy, PatientSearchType } from './SearchStrategy.interface';
2
2
  /**
3
3
  * Registry for managing patient search strategies.
4
4
  * Implements the Strategy Pattern to allow dynamic selection of search algorithms.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchStrategyRegistry.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/strategies/SearchStrategyRegistry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/E;;;GAGG;AACH,qBAAa,sBAAsB;IACjC,OAAO,CAAC,UAAU,CAAgD;IAElE;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAIxC;;;;;OAKG;IACH,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,cAAc;IAQpD;;;;OAIG;IACH,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO;IAI7C;;;OAGG;IACH,kBAAkB,IAAI,iBAAiB,EAAE;CAG1C;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,wBAA+B,CAAC;AAQnE,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PatientSearchResult, PatientSearchResultBundle, PatientSearchField } from '@bahmni/services';
2
+ export type PatientSearchViewModel<T extends PatientSearchResult> = T & {
3
+ id: string;
4
+ name: string;
5
+ [key: string]: unknown;
6
+ };
7
+ export declare const formatPatientSearchResult: (patientSearchResultBundle: PatientSearchResultBundle | undefined, patientSearchFields?: PatientSearchField[]) => PatientSearchViewModel<PatientSearchResult>[];
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/search/searchPatient/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,mBAAmB,IAAI,CAAC,GAAG;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAgBF,eAAO,MAAM,yBAAyB,GACpC,2BAA2B,yBAAyB,GAAG,SAAS,EAChE,sBAAqB,kBAAkB,EAAO,KAC7C,sBAAsB,CAAC,mBAAmB,CAAC,EAkC7C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { WidgetProps } from '../registry';
3
+ interface TaskListProps extends WidgetProps {
4
+ orderReference?: string;
5
+ showEmptyStateMessage?: boolean;
6
+ }
7
+ declare const TaskList: React.FC<TaskListProps>;
8
+ export default TaskList;
9
+ //# sourceMappingURL=TaskList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskList.d.ts","sourceRoot":"","sources":["../../src/tasks/TaskList.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1C,UAAU,aAAc,SAAQ,WAAW;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAiFD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA2JrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { TaskView, TaskConfig } from '../../models';
2
+ export declare const mockViewFormView: TaskView;
3
+ export declare const mockViewFormViewNoPrivileges: TaskView;
4
+ export declare const mockViewFormViewRestricted: TaskView;
5
+ export declare const mockTaskConfigWithViews: TaskConfig[];
6
+ export declare const mockTaskConfigWithActionsAndViews: TaskConfig[];
7
+ export declare const mockTaskConfigEmptyViews: TaskConfig[];
8
+ export declare const mockTaskConfigNoViews: TaskConfig[];
9
+ //# sourceMappingURL=configMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configMocks.d.ts","sourceRoot":"","sources":["../../../../src/tasks/__tests__/__mocks__/configMocks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAOzD,eAAO,MAAM,gBAAgB,EAAE,QAO9B,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,QAO1C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,QAOxC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,EAS/C,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,UAAU,EAMzD,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,UAAU,EAKhD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,EAI7C,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { getPatientObservationsBundle, ObservationForm, UserPrivilege } from '@bahmni/services';
2
+ import { Task } from 'fhir/r4';
3
+ import { TaskAction, TaskConfig, TaskViewModel } from '../../models';
4
+ export declare const ENCOUNTER_UUID = "encounter-uuid-1";
5
+ export declare const mockUserPrivileges: UserPrivilege[];
6
+ export declare const mockEmptyUserPrivileges: UserPrivilege[];
7
+ export declare const mockObservationForms: ObservationForm[];
8
+ export declare const mockLaunchFormAction: TaskAction;
9
+ export declare const mockEditFormAction: TaskAction;
10
+ export declare const mockLaunchFormActionNoPrivileges: TaskAction;
11
+ export declare const mockRestrictedAction: TaskAction;
12
+ export declare const mockTaskConfig: TaskConfig[];
13
+ export declare const mockTaskConfigWithEditForm: TaskConfig[];
14
+ export declare const mockFHIRTaskWithInput: Task;
15
+ export declare const mockFHIRTaskWithoutInput: Task;
16
+ export declare const mockFHIRTaskWithEmptyInput: Task;
17
+ export declare const mockFHIRTaskWithLabForm: Task;
18
+ export declare const mockFHIRTaskWithCaseInsensitiveForm: Task;
19
+ export declare const mockFHIRTaskWithNonexistentForm: Task;
20
+ export declare const mockTaskViewModelWithInput: TaskViewModel;
21
+ export declare const mockTaskViewModelWithoutInput: TaskViewModel;
22
+ export declare const mockTaskViewModelWithEmptyInput: TaskViewModel;
23
+ export declare const mockTaskViewModelWithLabForm: TaskViewModel;
24
+ export declare const mockTaskViewModelWithCaseInsensitiveForm: TaskViewModel;
25
+ export declare const mockTaskViewModelWithNonexistentForm: TaskViewModel;
26
+ export declare const SERVICE_REQUEST_UUID_COMPLETED = "service-request-completed";
27
+ export declare const PATIENT_UUID_COMPLETED = "patient-uuid-completed";
28
+ export declare const FILL_ENCOUNTER_UUID = "fill-encounter-completed";
29
+ export declare const mockFHIRCompletedTaskWithInput: Task;
30
+ export declare const mockTaskViewModelCompleted: TaskViewModel;
31
+ export declare const mockGetPatientObservationsBundle: jest.MockedFunction<typeof getPatientObservationsBundle>;
32
+ //# sourceMappingURL=taskActionsMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskActionsMocks.d.ts","sourceRoot":"","sources":["../../../../src/tasks/__tests__/__mocks__/taskActionsMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAO1E,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAI7C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,aAAa,EAAO,CAAC;AAE3D,eAAO,MAAM,oBAAoB,EAAE,eAAe,EAgEjD,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UASlC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAQhC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAS9C,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UASlC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,EAStC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,UAAU,EAKlD,CAAC;AA6CF,eAAO,MAAM,qBAAqB,EAAE,IA0BnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,IAmBtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,IAKxC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,IAMrC,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,IAO/C,CAAC;AAEJ,eAAO,MAAM,+BAA+B,EAAE,IAM7C,CAAC;AAWF,eAAO,MAAM,0BAA0B,EAAE,aAExC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,aAE3C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,aACG,CAAC;AAElD,eAAO,MAAM,4BAA4B,EAAE,aAE1C,CAAC;AAEF,eAAO,MAAM,wCAAwC,EAAE,aACG,CAAC;AAE3D,eAAO,MAAM,oCAAoC,EAAE,aACG,CAAC;AAEvD,eAAO,MAAM,8BAA8B,8BAA8B,CAAC;AAC1E,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D,eAAO,MAAM,8BAA8B,EAAE,IAiB5C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,aAExC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EACX,IAAI,CAAC,cAAc,CACjD,OAAO,4BAA4B,CACpC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { Bundle, Task } from 'fhir/r4';
2
+ import { TaskActionType } from '../../constants';
3
+ import { TaskViewModel } from '../../models';
4
+ export declare const VITALS_TASK_CODE = "6501d0f9-98da-44be-afc9-e2319453f0d6";
5
+ export declare const LAB_TESTS_TASK_CODE = "7601d0f9-98da-44be-afc9-e2319453f0d7";
6
+ export declare const FORM_NAME_INPUT_CODE = "form-name-input-type";
7
+ export declare const mockFHIRTasks: Task[];
8
+ export declare const mockTasksBundle: Bundle<Task>;
9
+ export declare const emptyTasksBundle: Bundle<Task>;
10
+ export declare const mockTaskViewModels: TaskViewModel[];
11
+ export declare const mockLeafTasks: TaskViewModel[];
12
+ export declare const mockTasksControlConfig: {
13
+ showOnlyLeafTasks: boolean;
14
+ taskTypes: string[];
15
+ };
16
+ export declare const mockTasksControlConfigNoFitlers: {
17
+ showOnlyLeafTasks: boolean;
18
+ };
19
+ export declare const mockTaskConfig: {
20
+ taskCode: string;
21
+ actions: {
22
+ label: string;
23
+ type: TaskActionType;
24
+ icon: string;
25
+ requiredPrivileges: string[];
26
+ handlerConfig: {
27
+ formInputCode: string;
28
+ encounterType: string;
29
+ };
30
+ }[];
31
+ }[];
32
+ export declare const mockTasksControlConfigWithActions: {
33
+ showOnlyLeafTasks: boolean;
34
+ taskConfig: {
35
+ taskCode: string;
36
+ actions: {
37
+ label: string;
38
+ type: TaskActionType;
39
+ icon: string;
40
+ requiredPrivileges: string[];
41
+ handlerConfig: {
42
+ formInputCode: string;
43
+ encounterType: string;
44
+ };
45
+ }[];
46
+ }[];
47
+ };
48
+ export declare const mockError: Error;
49
+ //# sourceMappingURL=taskListMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskListMocks.d.ts","sourceRoot":"","sources":["../../../../src/tasks/__tests__/__mocks__/taskListMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,eAAO,MAAM,gBAAgB,yCAAyC,CAAC;AACvE,eAAO,MAAM,mBAAmB,yCAAyC,CAAC;AAC1E,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,eAAO,MAAM,aAAa,EAAE,IAAI,EAuG/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,IAAI,CAQxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAKzC,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,aAAa,EAc7C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aAAa,EAIxC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;CAGlC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;CAE3C,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;GAgB1B,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAG7C,CAAC;AAEF,eAAO,MAAM,SAAS,OAAqC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { TaskViewModel, TaskConfig } from '../models';
3
+ interface TaskActionsProps {
4
+ task: TaskViewModel;
5
+ taskConfig: TaskConfig[];
6
+ }
7
+ declare const TaskActions: React.FC<TaskActionsProps>;
8
+ export default TaskActions;
9
+ //# sourceMappingURL=TaskActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskActions.d.ts","sourceRoot":"","sources":["../../../src/tasks/actions/TaskActions.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,KAAK,EAAc,aAAa,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAWvE,UAAU,gBAAgB;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,UAAU,EAAE,CAAC;CAC1B;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAmH3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ import { TaskAction, TaskViewModel } from '../models';
3
+ export declare const handleTaskAction: (action: TaskAction, task: TaskViewModel, queryClient: QueryClient) => void | Promise<void>;
4
+ //# sourceMappingURL=actionHandlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionHandlers.d.ts","sourceRoot":"","sources":["../../../src/tasks/actions/actionHandlers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AA8E3D,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,UAAU,EAClB,MAAM,aAAa,EACnB,aAAa,WAAW,KACvB,IAAI,GAAG,OAAO,CAAC,IAAI,CAOrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as TaskActions } from './TaskActions';
2
+ export { handleTaskAction } from './actionHandlers';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tasks/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare enum TaskActionType {
2
+ LAUNCH_FORM = "launchForm",
3
+ EDIT_FORM = "editForm"
4
+ }
5
+ export declare enum TaskViewType {
6
+ VIEW_FORM = "viewForm"
7
+ }
8
+ export declare enum FormPermissionType {
9
+ EDITABLE = "editable",
10
+ VIEWABLE = "viewable"
11
+ }
12
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/tasks/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,WAAW,eAAe;IAC1B,SAAS,aAAa;CACvB;AAED,oBAAY,YAAY;IACtB,SAAS,aAAa;CACvB;AAED,oBAAY,kBAAkB;IAC5B,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB"}
@@ -0,0 +1,2 @@
1
+ export { default as TaskList } from './TaskList';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tasks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { Task } from 'fhir/r4';
2
+ import { TaskActionType, TaskViewType } from './constants';
3
+ export interface TaskViewModel {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ status: string;
8
+ completedBy?: string;
9
+ completedOn?: string;
10
+ partOf: string[];
11
+ fhirResource: Task;
12
+ }
13
+ export interface TaskAction {
14
+ label: string;
15
+ type: TaskActionType;
16
+ icon: string;
17
+ requiredPrivileges: string[];
18
+ handlerConfig: Record<string, unknown>;
19
+ }
20
+ export interface TaskView {
21
+ label: string;
22
+ type: TaskViewType;
23
+ requiredPrivileges: string[];
24
+ handlerConfig: {
25
+ formInputCode: string;
26
+ };
27
+ }
28
+ export interface TaskConfig {
29
+ taskCode: string;
30
+ actions?: TaskAction[];
31
+ views?: TaskView[];
32
+ }
33
+ export interface TaskListConfig {
34
+ showOnlyLeafTasks?: boolean;
35
+ taskTypes?: string[];
36
+ taskConfig?: TaskConfig[];
37
+ }
38
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/tasks/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,EAAE,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IACnB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,aAAa,EAAE;QACb,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;CAC3B"}
@@ -0,0 +1,10 @@
1
+ import { ObservationForm, UserPrivilege } from '@bahmni/services';
2
+ import { FormPermissionType } from './constants';
3
+ import { TaskViewModel, TaskConfig, TaskView, TaskAction } from './models';
4
+ export declare const extractFormNameFromTask: (task: TaskViewModel, inputType: string) => string | null;
5
+ export declare const canUserAccessForm: (userPrivileges: UserPrivilege[] | null, form: ObservationForm | undefined, permissionType?: FormPermissionType) => boolean;
6
+ export declare const hasFormActions: (taskConfig: TaskConfig[], taskCode: string) => boolean;
7
+ export declare const hasViewFormConfig: (taskConfig: TaskConfig[], taskCode: string) => boolean;
8
+ export declare const isFormActionVisible: (action: TaskAction, task: TaskViewModel, allForms: ObservationForm[], userPrivileges: UserPrivilege[] | null) => boolean;
9
+ export declare const isViewFormDataVisible: (view: TaskView, task: TaskViewModel, userPrivileges: UserPrivilege[] | null) => boolean;
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/tasks/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAgC,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEhF,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,WAAW,MAAM,KAChB,MAAM,GAAG,IAeX,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,gBAAgB,aAAa,EAAE,GAAG,IAAI,EACtC,MAAM,eAAe,GAAG,SAAS,EACjC,iBAAgB,kBAAgD,KAC/D,OAuBF,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,YAAY,UAAU,EAAE,EACxB,UAAU,MAAM,KACf,OAWF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,YAAY,UAAU,EAAE,EACxB,UAAU,MAAM,KACf,OASF,CAAC;AASF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,UAAU,EAClB,MAAM,aAAa,EACnB,UAAU,eAAe,EAAE,EAC3B,gBAAgB,aAAa,EAAE,GAAG,IAAI,KACrC,OAoBF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,MAAM,QAAQ,EACd,MAAM,aAAa,EACnB,gBAAgB,aAAa,EAAE,GAAG,IAAI,KACrC,OAiCF,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { TaskConfig, TaskViewModel } from '../models';
3
+ interface TaskViewResultsProps {
4
+ task: TaskViewModel;
5
+ taskConfig: TaskConfig[];
6
+ }
7
+ declare const TaskViewResults: React.FC<TaskViewResultsProps>;
8
+ export default TaskViewResults;
9
+ //# sourceMappingURL=TaskViewResults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskViewResults.d.ts","sourceRoot":"","sources":["../../../src/tasks/views/TaskViewResults.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAY,aAAa,EAAE,MAAM,WAAW,CAAC;AAIrE,UAAU,oBAAoB;IAC5B,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,UAAU,EAAE,CAAC;CAC1B;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2EnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { TaskView, TaskViewModel } from '../../models';
3
+ interface ViewFormDataProps {
4
+ open: boolean;
5
+ task: TaskViewModel | null;
6
+ view: TaskView | null;
7
+ patientUuid: string;
8
+ onClose: () => void;
9
+ }
10
+ declare const ViewFormData: React.FC<ViewFormDataProps>;
11
+ export default ViewFormData;
12
+ //# sourceMappingURL=ViewFormData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewFormData.d.ts","sourceRoot":"","sources":["../../../../src/tasks/views/ViewFormData/ViewFormData.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI5D,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AASD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiK7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ViewFormData';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tasks/views/ViewFormData/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as TaskViewResults } from './TaskViewResults';
2
+ export { handleTaskView } from './viewHandlers';
3
+ export { default as ViewFormData } from './ViewFormData';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tasks/views/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { TaskView, TaskViewModel } from '../models';
3
+ export declare const handleTaskView: (view: TaskView, task: TaskViewModel, patientUuid: string, onClose: () => void) => React.ReactNode;
4
+ //# sourceMappingURL=viewHandlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewHandlers.d.ts","sourceRoot":"","sources":["../../../src/tasks/views/viewHandlers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAGzD,eAAO,MAAM,cAAc,GACzB,MAAM,QAAQ,EACd,MAAM,aAAa,EACnB,aAAa,MAAM,EACnB,SAAS,MAAM,IAAI,KAClB,KAAK,CAAC,SAaR,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const UserGlobalAction: {
2
+ (): import("react/jsx-runtime").JSX.Element;
3
+ displayName: string;
4
+ };
5
+ //# sourceMappingURL=UserGlobalAction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserGlobalAction.d.ts","sourceRoot":"","sources":["../../src/userGlobalAction/UserGlobalAction.tsx"],"names":[],"mappings":"AAgDA,eAAO,MAAM,gBAAgB;;;CA+K5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { UserAction } from '../../models';
2
+ export declare const changePasswordAction: UserAction;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/userGlobalAction/actions/changePassword/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,oBAAoB,EAAE,UAQlC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { UserActionContextType } from '../registry/context';
2
+ export declare const registerDefaultActions: (registry: UserActionContextType) => void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/userGlobalAction/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,eAAO,MAAM,sBAAsB,GACjC,UAAU,qBAAqB,KAC9B,IAGF,CAAC"}