@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,10 @@
1
+ import { default as React } from 'react';
2
+ import { Attachment } from './models';
3
+ interface AttachmentViewerProps {
4
+ attachment: Attachment;
5
+ index: number;
6
+ totalCount: number;
7
+ }
8
+ declare const AttachmentViewer: React.FC<AttachmentViewerProps>;
9
+ export default AttachmentViewer;
10
+ //# sourceMappingURL=AttachmentViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachmentViewer.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/AttachmentViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC,UAAU,qBAAqB;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiCrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
- declare const LabInvestigation: React.FC;
2
+ import { WidgetProps } from '../registry/model';
3
+ declare const LabInvestigation: React.FC<WidgetProps>;
3
4
  export default LabInvestigation;
4
5
  //# sourceMappingURL=LabInvestigation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAwE7B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgChD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4M3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,7 +1,9 @@
1
- import { FormattedLabTest } from '@bahmni/services';
2
1
  import { default as React } from 'react';
2
+ import { FormattedLabInvestigations } from './models';
3
3
  interface LabInvestigationItemProps {
4
- test: FormattedLabTest;
4
+ test: FormattedLabInvestigations;
5
+ isOpen: boolean;
6
+ hasProcessedReport: boolean;
5
7
  }
6
8
  declare const LabInvestigationItem: React.FC<LabInvestigationItemProps>;
7
9
  export default LabInvestigationItem;
@@ -1 +1 @@
1
- {"version":3,"file":"LabInvestigationItem.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigationItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,gBAAgB,EAEjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,yBAAyB;IACjC,IAAI,EAAE,gBAAgB,CAAC;CACxB;AACD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA8B7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"LabInvestigationItem.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigationItem.tsx"],"names":[],"mappings":"AASA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,0BAA0B,EAA4B,MAAM,UAAU,CAAC;AAIhF,UAAU,yBAAyB;IACjC,IAAI,EAAE,0BAA0B,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AACD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAmL7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,41 @@
1
+ export declare enum LabInvestigationPriority {
2
+ stat = "Urgent",
3
+ routine = "Routine"
4
+ }
5
+ export interface Attachment {
6
+ readonly url: string;
7
+ readonly id: string;
8
+ readonly contentType?: string;
9
+ }
10
+ export interface FormattedLabInvestigations {
11
+ readonly id: string;
12
+ readonly testName: string;
13
+ readonly priority: LabInvestigationPriority;
14
+ readonly orderedBy: string;
15
+ readonly orderedDate: string;
16
+ readonly formattedDate: string;
17
+ readonly result?: string | LabTestResult[];
18
+ readonly testType: string;
19
+ readonly note?: string;
20
+ readonly reportIds?: string[];
21
+ readonly attachments?: Attachment[];
22
+ readonly reportedBy?: string;
23
+ readonly reportedDate?: string;
24
+ }
25
+ export interface LabInvestigationsByDate {
26
+ readonly date: string;
27
+ readonly rawDate: string;
28
+ readonly tests: FormattedLabInvestigations[];
29
+ }
30
+ export interface LabTestResult {
31
+ status: string;
32
+ TestName: string;
33
+ value: string;
34
+ unit: string;
35
+ referenceRange: string;
36
+ reportedOn: string;
37
+ actions: string;
38
+ interpretation?: string;
39
+ attachment?: Attachment;
40
+ }
41
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/models.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,IAAI,WAAW;IACf,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,0BAA0B,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
@@ -0,0 +1,34 @@
1
+ import { Bundle, ServiceRequest, Observation } from 'fhir/r4';
2
+ import { FormattedLabInvestigations, LabInvestigationPriority, LabInvestigationsByDate, LabTestResult } from './models';
3
+ export declare enum REFERENCE_RANGE_CODE {
4
+ NORMAL = "normal"
5
+ }
6
+ export declare function filterLabInvestigationEntries(labInvestigationBundle: Bundle<ServiceRequest>): ServiceRequest[];
7
+ /**
8
+ * Maps a FHIR priority code to LabInvestigationPriority enum
9
+ **/
10
+ export declare const mapLabInvestigationPriority: (labTest: ServiceRequest) => LabInvestigationPriority;
11
+ export declare const determineInvestigationType: (labTest: ServiceRequest) => string;
12
+ export declare function formatLabInvestigations(labInvestigations: ServiceRequest[], t: (key: string) => string): FormattedLabInvestigations[];
13
+ export declare function groupLabInvestigationsByDate(labTests: FormattedLabInvestigations[]): LabInvestigationsByDate[];
14
+ /**
15
+ * Sorts tests within each date group to show urgent tests first
16
+ */
17
+ export declare function sortLabInvestigationsByPriority(labTestsByDate: LabInvestigationsByDate[]): LabInvestigationsByDate[];
18
+ export declare function extractObservationsFromBundle(bundle: Bundle | undefined): Observation[];
19
+ export declare function formatObservationsAsLabTestResults(observations: Observation[], t: (key: string) => string): LabTestResult[];
20
+ /**
21
+ * Maps a single diagnostic report bundle to test results
22
+ * @param bundle - DiagnosticReport bundle with observations
23
+ * @param t - Translation function
24
+ * @returns Array of LabTestResult or undefined if no valid results
25
+ */
26
+ export declare function mapDiagnosticReportBundleToTestResults(bundle: Bundle | undefined, t: (key: string) => string): LabTestResult[] | undefined;
27
+ /**
28
+ * Updates tests with results from diagnostic report bundles
29
+ * @param tests - Array of formatted lab tests
30
+ * @param resultsMap - Map of test ID to LabTestResult arrays
31
+ * @returns Updated array of tests with results
32
+ */
33
+ export declare function updateTestsWithResults(tests: FormattedLabInvestigations[], resultsMap: Map<string, LabTestResult[]>): FormattedLabInvestigations[];
34
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAoB,WAAW,EAAE,MAAM,SAAS,CAAC;AAEhF,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,aAAa,EACd,MAAM,UAAU,CAAC;AAElB,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;CAClB;AAED,wBAAgB,6BAA6B,CAC3C,sBAAsB,EAAE,MAAM,CAAC,cAAc,CAAC,GAC7C,cAAc,EAAE,CA6BlB;AAED;;IAEI;AACJ,eAAO,MAAM,2BAA2B,GACtC,SAAS,cAAc,KACtB,wBASF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,SAAS,cAAc,KAAG,MAcpE,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,cAAc,EAAE,EACnC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,0BAA0B,EAAE,CA2B9B;AAED,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,0BAA0B,EAAE,GACrC,uBAAuB,EAAE,CAqB3B;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,uBAAuB,EAAE,GACxC,uBAAuB,EAAE,CAU3B;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,WAAW,EAAE,CAOf;AAED,wBAAgB,kCAAkC,CAChD,YAAY,EAAE,WAAW,EAAE,EAC3B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,aAAa,EAAE,CAmEjB;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,aAAa,EAAE,GAAG,SAAS,CA6B7B;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,0BAA0B,EAAE,EACnC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,GACvC,0BAA0B,EAAE,CAW9B"}
@@ -0,0 +1,13 @@
1
+ import { UserLocation } from '@bahmni/services';
2
+ import { default as React } from 'react';
3
+ export type { UserLocation };
4
+ interface LocationContextType {
5
+ location: UserLocation | null;
6
+ setLocation: (location: UserLocation | null) => void;
7
+ availableLocations: UserLocation[];
8
+ loading: boolean;
9
+ error: string | null;
10
+ }
11
+ export declare const LocationContext: React.Context<LocationContextType | undefined>;
12
+ export declare const useLocation: () => LocationContextType;
13
+ //# sourceMappingURL=LocationContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationContext.d.ts","sourceRoot":"","sources":["../../src/location/LocationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,KAAK,IAAI,CAAC;IACrD,kBAAkB,EAAE,YAAY,EAAE,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,gDAEhB,CAAC;AAEb,eAAO,MAAM,WAAW,2BAMvB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface LocationProviderProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const LocationProvider: React.FC<LocationProviderProps>;
6
+ export {};
7
+ //# sourceMappingURL=LocationProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationProvider.d.ts","sourceRoot":"","sources":["../../src/location/LocationProvider.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiG5D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const LocationSelector: React.FC;
3
+ //# sourceMappingURL=LocationSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationSelector.d.ts","sourceRoot":"","sources":["../../src/location/LocationSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAwDpC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const mockLocation: {
2
+ name: string;
3
+ uuid: string;
4
+ };
5
+ export declare const mockLocations: {
6
+ name: string;
7
+ uuid: string;
8
+ }[];
9
+ export declare const mockUser: {
10
+ uuid: string;
11
+ username: string;
12
+ display: string;
13
+ };
14
+ //# sourceMappingURL=LocationSelectorMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationSelectorMocks.d.ts","sourceRoot":"","sources":["../../../../src/location/__tests__/__mocks__/LocationSelectorMocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;CAGxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;GAGzB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { LocationContext, useLocation } from './LocationContext';
2
+ export { LocationProvider } from './LocationProvider';
3
+ export { LocationSelector } from './LocationSelector';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/location/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
- declare const MedicationsTable: React.FC;
2
+ import { WidgetProps } from '../registry/model';
3
+ declare const MedicationsTable: React.FC<WidgetProps>;
3
4
  export default MedicationsTable;
4
5
  //# sourceMappingURL=MedicationsTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MedicationsTable.d.ts","sourceRoot":"","sources":["../../src/medications/MedicationsTable.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAmD9D,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EA8N7B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"MedicationsTable.d.ts","sourceRoot":"","sources":["../../src/medications/MedicationsTable.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgEhD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4Y3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MedicationAction } from '../../models';
2
+ export declare const singleActionMock: MedicationAction[];
3
+ export declare const multipleActionsMock: MedicationAction[];
4
+ //# sourceMappingURL=actionsMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionsMocks.d.ts","sourceRoot":"","sources":["../../../../src/medications/__tests__/__mocks__/actionsMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,eAAO,MAAM,gBAAgB,EAAE,gBAAgB,EAO9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAajD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { MedicationRequest } from '@bahmni/services';
2
+ import { MedicationRequest as FhirMedicationRequest } from 'fhir/r4';
3
+ export declare const fhirMedicationRequestMock: FhirMedicationRequest;
4
+ export declare const mockMedications: MedicationRequest[];
5
+ export declare const mockMedicationWithDoseForm: MedicationRequest;
6
+ export declare const mockMedicationWithoutDoseForm: MedicationRequest;
7
+ export declare const mockMedicationCapsule: MedicationRequest;
8
+ export declare const mockMixedDoseFormMedications: MedicationRequest[];
9
+ export declare const mockStatMedication: MedicationRequest;
10
+ //# sourceMappingURL=medicationMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"medicationMocks.d.ts","sourceRoot":"","sources":["../../../../src/medications/__tests__/__mocks__/medicationMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErE,eAAO,MAAM,yBAAyB,EAAE,qBAUvC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,iBAAiB,EA8C9C,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,iBAexC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,iBAc3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAenC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,EAgC3D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAehC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { MedicationRequest } from 'fhir/r4';
2
+ import { default as React } from 'react';
3
+ import { MedicationAction } from '../models';
4
+ type ActionsProps = {
5
+ actions: MedicationAction[];
6
+ medication: MedicationRequest;
7
+ startDate?: string;
8
+ disabledActionTypes?: string[];
9
+ };
10
+ declare const Actions: React.FC<ActionsProps>;
11
+ export default Actions;
12
+ //# sourceMappingURL=Actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/medications/components/Actions.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAO7C,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC,CAAC;AAEF,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgFnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MedicationRequest } from 'fhir/r4';
2
+ import { MedicationAction } from '../models';
3
+ export declare const handleAction: (action: MedicationAction, fhirResource?: MedicationRequest, startDate?: string) => void;
4
+ //# sourceMappingURL=actionHandlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actionHandlers.d.ts","sourceRoot":"","sources":["../../../src/medications/components/actionHandlers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAgD7C,eAAO,MAAM,YAAY,GACvB,QAAQ,gBAAgB,EACxB,eAAe,iBAAiB,EAChC,YAAY,MAAM,KACjB,IAmCF,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare enum MEDICATION_REQUEST_PRIORITY {
2
+ STAT = "stat",
3
+ ROUTINE = "routine",
4
+ URGENT = "urgent",
5
+ ASAP = "asap"
6
+ }
7
+ export declare const CANCEL_VACCINATION_INPUT_CONTROL_KEY = "cancelVaccination";
8
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/medications/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,2BAA2B;IACrC,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AACD,eAAO,MAAM,oCAAoC,sBAAsB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default as MedicationsTable } from './MedicationsTable';
2
+ export { CANCEL_VACCINATION_INPUT_CONTROL_KEY } from './constants';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/medications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/medications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { MedicationStatus } from '@bahmni/services';
2
+ import { MedicationRequest } from 'fhir/r4';
3
+ export type MedicationAction = {
4
+ label: string;
5
+ type: string;
6
+ encounterType: string;
7
+ requiredPrivilege: string[];
8
+ };
9
+ export interface FormattedMedicationRequest {
10
+ readonly id: string;
11
+ readonly name: string;
12
+ readonly dosage: string;
13
+ readonly dosageUnit: string;
14
+ readonly quantity: string;
15
+ readonly instruction: string;
16
+ readonly startDate: string;
17
+ readonly orderDate: string;
18
+ readonly orderedBy: string;
19
+ readonly status: MedicationStatus;
20
+ readonly priority: MedicationRequest['priority'];
21
+ readonly asNeeded: boolean;
22
+ readonly isImmediate: boolean;
23
+ readonly note?: string;
24
+ readonly cancellationNote?: string;
25
+ readonly doseForm?: string;
26
+ readonly stopReason?: string;
27
+ readonly dateStopped?: string;
28
+ readonly fhirResource: MedicationRequest;
29
+ }
30
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/medications/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACjD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;CAC1C"}
@@ -1,4 +1,5 @@
1
- import { MedicationRequest, FormattedMedicationRequest } from '../../../bahmni-services/src/medicationRequestService/models';
1
+ import { MedicationRequest } from '@bahmni/services';
2
+ import { FormattedMedicationRequest } from './models';
2
3
  /**
3
4
  * Priority order for medication status levels (case insensitive)
4
5
  * Index 0 = highest priority, higher index = lower priority
@@ -24,16 +25,8 @@ export declare const getMedicationStatusPriority: (status: string) => number;
24
25
  */
25
26
  export declare const sortMedicationsByStatus: (medications: FormattedMedicationRequest[]) => FormattedMedicationRequest[];
26
27
  /**
27
- * Gets the priority value for medication based only on isImmediate flag.
28
- * Lower values indicate higher priority.
29
- *
30
- * @param medication - The FormattedMedicationRequest object to get priority for.
31
- * @returns A numeric priority value (0 = immediate medications, 1 = all other medications).
32
- */
33
- export declare const getMedicationPriority: (medication: FormattedMedicationRequest) => number;
34
- /**
35
- * Sorts an array of medication requests by priority based only on isImmediate flag.
36
- * Priority order: immediate medications → all other medications (asNeeded, regular, etc.).
28
+ * Sorts an array of medication requests by priority based priority.
29
+ * Priority order: STAT medications → all other medications (asNeeded, regular, etc.).
37
30
  * Stable sort ensures original order is preserved within the same priority group.
38
31
  *
39
32
  * @param medications - The array of FormattedMedicationRequest objects to be sorted.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/medications/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,8DAA8D,CAAC;AAGtE;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,UAS5C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,QAAQ,MAAM,KAAG,MAE5D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAClC,aAAa,0BAA0B,EAAE,KACxC,0BAA0B,EAO5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAChC,YAAY,0BAA0B,KACrC,MAGF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GACpC,aAAa,0BAA0B,EAAE,KACxC,0BAA0B,EAI5B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GACtD,MAAM,CAiBR;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,iBAAiB,GAC5B,0BAA0B,CA2D5B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,0BAA0B,EAAE,KACxC,0BAA0B,EAU5B,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/medications/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,UAS5C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,QAAQ,MAAM,KAAG,MAE5D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAClC,aAAa,0BAA0B,EAAE,KACxC,0BAA0B,EAO5B,CAAC;AAUF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GACpC,aAAa,0BAA0B,EAAE,KACxC,0BAA0B,EAI5B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GACtD,MAAM,CAiBR;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,iBAAiB,GAC5B,0BAA0B,CAyE5B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,GACxC,aAAa,0BAA0B,EAAE,KACxC,0BAA0B,EAU5B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { WidgetProps } from '../registry/model';
2
+ export interface ObservationConfig {
3
+ conceptNames?: string[];
4
+ conceptUuid?: string[];
5
+ titleTranslationKey?: string;
6
+ hideThumbnail?: boolean;
7
+ }
8
+ export declare const conceptUuidQueryKeys: (conceptName: string) => readonly ["conceptUuid", string];
9
+ export declare const observationsQueryKeys: (patientUUID: string, conceptUuids: string[]) => readonly ["observations", string, ...string[]];
10
+ declare const Observations: React.FC<WidgetProps>;
11
+ export default Observations;
12
+ //# sourceMappingURL=Observations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Observations.d.ts","sourceRoot":"","sources":["../../src/observations/Observations.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAShD,MAAM,WAAW,iBAAiB;IAChC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM,qCACjB,CAAC;AAExC,eAAO,MAAM,qBAAqB,GAChC,aAAa,MAAM,EACnB,cAAc,MAAM,EAAE,mDACoC,CAAC;AAE7D,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAmKvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,176 @@
1
+ import { Bundle, Observation, Encounter } from 'fhir/r4';
2
+ export declare const mockBundleWithCorrectValues: Bundle<Observation>;
3
+ export declare const mockEmptyBundle: Bundle<Observation>;
4
+ export declare const mockBundleWithNoEntries: Bundle<Observation>;
5
+ export declare const mockBundleWithEncounterDetails: Bundle<Observation | Encounter>;
6
+ export declare const mockBundleWithHasMember: Bundle<Observation>;
7
+ export declare const mockBundleWithoutValueType: Bundle<Observation>;
8
+ export declare const mockBundleWithMissingOptionalFields: Bundle<Observation>;
9
+ export declare const mockBundleWithAllOptionalValues: Bundle<Observation | Encounter>;
10
+ export declare const mockBundleWithMultipleEncounters: Bundle<Observation | Encounter>;
11
+ export declare const mockBundleWithMixedObservations: Bundle<Observation | Encounter>;
12
+ export declare const mockBundleWithGroupedObservationsOnly: Bundle<Observation | Encounter>;
13
+ export declare const mockBundleWithOneMissingDate: Bundle<Observation | Encounter>;
14
+ export declare const mockBundleWithBothMissingDates: Bundle<Observation | Encounter>;
15
+ export declare const mockBundleWithReversedMissingDate: Bundle<Observation | Encounter>;
16
+ export declare const mockBundleWithNormalReferenceRange: Bundle<Observation>;
17
+ export declare const mockBundleWithOnlyFirstReferenceRange: Bundle<Observation>;
18
+ export declare const mockObservationWithBothRangesHavingUnits: {
19
+ id: string;
20
+ display: string;
21
+ observationValue: {
22
+ value: number;
23
+ unit: string;
24
+ type: "quantity";
25
+ referenceRange: {
26
+ low: {
27
+ value: number;
28
+ unit: string;
29
+ };
30
+ high: {
31
+ value: number;
32
+ unit: string;
33
+ };
34
+ };
35
+ };
36
+ };
37
+ export declare const mockObservationWithBothRangesUsingObsUnit: {
38
+ id: string;
39
+ display: string;
40
+ observationValue: {
41
+ value: number;
42
+ unit: string;
43
+ type: "quantity";
44
+ referenceRange: {
45
+ low: {
46
+ value: number;
47
+ };
48
+ high: {
49
+ value: number;
50
+ };
51
+ };
52
+ };
53
+ };
54
+ export declare const mockObservationWithMixedUnits: {
55
+ id: string;
56
+ display: string;
57
+ observationValue: {
58
+ value: number;
59
+ unit: string;
60
+ type: "quantity";
61
+ referenceRange: {
62
+ low: {
63
+ value: number;
64
+ unit: string;
65
+ };
66
+ high: {
67
+ value: number;
68
+ };
69
+ };
70
+ };
71
+ };
72
+ export declare const mockObservationWithOnlyLowWithUnit: {
73
+ id: string;
74
+ display: string;
75
+ observationValue: {
76
+ value: number;
77
+ unit: string;
78
+ type: "quantity";
79
+ referenceRange: {
80
+ low: {
81
+ value: number;
82
+ unit: string;
83
+ };
84
+ };
85
+ };
86
+ };
87
+ export declare const mockObservationWithOnlyLowUsingObsUnit: {
88
+ id: string;
89
+ display: string;
90
+ observationValue: {
91
+ value: number;
92
+ unit: string;
93
+ type: "quantity";
94
+ referenceRange: {
95
+ low: {
96
+ value: number;
97
+ };
98
+ };
99
+ };
100
+ };
101
+ export declare const mockObservationWithOnlyHighWithUnit: {
102
+ id: string;
103
+ display: string;
104
+ observationValue: {
105
+ value: number;
106
+ unit: string;
107
+ type: "quantity";
108
+ referenceRange: {
109
+ high: {
110
+ value: number;
111
+ unit: string;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ export declare const mockObservationWithOnlyHighUsingObsUnit: {
117
+ id: string;
118
+ display: string;
119
+ observationValue: {
120
+ value: number;
121
+ unit: string;
122
+ type: "quantity";
123
+ referenceRange: {
124
+ high: {
125
+ value: number;
126
+ };
127
+ };
128
+ };
129
+ };
130
+ export declare const mockObservationWithNoReferenceRange: {
131
+ id: string;
132
+ display: string;
133
+ observationValue: {
134
+ value: string;
135
+ type: "string";
136
+ };
137
+ };
138
+ export declare const mockObservationWithEmptyReferenceRange: {
139
+ id: string;
140
+ display: string;
141
+ observationValue: {
142
+ value: number;
143
+ unit: string;
144
+ type: "quantity";
145
+ referenceRange: {};
146
+ };
147
+ };
148
+ export declare const mockObservationWithNoUnits: {
149
+ id: string;
150
+ display: string;
151
+ observationValue: {
152
+ value: number;
153
+ type: "quantity";
154
+ referenceRange: {
155
+ low: {
156
+ value: number;
157
+ };
158
+ high: {
159
+ value: number;
160
+ };
161
+ };
162
+ };
163
+ };
164
+ export declare const mockObservationWithoutObservationValue: {
165
+ id: string;
166
+ display: string;
167
+ observationValue: undefined;
168
+ };
169
+ export declare const mockObservationWithFormPath: Observation;
170
+ export declare const mockObservationsForVitals: Observation[];
171
+ export declare const mockEncounterWithProvider: Encounter;
172
+ export declare const mockEncounterWithoutProvider: Encounter;
173
+ export declare const mockObservationAndEncounterBundle: Bundle<Observation | Encounter>;
174
+ export declare const mockEmptyObservationsBundle: Bundle<Observation>;
175
+ export declare const buildFormObservation: (id: string, encounterUuid: string, formFieldPath?: string) => Observation;
176
+ //# sourceMappingURL=observationTestData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observationTestData.d.ts","sourceRoot":"","sources":["../../../src/observations/__mocks__/observationTestData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,WAAW,CAgE3D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,WAAW,CAI/C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,WAAW,CAGvD,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CA2B1E,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,WAAW,CAuBvD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,WAAW,CAa1D,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,WAAW,CAgBnE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAkEzE,CAAC;AAEJ,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAmD1E,CAAC;AAEJ,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CA4DzE,CAAC;AAEJ,eAAO,MAAM,qCAAqC,EAAE,MAAM,CACxD,WAAW,GAAG,SAAS,CAwExB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAyCxE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAyC1E,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CACpD,WAAW,GAAG,SAAS,CA0CxB,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,WAAW,CAsElE,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,WAAW,CAyDrE,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;CAYpD,CAAC;AAEF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;CAYrD,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;CAYzC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;CAW9C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;CAWlD,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;CAW/C,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;CAWnD,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;CAO/C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;CASlD,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;CAWtC,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;CAIlD,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,WA8BzC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,WAAW,EAyBlD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,SAuBvC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,SAe1C,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CACpD,WAAW,GAAG,SAAS,CAmBxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,WAAW,CAK3D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,IAAI,MAAM,EACV,eAAe,MAAM,EACrB,sBAAqC,KACpC,WAWD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { ObservationsByEncounter } from '../models';
3
+ export interface ObsByEncounterProps {
4
+ groupedData: ObservationsByEncounter[];
5
+ title?: string;
6
+ hideThumbnail?: boolean;
7
+ }
8
+ export declare const ObsByEncounter: React.FC<ObsByEncounterProps>;
9
+ export default ObsByEncounter;
10
+ //# sourceMappingURL=ObsByEncounter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObsByEncounter.d.ts","sourceRoot":"","sources":["../../../src/observations/components/ObsByEncounter.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwB,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAG1E,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AA4FD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwDxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { default as Observations } from './Observations';
2
+ export type { ObservationConfig } from './Observations';
3
+ export { extractObservationsFromBundle, extractFormName } from './utils';
4
+ export type { ExtractedObservationsResult } from './models';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AACzE,YAAY,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC"}