@ttn-shared/ui 1.0.0 → 1.0.1
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/index.cjs +5 -2
- package/dist/index.d.cts +264 -2
- package/dist/index.d.ts +264 -2
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2059,6 +2059,7 @@ var PatientForm = ({
|
|
|
2059
2059
|
import_core8.Select,
|
|
2060
2060
|
{
|
|
2061
2061
|
readOnly: mode === "view",
|
|
2062
|
+
withAsterisk: mode !== "view",
|
|
2062
2063
|
label: "Estrato",
|
|
2063
2064
|
data: stratumOptions,
|
|
2064
2065
|
...form.getInputProps("stratumId"),
|
|
@@ -2069,6 +2070,7 @@ var PatientForm = ({
|
|
|
2069
2070
|
import_core8.Select,
|
|
2070
2071
|
{
|
|
2071
2072
|
readOnly: mode === "view",
|
|
2073
|
+
withAsterisk: mode !== "view",
|
|
2072
2074
|
label: "Pertenencia \xE9tnica",
|
|
2073
2075
|
data: ethnicGroupOptions,
|
|
2074
2076
|
...form.getInputProps("ethnicGroupId"),
|
|
@@ -2079,6 +2081,7 @@ var PatientForm = ({
|
|
|
2079
2081
|
import_core8.Select,
|
|
2080
2082
|
{
|
|
2081
2083
|
readOnly: mode === "view",
|
|
2084
|
+
withAsterisk: mode !== "view",
|
|
2082
2085
|
label: "Nivel educativo",
|
|
2083
2086
|
data: educationLevelOptions,
|
|
2084
2087
|
...form.getInputProps("educationLevelId"),
|
|
@@ -2270,7 +2273,7 @@ var createPatientPayload = (values) => {
|
|
|
2270
2273
|
ocupation: values.occupation,
|
|
2271
2274
|
use_contact_lens: values.use_contact_lens,
|
|
2272
2275
|
use_glasses: values.use_glasses,
|
|
2273
|
-
|
|
2276
|
+
stratum_id: Number(values.stratumId),
|
|
2274
2277
|
ethnicGroupId: Number(values.ethnicGroupId),
|
|
2275
2278
|
educationLevelId: Number(values.educationLevelId),
|
|
2276
2279
|
contracts: [mandatoryInsurance, ...voluntaryInsurance],
|
|
@@ -2305,7 +2308,7 @@ var createPatientForm = (info) => {
|
|
|
2305
2308
|
occupation: info.ocupation ?? "",
|
|
2306
2309
|
use_glasses: info.use_glasses ?? "",
|
|
2307
2310
|
use_contact_lens: info.use_contact_lens ?? "",
|
|
2308
|
-
isDataPolicyAccepted: info.processing_of_personal_data
|
|
2311
|
+
isDataPolicyAccepted: Boolean(info.processing_of_personal_data),
|
|
2309
2312
|
stratumId: String(info.stratum_id ?? ""),
|
|
2310
2313
|
educationLevelId: String(info.educationLevel.id ?? ""),
|
|
2311
2314
|
ethnicGroupId: String(info.ethnicGroup.id ?? ""),
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,63 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
|
+
interface SessionFilters {
|
|
5
|
+
eaccount?: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface SelectOption {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
type PatientFormMode = "create" | "edit" | "view";
|
|
14
|
+
interface PatientFormValues {
|
|
15
|
+
documentTypeId: string;
|
|
16
|
+
documentNumber: string;
|
|
17
|
+
firstName: string;
|
|
18
|
+
middleName: string;
|
|
19
|
+
surname: string;
|
|
20
|
+
secondSurname: string;
|
|
21
|
+
birthDate: string;
|
|
22
|
+
age: string;
|
|
23
|
+
whatsapp: string;
|
|
24
|
+
gender: string;
|
|
25
|
+
affiliationTypeId: string;
|
|
26
|
+
email: string;
|
|
27
|
+
maritalStatus: string;
|
|
28
|
+
provinceId: string;
|
|
29
|
+
cityId: string;
|
|
30
|
+
homeAddress: string;
|
|
31
|
+
bloodType: string;
|
|
32
|
+
neighborhood: string;
|
|
33
|
+
cellphone: number | string;
|
|
34
|
+
homephone: string;
|
|
35
|
+
emergencyContact: string;
|
|
36
|
+
occupation: string;
|
|
37
|
+
use_glasses: string;
|
|
38
|
+
use_contact_lens: string;
|
|
39
|
+
isDataPolicyAccepted: boolean;
|
|
40
|
+
stratumId: string;
|
|
41
|
+
educationLevelId: string;
|
|
42
|
+
ethnicGroupId: string;
|
|
43
|
+
mandatoryInsurance: {
|
|
44
|
+
companyId: string;
|
|
45
|
+
plan: string;
|
|
46
|
+
population: string;
|
|
47
|
+
groupId: string;
|
|
48
|
+
policyNumber: string;
|
|
49
|
+
};
|
|
50
|
+
voluntaryInsurance: {
|
|
51
|
+
id: string;
|
|
52
|
+
companyTypeTag: string;
|
|
53
|
+
companyType: string;
|
|
54
|
+
companyId: string;
|
|
55
|
+
plan: string;
|
|
56
|
+
population: string;
|
|
57
|
+
groupId: string;
|
|
58
|
+
policyNumber: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
5
61
|
interface PatientPayload {
|
|
6
62
|
docTypeId: number;
|
|
7
63
|
document: string;
|
|
@@ -19,7 +75,7 @@ interface PatientPayload {
|
|
|
19
75
|
whatsapp: string;
|
|
20
76
|
bloodType: string;
|
|
21
77
|
maritalStatus: string;
|
|
22
|
-
|
|
78
|
+
stratum_id: number;
|
|
23
79
|
provinceId: number;
|
|
24
80
|
contracts: PatientContractPayload[];
|
|
25
81
|
affiliationType: number;
|
|
@@ -43,6 +99,97 @@ interface PatientContractPayload {
|
|
|
43
99
|
policy: string;
|
|
44
100
|
isMain: 0 | 1;
|
|
45
101
|
}
|
|
102
|
+
interface PatientFilters extends SessionFilters {
|
|
103
|
+
id?: number;
|
|
104
|
+
}
|
|
105
|
+
interface PatientDetail {
|
|
106
|
+
id: number;
|
|
107
|
+
docType: string;
|
|
108
|
+
docTypeId: number;
|
|
109
|
+
document: string;
|
|
110
|
+
firstName: string;
|
|
111
|
+
otherNames: string;
|
|
112
|
+
lastName: string;
|
|
113
|
+
secondSurname: string;
|
|
114
|
+
birthDate: string;
|
|
115
|
+
age: string;
|
|
116
|
+
whatsapp: string;
|
|
117
|
+
gender: string;
|
|
118
|
+
affiliationTypeId: number;
|
|
119
|
+
affiliationTypeName: string;
|
|
120
|
+
email: string;
|
|
121
|
+
maritalStatus: string;
|
|
122
|
+
educationLevel: {
|
|
123
|
+
id: number;
|
|
124
|
+
description: string;
|
|
125
|
+
tag: string;
|
|
126
|
+
};
|
|
127
|
+
ethnicGroup: {
|
|
128
|
+
id: number;
|
|
129
|
+
description: string;
|
|
130
|
+
tag: string;
|
|
131
|
+
};
|
|
132
|
+
stratum_id: number;
|
|
133
|
+
provinceId: number;
|
|
134
|
+
provinceName: string;
|
|
135
|
+
cityId: number;
|
|
136
|
+
cityName: string;
|
|
137
|
+
homeAddress: string;
|
|
138
|
+
bloodType: string;
|
|
139
|
+
cellphone: string;
|
|
140
|
+
homephone: string;
|
|
141
|
+
address_zone: string;
|
|
142
|
+
contracts: {
|
|
143
|
+
account: string;
|
|
144
|
+
accountId: number;
|
|
145
|
+
attGroupId: number;
|
|
146
|
+
attGroupName: string;
|
|
147
|
+
companyTypeId: string;
|
|
148
|
+
companyTypeName: string;
|
|
149
|
+
companyTypeTag: string;
|
|
150
|
+
contractDescription: string;
|
|
151
|
+
contractId: number;
|
|
152
|
+
contractName: string;
|
|
153
|
+
corporateClient: string;
|
|
154
|
+
corporateClientId: number;
|
|
155
|
+
crtId: number;
|
|
156
|
+
crtName: string;
|
|
157
|
+
isCopaymentEditable: number;
|
|
158
|
+
isEnabled: number;
|
|
159
|
+
isMain: number;
|
|
160
|
+
policy: string;
|
|
161
|
+
population: string;
|
|
162
|
+
populationId: number;
|
|
163
|
+
relId: number;
|
|
164
|
+
wsValidated: number;
|
|
165
|
+
}[];
|
|
166
|
+
emergencyContact: string;
|
|
167
|
+
financialInfo: {
|
|
168
|
+
accountNumber: string | null;
|
|
169
|
+
accountType: string | null;
|
|
170
|
+
bank: string | null;
|
|
171
|
+
bankId: number | null;
|
|
172
|
+
owner: string | null;
|
|
173
|
+
};
|
|
174
|
+
neighborhood: string;
|
|
175
|
+
notes_num: number;
|
|
176
|
+
ocupation: string;
|
|
177
|
+
patientCreationReason: null;
|
|
178
|
+
patientCreationReasonId: null;
|
|
179
|
+
risk: {
|
|
180
|
+
administrative: {
|
|
181
|
+
id: number;
|
|
182
|
+
description: string;
|
|
183
|
+
classification: string;
|
|
184
|
+
}[];
|
|
185
|
+
assistance: SelectOption[];
|
|
186
|
+
};
|
|
187
|
+
urlPhoto: string;
|
|
188
|
+
use_contact_lens: string;
|
|
189
|
+
use_glasses: string;
|
|
190
|
+
processing_of_personal_data: 1;
|
|
191
|
+
webscrapperValidated: number;
|
|
192
|
+
}
|
|
46
193
|
|
|
47
194
|
interface PatientFormProps {
|
|
48
195
|
defaultMode: PatientFormMode;
|
|
@@ -61,6 +208,16 @@ interface Comment {
|
|
|
61
208
|
comment: string;
|
|
62
209
|
date: string;
|
|
63
210
|
}
|
|
211
|
+
interface CommentFilters {
|
|
212
|
+
id?: number;
|
|
213
|
+
entity?: "userClient";
|
|
214
|
+
}
|
|
215
|
+
interface CommentPayload {
|
|
216
|
+
entity: "userClient";
|
|
217
|
+
userId: number;
|
|
218
|
+
comment: string;
|
|
219
|
+
id: number;
|
|
220
|
+
}
|
|
64
221
|
|
|
65
222
|
interface PatientNotesProps {
|
|
66
223
|
patientId?: number;
|
|
@@ -90,6 +247,111 @@ interface PatientAppointmentHistoryProps {
|
|
|
90
247
|
}
|
|
91
248
|
declare const PatientAppointmentHistory: ({ patientId }: PatientAppointmentHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
92
249
|
|
|
250
|
+
interface AssistanceRisk {
|
|
251
|
+
clinicalDiseaseId: number;
|
|
252
|
+
clinicalDiseaseName: string;
|
|
253
|
+
}
|
|
254
|
+
interface AdministrativeRisk {
|
|
255
|
+
id: number;
|
|
256
|
+
description: string;
|
|
257
|
+
classification: string;
|
|
258
|
+
}
|
|
259
|
+
interface RiskFilters {
|
|
260
|
+
status?: string;
|
|
261
|
+
}
|
|
262
|
+
interface RiskPayload {
|
|
263
|
+
eaccount: number;
|
|
264
|
+
idPatient: number;
|
|
265
|
+
riskList: {
|
|
266
|
+
assistance?: {
|
|
267
|
+
id: number;
|
|
268
|
+
}[];
|
|
269
|
+
administrative?: {
|
|
270
|
+
id: number;
|
|
271
|
+
}[];
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
interface Appointment {
|
|
276
|
+
IVAClient: number;
|
|
277
|
+
admittedAt: string;
|
|
278
|
+
admittedByName: string;
|
|
279
|
+
appComeBefore: string;
|
|
280
|
+
appDow: string;
|
|
281
|
+
appObs: string;
|
|
282
|
+
appObservations: string;
|
|
283
|
+
bgColorStatus: string;
|
|
284
|
+
ccName: string;
|
|
285
|
+
clinicalHistoryID: number;
|
|
286
|
+
cluBirhDate: string;
|
|
287
|
+
cluDocument: string;
|
|
288
|
+
cluEmail: string;
|
|
289
|
+
cluFirstName: string;
|
|
290
|
+
cluId: number;
|
|
291
|
+
cluLastName: string;
|
|
292
|
+
cluName: string;
|
|
293
|
+
cluOtherNames: string;
|
|
294
|
+
cluSecondSurname: string;
|
|
295
|
+
cluWhatasapp: string;
|
|
296
|
+
conectivityPrice: number;
|
|
297
|
+
contractName: string;
|
|
298
|
+
createdDate: string;
|
|
299
|
+
creatorFullName: string;
|
|
300
|
+
crtName: string;
|
|
301
|
+
ctName: string;
|
|
302
|
+
cupCode: string;
|
|
303
|
+
currency: string;
|
|
304
|
+
date: string;
|
|
305
|
+
dateApp: string;
|
|
306
|
+
doctorPosition: null;
|
|
307
|
+
dom: string;
|
|
308
|
+
dxName: string;
|
|
309
|
+
eaccount: number;
|
|
310
|
+
eaccountAddress: string;
|
|
311
|
+
eaccountEmail: string;
|
|
312
|
+
eaccountName: string;
|
|
313
|
+
eaccountPhone: string;
|
|
314
|
+
emailBodyDefault: string;
|
|
315
|
+
fontColorStatus: string;
|
|
316
|
+
fullNameDoctor: string;
|
|
317
|
+
id: number;
|
|
318
|
+
idContractCorporateClient: number;
|
|
319
|
+
idCorporateClient: number;
|
|
320
|
+
idDoctor: string;
|
|
321
|
+
idPopulation: number;
|
|
322
|
+
imageDoctor: string;
|
|
323
|
+
modality: string;
|
|
324
|
+
month: string;
|
|
325
|
+
observations: string;
|
|
326
|
+
paymentApp: {
|
|
327
|
+
amount: number;
|
|
328
|
+
description: string;
|
|
329
|
+
id: number;
|
|
330
|
+
}[];
|
|
331
|
+
popName: string;
|
|
332
|
+
serviceId: string;
|
|
333
|
+
serviceName: string;
|
|
334
|
+
serviceRecomendations: string;
|
|
335
|
+
serviceValue: string;
|
|
336
|
+
serviceValueOnSite: string;
|
|
337
|
+
site: string;
|
|
338
|
+
siteAddress: string;
|
|
339
|
+
siteName: string;
|
|
340
|
+
status: string;
|
|
341
|
+
statusValue: string;
|
|
342
|
+
statusWeight: number;
|
|
343
|
+
time: string;
|
|
344
|
+
timeApp: string;
|
|
345
|
+
timeEndApp: string;
|
|
346
|
+
usClientPrice: number;
|
|
347
|
+
}
|
|
348
|
+
interface AppointmentFilters {
|
|
349
|
+
idPatient?: number;
|
|
350
|
+
idAccount?: number;
|
|
351
|
+
page?: number;
|
|
352
|
+
perpage?: number;
|
|
353
|
+
}
|
|
354
|
+
|
|
93
355
|
interface TTNSharedProviderProps {
|
|
94
356
|
token: string;
|
|
95
357
|
baseUrl: string;
|
|
@@ -100,4 +362,4 @@ interface TTNSharedProviderProps {
|
|
|
100
362
|
declare const TTNSharedProvider: FC<PropsWithChildren<TTNSharedProviderProps>>;
|
|
101
363
|
declare const useTTNSharedContext: () => TTNSharedProviderProps;
|
|
102
364
|
|
|
103
|
-
export { PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, PatientForm, PatientNotes, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
|
|
365
|
+
export { type AdministrativeRisk, type Appointment, type AppointmentFilters, type AssistanceRisk, type Comment, type CommentFilters, type CommentPayload, PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, type PatientContractPayload, type PatientDetail, type PatientFilters, PatientForm, type PatientFormMode, type PatientFormValues, PatientNotes, type PatientPayload, type RiskFilters, type RiskPayload, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,63 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
|
+
interface SessionFilters {
|
|
5
|
+
eaccount?: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface SelectOption {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
type PatientFormMode = "create" | "edit" | "view";
|
|
14
|
+
interface PatientFormValues {
|
|
15
|
+
documentTypeId: string;
|
|
16
|
+
documentNumber: string;
|
|
17
|
+
firstName: string;
|
|
18
|
+
middleName: string;
|
|
19
|
+
surname: string;
|
|
20
|
+
secondSurname: string;
|
|
21
|
+
birthDate: string;
|
|
22
|
+
age: string;
|
|
23
|
+
whatsapp: string;
|
|
24
|
+
gender: string;
|
|
25
|
+
affiliationTypeId: string;
|
|
26
|
+
email: string;
|
|
27
|
+
maritalStatus: string;
|
|
28
|
+
provinceId: string;
|
|
29
|
+
cityId: string;
|
|
30
|
+
homeAddress: string;
|
|
31
|
+
bloodType: string;
|
|
32
|
+
neighborhood: string;
|
|
33
|
+
cellphone: number | string;
|
|
34
|
+
homephone: string;
|
|
35
|
+
emergencyContact: string;
|
|
36
|
+
occupation: string;
|
|
37
|
+
use_glasses: string;
|
|
38
|
+
use_contact_lens: string;
|
|
39
|
+
isDataPolicyAccepted: boolean;
|
|
40
|
+
stratumId: string;
|
|
41
|
+
educationLevelId: string;
|
|
42
|
+
ethnicGroupId: string;
|
|
43
|
+
mandatoryInsurance: {
|
|
44
|
+
companyId: string;
|
|
45
|
+
plan: string;
|
|
46
|
+
population: string;
|
|
47
|
+
groupId: string;
|
|
48
|
+
policyNumber: string;
|
|
49
|
+
};
|
|
50
|
+
voluntaryInsurance: {
|
|
51
|
+
id: string;
|
|
52
|
+
companyTypeTag: string;
|
|
53
|
+
companyType: string;
|
|
54
|
+
companyId: string;
|
|
55
|
+
plan: string;
|
|
56
|
+
population: string;
|
|
57
|
+
groupId: string;
|
|
58
|
+
policyNumber: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
5
61
|
interface PatientPayload {
|
|
6
62
|
docTypeId: number;
|
|
7
63
|
document: string;
|
|
@@ -19,7 +75,7 @@ interface PatientPayload {
|
|
|
19
75
|
whatsapp: string;
|
|
20
76
|
bloodType: string;
|
|
21
77
|
maritalStatus: string;
|
|
22
|
-
|
|
78
|
+
stratum_id: number;
|
|
23
79
|
provinceId: number;
|
|
24
80
|
contracts: PatientContractPayload[];
|
|
25
81
|
affiliationType: number;
|
|
@@ -43,6 +99,97 @@ interface PatientContractPayload {
|
|
|
43
99
|
policy: string;
|
|
44
100
|
isMain: 0 | 1;
|
|
45
101
|
}
|
|
102
|
+
interface PatientFilters extends SessionFilters {
|
|
103
|
+
id?: number;
|
|
104
|
+
}
|
|
105
|
+
interface PatientDetail {
|
|
106
|
+
id: number;
|
|
107
|
+
docType: string;
|
|
108
|
+
docTypeId: number;
|
|
109
|
+
document: string;
|
|
110
|
+
firstName: string;
|
|
111
|
+
otherNames: string;
|
|
112
|
+
lastName: string;
|
|
113
|
+
secondSurname: string;
|
|
114
|
+
birthDate: string;
|
|
115
|
+
age: string;
|
|
116
|
+
whatsapp: string;
|
|
117
|
+
gender: string;
|
|
118
|
+
affiliationTypeId: number;
|
|
119
|
+
affiliationTypeName: string;
|
|
120
|
+
email: string;
|
|
121
|
+
maritalStatus: string;
|
|
122
|
+
educationLevel: {
|
|
123
|
+
id: number;
|
|
124
|
+
description: string;
|
|
125
|
+
tag: string;
|
|
126
|
+
};
|
|
127
|
+
ethnicGroup: {
|
|
128
|
+
id: number;
|
|
129
|
+
description: string;
|
|
130
|
+
tag: string;
|
|
131
|
+
};
|
|
132
|
+
stratum_id: number;
|
|
133
|
+
provinceId: number;
|
|
134
|
+
provinceName: string;
|
|
135
|
+
cityId: number;
|
|
136
|
+
cityName: string;
|
|
137
|
+
homeAddress: string;
|
|
138
|
+
bloodType: string;
|
|
139
|
+
cellphone: string;
|
|
140
|
+
homephone: string;
|
|
141
|
+
address_zone: string;
|
|
142
|
+
contracts: {
|
|
143
|
+
account: string;
|
|
144
|
+
accountId: number;
|
|
145
|
+
attGroupId: number;
|
|
146
|
+
attGroupName: string;
|
|
147
|
+
companyTypeId: string;
|
|
148
|
+
companyTypeName: string;
|
|
149
|
+
companyTypeTag: string;
|
|
150
|
+
contractDescription: string;
|
|
151
|
+
contractId: number;
|
|
152
|
+
contractName: string;
|
|
153
|
+
corporateClient: string;
|
|
154
|
+
corporateClientId: number;
|
|
155
|
+
crtId: number;
|
|
156
|
+
crtName: string;
|
|
157
|
+
isCopaymentEditable: number;
|
|
158
|
+
isEnabled: number;
|
|
159
|
+
isMain: number;
|
|
160
|
+
policy: string;
|
|
161
|
+
population: string;
|
|
162
|
+
populationId: number;
|
|
163
|
+
relId: number;
|
|
164
|
+
wsValidated: number;
|
|
165
|
+
}[];
|
|
166
|
+
emergencyContact: string;
|
|
167
|
+
financialInfo: {
|
|
168
|
+
accountNumber: string | null;
|
|
169
|
+
accountType: string | null;
|
|
170
|
+
bank: string | null;
|
|
171
|
+
bankId: number | null;
|
|
172
|
+
owner: string | null;
|
|
173
|
+
};
|
|
174
|
+
neighborhood: string;
|
|
175
|
+
notes_num: number;
|
|
176
|
+
ocupation: string;
|
|
177
|
+
patientCreationReason: null;
|
|
178
|
+
patientCreationReasonId: null;
|
|
179
|
+
risk: {
|
|
180
|
+
administrative: {
|
|
181
|
+
id: number;
|
|
182
|
+
description: string;
|
|
183
|
+
classification: string;
|
|
184
|
+
}[];
|
|
185
|
+
assistance: SelectOption[];
|
|
186
|
+
};
|
|
187
|
+
urlPhoto: string;
|
|
188
|
+
use_contact_lens: string;
|
|
189
|
+
use_glasses: string;
|
|
190
|
+
processing_of_personal_data: 1;
|
|
191
|
+
webscrapperValidated: number;
|
|
192
|
+
}
|
|
46
193
|
|
|
47
194
|
interface PatientFormProps {
|
|
48
195
|
defaultMode: PatientFormMode;
|
|
@@ -61,6 +208,16 @@ interface Comment {
|
|
|
61
208
|
comment: string;
|
|
62
209
|
date: string;
|
|
63
210
|
}
|
|
211
|
+
interface CommentFilters {
|
|
212
|
+
id?: number;
|
|
213
|
+
entity?: "userClient";
|
|
214
|
+
}
|
|
215
|
+
interface CommentPayload {
|
|
216
|
+
entity: "userClient";
|
|
217
|
+
userId: number;
|
|
218
|
+
comment: string;
|
|
219
|
+
id: number;
|
|
220
|
+
}
|
|
64
221
|
|
|
65
222
|
interface PatientNotesProps {
|
|
66
223
|
patientId?: number;
|
|
@@ -90,6 +247,111 @@ interface PatientAppointmentHistoryProps {
|
|
|
90
247
|
}
|
|
91
248
|
declare const PatientAppointmentHistory: ({ patientId }: PatientAppointmentHistoryProps) => react_jsx_runtime.JSX.Element;
|
|
92
249
|
|
|
250
|
+
interface AssistanceRisk {
|
|
251
|
+
clinicalDiseaseId: number;
|
|
252
|
+
clinicalDiseaseName: string;
|
|
253
|
+
}
|
|
254
|
+
interface AdministrativeRisk {
|
|
255
|
+
id: number;
|
|
256
|
+
description: string;
|
|
257
|
+
classification: string;
|
|
258
|
+
}
|
|
259
|
+
interface RiskFilters {
|
|
260
|
+
status?: string;
|
|
261
|
+
}
|
|
262
|
+
interface RiskPayload {
|
|
263
|
+
eaccount: number;
|
|
264
|
+
idPatient: number;
|
|
265
|
+
riskList: {
|
|
266
|
+
assistance?: {
|
|
267
|
+
id: number;
|
|
268
|
+
}[];
|
|
269
|
+
administrative?: {
|
|
270
|
+
id: number;
|
|
271
|
+
}[];
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
interface Appointment {
|
|
276
|
+
IVAClient: number;
|
|
277
|
+
admittedAt: string;
|
|
278
|
+
admittedByName: string;
|
|
279
|
+
appComeBefore: string;
|
|
280
|
+
appDow: string;
|
|
281
|
+
appObs: string;
|
|
282
|
+
appObservations: string;
|
|
283
|
+
bgColorStatus: string;
|
|
284
|
+
ccName: string;
|
|
285
|
+
clinicalHistoryID: number;
|
|
286
|
+
cluBirhDate: string;
|
|
287
|
+
cluDocument: string;
|
|
288
|
+
cluEmail: string;
|
|
289
|
+
cluFirstName: string;
|
|
290
|
+
cluId: number;
|
|
291
|
+
cluLastName: string;
|
|
292
|
+
cluName: string;
|
|
293
|
+
cluOtherNames: string;
|
|
294
|
+
cluSecondSurname: string;
|
|
295
|
+
cluWhatasapp: string;
|
|
296
|
+
conectivityPrice: number;
|
|
297
|
+
contractName: string;
|
|
298
|
+
createdDate: string;
|
|
299
|
+
creatorFullName: string;
|
|
300
|
+
crtName: string;
|
|
301
|
+
ctName: string;
|
|
302
|
+
cupCode: string;
|
|
303
|
+
currency: string;
|
|
304
|
+
date: string;
|
|
305
|
+
dateApp: string;
|
|
306
|
+
doctorPosition: null;
|
|
307
|
+
dom: string;
|
|
308
|
+
dxName: string;
|
|
309
|
+
eaccount: number;
|
|
310
|
+
eaccountAddress: string;
|
|
311
|
+
eaccountEmail: string;
|
|
312
|
+
eaccountName: string;
|
|
313
|
+
eaccountPhone: string;
|
|
314
|
+
emailBodyDefault: string;
|
|
315
|
+
fontColorStatus: string;
|
|
316
|
+
fullNameDoctor: string;
|
|
317
|
+
id: number;
|
|
318
|
+
idContractCorporateClient: number;
|
|
319
|
+
idCorporateClient: number;
|
|
320
|
+
idDoctor: string;
|
|
321
|
+
idPopulation: number;
|
|
322
|
+
imageDoctor: string;
|
|
323
|
+
modality: string;
|
|
324
|
+
month: string;
|
|
325
|
+
observations: string;
|
|
326
|
+
paymentApp: {
|
|
327
|
+
amount: number;
|
|
328
|
+
description: string;
|
|
329
|
+
id: number;
|
|
330
|
+
}[];
|
|
331
|
+
popName: string;
|
|
332
|
+
serviceId: string;
|
|
333
|
+
serviceName: string;
|
|
334
|
+
serviceRecomendations: string;
|
|
335
|
+
serviceValue: string;
|
|
336
|
+
serviceValueOnSite: string;
|
|
337
|
+
site: string;
|
|
338
|
+
siteAddress: string;
|
|
339
|
+
siteName: string;
|
|
340
|
+
status: string;
|
|
341
|
+
statusValue: string;
|
|
342
|
+
statusWeight: number;
|
|
343
|
+
time: string;
|
|
344
|
+
timeApp: string;
|
|
345
|
+
timeEndApp: string;
|
|
346
|
+
usClientPrice: number;
|
|
347
|
+
}
|
|
348
|
+
interface AppointmentFilters {
|
|
349
|
+
idPatient?: number;
|
|
350
|
+
idAccount?: number;
|
|
351
|
+
page?: number;
|
|
352
|
+
perpage?: number;
|
|
353
|
+
}
|
|
354
|
+
|
|
93
355
|
interface TTNSharedProviderProps {
|
|
94
356
|
token: string;
|
|
95
357
|
baseUrl: string;
|
|
@@ -100,4 +362,4 @@ interface TTNSharedProviderProps {
|
|
|
100
362
|
declare const TTNSharedProvider: FC<PropsWithChildren<TTNSharedProviderProps>>;
|
|
101
363
|
declare const useTTNSharedContext: () => TTNSharedProviderProps;
|
|
102
364
|
|
|
103
|
-
export { PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, PatientForm, PatientNotes, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
|
|
365
|
+
export { type AdministrativeRisk, type Appointment, type AppointmentFilters, type AssistanceRisk, type Comment, type CommentFilters, type CommentPayload, PatientAdministrativeRisks, PatientAppointmentHistory, PatientAssistanceRisks, type PatientContractPayload, type PatientDetail, type PatientFilters, PatientForm, type PatientFormMode, type PatientFormValues, PatientNotes, type PatientPayload, type RiskFilters, type RiskPayload, TTNSharedProvider, type TTNSharedProviderProps, useTTNSharedContext };
|
package/dist/index.js
CHANGED
|
@@ -2081,6 +2081,7 @@ var PatientForm = ({
|
|
|
2081
2081
|
Select4,
|
|
2082
2082
|
{
|
|
2083
2083
|
readOnly: mode === "view",
|
|
2084
|
+
withAsterisk: mode !== "view",
|
|
2084
2085
|
label: "Estrato",
|
|
2085
2086
|
data: stratumOptions,
|
|
2086
2087
|
...form.getInputProps("stratumId"),
|
|
@@ -2091,6 +2092,7 @@ var PatientForm = ({
|
|
|
2091
2092
|
Select4,
|
|
2092
2093
|
{
|
|
2093
2094
|
readOnly: mode === "view",
|
|
2095
|
+
withAsterisk: mode !== "view",
|
|
2094
2096
|
label: "Pertenencia \xE9tnica",
|
|
2095
2097
|
data: ethnicGroupOptions,
|
|
2096
2098
|
...form.getInputProps("ethnicGroupId"),
|
|
@@ -2101,6 +2103,7 @@ var PatientForm = ({
|
|
|
2101
2103
|
Select4,
|
|
2102
2104
|
{
|
|
2103
2105
|
readOnly: mode === "view",
|
|
2106
|
+
withAsterisk: mode !== "view",
|
|
2104
2107
|
label: "Nivel educativo",
|
|
2105
2108
|
data: educationLevelOptions,
|
|
2106
2109
|
...form.getInputProps("educationLevelId"),
|
|
@@ -2292,7 +2295,7 @@ var createPatientPayload = (values) => {
|
|
|
2292
2295
|
ocupation: values.occupation,
|
|
2293
2296
|
use_contact_lens: values.use_contact_lens,
|
|
2294
2297
|
use_glasses: values.use_glasses,
|
|
2295
|
-
|
|
2298
|
+
stratum_id: Number(values.stratumId),
|
|
2296
2299
|
ethnicGroupId: Number(values.ethnicGroupId),
|
|
2297
2300
|
educationLevelId: Number(values.educationLevelId),
|
|
2298
2301
|
contracts: [mandatoryInsurance, ...voluntaryInsurance],
|
|
@@ -2327,7 +2330,7 @@ var createPatientForm = (info) => {
|
|
|
2327
2330
|
occupation: info.ocupation ?? "",
|
|
2328
2331
|
use_glasses: info.use_glasses ?? "",
|
|
2329
2332
|
use_contact_lens: info.use_contact_lens ?? "",
|
|
2330
|
-
isDataPolicyAccepted: info.processing_of_personal_data
|
|
2333
|
+
isDataPolicyAccepted: Boolean(info.processing_of_personal_data),
|
|
2331
2334
|
stratumId: String(info.stratum_id ?? ""),
|
|
2332
2335
|
educationLevelId: String(info.educationLevel.id ?? ""),
|
|
2333
2336
|
ethnicGroupId: String(info.ethnicGroup.id ?? ""),
|