hplx-feature-library 1.0.154 → 1.0.156
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/AllInvestigations/index.js +1 -1
- package/dist/{AllInvestigationsTable-BbuaQqxb.cjs → AllInvestigationsTable-DssKJPb6.cjs} +3 -3
- package/dist/{AllInvestigationsTable-C5gSaw4T.js → AllInvestigationsTable-jOWFoHcQ.js} +124 -126
- package/dist/common/APIAction/APIAction.d.ts +55 -0
- package/dist/common/components/BorderFullWidth.d.ts +2 -0
- package/dist/common/components/table/ExistingPatients.d.ts +17 -0
- package/dist/common/editRibbon/EditRibbon.d.ts +9 -0
- package/dist/common/utils/NetworkInstance.d.ts +4 -0
- package/dist/common/utils/common-utils.d.ts +39 -0
- package/dist/components/PatientAddEdit.d.ts +3 -0
- package/dist/constants/CommonConstant.d.ts +58 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index.js +1 -1
- package/dist/types/APIEndPoints.d.ts +11 -0
- package/dist/types/ApiResponseTypes.d.ts +249 -0
- package/dist/types/CommonTypes.d.ts +228 -0
- package/dist/types/PatientAddEditTypes.d.ts +13 -0
- package/package.json +17 -3
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { GET_VISITPAD_PREFERENCES_RESPONSE } from './ApiResponseTypes';
|
|
2
|
+
export interface I_PREF_FEATURES {
|
|
3
|
+
enable_lis_v1: boolean;
|
|
4
|
+
enable_credit_system_v1: boolean;
|
|
5
|
+
enable_growth_chart_v1: boolean;
|
|
6
|
+
enable_ml_cds: boolean;
|
|
7
|
+
enable_pt_engmnt_v1: boolean;
|
|
8
|
+
enable_vaccine_chart_v1: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface DoctorChatPreferences {
|
|
11
|
+
chat_enabled: boolean;
|
|
12
|
+
num_messages_per_sub?: string;
|
|
13
|
+
subscription_days?: string;
|
|
14
|
+
charges: {
|
|
15
|
+
app_store_charge?: string;
|
|
16
|
+
doctor_fee?: string;
|
|
17
|
+
healthplix_charge?: string;
|
|
18
|
+
total?: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface I_PRINT_TEMPLATE {
|
|
22
|
+
config: I_PRINT_TEMPLATE_CONFIG;
|
|
23
|
+
is_default: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
export interface I_ConfigField {
|
|
27
|
+
include: string;
|
|
28
|
+
print: string;
|
|
29
|
+
rows?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface I_PRINT_TEMPLATE_CONFIG {
|
|
32
|
+
add_lang_change: I_ConfigField;
|
|
33
|
+
add_qr_code: I_ConfigField;
|
|
34
|
+
default_language: I_ConfigField;
|
|
35
|
+
enable_background_graphics: I_ConfigField;
|
|
36
|
+
enable_medicine_details: I_ConfigField;
|
|
37
|
+
field_address: I_ConfigField;
|
|
38
|
+
field_channel_through: I_ConfigField;
|
|
39
|
+
field_department_name: I_ConfigField;
|
|
40
|
+
field_doctor_name: I_ConfigField;
|
|
41
|
+
field_phone_number: I_ConfigField;
|
|
42
|
+
field_refer_by: I_ConfigField;
|
|
43
|
+
field_visit_number: I_ConfigField;
|
|
44
|
+
font_family: I_ConfigField;
|
|
45
|
+
font_size: I_ConfigField;
|
|
46
|
+
font_size_compensation: I_ConfigField;
|
|
47
|
+
footer_height: I_ConfigField;
|
|
48
|
+
footer_img_url: string;
|
|
49
|
+
generic_name: I_ConfigField;
|
|
50
|
+
header_height: I_ConfigField;
|
|
51
|
+
header_img_url: string;
|
|
52
|
+
margin_left: I_ConfigField;
|
|
53
|
+
margin_right: I_ConfigField;
|
|
54
|
+
not_include_sub_header: I_ConfigField;
|
|
55
|
+
page_height: I_ConfigField;
|
|
56
|
+
patient_img_height: I_ConfigField;
|
|
57
|
+
patient_img_width: I_ConfigField;
|
|
58
|
+
pdf_footer_height: I_ConfigField;
|
|
59
|
+
pdf_footer_height_V2: I_ConfigField;
|
|
60
|
+
pdf_header_height: I_ConfigField;
|
|
61
|
+
pdf_header_height_V2: I_ConfigField;
|
|
62
|
+
pdf_margin_left: I_ConfigField;
|
|
63
|
+
pdf_margin_left_V2: I_ConfigField;
|
|
64
|
+
pdf_margin_right: I_ConfigField;
|
|
65
|
+
pdf_margin_right_V2: I_ConfigField;
|
|
66
|
+
pdf_print_header_first: I_ConfigField;
|
|
67
|
+
pdf_print_margin: I_ConfigField;
|
|
68
|
+
pname_caps: I_ConfigField;
|
|
69
|
+
print_on_letter: I_ConfigField;
|
|
70
|
+
print_sign_img: I_ConfigField;
|
|
71
|
+
seal_img_url: string;
|
|
72
|
+
show_print_preview: I_ConfigField;
|
|
73
|
+
show_print_time: I_ConfigField;
|
|
74
|
+
sign_in_pres: I_ConfigField;
|
|
75
|
+
signature: string;
|
|
76
|
+
signature_alone_next_page: I_ConfigField;
|
|
77
|
+
signature_img_url: string;
|
|
78
|
+
tabular_rx: I_ConfigField;
|
|
79
|
+
[key: string]: string | I_ConfigField;
|
|
80
|
+
}
|
|
81
|
+
export type I_GROWTH_CHART_PRINT_PREF = {
|
|
82
|
+
[key: string]: {
|
|
83
|
+
print: boolean;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export interface GlobalWindow {
|
|
87
|
+
current_branch_name: string;
|
|
88
|
+
getUpdatedPatientDetails: () => void;
|
|
89
|
+
patient_person_id: string;
|
|
90
|
+
person_id_for_seg: string;
|
|
91
|
+
org_branch_id_for_seg: string;
|
|
92
|
+
ipd_module: string;
|
|
93
|
+
open(url: string, arg1: string): unknown;
|
|
94
|
+
enable_ipd_v2: string;
|
|
95
|
+
origin: string;
|
|
96
|
+
redirectVPFromConsult: undefined;
|
|
97
|
+
redirectVPFromAppnt: () => void;
|
|
98
|
+
patientPopupClosehandler: () => void;
|
|
99
|
+
patientPopupHandler: (pagename: string, pr_id: string, pid: string, preference: GET_VISITPAD_PREFERENCES_RESPONSE, visitPadJSON: I_PRINT_TEMPLATE_CONFIG, previewTab: string) => Promise<void>;
|
|
100
|
+
partner_config: string;
|
|
101
|
+
permit_lab_tech: string;
|
|
102
|
+
doctor_role_id_for_seg: string;
|
|
103
|
+
doc_name_for_seg: string;
|
|
104
|
+
role_id: string;
|
|
105
|
+
partner_service_enabled: string;
|
|
106
|
+
key: string;
|
|
107
|
+
location: {
|
|
108
|
+
href: string;
|
|
109
|
+
pathname: string;
|
|
110
|
+
origin: string;
|
|
111
|
+
};
|
|
112
|
+
showToast?: (title: string, subTitle: string, type: string, time: number) => void;
|
|
113
|
+
alert(message?: string): void;
|
|
114
|
+
filteredUpcomingAppts: I_PATIENT_APPOINTMENT[];
|
|
115
|
+
doctor_speciality: string;
|
|
116
|
+
}
|
|
117
|
+
export interface I_PatientData {
|
|
118
|
+
name: string;
|
|
119
|
+
phone: string;
|
|
120
|
+
gender: string;
|
|
121
|
+
honorific: string;
|
|
122
|
+
patient_preferred_language: string;
|
|
123
|
+
ref_doc_spec: string;
|
|
124
|
+
age: string;
|
|
125
|
+
age_selector: string;
|
|
126
|
+
blood_group: string;
|
|
127
|
+
email: string;
|
|
128
|
+
address: string;
|
|
129
|
+
city: string;
|
|
130
|
+
existingBidStr: string;
|
|
131
|
+
pincode: string;
|
|
132
|
+
ref_doc_name: string;
|
|
133
|
+
temp_appnt_id: string;
|
|
134
|
+
throughChannel: string;
|
|
135
|
+
refDocId: string;
|
|
136
|
+
careOf: string;
|
|
137
|
+
phoneSecondary: string;
|
|
138
|
+
occupation: string;
|
|
139
|
+
tag: string;
|
|
140
|
+
phone_otp: string;
|
|
141
|
+
regAsNew: string;
|
|
142
|
+
dob?: string;
|
|
143
|
+
image_link: string;
|
|
144
|
+
marital_status: string;
|
|
145
|
+
spouse_blood_group: string;
|
|
146
|
+
married_since: string;
|
|
147
|
+
spouse_name: string;
|
|
148
|
+
org_person_dob: string;
|
|
149
|
+
aadhar_number: string;
|
|
150
|
+
custom_fields?: {
|
|
151
|
+
id: string;
|
|
152
|
+
title: string;
|
|
153
|
+
value: string;
|
|
154
|
+
}[];
|
|
155
|
+
}
|
|
156
|
+
export declare enum EAPP_ROUTES {
|
|
157
|
+
visitpad = "/md/viewPatientDashboard.php",
|
|
158
|
+
consultations = "/md/viewPatientList.php",
|
|
159
|
+
appointments = "/md/viewPatientAppointments.php",
|
|
160
|
+
settings = "/md/viewPreferenceSettings.php",
|
|
161
|
+
privateDb = "/md/viewPrivateDB.php",
|
|
162
|
+
dashboardBase = "/",
|
|
163
|
+
referEarn = "/md/inviteReferrals.php",
|
|
164
|
+
teleConsults = "/md/viewRemoteAppointments.php",
|
|
165
|
+
pricing = "/subscription/pricing",
|
|
166
|
+
billSummary = "/subscription/bill-summary",
|
|
167
|
+
pediatricsCalculator = "/md/viewPediatricCalculator.php"
|
|
168
|
+
}
|
|
169
|
+
export interface I_PATIENT_APPOINTMENT {
|
|
170
|
+
patient_role_id: string;
|
|
171
|
+
patient_person_id: string;
|
|
172
|
+
appnt_id: string;
|
|
173
|
+
org_branch_id: number;
|
|
174
|
+
appnt_time: string;
|
|
175
|
+
appnt_date: string;
|
|
176
|
+
appnt_status: number;
|
|
177
|
+
appnt_purpose_str: string;
|
|
178
|
+
doctor_role_id: string;
|
|
179
|
+
appnt_token_num: number;
|
|
180
|
+
created_on: string;
|
|
181
|
+
appnt_mod_time: string;
|
|
182
|
+
appnt_status_updated_on: string;
|
|
183
|
+
org_person_bid_str: string;
|
|
184
|
+
org_person_gender: number;
|
|
185
|
+
org_person_dob: string;
|
|
186
|
+
org_person_name: string;
|
|
187
|
+
org_person_phone: string;
|
|
188
|
+
org_person_email: string;
|
|
189
|
+
visit_created_on: string;
|
|
190
|
+
visits_count: number;
|
|
191
|
+
last_visit_date: string;
|
|
192
|
+
print_count: number;
|
|
193
|
+
patient_consent: number;
|
|
194
|
+
table_type?: string;
|
|
195
|
+
remote_appnt_status?: string;
|
|
196
|
+
}
|
|
197
|
+
export interface IPerson {
|
|
198
|
+
person_id: string;
|
|
199
|
+
org_branch_id: string;
|
|
200
|
+
person_role_id: string;
|
|
201
|
+
org_person_bid_str: string;
|
|
202
|
+
created_on: string;
|
|
203
|
+
last_modified_date: string;
|
|
204
|
+
org_person_name: string;
|
|
205
|
+
age: string;
|
|
206
|
+
ageStr: string;
|
|
207
|
+
org_person_phone: string;
|
|
208
|
+
org_person_email: string;
|
|
209
|
+
org_person_gender: number;
|
|
210
|
+
honorific: string;
|
|
211
|
+
}
|
|
212
|
+
export interface I_PERSONS_CONFLICT {
|
|
213
|
+
org_person_bid_str: string;
|
|
214
|
+
org_branch_id: string;
|
|
215
|
+
person_id: string;
|
|
216
|
+
org_person_oid_str: string;
|
|
217
|
+
org_person_name: string;
|
|
218
|
+
org_person_gender: string;
|
|
219
|
+
org_person_email: string;
|
|
220
|
+
org_person_phone: string;
|
|
221
|
+
person_role_id: string;
|
|
222
|
+
age: string;
|
|
223
|
+
}
|
|
224
|
+
export declare enum E_ENVIRONMENT {
|
|
225
|
+
PRODUCTION = "PRODUCTION",
|
|
226
|
+
STAGING = "STAGING",
|
|
227
|
+
DEVELOPMENT = "DEVELOPMENT"
|
|
228
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GET_VISITPAD_PREFERENCES_RESPONSE } from './ApiResponseTypes';
|
|
2
|
+
import { E_ENVIRONMENT, GlobalWindow } from './CommonTypes';
|
|
3
|
+
export interface PatientAddEditProps {
|
|
4
|
+
pref: GET_VISITPAD_PREFERENCES_RESPONSE;
|
|
5
|
+
modalIsOpen: boolean;
|
|
6
|
+
closeModal: () => void;
|
|
7
|
+
variable: {
|
|
8
|
+
env: E_ENVIRONMENT;
|
|
9
|
+
token: string;
|
|
10
|
+
enc_token?: string;
|
|
11
|
+
window_var: Partial<GlobalWindow>;
|
|
12
|
+
};
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hplx-feature-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.156",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "npm i hplx-react-elements-dev@qa && vite",
|
|
@@ -89,11 +89,23 @@
|
|
|
89
89
|
"./Types/AllInvestigationTypes": {
|
|
90
90
|
"import": "./dist/types/AllInvestigationTypes/index.js",
|
|
91
91
|
"types": "./dist/types/AllInvestigationTypes.d.ts"
|
|
92
|
+
},
|
|
93
|
+
"./PatientAddEdit": {
|
|
94
|
+
"import": "./dist/PatientAddEdit/index.js",
|
|
95
|
+
"types": "./dist/PatientAddEdit/index.d.ts"
|
|
96
|
+
},
|
|
97
|
+
"./Types/PatientAddEditTypes": {
|
|
98
|
+
"import": "./dist/types/PatientAddEditTypes/index.js",
|
|
99
|
+
"types": "./dist/types/PatientAddEditTypes.d.ts"
|
|
100
|
+
},
|
|
101
|
+
"./common/constants/CommonConstants": {
|
|
102
|
+
"import": "./dist/common/constants/CommonConstants/index.js",
|
|
103
|
+
"types": "./dist/common/constants/CommonConstants.d.ts"
|
|
92
104
|
}
|
|
93
105
|
},
|
|
94
106
|
"dependencies": {
|
|
95
107
|
"date-fns": "^4.1.0",
|
|
96
|
-
"dayjs": "^1.11.
|
|
108
|
+
"dayjs": "^1.11.18",
|
|
97
109
|
"hplx-font-icons": "^2.20.0",
|
|
98
110
|
"hplx-react-elements-dev": "^1.3.105",
|
|
99
111
|
"konva": "^9.3.22",
|
|
@@ -103,6 +115,7 @@
|
|
|
103
115
|
"react-konva": "^18.2.12",
|
|
104
116
|
"recharts": "^3.1.2",
|
|
105
117
|
"swr": "^2.3.4",
|
|
118
|
+
"yup": "^1.7.1",
|
|
106
119
|
"zustand": "^5.0.6"
|
|
107
120
|
},
|
|
108
121
|
"peerDependencies": {
|
|
@@ -110,7 +123,8 @@
|
|
|
110
123
|
"react": "^18.3.1",
|
|
111
124
|
"react-dom": "^18.3.1",
|
|
112
125
|
"react-modal": "^3.16.3",
|
|
113
|
-
"react-pdf": "^7.7.1"
|
|
126
|
+
"react-pdf": "^7.7.1",
|
|
127
|
+
"react-router-dom": "^7.9.4"
|
|
114
128
|
},
|
|
115
129
|
"devDependencies": {
|
|
116
130
|
"@commitlint/config-conventional": "^19.8.1",
|