@kenyaemr/esm-patient-registration-app 5.2.2 → 6.0.0
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/271.js +1 -0
- package/dist/319.js +1 -1
- package/dist/330.js +1 -1
- package/dist/460.js +1 -1
- package/dist/537.js +1 -1
- package/dist/574.js +1 -1
- package/dist/59.js +1 -1
- package/dist/59.js.map +1 -1
- package/dist/619.js +1 -0
- package/dist/619.js.map +1 -0
- package/dist/644.js +1 -0
- package/dist/735.js +1 -1
- package/dist/757.js +1 -1
- package/dist/784.js +1 -1
- package/dist/788.js +1 -1
- package/dist/807.js +1 -1
- package/dist/833.js +1 -1
- package/dist/895.js +2 -0
- package/dist/{388.js.LICENSE.txt → 895.js.LICENSE.txt} +4 -2
- package/dist/895.js.map +1 -0
- package/dist/{openmrs-esm-patient-registration-app.js → kenyaemr-esm-patient-registration-app.js} +1 -1
- package/dist/{openmrs-esm-patient-registration-app.js.buildmanifest.json → kenyaemr-esm-patient-registration-app.js.buildmanifest.json} +117 -73
- package/dist/kenyaemr-esm-patient-registration-app.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +4 -2
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +6 -5
- package/src/add-patient-link.test.tsx +9 -7
- package/src/config-schema.ts +31 -38
- package/src/constants.ts +1 -1
- package/src/offline.resources.ts +13 -18
- package/src/offline.ts +8 -6
- package/src/patient-registration/before-save-prompt.tsx +2 -1
- package/src/patient-registration/field/__mocks__/field.resource.ts +1 -1
- package/src/patient-registration/field/address/address-field.component.tsx +5 -4
- package/src/patient-registration/field/address/address-hierarchy.resource.tsx +2 -2
- package/src/patient-registration/field/address/address-search.component.tsx +1 -14
- package/src/patient-registration/field/address/custom-address-field.component.tsx +1 -1
- package/src/patient-registration/field/address/tests/address-hierarchy.test.tsx +3 -3
- package/src/patient-registration/field/address/tests/address-search-component.test.tsx +14 -7
- package/src/patient-registration/field/custom-field.component.tsx +1 -1
- package/src/patient-registration/field/dob/dob.component.tsx +2 -2
- package/src/patient-registration/field/dob/dob.test.tsx +0 -3
- package/src/patient-registration/field/field.component.tsx +4 -1
- package/src/patient-registration/field/field.resource.ts +4 -4
- package/src/patient-registration/field/field.test.tsx +98 -95
- package/src/patient-registration/field/gender/gender-field.component.tsx +4 -4
- package/src/patient-registration/field/gender/gender-field.test.tsx +7 -14
- package/src/patient-registration/field/id/id-field.component.tsx +6 -6
- package/src/patient-registration/field/id/id-field.test.tsx +9 -7
- package/src/patient-registration/field/id/identifier-selection-overlay.component.tsx +1 -1
- package/src/patient-registration/field/name/name-field.component.tsx +1 -1
- package/src/patient-registration/field/obs/obs-field.component.tsx +35 -33
- package/src/patient-registration/field/obs/obs-field.test.tsx +106 -28
- package/src/patient-registration/field/person-attributes/coded-attributes.component.tsx +1 -1
- package/src/patient-registration/field/person-attributes/coded-person-attribute-field.component.tsx +70 -24
- package/src/patient-registration/field/person-attributes/coded-person-attribute-field.test.tsx +54 -30
- package/src/patient-registration/field/person-attributes/person-attribute-field.component.tsx +4 -3
- package/src/patient-registration/field/person-attributes/person-attribute-field.test.tsx +1 -1
- package/src/patient-registration/field/person-attributes/{person-attributes.resource.tsx → person-attributes.resource.ts} +3 -3
- package/src/patient-registration/field/person-attributes/text-person-attribute-field.component.tsx +1 -1
- package/src/patient-registration/field/phone/phone-field.component.tsx +16 -0
- package/src/patient-registration/form-manager.test.ts +1 -1
- package/src/patient-registration/form-manager.ts +22 -24
- package/src/patient-registration/input/basic-input/select/select-input.test.tsx +3 -3
- package/src/patient-registration/input/custom-input/autosuggest/autosuggest.component.tsx +5 -5
- package/src/patient-registration/input/custom-input/autosuggest/autosuggest.test.tsx +70 -58
- package/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx +2 -2
- package/src/patient-registration/input/custom-input/identifier/identifier-input.test.tsx +2 -5
- package/src/patient-registration/input/custom-input/identifier/utils.ts +1 -1
- package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +1 -1
- package/src/patient-registration/input/dummy-data/dummy-data-input.test.tsx +6 -6
- package/src/patient-registration/patient-registration-context.ts +3 -4
- package/src/patient-registration/patient-registration-hooks.ts +25 -20
- package/src/patient-registration/patient-registration-utils.ts +7 -7
- package/src/patient-registration/patient-registration.component.tsx +20 -10
- package/src/patient-registration/patient-registration.resource.test.tsx +3 -3
- package/src/patient-registration/{patient-registration.resource.tsx → patient-registration.resource.ts} +15 -15
- package/src/patient-registration/patient-registration.test.tsx +270 -251
- package/src/patient-registration/{patient-registration.types.tsx → patient-registration.types.ts} +12 -3
- package/src/patient-registration/section/death-info/death-info-section.test.tsx +33 -45
- package/src/patient-registration/section/demographics/demographics-section.test.tsx +1 -2
- package/src/patient-registration/section/generic-section.component.tsx +1 -1
- package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +3 -3
- package/src/patient-registration/section/patient-relationships/relationships-section.test.tsx +17 -5
- package/src/patient-registration/section/patient-relationships/relationships.resource.tsx +4 -4
- package/src/patient-registration/section/section-wrapper.component.tsx +1 -1
- package/src/patient-registration/section/section.component.tsx +1 -1
- package/src/patient-registration/validation/patient-registration-validation.test.tsx +140 -126
- package/src/patient-registration/validation/patient-registration-validation.tsx +54 -46
- package/src/patient-verification/patient-verification-hook.tsx +13 -4
- package/src/patient-verification/patient-verification-utils.ts +20 -12
- package/src/patient-verification/patient-verification.component.tsx +13 -6
- package/src/patient-verification/patient-verification.scss +0 -1
- package/src/patient-verification/verification-modal/confirm-prompt.component.tsx +2 -11
- package/src/routes.json +1 -0
- package/src/widgets/cancel-patient-edit.test.tsx +7 -4
- package/src/widgets/delete-identifier-confirmation-modal.test.tsx +7 -4
- package/src/widgets/display-photo.test.tsx +1 -1
- package/src/widgets/edit-patient-details-button.test.tsx +12 -7
- package/translations/am.json +30 -14
- package/translations/ar.json +30 -14
- package/translations/en.json +11 -11
- package/translations/es.json +34 -22
- package/translations/fr.json +48 -40
- package/translations/he.json +22 -2
- package/translations/km.json +22 -2
- package/translations/zh.json +97 -0
- package/translations/zh_CN.json +97 -0
- package/tsconfig.json +1 -1
- package/__mocks__/autogenerationoptions.mock.ts +0 -34
- package/dist/388.js +0 -2
- package/dist/388.js.map +0 -1
- package/dist/598.js +0 -1
- package/dist/598.js.map +0 -1
- package/dist/openmrs-esm-patient-registration-app.js.map +0 -1
- package/src/patient-registration/field/__mocks__/identifier-types.mock.ts +0 -76
- package/src/patient-registration/field/__mocks__/identifiers.mock.ts +0 -27
- package/src/patient-registration/field/address/tests/mocks.ts +0 -98
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addRelationshipButtonText": "添加关系",
|
|
3
|
+
"addressHeader": "地址",
|
|
4
|
+
"allFieldsRequiredText": "所有字段都是必填的,除非标记为可选。",
|
|
5
|
+
"autoGeneratedPlaceholderText": "自动生成",
|
|
6
|
+
"birthdayNotInTheFuture": "生日不能是未来的日期",
|
|
7
|
+
"birthdayRequired": "生日是必填项",
|
|
8
|
+
"birthFieldLabelText": "出生",
|
|
9
|
+
"cancel": "取消",
|
|
10
|
+
"causeOfDeathInputLabel": "死因",
|
|
11
|
+
"closeOverlay": "关闭叠加",
|
|
12
|
+
"codedPersonAttributeAnswerSetEmpty": "编码的人员属性字段'{{codedPersonAttributeFieldId}}'已使用没有任何概念答案的答案概念集UUID'{{answerConceptSetUuid}}'进行定义。",
|
|
13
|
+
"codedPersonAttributeAnswerSetInvalid": "编码的人员属性字段'{{codedPersonAttributeFieldId}}'已使用无效的答案概念集UUID'{{answerConceptSetUuid}}'进行定义。",
|
|
14
|
+
"codedPersonAttributeNoAnswerSet": "人员属性字段'{{codedPersonAttributeFieldId}}'的类型为'coded',但未定义答案概念集UUID。'answerConceptSetUuid'键是必需的。",
|
|
15
|
+
"configure": "配置",
|
|
16
|
+
"configureIdentifiers": "配置ID标识",
|
|
17
|
+
"contactSection": "联系方式",
|
|
18
|
+
"createNew": "新建",
|
|
19
|
+
"dateOfBirthLabelText": "出生日期",
|
|
20
|
+
"deathDateInputLabel": "死亡日期",
|
|
21
|
+
"deathdayNotInTheFuture": "死亡日期不能是未来的日期",
|
|
22
|
+
"deathSection": "死亡信息",
|
|
23
|
+
"deleteIdentifierTooltip": "删除",
|
|
24
|
+
"deleteRelationshipTooltipText": "删除",
|
|
25
|
+
"demographicsSection": "基本信息",
|
|
26
|
+
"discard": "放弃",
|
|
27
|
+
"discardModalBody": "您对该患者的详细信息所做的更改尚未保存。放弃更改吗?",
|
|
28
|
+
"discardModalHeader": "确认放弃更改",
|
|
29
|
+
"dobToggleLabelText": "出生日期已知?",
|
|
30
|
+
"edit": "编辑",
|
|
31
|
+
"editIdentifierTooltip": "编辑",
|
|
32
|
+
"editPatientDetails": "编辑患者详情",
|
|
33
|
+
"editPatientDetailsBreadcrumb": "编辑患者详情",
|
|
34
|
+
"error": "错误",
|
|
35
|
+
"errorFetchingOrderedFields": "获取地址层次结构的排序字段时发生错误",
|
|
36
|
+
"estimatedAgeInMonthsLabelText": "月龄估算",
|
|
37
|
+
"estimatedAgeInYearsLabelText": "年龄估算",
|
|
38
|
+
"familyNameLabelText": "姓氏",
|
|
39
|
+
"familyNameRequired": "姓氏是必填项",
|
|
40
|
+
"female": "女性",
|
|
41
|
+
"fullNameLabelText": "全名",
|
|
42
|
+
"genderLabelText": "性别",
|
|
43
|
+
"genderRequired": "性别是必填项",
|
|
44
|
+
"genderUnspecified": "性别未指定",
|
|
45
|
+
"givenNameLabelText": "名字",
|
|
46
|
+
"givenNameRequired": "名字是必填项",
|
|
47
|
+
"identifierValueRequired": "ID标识是必填项",
|
|
48
|
+
"idFieldLabelText": "ID标识",
|
|
49
|
+
"IDInstructions": "选择您想为该患者添加的ID标识:",
|
|
50
|
+
"incompleteForm": "表单未填完",
|
|
51
|
+
"invalidEmail": "需要提供一个有效的电子邮件地址",
|
|
52
|
+
"invalidInput": "输入无效",
|
|
53
|
+
"isDeadInputLabel": "已故",
|
|
54
|
+
"jumpTo": "跳转至",
|
|
55
|
+
"male": "男性",
|
|
56
|
+
"middleNameLabelText": "中间名",
|
|
57
|
+
"negativeMonths": "负的月份",
|
|
58
|
+
"negativeYears": "负的年份",
|
|
59
|
+
"no": "否",
|
|
60
|
+
"numberInNameDubious": "姓名中含有数字",
|
|
61
|
+
"obsFieldUnknownDatatype": "obs字段'{{fieldDefinitionId}}'的概念具有未知数据类型'{{datatypeName}}'",
|
|
62
|
+
"optional": "可选的",
|
|
63
|
+
"other": "其他",
|
|
64
|
+
"patient": "患者",
|
|
65
|
+
"patientNameKnown": "患者的姓名已知?",
|
|
66
|
+
"patientRegistrationBreadcrumb": "患者注册",
|
|
67
|
+
"registerPatient": "注册患者",
|
|
68
|
+
"registerPatientSuccessSnackbarSubtitle": "现在可以通过姓名或ID号搜索到该患者",
|
|
69
|
+
"registerPatientSuccessSnackbarTitle": "新患者已创建",
|
|
70
|
+
"registrationErrorSnackbarTitle": "患者注册失败",
|
|
71
|
+
"relationship": "关系",
|
|
72
|
+
"relationshipPersonMustExist": "关系人必须是现有的人员",
|
|
73
|
+
"relationshipPlaceholder": "关系",
|
|
74
|
+
"relationshipRemovedText": "关系已移除",
|
|
75
|
+
"relationshipsSection": "关系人信息",
|
|
76
|
+
"relationshipToPatient": "与患者的关系",
|
|
77
|
+
"relativeFullNameLabelText": "关系人",
|
|
78
|
+
"relativeNamePlaceholder": "名字 姓氏",
|
|
79
|
+
"resetIdentifierTooltip": "重置",
|
|
80
|
+
"restoreRelationshipActionButton": "撤销",
|
|
81
|
+
"searchAddress": "搜索地址",
|
|
82
|
+
"searchIdentifierPlaceholder": "搜索ID标识",
|
|
83
|
+
"selectAnOption": "选择一个选项",
|
|
84
|
+
"sexFieldLabelText": "性别",
|
|
85
|
+
"source": "来源",
|
|
86
|
+
"stroke": "卒中",
|
|
87
|
+
"submitting": "提交中",
|
|
88
|
+
"unableToFetch": "无法获取人员属性类型{{personattributetype}}",
|
|
89
|
+
"unknown": "未知",
|
|
90
|
+
"unknownPatientAttributeType": "患者属性类型具有未知格式{{personAttributeTypeFormat}}",
|
|
91
|
+
"updatePatient": "更新患者",
|
|
92
|
+
"updatePatientErrorSnackbarTitle": "患者详情更新失败",
|
|
93
|
+
"updatePatientSuccessSnackbarSubtitle": "患者的信息已成功更新",
|
|
94
|
+
"updatePatientSuccessSnackbarTitle": "患者详情已更新",
|
|
95
|
+
"yearsEstimateRequired": "需要年龄估算",
|
|
96
|
+
"yes": "是"
|
|
97
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const mockAutoGenerationOptionsResult = {
|
|
2
|
-
results: [
|
|
3
|
-
{
|
|
4
|
-
uuid: '42ae5ce0-d64b-11ea-9064-5adc43bbdd24',
|
|
5
|
-
location: null,
|
|
6
|
-
source: {
|
|
7
|
-
uuid: '691eed12-c0f1-11e2-94be-8c13b969e334',
|
|
8
|
-
},
|
|
9
|
-
manualEntryEnabled: false,
|
|
10
|
-
automaticGenerationEnabled: true,
|
|
11
|
-
resourceVersion: '1.8',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
uuid: '497b8b17-54ec-4726-87ec-3c4da8cdcaeb',
|
|
15
|
-
location: null,
|
|
16
|
-
source: {
|
|
17
|
-
uuid: '691eed12-c0f1-11e2-94be-8c13b969e334',
|
|
18
|
-
},
|
|
19
|
-
manualEntryEnabled: true,
|
|
20
|
-
automaticGenerationEnabled: false,
|
|
21
|
-
resourceVersion: '1.8',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
uuid: 'ed0529de-3530-4c49-921b-b4845a750b7e',
|
|
25
|
-
location: null,
|
|
26
|
-
source: {
|
|
27
|
-
uuid: '75df804e-03c1-4964-842b-4fec585839e7',
|
|
28
|
-
},
|
|
29
|
-
manualEntryEnabled: true,
|
|
30
|
-
automaticGenerationEnabled: false,
|
|
31
|
-
resourceVersion: '1.8',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
};
|