@olaboot/esm-patient-registration-app 9.2.1 → 10.0.2

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 (342) hide show
  1. package/dist/1339.js +1 -0
  2. package/dist/1339.js.map +1 -0
  3. package/dist/1480.js +1 -0
  4. package/dist/1480.js.map +1 -0
  5. package/dist/1646.js +1 -0
  6. package/dist/1646.js.map +1 -0
  7. package/dist/1789.js +1 -0
  8. package/dist/1789.js.map +1 -0
  9. package/dist/1869.js +1 -0
  10. package/dist/1869.js.map +1 -0
  11. package/dist/1877.js +1 -0
  12. package/dist/1877.js.map +1 -0
  13. package/dist/2317.js +1 -0
  14. package/dist/2317.js.map +1 -0
  15. package/dist/2416.js +1 -0
  16. package/dist/2416.js.map +1 -0
  17. package/dist/2747.js +1 -0
  18. package/dist/2747.js.map +1 -0
  19. package/dist/282.js +1 -0
  20. package/dist/282.js.map +1 -0
  21. package/dist/2881.js +1 -0
  22. package/dist/2881.js.map +1 -0
  23. package/dist/3378.js +1 -0
  24. package/dist/3378.js.map +1 -0
  25. package/dist/3720.js +1 -0
  26. package/dist/3720.js.map +1 -0
  27. package/dist/3906.js +1 -0
  28. package/dist/3906.js.map +1 -0
  29. package/dist/3963.js +1 -0
  30. package/dist/3963.js.map +1 -0
  31. package/dist/3989.js +1 -0
  32. package/dist/3989.js.map +1 -0
  33. package/dist/4106.js +1 -0
  34. package/dist/4106.js.map +1 -0
  35. package/dist/4111.js +1 -0
  36. package/dist/4111.js.map +1 -0
  37. package/dist/434.js +1 -0
  38. package/dist/434.js.map +1 -0
  39. package/dist/4348.js +1 -0
  40. package/dist/4348.js.map +1 -0
  41. package/dist/4383.js +1 -0
  42. package/dist/4383.js.map +1 -0
  43. package/dist/4658.js +1 -0
  44. package/dist/4658.js.map +1 -0
  45. package/dist/466.js +1 -0
  46. package/dist/466.js.map +1 -0
  47. package/dist/4928.js +1 -0
  48. package/dist/4928.js.map +1 -0
  49. package/dist/5117.js +1 -0
  50. package/dist/5117.js.map +1 -0
  51. package/dist/5132.js +1 -0
  52. package/dist/5132.js.map +1 -0
  53. package/dist/5145.js +1 -0
  54. package/dist/5145.js.map +1 -0
  55. package/dist/5208.js +43 -0
  56. package/dist/5208.js.map +1 -0
  57. package/dist/527.js +1 -0
  58. package/dist/527.js.map +1 -0
  59. package/dist/5280.js +1 -0
  60. package/dist/5280.js.map +1 -0
  61. package/dist/5338.js +6 -0
  62. package/dist/5338.js.map +1 -0
  63. package/dist/5503.js +1 -0
  64. package/dist/5503.js.map +1 -0
  65. package/dist/555.js +1 -0
  66. package/dist/555.js.map +1 -0
  67. package/dist/556.js +1 -0
  68. package/dist/556.js.map +1 -0
  69. package/dist/5644.js +1 -0
  70. package/dist/5644.js.map +1 -0
  71. package/dist/5697.js +1 -0
  72. package/dist/{4024.js.map → 5697.js.map} +1 -1
  73. package/dist/5940.js +1 -0
  74. package/dist/5940.js.map +1 -0
  75. package/dist/6047.js +1 -0
  76. package/dist/6047.js.map +1 -0
  77. package/dist/6371.js +1 -0
  78. package/dist/6371.js.map +1 -0
  79. package/dist/6377.js +1 -0
  80. package/dist/6377.js.map +1 -0
  81. package/dist/6388.js +1 -0
  82. package/dist/6388.js.map +1 -0
  83. package/dist/6444.js +1 -0
  84. package/dist/6444.js.map +1 -0
  85. package/dist/6508.js +1 -0
  86. package/dist/6508.js.map +1 -0
  87. package/dist/6724.js +1 -0
  88. package/dist/6724.js.map +1 -0
  89. package/dist/689.js +1 -0
  90. package/dist/689.js.map +1 -0
  91. package/dist/6904.js +1 -0
  92. package/dist/6904.js.map +1 -0
  93. package/dist/7045.js +1 -0
  94. package/dist/7045.js.map +1 -0
  95. package/dist/7175.js +1 -0
  96. package/dist/7175.js.map +1 -0
  97. package/dist/7182.js +1 -0
  98. package/dist/7182.js.map +1 -0
  99. package/dist/7649.js +1 -0
  100. package/dist/7649.js.map +1 -0
  101. package/dist/7742.js +1 -0
  102. package/dist/7742.js.map +1 -0
  103. package/dist/7912.js +1 -0
  104. package/dist/7912.js.map +1 -0
  105. package/dist/8358.js +1 -0
  106. package/dist/8358.js.map +1 -0
  107. package/dist/8359.js +1 -0
  108. package/dist/8359.js.map +1 -0
  109. package/dist/8695.js +1 -0
  110. package/dist/8695.js.map +1 -0
  111. package/dist/903.js +1 -0
  112. package/dist/903.js.map +1 -0
  113. package/dist/9061.js +1 -0
  114. package/dist/9061.js.map +1 -0
  115. package/dist/9072.js +1 -0
  116. package/dist/9072.js.map +1 -0
  117. package/dist/9397.js +1 -0
  118. package/dist/9397.js.map +1 -0
  119. package/dist/9712.js +1 -0
  120. package/dist/9712.js.map +1 -0
  121. package/dist/9771.js +1 -0
  122. package/dist/9771.js.map +1 -0
  123. package/dist/9806.js +1 -0
  124. package/dist/9806.js.map +1 -0
  125. package/dist/9816.js +1 -0
  126. package/dist/9816.js.map +1 -0
  127. package/dist/main.js +7 -6
  128. package/dist/main.js.map +1 -1
  129. package/dist/openmrs-esm-patient-registration-app.js +6 -0
  130. package/dist/{olaboot-esm-patient-registration-app.js.buildmanifest.json → openmrs-esm-patient-registration-app.js.buildmanifest.json} +540 -455
  131. package/dist/openmrs-esm-patient-registration-app.js.map +1 -0
  132. package/dist/routes.json +1 -1
  133. package/package.json +8 -9
  134. package/src/add-patient-link.extension.tsx +3 -2
  135. package/src/add-patient-link.test.tsx +2 -1
  136. package/src/config-schema.ts +507 -507
  137. package/src/constants.ts +1 -1
  138. package/src/index.ts +2 -24
  139. package/src/nav-link.test.tsx +1 -0
  140. package/src/offline.resources.ts +97 -31
  141. package/src/patient-registration/before-save-prompt.test.tsx +199 -0
  142. package/src/patient-registration/field/__mocks__/field.resource.ts +8 -7
  143. package/src/patient-registration/field/address/address-field.component.tsx +183 -186
  144. package/src/patient-registration/field/address/address-hierarchy-levels.component.tsx +6 -1
  145. package/src/patient-registration/field/address/address-hierarchy.test.tsx +289 -296
  146. package/src/patient-registration/field/address/address-search.component.tsx +20 -8
  147. package/src/patient-registration/field/address/address-search.scss +19 -2
  148. package/src/patient-registration/field/address/address-search.test.tsx +333 -141
  149. package/src/patient-registration/field/address/custom-address-field.component.tsx +1 -1
  150. package/src/patient-registration/field/cause-of-death/cause-of-death.component.tsx +1 -1
  151. package/src/patient-registration/field/cause-of-death/cause-of-death.test.tsx +251 -0
  152. package/src/patient-registration/field/custom-field.component.tsx +1 -1
  153. package/src/patient-registration/field/date-and-time-of-death/date-and-time-of-death.component.tsx +1 -1
  154. package/src/patient-registration/field/date-and-time-of-death/date-and-time-of-death.test.tsx +144 -0
  155. package/src/patient-registration/field/dob/dob.component.tsx +2 -2
  156. package/src/patient-registration/field/dob/dob.test.tsx +370 -54
  157. package/src/patient-registration/field/field.component.tsx +1 -1
  158. package/src/patient-registration/field/field.resource.ts +2 -2
  159. package/src/patient-registration/field/field.test.tsx +333 -330
  160. package/src/patient-registration/field/gender/gender-field.test.tsx +240 -54
  161. package/src/patient-registration/field/id/id-field.component.tsx +146 -144
  162. package/src/patient-registration/field/id/id-field.test.tsx +177 -121
  163. package/src/patient-registration/field/id/identifier-selection-overlay.component.tsx +200 -200
  164. package/src/patient-registration/field/id/identifier-selection-overlay.test.tsx +346 -0
  165. package/src/patient-registration/field/name/name-field.component.tsx +2 -2
  166. package/src/patient-registration/field/name/name-field.test.tsx +282 -0
  167. package/src/patient-registration/field/obs/obs-field.test.tsx +294 -118
  168. package/src/patient-registration/field/person-attributes/coded-person-attribute-field.test.tsx +172 -108
  169. package/src/patient-registration/field/person-attributes/location-person-attribute-field.component.tsx +3 -3
  170. package/src/patient-registration/field/person-attributes/location-person-attribute-field.resource.tsx +2 -5
  171. package/src/patient-registration/field/person-attributes/person-attribute-field.component.tsx +2 -2
  172. package/src/patient-registration/field/person-attributes/person-attribute-field.test.tsx +249 -131
  173. package/src/patient-registration/field/person-attributes/person-attributes.resource.ts +1 -1
  174. package/src/patient-registration/field/person-attributes/text-person-attribute-field.test.tsx +98 -70
  175. package/src/patient-registration/field/phone/phone-field.test.tsx +100 -0
  176. package/src/patient-registration/form-manager.test.ts +6 -5
  177. package/src/patient-registration/form-manager.ts +5 -2
  178. package/src/patient-registration/input/basic-input/input/input.component.tsx +3 -121
  179. package/src/patient-registration/input/basic-input/input/input.test.tsx +151 -51
  180. package/src/patient-registration/input/basic-input/select/select-input.test.tsx +113 -33
  181. package/src/patient-registration/input/combo-input/combo-input.component.tsx +60 -24
  182. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.component.tsx +10 -101
  183. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.test.tsx +144 -108
  184. package/src/patient-registration/input/custom-input/identifier/identifier-input.test.tsx +241 -177
  185. package/src/patient-registration/input/custom-input/identifier/utils.test.ts +47 -8
  186. package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +12 -12
  187. package/src/patient-registration/input/dummy-data/dummy-data-input.test.tsx +52 -20
  188. package/src/patient-registration/input/input.scss +1 -2
  189. package/src/patient-registration/patient-registration-context.ts +5 -3
  190. package/src/patient-registration/patient-registration-hooks.ts +4 -12
  191. package/src/patient-registration/patient-registration-utils.test.ts +2 -1
  192. package/src/patient-registration/patient-registration-utils.ts +2 -98
  193. package/src/patient-registration/patient-registration.component.tsx +50 -46
  194. package/src/patient-registration/patient-registration.resource.test.tsx +4 -7
  195. package/src/patient-registration/patient-registration.resource.ts +1 -4
  196. package/src/patient-registration/patient-registration.scss +16 -3
  197. package/src/patient-registration/patient-registration.test.tsx +614 -580
  198. package/src/patient-registration/patient-registration.types.ts +17 -28
  199. package/src/patient-registration/section/death-info/death-info-section.test.tsx +130 -34
  200. package/src/patient-registration/section/demographics/demographics-section.test.tsx +122 -68
  201. package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +15 -15
  202. package/src/patient-registration/section/patient-relationships/relationships-section.test.tsx +278 -84
  203. package/src/patient-registration/section/section-wrapper.component.tsx +1 -1
  204. package/src/patient-registration/ui-components/overlay/overlay.test.tsx +104 -0
  205. package/src/patient-registration/validation/patient-registration-validation.test.ts +2 -1
  206. package/src/patient-registration/validation/patient-registration-validation.ts +9 -3
  207. package/src/root.component.tsx +2 -5
  208. package/src/widgets/cancel-patient-edit.test.tsx +48 -11
  209. package/src/widgets/delete-identifier-confirmation.test.tsx +77 -24
  210. package/src/widgets/edit-patient-details-button.component.tsx +14 -18
  211. package/src/widgets/edit-patient-details-button.scss +2 -2
  212. package/src/widgets/edit-patient-details-button.test.tsx +11 -13
  213. package/translations/am.json +9 -4
  214. package/translations/ar.json +9 -4
  215. package/translations/ar_SY.json +9 -4
  216. package/translations/bn.json +9 -4
  217. package/translations/cs.json +9 -4
  218. package/translations/de.json +120 -115
  219. package/translations/en.json +10 -4
  220. package/translations/en_US.json +9 -4
  221. package/translations/es.json +9 -4
  222. package/translations/es_MX.json +9 -4
  223. package/translations/fr.json +9 -4
  224. package/translations/he.json +9 -4
  225. package/translations/hi.json +9 -4
  226. package/translations/hi_IN.json +9 -4
  227. package/translations/id.json +9 -4
  228. package/translations/it.json +9 -4
  229. package/translations/ka.json +9 -4
  230. package/translations/km.json +9 -4
  231. package/translations/ku.json +9 -4
  232. package/translations/ky.json +9 -4
  233. package/translations/lg.json +9 -4
  234. package/translations/ne.json +9 -4
  235. package/translations/pl.json +9 -4
  236. package/translations/pt.json +9 -4
  237. package/translations/pt_BR.json +10 -5
  238. package/translations/qu.json +9 -4
  239. package/translations/ro_RO.json +9 -4
  240. package/translations/ru_RU.json +9 -4
  241. package/translations/si.json +9 -4
  242. package/translations/sq.json +9 -4
  243. package/translations/sw.json +9 -4
  244. package/translations/sw_KE.json +9 -4
  245. package/translations/tr.json +9 -4
  246. package/translations/tr_TR.json +9 -4
  247. package/translations/uk.json +9 -4
  248. package/translations/uz.json +9 -4
  249. package/translations/uz@Latn.json +9 -4
  250. package/translations/uz_UZ.json +9 -4
  251. package/translations/vi.json +9 -4
  252. package/translations/zh.json +50 -45
  253. package/translations/zh_CN.json +9 -4
  254. package/translations/zh_TW.json +9 -4
  255. package/vitest.config.ts +4 -0
  256. package/dist/126.js +0 -1
  257. package/dist/15.js +0 -1
  258. package/dist/1564.js +0 -1
  259. package/dist/1567.js +0 -1
  260. package/dist/1845.js +0 -1
  261. package/dist/1953.js +0 -1
  262. package/dist/200.js +0 -1
  263. package/dist/200.js.map +0 -1
  264. package/dist/215.js +0 -1
  265. package/dist/2178.js +0 -1
  266. package/dist/250.js +0 -1
  267. package/dist/250.js.map +0 -1
  268. package/dist/2523.js +0 -1
  269. package/dist/2523.js.map +0 -1
  270. package/dist/2566.js +0 -1
  271. package/dist/2586.js +0 -1
  272. package/dist/2586.js.map +0 -1
  273. package/dist/2716.js +0 -1
  274. package/dist/2716.js.map +0 -1
  275. package/dist/2759.js +0 -1
  276. package/dist/2821.js +0 -6
  277. package/dist/2821.js.map +0 -1
  278. package/dist/3089.js +0 -1
  279. package/dist/3089.js.map +0 -1
  280. package/dist/3230.js +0 -1
  281. package/dist/3441.js +0 -1
  282. package/dist/3565.js +0 -1
  283. package/dist/3571.js +0 -1
  284. package/dist/3571.js.map +0 -1
  285. package/dist/3746.js +0 -1
  286. package/dist/3925.js +0 -1
  287. package/dist/3946.js +0 -1
  288. package/dist/4024.js +0 -1
  289. package/dist/4744.js +0 -1
  290. package/dist/4744.js.map +0 -1
  291. package/dist/4809.js +0 -1
  292. package/dist/4894.js +0 -1
  293. package/dist/4970.js +0 -1
  294. package/dist/4970.js.map +0 -1
  295. package/dist/5130.js +0 -1
  296. package/dist/5187.js +0 -1
  297. package/dist/5491.js +0 -1
  298. package/dist/5491.js.map +0 -1
  299. package/dist/5595.js +0 -1
  300. package/dist/5961.js +0 -1
  301. package/dist/6133.js +0 -1
  302. package/dist/634.js +0 -1
  303. package/dist/634.js.map +0 -1
  304. package/dist/6456.js +0 -1
  305. package/dist/6466.js +0 -1
  306. package/dist/6613.js +0 -1
  307. package/dist/6783.js +0 -1
  308. package/dist/7073.js +0 -38
  309. package/dist/7073.js.map +0 -1
  310. package/dist/7154.js +0 -1
  311. package/dist/7154.js.map +0 -1
  312. package/dist/7348.js +0 -1
  313. package/dist/7439.js +0 -1
  314. package/dist/7439.js.map +0 -1
  315. package/dist/7543.js +0 -1
  316. package/dist/7607.js +0 -1
  317. package/dist/772.js +0 -1
  318. package/dist/7984.js +0 -1
  319. package/dist/7984.js.map +0 -1
  320. package/dist/8538.js +0 -1
  321. package/dist/8538.js.map +0 -1
  322. package/dist/8599.js +0 -1
  323. package/dist/8727.js +0 -1
  324. package/dist/8847.js +0 -1
  325. package/dist/9015.js +0 -1
  326. package/dist/906.js +0 -1
  327. package/dist/9065.js +0 -1
  328. package/dist/9182.js +0 -1
  329. package/dist/9339.js +0 -1
  330. package/dist/9453.js +0 -1
  331. package/dist/9833.js +0 -1
  332. package/dist/9833.js.map +0 -1
  333. package/dist/9856.js +0 -1
  334. package/dist/9856.js.map +0 -1
  335. package/dist/9920.js +0 -1
  336. package/dist/9938.js +0 -1
  337. package/dist/9943.js +0 -1
  338. package/dist/9943.js.map +0 -1
  339. package/dist/olaboot-esm-patient-registration-app.js +0 -5
  340. package/dist/olaboot-esm-patient-registration-app.js.map +0 -1
  341. package/jest.config.js +0 -3
  342. package/src/resource.ts +0 -12
@@ -1,41 +1,41 @@
1
1
  {
2
- "addPatient": "Add patient",
2
+ "addPatient": "添加患者",
3
3
  "addRelationshipButtonText": "添加关系",
4
4
  "addressHeader": "地址",
5
5
  "allFieldsRequiredText": "所有字段都是必填的,除非标记为可选。",
6
6
  "autoGeneratedPlaceholderText": "自动生成",
7
- "birthdayNotInTheFuture": "Birthday cannot be in future",
8
- "birthdayNotOver140YearsAgo": "Birthday cannot be more than 140 years ago",
7
+ "birthdayNotInTheFuture": "出生日期不能是未来",
8
+ "birthdayNotOver140YearsAgo": "出生日期不能超过 140 年前",
9
9
  "birthdayRequired": "生日是必填项",
10
10
  "birthFieldLabelText": "出生",
11
11
  "cancel": "取消",
12
- "causeOfDeathInputLabel": "Cause of death",
12
+ "causeOfDeathInputLabel": "死亡原因",
13
13
  "closeOverlay": "关闭叠加",
14
14
  "codedPersonAttributeAnswerSetEmpty": "编码的人员属性字段'{{codedPersonAttributeFieldId}}'已使用没有任何概念答案的答案概念集UUID'{{answerConceptSetUuid}}'进行定义。",
15
15
  "codedPersonAttributeAnswerSetInvalid": "编码的人员属性字段'{{codedPersonAttributeFieldId}}'已使用无效的答案概念集UUID'{{answerConceptSetUuid}}'进行定义。",
16
16
  "codedPersonAttributeNoAnswerSet": "人员属性字段'{{codedPersonAttributeFieldId}}'的类型为'coded',但未定义答案概念集UUID。'answerConceptSetUuid'键是必需的。",
17
17
  "configure": "配置",
18
18
  "configureIdentifiers": "配置ID标识",
19
- "confirmDiscardChangesBody": "Your unsaved changes will be lost if you proceed to discard the form",
20
- "confirmDiscardChangesTitle": "Are you sure you want to discard these changes?",
21
- "confirmIdentifierDeletionText": "Are you sure you want to remove this identifier?",
19
+ "confirmDiscardChangesBody": "如果继续放弃表单,您未保存的更改将丢失",
20
+ "confirmDiscardChangesTitle": "您确定要放弃这些更改吗?",
21
+ "confirmIdentifierDeletionText": "您确定要删除此标识符吗?",
22
22
  "contactSection": "联系方式",
23
- "createNewPatient": "Create new patient",
24
- "dateOfBirthLabelText": "Date of birth",
25
- "deathCauseRequired": "Cause of death is required",
26
- "deathDateInFuture": "Death date cannot be in future",
27
- "deathDateInputLabel": "Date of death",
28
- "deathDateRequired": "Death date is required",
29
- "deathdayInvalidDate": "Death date and time cannot be before the birthday",
30
- "deathdayIsRequired": "Death date is required when the patient is marked as deceased.",
23
+ "createNewPatient": "创建新患者",
24
+ "dateOfBirthLabelText": "出生日期",
25
+ "deathCauseRequired": "死因是必需的",
26
+ "deathDateInFuture": "死亡日期不能是未来",
27
+ "deathDateInputLabel": "死亡日期",
28
+ "deathDateRequired": "死亡日期是必需的",
29
+ "deathdayBeforeBirthday": "Death date and time cannot be before the birthday",
30
+ "deathdayIsRequired": "当患者被标记为已故,死亡日期是必需的。",
31
31
  "deathdayNotInTheFuture": "",
32
32
  "deathSection": "死亡信息",
33
- "deathTimeFormatInvalid": "Time format is invalid",
34
- "deathTimeFormatRequired": "Time format is required",
35
- "deathTimeInvalid": "Time doesn't match the format 'hh:mm'",
36
- "deathTimeRequired": "Death time is required",
37
- "deleteIdentifierModalHeading": "Remove identifier?",
38
- "deleteIdentifierModalText": " has a value of ",
33
+ "deathTimeFormatInvalid": "时间格式无效",
34
+ "deathTimeFormatRequired": "时间格式是必需的",
35
+ "deathTimeInvalid": "时间不能匹配格式 'hh:mm'",
36
+ "deathTimeRequired": "死亡时间是必需的",
37
+ "deleteIdentifierModalHeading": "移除标识符 ?",
38
+ "deleteIdentifierModalText": " 有一个值",
39
39
  "deleteIdentifierTooltip": "删除",
40
40
  "deleteRelationshipTooltipText": "删除",
41
41
  "demographicsSection": "基本信息",
@@ -44,47 +44,51 @@
44
44
  "dobToggleLabelText": "出生日期已知?",
45
45
  "editIdentifierTooltip": "编辑",
46
46
  "editPatientDetails": "编辑患者详情",
47
- "editPatientDetailsBreadcrumb": "编辑患者详情",
48
- "enterNonCodedCauseOfDeath": "Enter non-coded cause of death",
47
+ "enterNonCodedCauseOfDeath": "输入非编码死因",
49
48
  "error": "错误",
50
- "errorFetchingCodedCausesOfDeath": "Error fetching coded causes of death",
49
+ "errorFetchingAddresses": "错误 fetching address results",
50
+ "errorFetchingCodedCausesOfDeath": "获取编码死因时出错",
51
51
  "errorFetchingOrderedFields": "获取地址层次结构的排序字段时发生错误",
52
+ "errorFetchingResults": "错误 fetching results",
52
53
  "estimatedAgeInMonthsLabelText": "月龄估算",
53
54
  "estimatedAgeInYearsLabelText": "年龄估算",
54
55
  "familyNameLabelText": "姓氏",
55
56
  "familyNameRequired": "姓氏是必填项",
56
57
  "female": "女性",
57
- "fieldsWithErrors": "The following fields have errors: ",
58
+ "fieldsWithErrors": "下面字段存在错误:",
58
59
  "fullNameLabelText": "全名",
59
60
  "genderLabelText": "性别",
60
61
  "genderRequired": "性别是必填项",
61
- "genderUnspecified": "Gender unspecified",
62
+ "genderUnspecified": "性别未指定",
62
63
  "givenNameLabelText": "名字",
63
64
  "givenNameRequired": "名字是必填项",
64
65
  "identifierValueRequired": "ID标识是必填项",
65
- "idFieldLabelText": "Identifiers",
66
+ "idFieldLabelText": "ID",
66
67
  "IDInstructions": "选择您想为该患者添加的ID标识:",
67
- "invalidEmail": "Invalid email",
68
+ "inputDummyData": "输入测试数据",
69
+ "invalidEmail": "无效 email",
68
70
  "invalidInput": "输入无效",
69
- "isDeadInputLabel": "Is dead",
71
+ "isDeadInputLabel": "已故",
70
72
  "jumpTo": "跳转至",
73
+ "loading": "加载中",
71
74
  "male": "男性",
72
75
  "middleNameLabelText": "中间名",
73
- "negativeMonths": "Estimated months cannot be negative",
74
- "negativeYears": "Estimated years cannot be negative",
76
+ "negativeMonths": "预计月份不能为负数",
77
+ "negativeYears": "预计年份不能为负数",
75
78
  "no": "否",
76
- "nonCodedCauseOfDeath": "Non-coded cause of death",
77
- "nonCodedCauseOfDeathRequired": "Cause of death is required",
78
- "nonsensicalYears": "Estimated years cannot be more than 140",
79
+ "noAddressResults": "No matching addresses found",
80
+ "noMatchingResults": "No matching results",
81
+ "nonCodedCauseOfDeath": "非编码死因",
82
+ "nonCodedCauseOfDeathRequiredWhenSelected": "Non-coded cause 共 death is required",
83
+ "nonsensicalYears": "预计年份不能大于 140",
79
84
  "numberInNameDubious": "姓名中含有数字",
80
85
  "obsFieldUnknownDatatype": "obs字段'{{fieldDefinitionId}}'的概念具有未知数据类型'{{datatypeName}}'",
81
86
  "optional": "可选的",
82
87
  "optionalIdentifierLabel": "{{identifierName}} (optional)",
83
88
  "other": "其他",
84
89
  "patientNameKnown": "患者的姓名已知?",
85
- "patientRegistrationBreadcrumb": "患者注册",
86
- "refreshOrContactAdmin": "Try refreshing the page or contact your system administrator",
87
- "registerPatient": "Register patient",
90
+ "refreshOrContactAdmin": "尝试刷新页面或联系您的系统管理员",
91
+ "registerPatient": "登记患者",
88
92
  "registerPatientSuccessSnackbarSubtitle": "现在可以通过姓名或ID号搜索到该患者",
89
93
  "registerPatientSuccessSnackbarTitle": "新患者已创建",
90
94
  "registrationErrorSnackbarTitle": "患者注册失败",
@@ -94,27 +98,28 @@
94
98
  "relationshipRemovedText": "关系已移除",
95
99
  "relationshipsSection": "关系人信息",
96
100
  "relationshipToPatient": "与患者的关系",
97
- "relativeFullNameLabelText": "Full name",
101
+ "relativeFullNameLabelText": "全名",
98
102
  "relativeNamePlaceholder": "名字 姓氏",
99
- "removeIdentifierButton": "Remove identifier",
103
+ "removeIdentifierButton": "移除标识符",
100
104
  "resetIdentifierTooltip": "重置",
101
105
  "restoreRelationshipActionButton": "撤销",
102
106
  "searchAddress": "搜索地址",
103
107
  "searchIdentifierPlaceholder": "搜索ID标识",
104
- "searchLocationPersonAttribute": "Search location",
108
+ "searching": "搜索中...",
109
+ "searchLocationPersonAttribute": "搜索地点",
105
110
  "selectAnOption": "选择一个选项",
106
111
  "sexFieldLabelText": "性别",
107
112
  "source": "来源",
108
113
  "submitting": "提交中",
109
- "timeFormat": "Time Format",
110
- "timeOfDeathInputLabel": "Time of death (hh:mm)",
111
- "unableToFetch": "Unable to fetch person attribute type - {{personattributetype}}",
114
+ "timeFormat": "时间格式",
115
+ "timeOfDeathInputLabel": "死亡时间 (hh:mm)",
116
+ "unableToFetch": "无法获取人员属性类型- {{personattributetype}}",
112
117
  "unknown": "未知",
113
118
  "unknownPatientAttributeType": "患者属性类型具有未知格式{{personAttributeTypeFormat}}",
114
- "updatePatient": "Update patient",
119
+ "updatePatient": "更新患者",
115
120
  "updatePatientErrorSnackbarTitle": "患者详情更新失败",
116
121
  "updatePatientSuccessSnackbarSubtitle": "患者的信息已成功更新",
117
122
  "updatePatientSuccessSnackbarTitle": "患者详情已更新",
118
- "yearsEstimateRequired": "Estimated years required",
123
+ "yearsEstimateRequired": "预期年份是必需的",
119
124
  "yes": "是"
120
125
  }
@@ -26,7 +26,7 @@
26
26
  "deathDateInFuture": "死亡日期不能是未来",
27
27
  "deathDateInputLabel": "死亡日期",
28
28
  "deathDateRequired": "死亡日期是必需的",
29
- "deathdayInvalidDate": "死亡日期和时间不能早于出生日期",
29
+ "deathdayBeforeBirthday": "Death date and time cannot be before the birthday",
30
30
  "deathdayIsRequired": "当患者被标记为已故,死亡日期是必需的。",
31
31
  "deathdayNotInTheFuture": "",
32
32
  "deathSection": "死亡信息",
@@ -44,11 +44,12 @@
44
44
  "dobToggleLabelText": "出生日期已知?",
45
45
  "editIdentifierTooltip": "编辑",
46
46
  "editPatientDetails": "编辑患者详情",
47
- "editPatientDetailsBreadcrumb": "编辑患者详情",
48
47
  "enterNonCodedCauseOfDeath": "输入非编码死因",
49
48
  "error": "错误",
49
+ "errorFetchingAddresses": "错误 fetching address results",
50
50
  "errorFetchingCodedCausesOfDeath": "获取编码死因时出错",
51
51
  "errorFetchingOrderedFields": "获取地址层次结构的排序字段时发生错误",
52
+ "errorFetchingResults": "错误 fetching results",
52
53
  "estimatedAgeInMonthsLabelText": "月龄估算",
53
54
  "estimatedAgeInYearsLabelText": "年龄估算",
54
55
  "familyNameLabelText": "姓氏",
@@ -64,17 +65,21 @@
64
65
  "identifierValueRequired": "ID标识是必填项",
65
66
  "idFieldLabelText": "ID",
66
67
  "IDInstructions": "选择您想为该患者添加的ID标识:",
68
+ "inputDummyData": "输入测试数据",
67
69
  "invalidEmail": "无效 email",
68
70
  "invalidInput": "输入无效",
69
71
  "isDeadInputLabel": "已故",
70
72
  "jumpTo": "跳转至",
73
+ "loading": "加载中",
71
74
  "male": "男性",
72
75
  "middleNameLabelText": "中间名",
73
76
  "negativeMonths": "预计月份不能为负数",
74
77
  "negativeYears": "预计年份不能为负数",
75
78
  "no": "否",
79
+ "noAddressResults": "No matching addresses found",
80
+ "noMatchingResults": "No matching results",
76
81
  "nonCodedCauseOfDeath": "非编码死因",
77
- "nonCodedCauseOfDeathRequired": "死因是必需的",
82
+ "nonCodedCauseOfDeathRequiredWhenSelected": "Non-coded cause 共 death is required",
78
83
  "nonsensicalYears": "预计年份不能大于 140",
79
84
  "numberInNameDubious": "姓名中含有数字",
80
85
  "obsFieldUnknownDatatype": "obs字段'{{fieldDefinitionId}}'的概念具有未知数据类型'{{datatypeName}}'",
@@ -82,7 +87,6 @@
82
87
  "optionalIdentifierLabel": "{{identifierName}} (optional)",
83
88
  "other": "其他",
84
89
  "patientNameKnown": "患者的姓名已知?",
85
- "patientRegistrationBreadcrumb": "患者注册",
86
90
  "refreshOrContactAdmin": "尝试刷新页面或联系您的系统管理员",
87
91
  "registerPatient": "登记患者",
88
92
  "registerPatientSuccessSnackbarSubtitle": "现在可以通过姓名或ID号搜索到该患者",
@@ -101,6 +105,7 @@
101
105
  "restoreRelationshipActionButton": "撤销",
102
106
  "searchAddress": "搜索地址",
103
107
  "searchIdentifierPlaceholder": "搜索ID标识",
108
+ "searching": "搜索中...",
104
109
  "searchLocationPersonAttribute": "搜索地点",
105
110
  "selectAnOption": "选择一个选项",
106
111
  "sexFieldLabelText": "性别",
@@ -26,7 +26,7 @@
26
26
  "deathDateInFuture": "Death date cannot be in future",
27
27
  "deathDateInputLabel": "Date of death",
28
28
  "deathDateRequired": "Death date is required",
29
- "deathdayInvalidDate": "Death date and time cannot be before the birthday",
29
+ "deathdayBeforeBirthday": "Death date and time cannot be before the birthday",
30
30
  "deathdayIsRequired": "Death date is required when the patient is marked as deceased.",
31
31
  "deathdayNotInTheFuture": "",
32
32
  "deathSection": "Death Info",
@@ -44,11 +44,12 @@
44
44
  "dobToggleLabelText": "Date of Birth Known?",
45
45
  "editIdentifierTooltip": "Edit",
46
46
  "editPatientDetails": "Edit patient details",
47
- "editPatientDetailsBreadcrumb": "Edit patient details",
48
47
  "enterNonCodedCauseOfDeath": "Enter non-coded cause of death",
49
48
  "error": "Error",
49
+ "errorFetchingAddresses": "Error fetching address results",
50
50
  "errorFetchingCodedCausesOfDeath": "Error fetching coded causes of death",
51
51
  "errorFetchingOrderedFields": "Error occured fetching ordered fields for address hierarchy",
52
+ "errorFetchingResults": "Error fetching results",
52
53
  "estimatedAgeInMonthsLabelText": "Estimated age in months",
53
54
  "estimatedAgeInYearsLabelText": "Estimated age in years",
54
55
  "familyNameLabelText": "Family Name",
@@ -64,17 +65,21 @@
64
65
  "identifierValueRequired": "Identifier value is required",
65
66
  "idFieldLabelText": "Identifiers",
66
67
  "IDInstructions": "Select the identifiers you'd like to add for this patient:",
68
+ "inputDummyData": "Input Dummy Data",
67
69
  "invalidEmail": "Invalid email",
68
70
  "invalidInput": "Invalid Input",
69
71
  "isDeadInputLabel": "Is dead",
70
72
  "jumpTo": "Jump to",
73
+ "loading": "Loading",
71
74
  "male": "Male",
72
75
  "middleNameLabelText": "Middle Name",
73
76
  "negativeMonths": "Estimated months cannot be negative",
74
77
  "negativeYears": "Estimated years cannot be negative",
75
78
  "no": "No",
79
+ "noAddressResults": "No matching addresses found",
80
+ "noMatchingResults": "No matching results",
76
81
  "nonCodedCauseOfDeath": "Non-coded cause of death",
77
- "nonCodedCauseOfDeathRequired": "Cause of death is required",
82
+ "nonCodedCauseOfDeathRequiredWhenSelected": "Non-coded cause of death is required",
78
83
  "nonsensicalYears": "Estimated years cannot be more than 140",
79
84
  "numberInNameDubious": "Number in name is dubious",
80
85
  "obsFieldUnknownDatatype": "Concept for obs field '{{fieldDefinitionId}}' has unknown datatype '{{datatypeName}}'",
@@ -82,7 +87,6 @@
82
87
  "optionalIdentifierLabel": "{{identifierName}} (optional)",
83
88
  "other": "Other",
84
89
  "patientNameKnown": "Patient's Name is Known?",
85
- "patientRegistrationBreadcrumb": "Patient Registration",
86
90
  "refreshOrContactAdmin": "Try refreshing the page or contact your system administrator",
87
91
  "registerPatient": "Register patient",
88
92
  "registerPatientSuccessSnackbarSubtitle": "The patient can now be found by searching for them using their name or ID number",
@@ -101,6 +105,7 @@
101
105
  "restoreRelationshipActionButton": "Undo",
102
106
  "searchAddress": "Search address",
103
107
  "searchIdentifierPlaceholder": "Search identifier",
108
+ "searching": "Searching...",
104
109
  "searchLocationPersonAttribute": "Search location",
105
110
  "selectAnOption": "Select an option",
106
111
  "sexFieldLabelText": "Sex",
@@ -0,0 +1,4 @@
1
+ import { mergeConfig } from 'vitest/config';
2
+ import sharedConfig from '../../tools/vitest.shared';
3
+
4
+ export default mergeConfig(sharedConfig, {});
package/dist/126.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["126"],{82314:function(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayInvalidDate":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","editPatientDetailsBreadcrumb":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","patientRegistrationBreadcrumb":"Patient Registration","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
package/dist/15.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["15"],{70350:function(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayInvalidDate":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","editPatientDetailsBreadcrumb":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","patientRegistrationBreadcrumb":"Patient Registration","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
package/dist/1564.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["1564"],{65374:function(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayInvalidDate":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","editPatientDetailsBreadcrumb":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","patientRegistrationBreadcrumb":"Patient Registration","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
package/dist/1567.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["1567"],{68654:function(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"أضف علاقة","addressHeader":"العنوان","allFieldsRequiredText":"جميع الحقول مطلوبة ما لم يتم التأشير عليها بأنها اختيارية","autoGeneratedPlaceholderText":"تم إنشاؤه تلقائيًا","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"الميلاد","cancel":"إلغاء","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"تكوين","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"تفاصيل الاتصال","createNewPatient":"Create new patient","dateOfBirthLabelText":"تاريخ الميلاد","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"تاريخ الوفاة","deathDateRequired":"Death date is required","deathdayInvalidDate":"لا يمكن أن يكون تاريخ ووقت الوفاة قبل عيد الميلاد","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"معلومات الوفاة","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"حذف","deleteRelationshipTooltipText":"حذف","demographicsSection":"معلومات أساسية","discard":"تجاهل","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"هل تاريخ الميلاد معروف؟","editIdentifierTooltip":"تعديل","editPatientDetails":"تعديل تفاصيل المريض","editPatientDetailsBreadcrumb":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"خطأ","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"حدث خطأ أثناء جلب الحقول المرتبة لتسلسل العنوان","estimatedAgeInMonthsLabelText":"العمر المقدر بالشهور","estimatedAgeInYearsLabelText":"العمر المقدر بالسنوات","familyNameLabelText":"اسم العائلة","familyNameRequired":"Family name is required","female":"أنثى","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"الاسم الكامل","genderLabelText":"الجنس","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"الاسم الأول","givenNameRequired":"Given name is required","identifierValueRequired":"قيمة المعرف مطلوبة","idFieldLabelText":"المعرفات","IDInstructions":"Select the identifiers you\'d like to add for this patient:","invalidEmail":"Invalid email","invalidInput":"إدخال غير صالح","isDeadInputLabel":"Is dead","jumpTo":"اذهب إلى","male":"ذكر","middleNameLabelText":"الاسم الأوسط","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"لا","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"اختياري","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"آخر","patientNameKnown":"هل اسم المريض معروف؟","patientRegistrationBreadcrumb":"Patient Registration","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"تسجيل المريض","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"العلاقة","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"العلاقة","relationshipRemovedText":"تمت إزالة العلاقة","relationshipsSection":"العلاقات","relationshipToPatient":"العلاقة بالمريض","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"الاسم الأول اسم العائلة","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"إعادة تعيين","restoreRelationshipActionButton":"تراجع","searchAddress":"ابحث عن العنوان","searchIdentifierPlaceholder":"Search identifier","searchLocationPersonAttribute":"موقع البحث","selectAnOption":"اختر خيارًا","sexFieldLabelText":"الجنس","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"غير معروف","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"نعم"}')}}]);
package/dist/1845.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["1845"],{19847:function(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayInvalidDate":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","editPatientDetailsBreadcrumb":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","patientRegistrationBreadcrumb":"Patient Registration","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
package/dist/1953.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["1953"],{6071:function(e){e.exports=JSON.parse('{"addPatient":"Add patient","addRelationshipButtonText":"Add Relationship","addressHeader":"Address","allFieldsRequiredText":"All fields are required unless marked optional","autoGeneratedPlaceholderText":"Auto-generated","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"Birth","cancel":"Cancel","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configure","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Contact Details","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayInvalidDate":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"Death Info","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Delete","deleteRelationshipTooltipText":"Delete","demographicsSection":"Basic Info","discard":"Discard","discardModalBody":"The changes you made to this patient\'s details have not been saved. Discard changes?","dobToggleLabelText":"Date of Birth Known?","editIdentifierTooltip":"Edit","editPatientDetails":"Edit patient details","editPatientDetailsBreadcrumb":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"Error occured fetching ordered fields for address hierarchy","estimatedAgeInMonthsLabelText":"Estimated age in months","estimatedAgeInYearsLabelText":"Estimated age in years","familyNameLabelText":"Family Name","familyNameRequired":"Family name is required","female":"Female","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"Full Name","genderLabelText":"Sex","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"First Name","givenNameRequired":"Given name is required","identifierValueRequired":"Identifier value is required","idFieldLabelText":"Identifiers","IDInstructions":"Select the identifiers you\'d like to add for this patient:","invalidEmail":"Invalid email","invalidInput":"Invalid Input","isDeadInputLabel":"Is dead","jumpTo":"Jump to","male":"Male","middleNameLabelText":"Middle Name","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"No","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"optional","optionalIdentifierLabel":"{{identifierName}} (optional)","other":"Other","patientNameKnown":"Patient\'s Name is Known?","patientRegistrationBreadcrumb":"Patient Registration","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relationship","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relationship","relationshipRemovedText":"Relationship removed","relationshipsSection":"Relationships","relationshipToPatient":"Relationship to patient","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"Firstname Familyname","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"Reset","restoreRelationshipActionButton":"Undo","searchAddress":"Search address","searchIdentifierPlaceholder":"Search identifier","searchLocationPersonAttribute":"Search location","selectAnOption":"Select an option","sexFieldLabelText":"Sex","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"Unknown","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"Yes"}')}}]);
package/dist/200.js DELETED
@@ -1 +0,0 @@
1
- (globalThis.webpackChunk_olaboot_esm_patient_registration_app=globalThis.webpackChunk_olaboot_esm_patient_registration_app||[]).push([["200"],{23730:function(e,t,n){"use strict";n.d(t,{Z:()=>s});var r=n(49130),i=n.n(r),a=n(22577),o=n.n(a)()(i());o.push([e.id,".-esm-patient-registration__add-patient-link__slotStyles___ejEWZ{background-color:rgba(0,0,0,0)}","",{version:3,sources:["webpack://./src/add-patient-link.scss"],names:[],mappings:"AAAA,iEACE,8BAAA",sourcesContent:[".slotStyles {\r\n background-color: transparent;\r\n}\r\n"],sourceRoot:""}]),o.locals={slotStyles:"-esm-patient-registration__add-patient-link__slotStyles___ejEWZ"};let s=o},55617:function(e,t,n){"use strict";n.d(t,{X8:()=>s,bT:()=>u,bs:()=>o});var r=n(30144);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=[{id:"demographics",name:"Basic Info",fields:["name","gender","dob","id"]},{id:"contact",name:"Contact Details",fields:["address","phone"]},{id:"death",name:"Death Info",fields:["dateAndTimeOfDeath","causeOfDeath"]},{id:"relationships",name:"Relationships",fields:[]}],s=["name","gender","dob","id","address","phone","causeOfDeath","dateAndTimeOfDeath"],u={sections:{_type:r.Type.Array,_default:["demographics","contact","relationships"],_description:"An array of strings which are the keys from 'sectionDefinitions' or any of the following built-in sections: '".concat(o.map(function(e){return e.id}).join("', '"),"'."),_elements:{_type:r.Type.String}},sectionDefinitions:{_type:r.Type.Array,_default:[],_elements:{id:{_type:r.Type.String,_description:"How this section will be referred to in the `sections` configuration. To override a built-in section, use that section's id. The built in section ids are '".concat(o.map(function(e){return e.id}).join("', '"),"'.")},name:{_type:r.Type.String,_description:"The title to display at the top of the section."},fields:{_type:r.Type.Array,_default:[],_description:"The parts to include in the section. Can be any of the following built-in fields: ".concat(s.join(", "),". Can also be an id from an object in the `fieldDefinitions` array, which you can use to define custom fields."),_elements:{_type:r.Type.String}}}},fieldDefinitions:{_type:r.Type.Array,_default:[],_description:"Definitions for custom fields that can be used in sectionDefinitions. Can also be used to override built-in fields.",_elements:{id:{_type:r.Type.String,_description:"How this field will be referred to in the `fields` element of the `sectionDefinitions` configuration."},type:{_type:r.Type.String,_description:"How this field's data will be stored—a person attribute or an obs.",_validators:[r.validators.oneOf(["person attribute","obs"])]},uuid:{_type:r.Type.UUID,_description:"Person attribute type UUID that this field's data should be saved to."},showHeading:{_type:r.Type.Boolean,_default:!1,_description:"Whether to show a heading above the person attribute field."},label:{_type:r.Type.String,_default:"",_description:"The label of the input. By default, uses the metadata `display` attribute."},placeholder:{_type:r.Type.String,_default:"",_description:"Placeholder that will appear in the input."},allowFutureDates:{_type:r.Type.Boolean,_default:!0,_description:"Indicates whether the date input field should allow the selection of future dates or not."},allowPastDates:{_type:r.Type.Boolean,_default:!0,_description:"Indicates whether the date input field should allow the selection of past dates or not."},validation:{required:{_type:r.Type.Boolean,_default:!1},matches:{_type:r.Type.String,_default:"",_description:"Optional RegEx for testing the validity of the input."}},locationTag:{_type:r.Type.String,_default:"",_description:'Only for fields with "person attribute" type `org.openmrs.Location`. This filters the list of location options in the dropdown based on their location tag. By default, all locations are shown.'},answerConceptSetUuid:{_type:r.Type.ConceptUuid,_default:"",_description:"For coded questions only. A concept which has the possible responses either as answers or as set members."},customConceptAnswers:{_type:r.Type.Array,_default:[],_description:"For coded questions only (obs or person attrbute). A list of custom concept answers. Overrides answers that come from the obs concept or from `answerSetConceptUuid`.",_elements:{uuid:{_type:r.Type.UUID,_description:"Answer concept UUID"},label:{_type:r.Type.String,_default:"",_description:"The custom label for the answer concept."}}}}},fieldConfigurations:{causeOfDeath:{conceptUuid:{_type:r.Type.ConceptUuid,_default:"9272a14b-7260-4353-9e5b-5787b5dead9d",_description:"The concept UUID to get cause of death answers"},required:{_type:r.Type.Boolean,_default:!1}},name:{displayMiddleName:{_type:r.Type.Boolean,_default:!0},allowUnidentifiedPatients:{_type:r.Type.Boolean,_default:!0,_description:"Whether to allow registering unidentified patients."},defaultUnknownGivenName:{_type:r.Type.String,_default:"UNKNOWN",_description:"The given/first name to record for unidentified patients."},defaultUnknownFamilyName:{_type:r.Type.String,_default:"UNKNOWN",_description:"The family/last name to record for unidentified patients."},displayCapturePhoto:{_type:r.Type.Boolean,_default:!0,_description:"Whether to display capture patient photo slot on name field"},displayReverseFieldOrder:{_type:r.Type.Boolean,_default:!1,_description:"Whether to display the name fields in the order 'Family name' -> 'Middle name' -> 'First name'"}},gender:{_type:r.Type.Array,_default:[{value:"male"},{value:"female"},{value:"other"},{value:"unknown"}],_description:"The options for sex selection during patient registration. This is Administrative Gender as it is called by FHIR (Possible options are limited to those defined in FHIR Administrative Gender, see https://hl7.org/fhir/R4/valueset-administrative-gender.html).",_elements:{value:{_type:r.Type.String,_description:"Value that will be sent to the server. Limited to FHIR-supported values for Administrative Gender",_validators:[r.validators.oneOf(["male","female","other","unknown"])]},label:{_type:r.Type.String,_default:"",_description:'The label displayed for the sex option, if it should be different from the value (the value will be translated; the English "translation" is upper-case).'}}},address:{useAddressHierarchy:{enabled:{_type:r.Type.Boolean,_default:!0,_description:"Whether to use the Address hierarchy in the registration form or not"},useQuickSearch:{_type:r.Type.Boolean,_default:!0,_description:"Whether to use the quick searching through the address saved in the database pre-fill the form."},searchAddressByLevel:{_type:r.Type.Boolean,_default:!1,_description:"Whether to fill the addresses by levels, i.e. County => subCounty, the current field is dependent on it's previous field."}},requiredAddressFields:{_type:r.Type.Array,_default:[],_description:"An array of address field names that should be required in the registration form. This overrides the backend address template configuration. Common field names include: country, stateProvince, countyDistrict, cityVillage, address1, address2, postalCode, etc.",_elements:{_type:r.Type.String}}},dateOfBirth:{allowEstimatedDateOfBirth:{_type:r.Type.Boolean,_default:!0,_description:"Whether to allow estimated date of birth for a patient during registration"},useEstimatedDateOfBirth:{enabled:{_type:r.Type.Boolean,_default:!1,_description:"Whether to use a fixed day and month for estimated date of birth"},dayOfMonth:{_type:r.Type.Number,_default:0,_description:"The custom day of the month use on the estimated date of birth (0 = last day of previous month, 1-31 = specific day)",_validators:[r.validators.inRange(0,31)]},month:{_type:r.Type.Number,_default:0,_description:"The custom month to use on the estimated date of birth i.e 0 = Jan & 11 = Dec",_validators:[r.validators.inRange(0,11)]}}},phone:{personAttributeUuid:{_type:r.Type.UUID,_default:"14d4f066-15f5-102d-96e4-000c29c2a5d7",_description:"The UUID of the phone number person attribute type"},validation:{required:{_type:r.Type.Boolean,_default:!1},matches:{_type:r.Type.String,_default:"",_description:"Optional RegEx for testing the validity of the input."}}}},links:{submitButton:{_type:r.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_validators:[r.validators.isUrlWithTemplateParameters(["patientUuid"])]}},defaultPatientIdentifierTypes:{_type:r.Type.Array,_default:[],_description:"A list of patient identifier type UUIDs to be displayed by default in the registration form. These identifiers will be shown in addition to any identifiers marked as required or primary in the backend.",_elements:{_type:r.Type.PatientIdentifierTypeUuid}},identifierTypeOverrides:{_type:r.Type.Array,_default:[],_description:"Allows overriding the required/optional status of specific identifier types. Use this to make backend-required identifiers optional in the frontend.",_elements:{identifierTypeUuid:{_type:r.Type.UUID,_description:"The UUID of the patient identifier type to override."},required:{_type:r.Type.Boolean,_default:!1,_description:"Whether this identifier should be required. Set to false to make a backend-required identifier optional in the frontend."}}},registrationObs:{encounterTypeUuid:{_type:r.Type.UUID,_default:"",_description:"Obs created during registration will be associated with an encounter of this type. This must be set in order to use fields of type `obs`."},encounterProviderRoleUuid:{_type:r.Type.UUID,_default:"a0b03050-c99b-11e0-9572-0800200c9a66",_description:"The provider role to use for the registration encounter. Default is 'Unkown'."},registrationFormUuid:{_type:r.Type.UUID,_default:"",_description:"The form UUID to associate with the registration encounter. By default no form will be associated."}},freeTextFieldConceptUuid:{_type:r.Type.ConceptUuid,_default:"5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},_validators:[(0,r.validator)(function(e){return!e.fieldDefinitions.some(function(e){return"obs"==e.type})||null!=e.registrationObs.encounterTypeUuid},"If fieldDefinitions contains any fields of type 'obs', `registrationObs.encounterTypeUuid` must be specified."),(0,r.validator)(function(e){return e.sections.every(function(t){return a(o).concat(a(e.sectionDefinitions)).map(function(e){return e.id}).includes(t)})},function(e){var t=a(o).concat(a(e.sectionDefinitions)).map(function(e){return e.id}),n=e.sections.find(function(e){return!t.includes(e)});return"'".concat(n,"' is not a valid section ID. Valid section IDs include the built-in sections ").concat(l(o))+(e.sectionDefinitions.length?"; and the defined sections ".concat(l(e.sectionDefinitions),"."):".")}),(0,r.validator)(function(e){return e.sectionDefinitions.every(function(t){return t.fields.every(function(t){return a(s).concat(a(e.fieldDefinitions.map(function(e){return e.id}))).includes(t)})})},function(e){var t=a(s).concat(a(e.fieldDefinitions.map(function(e){return e.id}))),n=e.sectionDefinitions.find(function(e){return e.fields.some(function(e){return!t.includes(e)})}),r=n.fields.find(function(e){return!t.includes(e)});return"The section definition '".concat(n.id,"' contains an invalid field '").concat(r,"'. 'fields' can only contain the built-in fields '").concat(s.join("', '"),"'")+(e.fieldDefinitions.length?"; or the defined fields ".concat(l(e.fieldDefinitions),"."):".")})]};function l(e){return"'".concat(e.map(function(e){return e.id}).join("', '"),"'")}},99172:function(e,t,n){"use strict";n.d(t,{Kt:()=>l,QT:()=>c,UO:()=>s,e1:()=>u});var r,i,a,o=n(30144),s="custom:(display,uuid,personA:(age,display,birthdate,uuid),personB:(age,display,birthdate,uuid),relationshipType:(uuid,display,description,aIsToB,bIsToA))",u="@olaboot/esm-patient-registration-app",l="patient-registration",c=(r={},i=o.omrsOfflineCachingStrategyHttpHeaderName,a="network-first",i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r)},53913:function(e,t,n){"use strict";n.r(t),n.d(t,{editPatientDetailsButton:()=>M,startupApp:()=>N,cancelPatientEditModal:()=>q,patientPhotoExtension:()=>L,addPatientLink:()=>x,deleteIdentifierConfirmationModal:()=>W,editPatient:()=>R,importTranslation:()=>I,root:()=>F});var r=n(30144),i=n(55617),a=n(99172),o=n(54736),s=n(45549);function u(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){u(a,r,i,o,s,"next",e)}function s(e){u(a,r,i,o,s,"throw",e)}o(void 0)})}}function c(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){var l=[s,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function d(e){return["".concat(r.fhirBaseUrl,"/Patient/").concat(e),"".concat(r.restBaseUrl,"/relationship?v=").concat(a.UO,"&person=").concat(e),"".concat(r.restBaseUrl,"/person/").concat(e,"/attribute"),"".concat(r.restBaseUrl,"/patient/").concat(e,"/identifier?v=custom:(uuid,identifier,identifierType:(uuid,required,name),preferred)")].map(function(e){return window.origin+(0,r.makeUrl)(e)})}function f(e,t){return l(function(){return c(this,function(n){switch(n.label){case 0:return[4,s.y.savePatientFormOnline(e._patientRegistrationData.isNewPatient,e._patientRegistrationData.formValues,e._patientRegistrationData.patientUuidMap,e._patientRegistrationData.initialAddressFieldValues,e._patientRegistrationData.capturePhotoProps,e._patientRegistrationData.currentLocation,e._patientRegistrationData.initialIdentifierValues,e._patientRegistrationData.currentUser,e._patientRegistrationData.config,e._patientRegistrationData.savePatientTransactionManager,t.abort)];case 1:return n.sent(),[2]}})})()}var p=n(34278),h=n.n(p),y=n(8360),m=n(12369),b=n(27446),v=n(46062),g=n.n(v),_=n(44036),T=n.n(_),w=n(96793),U=n.n(w),A=n(17892),D=n.n(A),S=n(11173),O=n.n(S),j=n(42464),P=n.n(j),B=n(23730),k={};k.styleTagTransform=P(),k.setAttributes=D(),k.insert=U().bind(null,"head"),k.domAPI=T(),k.insertStyleElement=O(),g()(B.Z,k);let C=B.Z&&B.Z.locals?B.Z.locals:void 0;var I=n(6626),E={featureName:"Patient Registration",moduleName:a.e1};function N(){(0,r.defineConfigSchema)(a.e1,i.bT),(0,r.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(a.Kt),title:function(){return Promise.resolve(window.i18next.t("patientRegistrationBreadcrumb",{defaultValue:"Patient Registration",ns:a.e1}))},parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient/:patientUuid/edit"),title:function(){return Promise.resolve(window.i18next.t("editPatientDetailsBreadcrumb",{defaultValue:"Edit patient details",ns:a.e1}))},parent:"".concat(window.spaBase,"/patient/:patientUuid/chart")}]),(0,r.setupOfflineSync)(a.Kt,[],f,{onBeginEditSyncItem:function(e){(0,r.navigate)({to:"${openmrsSpaBase}/patient/".concat(e.content.fhirPatient.id,"/edit")})}}),l(function(){return c(this,function(e){switch(e.label){case 0:return[4,Promise.all([(0,o.X1)(),(0,o.Te)(),(0,o.mt)(),(0,o.bx)(),(0,o.St)()])];case 1:return e.sent(),[2]}})})(),(0,r.setupDynamicOfflineDataHandler)({id:"esm-patient-registration-app:patient",type:"patient",displayName:"Patient registration",isSynced:function(e){return l(function(){var t,n;return c(this,function(r){switch(r.label){case 0:return t=d(e),[4,caches.open("omrs-spa-cache-v1")];case 1:return[4,r.sent().keys()];case 2:return n=r.sent().map(function(e){return e.url}),[2,t.every(function(e){return n.includes(e)})]}})})()},sync:function(e){return l(function(){return c(this,function(t){switch(t.label){case 0:return[4,Promise.allSettled(d(e).map(function(e){return l(function(){return c(this,function(t){switch(t.label){case 0:return[4,(0,r.messageOmrsServiceWorker)({type:"registerDynamicRoute",url:e})];case 1:return t.sent(),[4,fetch(e)];case 2:return t.sent(),[2]}})})()}))];case 1:return t.sent(),[2]}})})()}})}var F=(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e("2716"),n.e("8538"),n.e("1282"),n.e("9351"),n.e("250")]).then(n.bind(n,77447))},E),R=(0,r.getAsyncLifecycle)(function(){return Promise.all([n.e("2716"),n.e("8538"),n.e("1282"),n.e("9351"),n.e("250")]).then(n.bind(n,77447))},E),x=(0,r.getSyncLifecycle)(function(){var e=(0,y.useTranslation)().t,t=h().useCallback(function(){return(0,r.navigate)({to:"${openmrsSpaBase}/patient-registration"})},[]);return h().createElement(m.JMr,{"aria-label":e("addPatient","Add patient"),"aria-labelledby":e("addPatient","Add patient"),onClick:t,className:C.slotStyles},h().createElement(b.JT,{size:20}))},E),q=(0,r.getAsyncLifecycle)(function(){return n.e("7439").then(n.bind(n,93500))},E),L=(0,r.getAsyncLifecycle)(function(){return n.e("7984").then(n.bind(n,66633))},E),M=(0,r.getAsyncLifecycle)(function(){return n.e("2523").then(n.bind(n,73784))},E),W=(0,r.getAsyncLifecycle)(function(){return n.e("7154").then(n.bind(n,81339))},E)},54736:function(e,t,n){"use strict";n.d(t,{St:()=>b,Te:()=>h,X1:()=>p,bx:()=>m,mt:()=>y});var r=n(77890),i=n(14634),a=n(68898),o=n(30144),s=n(99172);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){l(a,r,i,o,s,"next",e)}function s(e){l(a,r,i,o,s,"throw",e)}o(void 0)})}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){var l=[s,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function p(){return c(function(){return f(this,function(e){switch(e.label){case 0:return[4,v("".concat(o.restBaseUrl,"/session"))];case 1:return[2,e.sent().data]}})})()}function h(){return c(function(){return f(this,function(e){switch(e.label){case 0:return[4,v("".concat(o.restBaseUrl,"/addresstemplate"))];case 1:return[2,e.sent().data]}})})()}function y(){return c(function(){return f(this,function(e){switch(e.label){case 0:return[4,v("".concat(o.restBaseUrl,"/relationshiptype?v=default"))];case 1:return[2,e.sent().data]}})})()}function m(){return c(function(){var e;return f(this,function(t){switch(t.label){case 0:return[4,(0,o.getConfig)(s.e1)];case 1:if(!(e=t.sent()).fieldDefinitions)return[2];return[4,Promise.all(e.fieldDefinitions.map(function(e){var t;return t=e,c(function(){var e;return f(this,function(n){switch(n.label){case 0:if(e="","person attribute"===t.type&&(e="".concat(o.restBaseUrl,"/personattributetype/").concat(t.uuid)),!t.answerConceptSetUuid)return[3,2];return[4,v("".concat(o.restBaseUrl,"/concept/").concat(t.answerConceptSetUuid))];case 1:n.sent(),n.label=2;case 2:return[4,v(e)];case 3:return[2,n.sent().data]}})})()}))];case 2:return[2,t.sent().reduce(function(e,t){return t&&e.push(t),e},[])]}})})()}function b(){return c(function(){var e,t,n,i,a,s;return f(this,function(u){switch(u.label){case 0:return e=function(e){t[e].identifierSources=a.filter(function(n){return n.identifierType.uuid===t[e].uuid}).map(function(e){var t=(0,r.Z)(i.data.results,{source:{uuid:e.uuid}});return e.autoGenerationOption=t,e})},[4,c(function(){var e,t,n,r,i,a,s,u,l,c;return f(this,function(f){switch(f.label){case 0:return[4,Promise.all([v("".concat(o.restBaseUrl,"/patientidentifiertype?v=custom:(display,uuid,name,format,formatDescription,required,uniquenessBehavior)")),v("".concat(o.restBaseUrl,"/metadatamapping/termmapping?v=full&code=emr.primaryIdentifierType"))])];case 1:if(t=(e=d.apply(void 0,[f.sent(),2]))[0],n=e[1],t.ok)return u=null==t||null==(r=t.data)?void 0:r.results,l=null==n||null==(s=n.data)||null==(a=s.results)||null==(i=a[0])?void 0:i.metadataUuid,c=(null==n?void 0:n.ok)?[g(null==u?void 0:u.find(function(e){return e.uuid===l}),!0)]:[],u.forEach(function(e){e.uuid!==l&&c.push(g(e,!1))}),[2,c];return[2,[]]}})})()];case 1:return t=u.sent().filter(Boolean),[4,Promise.all([c(function(){return f(this,function(e){switch(e.label){case 0:return[4,v("".concat(o.restBaseUrl,"/idgen/autogenerationoption?v=full"))];case 1:return[2,e.sent()]}})})(),c(function(){return f(this,function(e){switch(e.label){case 0:return[4,v("".concat(o.restBaseUrl,"/idgen/identifiersource?v=default"))];case 1:return[2,e.sent()]}})})()])];case 2:for(s=0,i=(n=d.apply(void 0,[u.sent(),2]))[0],a=n[1].data.results;s<(null==t?void 0:t.length);s++)e(s);return[2,t]}})})()}function v(e){return c(function(){var t;return f(this,function(n){switch(n.label){case 0:return t=new AbortController,[4,(0,o.messageOmrsServiceWorker)({type:"registerDynamicRoute",pattern:(0,i.Z)(e)})];case 1:return n.sent(),[4,(0,o.openmrsFetch)(e,{headers:s.QT,signal:null==t?void 0:t.signal})];case 2:return[2,n.sent()]}})})()}function g(e,t){return{name:e.display,fieldName:(0,a.Z)(e.name),required:e.required,uuid:e.uuid,format:e.format,formatDescription:e.formatDescription,isPrimary:t,uniquenessBehavior:e.uniquenessBehavior}}},45549:function(e,t,n){"use strict";n.d(t,{I:()=>y,y:()=>h});var r=n(30144),i=n(99172),a=n(7425);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,u,"next",e)}function u(e){s(a,r,i,o,u,"throw",e)}o(void 0)})}}function l(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){c(e,t,n[t])})}return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){var l=[s,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var h=function(){var e;function t(){l(this,t)}return e=[{key:"saveRelationships",value:function(e,t){return u(function(){return p(this,function(n){return[2,Promise.all(e.filter(function(e){return e.relationshipType}).filter(function(e){return!!e.action}).map(function(e){var n=e.relatedPersonUuid,r=e.relationshipType,i=e.uuid,o=e.action,s=f(r.split("/"),2),u=s[0],l=s[1],c=t.data.uuid,d="aIsToB"===l,p={personA:d?n:c,personB:d?c:n,relationshipType:u};switch(o){case"ADD":return(0,a.bL)(p);case"UPDATE":return(0,a.r6)(i,p);case"DELETE":return(0,a.kE)(i)}}))]})})()}},{key:"saveObservations",value:function(e,t,n,r,i){return u(function(){var o;return p(this,function(s){if(e&&Object.keys(e).length>0)if(i.registrationObs.encounterTypeUuid)return o={encounterDatetime:new Date,patient:t.data.uuid,encounterType:i.registrationObs.encounterTypeUuid,location:n,encounterProviders:[{provider:r.currentProvider.uuid,encounterRole:i.registrationObs.encounterProviderRoleUuid}],form:i.registrationObs.registrationFormUuid,obs:Object.entries(e).filter(function(e){return""!==f(e,2)[1]}).map(function(e){var t=f(e,2);return{concept:t[0],value:t[1]}})},[2,(0,a.M1)(o)];else console.error("The registration form has been configured to have obs fields, but no registration encounter type has been configured. Obs field values will not be saved.");return[2]})})()}},{key:"savePatientIdentifiers",value:function(e,t,n,r,i){return u(function(){var o;return p(this,function(s){return o=Object.values(n).filter(function(e){var t=e.identifierValue,n=e.autoGeneration,r=e.selectedSource;return t||n&&r}).map(function(n){return u(function(){var r,o,s,u,l,c,d,f,h,y,m,b;return p(this,function(p){switch(p.label){case 0:if(o=n.identifierTypeUuid,s=n.identifierValue,u=n.identifierUuid,l=n.selectedSource,c=n.preferred,d=n.autoGeneration,f=n.initialValue,h=d&&(null==l||null==(r=l.autoGenerationOption)?void 0:r.manualEntryEnabled)&&!!s,!(!d||h))return[3,1];return m=s,[3,4];case 1:return[4,(0,a.fX)(l.uuid)];case 2:return[4,p.sent().data.identifier];case 3:m=p.sent(),p.label=4;case 4:if(b={uuid:u,identifier:y=m,identifierType:o,location:i,preferred:c},e)return[3,8];if(f)return[3,6];return[4,(0,a.eb)(t,b)];case 5:return p.sent(),[3,8];case 6:if(f===y)return[3,8];return[4,(0,a.nI)(t,u,b.identifier)];case 7:p.sent(),p.label=8;case 8:return[2,b]}})})()}),t&&Object.keys(r).filter(function(e){return!n[e]}).forEach(function(e){return u(function(){return p(this,function(n){switch(n.label){case 0:return[4,(0,a.ZB)(t,r[e].identifierUuid)];case 1:return n.sent(),[2]}})})()}),[2,Promise.all(o)]})})()}},{key:"getDeletedNames",value:function(e,t){return(null==t?void 0:t.additionalNameUuid)?[{nameUuid:t.additionalNameUuid,personUuid:e}]:[]}},{key:"getPatientToCreate",value:function(e,n,r,i,a,o){var s,u,l;return u=n.birthdate,s=(null!=(l=Date)&&"undefined"!=typeof Symbol&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](u):u instanceof l)?[n.birthdate.getFullYear(),n.birthdate.getMonth()+1,n.birthdate.getDate()].join("-"):n.birthdate,{uuid:n.patientUuid,person:d({uuid:n.patientUuid,names:t.getNames(n,r),gender:n.gender.charAt(0).toUpperCase(),birthdate:s,birthdateEstimated:n.birthdateEstimated,attributes:t.getPatientAttributes(e,n,r),addresses:[n.address]},t.getPatientDeathInfo(n,o)),identifiers:a}}},{key:"getNames",value:function(e,t){var n=[{uuid:t.preferredNameUuid,preferred:!0,givenName:e.givenName,middleName:e.middleName,familyName:e.familyName}];return e.addNameInLocalLanguage&&n.push({uuid:t.additionalNameUuid,preferred:!1,givenName:e.additionalGivenName,middleName:e.additionalMiddleName,familyName:e.additionalFamilyName}),n}},{key:"getPatientAttributes",value:function(e,t,n){var i=[];return t.attributes&&(Object.entries(t.attributes).filter(function(e){return!!f(e,2)[1]}).forEach(function(e){var t=f(e,2),n=t[0],r=t[1];i.push({attributeType:n,value:r})}),!e&&t.patientUuid&&Object.entries(t.attributes).filter(function(e){return!f(e,2)[1]}).forEach(function(e){var i=f(e,1)[0];return u(function(){var e;return p(this,function(a){switch(a.label){case 0:return e=n["attribute.".concat(i)],[4,(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/person/").concat(t.patientUuid,"/attribute/").concat(e),{method:"DELETE"}).catch(function(e){console.error(e)})];case 1:return a.sent(),[2]}})})()})),i}},{key:"getPatientDeathInfo",value:function(e,t){var n=e.isDead,i=e.deathDate,o=e.deathTime,s=e.deathTimeFormat,u=e.deathCause,l=e.nonCodedCauseOfDeath;return n?d({dead:!0,deathDate:(0,r.toOmrsIsoString)((0,a.Gw)(i,o,s))},u===(null==t?void 0:t.freeTextFieldConceptUuid)?{causeOfDeathNonCoded:l,causeOfDeath:null}:{causeOfDeath:u,causeOfDeathNonCoded:null}):{dead:!1}}},{key:"mapPatientToFhirPatient",value:function(e){var t,n,r,i,a,o;return{id:e.uuid,gender:null==(t=e.person)?void 0:t.gender,birthDate:null==(n=e.person)?void 0:n.birthdate,deceasedBoolean:e.person.dead,deceasedDateTime:e.person.deathDate,name:null==(i=e.person)||null==(r=i.names)?void 0:r.map(function(e){return{given:[e.givenName,e.middleName].filter(Boolean),family:e.familyName}}),address:null==(a=e.person)?void 0:a.addresses.map(function(e){return{city:e.cityVillage,country:e.country,postalCode:e.postalCode,state:e.stateProvince,use:"home"}}),telecom:null==(o=e.person.attributes)?void 0:o.filter(function(e){return"Telephone Number"===e.attributeType})}}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t,e),t}();c(h,"savePatientFormOffline",function(e,t,n,a,o,s,l,c,d){return u(function(){var u;return p(this,function(f){switch(f.label){case 0:return u={fhirPatient:h.mapPatientToFhirPatient(h.getPatientToCreate(e,t,n,a,[],d)),_patientRegistrationData:{isNewPatient:e,formValues:t,patientUuidMap:n,initialAddressFieldValues:a,capturePhotoProps:o,currentLocation:s,initialIdentifierValues:l,currentUser:c,config:d,savePatientTransactionManager:new y}},[4,(0,r.queueSynchronizationItem)(i.Kt,u,{id:t.patientUuid,displayName:"Patient registration",patientUuid:u.fhirPatient.id,dependencies:[]})];case 1:return f.sent(),[2,null]}})})()}),c(h,"savePatientFormOnline",function(e,t,n,i,o,s,l,c,d,f,y){return u(function(){var y,m,b,v;return p(this,function(g){switch(g.label){case 0:return[4,h.savePatientIdentifiers(e,t.patientUuid,t.identifiers,l,s)];case 1:return y=g.sent(),m=h.getPatientToCreate(e,t,n,i,y,d),h.getDeletedNames(t.patientUuid,n).forEach(function(e){return u(function(){return p(this,function(t){switch(t.label){case 0:return[4,(0,a.uO)(e.nameUuid,e.personUuid)];case 1:return t.sent(),[2]}})})()}),[4,(0,a.co)(m,e&&!f.patientSaved?void 0:t.patientUuid)];case 2:if(!(b=g.sent()).ok)return[3,7];return f.patientSaved=!0,[4,h.saveRelationships(t.relationships,b)];case 3:return g.sent(),[4,h.saveObservations(t.obs,b,s,c,d)];case 4:return g.sent(),[4,(0,r.getConfig)("@openmrs/esm-styleguide")];case 5:if(!((v=g.sent().patientPhotoConceptUuid)&&(null==o?void 0:o.imageData)))return[3,7];return[4,(0,a.oV)(b.data.uuid,o.imageData,"".concat(r.restBaseUrl,"/obs"),o.dateTime||new Date().toISOString(),v)];case 6:g.sent(),g.label=7;case 7:return[2,b.data.uuid]}})})()});var y=function e(){l(this,e),c(this,"patientSaved",!1)}},7425:function(e,t,n){"use strict";n.d(t,{Gw:()=>A,M1:()=>p,M8:()=>_,ZB:()=>U,bL:()=>m,co:()=>f,eb:()=>T,fX:()=>h,kE:()=>v,nI:()=>w,oV:()=>g,r6:()=>b,uO:()=>y});var r=n(30144),i=n(11063),a=n.n(i);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){s(a,r,i,o,u,"next",e)}function u(e){s(a,r,i,o,u,"throw",e)}o(void 0)})}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||c(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}function d(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){var l=[s,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(6===l[0]&&a.label<i[1]){a.label=i[1],i=l;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(l);break}i[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function f(e,t){var n=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/patient/").concat(t||""),{headers:{"Content-Type":"application/json"},method:"POST",body:e,signal:n.signal})}function p(e){var t=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/encounter"),{headers:{"Content-Type":"application/json"},method:"POST",body:e,signal:t.signal})}function h(e){var t=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/idgen/identifiersource/").concat(e,"/identifier"),{headers:{"Content-Type":"application/json"},method:"POST",body:{},signal:t.signal})}function y(e,t){var n=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/person/").concat(t,"/name/").concat(e),{method:"DELETE",signal:n.signal})}function m(e){var t=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/relationship"),{headers:{"Content-Type":"application/json"},method:"POST",body:e,signal:t.signal})}function b(e,t){var n=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/relationship/").concat(e),{headers:{"Content-Type":"application/json"},method:"POST",body:{relationshipType:t.relationshipType},signal:n.signal})}function v(e){var t=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/relationship/").concat(e),{headers:{"Content-Type":"application/json"},method:"DELETE",signal:t.signal})}function g(e,t,n,i,a){return u(function(){var o,s;return d(this,function(u){return o=new AbortController,(s=new FormData).append("patient",e),s.append("file",function(e){for(var t=window.atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new Uint8Array(t.length),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return new File([new Blob([r],{type:n})],"patient-photo.png")}(t)),s.append("json",JSON.stringify({person:e,concept:a,groupMembers:[],obsDatetime:i})),[2,(0,r.openmrsFetch)(n,{method:"POST",signal:o.signal,body:s})]})})()}function _(e,t){return u(function(){var n,i,a,s;return d(this,function(u){switch(u.label){case 0:return[4,Promise.all([(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/patient?q=").concat(e),{signal:t.signal}),(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/person?q=").concat(e),{signal:t.signal})])];case 1:var d;return i=(n=l.apply(void 0,[u.sent(),2]))[0],a=n[1],s=function(e){if(Array.isArray(e))return o(e)}(d=i.data.results)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(d)||c(d)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a.data.results.forEach(function(e){s.some(function(t){return t.uuid===e.uuid})||s.push(e)}),[2,s]}})})()}function T(e,t){return u(function(){var n;return d(this,function(i){return n=new AbortController,[2,(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/patient/").concat(e,"/identifier/"),{method:"POST",headers:{"Content-Type":"application/json"},signal:n.signal,body:t})]})})()}function w(e,t,n){return u(function(){var i;return d(this,function(a){return i=new AbortController,[2,(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/patient/").concat(e,"/identifier/").concat(t),{method:"POST",headers:{"Content-Type":"application/json"},signal:i.signal,body:{identifier:n}})]})})()}function U(e,t){return u(function(){var n;return d(this,function(i){return n=new AbortController,[2,(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/patient/").concat(e,"/identifier/").concat(t,"?purge"),{method:"DELETE",headers:{"Content-Type":"application/json"},signal:n.signal})]})})()}function A(e,t,n){var r=new Date(e),i=l(t.split(":").map(Number),2),o=i[0],s=i[1];return a()(r).hour("PM"===n?o%12+12:o%12).minute(s).second(0).millisecond(0).toDate()}},6626:function(e,t,n){var r={"./uk.json":["82314","126"],"./ar.json":["68654","1567"],"./ru_RU.json":["43975","7348"],"./uz_UZ.json":["67323","2178"],"./fr.json":["47572","6456"],"./sw_KE.json":["29988","5595"],"./uz.json":["1695","5961"],"./en.json":["4019","7607"],"./ky.json":["65374","1564"],"./pl.json":["501","3441"],"./sq.json":["48705","8599"],"./ka.json":["86027","5187"],"./si.json":["70350","15"],"./zh_TW.json":["6071","1953"],"./de.json":["91178","9065"],"./lg.json":["27070","5130"],"./vi.json":["45633","9938"],"./tr.json":["39018","9920"],"./es_MX.json":["11516","3746"],"./tr_TR.json":["28002","2759"],"./zh_CN.json":["4843","3925"],"./en_US.json":["29825","3565"],"./he.json":["13326","6133"],"./id.json":["55139","6466"],"./ku.json":["66089","7543"],"./es.json":["64752","2566"],"./ne.json":["19847","1845"],"./ar_SY.json":["83504","9339"],"./uz@Latn.json":["71696","9015"],"./bn.json":["34356","9453"],"./cs.json":["83104","4809"],"./zh.json":["33735","6783"],"./hi_IN.json":["49525","3946"],"./pt_BR.json":["10458","772"],"./qu.json":["56226","4894"],"./ro_RO.json":["44725","3230"],"./sw.json":["25238","8727"],"./am.json":["56","9182"],"./pt.json":["95795","8847"],"./it.json":["87918","215"],"./km.json":["22237","906"],"./hi.json":["76180","6613"]};function i(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],i=t[0];return n.e(t[1]).then(function(){return n(i)})}i.keys=()=>Object.keys(r),i.id=6626,e.exports=i}}]);