@kenyaemr/esm-patient-registration-app 5.2.1 → 5.2.3

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 (111) hide show
  1. package/dist/102.js +1 -0
  2. package/dist/102.js.map +1 -0
  3. package/dist/130.js +1 -1
  4. package/dist/130.js.map +1 -1
  5. package/dist/271.js +1 -0
  6. package/dist/319.js +1 -1
  7. package/dist/431.js +2 -0
  8. package/dist/431.js.map +1 -0
  9. package/dist/460.js +1 -1
  10. package/dist/537.js +1 -1
  11. package/dist/537.js.map +1 -1
  12. package/dist/574.js +1 -1
  13. package/dist/644.js +1 -0
  14. package/dist/757.js +1 -1
  15. package/dist/784.js +1 -1
  16. package/dist/788.js +1 -1
  17. package/dist/807.js +1 -1
  18. package/dist/833.js +1 -1
  19. package/dist/kenyaemr-esm-patient-registration-app.js +1 -1
  20. package/dist/kenyaemr-esm-patient-registration-app.js.buildmanifest.json +91 -47
  21. package/dist/kenyaemr-esm-patient-registration-app.js.map +1 -1
  22. package/dist/main.js +1 -1
  23. package/dist/main.js.map +1 -1
  24. package/dist/routes.json +1 -1
  25. package/dist.tar.gz +0 -0
  26. package/package.json +3 -2
  27. package/src/add-patient-link.test.tsx +9 -7
  28. package/src/config-schema.ts +31 -38
  29. package/src/constants.ts +1 -1
  30. package/src/offline.resources.ts +1 -1
  31. package/src/offline.ts +2 -2
  32. package/src/patient-registration/before-save-prompt.tsx +2 -1
  33. package/src/patient-registration/field/__mocks__/field.resource.ts +1 -1
  34. package/src/patient-registration/field/address/address-field.component.tsx +5 -4
  35. package/src/patient-registration/field/address/address-hierarchy.resource.tsx +2 -2
  36. package/src/patient-registration/field/address/address-search.component.tsx +1 -14
  37. package/src/patient-registration/field/address/custom-address-field.component.tsx +1 -1
  38. package/src/patient-registration/field/address/tests/address-hierarchy.test.tsx +3 -3
  39. package/src/patient-registration/field/address/tests/address-search-component.test.tsx +14 -7
  40. package/src/patient-registration/field/custom-field.component.tsx +1 -1
  41. package/src/patient-registration/field/dob/dob.component.tsx +2 -2
  42. package/src/patient-registration/field/dob/dob.test.tsx +0 -3
  43. package/src/patient-registration/field/field.component.tsx +4 -1
  44. package/src/patient-registration/field/field.resource.ts +2 -2
  45. package/src/patient-registration/field/field.test.tsx +98 -95
  46. package/src/patient-registration/field/gender/gender-field.component.tsx +4 -4
  47. package/src/patient-registration/field/gender/gender-field.test.tsx +7 -14
  48. package/src/patient-registration/field/id/id-field.component.tsx +6 -6
  49. package/src/patient-registration/field/id/id-field.test.tsx +9 -7
  50. package/src/patient-registration/field/id/identifier-selection-overlay.component.tsx +1 -1
  51. package/src/patient-registration/field/name/name-field.component.tsx +1 -1
  52. package/src/patient-registration/field/obs/obs-field.component.tsx +35 -33
  53. package/src/patient-registration/field/obs/obs-field.test.tsx +106 -28
  54. package/src/patient-registration/field/person-attributes/coded-attributes.component.tsx +1 -1
  55. package/src/patient-registration/field/person-attributes/coded-person-attribute-field.component.tsx +67 -24
  56. package/src/patient-registration/field/person-attributes/coded-person-attribute-field.test.tsx +54 -30
  57. package/src/patient-registration/field/person-attributes/person-attribute-field.component.tsx +4 -3
  58. package/src/patient-registration/field/person-attributes/person-attribute-field.test.tsx +1 -1
  59. package/src/patient-registration/field/person-attributes/{person-attributes.resource.tsx → person-attributes.resource.ts} +2 -2
  60. package/src/patient-registration/field/person-attributes/text-person-attribute-field.component.tsx +1 -1
  61. package/src/patient-registration/field/phone/phone-field.component.tsx +16 -0
  62. package/src/patient-registration/form-manager.test.ts +1 -1
  63. package/src/patient-registration/form-manager.ts +14 -22
  64. package/src/patient-registration/input/basic-input/select/select-input.test.tsx +3 -3
  65. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.component.tsx +5 -5
  66. package/src/patient-registration/input/custom-input/autosuggest/autosuggest.test.tsx +70 -58
  67. package/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx +1 -1
  68. package/src/patient-registration/input/custom-input/identifier/identifier-input.test.tsx +2 -5
  69. package/src/patient-registration/input/custom-input/identifier/utils.ts +1 -1
  70. package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +1 -1
  71. package/src/patient-registration/input/dummy-data/dummy-data-input.test.tsx +6 -6
  72. package/src/patient-registration/patient-registration-context.ts +3 -4
  73. package/src/patient-registration/patient-registration-hooks.ts +12 -12
  74. package/src/patient-registration/patient-registration-utils.ts +7 -7
  75. package/src/patient-registration/patient-registration.component.tsx +7 -7
  76. package/src/patient-registration/{patient-registration.resource.tsx → patient-registration.resource.ts} +1 -1
  77. package/src/patient-registration/patient-registration.test.tsx +270 -251
  78. package/src/patient-registration/{patient-registration.types.tsx → patient-registration.types.ts} +11 -3
  79. package/src/patient-registration/section/death-info/death-info-section.test.tsx +33 -45
  80. package/src/patient-registration/section/demographics/demographics-section.test.tsx +1 -2
  81. package/src/patient-registration/section/generic-section.component.tsx +1 -1
  82. package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +3 -3
  83. package/src/patient-registration/section/patient-relationships/relationships-section.test.tsx +17 -5
  84. package/src/patient-registration/section/patient-relationships/relationships.resource.tsx +3 -3
  85. package/src/patient-registration/section/section-wrapper.component.tsx +1 -1
  86. package/src/patient-registration/section/section.component.tsx +1 -1
  87. package/src/patient-registration/validation/patient-registration-validation.test.tsx +140 -126
  88. package/src/patient-registration/validation/patient-registration-validation.tsx +54 -46
  89. package/src/widgets/cancel-patient-edit.test.tsx +7 -4
  90. package/src/widgets/delete-identifier-confirmation-modal.test.tsx +7 -4
  91. package/src/widgets/display-photo.test.tsx +1 -1
  92. package/src/widgets/edit-patient-details-button.test.tsx +12 -7
  93. package/translations/am.json +4 -2
  94. package/translations/ar.json +4 -2
  95. package/translations/en.json +4 -2
  96. package/translations/es.json +4 -2
  97. package/translations/fr.json +4 -2
  98. package/translations/he.json +4 -2
  99. package/translations/km.json +4 -2
  100. package/translations/zh.json +89 -0
  101. package/translations/zh_CN.json +89 -0
  102. package/tsconfig.json +1 -1
  103. package/__mocks__/autogenerationoptions.mock.ts +0 -34
  104. package/dist/388.js +0 -2
  105. package/dist/388.js.map +0 -1
  106. package/dist/598.js +0 -1
  107. package/dist/598.js.map +0 -1
  108. package/src/patient-registration/field/__mocks__/identifier-types.mock.ts +0 -76
  109. package/src/patient-registration/field/__mocks__/identifiers.mock.ts +0 -27
  110. package/src/patient-registration/field/address/tests/mocks.ts +0 -98
  111. /package/dist/{388.js.LICENSE.txt → 431.js.LICENSE.txt} +0 -0
package/dist/271.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[271],{8271:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"添加关系","address1":"地址行1","address2":"地址行2","addressHeader":"地址","allFieldsRequiredText":"所有字段都是必填的,除非标记为可选。","autoGeneratedPlaceholderText":"自动生成","birthdayNotInTheFuture":"生日不能是未来的日期","birthdayRequired":"生日是必填项","birthFieldLabelText":"出生","cancel":"取消","causeOfDeathInputLabel":"死因","cityVillage":"城市","configure":"配置","country":"国家","countyDistrict":"区县","createNew":"新建","dateOfBirthLabelText":"出生日期","deathDateInputLabel":"死亡日期","deathdayNotInTheFuture":"死亡日期不能是未来的日期","deleteIdentifierTooltip":"删除","deleteRelationshipTooltipText":"删除","discard":"放弃","discardModalBody":"您对该患者的详细信息所做的更改尚未保存。放弃更改吗?","discardModalHeader":"确认放弃更改","dobToggleLabelText":"出生日期已知?","edit":"编辑","editIdentifierTooltip":"编辑","editPatientDetails":"编辑患者详情","emailLabelText":"电子邮件","estimatedAgeInMonthsLabelText":"月龄估算","estimatedAgeInYearsLabelText":"年龄估算","familyNameLabelText":"姓氏","familyNameRequired":"姓氏是必填项","female":"女性","fieldErrorTitleMessage":"以下字段存在错误:","fullNameLabelText":"全名","genderLabelText":"性别","genderRequired":"性别是必填项","genderUnspecified":"性别未指定","givenNameLabelText":"名字","givenNameRequired":"名字是必填项","identifierValueRequired":"ID标识是必填项","idFieldLabelText":"ID标识","incompleteForm":"表单未填完","invalidEmail":"需要提供一个有效的电子邮件地址","invalidInput":"输入无效","isDeadInputLabel":"已故","jumpTo":"跳转至","loadingResults":"正在加载结果","male":"男性","middleNameLabelText":"中间名","months":"月","negativeMonths":"负的月份","negativeYears":"负的年份","no":"否","noResultsFound":"未找到结果","numberInNameDubious":"姓名中含有数字","optional":"可选的","other":"其他","patient":"患者","patientNameKnown":"患者的姓名已知?","phoneEmailLabelText":"电话、电子邮件等。","phoneNumberInputLabelText":"电话号码","postalCode":"邮政编码","registerPatient":"注册患者","registrationSuccessToastDescription":"现在可以通过姓名或ID来搜索患者。","registrationSuccessToastTitle":"新患者已创建","relationship":"关系","relationshipPlaceholder":"关系","relationshipRemovedText":"关系已移除","relationshipToPatient":"与患者的关系","relativeFullNameLabelText":"全名","relativeNamePlaceholder":"名字 姓氏","resetIdentifierTooltip":"重置","restoreRelationshipActionButton":"撤销","searchAddress":"搜索地址","sexFieldLabelText":"性别","stateProvince":"省份","stroke":"卒中","unidentifiedPatient":"未知患者","unknown":"未知","updatePatient":"更新患者","updationSuccessToastDescription":"患者信息已成功更新","updationSuccessToastTitle":"患者详情已更新","years":"年","yearsEstimateRequired":"需要年龄估算","yes":"是"}')}}]);
package/dist/319.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"Agregar relación","addressHeader":"Dirección","age":"Age","allFieldsRequiredText":"Todos los campos son obligatorios a menos que se indique como opcionales","autoGeneratedPlaceholderText":"Autogenerado","birthdayNotInTheFuture":"Cumpleaños no puede ser en el futuro","birthdayRequired":"Cumpleaños es obligatorio","birthFieldLabelText":"Nacimiento","cancel":"Cancelar","causeOfDeathInputLabel":"Causa de defunción","clientRegistryEmpty":"Create & Post Patient","clientVerificationWithClientRegistry":"Client verification with client registry","closeOverlay":"Close overlay","configure":"Configurar","configureIdentifiers":"Configure identifiers","contactSection":"Detalles de Contacto","continue":"Continue to registration","createNew":"Crear Nuevo/a","dateOfBirth":"Date of birth","dateOfBirthLabelText":"Fecha de Nacimiento","deathDateInputLabel":"Fecha de fallecimiento","deathdayNotInTheFuture":"El día de la muerte no puede ser en el futuro","deathSection":"Información de Fallecimiento","deleteIdentifierTooltip":"Eliminar","deleteRelationshipTooltipText":"Eliminar","demographicsSection":"Información Básica","discard":"Descartar","discardModalBody":"Los cambios realizados en los datos de este paciente no se han guardado. ¿Descartar cambios?","discardModalHeader":"Confirmar cambios de descarte","dobToggleLabelText":"¿Se conoce la fecha de nacimiento?","edit":"Editar","editIdentifierTooltip":"Editar","editPatientDetails":"Modificar los datos del paciente","editPatientDetailsBreadcrumb":"Edit patient details","error":"Error","errorFetchingOrderedFields":"Error ocurrió al obtener campos ordenados para la jerarquía de direcciones","estimatedAgeInMonthsLabelText":"Edad estimada en meses","estimatedAgeInYearsLabelText":"Edad estimada en años","familyNameLabelText":"Apellidos","familyNameRequired":"Apellidos es obligatorio","female":"Femenino","fullNameLabelText":"Nombre y Apellidos","gender":"Gender","genderLabelText":"Sexo","genderRequired":"El sexo es obligatorio","genderUnspecified":"Género no especificado","givenNameLabelText":"Nombre","givenNameRequired":"El nombre es obligatorio","identifierValueRequired":"El valor del identificador es obligatorio","idFieldLabelText":"Identificadores","IDInstructions":"Select the identifiers you\'d like to add for this patient:","incompleteForm":"Formulario incompleto","invalidEmail":"Debe indicar un email válido","invalidInput":"Entrada no válida","isDeadInputLabel":"Está muerto","jumpTo":"Ir a","loadingResults":"Cargando resultados","male":"Masculino","middleNameLabelText":"Segundo Nombre","nascopNumber":"Nascop facility no","nationalId":"National ID","negativeMonths":"Meses negativos","negativeYears":"Años negativos","no":"No","noResultsFound":"No se encuentran resultados","numberInNameDubious":"Número en nombre es dudoso","optional":"opcional","originFacilityCode":"Origin facility code","originFacilityName":"Origin facility name","other":"Otro","patient":"Paciente","patientDetailsFound":"Patient information found in the registry, do you want to use the information to continue with registration?","patientName":"Patient name","patientNameKnown":"¿Se sabe el nombre del paciente?","patientNotFound":"The patient records could not be found in Client registry, do you want to continue to create and post patient to registry","patientRegistrationBreadcrumb":"Patient Registration","postToRegistry":"Post to registry","registerPatient":"Registrar paciente","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relación","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relación","relationshipRemovedText":"Relación eliminada","relationshipsSection":"Relaciones","relationshipToPatient":"Relación con el paciente","relativeFullNameLabelText":"Nombre y Apellidos","relativeNamePlaceholder":"Nombre Apellido","resetIdentifierTooltip":"resetear","restoreRelationshipActionButton":"Deshacer","searchAddress":"Buscar dirección","searchIdentifierPlaceholder":"Search identifier","selectAnOption":"Seleccionar una opción","selectCountry":"Select country","selectIdentifierType":"Select identifier type","sexFieldLabelText":"Sexo","source":"Source","stroke":"Ictus","submitting":"Submitting","unableToFetch":"No se puede obtener el tipo de atributo de persona {{personattributetype}}","unknown":"Desconocido","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Paciente Actualizado","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","useValues":"Use values","validate":"Validate","yearsEstimateRequired":"Estimación de años obligatoria","yes":"Sí"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"Agregar relación","addressHeader":"Dirección","age":"Age","allFieldsRequiredText":"Todos los campos son obligatorios a menos que se indique como opcionales","autoGeneratedPlaceholderText":"Autogenerado","birthdayNotInTheFuture":"Cumpleaños no puede ser en el futuro","birthdayRequired":"Cumpleaños es obligatorio","birthFieldLabelText":"Nacimiento","cancel":"Cancelar","causeOfDeathInputLabel":"Causa de defunción","clientRegistryEmpty":"Create & Post Patient","clientVerificationWithClientRegistry":"Client verification with client registry","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"Configurar","configureIdentifiers":"Configure identifiers","contactSection":"Detalles de Contacto","continue":"Continue to registration","createNew":"Crear Nuevo/a","dateOfBirth":"Date of birth","dateOfBirthLabelText":"Fecha de Nacimiento","deathDateInputLabel":"Fecha de fallecimiento","deathdayNotInTheFuture":"El día de la muerte no puede ser en el futuro","deathSection":"Información de Fallecimiento","deleteIdentifierTooltip":"Eliminar","deleteRelationshipTooltipText":"Eliminar","demographicsSection":"Información Básica","discard":"Descartar","discardModalBody":"Los cambios realizados en los datos de este paciente no se han guardado. ¿Descartar cambios?","discardModalHeader":"Confirmar cambios de descarte","dobToggleLabelText":"¿Se conoce la fecha de nacimiento?","edit":"Editar","editIdentifierTooltip":"Editar","editPatientDetails":"Modificar los datos del paciente","editPatientDetailsBreadcrumb":"Edit patient details","error":"Error","errorFetchingOrderedFields":"Error ocurrió al obtener campos ordenados para la jerarquía de direcciones","estimatedAgeInMonthsLabelText":"Edad estimada en meses","estimatedAgeInYearsLabelText":"Edad estimada en años","familyNameLabelText":"Apellidos","familyNameRequired":"Apellidos es obligatorio","female":"Femenino","fullNameLabelText":"Nombre y Apellidos","gender":"Gender","genderLabelText":"Sexo","genderRequired":"El sexo es obligatorio","genderUnspecified":"Género no especificado","givenNameLabelText":"Nombre","givenNameRequired":"El nombre es obligatorio","identifierValueRequired":"El valor del identificador es obligatorio","idFieldLabelText":"Identificadores","IDInstructions":"Select the identifiers you\'d like to add for this patient:","incompleteForm":"Formulario incompleto","invalidEmail":"Debe indicar un email válido","invalidInput":"Entrada no válida","isDeadInputLabel":"Está muerto","jumpTo":"Ir a","male":"Masculino","middleNameLabelText":"Segundo Nombre","nascopNumber":"Nascop facility no","nationalId":"National ID","negativeMonths":"Meses negativos","negativeYears":"Años negativos","no":"No","numberInNameDubious":"Número en nombre es dudoso","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"opcional","originFacilityCode":"Origin facility code","originFacilityName":"Origin facility name","other":"Otro","patient":"Paciente","patientDetailsFound":"Patient information found in the registry, do you want to use the information to continue with registration?","patientName":"Patient name","patientNameKnown":"¿Se sabe el nombre del paciente?","patientNotFound":"The patient records could not be found in Client registry, do you want to continue to create and post patient to registry","patientRegistrationBreadcrumb":"Patient Registration","postToRegistry":"Post to registry","registerPatient":"Registrar paciente","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"Relación","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"Relación","relationshipRemovedText":"Relación eliminada","relationshipsSection":"Relaciones","relationshipToPatient":"Relación con el paciente","relativeFullNameLabelText":"Nombre y Apellidos","relativeNamePlaceholder":"Nombre Apellido","resetIdentifierTooltip":"resetear","restoreRelationshipActionButton":"Deshacer","searchAddress":"Buscar dirección","searchIdentifierPlaceholder":"Search identifier","selectAnOption":"Seleccionar una opción","selectCountry":"Select country","selectIdentifierType":"Select identifier type","sexFieldLabelText":"Sexo","source":"Source","stroke":"Ictus","submitting":"Submitting","unableToFetch":"No se puede obtener el tipo de atributo de persona {{personattributetype}}","unknown":"Desconocido","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Paciente Actualizado","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","useValues":"Use values","validate":"Validate","yearsEstimateRequired":"Estimación de años obligatoria","yes":"Sí"}')}}]);