@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
@@ -1,26 +1,18 @@
1
1
  import { PatientIdentifier, PatientAddress } from '@bahmni/services';
2
- import { BasicInfoData, ContactData, AdditionalData } from '../models/patient';
3
- /**
4
- * Form data structure representing all collected patient information
5
- */
2
+ import { RelationshipData } from '../components/forms/patientRelationships/PatientRelationships';
3
+ import { BasicInfoData, PersonAttributesData, AdditionalIdentifiersData } from '../models/patient';
6
4
  interface CreatePatientFormData {
7
5
  profile: BasicInfoData & {
8
6
  dobEstimated: boolean;
9
7
  patientIdentifier: PatientIdentifier;
8
+ image?: string;
10
9
  };
11
10
  address: PatientAddress;
12
- contact: ContactData;
13
- additional: AdditionalData;
11
+ contact: PersonAttributesData;
12
+ additional: PersonAttributesData;
13
+ additionalIdentifiers: AdditionalIdentifiersData;
14
+ relationships: RelationshipData[];
14
15
  }
15
- /**
16
- * Custom hook for creating a patient with React Query
17
- *
18
- * Handles:
19
- * - Data transformation from form data to API payload
20
- * - Mutation execution
21
- * - Success/error notifications
22
- * - Navigation after success
23
- */
24
16
  export declare const useCreatePatient: () => import('@tanstack/react-query').UseMutationResult<import('@bahmni/services').CreatePatientResponse, Error, CreatePatientFormData, unknown>;
25
17
  export {};
26
18
  //# sourceMappingURL=useCreatePatient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCreatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EACjB,cAAc,EAIf,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE/E;;GAEG;AACH,UAAU,qBAAqB;IAC7B,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;KACtC,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,kJA2C5B,CAAC"}
1
+ {"version":3,"file":"useCreatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useCreatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EACjB,cAAc,EAOf,MAAM,kBAAkB,CAAC;AAI1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AAEtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAI3B,UAAU,qBAAqB;IAC7B,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,aAAa,EAAE,gBAAgB,EAAE,CAAC;CACnC;AAED,eAAO,MAAM,gBAAgB,kJAkD5B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { AppExtensionConfig } from '@bahmni/services';
2
+ interface UseFilteredExtensionsProps {
3
+ extensionPointId?: string;
4
+ }
5
+ interface UseFilteredExtensionsReturn {
6
+ filteredExtensions: AppExtensionConfig[];
7
+ isLoading: boolean;
8
+ }
9
+ /**
10
+ * Custom hook to filter and validate app extensions
11
+ * Handles extension point validation, privilege filtering, and sorting
12
+ */
13
+ export declare const useFilteredExtensions: ({ extensionPointId, }: UseFilteredExtensionsProps) => UseFilteredExtensionsReturn;
14
+ export {};
15
+ //# sourceMappingURL=useFilteredExtensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFilteredExtensions.d.ts","sourceRoot":"","sources":["../../src/hooks/useFilteredExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAgB,MAAM,kBAAkB,CAAC;AAIpE,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,2BAA2B;IACnC,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,uBAEnC,0BAA0B,KAAG,2BAsD/B,CAAC"}
@@ -0,0 +1,22 @@
1
+ interface UsePatientDetailsProps {
2
+ patientUuid: string | undefined;
3
+ }
4
+ interface PatientMetadata {
5
+ patientUuid: string;
6
+ patientIdentifier: string;
7
+ patientName: string;
8
+ registerDate: string;
9
+ }
10
+ export declare const usePatientDetails: ({ patientUuid }: UsePatientDetailsProps) => {
11
+ patientDetails: import('@bahmni/services').PatientProfileResponse | undefined;
12
+ isLoading: boolean;
13
+ profileInitialData: import('../models/patient').BasicInfoData | undefined;
14
+ personAttributesInitialData: import('../models/patient').PersonAttributesData | undefined;
15
+ addressInitialData: import('./useAddressFields').AddressData | undefined;
16
+ additionalIdentifiersInitialData: Record<string, string> | undefined;
17
+ relationshipsInitialData: import('../components/forms/patientRelationships').RelationshipData[];
18
+ initialDobEstimated: boolean;
19
+ metadata: PatientMetadata;
20
+ };
21
+ export {};
22
+ //# sourceMappingURL=usePatientDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePatientDetails.d.ts","sourceRoot":"","sources":["../../src/hooks/usePatientDetails.ts"],"names":[],"mappings":"AAkBA,UAAU,sBAAsB;IAC9B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,GAAI,iBAAiB,sBAAsB;;;;;;;;;;CAgGxE,CAAC"}
@@ -0,0 +1,9 @@
1
+ interface UsePatientPhotoProps {
2
+ patientUuid: string | undefined;
3
+ }
4
+ export declare const usePatientPhoto: ({ patientUuid }: UsePatientPhotoProps) => {
5
+ patientPhoto: string | null | undefined;
6
+ isLoading: boolean;
7
+ };
8
+ export {};
9
+ //# sourceMappingURL=usePatientPhoto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePatientPhoto.d.ts","sourceRoot":"","sources":["../../src/hooks/usePatientPhoto.ts"],"names":[],"mappings":"AAGA,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,eAAO,MAAM,eAAe,GAAI,iBAAiB,oBAAoB;;;CAWpE,CAAC"}
@@ -0,0 +1,15 @@
1
+ export interface PatientSuggestion {
2
+ id: string;
3
+ text: string;
4
+ identifier: string;
5
+ name: string;
6
+ }
7
+ export declare const usePatientSearch: () => {
8
+ searchTerms: Record<string, string>;
9
+ getPatientSuggestions: (rowId: string) => PatientSuggestion[];
10
+ handleSearch: (rowId: string, searchValue: string) => void;
11
+ clearSearch: (rowId: string) => void;
12
+ clearAllSearches: () => void;
13
+ setSearchTerms: import('react').Dispatch<import('react').SetStateAction<Record<string, string>>>;
14
+ };
15
+ //# sourceMappingURL=usePatientSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePatientSearch.d.ts","sourceRoot":"","sources":["../../src/hooks/usePatientSearch.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAUD,eAAO,MAAM,gBAAgB;;mCAcW,MAAM,KAAG,iBAAiB,EAAE;0BAiBrC,MAAM,eAAe,MAAM;yBAK5B,MAAM;;;CAqBnC,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Mapped concept answer for UI rendering
3
+ */
4
+ export interface AttributeAnswer {
5
+ uuid: string;
6
+ display: string;
7
+ }
8
+ /**
9
+ * Person attribute field with all metadata for rendering
10
+ */
11
+ export interface PersonAttributeField {
12
+ uuid: string;
13
+ name: string;
14
+ format: string;
15
+ sortWeight: number;
16
+ description: string | null;
17
+ answers?: AttributeAnswer[];
18
+ }
19
+ /**
20
+ * Hook to get all person attribute fields sorted by weight
21
+ * No categorization - components filter by config section names
22
+ */
23
+ export declare const usePersonAttributeFields: () => {
24
+ attributeFields: {
25
+ uuid: string;
26
+ name: string;
27
+ format: string;
28
+ sortWeight: number;
29
+ description: string | null;
30
+ answers: AttributeAnswer[] | undefined;
31
+ }[];
32
+ isLoading: boolean;
33
+ error: Error | null;
34
+ };
35
+ //# sourceMappingURL=usePersonAttributeFields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePersonAttributeFields.d.ts","sourceRoot":"","sources":["../../src/hooks/usePersonAttributeFields.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;CA+BpC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { PersonAttributesContextType } from '../contexts/PersonAttributesContext';
2
+ /**
3
+ * Custom hook to access the person attributes context
4
+ * @returns The person attributes context values including attributes, loading state, error, and refetch
5
+ * @throws Error if used outside PersonAttributesProvider
6
+ */
7
+ export declare const usePersonAttributes: () => PersonAttributesContextType;
8
+ //# sourceMappingURL=usePersonAttributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePersonAttributes.d.ts","sourceRoot":"","sources":["../../src/hooks/usePersonAttributes.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,2BAA2B,EAC5B,MAAM,qCAAqC,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAO,2BAUtC,CAAC"}
@@ -1,8 +1,3 @@
1
1
  import { RegistrationConfigContextType } from '../models/registrationConfig';
2
- /**
3
- * Custom hook to access the registration config context
4
- * @returns The registration config context values including config, loading state, error, and refetch
5
- * @throws Error if used outside RegistrationConfigProvider
6
- */
7
2
  export declare const useRegistrationConfig: () => RegistrationConfigContextType;
8
3
  //# sourceMappingURL=useRegistrationConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useRegistrationConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useRegistrationConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,QAAO,6BAUxC,CAAC"}
1
+ {"version":3,"file":"useRegistrationConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useRegistrationConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAE7E,eAAO,MAAM,qBAAqB,QAAO,6BAUxC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { RelationshipData } from '../components/forms/patientRelationships/PatientRelationships';
2
+ export interface ValidationErrors {
3
+ [key: string]: {
4
+ relationshipType?: string;
5
+ patientId?: string;
6
+ };
7
+ }
8
+ export declare const useRelationshipValidation: () => {
9
+ relationshipTypes: {
10
+ uuid: string;
11
+ aIsToB: string;
12
+ bIsToA: string;
13
+ }[];
14
+ validationErrors: ValidationErrors;
15
+ validateRelationships: (relationships: RelationshipData[]) => boolean;
16
+ clearFieldError: (id: string, field: "relationshipType" | "patientId") => void;
17
+ clearAllErrors: () => void;
18
+ };
19
+ //# sourceMappingURL=useRelationshipValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRelationshipValidation.d.ts","sourceRoot":"","sources":["../../src/hooks/useRelationshipValidation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AAMtG,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,eAAO,MAAM,yBAAyB;;;;;;;2CAmDU,gBAAgB,EAAE;0BA0C1D,MAAM,SACH,kBAAkB,GAAG,WAAW;;CAsB1C,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { PatientIdentifier, PatientAddress } from '@bahmni/services';
2
+ import { RelationshipData } from '../components/forms/patientRelationships/PatientRelationships';
3
+ import { BasicInfoData, PersonAttributesData, AdditionalIdentifiersData } from '../models/patient';
4
+ interface UpdatePatientFormData {
5
+ patientUuid: string;
6
+ profile: BasicInfoData & {
7
+ dobEstimated: boolean;
8
+ patientIdentifier: PatientIdentifier;
9
+ image?: string;
10
+ };
11
+ address: PatientAddress;
12
+ contact: PersonAttributesData;
13
+ additional: PersonAttributesData;
14
+ additionalIdentifiers: AdditionalIdentifiersData;
15
+ additionalIdentifiersInitialData?: AdditionalIdentifiersData;
16
+ relationships?: RelationshipData[];
17
+ }
18
+ export declare const useUpdatePatient: () => import('@tanstack/react-query').UseMutationResult<import('@bahmni/services').CreatePatientResponse, Error, UpdatePatientFormData, unknown>;
19
+ export {};
20
+ //# sourceMappingURL=useUpdatePatient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUpdatePatient.d.ts","sourceRoot":"","sources":["../../src/hooks/useUpdatePatient.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EACjB,cAAc,EAOf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AAEtG,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAI3B,UAAU,qBAAqB;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,aAAa,GAAG;QACvB,YAAY,EAAE,OAAO,CAAC;QACtB,iBAAiB,EAAE,iBAAiB,CAAC;QACrC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,qBAAqB,EAAE,yBAAyB,CAAC;IACjD,gCAAgC,CAAC,EAAE,yBAAyB,CAAC;IAC7D,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,gBAAgB,kJA4C5B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { VisitType } from '@bahmni/services';
2
+ export declare const useVisitTypes: () => {
3
+ visitTypes: import('@bahmni/services').VisitTypes | undefined;
4
+ isLoading: boolean;
5
+ };
6
+ export declare const useActiveVisit: (patientUuid?: string) => {
7
+ hasActiveVisit: boolean | undefined;
8
+ isLoading: boolean;
9
+ };
10
+ export declare const useCreateVisit: () => {
11
+ createVisit: (patientUuid: string, visitType: VisitType) => Promise<void>;
12
+ };
13
+ //# sourceMappingURL=useVisit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVisit.d.ts","sourceRoot":"","sources":["../../src/hooks/useVisit.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;AAK1B,eAAO,MAAM,aAAa;;;CAYzB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,cAAc,MAAM;;;CAUlD,CAAC;AAEF,eAAO,MAAM,cAAc;+BAOe,MAAM,aAAa,SAAS;CAoBrE,CAAC"}