@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,406 @@
1
+ declare const _default: {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Registration Configuration Schema",
4
+ "description": "Schema for validating registration app configuration",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "id": {
9
+ "type": "string",
10
+ "description": "Unique identifier for the registration configuration"
11
+ },
12
+ "contextModel": {
13
+ "type": "array",
14
+ "description": "Array of context model configurations",
15
+ "items": {
16
+ "type": "string"
17
+ }
18
+ },
19
+ "patientSearch": {
20
+ "type": "object",
21
+ "description": "Patient search configuration",
22
+ "additionalProperties": false,
23
+ "properties": {
24
+ "customAttributes": {
25
+ "type": "array",
26
+ "description": "Array of available search fields",
27
+ "items": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "properties": {
31
+ "translationKey": {
32
+ "type": "string",
33
+ "description": "Translation key for the dropdown label"
34
+ },
35
+ "fields": {
36
+ "type": "array",
37
+ "description": "Array of field names to search against",
38
+ "items": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "expectedFields": {
43
+ "type": "array",
44
+ "description": "Array of fields configurations with translation keys to display on table headers",
45
+ "items": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "properties": {
49
+ "field": {
50
+ "type": "string",
51
+ "description": "field corresponding to table header"
52
+ },
53
+ "translationKey": {
54
+ "type": "string",
55
+ "description": "Translation key for the table header"
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "type": {
61
+ "type": "string",
62
+ "enum": ["person", "address", "program", "appointment"],
63
+ "description": "Type of the search field (person, address, program, appointment)"
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "appointment": {
69
+ "type": "array",
70
+ "description": "Array of available search fields for appointments",
71
+ "items": {
72
+ "type": "object",
73
+ "additionalProperties": true,
74
+ "required": ["translationKey", "fields"],
75
+ "properties": {
76
+ "translationKey": {
77
+ "type": "string",
78
+ "description": "Translation key for the field label"
79
+ },
80
+ "fields": {
81
+ "type": "array",
82
+ "description": "Array of field names to search against",
83
+ "items": {
84
+ "type": "string"
85
+ }
86
+ },
87
+ "expectedFields": {
88
+ "type": "array",
89
+ "description": "Array of expected fields with optional types",
90
+ "items": {
91
+ "type": "object",
92
+ "required": ["field", "translationKey"],
93
+ "properties": {
94
+ "field": {
95
+ "type": "string",
96
+ "description": "The field name (e.g., apptNumber, apptDate)"
97
+ },
98
+ "translationKey": {
99
+ "type": "string",
100
+ "description": "Translation key for the field's display label"
101
+ },
102
+ "type": {
103
+ "type": "string",
104
+ "description": "Optional field type (e.g., date, string)"
105
+ }
106
+ }
107
+ }
108
+ },
109
+ "type": {
110
+ "type": "string",
111
+ "enum": ["appointment"],
112
+ "description": "Type of the search field (appointment)"
113
+ },
114
+ "actions": {
115
+ "type": "array",
116
+ "description": "Array of actions allowed on this search field",
117
+ "items": {
118
+ "type": "object",
119
+ "required": [
120
+ "translationKey",
121
+ "type",
122
+ "enabledRule",
123
+ "onAction"
124
+ ],
125
+ "properties": {
126
+ "translationKey": {
127
+ "type": "string",
128
+ "description": "Translation key for the action button label"
129
+ },
130
+ "type": {
131
+ "type": "string",
132
+ "enum": ["changeStatus", "navigate"],
133
+ "description": "Type of action to perform"
134
+ },
135
+ "enabledRule": {
136
+ "type": "array",
137
+ "description": "Conditions to enable this action (rules)",
138
+ "items": {
139
+ "type": "object",
140
+ "properties": {
141
+ "type": {
142
+ "type": "string",
143
+ "enum": [
144
+ "privilegeCheck",
145
+ "statusCheck",
146
+ "appDateCheck"
147
+ ],
148
+ "description": "Type of rule to evaluate"
149
+ },
150
+ "values": {
151
+ "type": "array",
152
+ "items": { "type": "string" },
153
+ "description": "Values to check against for the rule"
154
+ }
155
+ }
156
+ }
157
+ },
158
+ "onAction": {
159
+ "type": "object",
160
+ "description": "What happens when action is triggered",
161
+ "additionalProperties": true,
162
+ "properties": {
163
+ "status": {
164
+ "type": "string",
165
+ "description": "Status to set (for changeStatus type)"
166
+ },
167
+ "navigation": {
168
+ "type": "string",
169
+ "description": "URL path to navigate to (for navigate type)"
170
+ }
171
+ }
172
+ },
173
+ "onSuccess": {
174
+ "type": "object",
175
+ "description": "Notification or other success response",
176
+ "additionalProperties": true,
177
+ "properties": {
178
+ "notification": {
179
+ "type": "string",
180
+ "description": "Translation key for success notification message"
181
+ }
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ },
192
+ "defaultVisitType": {
193
+ "type": "string",
194
+ "description": "Default visit type for patient registration"
195
+ },
196
+ "patientInformation": {
197
+ "type": "object",
198
+ "description": "Patient name related fields configuration",
199
+ "additionalProperties": true,
200
+ "properties": {
201
+ "defaultIdentifierPrefix": {
202
+ "type": "string",
203
+ "description": "Default prefix for patient identifiers"
204
+ },
205
+ "showEnterManually": { "type": "boolean" },
206
+ "showMiddleName": { "type": "boolean" },
207
+ "showLastName": { "type": "boolean" },
208
+ "isFirstNameMandatory": { "type": "boolean" },
209
+ "isMiddleNameMandatory": { "type": "boolean" },
210
+ "isGenderMandatory": { "type": "boolean" },
211
+ "isDateOfBirthMandatory": { "type": "boolean" },
212
+ "isLastNameMandatory": { "type": "boolean" },
213
+ "patientNameDisplayOrder": {
214
+ "type": "array",
215
+ "description": "Order in which patient name fields should be displayed",
216
+ "items": { "type": "string" }
217
+ },
218
+ "showBirthTime": { "type": "boolean" },
219
+ "showDOBEstimated": { "type": "boolean" },
220
+ "addressHierarchy": {
221
+ "type": "object",
222
+ "description": "Address hierarchy levels to be displayed",
223
+ "additionalProperties": false,
224
+ "properties": {
225
+ "showAddressFieldsTopDown": { "type": "boolean" },
226
+ "strictAutocompleteFromLevel": { "type": "string" },
227
+ "expectedFields": {
228
+ "type": "array",
229
+ "description": "Array of expected fields with translation keys",
230
+ "items": {
231
+ "type": "object",
232
+ "properties": {
233
+ "addressField": {
234
+ "type": "string",
235
+ "description": "Field name"
236
+ },
237
+ "translationKey": {
238
+ "type": "string",
239
+ "description": "Translation key for the field label"
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+ },
246
+ "additionalPatientInformation": {
247
+ "type": "object",
248
+ "description": "Additional patient information configuration",
249
+ "additionalProperties": true,
250
+ "properties": {
251
+ "translationKey": {
252
+ "type": "string",
253
+ "description": "Translation key for the section title"
254
+ },
255
+ "attributes": {
256
+ "type": "array",
257
+ "description": "Array of attribute fields with translation keys",
258
+ "items": {
259
+ "type": "object",
260
+ "required": ["field", "translationKey"],
261
+ "properties": {
262
+ "field": {
263
+ "type": "string",
264
+ "description": "Field name"
265
+ },
266
+ "translationKey": {
267
+ "type": "string",
268
+ "description": "Translation key for the field label"
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ },
275
+ "contactInformation": {
276
+ "type": "object",
277
+ "additionalProperties": true,
278
+ "properties": {
279
+ "translationKey": {
280
+ "type": "string",
281
+ "description": "Translation key for the section title"
282
+ },
283
+ "attributes": {
284
+ "type": "array",
285
+ "description": "Array of attribute fields with translation keys",
286
+ "items": {
287
+ "type": "object",
288
+ "required": ["field", "translationKey"],
289
+ "properties": {
290
+ "field": {
291
+ "type": "string",
292
+ "description": "Field name"
293
+ },
294
+ "translationKey": {
295
+ "type": "string",
296
+ "description": "Translation key for the field label"
297
+ }
298
+ }
299
+ }
300
+ }
301
+ }
302
+ },
303
+ "showExtraPatientIdentifiersSection": {
304
+ "type": "boolean",
305
+ "description": "Whether to show extra patient identifiers section"
306
+ }
307
+ }
308
+ },
309
+ "fieldValidation": {
310
+ "type": "object",
311
+ "description": "Field validation rules with regex patterns and error messages",
312
+ "additionalProperties": true,
313
+ "patternProperties": {
314
+ "^.*$": {
315
+ "type": "object",
316
+ "properties": {
317
+ "pattern": {
318
+ "type": "string",
319
+ "description": "Regular expression pattern for field validation"
320
+ },
321
+ "errorMessage": {
322
+ "type": "string",
323
+ "description": "Error message to display when validation fails"
324
+ }
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "extensionPoints": {
330
+ "type": "array",
331
+ "description": "Array of extension point definitions that extensions can attach to",
332
+ "items": {
333
+ "type": "object",
334
+ "required": ["id"],
335
+ "additionalProperties": false,
336
+ "properties": {
337
+ "id": {
338
+ "type": "string",
339
+ "description": "Unique identifier for the extension point (e.g., 'org.bahmni.registration.navigation')"
340
+ },
341
+ "description": {
342
+ "type": "string",
343
+ "description": "Human-readable description of what this extension point is for"
344
+ }
345
+ }
346
+ }
347
+ },
348
+ "registrationAppExtensions": {
349
+ "type": "array",
350
+ "description": "Array of app extension configurations for registration",
351
+ "items": {
352
+ "type": "object",
353
+ "description": "Extension configuration",
354
+ "additionalProperties": false,
355
+ "required": ["id", "extensionPointId", "type", "requiredPrivilege"],
356
+ "properties": {
357
+ "id": {
358
+ "type": "string",
359
+ "description": "Unique identifier for the extension"
360
+ },
361
+ "extensionPointId": {
362
+ "type": "string",
363
+ "description": "Extension point identifier this extension attaches to"
364
+ },
365
+ "type": {
366
+ "type": "string",
367
+ "enum": ["link", "startVisit"],
368
+ "description": "Type of extension (e.g., 'link', 'startVisit')"
369
+ },
370
+ "translationKey": {
371
+ "type": "string",
372
+ "description": "Translation key for the extension label"
373
+ },
374
+ "url": {
375
+ "type": "string",
376
+ "description": "URL path for the extension"
377
+ },
378
+ "shortcutKey": {
379
+ "type": "string",
380
+ "description": "Keyboard shortcut key for the extension"
381
+ },
382
+ "icon": {
383
+ "type": "string",
384
+ "description": "Icon class name (e.g., FontAwesome class like 'fa-search')"
385
+ },
386
+ "order": {
387
+ "type": "number",
388
+ "description": "Display order of the extension"
389
+ },
390
+ "kind": {
391
+ "type": "string",
392
+ "enum": ["primary", "secondary", "tertiary", "ghost", "danger"],
393
+ "description": "Button kind/variant (defaults to 'primary' if not specified)"
394
+ },
395
+ "requiredPrivilege": {
396
+ "type": "string",
397
+ "description": "Required privilege to access this extension"
398
+ }
399
+ }
400
+ }
401
+ }
402
+ }
403
+ }
404
+ ;
405
+
406
+ export default _default;
@@ -0,0 +1,10 @@
1
+ export declare const BASE_PATH: string;
2
+ export declare const OPENMRS_FHIR_R4 = "/openmrs/ws/fhir2/R4";
3
+ export declare const OPENMRS_REST_V1 = "/openmrs/ws/rest/v1";
4
+ export declare const OPENMRS_REST_V2 = "/openmrs/ws/rest/v2";
5
+ export declare const BAHMNI_USER_COOKIE_NAME = "bahmni.user";
6
+ export declare const BAHMNI_HOME_PATH = "/bahmni/home/index.html";
7
+ export declare const USER_PRIVILEGES_URL: string;
8
+ export declare const VISIT_LOCATION_UUID: string;
9
+ export declare const PATIENT_PROGRAMS_URL: (patientUUID: string) => string;
10
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,QAAgC,CAAC;AACvD,eAAO,MAAM,eAAe,yBAAyB,CAAC;AACtD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,eAAe,wBAAwB,CAAC;AACrD,eAAO,MAAM,uBAAuB,gBAAgB,CAAC;AACrD,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAC1D,eAAO,MAAM,mBAAmB,QAAyC,CAAC;AAC1E,eAAO,MAAM,mBAAmB,QACgB,CAAC;AACjD,eAAO,MAAM,oBAAoB,GAAI,aAAa,MAAM,WACoB,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const FHIR_ENCOUNTER_TYPE_CODE_SYSTEM = "http://fhir.openmrs.org/code-system/encounter-type";
2
+ export declare const HL7_CONDITION_CATEGORY_CONDITION_CODE = "problem-list-item";
3
+ export declare const HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-ver-status";
4
+ export declare const HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE = "encounter-diagnosis";
5
+ export declare const HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-clinical";
6
+ export declare const HL7_CONDITION_CATEGORY_CODE_SYSTEM = "http://terminology.hl7.org/CodeSystem/condition-category";
7
+ export declare const FHIR_CONCEPT_CLASS_EXTENSION_URL = "http://fhir.bahmni.org/ext/ValueSet/concept-class";
8
+ export declare const FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL = "http://fhir.bahmni.org/ext/lab-order-concept-type";
9
+ export declare const FHIR_MEDICATION_EXTENSION_URL = "http://fhir.openmrs.org/ext/medicine";
10
+ export declare const FHIR_MEDICATION_NAME_EXTENSION_URL = "http://fhir.openmrs.org/ext/medicine#drugName";
11
+ export declare const FHIR_OBSERVATION_INTERPRETATION_SYSTEM = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation";
12
+ export declare const FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL = "http://fhir.bahmni.org/ext/observation/form-namespace-path";
13
+ export declare const FHIR_OBSERVATION_COMPLEX_DATA_URL = "http://fhir.bahmni.org/ext/observation/complex-data";
14
+ export declare const CONCEPT_DATATYPE_NUMERIC = "Numeric";
15
+ export declare const CONCEPT_DATATYPE_COMPLEX = "Complex";
16
+ export declare const FHIR_OBSERVATION_STATUS_FINAL = "final";
17
+ export declare const FHIR_RESOURCE_TYPE_OBSERVATION = "Observation";
18
+ export declare const DATE_REGEX_PATTERN: RegExp;
19
+ export declare const DATETIME_REGEX_PATTERN: RegExp;
20
+ export declare const INTERPRETATION_TO_CODE: Record<string, {
21
+ code: string;
22
+ display: string;
23
+ }>;
24
+ //# sourceMappingURL=fhir.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../src/constants/fhir.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,uDACU,CAAC;AACvD,eAAO,MAAM,qCAAqC,sBAAsB,CAAC;AACzE,eAAO,MAAM,6CAA6C,+DACI,CAAC;AAC/D,eAAO,MAAM,qCAAqC,wBAAwB,CAAC;AAC3E,eAAO,MAAM,yCAAyC,6DACM,CAAC;AAC7D,eAAO,MAAM,kCAAkC,6DACa,CAAC;AAC7D,eAAO,MAAM,gCAAgC,sDACQ,CAAC;AACtD,eAAO,MAAM,yCAAyC,sDACD,CAAC;AACtD,eAAO,MAAM,6BAA6B,yCACF,CAAC;AACzC,eAAO,MAAM,kCAAkC,kDACE,CAAC;AAClD,eAAO,MAAM,sCAAsC,uEACmB,CAAC;AACvE,eAAO,MAAM,wCAAwC,+DACS,CAAC;AAC/D,eAAO,MAAM,iCAAiC,wDACS,CAAC;AACxD,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAClD,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAElD,eAAO,MAAM,6BAA6B,UAAU,CAAC;AACrD,eAAO,MAAM,8BAA8B,gBAAgB,CAAC;AAE5D,eAAO,MAAM,kBAAkB,QAAuB,CAAC;AACvD,eAAO,MAAM,sBAAsB,QAAyC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,MAAM,EACN;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAIlC,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const DATE_FORMAT = "dd/MM/yyyy";
2
+ export declare const FULL_MONTH_DATE_FORMAT = "MMMM dd, yyyy";
3
+ export declare const REGISTRATION_DATE_FORMAT = "do MMM, yyyy";
4
+ export declare const DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm";
5
+ export declare const ISO_DATE_FORMAT = "yyyy-MM-dd";
6
+ export declare const DATE_PICKER_INPUT_FORMAT = "d/m/Y";
7
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/date/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AACtD,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AACvD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,wBAAwB,UAAU,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { Age } from '../patientService/models';
2
+ export interface FormatDateResult {
3
+ formattedResult: string;
4
+ error?: {
5
+ title: string;
6
+ message: string;
7
+ };
8
+ }
9
+ /**
10
+ * Calculates age based on a date string in the format yyyy-mm-dd
11
+ * Returns age as an object with years, months, and days properties
12
+ *
13
+ * @param dateString - Birth date string in the format yyyy-mm-dd
14
+ * @returns Age object containing years, months, and days or null if the input is invalid
15
+ */
16
+ export declare function calculateAge(dateString: string): Age | null;
17
+ /**
18
+ * Formats a date string or Date object into the specified date time format.
19
+ * @param date - The date string or Date object to format.
20
+ * @returns A FormatDateResult object containing either a formatted date string or an error.
21
+ */
22
+ export declare function formatDateTime(date: string | Date | number, t: (key: string, options?: {
23
+ count?: number;
24
+ }) => string): FormatDateResult;
25
+ /**
26
+ * Formats a date string or Date object into the specified date format.
27
+ * @param date - The date string or Date object to format.
28
+ * @param format - The date format to use (default is 'dd/MM/yyyy').
29
+ * @returns A FormatDateResult object containing either a formatted date string or an error.
30
+ */
31
+ export declare function formatDate(date: string | Date | number, t: (key: string, options?: {
32
+ count?: number;
33
+ }) => string, format?: string): FormatDateResult;
34
+ /**
35
+ * Calculates onset date by subtracting duration from given date
36
+ * @param givenDate - The given date as baseline
37
+ * @param durationValue - The duration value to subtract
38
+ * @param durationUnit - The unit of duration ('days', 'months', 'years')
39
+ * @returns Calculated onset date or undefined if inputs are invalid
40
+ */
41
+ export declare function calculateOnsetDate(givenDate: Date, durationValue: number | null, durationUnit: 'days' | 'months' | 'years' | null): Date | undefined;
42
+ /**
43
+ * Formats a date string into a clean relative time format for use with i18n templates.
44
+ * Converts all time periods to days/months/years only and removes qualifiers like "about", "almost", "ago".
45
+ * Minutes and hours are rounded up to "1 day".
46
+ *
47
+ * @param date - ISO date string to format (e.g., "2025-06-17T07:02:38.000Z" or "2025-06-17")
48
+ * @returns FormatDateResult with clean time format (e.g., "3 days", "1 month", "2 years")
49
+ */
50
+ export declare function formatDateDistance(date: string, t: (key: string, options?: {
51
+ count?: number;
52
+ }) => string): FormatDateResult;
53
+ export declare const getTodayDate: () => Date;
54
+ export declare function formatDateAndTime(date: number, includeTime: boolean): string;
55
+ /**
56
+ * Calculate and format age for display in patient search results.
57
+ * For infants under 3 months, displays age in total days only.
58
+ * For all others, displays age in years, months, and days format.
59
+ *
60
+ * @param birthDateMillis - Birth date in milliseconds
61
+ * @param t - Optional translation function for Y/M/D labels
62
+ * @returns Formatted age string (e.g., "45d" for infants, "25y 6m 15d" for others)
63
+ */
64
+ export declare function calculateAgeinYearsAndMonths(birthDateMillis: number, t?: (key: string, options?: {
65
+ count?: number;
66
+ }) => string): string;
67
+ /**
68
+ * Sorts an array of objects by a date field
69
+ * @param array - Array of objects to sort
70
+ * @param dateField - The field name containing the date value
71
+ * @param ascending - Sort order: true for ascending (oldest first), false for descending (newest first)
72
+ * @returns sorted array
73
+ */
74
+ export declare function sortByDate(array: any[], dateField: string, ascending?: boolean): any[];
75
+ //# sourceMappingURL=date.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../src/date/date.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAI/C,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AA2BD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAsB3D;AAkGD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EAC5B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,GACvD,gBAAgB,CAElB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,EAC5B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,EACxD,MAAM,GAAE,MAAoB,GAC3B,gBAAgB,CAElB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,IAAI,EACf,aAAa,EAAE,MAAM,GAAG,IAAI,EAC5B,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,IAAI,GAC/C,IAAI,GAAG,SAAS,CAwBlB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,GACvD,gBAAgB,CAiFlB;AAED,eAAO,MAAM,YAAY,QAAO,IAI/B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,CAwB5E;AACD;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAC1C,eAAe,EAAE,MAAM,EACvB,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,GACxD,MAAM,CAiCR;AACD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAExB,KAAK,EAAE,GAAG,EAAE,EACZ,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,OAAe,GAEzB,GAAG,EAAE,CAeP"}
@@ -0,0 +1,8 @@
1
+ export declare const DATE_ERROR_MESSAGES: {
2
+ PARSE_ERROR: string;
3
+ FORMAT_ERROR: string;
4
+ EMPTY_OR_INVALID: string;
5
+ INVALID_FORMAT: string;
6
+ NULL_OR_UNDEFINED: string;
7
+ };
8
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/date/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { type FormatDateResult, calculateAge, formatDateTime, formatDate, formatDateDistance, calculateOnsetDate, sortByDate, getTodayDate, calculateAgeinYearsAndMonths, formatDateAndTime, } from './date';
2
+ export { DATE_FORMAT, DATE_PICKER_INPUT_FORMAT, DATE_TIME_FORMAT, ISO_DATE_FORMAT, FULL_MONTH_DATE_FORMAT, REGISTRATION_DATE_FORMAT, } from './constants';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/date/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,YAAY,EACZ,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,4BAA4B,EAC5B,iBAAiB,GAClB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,WAAW,EACX,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Coding } from 'fhir/r4';
2
+ export declare const PATIENT_DIAGNOSIS_RESOURCE_URL: (patientUUID: string) => string;
3
+ export declare const CERTAINITY_CONCEPTS: Coding[];
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAIjC,eAAO,MAAM,8BAA8B,GAAI,aAAa,MAAM,WAEoD,CAAC;AAEvH,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAWvC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Diagnosis } from './models';
2
+ /**
3
+ * Fetches and formats diagnoses for a given patient UUID
4
+ * @param patientUUID - The UUID of the patient
5
+ * @returns Promise resolving to an array of diagnoses
6
+ */
7
+ export declare function getPatientDiagnoses(patientUUID: string): Promise<Diagnosis[]>;
8
+ //# sourceMappingURL=diagnosesService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnosesService.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/diagnosesService.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAyErC;;;;GAIG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,EAAE,CAAC,CAGtB"}
@@ -0,0 +1,3 @@
1
+ export { getPatientDiagnoses } from './diagnosesService';
2
+ export { type Diagnosis, type DiagnosisInputEntry, type DiagnosesByDate, } from './models';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EACL,KAAK,SAAS,EACd,KAAK,mBAAmB,EACxB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { Coding } from 'fhir/r4';
2
+ export interface DiagnosisInputEntry {
3
+ id: string;
4
+ display: string;
5
+ selectedCertainty: Coding | null;
6
+ errors: {
7
+ certainty?: string;
8
+ };
9
+ hasBeenValidated: boolean;
10
+ }
11
+ export interface Diagnosis {
12
+ id: string;
13
+ display: string;
14
+ certainty: Coding;
15
+ recordedDate: string;
16
+ recorder: string;
17
+ }
18
+ export interface DiagnosesByDate {
19
+ date: string;
20
+ diagnoses: Diagnosis[];
21
+ }
22
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/diagnosesService/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,MAAM,EAAE;QACN,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,EAAE,CAAC;CACxB"}