@bahmni/services 0.0.1-dev.49

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 (230) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +21 -0
  3. package/dist/AppointmentService/appointmmetService.d.ts +4 -0
  4. package/dist/AppointmentService/appointmmetService.d.ts.map +1 -0
  5. package/dist/AppointmentService/constatns.d.ts +3 -0
  6. package/dist/AppointmentService/constatns.d.ts.map +1 -0
  7. package/dist/AppointmentService/index.d.ts +3 -0
  8. package/dist/AppointmentService/index.d.ts.map +1 -0
  9. package/dist/AppointmentService/models.d.ts +71 -0
  10. package/dist/AppointmentService/models.d.ts.map +1 -0
  11. package/dist/allergyService/__mocks__/mocks.d.ts +56 -0
  12. package/dist/allergyService/__mocks__/mocks.d.ts.map +1 -0
  13. package/dist/allergyService/allergyService.d.ts +41 -0
  14. package/dist/allergyService/allergyService.d.ts.map +1 -0
  15. package/dist/allergyService/constants.d.ts +15 -0
  16. package/dist/allergyService/constants.d.ts.map +1 -0
  17. package/dist/allergyService/index.d.ts +3 -0
  18. package/dist/allergyService/index.d.ts.map +1 -0
  19. package/dist/allergyService/models.d.ts +60 -0
  20. package/dist/allergyService/models.d.ts.map +1 -0
  21. package/dist/api/api.d.ts +27 -0
  22. package/dist/api/api.d.ts.map +1 -0
  23. package/dist/api/client.d.ts +4 -0
  24. package/dist/api/client.d.ts.map +1 -0
  25. package/dist/api/constants.d.ts +2 -0
  26. package/dist/api/constants.d.ts.map +1 -0
  27. package/dist/api/index.d.ts +2 -0
  28. package/dist/api/index.d.ts.map +1 -0
  29. package/dist/api/utils.d.ts +20 -0
  30. package/dist/api/utils.d.ts.map +1 -0
  31. package/dist/applicationConfigService/ApplicationConfigService.d.ts +17 -0
  32. package/dist/applicationConfigService/ApplicationConfigService.d.ts.map +1 -0
  33. package/dist/applicationConfigService/constants.d.ts +3 -0
  34. package/dist/applicationConfigService/constants.d.ts.map +1 -0
  35. package/dist/applicationConfigService/index.d.ts +2 -0
  36. package/dist/applicationConfigService/index.d.ts.map +1 -0
  37. package/dist/auditLogService/auditEventDispatcher.d.ts +20 -0
  38. package/dist/auditLogService/auditEventDispatcher.d.ts.map +1 -0
  39. package/dist/auditLogService/auditLogService.d.ts +11 -0
  40. package/dist/auditLogService/auditLogService.d.ts.map +1 -0
  41. package/dist/auditLogService/constants.d.ts +44 -0
  42. package/dist/auditLogService/constants.d.ts.map +1 -0
  43. package/dist/auditLogService/globalAuditListener.d.ts +11 -0
  44. package/dist/auditLogService/globalAuditListener.d.ts.map +1 -0
  45. package/dist/auditLogService/index.d.ts +6 -0
  46. package/dist/auditLogService/index.d.ts.map +1 -0
  47. package/dist/auditLogService/models.d.ts +12 -0
  48. package/dist/auditLogService/models.d.ts.map +1 -0
  49. package/dist/cameraService/index.d.ts +2 -0
  50. package/dist/cameraService/index.d.ts.map +1 -0
  51. package/dist/cameraService/useCamera.d.ts +7 -0
  52. package/dist/cameraService/useCamera.d.ts.map +1 -0
  53. package/dist/conceptService/conceptService.d.ts +17 -0
  54. package/dist/conceptService/conceptService.d.ts.map +1 -0
  55. package/dist/conceptService/constants.d.ts +4 -0
  56. package/dist/conceptService/constants.d.ts.map +1 -0
  57. package/dist/conceptService/index.d.ts +3 -0
  58. package/dist/conceptService/index.d.ts.map +1 -0
  59. package/dist/conceptService/models.d.ts +11 -0
  60. package/dist/conceptService/models.d.ts.map +1 -0
  61. package/dist/conditionService/__mocks__/mocks.d.ts +22 -0
  62. package/dist/conditionService/__mocks__/mocks.d.ts.map +1 -0
  63. package/dist/conditionService/conditionService.d.ts +14 -0
  64. package/dist/conditionService/conditionService.d.ts.map +1 -0
  65. package/dist/conditionService/constants.d.ts +2 -0
  66. package/dist/conditionService/constants.d.ts.map +1 -0
  67. package/dist/conditionService/index.d.ts +3 -0
  68. package/dist/conditionService/index.d.ts.map +1 -0
  69. package/dist/conditionService/models.d.ts +13 -0
  70. package/dist/conditionService/models.d.ts.map +1 -0
  71. package/dist/configService/__mocks__/configMocks.d.ts +191 -0
  72. package/dist/configService/__mocks__/configMocks.d.ts.map +1 -0
  73. package/dist/configService/configService.d.ts +31 -0
  74. package/dist/configService/configService.d.ts.map +1 -0
  75. package/dist/configService/constants.d.ts +22 -0
  76. package/dist/configService/constants.d.ts.map +1 -0
  77. package/dist/configService/index.d.ts +3 -0
  78. package/dist/configService/index.d.ts.map +1 -0
  79. package/dist/configService/models/config.d.ts +27 -0
  80. package/dist/configService/models/config.d.ts.map +1 -0
  81. package/dist/configService/models/dashboardConfig.d.ts +11 -0
  82. package/dist/configService/models/dashboardConfig.d.ts.map +1 -0
  83. package/dist/configService/models/medicationConfig.d.ts +41 -0
  84. package/dist/configService/models/medicationConfig.d.ts.map +1 -0
  85. package/dist/configService/models/registrationConfig.d.ts +84 -0
  86. package/dist/configService/models/registrationConfig.d.ts.map +1 -0
  87. package/dist/configService/models.d.ts +5 -0
  88. package/dist/configService/models.d.ts.map +1 -0
  89. package/dist/configService/schemas/clinicalConfig.schema.json.d.ts +98 -0
  90. package/dist/configService/schemas/dashboardConfig.schema.json.d.ts +40 -0
  91. package/dist/configService/schemas/medicationConfig.schema.json.d.ts +40 -0
  92. package/dist/configService/schemas/registrationConfig.schema.json.d.ts +329 -0
  93. package/dist/constants/app.d.ts +10 -0
  94. package/dist/constants/app.d.ts.map +1 -0
  95. package/dist/constants/fhir.d.ts +11 -0
  96. package/dist/constants/fhir.d.ts.map +1 -0
  97. package/dist/date/constants.d.ts +6 -0
  98. package/dist/date/constants.d.ts.map +1 -0
  99. package/dist/date/date.d.ts +71 -0
  100. package/dist/date/date.d.ts.map +1 -0
  101. package/dist/date/errors.d.ts +8 -0
  102. package/dist/date/errors.d.ts.map +1 -0
  103. package/dist/date/index.d.ts +3 -0
  104. package/dist/date/index.d.ts.map +1 -0
  105. package/dist/diagnosesService/constants.d.ts +4 -0
  106. package/dist/diagnosesService/constants.d.ts.map +1 -0
  107. package/dist/diagnosesService/diagnosesService.d.ts +8 -0
  108. package/dist/diagnosesService/diagnosesService.d.ts.map +1 -0
  109. package/dist/diagnosesService/index.d.ts +3 -0
  110. package/dist/diagnosesService/index.d.ts.map +1 -0
  111. package/dist/diagnosesService/models.d.ts +22 -0
  112. package/dist/diagnosesService/models.d.ts.map +1 -0
  113. package/dist/encounterService/__mocks__/mocks.d.ts +182 -0
  114. package/dist/encounterService/__mocks__/mocks.d.ts.map +1 -0
  115. package/dist/encounterService/constants.d.ts +2 -0
  116. package/dist/encounterService/constants.d.ts.map +1 -0
  117. package/dist/encounterService/encounterService.d.ts +20 -0
  118. package/dist/encounterService/encounterService.d.ts.map +1 -0
  119. package/dist/encounterService/index.d.ts +2 -0
  120. package/dist/encounterService/index.d.ts.map +1 -0
  121. package/dist/encounterSessionService/constants.d.ts +4 -0
  122. package/dist/encounterSessionService/constants.d.ts.map +1 -0
  123. package/dist/encounterSessionService/encounterSessionService.d.ts +43 -0
  124. package/dist/encounterSessionService/encounterSessionService.d.ts.map +1 -0
  125. package/dist/encounterSessionService/index.d.ts +2 -0
  126. package/dist/encounterSessionService/index.d.ts.map +1 -0
  127. package/dist/errorHandling/index.d.ts +2 -0
  128. package/dist/errorHandling/index.d.ts.map +1 -0
  129. package/dist/errorHandling/utils.d.ts +10 -0
  130. package/dist/errorHandling/utils.d.ts.map +1 -0
  131. package/dist/i18n/constants.d.ts +5 -0
  132. package/dist/i18n/constants.d.ts.map +1 -0
  133. package/dist/i18n/i18n.d.ts +10 -0
  134. package/dist/i18n/i18n.d.ts.map +1 -0
  135. package/dist/i18n/index.d.ts +3 -0
  136. package/dist/i18n/index.d.ts.map +1 -0
  137. package/dist/i18n/translationService.d.ts +25 -0
  138. package/dist/i18n/translationService.d.ts.map +1 -0
  139. package/dist/index.d.ts +31 -0
  140. package/dist/index.d.ts.map +1 -0
  141. package/dist/index.js +12066 -0
  142. package/dist/investigationService/constants.d.ts +5 -0
  143. package/dist/investigationService/constants.d.ts.map +1 -0
  144. package/dist/investigationService/index.d.ts +3 -0
  145. package/dist/investigationService/index.d.ts.map +1 -0
  146. package/dist/investigationService/investigationService.d.ts +3 -0
  147. package/dist/investigationService/investigationService.d.ts.map +1 -0
  148. package/dist/investigationService/model.d.ts +20 -0
  149. package/dist/investigationService/model.d.ts.map +1 -0
  150. package/dist/labInvestigationService/constants.d.ts +4 -0
  151. package/dist/labInvestigationService/constants.d.ts.map +1 -0
  152. package/dist/labInvestigationService/index.d.ts +3 -0
  153. package/dist/labInvestigationService/index.d.ts.map +1 -0
  154. package/dist/labInvestigationService/labInvestigationService.d.ts +49 -0
  155. package/dist/labInvestigationService/labInvestigationService.d.ts.map +1 -0
  156. package/dist/labInvestigationService/models.d.ts +37 -0
  157. package/dist/labInvestigationService/models.d.ts.map +1 -0
  158. package/dist/medicationRequestService/constants.d.ts +2 -0
  159. package/dist/medicationRequestService/constants.d.ts.map +1 -0
  160. package/dist/medicationRequestService/index.d.ts +3 -0
  161. package/dist/medicationRequestService/index.d.ts.map +1 -0
  162. package/dist/medicationRequestService/medicationRequestService.d.ts +15 -0
  163. package/dist/medicationRequestService/medicationRequestService.d.ts.map +1 -0
  164. package/dist/medicationRequestService/models.d.ts +58 -0
  165. package/dist/medicationRequestService/models.d.ts.map +1 -0
  166. package/dist/notification/index.d.ts +3 -0
  167. package/dist/notification/index.d.ts.map +1 -0
  168. package/dist/notification/models.d.ts +9 -0
  169. package/dist/notification/models.d.ts.map +1 -0
  170. package/dist/notification/notificationService.d.ts +22 -0
  171. package/dist/notification/notificationService.d.ts.map +1 -0
  172. package/dist/observationFormsService/index.d.ts +3 -0
  173. package/dist/observationFormsService/index.d.ts.map +1 -0
  174. package/dist/observationFormsService/models.d.ts +26 -0
  175. package/dist/observationFormsService/models.d.ts.map +1 -0
  176. package/dist/observationFormsService/observationFormsService.d.ts +6 -0
  177. package/dist/observationFormsService/observationFormsService.d.ts.map +1 -0
  178. package/dist/patientService/constants.d.ts +27 -0
  179. package/dist/patientService/constants.d.ts.map +1 -0
  180. package/dist/patientService/index.d.ts +4 -0
  181. package/dist/patientService/index.d.ts.map +1 -0
  182. package/dist/patientService/models.d.ts +224 -0
  183. package/dist/patientService/models.d.ts.map +1 -0
  184. package/dist/patientService/patientService.d.ts +123 -0
  185. package/dist/patientService/patientService.d.ts.map +1 -0
  186. package/dist/privilegeService/index.d.ts +3 -0
  187. package/dist/privilegeService/index.d.ts.map +1 -0
  188. package/dist/privilegeService/models.d.ts +9 -0
  189. package/dist/privilegeService/models.d.ts.map +1 -0
  190. package/dist/privilegeService/privilegeService.d.ts +15 -0
  191. package/dist/privilegeService/privilegeService.d.ts.map +1 -0
  192. package/dist/providerService/constants.d.ts +2 -0
  193. package/dist/providerService/constants.d.ts.map +1 -0
  194. package/dist/providerService/index.d.ts +3 -0
  195. package/dist/providerService/index.d.ts.map +1 -0
  196. package/dist/providerService/models.d.ts +51 -0
  197. package/dist/providerService/models.d.ts.map +1 -0
  198. package/dist/providerService/providerService.d.ts +7 -0
  199. package/dist/providerService/providerService.d.ts.map +1 -0
  200. package/dist/radiologyInvestigationService/__mocks__/mocks.d.ts +17 -0
  201. package/dist/radiologyInvestigationService/__mocks__/mocks.d.ts.map +1 -0
  202. package/dist/radiologyInvestigationService/constants.d.ts +2 -0
  203. package/dist/radiologyInvestigationService/constants.d.ts.map +1 -0
  204. package/dist/radiologyInvestigationService/index.d.ts +3 -0
  205. package/dist/radiologyInvestigationService/index.d.ts.map +1 -0
  206. package/dist/radiologyInvestigationService/models.d.ts +12 -0
  207. package/dist/radiologyInvestigationService/models.d.ts.map +1 -0
  208. package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts +15 -0
  209. package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts.map +1 -0
  210. package/dist/userService/constants.d.ts +3 -0
  211. package/dist/userService/constants.d.ts.map +1 -0
  212. package/dist/userService/index.d.ts +3 -0
  213. package/dist/userService/index.d.ts.map +1 -0
  214. package/dist/userService/models.d.ts +18 -0
  215. package/dist/userService/models.d.ts.map +1 -0
  216. package/dist/userService/userService.d.ts +10 -0
  217. package/dist/userService/userService.d.ts.map +1 -0
  218. package/dist/utils/index.d.ts +2 -0
  219. package/dist/utils/index.d.ts.map +1 -0
  220. package/dist/utils/utils.d.ts +84 -0
  221. package/dist/utils/utils.d.ts.map +1 -0
  222. package/dist/vitalFlowSheetService/constants.d.ts +2 -0
  223. package/dist/vitalFlowSheetService/constants.d.ts.map +1 -0
  224. package/dist/vitalFlowSheetService/index.d.ts +3 -0
  225. package/dist/vitalFlowSheetService/index.d.ts.map +1 -0
  226. package/dist/vitalFlowSheetService/model.d.ts +22 -0
  227. package/dist/vitalFlowSheetService/model.d.ts.map +1 -0
  228. package/dist/vitalFlowSheetService/vitalFlowSheetService.d.ts +11 -0
  229. package/dist/vitalFlowSheetService/vitalFlowSheetService.d.ts.map +1 -0
  230. package/package.json +44 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/patientService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAA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IAAI,CAAC;IAC3B,UAAU,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,MAAM;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,123 @@
1
+ import { Patient } from 'fhir/r4';
2
+ import { PatientSearchField } from '../configService/models/registrationConfig';
3
+ import { FormattedPatientData, PatientSearchResultBundle, CreatePatientRequest, CreatePatientResponse, AddressHierarchyEntry, VisitLocationResponse, ActiveVisit, VisitData, VisitType, OrderedAddressHierarchyLevels } from './models';
4
+ export declare const getPatientById: (patientUUID: string) => Promise<Patient>;
5
+ /**
6
+ * Format patient's full name from FHIR patient data
7
+ * @param patient - The FHIR patient to format
8
+ * @returns A formatted name string
9
+ * @returns null if no name is provided
10
+ */
11
+ export declare const formatPatientName: (patient: Patient) => string | null;
12
+ /**
13
+ * Format patient's address from FHIR patient data
14
+ * @param address - The FHIR address to format
15
+ * @returns A formatted address string
16
+ * @returns null if no address is provided
17
+ */
18
+ export declare const formatPatientAddress: (address?: NonNullable<Patient["address"]>[0]) => string | null;
19
+ /**
20
+ * Format patient's contact information from FHIR telecom data
21
+ * @param telecom - The FHIR telecom to format
22
+ * @returns A formatted contact string
23
+ * @returns null if no telecom is provided
24
+ */
25
+ export declare const formatPatientContact: (telecom?: NonNullable<Patient["telecom"]>[0]) => string | null;
26
+ /**
27
+ * Format patient data for display
28
+ * @param patient - The FHIR patient to format
29
+ * @returns A formatted patient data object
30
+ */
31
+ export declare const formatPatientData: (patient: Patient) => FormattedPatientData;
32
+ /**
33
+ * Get formatted patient data by UUID
34
+ * @param patientUUID - The UUID of the patient to retrieve
35
+ * @returns A formatted patient data object
36
+ */
37
+ export declare const getFormattedPatientById: (patientUUID: string) => Promise<FormattedPatientData>;
38
+ /**
39
+ * Search patient by Name / Identifier
40
+ * @param searchTerm - The Name / Identifier of the patient
41
+ * @returns A formatted patient search bundle object
42
+ */
43
+ export declare const searchPatientByNameOrId: (searchTerm: string) => Promise<PatientSearchResultBundle>;
44
+ /**
45
+ * Search patient by Custom Attributes (phone, address, program fields)
46
+ * @param searchTerm - The search value entered by user
47
+ * @param searchFields - Array of field names to search in (from PatientSearchField.fields)
48
+ * @param patientSearchFields - Array of PatientSearchField objects to extract result fields from
49
+ * @param t - Translation function
50
+ * @returns A formatted patient search bundle object
51
+ */
52
+ export declare const searchPatientByCustomAttribute: (searchTerm: string, fieldType: string, fieldsToSearch: string[], allSearchFields: PatientSearchField[], t: (key: string) => string) => Promise<PatientSearchResultBundle>;
53
+ /**
54
+ * Get primary identifier type from Bahmni app settings
55
+ * @returns Promise<string | null> - The primary identifier type UUID or null if not found
56
+ */
57
+ export declare const getPrimaryIdentifierType: () => Promise<string | null>;
58
+ /**
59
+ * Get all identifier data in a single call (prefixes, sources, and primary type)
60
+ * @returns Promise with prefixes array, sources map, and primary identifier type UUID
61
+ */
62
+ export declare const getIdentifierData: () => Promise<{
63
+ prefixes: string[];
64
+ sourcesByPrefix: Map<string, string>;
65
+ primaryIdentifierTypeUuid: string | null;
66
+ }>;
67
+ /**
68
+ * Create a new patient
69
+ * @param patientData - The patient data to create
70
+ * @returns Promise<CreatePatientResponse> - The created patient response
71
+ */
72
+ export declare const createPatient: (patientData: CreatePatientRequest) => Promise<CreatePatientResponse>;
73
+ /**
74
+ * Update an existing patient
75
+ * @param patientUuid - The UUID of the patient to update
76
+ * @param patientData - The patient data to update
77
+ * @returns Promise<CreatePatientResponse> - The updated patient response
78
+ */
79
+ export declare const updatePatient: (patientUuid: string, patientData: CreatePatientRequest) => Promise<CreatePatientResponse>;
80
+ /**
81
+ * Get genders from global property
82
+ * @returns Promise<string[]> - Array of gender display names
83
+ */
84
+ export declare const getGenders: () => Promise<string[]>;
85
+ /**
86
+ * Get address hierarchy entries based on search string
87
+ * @param addressField - The address field type (e.g., 'countyDistrict', 'stateProvince', 'postalCode')
88
+ * @param searchString - The search term
89
+ * @param limit - Maximum number of results (default: 20)
90
+ * @param parentUuid - Optional parent UUID to filter results hierarchically (for top-down mode)
91
+ * @returns Promise<AddressHierarchyEntry[]> - Array of address hierarchy entries with parent information
92
+ */
93
+ export declare const getAddressHierarchyEntries: (addressField: string, searchString: string, limit?: number, parentUuid?: string) => Promise<AddressHierarchyEntry[]>;
94
+ /**
95
+ * Fetches visit types from Bahmni configuration
96
+ * @returns Promise<VisitType> - Visit types response
97
+ */
98
+ export declare const getVisitTypes: () => Promise<VisitType>;
99
+ /**
100
+ * Create a new visit for a patient
101
+ * @param visitData - The visit data including patient UUID, visit type, and location
102
+ * @returns Promise<unknown> - The created visit object
103
+ */
104
+ export declare const createVisit: (visitData: VisitData) => Promise<string>;
105
+ /**
106
+ * Get active visits for a patient
107
+ * @param patientUuid - The UUID of the patient
108
+ * @returns Promise<ActiveVisit> - The active visit data
109
+ */
110
+ export declare const getActiveVisitByPatient: (patientUuid: string) => Promise<ActiveVisit>;
111
+ /**
112
+ * Get visit location UUID for a given login location
113
+ * @param loginLocation - The login location UUID
114
+ * @returns Promise<VisitLocationResponse> - The visit location details including UUID
115
+ */
116
+ export declare const getVisitLocationUUID: (loginLocation: string) => Promise<VisitLocationResponse>;
117
+ /**
118
+ * Get ordered address hierarchy levels from OpenMRS
119
+ * Returns the configured order of address fields as defined in the system
120
+ * @returns Promise<OrderedAddressHierarchyLevels> - Array of address hierarchy levels with their display names and field names
121
+ */
122
+ export declare const getOrderedAddressHierarchyLevels: () => Promise<OrderedAddressHierarchyLevels>;
123
+ //# sourceMappingURL=patientService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patientService.d.ts","sourceRoot":"","sources":["../../src/patientService/patientService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAsBhF,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EAGzB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,SAAS,EACT,SAAS,EACT,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,cAAc,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,OAAO,CAUzE,CAAC;AAuBF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,MAAM,GAAG,IAc7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAC3C,MAAM,GAAG,IAkBX,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,WAAW,CA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B,GACrC,cAAc,MAAM,EACpB,cAAc,MAAM,EACpB,QAAO,MAAwC,EAC/C,aAAa,MAAM,KAClB,OAAO,CAAC,qBAAqB,EAAE,CAmBjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAa,OAAO,CAAC,SAAS,CAEvD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAU,WAAW,SAAS,KAAG,OAAO,CAAC,MAAM,CAEtE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,aAAa,MAAM,KAClB,OAAO,CAAC,WAAW,CAErB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,eAAe,MAAM,KACpB,OAAO,CAAC,qBAAqB,CAE/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,QACjC,OAAO,CAAC,6BAA6B,CAE9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getCurrentUserPrivileges, hasPrivilege } from './privilegeService';
2
+ export { type UserPrivilege } from './models';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/privilegeService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Interface for user privilege from whoami API
3
+ */
4
+ export interface UserPrivilege {
5
+ uuid: string;
6
+ name: string;
7
+ description?: string;
8
+ }
9
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/privilegeService/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,15 @@
1
+ import { UserPrivilege } from './models';
2
+ /**
3
+ * Fetches current user privileges from whoami API
4
+ * @returns Promise that resolves to array of user privileges or null if failed
5
+ * @throws Error if fetch fails
6
+ */
7
+ export declare const getCurrentUserPrivileges: () => Promise<UserPrivilege[] | null>;
8
+ /**
9
+ * Check if user has a specific privilege by name
10
+ * @param userPrivileges - Array of user privileges from whoami API
11
+ * @param privilegeName - Name of the privilege to check
12
+ * @returns true if user has the privilege, false otherwise
13
+ */
14
+ export declare const hasPrivilege: (userPrivileges: UserPrivilege[] | null, privilegeName: string) => boolean;
15
+ //# sourceMappingURL=privilegeService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privilegeService.d.ts","sourceRoot":"","sources":["../../src/privilegeService/privilegeService.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAa,OAAO,CACvD,aAAa,EAAE,GAAG,IAAI,CASvB,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,YAAY,GACvB,gBAAgB,aAAa,EAAE,GAAG,IAAI,EACtC,eAAe,MAAM,KACpB,OAMF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const PROVIDER_RESOURCE_URL: (userUUID: string) => string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/providerService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,GAAI,UAAU,MAAM,WACyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getCurrentProvider } from './providerService';
2
+ export { type Provider, type Person } from './models';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providerService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Interface representing a link to a resource
3
+ */
4
+ export interface Link {
5
+ rel: string;
6
+ uri: string;
7
+ resourceAlias: string;
8
+ }
9
+ /**
10
+ * Interface representing a person's name
11
+ */
12
+ export interface PersonName {
13
+ uuid: string;
14
+ display: string;
15
+ links: Link[];
16
+ }
17
+ /**
18
+ * Interface representing a person in OpenMRS
19
+ */
20
+ export interface Person {
21
+ uuid: string;
22
+ display: string;
23
+ gender: string;
24
+ age: number | null;
25
+ birthdate: string | null;
26
+ birthdateEstimated: boolean;
27
+ dead: boolean;
28
+ deathDate: string | null;
29
+ causeOfDeath: string | null;
30
+ preferredName: PersonName;
31
+ voided: boolean;
32
+ birthtime: string | null;
33
+ deathdateEstimated: boolean;
34
+ links: Link[];
35
+ resourceVersion: string;
36
+ }
37
+ /**
38
+ * Interface representing OpenMRS Provider resource from REST API
39
+ */
40
+ export interface Provider {
41
+ uuid: string;
42
+ display: string;
43
+ person: Person;
44
+ }
45
+ /**
46
+ * Interface representing Provider response from REST API
47
+ */
48
+ export interface ProviderResponse {
49
+ results: Provider[];
50
+ }
51
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/providerService/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,aAAa,EAAE,UAAU,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,QAAQ,EAAE,CAAC;CACrB"}
@@ -0,0 +1,7 @@
1
+ import { Provider } from './models';
2
+ /**
3
+ * Fetches the current user's username from cookies and provider uuid fromREST endpoint
4
+ * @returns Promise resolving to provider UUID or null if not found
5
+ */
6
+ export declare function getCurrentProvider(userUUID: string): Promise<Provider | null>;
7
+ //# sourceMappingURL=providerService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providerService.d.ts","sourceRoot":"","sources":["../../src/providerService/providerService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAoB,MAAM,UAAU,CAAC;AAEtD;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAU1B"}
@@ -0,0 +1,17 @@
1
+ import { Bundle, ServiceRequest } from 'fhir/r4';
2
+ import { RadiologyInvestigation } from '../models';
3
+ export declare const mockPatientUUID = "c81876c3-b464-486a-9ebf-20eea9431fb1";
4
+ export declare const mockFhirRadiologyTests: ServiceRequest[];
5
+ export declare const mockRadiologyTestBasic: ServiceRequest;
6
+ export declare const mockRadiologyTestWithMultipleReplaces: ServiceRequest;
7
+ export declare const mockRadiologyTestWithEmptyReplaces: ServiceRequest;
8
+ export declare const mockFhirRadiologyBundle: Bundle;
9
+ export declare const mockFormattedRadiologyInvestigations: RadiologyInvestigation[];
10
+ export declare const mockRadiologyInvestigationWithReplaces: RadiologyInvestigation;
11
+ export declare const mockRadiologyInvestigationReplaced: RadiologyInvestigation;
12
+ export declare const mockRadiologyInvestigationStandalone: RadiologyInvestigation;
13
+ export declare const mockRadiologyInvestigationsForFiltering: RadiologyInvestigation[];
14
+ export declare const mockRadiologyInvestigationWithMultipleReplaces: RadiologyInvestigation;
15
+ export declare const mockRadiologyChainReplacement: RadiologyInvestigation[];
16
+ export declare const createMockRadiologyInvestigation: (id: string, testName: string, priority: string, replaces?: string[]) => RadiologyInvestigation;
17
+ //# sourceMappingURL=mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/radiologyInvestigationService/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGnD,eAAO,MAAM,eAAe,yCAAyC,CAAC;AAGtE,eAAO,MAAM,sBAAsB,EAAE,cAAc,EAkMlD,CAAC;AAGF,eAAO,MAAM,sBAAsB,EAAE,cAgBpC,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,cA0BnD,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,cAsBhD,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,MAkBrC,CAAC;AAGF,eAAO,MAAM,oCAAoC,EAAE,sBAAsB,EAuBxE,CAAC;AAGF,eAAO,MAAM,sCAAsC,EAAE,sBAOpD,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,sBAMhD,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,sBAMlD,CAAC;AAGF,eAAO,MAAM,uCAAuC,EAAE,sBAAsB,EAKzE,CAAC;AAEJ,eAAO,MAAM,8CAA8C,EAAE,sBAQ1D,CAAC;AAGJ,eAAO,MAAM,6BAA6B,EAAE,sBAAsB,EA+BjE,CAAC;AAGF,eAAO,MAAM,gCAAgC,GAC3C,IAAI,MAAM,EACV,UAAU,MAAM,EAChB,UAAU,MAAM,EAChB,WAAW,MAAM,EAAE,KAClB,sBAOD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const PATIENT_RADIOLOGY_RESOURCE_URL: (patientUUID: string) => string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationService/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,8BAA8B,GAAI,aAAa,MAAM,WAE8D,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getPatientRadiologyInvestigations, getPatientRadiologyInvestigationBundle, } from './radiologyInvestigationService';
2
+ export { type RadiologyInvestigation } from './models';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,sCAAsC,GACvC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Interface for formatted radiology investigation data for display purposes
3
+ */
4
+ export interface RadiologyInvestigation {
5
+ id: string;
6
+ testName: string;
7
+ priority: string;
8
+ orderedBy: string;
9
+ orderedDate: string;
10
+ replaces?: string[];
11
+ }
12
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationService/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
@@ -0,0 +1,15 @@
1
+ import { Bundle } from 'fhir/r4';
2
+ import { RadiologyInvestigation } from './models';
3
+ /**
4
+ * Fetches radiology investigations for a given patient UUID from the FHIR R4 endpoint
5
+ * @param patientUUID - The UUID of the patient
6
+ * @returns Promise resolving to a Bundle containing radiology investigations
7
+ */
8
+ export declare function getPatientRadiologyInvestigationBundle(patientUUID: string): Promise<Bundle>;
9
+ /**
10
+ * Fetches and formats radiology investigations for a given patient UUID
11
+ * @param patientUUID - The UUID of the patient
12
+ * @returns Promise resolving to an array of radiology investigations
13
+ */
14
+ export declare function getPatientRadiologyInvestigations(patientUUID: string): Promise<RadiologyInvestigation[]>;
15
+ //# sourceMappingURL=radiologyInvestigationService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radiologyInvestigationService.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationService/radiologyInvestigationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAkB,MAAM,SAAS,CAAC;AAGjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD;;;;GAIG;AACH,wBAAsB,sCAAsC,CAC1D,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,CAGjB;AAkCD;;;;GAIG;AACH,wBAAsB,iCAAiC,CACrD,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAGnC"}
@@ -0,0 +1,3 @@
1
+ export declare const USER_RESOURCE_URL: (username: string) => string;
2
+ export declare const BAHMNI_USER_LOCATION_COOKIE = "bahmni.user.location";
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/userService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,WACuB,CAAC;AAC1E,eAAO,MAAM,2BAA2B,yBAAyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getCurrentUser, getUserLoginLocation } from './userService';
2
+ export { type User, type UserLocation } from './models';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/userService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Interface representing OpenMRS User resource from REST API
3
+ */
4
+ export interface User {
5
+ username: string;
6
+ uuid: string;
7
+ }
8
+ export interface UserLocation {
9
+ name: string;
10
+ uuid: string;
11
+ }
12
+ /**
13
+ * Interface representing User response from REST API
14
+ */
15
+ export interface UserResponse {
16
+ results: User[];
17
+ }
18
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/userService/models.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,IAAI,EAAE,CAAC;CACjB"}
@@ -0,0 +1,10 @@
1
+ import { User, UserLocation } from './models';
2
+ export declare function getCurrentUser(): Promise<User | null>;
3
+ /**
4
+ * Fetches user's log in location details from the cache.
5
+ * @returns The user's log in location if valid
6
+ * @returns null if user location cookie not found or invalid
7
+ * @throws Error when the user login location is null / invalid
8
+ */
9
+ export declare const getUserLoginLocation: () => UserLocation;
10
+ //# sourceMappingURL=userService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userService.d.ts","sourceRoot":"","sources":["../../src/userService/userService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,IAAI,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE5D,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAuB3D;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,QAAO,YAWvC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { capitalize, generateId, getCookieByName, isStringEmpty, getPriorityByOrder, groupByDate, filterReplacementEntries, refreshQueries, parseQueryParams, formatUrl, } from './utils';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,UAAU,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC"}
@@ -0,0 +1,84 @@
1
+ import { QueryClient, QueryKey } from '@tanstack/react-query';
2
+ /**
3
+ * Refreshes React Query cache with advanced options
4
+ * Performs cache operations: cancel, remove, invalidate, and optionally refetch
5
+ *
6
+ * @param queryClient - The React Query client instance
7
+ * @param queryKey - The query key to refresh
8
+ * @param opts - Optional configuration for cache refresh behavior
9
+ * @param opts.exact - Whether to match query key exactly (default: true)
10
+ * @param opts.refetchActiveNow - Whether to immediately refetch active queries (default: true)
11
+ * @returns Promise that resolves when all operations complete
12
+ */
13
+ export declare const refreshQueries: (queryClient: QueryClient, queryKey: QueryKey, opts?: {
14
+ exact?: boolean;
15
+ refetchActiveNow?: boolean;
16
+ }) => Promise<void>;
17
+ /**
18
+ * Generates a random ID
19
+ * @returns {string} A random ID
20
+ */
21
+ export declare const generateId: () => string;
22
+ /**
23
+ * Converts a string to capital case (e.g., 'foo bar' -> 'Foo Bar')
24
+ * @param input - The string to convert
25
+ * @param delimiters - Optional string of delimiter characters (default: " -", space and hyphen)
26
+ * @returns The string in capital case
27
+ */
28
+ export declare function capitalize(input: string, delimiters?: string): string;
29
+ /**
30
+ * Gets the cookie value by name
31
+ * @param name The name of the cookie to retrieve
32
+ * @returns The cookie value or empty string if not found
33
+ */
34
+ export declare function getCookieByName(name: string): string;
35
+ export declare const isStringEmpty: (input?: string) => boolean;
36
+ /**
37
+ * Returns priority index based on position in priority order array
38
+ * Case insensitive matching with whitespace trimming
39
+ * @param value - The value to find priority for
40
+ * @param priorityOrder - Array defining priority order (index 0 = highest priority)
41
+ * @returns Priority number (lower = higher priority), 999 for unknown values
42
+ */
43
+ export declare const getPriorityByOrder: (value: string, priorityOrder: string[]) => number;
44
+ /**
45
+ * Interface for grouped items by date
46
+ */
47
+ export interface GroupedByDate<T> {
48
+ date: string;
49
+ items: T[];
50
+ }
51
+ /**
52
+ * Groups items by date extracted from each item
53
+ * @param items - Array of items to group
54
+ * @param dateExtractor - Function to extract date string from item
55
+ * @returns Array of grouped items by date (no sorting applied)
56
+ */
57
+ export declare function groupByDate<T>(items: T[], dateExtractor: (item: T) => string): GroupedByDate<T>[];
58
+ /**
59
+ * Filters out items that have replacement relationships
60
+ * Removes both the replacing items (have replacement references) and the replaced items (referenced by others)
61
+ * This prevents duplicate entries from showing in the UI where one item replaces another
62
+ *
63
+ * @param items - Array of items to filter
64
+ * @param idExtractor - Function to extract unique identifier from each item
65
+ * @param replacesExtractor - Function to extract array of replaced item IDs from each item
66
+ * @returns Filtered array without replacement-related entries
67
+ */
68
+ export declare function filterReplacementEntries<T>(items: T[], idExtractor: (item: T) => string, replacesExtractor: (item: T) => string[] | undefined): T[];
69
+ /**
70
+ * Parses URL query parameters from a query string
71
+ * @param locationSearchString - Optional query string to parse (defaults to window.location.search)
72
+ * @returns Object containing parsed query parameters as key-value pairs
73
+ */
74
+ export declare function parseQueryParams(locationSearchString?: string): Record<string, string>;
75
+ /**
76
+ * Formats a URL by replacing template placeholders with actual values
77
+ * Template placeholders are in the format {{key}}
78
+ * @param url - The URL template string containing placeholders
79
+ * @param options - Object containing key-value pairs for placeholder replacement
80
+ * @param useQueryParams - Whether to fallback to query parameters if a value is not found in options
81
+ * @returns The formatted URL with all placeholders replaced
82
+ */
83
+ export declare function formatUrl(url: string, options: Record<string, string>, useQueryParams?: boolean): string;
84
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GACzB,aAAa,WAAW,EACxB,UAAU,QAAQ,EAClB,OAAO;IACL,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,KACA,OAAO,CAAC,IAAI,CAUd,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,cAAmD,CAAC;AAE3E;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,GAAE,MAAa,GAAG,MAAM,CAM3E;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYpD;AAED,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,KAAG,OAE9C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,MAAM,EACb,eAAe,MAAM,EAAE,KACtB,MAUF,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,EAAE,CAAC;CACZ;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,KAAK,EAAE,CAAC,EAAE,EACV,aAAa,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GACjC,aAAa,CAAC,CAAC,CAAC,EAAE,CAqBpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EACxC,KAAK,EAAE,CAAC,EAAE,EACV,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,EAChC,iBAAiB,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,SAAS,GACnD,CAAC,EAAE,CA4BL;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,oBAAoB,CAAC,EAAE,MAAM,GAC5B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAexB;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,cAAc,CAAC,EAAE,OAAO,GACvB,MAAM,CAqBR"}
@@ -0,0 +1,2 @@
1
+ export declare const VITAL_FLOW_SHEET_URL: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/vitalFlowSheetService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,QACoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getVitalFlowSheetData } from './vitalFlowSheetService';
2
+ export type { VitalFlowSheetData, VitalFlowSheetConceptDetail } from './model';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vitalFlowSheetService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ export interface VitalFlowSheetData {
2
+ tabularData: Record<string, Record<string, VitalFlowSheetObservation>>;
3
+ conceptDetails: VitalFlowSheetConceptDetail[];
4
+ }
5
+ export interface VitalFlowSheetConceptDetail {
6
+ name: string;
7
+ fullName: string;
8
+ units: string;
9
+ hiNormal: number;
10
+ lowNormal: number;
11
+ attributes: Record<string, unknown>;
12
+ }
13
+ export interface VitalFlowSheetObservation {
14
+ value: string;
15
+ abnormal: boolean;
16
+ }
17
+ export interface VitalFlowSheetConfig {
18
+ latestCount?: number;
19
+ numberOfVisits?: number;
20
+ obsConcepts: string[];
21
+ }
22
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/vitalFlowSheetService/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC,CAAC;IACvE,cAAc,EAAE,2BAA2B,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}
@@ -0,0 +1,11 @@
1
+ import { VitalFlowSheetData } from './model';
2
+ /**
3
+ * Fetches vital flow sheet data for a patient using direct parameters
4
+ * @param patientUuid - The patient UUID
5
+ * @param latestCount - Number of latest observations to fetch
6
+ * @param obsConcepts - Array of observation concepts to fetch
7
+ * @param groupBy - How to group the data (default: 'obstime')
8
+ * @returns Promise<VitalFlowSheetData>
9
+ */
10
+ export declare const getVitalFlowSheetData: (patientUuid: string, latestCount: number, obsConcepts: string[], groupBy: string) => Promise<VitalFlowSheetData>;
11
+ //# sourceMappingURL=vitalFlowSheetService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitalFlowSheetService.d.ts","sourceRoot":"","sources":["../../src/vitalFlowSheetService/vitalFlowSheetService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,MAAM,EACnB,aAAa,MAAM,EACnB,aAAa,MAAM,EAAE,EACrB,SAAS,MAAM,KACd,OAAO,CAAC,kBAAkB,CAc5B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@bahmni/services",
3
+ "version": "0.0.1-dev.49",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "author": "Thoughtworks Inc.",
17
+ "license": "MPLv2",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/Bahmni/bahmni-apps-frontend.git",
21
+ "directory": "bahmni-apps-frontend/packages/bahmni-services"
22
+ },
23
+ "scripts": {
24
+ "build": "vite build",
25
+ "prepublishOnly": "yarn run build"
26
+ },
27
+ "dependencies": {
28
+ "axios": "^1.12.0",
29
+ "html-entities": "^2.6.0",
30
+ "i18next": "^24.2.3",
31
+ "i18next-browser-languagedetector": "^8.0.4",
32
+ "react-i18next": "^15.4.1"
33
+ },
34
+ "peerDependencies": {
35
+ "react": ">=18.0.0",
36
+ "react-dom": ">=18.0.0"
37
+ },
38
+ "description": "A set of service utilities and API integration helpers that act as an abstraction layer for communicating with OpenMRS backend APIs.",
39
+ "files": [
40
+ "dist",
41
+ "README.md",
42
+ "LICENSE"
43
+ ]
44
+ }