@bahmni/registration-app 0.0.1-dev.13 → 0.0.1-dev.130

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 (121) hide show
  1. package/dist/App.d.ts.map +1 -1
  2. package/dist/FormsTable-symiaWjC-CB_KEfzD.js +363 -0
  3. package/dist/{LNWAZHJI-Bw_4ID3r.js → LNWAZHJI-DTfiGcc5.js} +2 -2
  4. package/dist/{MWZ6AO7Z-CaqB01sB.js → MWZ6AO7Z-zxcs_vVh.js} +2 -2
  5. package/dist/Observations-Dkuz2yfC-CZ2o54xj.js +338 -0
  6. package/dist/{YPM2AS64-Ck9T4Pfw.js → YPM2AS64-Dz2qGqyu.js} +3197 -3381
  7. package/dist/components/common/PersonAttributeInput.d.ts +27 -0
  8. package/dist/components/common/PersonAttributeInput.d.ts.map +1 -0
  9. package/dist/components/common/personAttributeHelpers.d.ts +11 -0
  10. package/dist/components/common/personAttributeHelpers.d.ts.map +1 -0
  11. package/dist/components/common/personAttributeValidation.d.ts +20 -0
  12. package/dist/components/common/personAttributeValidation.d.ts.map +1 -0
  13. package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts +15 -0
  14. package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts.map +1 -0
  15. package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts +4 -4
  16. package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts.map +1 -1
  17. package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts +19 -0
  18. package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts.map +1 -0
  19. package/dist/components/forms/addressInfo/AddressInfo.d.ts +3 -1
  20. package/dist/components/forms/addressInfo/AddressInfo.d.ts.map +1 -1
  21. package/dist/components/forms/contactInfo/ContactInfo.d.ts +4 -4
  22. package/dist/components/forms/contactInfo/ContactInfo.d.ts.map +1 -1
  23. package/dist/components/forms/patientRelationships/PatientRelationships.d.ts +27 -0
  24. package/dist/components/forms/patientRelationships/PatientRelationships.d.ts.map +1 -0
  25. package/dist/components/forms/patientRelationships/RelationshipRow.d.ts +33 -0
  26. package/dist/components/forms/patientRelationships/RelationshipRow.d.ts.map +1 -0
  27. package/dist/components/forms/patientRelationships/index.d.ts +3 -0
  28. package/dist/components/forms/patientRelationships/index.d.ts.map +1 -0
  29. package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts +26 -0
  30. package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts.map +1 -0
  31. package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts +26 -0
  32. package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts.map +1 -0
  33. package/dist/components/forms/profile/Profile.d.ts +4 -1
  34. package/dist/components/forms/profile/Profile.d.ts.map +1 -1
  35. package/dist/components/forms/profile/dateAgeUtils.d.ts +2 -0
  36. package/dist/components/forms/profile/dateAgeUtils.d.ts.map +1 -1
  37. package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts +8 -0
  38. package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts.map +1 -0
  39. package/dist/components/registrationActions/RegistrationActions.d.ts +16 -0
  40. package/dist/components/registrationActions/RegistrationActions.d.ts.map +1 -0
  41. package/dist/components/registrationActions/index.d.ts +3 -0
  42. package/dist/components/registrationActions/index.d.ts.map +1 -0
  43. package/dist/constants/app.d.ts +4 -0
  44. package/dist/constants/app.d.ts.map +1 -1
  45. package/dist/contexts/PersonAttributesContext.d.ts +16 -0
  46. package/dist/contexts/PersonAttributesContext.d.ts.map +1 -0
  47. package/dist/hooks/useAdditionalIdentifiers.d.ts +11 -0
  48. package/dist/hooks/useAdditionalIdentifiers.d.ts.map +1 -0
  49. package/dist/hooks/useAddressFields.d.ts +46 -0
  50. package/dist/hooks/useAddressFields.d.ts.map +1 -0
  51. package/dist/hooks/useAddressFieldsWithConfig.d.ts +32 -0
  52. package/dist/hooks/useAddressFieldsWithConfig.d.ts.map +1 -0
  53. package/dist/hooks/useAddressSuggestions.d.ts +12 -0
  54. package/dist/hooks/useAddressSuggestions.d.ts.map +1 -0
  55. package/dist/hooks/useCreatePatient.d.ts +7 -15
  56. package/dist/hooks/useCreatePatient.d.ts.map +1 -1
  57. package/dist/hooks/useFilteredExtensions.d.ts +15 -0
  58. package/dist/hooks/useFilteredExtensions.d.ts.map +1 -0
  59. package/dist/hooks/usePatientDetails.d.ts +22 -0
  60. package/dist/hooks/usePatientDetails.d.ts.map +1 -0
  61. package/dist/hooks/usePatientPhoto.d.ts +9 -0
  62. package/dist/hooks/usePatientPhoto.d.ts.map +1 -0
  63. package/dist/hooks/usePatientSearch.d.ts +15 -0
  64. package/dist/hooks/usePatientSearch.d.ts.map +1 -0
  65. package/dist/hooks/usePersonAttributeFields.d.ts +35 -0
  66. package/dist/hooks/usePersonAttributeFields.d.ts.map +1 -0
  67. package/dist/hooks/usePersonAttributes.d.ts +8 -0
  68. package/dist/hooks/usePersonAttributes.d.ts.map +1 -0
  69. package/dist/hooks/useRegistrationConfig.d.ts +0 -5
  70. package/dist/hooks/useRegistrationConfig.d.ts.map +1 -1
  71. package/dist/hooks/useRelationshipValidation.d.ts +19 -0
  72. package/dist/hooks/useRelationshipValidation.d.ts.map +1 -0
  73. package/dist/hooks/useUpdatePatient.d.ts +20 -0
  74. package/dist/hooks/useUpdatePatient.d.ts.map +1 -0
  75. package/dist/hooks/useVisit.d.ts +13 -0
  76. package/dist/hooks/useVisit.d.ts.map +1 -0
  77. package/dist/{index-Ce5nX17l.js → index-D_Nrhuhz.js} +86900 -75164
  78. package/dist/index.css +1 -1
  79. package/dist/index.d.ts +1 -0
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +4 -2
  82. package/dist/locales/locale_en.json +80 -9
  83. package/dist/locales/locale_es.json +80 -9
  84. package/dist/models/patient.d.ts +17 -13
  85. package/dist/models/patient.d.ts.map +1 -1
  86. package/dist/models/validation.d.ts +2 -0
  87. package/dist/models/validation.d.ts.map +1 -1
  88. package/dist/pages/PatientRegister/PatientRegister.d.ts +3 -0
  89. package/dist/pages/PatientRegister/PatientRegister.d.ts.map +1 -0
  90. package/dist/pages/PatientRegister/patientFormService.d.ts +41 -0
  91. package/dist/pages/PatientRegister/patientFormService.d.ts.map +1 -0
  92. package/dist/pages/PatientRegister/visitTypeSelector.d.ts +9 -0
  93. package/dist/pages/PatientRegister/visitTypeSelector.d.ts.map +1 -0
  94. package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts.map +1 -1
  95. package/dist/pages/patientSearchPage/index.d.ts.map +1 -1
  96. package/dist/providers/PersonAttributesProvider.d.ts +9 -0
  97. package/dist/providers/PersonAttributesProvider.d.ts.map +1 -0
  98. package/dist/providers/RegistrationConfigProvider.d.ts.map +1 -1
  99. package/dist/utils/extensionNavigation.d.ts +9 -0
  100. package/dist/utils/extensionNavigation.d.ts.map +1 -0
  101. package/dist/utils/identifierGenderUtils.d.ts +1 -0
  102. package/dist/utils/identifierGenderUtils.d.ts.map +1 -1
  103. package/dist/utils/patientDataConverter.d.ts +10 -0
  104. package/dist/utils/patientDataConverter.d.ts.map +1 -0
  105. package/dist/utils/relationshipTypesCache.d.ts +15 -0
  106. package/dist/utils/relationshipTypesCache.d.ts.map +1 -0
  107. package/dist/utils/translation.d.ts +3 -0
  108. package/dist/utils/translation.d.ts.map +1 -0
  109. package/dist/utils/visitUtils.d.ts +5 -0
  110. package/dist/utils/visitUtils.d.ts.map +1 -0
  111. package/package.json +1 -1
  112. package/dist/components/Header/Header.d.ts +0 -18
  113. package/dist/components/Header/Header.d.ts.map +0 -1
  114. package/dist/components/Header/index.d.ts +0 -3
  115. package/dist/components/Header/index.d.ts.map +0 -1
  116. package/dist/pages/createPatientPage/CreatePatient.d.ts +0 -3
  117. package/dist/pages/createPatientPage/CreatePatient.d.ts.map +0 -1
  118. package/dist/pages/createPatientPage/patientFormService.d.ts +0 -36
  119. package/dist/pages/createPatientPage/patientFormService.d.ts.map +0 -1
  120. package/dist/pages/createPatientPage/visitTypeSelector.d.ts +0 -7
  121. package/dist/pages/createPatientPage/visitTypeSelector.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.13",
3
+ "version": "0.0.1-dev.130",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface BreadcrumbItem {
3
- label: string;
4
- href?: string;
5
- onClick?: () => void;
6
- }
7
- export interface HeaderProps {
8
- breadcrumbs: BreadcrumbItem[];
9
- showButton?: boolean;
10
- buttonText?: string;
11
- buttonDisabled?: boolean;
12
- onButtonClick?: () => void;
13
- buttonTestId?: string;
14
- className?: string;
15
- }
16
- declare const Header: React.FC<HeaderProps>;
17
- export default Header;
18
- //# sourceMappingURL=Header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyCjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,3 +0,0 @@
1
- export { default as Header } from './Header';
2
- export type { HeaderProps, BreadcrumbItem } from './Header';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Header/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const CreatePatient: () => import("react/jsx-runtime").JSX.Element;
2
- export default CreatePatient;
3
- //# sourceMappingURL=CreatePatient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreatePatient.d.ts","sourceRoot":"","sources":["../../../src/pages/createPatientPage/CreatePatient.tsx"],"names":[],"mappings":"AA6BA,QAAA,MAAM,aAAa,+CA8HlB,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -1,36 +0,0 @@
1
- import { AdditionalInfoRef } from '../../components/forms/additionalInfo/AdditionalInfo';
2
- import { AddressInfoRef } from '../../components/forms/addressInfo/AddressInfo';
3
- import { ContactInfoRef } from '../../components/forms/contactInfo/ContactInfo';
4
- import { ProfileRef } from '../../components/forms/profile/Profile';
5
- /**
6
- * Form references interface for all patient registration sections
7
- */
8
- export interface PatientFormRefs {
9
- profileRef: React.RefObject<ProfileRef | null>;
10
- addressRef: React.RefObject<AddressInfoRef | null>;
11
- contactRef: React.RefObject<ContactInfoRef | null>;
12
- additionalRef: React.RefObject<AdditionalInfoRef | null>;
13
- }
14
- /**
15
- * Validate all patient form sections
16
- *
17
- * @param refs - References to all form sections
18
- * @returns true if all sections are valid, false otherwise
19
- */
20
- export declare function validateAllSections(refs: PatientFormRefs): boolean;
21
- /**
22
- * Collect data from all patient form sections
23
- *
24
- * @param refs - References to all form sections
25
- * @returns Collected form data or null if any section fails to return data
26
- */
27
- export declare function collectFormData(refs: PatientFormRefs): {
28
- profile: import('../../models/patient').BasicInfoData & {
29
- dobEstimated: boolean;
30
- patientIdentifier: import('@bahmni/services').PatientIdentifier;
31
- };
32
- address: import('@bahmni/services').PatientAddress;
33
- contact: import('../../models/patient').ContactData;
34
- additional: import('../../models/patient').AdditionalData;
35
- } | null;
36
- //# sourceMappingURL=patientFormService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"patientFormService.d.ts","sourceRoot":"","sources":["../../../src/pages/createPatientPage/patientFormService.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAC/C,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CAC1D;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAoBlE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe;;;;;;;;SA6CpD"}
@@ -1,7 +0,0 @@
1
- interface VisitTypeSelectorProps {
2
- onVisitSave: () => Promise<string | null>;
3
- patientUuid?: string | null;
4
- }
5
- export declare const VisitTypeSelector: ({ onVisitSave, patientUuid, }: VisitTypeSelectorProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
7
- //# sourceMappingURL=visitTypeSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visitTypeSelector.d.ts","sourceRoot":"","sources":["../../../src/pages/createPatientPage/visitTypeSelector.tsx"],"names":[],"mappings":"AAmBA,UAAU,sBAAsB;IAC9B,WAAW,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,eAAO,MAAM,iBAAiB,GAAI,+BAG/B,sBAAsB,4CAiJxB,CAAC"}