This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
index.ts
135 lines (135 loc) · 4.17 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
export default {
patient: {
code: 'Patient Code',
firstName: 'First Name',
lastName: 'Last Name',
suffix: 'Suffix',
prefix: 'Prefix',
givenName: 'Given Name',
familyName: 'Family Name',
dateOfBirth: 'Date of Birth',
approximateDateOfBirth: 'Approximate Date of Birth',
age: 'Age',
approximateAge: 'Approximate Age',
placeOfBirth: 'Place of Birth',
sex: 'Sex',
phoneNumber: 'Phone Number',
email: 'Email',
address: 'Address',
occupation: 'Occupation',
type: 'Patient Type',
preferredLanguage: 'Preferred Language',
basicInformation: 'Basic Information',
generalInformation: 'General Information',
contactInformation: 'Contact Information',
unknownDateOfBirth: 'Unknown',
relatedPerson: 'Related Person',
relatedPersons: {
error: {
unableToAddRelatedPerson: 'Unable to add new related person.',
relatedPersonRequired: 'Related Person is required.',
relationshipTypeRequired: 'Relationship Type is required.',
},
label: 'Related Persons',
new: 'New Related Person',
add: 'Add Related Person',
relationshipType: 'Relationship Type',
warning: {
noRelatedPersons: 'No related persons',
},
addRelatedPersonAbove: 'Add a related person using the button above.',
},
appointments: {
new: 'Add Appointment',
},
allergies: {
label: 'Allergies',
allergyName: 'Allergy Name',
new: 'Add Allergy',
error: {
nameRequired: 'Name is required.',
unableToAdd: 'Unable to add allergy.',
},
warning: {
noAllergies: 'No Allergies',
},
addAllergyAbove: 'Add an allergy using the button above.',
successfullyAdded: 'Successfully added a new allergy!',
},
diagnoses: {
label: 'Diagnoses',
new: 'Add Diagnosis',
diagnosisName: 'Diagnosis Name',
diagnosisDate: 'Diagnosis Date',
warning: {
noDiagnoses: 'No Diagnoses',
},
error: {
nameRequired: 'Diagnosis Name is required.',
dateRequired: 'Diagnosis Date is required.',
unableToAdd: 'Unable to add new diagnosis',
},
addDiagnosisAbove: 'Add a diagnosis using the button above.',
successfullyAdded: 'Successfully added a new diagnosis!',
},
note: 'Note',
notes: {
label: 'Notes',
new: 'Add New Note',
warning: {
noNotes: 'No Notes',
},
error: {
noteRequired: 'Note is required.',
unableToAdd: 'Unable to add new note.',
},
addNoteAbove: 'Add a note using the button above.',
},
labs: {
label: 'Labs',
new: 'Add New Lab',
warning: {
noLabs: 'No Labs',
},
noLabsMessage: 'No labs requests for this person.',
},
carePlan: {
new: 'Add Care Plan',
label: 'Care Plans',
title: 'Title',
description: 'Description',
status: 'Status',
condition: 'Condition',
intent: 'Intent',
startDate: 'Start Date',
endDate: 'End Date',
note: 'Note',
error: {
unableToAdd: 'Unable to add a new care plan.',
titleRequired: 'Title is required.',
descriptionRequired: 'Description is required.',
conditionRequired: 'Condition is required.',
statusRequired: 'Status is required.',
intentRequired: 'Intent is required.',
startDate: 'Start date is required.',
endDate: 'End date is required',
}
},
types: {
charity: 'Charity',
private: 'Private',
},
errors: {
createPatientError: 'Could not create new patient.',
updatePatientError: 'Could not update patient.',
patientGivenNameFeedback: 'Given Name is required.',
patientDateOfBirthFeedback: 'Date of Birth can not be greater than today',
patientNumInSuffixFeedback: 'Cannot contain numbers.',
patientNumInPrefixFeedback: 'Cannot contain numbers.',
patientNumInFamilyNameFeedback: 'Cannot contain numbers.',
patientNumInPreferredLanguageFeedback: 'Cannot contain numbers.',
invalidEmail: 'Must be a valid email.',
invalidPhoneNumber: 'Must be a valid phone number.',
},
},
}