@bahmni/services 0.0.1-dev.100

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 (266) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +21 -0
  3. package/dist/AppointmentService/appointmmetService.d.ts +5 -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 +70 -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 +48 -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 +18 -0
  54. package/dist/conceptService/conceptService.d.ts.map +1 -0
  55. package/dist/conceptService/constants.d.ts +5 -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 +83 -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 +15 -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 +109 -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 +57 -0
  91. package/dist/configService/schemas/medicationConfig.schema.json.d.ts +40 -0
  92. package/dist/configService/schemas/registrationConfig.schema.json.d.ts +406 -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 +24 -0
  96. package/dist/constants/fhir.d.ts.map +1 -0
  97. package/dist/date/constants.d.ts +7 -0
  98. package/dist/date/constants.d.ts.map +1 -0
  99. package/dist/date/date.d.ts +75 -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/encounterFilterUtils.d.ts +17 -0
  118. package/dist/encounterService/encounterFilterUtils.d.ts.map +1 -0
  119. package/dist/encounterService/encounterService.d.ts +20 -0
  120. package/dist/encounterService/encounterService.d.ts.map +1 -0
  121. package/dist/encounterService/index.d.ts +3 -0
  122. package/dist/encounterService/index.d.ts.map +1 -0
  123. package/dist/encounterSessionService/constants.d.ts +4 -0
  124. package/dist/encounterSessionService/constants.d.ts.map +1 -0
  125. package/dist/encounterSessionService/encounterSessionService.d.ts +43 -0
  126. package/dist/encounterSessionService/encounterSessionService.d.ts.map +1 -0
  127. package/dist/encounterSessionService/index.d.ts +2 -0
  128. package/dist/encounterSessionService/index.d.ts.map +1 -0
  129. package/dist/episodeOfCareService/constants.d.ts +2 -0
  130. package/dist/episodeOfCareService/constants.d.ts.map +1 -0
  131. package/dist/episodeOfCareService/episodeOfCareService.d.ts +8 -0
  132. package/dist/episodeOfCareService/episodeOfCareService.d.ts.map +1 -0
  133. package/dist/episodeOfCareService/index.d.ts +3 -0
  134. package/dist/episodeOfCareService/index.d.ts.map +1 -0
  135. package/dist/episodeOfCareService/models.d.ts +5 -0
  136. package/dist/episodeOfCareService/models.d.ts.map +1 -0
  137. package/dist/errorHandling/index.d.ts +2 -0
  138. package/dist/errorHandling/index.d.ts.map +1 -0
  139. package/dist/errorHandling/utils.d.ts +10 -0
  140. package/dist/errorHandling/utils.d.ts.map +1 -0
  141. package/dist/events/consultationEvents.d.ts +51 -0
  142. package/dist/events/consultationEvents.d.ts.map +1 -0
  143. package/dist/events/index.d.ts +2 -0
  144. package/dist/events/index.d.ts.map +1 -0
  145. package/dist/i18n/constants.d.ts +5 -0
  146. package/dist/i18n/constants.d.ts.map +1 -0
  147. package/dist/i18n/i18n.d.ts +10 -0
  148. package/dist/i18n/i18n.d.ts.map +1 -0
  149. package/dist/i18n/index.d.ts +4 -0
  150. package/dist/i18n/index.d.ts.map +1 -0
  151. package/dist/i18n/translationService.d.ts +40 -0
  152. package/dist/i18n/translationService.d.ts.map +1 -0
  153. package/dist/index.d.ts +36 -0
  154. package/dist/index.d.ts.map +1 -0
  155. package/dist/index.js +12257 -0
  156. package/dist/investigationService/constants.d.ts +6 -0
  157. package/dist/investigationService/constants.d.ts.map +1 -0
  158. package/dist/investigationService/index.d.ts +4 -0
  159. package/dist/investigationService/index.d.ts.map +1 -0
  160. package/dist/investigationService/investigationService.d.ts +5 -0
  161. package/dist/investigationService/investigationService.d.ts.map +1 -0
  162. package/dist/investigationService/model.d.ts +20 -0
  163. package/dist/investigationService/model.d.ts.map +1 -0
  164. package/dist/labInvestigationService/constants.d.ts +2 -0
  165. package/dist/labInvestigationService/constants.d.ts.map +1 -0
  166. package/dist/labInvestigationService/index.d.ts +3 -0
  167. package/dist/labInvestigationService/index.d.ts.map +1 -0
  168. package/dist/labInvestigationService/labInvestigationService.d.ts +54 -0
  169. package/dist/labInvestigationService/labInvestigationService.d.ts.map +1 -0
  170. package/dist/labInvestigationService/models.d.ts +38 -0
  171. package/dist/labInvestigationService/models.d.ts.map +1 -0
  172. package/dist/medicationRequestService/constants.d.ts +2 -0
  173. package/dist/medicationRequestService/constants.d.ts.map +1 -0
  174. package/dist/medicationRequestService/index.d.ts +3 -0
  175. package/dist/medicationRequestService/index.d.ts.map +1 -0
  176. package/dist/medicationRequestService/medicationRequestService.d.ts +15 -0
  177. package/dist/medicationRequestService/medicationRequestService.d.ts.map +1 -0
  178. package/dist/medicationRequestService/models.d.ts +58 -0
  179. package/dist/medicationRequestService/models.d.ts.map +1 -0
  180. package/dist/notification/index.d.ts +3 -0
  181. package/dist/notification/index.d.ts.map +1 -0
  182. package/dist/notification/models.d.ts +9 -0
  183. package/dist/notification/models.d.ts.map +1 -0
  184. package/dist/notification/notificationService.d.ts +22 -0
  185. package/dist/notification/notificationService.d.ts.map +1 -0
  186. package/dist/observationFormsService/constants.d.ts +6 -0
  187. package/dist/observationFormsService/constants.d.ts.map +1 -0
  188. package/dist/observationFormsService/index.d.ts +4 -0
  189. package/dist/observationFormsService/index.d.ts.map +1 -0
  190. package/dist/observationFormsService/models.d.ts +71 -0
  191. package/dist/observationFormsService/models.d.ts.map +1 -0
  192. package/dist/observationFormsService/observationFormsService.d.ts +12 -0
  193. package/dist/observationFormsService/observationFormsService.d.ts.map +1 -0
  194. package/dist/observationFormsService/observationFormsTransformer.d.ts +19 -0
  195. package/dist/observationFormsService/observationFormsTransformer.d.ts.map +1 -0
  196. package/dist/orderRequestService/constants.d.ts +2 -0
  197. package/dist/orderRequestService/constants.d.ts.map +1 -0
  198. package/dist/orderRequestService/index.d.ts +2 -0
  199. package/dist/orderRequestService/index.d.ts.map +1 -0
  200. package/dist/orderRequestService/orderRequestService.d.ts +12 -0
  201. package/dist/orderRequestService/orderRequestService.d.ts.map +1 -0
  202. package/dist/patientService/attributeFormatMapper.d.ts +55 -0
  203. package/dist/patientService/attributeFormatMapper.d.ts.map +1 -0
  204. package/dist/patientService/constants.d.ts +26 -0
  205. package/dist/patientService/constants.d.ts.map +1 -0
  206. package/dist/patientService/index.d.ts +5 -0
  207. package/dist/patientService/index.d.ts.map +1 -0
  208. package/dist/patientService/models.d.ts +372 -0
  209. package/dist/patientService/models.d.ts.map +1 -0
  210. package/dist/patientService/patientService.d.ts +128 -0
  211. package/dist/patientService/patientService.d.ts.map +1 -0
  212. package/dist/privilegeService/index.d.ts +3 -0
  213. package/dist/privilegeService/index.d.ts.map +1 -0
  214. package/dist/privilegeService/models.d.ts +9 -0
  215. package/dist/privilegeService/models.d.ts.map +1 -0
  216. package/dist/privilegeService/privilegeService.d.ts +15 -0
  217. package/dist/privilegeService/privilegeService.d.ts.map +1 -0
  218. package/dist/programService/index.d.ts +3 -0
  219. package/dist/programService/index.d.ts.map +1 -0
  220. package/dist/programService/model.d.ts +171 -0
  221. package/dist/programService/model.d.ts.map +1 -0
  222. package/dist/programService/programService.d.ts +8 -0
  223. package/dist/programService/programService.d.ts.map +1 -0
  224. package/dist/providerService/constants.d.ts +2 -0
  225. package/dist/providerService/constants.d.ts.map +1 -0
  226. package/dist/providerService/index.d.ts +3 -0
  227. package/dist/providerService/index.d.ts.map +1 -0
  228. package/dist/providerService/models.d.ts +51 -0
  229. package/dist/providerService/models.d.ts.map +1 -0
  230. package/dist/providerService/providerService.d.ts +7 -0
  231. package/dist/providerService/providerService.d.ts.map +1 -0
  232. package/dist/radiologyInvestigationService/__mocks__/mocks.d.ts +10 -0
  233. package/dist/radiologyInvestigationService/__mocks__/mocks.d.ts.map +1 -0
  234. package/dist/radiologyInvestigationService/index.d.ts +2 -0
  235. package/dist/radiologyInvestigationService/index.d.ts.map +1 -0
  236. package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts +29 -0
  237. package/dist/radiologyInvestigationService/radiologyInvestigationService.d.ts.map +1 -0
  238. package/dist/userService/constants.d.ts +3 -0
  239. package/dist/userService/constants.d.ts.map +1 -0
  240. package/dist/userService/index.d.ts +3 -0
  241. package/dist/userService/index.d.ts.map +1 -0
  242. package/dist/userService/models.d.ts +18 -0
  243. package/dist/userService/models.d.ts.map +1 -0
  244. package/dist/userService/userService.d.ts +10 -0
  245. package/dist/userService/userService.d.ts.map +1 -0
  246. package/dist/utils/index.d.ts +2 -0
  247. package/dist/utils/index.d.ts.map +1 -0
  248. package/dist/utils/utils.d.ts +90 -0
  249. package/dist/utils/utils.d.ts.map +1 -0
  250. package/dist/visitService/constants.d.ts +5 -0
  251. package/dist/visitService/constants.d.ts.map +1 -0
  252. package/dist/visitService/index.d.ts +3 -0
  253. package/dist/visitService/index.d.ts.map +1 -0
  254. package/dist/visitService/models.d.ts +19 -0
  255. package/dist/visitService/models.d.ts.map +1 -0
  256. package/dist/visitService/visitService.d.ts +29 -0
  257. package/dist/visitService/visitService.d.ts.map +1 -0
  258. package/dist/vitalFlowSheetService/constants.d.ts +2 -0
  259. package/dist/vitalFlowSheetService/constants.d.ts.map +1 -0
  260. package/dist/vitalFlowSheetService/index.d.ts +3 -0
  261. package/dist/vitalFlowSheetService/index.d.ts.map +1 -0
  262. package/dist/vitalFlowSheetService/model.d.ts +22 -0
  263. package/dist/vitalFlowSheetService/model.d.ts.map +1 -0
  264. package/dist/vitalFlowSheetService/vitalFlowSheetService.d.ts +11 -0
  265. package/dist/vitalFlowSheetService/vitalFlowSheetService.d.ts.map +1 -0
  266. package/package.json +44 -0
@@ -0,0 +1,182 @@
1
+ export declare const mockVisitBundle: {
2
+ resourceType: string;
3
+ id: string;
4
+ meta: {
5
+ lastUpdated: string;
6
+ };
7
+ type: string;
8
+ total: number;
9
+ link: {
10
+ relation: string;
11
+ url: string;
12
+ }[];
13
+ entry: ({
14
+ fullUrl: string;
15
+ resource: {
16
+ resourceType: string;
17
+ id: string;
18
+ meta: {
19
+ versionId: string;
20
+ lastUpdated: string;
21
+ tag: {
22
+ system: string;
23
+ code: string;
24
+ display: string;
25
+ }[];
26
+ };
27
+ status: string;
28
+ class: {
29
+ system: string;
30
+ code: string;
31
+ };
32
+ type: {
33
+ coding: {
34
+ system: string;
35
+ code: string;
36
+ display: string;
37
+ }[];
38
+ }[];
39
+ subject: {
40
+ reference: string;
41
+ type: string;
42
+ display: string;
43
+ };
44
+ period: {
45
+ start: string;
46
+ end: string;
47
+ };
48
+ location: {
49
+ location: {
50
+ reference: string;
51
+ type: string;
52
+ display: string;
53
+ };
54
+ }[];
55
+ };
56
+ } | {
57
+ fullUrl: string;
58
+ resource: {
59
+ resourceType: string;
60
+ id: string;
61
+ meta: {
62
+ versionId: string;
63
+ lastUpdated: string;
64
+ tag: {
65
+ system: string;
66
+ code: string;
67
+ display: string;
68
+ }[];
69
+ };
70
+ status: string;
71
+ class: {
72
+ system: string;
73
+ code: string;
74
+ };
75
+ type: {
76
+ coding: {
77
+ system: string;
78
+ code: string;
79
+ display: string;
80
+ }[];
81
+ }[];
82
+ subject: {
83
+ reference: string;
84
+ type: string;
85
+ display: string;
86
+ };
87
+ period: {
88
+ start: string;
89
+ end?: undefined;
90
+ };
91
+ location: {
92
+ location: {
93
+ reference: string;
94
+ type: string;
95
+ display: string;
96
+ };
97
+ }[];
98
+ };
99
+ })[];
100
+ };
101
+ export declare const mockActiveVisit: {
102
+ resourceType: string;
103
+ id: string;
104
+ meta: {
105
+ versionId: string;
106
+ lastUpdated: string;
107
+ tag: {
108
+ system: string;
109
+ code: string;
110
+ display: string;
111
+ }[];
112
+ };
113
+ status: string;
114
+ class: {
115
+ system: string;
116
+ code: string;
117
+ };
118
+ type: {
119
+ coding: {
120
+ system: string;
121
+ code: string;
122
+ display: string;
123
+ }[];
124
+ }[];
125
+ subject: {
126
+ reference: string;
127
+ type: string;
128
+ display: string;
129
+ };
130
+ period: {
131
+ start: string;
132
+ end: string;
133
+ };
134
+ location: {
135
+ location: {
136
+ reference: string;
137
+ type: string;
138
+ display: string;
139
+ };
140
+ }[];
141
+ } | {
142
+ resourceType: string;
143
+ id: string;
144
+ meta: {
145
+ versionId: string;
146
+ lastUpdated: string;
147
+ tag: {
148
+ system: string;
149
+ code: string;
150
+ display: string;
151
+ }[];
152
+ };
153
+ status: string;
154
+ class: {
155
+ system: string;
156
+ code: string;
157
+ };
158
+ type: {
159
+ coding: {
160
+ system: string;
161
+ code: string;
162
+ display: string;
163
+ }[];
164
+ }[];
165
+ subject: {
166
+ reference: string;
167
+ type: string;
168
+ display: string;
169
+ };
170
+ period: {
171
+ start: string;
172
+ end?: undefined;
173
+ };
174
+ location: {
175
+ location: {
176
+ reference: string;
177
+ type: string;
178
+ display: string;
179
+ };
180
+ }[];
181
+ };
182
+ //# sourceMappingURL=mocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/encounterService/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmO3B,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const PATIENT_VISITS_URL: (patientUUID: string) => string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/encounterService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,WACoB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Utility functions for encounter filtering logic
3
+ */
4
+ /**
5
+ * Determines if the encounter filter should show empty state based on episode of care and encounter UUIDs
6
+ *
7
+ * @param episodeOfCareUuids - Array of episode of care UUIDs
8
+ * @param encounterUuids - Array of encounter UUIDs
9
+ * @returns boolean - true if should show empty state, false otherwise
10
+ *
11
+ * Logic:
12
+ * - If episodeOfCareUuids is empty array, return false (don't show empty state)
13
+ * - Otherwise, if encounterUuids is empty array, return true (show empty state)
14
+ * - If both have values or are undefined/null, return false (don't show empty state)
15
+ */
16
+ export declare const shouldEnableEncounterFilter: (episodeOfCareUuids?: string[], encounterUuids?: string[]) => boolean;
17
+ //# sourceMappingURL=encounterFilterUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encounterFilterUtils.d.ts","sourceRoot":"","sources":["../../src/encounterService/encounterFilterUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,GACtC,qBAAqB,MAAM,EAAE,EAC7B,iBAAiB,MAAM,EAAE,KACxB,OAIF,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Encounter, Bundle } from 'fhir/r4';
2
+ /**
3
+ * Fetches visits for a given patient UUID from the FHIR R4 endpoint
4
+ * @param patientUUID - The UUID of the patient
5
+ * @returns Promise resolving to a FhirEncounterBundle
6
+ */
7
+ export declare function getPatientVisits(patientUUID: string): Promise<Bundle<Encounter>>;
8
+ /**
9
+ * Fetches and transforms visits for a given patient UUID
10
+ * @param patientUUID - The UUID of the patient
11
+ * @returns Promise resolving to an array of FhirEncounter
12
+ */
13
+ export declare function getVisits(patientUUID: string): Promise<Encounter[]>;
14
+ /**
15
+ * Gets the active visit for a patient (encounter with no end date)
16
+ * @param patientUUID - The UUID of the patient
17
+ * @returns Promise resolving to the current FhirEncounter or null if not found
18
+ */
19
+ export declare function getActiveVisit(patientUUID: string): Promise<Encounter | null>;
20
+ //# sourceMappingURL=encounterService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encounterService.d.ts","sourceRoot":"","sources":["../../src/encounterService/encounterService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAI5C;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAE5B;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAOzE;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAG3B"}
@@ -0,0 +1,3 @@
1
+ export { getActiveVisit, getPatientVisits, getVisits, } from './encounterService';
2
+ export { shouldEnableEncounterFilter } from './encounterFilterUtils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/encounterService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,SAAS,GACV,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const ENCOUNTER_SEARCH_URL: string;
2
+ export declare const ENCOUNTER_SESSION_DURATION_GP_URL: string;
3
+ export declare const CONSULTATION_ENCOUNTER_TYPE_UUID = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/encounterSessionService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,QAAiC,CAAC;AAEnE,eAAO,MAAM,iCAAiC,QACuB,CAAC;AACtE,eAAO,MAAM,gCAAgC,yCACL,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { Encounter } from 'fhir/r4';
2
+ interface EncounterSearchParams {
3
+ patient: string;
4
+ _tag?: string;
5
+ _lastUpdated?: string;
6
+ participant?: string;
7
+ type?: string;
8
+ }
9
+ /**
10
+ * Searches for encounters using FHIR API with given parameters
11
+ * @param params - Search parameters for encounter query
12
+ * @returns Promise resolving to array of FhirEncounter
13
+ */
14
+ export declare function searchEncounters(params: EncounterSearchParams): Promise<Encounter[]>;
15
+ /**
16
+ * Gets the encounter session duration from global properties
17
+ * @returns Promise resolving to session duration in minutes (default: 30)
18
+ */
19
+ export declare function getEncounterSessionDuration(): Promise<number>;
20
+ /**
21
+ * Filters encounters to find those belonging to the active visit
22
+ * @param encounters - Array of encounters to filter
23
+ * @param patientUUID - Patient UUID
24
+ * @returns Promise resolving to encounter within active visit or null
25
+ */
26
+ export declare function filterByActiveVisit(encounters: Encounter[], patientUUID: string): Promise<Encounter | null>;
27
+ /**
28
+ * Finds an active encounter within the session duration for a patient and practitioner
29
+ * @param patientUUID - Patient UUID
30
+ * @param practitionerUUID - Practitioner UUID (optional, for practitioner-specific sessions)
31
+ * @param sessionDurationMinutes - Session duration in minutes (optional, will fetch from config if not provided)
32
+ * @returns Promise resolving to active encounter or null
33
+ */
34
+ export declare function findActiveEncounterInSession(patientUUID: string, practitionerUUID?: string, sessionDurationMinutes?: number): Promise<Encounter | null>;
35
+ /**
36
+ * Checks if there is an active encounter session for a patient and practitioner
37
+ * @param patientUUID - Patient UUID
38
+ * @param practitionerUUID - Practitioner UUID (optional, for practitioner-specific sessions)
39
+ * @returns Promise resolving to boolean indicating if session is active
40
+ */
41
+ export declare function hasActiveEncounterSession(patientUUID: string, practitionerUUID?: string): Promise<boolean>;
42
+ export {};
43
+ //# sourceMappingURL=encounterSessionService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encounterSessionService.d.ts","sourceRoot":"","sources":["../../src/encounterSessionService/encounterSessionService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,SAAS,CAAC;AAS5C,UAAU,qBAAqB;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,SAAS,EAAE,CAAC,CAkBtB;AAED;;;GAGG;AACH,wBAAsB,2BAA2B,IAAI,OAAO,CAAC,MAAM,CAAC,CAUnE;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,SAAS,EAAE,EACvB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAkB3B;AAED;;;;;;GAMG;AACH,wBAAsB,4BAA4B,CAChD,WAAW,EAAE,MAAM,EACnB,gBAAgB,CAAC,EAAE,MAAM,EACzB,sBAAsB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAiC3B;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC7C,WAAW,EAAE,MAAM,EACnB,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC,CAMlB"}
@@ -0,0 +1,2 @@
1
+ export { findActiveEncounterInSession } from './encounterSessionService';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/encounterSessionService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const EOC_ENCOUNTERS_URL: (episodeUuids: string) => string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/episodeOfCareService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,GAAI,cAAc,MAAM,WAEqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { EpisodeOfCareDataType } from './models';
2
+ /**
3
+ * Fetches encounters for Episode-of-Care UUIDs and extracts visit and encounter UUIDs
4
+ * @param eocUuids - Array of EOC UUIDs or single EOC UUID
5
+ * @returns Promise resolving to object with visit UUIDs and encounter UUIDs
6
+ */
7
+ export declare function getEncountersAndVisitsForEOC(eocUuids: string[]): Promise<EpisodeOfCareDataType>;
8
+ //# sourceMappingURL=episodeOfCareService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"episodeOfCareService.d.ts","sourceRoot":"","sources":["../../src/episodeOfCareService/episodeOfCareService.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,MAAM,EAAE,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAgChC"}
@@ -0,0 +1,3 @@
1
+ export { getEncountersAndVisitsForEOC } from './episodeOfCareService';
2
+ export type { EpisodeOfCareDataType } from './models';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/episodeOfCareService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface EpisodeOfCareDataType {
2
+ visitUuids: string[];
3
+ encounterUuids: string[];
4
+ }
5
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/episodeOfCareService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export { getFormattedError } from './utils';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errorHandling/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Formats error messages from different sources
3
+ * @param error - The error to format
4
+ * @returns {title: string, message: string} - The formatted error
5
+ */
6
+ export declare const getFormattedError: (error: unknown) => {
7
+ title: string;
8
+ message: string;
9
+ };
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/errorHandling/utils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,OAAO,OAAO,KACb;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAyElC,CAAC"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Consultation Events using Window CustomEvents
3
+ * Alternative approach to EventEmitter class for comparison
4
+ *
5
+ * MEMORY LEAK PREVENTION:
6
+ * - useConsultationSaved hook ensures proper cleanup via useEffect return
7
+ * - Event listeners are removed on component unmount
8
+ * - Callback is memoized to prevent unnecessary re-subscriptions
9
+ */
10
+ export declare const CONSULTATION_SAVED_EVENT = "consultation:saved";
11
+ export interface ConsultationSavedEventPayload {
12
+ patientUUID: string;
13
+ updatedResources: {
14
+ conditions: boolean;
15
+ allergies: boolean;
16
+ };
17
+ }
18
+ /**
19
+ * Dispatch consultation saved event using window.dispatchEvent
20
+ *
21
+ * ASYNCHRONOUS BEHAVIOR:
22
+ * Uses setTimeout(fn, 0) to defer event dispatch to the next event loop tick.
23
+ * This prevents blocking the caller and allows UI updates to happen immediately.
24
+ *
25
+ * Event listeners will be executed asynchronously after the current call stack clears.
26
+ *
27
+ * @param payload - The consultation saved event data
28
+ */
29
+ export declare const dispatchConsultationSaved: (payload: ConsultationSavedEventPayload) => void;
30
+ /**
31
+ * React hook for subscribing to consultation saved events
32
+ *
33
+ * MEMORY LEAK PREVENTION:
34
+ * - Automatically removes event listener on component unmount
35
+ * - Uses useRef to maintain stable callback reference
36
+ * - Cleanup function ensures listener is always removed
37
+ *
38
+ * USAGE:
39
+ * ```typescript
40
+ * useConsultationSaved((payload) => {
41
+ * if (payload.patientUUID === currentPatient && payload.updatedResources.conditions) {
42
+ * refetch();
43
+ * }
44
+ * }, [currentPatient, refetch]);
45
+ * ```
46
+ *
47
+ * @param callback - Function to call when event is published
48
+ * @param deps - Dependencies array (should include values used in callback)
49
+ */
50
+ export declare const useConsultationSaved: (callback: (payload: ConsultationSavedEventPayload) => void, deps?: React.DependencyList) => void;
51
+ //# sourceMappingURL=consultationEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consultationEvents.d.ts","sourceRoot":"","sources":["../../src/events/consultationEvents.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAGH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAG7D,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC;CACH;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,6BAA6B,KACrC,IAQF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,EAC1D,OAAM,KAAK,CAAC,cAAmB,SA2BhC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { dispatchConsultationSaved, useConsultationSaved, CONSULTATION_SAVED_EVENT, type ConsultationSavedEventPayload, } from './consultationEvents';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,KAAK,6BAA6B,GACnC,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const DEFAULT_LOCALE = "en";
2
+ export declare const LOCALE_STORAGE_KEY = "NG_TRANSLATE_LANG_KEY";
3
+ export declare const BUNDLED_TRANSLATIONS_URL_TEMPLATE: (namespace: string, lang: string) => string;
4
+ export declare const CONFIG_TRANSLATIONS_URL_TEMPLATE: (namespace: string, lang: string) => string;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/i18n/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,OAAO,CAAC;AACnC,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,eAAO,MAAM,iCAAiC,GAC5C,WAAW,MAAM,EACjB,MAAM,MAAM,WAC6C,CAAC;AAE5D,eAAO,MAAM,gCAAgC,GAC3C,WAAW,MAAM,EACjB,MAAM,MAAM,WACqD,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Initialize i18n with pre-loaded translations for a specific namespace
3
+ * This function should be called before rendering the app
4
+ *
5
+ * @param namespace - The namespace for translations (e.g., 'clinical', 'registration')
6
+ * @returns Initialized i18n instance
7
+ */
8
+ export declare const initI18n: (namespace: string) => Promise<import('i18next').i18n>;
9
+ export default initI18n;
10
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAU,WAAW,MAAM,oCAyB/C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as initAppI18n } from './i18n';
2
+ export { useTranslation } from 'react-i18next';
3
+ export { getUserPreferredLocale, normalizeTranslationKey, extractObservationFormTranslations, type ObservationFormTranslations, } from './translationService';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,kCAAkC,EAClC,KAAK,2BAA2B,GACjC,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Fetches user's preferred locale from the local storage.
3
+ * @returns The user's preferred locale code if valid, or DEFAULT_LOCALE if not found or invalid
4
+ */
5
+ export declare const getUserPreferredLocale: () => string;
6
+ /**
7
+ * Fetches translations from a URL using the API service.
8
+ * Returns an empty object if the request fails for any reason.
9
+ *
10
+ * @param url - URL to fetch translations from
11
+ * @returns A promise that resolves to a translations object or empty object on failure
12
+ */
13
+ export declare const getTranslationFile: (url: string) => Promise<Record<string, string>>;
14
+ /**
15
+ * Fetches translations for a specified language and English fallback if needed.
16
+ * This function follows the i18next resource structure where translations are
17
+ * organized by language code and namespace.
18
+ *
19
+ * @param lang - Language code to fetch translations for (e.g., 'en', 'es')
20
+ * @param namespace - Namespace for the translations (e.g., 'clinical', 'registration')
21
+ * @returns Promise resolving to an object with translations keyed by language code
22
+ * @throws Will not throw errors, but will return empty translations on failure
23
+ */
24
+ export declare const getTranslations: (lang: string, namespace: string) => Promise<Record<string, Record<string, Record<string, string>>>>;
25
+ export declare const normalizeTranslationKey: (module: string, fieldName: string) => string;
26
+ /**
27
+ * Observation form translations structure
28
+ */
29
+ export interface ObservationFormTranslations {
30
+ labels: Record<string, string>;
31
+ concepts: Record<string, string>;
32
+ }
33
+ /**
34
+ * Extracts translations for observation forms from API response for a specific locale
35
+ * @param data - API response array containing translations
36
+ * @param locale - The locale to extract translations for (e.g., 'en', 'es')
37
+ * @returns ObservationFormTranslations object with labels and concepts
38
+ */
39
+ export declare const extractObservationFormTranslations: (data: unknown, locale: string) => ObservationFormTranslations;
40
+ //# sourceMappingURL=translationService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translationService.d.ts","sourceRoot":"","sources":["../../src/i18n/translationService.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,MAIzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,KACV,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAchC,CAAC;AAiCF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAmBhE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,EACd,WAAW,MAAM,KAChB,MAOF,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,GAC7C,MAAM,OAAO,EACb,QAAQ,MAAM,KACb,2BA0BF,CAAC"}
@@ -0,0 +1,36 @@
1
+ export { get, post, put, del } from './api';
2
+ export { initAppI18n, useTranslation, normalizeTranslationKey, getUserPreferredLocale, } from './i18n';
3
+ export { useCamera } from './cameraService';
4
+ export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getOrderedAddressHierarchyLevels, getPatientImageAsDataUrl, getPatientProfile, getPersonAttributeTypes, getRelationshipTypes, type FormattedPatientData, type PatientSearchResult, type PatientSearchResultBundle, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PatientProfileResponse, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, AttributeFormat, AttributeInputType, getInputTypeForFormat, isBooleanFormat, isConceptFormat, isNumberFormat, isDateFormat, isTextFormat, MAX_PATIENT_AGE_YEARS, MAX_NAME_LENGTH, MAX_PHONE_NUMBER_LENGTH, } from './patientService';
5
+ export { getVisitTypes, checkIfActiveVisitExists, createVisitForPatient, getActiveVisitByPatient, type VisitType, type VisitTypes, type VisitData, type ActiveVisit, } from './visitService';
6
+ export { searchAppointmentsByAttribute, updateAppointmentStatus, getAppointmentById, } from './AppointmentService/appointmmetService';
7
+ export { type Appointment, type AppointmentSearchResult, type Patient, type AppointmentService, type Location, type Reason, } from './AppointmentService/models';
8
+ export { getFormattedError } from './errorHandling';
9
+ export { capitalize, generateId, getCookieByName, isStringEmpty, getPriorityByOrder, groupByDate, filterReplacementEntries, refreshQueries, parseQueryParams, formatUrl, } from './utils';
10
+ export { type FormatDateResult, calculateAge, formatDateTime, formatDate, formatDateDistance, calculateOnsetDate, sortByDate, DATE_FORMAT, DATE_PICKER_INPUT_FORMAT, DATE_TIME_FORMAT, ISO_DATE_FORMAT, FULL_MONTH_DATE_FORMAT, REGISTRATION_DATE_FORMAT, getTodayDate, calculateAgeinYearsAndMonths, formatDateAndTime, } from './date';
11
+ export { type Notification, notificationService } from './notification';
12
+ export { type FormattedAllergy, AllergyStatus, AllergySeverity, type AllergenType, getAllergies, getFormattedAllergies, fetchAndFormatAllergenConcepts, fetchReactionConcepts, } from './allergyService';
13
+ export { getConditions, type ConditionInputEntry } from './conditionService';
14
+ export { getPatientDiagnoses, type Diagnosis, type DiagnosisInputEntry, type DiagnosesByDate, } from './diagnosesService';
15
+ export { searchConcepts, searchFHIRConcepts, searchFHIRConceptsByName, getConceptById, type ConceptSearch, type ConceptClass, } from './conceptService';
16
+ export { getPatientMedications, getPatientMedicationBundle, type FormattedMedicationRequest, type MedicationRequest, MedicationStatus, } from './medicationRequestService';
17
+ export { getPatientRadiologyInvestigations, getPatientRadiologyInvestigationBundle, getPatientRadiologyInvestigationBundleWithImagingStudy, } from './radiologyInvestigationService';
18
+ export { getPatientLabInvestigations, groupLabTestsByDate, formatLabTests, type FormattedLabTest, LabTestPriority, type LabTestsByDate, } from './labInvestigationService';
19
+ export { getFlattenedInvestigations, getOrderTypes, getCategoryUuidFromOrderTypes, type FlattenedInvestigations, type OrderType, type OrderTypeResponse, ORDER_TYPE_QUERY_KEY, } from './investigationService';
20
+ export { getClinicalConfig, getDashboardConfig, getMedicationConfig, getRegistrationConfig, type ClinicalConfig, type DashboardConfig, type MedicationJSONConfig, type DashboardSectionConfig, type Dashboard, type Frequency, type RegistrationConfig, type PatientSearchConfig, type PatientSearchField, type PatientInformationConfig, type SearchActionConfig, type ControlConfig, type AppExtensionConfig, type ExtensionPoint, } from './configService';
21
+ export { getCurrentUser, getUserLoginLocation, type User } from './userService';
22
+ export { USER_PINNED_PREFERENCE_URL } from './observationFormsService/constants';
23
+ export { getCurrentProvider, type Provider, type Person, } from './providerService';
24
+ export { findActiveEncounterInSession } from './encounterSessionService';
25
+ export { getActiveVisit, shouldEnableEncounterFilter, } from './encounterService';
26
+ export { getEncountersAndVisitsForEOC, type EpisodeOfCareDataType, } from './episodeOfCareService';
27
+ export { dispatchAuditEvent, AUDIT_LOG_EVENT_DETAILS, initializeAuditListener, type AuditEventType, logAuditEvent, } from './auditLogService';
28
+ export { HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM, HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM, HL7_CONDITION_CATEGORY_CODE_SYSTEM, HL7_CONDITION_CATEGORY_CONDITION_CODE, HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE, FHIR_ENCOUNTER_TYPE_CODE_SYSTEM, FHIR_OBSERVATION_INTERPRETATION_SYSTEM, FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL, FHIR_OBSERVATION_COMPLEX_DATA_URL, CONCEPT_DATATYPE_NUMERIC, CONCEPT_DATATYPE_COMPLEX, FHIR_OBSERVATION_STATUS_FINAL, FHIR_RESOURCE_TYPE_OBSERVATION, DATE_REGEX_PATTERN, DATETIME_REGEX_PATTERN, INTERPRETATION_TO_CODE, } from './constants/fhir';
29
+ export { OPENMRS_REST_V1, OPENMRS_FHIR_R4, BAHMNI_HOME_PATH, } from './constants/app';
30
+ export { getCurrentUserPrivileges, hasPrivilege, type UserPrivilege, } from './privilegeService';
31
+ export { fetchObservationForms, fetchFormMetadata, transformFormDataToObservations, transformObservationsToFormData, type ObservationForm, type FormApiResponse, type ApiNameTranslation, type FormPrivilege, type ApiFormPrivilege, type FormMetadata, type FormData, type FormControlData, type Form2Observation, type ConceptValue, type ComplexValue, } from './observationFormsService';
32
+ export { getVitalFlowSheetData, type VitalFlowSheetData, type VitalFlowSheetConceptDetail, } from './vitalFlowSheetService';
33
+ export { getServiceRequests } from './orderRequestService';
34
+ export { getPatientPrograms, type ProgramEnrollment, type PatientProgramsResponse, } from './programService';
35
+ export { dispatchConsultationSaved, useConsultationSaved, CONSULTATION_SAVED_EVENT, type ConsultationSavedEventPayload, } from './events/consultationEvents';
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACL,WAAW,EACX,cAAc,EACd,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,iBAAiB,EACjB,uBAAuB,EACvB,oB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