@bahmni/registration-app 0.0.1-dev.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +7 -0
  3. package/dist/App.d.ts +4 -0
  4. package/dist/App.d.ts.map +1 -0
  5. package/dist/LNWAZHJI-BY_A0vjK.js +33 -0
  6. package/dist/MWZ6AO7Z-CdNPTGeF.js +42 -0
  7. package/dist/YPM2AS64-BSsKBsT9.js +8975 -0
  8. package/dist/components/common/PersonAttributeInput.d.ts +26 -0
  9. package/dist/components/common/PersonAttributeInput.d.ts.map +1 -0
  10. package/dist/components/common/personAttributeHelpers.d.ts +11 -0
  11. package/dist/components/common/personAttributeHelpers.d.ts.map +1 -0
  12. package/dist/components/common/personAttributeValidation.d.ts +20 -0
  13. package/dist/components/common/personAttributeValidation.d.ts.map +1 -0
  14. package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts +15 -0
  15. package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts.map +1 -0
  16. package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts +15 -0
  17. package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts.map +1 -0
  18. package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts +19 -0
  19. package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts.map +1 -0
  20. package/dist/components/forms/addressInfo/AddressInfo.d.ts +16 -0
  21. package/dist/components/forms/addressInfo/AddressInfo.d.ts.map +1 -0
  22. package/dist/components/forms/contactInfo/ContactInfo.d.ts +15 -0
  23. package/dist/components/forms/contactInfo/ContactInfo.d.ts.map +1 -0
  24. package/dist/components/forms/patientRelationships/PatientRelationships.d.ts +27 -0
  25. package/dist/components/forms/patientRelationships/PatientRelationships.d.ts.map +1 -0
  26. package/dist/components/forms/patientRelationships/RelationshipRow.d.ts +33 -0
  27. package/dist/components/forms/patientRelationships/RelationshipRow.d.ts.map +1 -0
  28. package/dist/components/forms/patientRelationships/index.d.ts +3 -0
  29. package/dist/components/forms/patientRelationships/index.d.ts.map +1 -0
  30. package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts +26 -0
  31. package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts.map +1 -0
  32. package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts +26 -0
  33. package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts.map +1 -0
  34. package/dist/components/forms/profile/Profile.d.ts +25 -0
  35. package/dist/components/forms/profile/Profile.d.ts.map +1 -0
  36. package/dist/components/forms/profile/dateAgeUtils.d.ts +46 -0
  37. package/dist/components/forms/profile/dateAgeUtils.d.ts.map +1 -0
  38. package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts +8 -0
  39. package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts.map +1 -0
  40. package/dist/components/registrationActions/RegistrationActions.d.ts +16 -0
  41. package/dist/components/registrationActions/RegistrationActions.d.ts.map +1 -0
  42. package/dist/components/registrationActions/index.d.ts +3 -0
  43. package/dist/components/registrationActions/index.d.ts.map +1 -0
  44. package/dist/config/tanstackQuery.d.ts +3 -0
  45. package/dist/config/tanstackQuery.d.ts.map +1 -0
  46. package/dist/constants/app.d.ts +6 -0
  47. package/dist/constants/app.d.ts.map +1 -0
  48. package/dist/contexts/PersonAttributesContext.d.ts +16 -0
  49. package/dist/contexts/PersonAttributesContext.d.ts.map +1 -0
  50. package/dist/contexts/RegistrationConfigContext.d.ts +3 -0
  51. package/dist/contexts/RegistrationConfigContext.d.ts.map +1 -0
  52. package/dist/hooks/useAdditionalIdentifiers.d.ts +11 -0
  53. package/dist/hooks/useAdditionalIdentifiers.d.ts.map +1 -0
  54. package/dist/hooks/useAddressFields.d.ts +46 -0
  55. package/dist/hooks/useAddressFields.d.ts.map +1 -0
  56. package/dist/hooks/useAddressFieldsWithConfig.d.ts +32 -0
  57. package/dist/hooks/useAddressFieldsWithConfig.d.ts.map +1 -0
  58. package/dist/hooks/useAddressSuggestions.d.ts +12 -0
  59. package/dist/hooks/useAddressSuggestions.d.ts.map +1 -0
  60. package/dist/hooks/useCreatePatient.d.ts +18 -0
  61. package/dist/hooks/useCreatePatient.d.ts.map +1 -0
  62. package/dist/hooks/useFilteredExtensions.d.ts +15 -0
  63. package/dist/hooks/useFilteredExtensions.d.ts.map +1 -0
  64. package/dist/hooks/usePatientDetails.d.ts +22 -0
  65. package/dist/hooks/usePatientDetails.d.ts.map +1 -0
  66. package/dist/hooks/usePatientPhoto.d.ts +9 -0
  67. package/dist/hooks/usePatientPhoto.d.ts.map +1 -0
  68. package/dist/hooks/usePatientSearch.d.ts +15 -0
  69. package/dist/hooks/usePatientSearch.d.ts.map +1 -0
  70. package/dist/hooks/usePersonAttributeFields.d.ts +35 -0
  71. package/dist/hooks/usePersonAttributeFields.d.ts.map +1 -0
  72. package/dist/hooks/usePersonAttributes.d.ts +8 -0
  73. package/dist/hooks/usePersonAttributes.d.ts.map +1 -0
  74. package/dist/hooks/useRegistrationConfig.d.ts +3 -0
  75. package/dist/hooks/useRegistrationConfig.d.ts.map +1 -0
  76. package/dist/hooks/useRelationshipValidation.d.ts +19 -0
  77. package/dist/hooks/useRelationshipValidation.d.ts.map +1 -0
  78. package/dist/hooks/useUpdatePatient.d.ts +20 -0
  79. package/dist/hooks/useUpdatePatient.d.ts.map +1 -0
  80. package/dist/hooks/useVisit.d.ts +13 -0
  81. package/dist/hooks/useVisit.d.ts.map +1 -0
  82. package/dist/index-CO_ty3tE.js +164388 -0
  83. package/dist/index.css +1 -0
  84. package/dist/index.d.ts +4 -0
  85. package/dist/index.d.ts.map +1 -0
  86. package/dist/index.js +6 -0
  87. package/dist/locales/locale_en.json +159 -0
  88. package/dist/locales/locale_es.json +159 -0
  89. package/dist/models/patient.d.ts +45 -0
  90. package/dist/models/patient.d.ts.map +1 -0
  91. package/dist/models/registrationConfig.d.ts +15 -0
  92. package/dist/models/registrationConfig.d.ts.map +1 -0
  93. package/dist/models/validation.d.ts +74 -0
  94. package/dist/models/validation.d.ts.map +1 -0
  95. package/dist/pages/PatientRegister/PatientRegister.d.ts +3 -0
  96. package/dist/pages/PatientRegister/PatientRegister.d.ts.map +1 -0
  97. package/dist/pages/PatientRegister/patientFormService.d.ts +41 -0
  98. package/dist/pages/PatientRegister/patientFormService.d.ts.map +1 -0
  99. package/dist/pages/PatientRegister/visitTypeSelector.d.ts +9 -0
  100. package/dist/pages/PatientRegister/visitTypeSelector.d.ts.map +1 -0
  101. package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts +13 -0
  102. package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts.map +1 -0
  103. package/dist/pages/patientSearchPage/index.d.ts +8 -0
  104. package/dist/pages/patientSearchPage/index.d.ts.map +1 -0
  105. package/dist/pages/patientSearchPage/utils.d.ts +15 -0
  106. package/dist/pages/patientSearchPage/utils.d.ts.map +1 -0
  107. package/dist/providers/PersonAttributesProvider.d.ts +9 -0
  108. package/dist/providers/PersonAttributesProvider.d.ts.map +1 -0
  109. package/dist/providers/RegistrationConfigProvider.d.ts +9 -0
  110. package/dist/providers/RegistrationConfigProvider.d.ts.map +1 -0
  111. package/dist/utils/ageUtils.d.ts +36 -0
  112. package/dist/utils/ageUtils.d.ts.map +1 -0
  113. package/dist/utils/extensionNavigation.d.ts +9 -0
  114. package/dist/utils/extensionNavigation.d.ts.map +1 -0
  115. package/dist/utils/identifierGenderUtils.d.ts +10 -0
  116. package/dist/utils/identifierGenderUtils.d.ts.map +1 -0
  117. package/dist/utils/patientDataConverter.d.ts +10 -0
  118. package/dist/utils/patientDataConverter.d.ts.map +1 -0
  119. package/dist/utils/translation.d.ts +3 -0
  120. package/dist/utils/translation.d.ts.map +1 -0
  121. package/dist/utils/visitUtils.d.ts +5 -0
  122. package/dist/utils/visitUtils.d.ts.map +1 -0
  123. package/package.json +31 -0
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This Source Code Form is subject to the terms of the Mozilla Public License,
3
+ * v. 2.0. If a copy of the MPL was not distributed with this file, You can
4
+ * obtain one at http://mozilla.org/MPL/2.0/. Bahmni is also distributed under
5
+ * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
6
+ *
7
+ * Copyright 2025. Thoughtworks, Inc. Thoughtworks is a registered trademark
8
+ * and the Thoughtworks graphic logo is a trademark of Thoughtworks Inc.
9
+ */
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # @bahmni/registration-app
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test @bahmni/registration-app` to execute the unit tests via [Vitest](https://vitest.dev/).
package/dist/App.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ declare const RegistrationApp: React.FC;
3
+ export { RegistrationApp };
4
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../src/App.tsx"],"names":[],"mappings":"AASA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAgD5B,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BSsKBsT9.js";
2
+ import { g as d, c as f, a as e } from "./index-CO_ty3tE.js";
3
+ var p = (a) => {
4
+ const [r, t] = c({
5
+ prefix: "TanstackQueryDevtools"
6
+ }), n = d(), s = f(() => {
7
+ const o = r.theme_preference || l;
8
+ return o !== "system" ? o : n();
9
+ });
10
+ return e(i.Provider, {
11
+ value: a,
12
+ get children() {
13
+ return e(m, {
14
+ localStore: r,
15
+ setLocalStore: t,
16
+ get children() {
17
+ return e(u.Provider, {
18
+ value: s,
19
+ get children() {
20
+ return e(v, {
21
+ localStore: r,
22
+ setLocalStore: t
23
+ });
24
+ }
25
+ });
26
+ }
27
+ });
28
+ }
29
+ });
30
+ }, C = p;
31
+ export {
32
+ C as default
33
+ };
@@ -0,0 +1,42 @@
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-BSsKBsT9.js";
2
+ import { g as v, c as C, a as e } from "./index-CO_ty3tE.js";
3
+ var h = (t) => {
4
+ const [r, o] = s({
5
+ prefix: "TanstackQueryDevtools"
6
+ }), a = v(), l = C(() => {
7
+ const n = r.theme_preference || c;
8
+ return n !== "system" ? n : a();
9
+ });
10
+ return e(d.Provider, {
11
+ value: t,
12
+ get children() {
13
+ return e(u, {
14
+ disabled: !0,
15
+ localStore: r,
16
+ setLocalStore: o,
17
+ get children() {
18
+ return e(i.Provider, {
19
+ value: l,
20
+ get children() {
21
+ return e(m, {
22
+ get children() {
23
+ return e(P, {
24
+ localStore: r,
25
+ setLocalStore: o,
26
+ get onClose() {
27
+ return t.onClose;
28
+ },
29
+ showPanelViewOnly: !0
30
+ });
31
+ }
32
+ });
33
+ }
34
+ });
35
+ }
36
+ });
37
+ }
38
+ });
39
+ }, p = h;
40
+ export {
41
+ p as default
42
+ };