@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.
- package/dist/App.d.ts.map +1 -1
- package/dist/FormsTable-symiaWjC-CB_KEfzD.js +363 -0
- package/dist/{LNWAZHJI-Bw_4ID3r.js → LNWAZHJI-DTfiGcc5.js} +2 -2
- package/dist/{MWZ6AO7Z-CaqB01sB.js → MWZ6AO7Z-zxcs_vVh.js} +2 -2
- package/dist/Observations-Dkuz2yfC-CZ2o54xj.js +338 -0
- package/dist/{YPM2AS64-Ck9T4Pfw.js → YPM2AS64-Dz2qGqyu.js} +3197 -3381
- package/dist/components/common/PersonAttributeInput.d.ts +27 -0
- package/dist/components/common/PersonAttributeInput.d.ts.map +1 -0
- package/dist/components/common/personAttributeHelpers.d.ts +11 -0
- package/dist/components/common/personAttributeHelpers.d.ts.map +1 -0
- package/dist/components/common/personAttributeValidation.d.ts +20 -0
- package/dist/components/common/personAttributeValidation.d.ts.map +1 -0
- package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts +15 -0
- package/dist/components/forms/additionalIdentifiers/AdditionalIdentifiers.d.ts.map +1 -0
- package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts +4 -4
- package/dist/components/forms/additionalInfo/AdditionalInfo.d.ts.map +1 -1
- package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts +19 -0
- package/dist/components/forms/addressInfo/AddressAutocompleteField.d.ts.map +1 -0
- package/dist/components/forms/addressInfo/AddressInfo.d.ts +3 -1
- package/dist/components/forms/addressInfo/AddressInfo.d.ts.map +1 -1
- package/dist/components/forms/contactInfo/ContactInfo.d.ts +4 -4
- package/dist/components/forms/contactInfo/ContactInfo.d.ts.map +1 -1
- package/dist/components/forms/patientRelationships/PatientRelationships.d.ts +27 -0
- package/dist/components/forms/patientRelationships/PatientRelationships.d.ts.map +1 -0
- package/dist/components/forms/patientRelationships/RelationshipRow.d.ts +33 -0
- package/dist/components/forms/patientRelationships/RelationshipRow.d.ts.map +1 -0
- package/dist/components/forms/patientRelationships/index.d.ts +3 -0
- package/dist/components/forms/patientRelationships/index.d.ts.map +1 -0
- package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts +26 -0
- package/dist/components/forms/patientRelationships/usePatientRelationship.d.ts.map +1 -0
- package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts +26 -0
- package/dist/components/forms/patientRelationships/useRelationshipManager.d.ts.map +1 -0
- package/dist/components/forms/profile/Profile.d.ts +4 -1
- package/dist/components/forms/profile/Profile.d.ts.map +1 -1
- package/dist/components/forms/profile/dateAgeUtils.d.ts +2 -0
- package/dist/components/forms/profile/dateAgeUtils.d.ts.map +1 -1
- package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts +8 -0
- package/dist/components/patientPhotoUpload/PatientPhotoUpload.d.ts.map +1 -0
- package/dist/components/registrationActions/RegistrationActions.d.ts +16 -0
- package/dist/components/registrationActions/RegistrationActions.d.ts.map +1 -0
- package/dist/components/registrationActions/index.d.ts +3 -0
- package/dist/components/registrationActions/index.d.ts.map +1 -0
- package/dist/constants/app.d.ts +4 -0
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/contexts/PersonAttributesContext.d.ts +16 -0
- package/dist/contexts/PersonAttributesContext.d.ts.map +1 -0
- package/dist/hooks/useAdditionalIdentifiers.d.ts +11 -0
- package/dist/hooks/useAdditionalIdentifiers.d.ts.map +1 -0
- package/dist/hooks/useAddressFields.d.ts +46 -0
- package/dist/hooks/useAddressFields.d.ts.map +1 -0
- package/dist/hooks/useAddressFieldsWithConfig.d.ts +32 -0
- package/dist/hooks/useAddressFieldsWithConfig.d.ts.map +1 -0
- package/dist/hooks/useAddressSuggestions.d.ts +12 -0
- package/dist/hooks/useAddressSuggestions.d.ts.map +1 -0
- package/dist/hooks/useCreatePatient.d.ts +7 -15
- package/dist/hooks/useCreatePatient.d.ts.map +1 -1
- package/dist/hooks/useFilteredExtensions.d.ts +15 -0
- package/dist/hooks/useFilteredExtensions.d.ts.map +1 -0
- package/dist/hooks/usePatientDetails.d.ts +22 -0
- package/dist/hooks/usePatientDetails.d.ts.map +1 -0
- package/dist/hooks/usePatientPhoto.d.ts +9 -0
- package/dist/hooks/usePatientPhoto.d.ts.map +1 -0
- package/dist/hooks/usePatientSearch.d.ts +15 -0
- package/dist/hooks/usePatientSearch.d.ts.map +1 -0
- package/dist/hooks/usePersonAttributeFields.d.ts +35 -0
- package/dist/hooks/usePersonAttributeFields.d.ts.map +1 -0
- package/dist/hooks/usePersonAttributes.d.ts +8 -0
- package/dist/hooks/usePersonAttributes.d.ts.map +1 -0
- package/dist/hooks/useRegistrationConfig.d.ts +0 -5
- package/dist/hooks/useRegistrationConfig.d.ts.map +1 -1
- package/dist/hooks/useRelationshipValidation.d.ts +19 -0
- package/dist/hooks/useRelationshipValidation.d.ts.map +1 -0
- package/dist/hooks/useUpdatePatient.d.ts +20 -0
- package/dist/hooks/useUpdatePatient.d.ts.map +1 -0
- package/dist/hooks/useVisit.d.ts +13 -0
- package/dist/hooks/useVisit.d.ts.map +1 -0
- package/dist/{index-Ce5nX17l.js → index-D_Nrhuhz.js} +86900 -75164
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/locales/locale_en.json +80 -9
- package/dist/locales/locale_es.json +80 -9
- package/dist/models/patient.d.ts +17 -13
- package/dist/models/patient.d.ts.map +1 -1
- package/dist/models/validation.d.ts +2 -0
- package/dist/models/validation.d.ts.map +1 -1
- package/dist/pages/PatientRegister/PatientRegister.d.ts +3 -0
- package/dist/pages/PatientRegister/PatientRegister.d.ts.map +1 -0
- package/dist/pages/PatientRegister/patientFormService.d.ts +41 -0
- package/dist/pages/PatientRegister/patientFormService.d.ts.map +1 -0
- package/dist/pages/PatientRegister/visitTypeSelector.d.ts +9 -0
- package/dist/pages/PatientRegister/visitTypeSelector.d.ts.map +1 -0
- package/dist/pages/patientSearchPage/appointmentSearchResultActionHandler.d.ts.map +1 -1
- package/dist/pages/patientSearchPage/index.d.ts.map +1 -1
- package/dist/providers/PersonAttributesProvider.d.ts +9 -0
- package/dist/providers/PersonAttributesProvider.d.ts.map +1 -0
- package/dist/providers/RegistrationConfigProvider.d.ts.map +1 -1
- package/dist/utils/extensionNavigation.d.ts +9 -0
- package/dist/utils/extensionNavigation.d.ts.map +1 -0
- package/dist/utils/identifierGenderUtils.d.ts +1 -0
- package/dist/utils/identifierGenderUtils.d.ts.map +1 -1
- package/dist/utils/patientDataConverter.d.ts +10 -0
- package/dist/utils/patientDataConverter.d.ts.map +1 -0
- package/dist/utils/relationshipTypesCache.d.ts +15 -0
- package/dist/utils/relationshipTypesCache.d.ts.map +1 -0
- package/dist/utils/translation.d.ts +3 -0
- package/dist/utils/translation.d.ts.map +1 -0
- package/dist/utils/visitUtils.d.ts +5 -0
- package/dist/utils/visitUtils.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/components/Header/Header.d.ts +0 -18
- package/dist/components/Header/Header.d.ts.map +0 -1
- package/dist/components/Header/index.d.ts +0 -3
- package/dist/components/Header/index.d.ts.map +0 -1
- package/dist/pages/createPatientPage/CreatePatient.d.ts +0 -3
- package/dist/pages/createPatientPage/CreatePatient.d.ts.map +0 -1
- package/dist/pages/createPatientPage/patientFormService.d.ts +0 -36
- package/dist/pages/createPatientPage/patientFormService.d.ts.map +0 -1
- package/dist/pages/createPatientPage/visitTypeSelector.d.ts +0 -7
- package/dist/pages/createPatientPage/visitTypeSelector.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -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 +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 +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"}
|