@kenyaemr/esm-patient-registration-app 4.5.6 → 4.5.8
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/130.js +1 -1
- package/dist/130.js.map +1 -1
- package/dist/218.js +1 -1
- package/dist/319.js +1 -1
- package/dist/330.js +1 -1
- package/dist/348.js +1 -1
- package/dist/460.js +1 -0
- package/dist/520.js +2 -0
- package/dist/520.js.LICENSE.txt +14 -0
- package/dist/520.js.map +1 -0
- package/dist/537.js +1 -1
- package/dist/68.js +1 -1
- package/dist/68.js.map +1 -1
- package/dist/693.js +1 -1
- package/dist/693.js.map +1 -1
- package/dist/735.js +1 -1
- package/dist/742.js +1 -1
- package/dist/kenyaemr-esm-patient-registration-app.js +1 -1
- package/dist/kenyaemr-esm-patient-registration-app.js.buildmanifest.json +79 -57
- package/dist/kenyaemr-esm-patient-registration-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/offline.resources.ts +37 -2
- package/src/offline.ts +3 -2
- package/src/patient-registration/field/__mocks__/identifier-types.mock.ts +76 -0
- package/src/patient-registration/field/__mocks__/identifiers.mock.ts +27 -0
- package/src/patient-registration/field/address/address-field.component.tsx +12 -6
- package/src/patient-registration/field/address/address-hierarchy-levels.component.tsx +4 -1
- package/src/patient-registration/field/dob/dob.component.tsx +17 -14
- package/src/patient-registration/field/dob/dob.test.tsx +13 -0
- package/src/patient-registration/field/id/id-field.component.tsx +3 -3
- package/src/patient-registration/field/id/id-field.test.tsx +105 -0
- package/src/patient-registration/field/obs/obs-field.component.tsx +19 -4
- package/src/patient-registration/form-manager.ts +3 -4
- package/src/patient-registration/patient-registration-hooks.ts +6 -4
- package/src/patient-registration/patient-registration.test.tsx +18 -3
- package/src/patient-registration/patient-registration.types.tsx +2 -2
- package/src/patient-registration/section/demographics/demographics-section.test.tsx +13 -0
- package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +3 -5
- package/src/patient-registration/ui-components/overlay/index.tsx +1 -1
- package/src/root.component.tsx +1 -1
- package/src/routes.json +3 -1
- package/translations/ar.json +84 -0
- package/translations/es.json +80 -80
- package/dist/208.js +0 -2
- package/dist/208.js.LICENSE.txt +0 -27
- package/dist/208.js.map +0 -1
|
@@ -31,7 +31,7 @@ const Overlay: React.FC<OverlayProps> = ({ close, children, header, buttonsGroup
|
|
|
31
31
|
/>
|
|
32
32
|
</div>
|
|
33
33
|
) : (
|
|
34
|
-
<Header className={styles.tabletOverlayHeader}>
|
|
34
|
+
<Header className={styles.tabletOverlayHeader} aria-label="Overlay header">
|
|
35
35
|
<Button
|
|
36
36
|
kind="ghost"
|
|
37
37
|
onClick={close}
|
package/src/root.component.tsx
CHANGED
package/src/routes.json
CHANGED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addRelationshipButtonText": "أضف علاقة",
|
|
3
|
+
"addressHeader": "العنوان",
|
|
4
|
+
"allFieldsRequiredText": "جميع الحقول مطلوبة ما لم يتم التأشير عليها بأنها اختيارية",
|
|
5
|
+
"autoGeneratedPlaceholderText": "تم إنشاؤه تلقائيًا",
|
|
6
|
+
"birthdayNotInTheFuture": "",
|
|
7
|
+
"birthdayRequired": "",
|
|
8
|
+
"birthFieldLabelText": "الميلاد",
|
|
9
|
+
"cancel": "إلغاء",
|
|
10
|
+
"causeOfDeathInputLabel": "سبب الوفاة",
|
|
11
|
+
"configure": "تكوين",
|
|
12
|
+
"contactSection": "تفاصيل الاتصال",
|
|
13
|
+
"createNew": "أنشئ جديد",
|
|
14
|
+
"dateOfBirthLabelText": "تاريخ الميلاد",
|
|
15
|
+
"deathDateInputLabel": "تاريخ الوفاة",
|
|
16
|
+
"deathdayNotInTheFuture": "",
|
|
17
|
+
"deathSection": "معلومات الوفاة",
|
|
18
|
+
"deleteIdentifierTooltip": "حذف",
|
|
19
|
+
"deleteRelationshipTooltipText": "حذف",
|
|
20
|
+
"demographicsSection": "معلومات أساسية",
|
|
21
|
+
"discard": "تجاهل",
|
|
22
|
+
"discardModalBody": "لم يتم حفظ التغييرات التي قمت بها في تفاصيل هذا المريض. هل تريد تجاهل التغييرات؟",
|
|
23
|
+
"discardModalHeader": "تأكيد تجاهل التغييرات",
|
|
24
|
+
"dobToggleLabelText": "هل تاريخ الميلاد معروف؟",
|
|
25
|
+
"edit": "تعديل",
|
|
26
|
+
"editIdentifierTooltip": "تعديل",
|
|
27
|
+
"editPatientDetails": "تعديل تفاصيل المريض",
|
|
28
|
+
"error": "خطأ",
|
|
29
|
+
"errorFetchingOrderedFields": "حدث خطأ أثناء جلب الحقول المرتبة لتسلسل العنوان",
|
|
30
|
+
"estimatedAgeInMonthsLabelText": "العمر المقدر بالشهور",
|
|
31
|
+
"estimatedAgeInYearsLabelText": "العمر المقدر بالسنوات",
|
|
32
|
+
"familyNameLabelText": "اسم العائلة",
|
|
33
|
+
"familyNameRequired": "",
|
|
34
|
+
"female": "أنثى",
|
|
35
|
+
"fieldErrorTitleMessage": "الحقول التالية بها أخطاء:",
|
|
36
|
+
"fullNameLabelText": "الاسم الكامل",
|
|
37
|
+
"genderLabelText": "الجنس",
|
|
38
|
+
"genderRequired": "",
|
|
39
|
+
"genderUnspecified": "",
|
|
40
|
+
"givenNameLabelText": "الاسم الأول",
|
|
41
|
+
"givenNameRequired": "",
|
|
42
|
+
"identifierValueRequired": "قيمة المعرف مطلوبة",
|
|
43
|
+
"idFieldLabelText": "المعرفات",
|
|
44
|
+
"incompleteForm": "نموذج غير مكتمل",
|
|
45
|
+
"invalidEmail": "",
|
|
46
|
+
"invalidInput": "إدخال غير صالح",
|
|
47
|
+
"isDeadInputLabel": "هل المريض متوفى؟",
|
|
48
|
+
"jumpTo": "اذهب إلى",
|
|
49
|
+
"loadingResults": "جارٍ تحميل النتائج",
|
|
50
|
+
"male": "ذكر",
|
|
51
|
+
"middleNameLabelText": "الاسم الأوسط",
|
|
52
|
+
"negativeMonths": "",
|
|
53
|
+
"negativeYears": "",
|
|
54
|
+
"no": "لا",
|
|
55
|
+
"noResultsFound": "لم يتم العثور على نتائج",
|
|
56
|
+
"numberInNameDubious": "",
|
|
57
|
+
"optional": "اختياري",
|
|
58
|
+
"other": "آخر",
|
|
59
|
+
"patient": "المريض",
|
|
60
|
+
"patientNameKnown": "هل اسم المريض معروف؟",
|
|
61
|
+
"registerPatient": "تسجيل المريض",
|
|
62
|
+
"registrationSuccessToastDescription": "يمكن الآن العثور على المريض عن طريق البحث عنه باستخدام اسمه أو رقم هويته",
|
|
63
|
+
"registrationSuccessToastTitle": "تم إنشاء مريض جديد",
|
|
64
|
+
"relationship": "العلاقة",
|
|
65
|
+
"relationshipPlaceholder": "العلاقة",
|
|
66
|
+
"relationshipRemovedText": "تمت إزالة العلاقة",
|
|
67
|
+
"relationshipsSection": "العلاقات",
|
|
68
|
+
"relationshipToPatient": "العلاقة بالمريض",
|
|
69
|
+
"relativeFullNameLabelText": "الاسم الكامل للقريب",
|
|
70
|
+
"relativeNamePlaceholder": "الاسم الأول اسم العائلة",
|
|
71
|
+
"resetIdentifierTooltip": "إعادة تعيين",
|
|
72
|
+
"restoreRelationshipActionButton": "تراجع",
|
|
73
|
+
"searchAddress": "ابحث عن العنوان",
|
|
74
|
+
"selectAnOption": "اختر خيارًا",
|
|
75
|
+
"sexFieldLabelText": "الجنس",
|
|
76
|
+
"stroke": "جلطة",
|
|
77
|
+
"unableToFetch": "تعذر الجلب نوع السمة الشخصية - {personattributetype}",
|
|
78
|
+
"unknown": "غير معروف",
|
|
79
|
+
"updatePatient": "تحديث المريض",
|
|
80
|
+
"updationSuccessToastDescription": "تم تحديث معلومات المريض بنجاح",
|
|
81
|
+
"updationSuccessToastTitle": "تم تحديث تفاصيل المريض",
|
|
82
|
+
"yearsEstimateRequired": "",
|
|
83
|
+
"yes": "نعم"
|
|
84
|
+
}
|
package/translations/es.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
"addRelationshipButtonText": "
|
|
3
|
-
"addressHeader": "
|
|
4
|
-
"allFieldsRequiredText": "
|
|
5
|
-
"autoGeneratedPlaceholderText": "
|
|
6
|
-
"birthdayNotInTheFuture": "",
|
|
7
|
-
"birthdayRequired": "",
|
|
8
|
-
"birthFieldLabelText": "
|
|
9
|
-
"cancel": "
|
|
10
|
-
"causeOfDeathInputLabel": "
|
|
11
|
-
"configure": "
|
|
12
|
-
"contactSection": "
|
|
13
|
-
"createNew": "
|
|
14
|
-
"dateOfBirthLabelText": "
|
|
15
|
-
"deathDateInputLabel": "
|
|
16
|
-
"deathdayNotInTheFuture": "",
|
|
17
|
-
"deathSection": "
|
|
18
|
-
"deleteIdentifierTooltip": "
|
|
19
|
-
"deleteRelationshipTooltipText": "
|
|
20
|
-
"demographicsSection": "
|
|
21
|
-
"discard": "
|
|
22
|
-
"discardModalBody": "
|
|
23
|
-
"discardModalHeader": "
|
|
24
|
-
"dobToggleLabelText": "
|
|
25
|
-
"edit": "
|
|
26
|
-
"editIdentifierTooltip": "
|
|
27
|
-
"editPatientDetails": "
|
|
2
|
+
"addRelationshipButtonText": "Agregar relación",
|
|
3
|
+
"addressHeader": "Dirección",
|
|
4
|
+
"allFieldsRequiredText": "Todos los campos son obligatorios a menos que se indique como opcionales",
|
|
5
|
+
"autoGeneratedPlaceholderText": "Autogenerado",
|
|
6
|
+
"birthdayNotInTheFuture": "Cumpleaños no puede ser en el futuro",
|
|
7
|
+
"birthdayRequired": "Cumpleaños es obligatorio",
|
|
8
|
+
"birthFieldLabelText": "Nacimiento",
|
|
9
|
+
"cancel": "Cancelar",
|
|
10
|
+
"causeOfDeathInputLabel": "Causa de defunción",
|
|
11
|
+
"configure": "Configurar",
|
|
12
|
+
"contactSection": "Detalles de Contacto",
|
|
13
|
+
"createNew": "Crear Nuevo/a",
|
|
14
|
+
"dateOfBirthLabelText": "Fecha de Nacimiento",
|
|
15
|
+
"deathDateInputLabel": "Fecha de fallecimiento",
|
|
16
|
+
"deathdayNotInTheFuture": "El día de la muerte no puede ser en el futuro",
|
|
17
|
+
"deathSection": "Información de Fallecimiento",
|
|
18
|
+
"deleteIdentifierTooltip": "Eliminar",
|
|
19
|
+
"deleteRelationshipTooltipText": "Eliminar",
|
|
20
|
+
"demographicsSection": "Información Básica",
|
|
21
|
+
"discard": "Descartar",
|
|
22
|
+
"discardModalBody": "Los cambios realizados en los datos de este paciente no se han guardado. ¿Descartar cambios?",
|
|
23
|
+
"discardModalHeader": "Confirmar cambios de descarte",
|
|
24
|
+
"dobToggleLabelText": "¿Se conoce la fecha de nacimiento?",
|
|
25
|
+
"edit": "Editar",
|
|
26
|
+
"editIdentifierTooltip": "Editar",
|
|
27
|
+
"editPatientDetails": "Modificar los datos del paciente",
|
|
28
28
|
"error": "Error",
|
|
29
|
-
"errorFetchingOrderedFields": "Error
|
|
30
|
-
"estimatedAgeInMonthsLabelText": "
|
|
31
|
-
"estimatedAgeInYearsLabelText": "
|
|
32
|
-
"familyNameLabelText": "
|
|
33
|
-
"familyNameRequired": "",
|
|
34
|
-
"female": "
|
|
35
|
-
"fieldErrorTitleMessage": "
|
|
36
|
-
"fullNameLabelText": "
|
|
37
|
-
"genderLabelText": "
|
|
38
|
-
"genderRequired": "",
|
|
39
|
-
"genderUnspecified": "",
|
|
40
|
-
"givenNameLabelText": "
|
|
41
|
-
"givenNameRequired": "",
|
|
42
|
-
"identifierValueRequired": "
|
|
43
|
-
"idFieldLabelText": "
|
|
44
|
-
"incompleteForm": "
|
|
45
|
-
"invalidEmail": "",
|
|
46
|
-
"invalidInput": "
|
|
47
|
-
"isDeadInputLabel": "
|
|
48
|
-
"jumpTo": "
|
|
49
|
-
"loadingResults": "
|
|
50
|
-
"male": "
|
|
51
|
-
"middleNameLabelText": "
|
|
52
|
-
"negativeMonths": "",
|
|
53
|
-
"negativeYears": "",
|
|
29
|
+
"errorFetchingOrderedFields": "Error ocurrió al obtener campos ordenados para la jerarquía de direcciones",
|
|
30
|
+
"estimatedAgeInMonthsLabelText": "Edad estimada en meses",
|
|
31
|
+
"estimatedAgeInYearsLabelText": "Edad estimada en años",
|
|
32
|
+
"familyNameLabelText": "Apellidos",
|
|
33
|
+
"familyNameRequired": "Apellidos es obligatorio",
|
|
34
|
+
"female": "Femenino",
|
|
35
|
+
"fieldErrorTitleMessage": "Los siguientes campos tienen errores:",
|
|
36
|
+
"fullNameLabelText": "Nombre y Apellidos",
|
|
37
|
+
"genderLabelText": "Sexo",
|
|
38
|
+
"genderRequired": "El sexo es obligatorio",
|
|
39
|
+
"genderUnspecified": "Género no especificado",
|
|
40
|
+
"givenNameLabelText": "Nombre",
|
|
41
|
+
"givenNameRequired": "El nombre es obligatorio",
|
|
42
|
+
"identifierValueRequired": "El valor del identificador es obligatorio",
|
|
43
|
+
"idFieldLabelText": "Identificadores",
|
|
44
|
+
"incompleteForm": "Formulario incompleto",
|
|
45
|
+
"invalidEmail": "Debe indicar un email válido",
|
|
46
|
+
"invalidInput": "Entrada no válida",
|
|
47
|
+
"isDeadInputLabel": "Está muerto",
|
|
48
|
+
"jumpTo": "Ir a",
|
|
49
|
+
"loadingResults": "Cargando resultados",
|
|
50
|
+
"male": "Masculino",
|
|
51
|
+
"middleNameLabelText": "Segundo Nombre",
|
|
52
|
+
"negativeMonths": "Meses negativos",
|
|
53
|
+
"negativeYears": "Años negativos",
|
|
54
54
|
"no": "No",
|
|
55
|
-
"noResultsFound": "No
|
|
56
|
-
"numberInNameDubious": "",
|
|
57
|
-
"optional": "
|
|
58
|
-
"other": "
|
|
59
|
-
"patient": "
|
|
60
|
-
"patientNameKnown": "
|
|
61
|
-
"registerPatient": "
|
|
62
|
-
"registrationSuccessToastDescription": "
|
|
63
|
-
"registrationSuccessToastTitle": "
|
|
64
|
-
"relationship": "
|
|
65
|
-
"relationshipPlaceholder": "
|
|
66
|
-
"relationshipRemovedText": "
|
|
67
|
-
"relationshipsSection": "
|
|
68
|
-
"relationshipToPatient": "
|
|
69
|
-
"relativeFullNameLabelText": "
|
|
70
|
-
"relativeNamePlaceholder": "
|
|
71
|
-
"resetIdentifierTooltip": "
|
|
72
|
-
"restoreRelationshipActionButton": "
|
|
73
|
-
"searchAddress": "
|
|
74
|
-
"selectAnOption": "
|
|
75
|
-
"sexFieldLabelText": "
|
|
76
|
-
"stroke": "
|
|
77
|
-
"unableToFetch": "
|
|
78
|
-
"unknown": "
|
|
79
|
-
"updatePatient": "
|
|
80
|
-
"updationSuccessToastDescription": "
|
|
81
|
-
"updationSuccessToastTitle": "
|
|
82
|
-
"yearsEstimateRequired": "",
|
|
83
|
-
"yes": "
|
|
55
|
+
"noResultsFound": "No se encuentran resultados",
|
|
56
|
+
"numberInNameDubious": "Número en nombre es dudoso",
|
|
57
|
+
"optional": "opcional",
|
|
58
|
+
"other": "Otro",
|
|
59
|
+
"patient": "Paciente",
|
|
60
|
+
"patientNameKnown": "¿Se sabe el nombre del paciente?",
|
|
61
|
+
"registerPatient": "Registrar paciente",
|
|
62
|
+
"registrationSuccessToastDescription": "Ahora se puede encontrar al paciente buscándolo por su nombre o número de identificación",
|
|
63
|
+
"registrationSuccessToastTitle": "Nuevo paciente creado",
|
|
64
|
+
"relationship": "Relación",
|
|
65
|
+
"relationshipPlaceholder": "Relación",
|
|
66
|
+
"relationshipRemovedText": "Relación eliminada",
|
|
67
|
+
"relationshipsSection": "Relaciones",
|
|
68
|
+
"relationshipToPatient": "Relación con el paciente",
|
|
69
|
+
"relativeFullNameLabelText": "Nombre y Apellidos",
|
|
70
|
+
"relativeNamePlaceholder": "Nombre Apellido",
|
|
71
|
+
"resetIdentifierTooltip": "resetear",
|
|
72
|
+
"restoreRelationshipActionButton": "Deshacer",
|
|
73
|
+
"searchAddress": "Buscar dirección",
|
|
74
|
+
"selectAnOption": "Seleccionar una opción",
|
|
75
|
+
"sexFieldLabelText": "Sexo",
|
|
76
|
+
"stroke": "Ictus",
|
|
77
|
+
"unableToFetch": "No se puede obtener el tipo de atributo de persona {personattributetype}",
|
|
78
|
+
"unknown": "Desconocido",
|
|
79
|
+
"updatePatient": "Paciente Actualizado",
|
|
80
|
+
"updationSuccessToastDescription": "La información del paciente se ha actualizado correctamente",
|
|
81
|
+
"updationSuccessToastTitle": "Datos del paciente actualizados",
|
|
82
|
+
"yearsEstimateRequired": "Estimación de años obligatoria",
|
|
83
|
+
"yes": "Sí"
|
|
84
84
|
}
|