evo360-types 1.3.84 → 1.3.87
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/apps/evo-med/dic/zod-schemas.d.ts +12 -3
- package/dist/apps/evo-med/dic/zod-schemas.js +6 -3
- package/dist/apps/evo-med/dic/zod-schemas.ts +6 -3
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +15 -15
- package/dist/apps/evo-med/insurance/zod-schemas.js +3 -3
- package/dist/apps/evo-med/insurance/zod-schemas.ts +3 -3
- package/dist/types/evo-med/dic/index.d.ts +5 -2
- package/dist/types/evo-med/dic/index.ts +5 -2
- package/dist/types/evo-med/insurance/index.d.ts +2 -2
- package/dist/types/evo-med/insurance/index.ts +2 -2
- package/package.json +1 -1
|
@@ -153,6 +153,7 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
153
153
|
}, {
|
|
154
154
|
code: z.ZodString;
|
|
155
155
|
name: z.ZodString;
|
|
156
|
+
order: z.ZodNumber;
|
|
156
157
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
158
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
158
159
|
name: z.ZodString;
|
|
@@ -184,6 +185,7 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
184
185
|
}, {
|
|
185
186
|
code: z.ZodString;
|
|
186
187
|
name: z.ZodString;
|
|
188
|
+
order: z.ZodNumber;
|
|
187
189
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
190
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
189
191
|
name: z.ZodString;
|
|
@@ -215,6 +217,7 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
215
217
|
}, {
|
|
216
218
|
code: z.ZodString;
|
|
217
219
|
name: z.ZodString;
|
|
220
|
+
order: z.ZodNumber;
|
|
218
221
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
222
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
220
223
|
name: z.ZodString;
|
|
@@ -247,6 +250,7 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
247
250
|
}, {
|
|
248
251
|
code: z.ZodString;
|
|
249
252
|
name: z.ZodString;
|
|
253
|
+
order: z.ZodNumber;
|
|
250
254
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
255
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
252
256
|
name: z.ZodString;
|
|
@@ -278,6 +282,7 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
278
282
|
}, {
|
|
279
283
|
code: z.ZodString;
|
|
280
284
|
name: z.ZodString;
|
|
285
|
+
order: z.ZodNumber;
|
|
281
286
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
287
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
283
288
|
name: z.ZodString;
|
|
@@ -309,6 +314,7 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
309
314
|
}, {
|
|
310
315
|
code: z.ZodString;
|
|
311
316
|
name: z.ZodString;
|
|
317
|
+
order: z.ZodNumber;
|
|
312
318
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
319
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
314
320
|
name: z.ZodString;
|
|
@@ -341,6 +347,7 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
|
|
|
341
347
|
}, {
|
|
342
348
|
code: z.ZodString;
|
|
343
349
|
name: z.ZodString;
|
|
350
|
+
order: z.ZodNumber;
|
|
344
351
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
352
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
346
353
|
name: z.ZodString;
|
|
@@ -372,6 +379,7 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
|
|
|
372
379
|
}, {
|
|
373
380
|
code: z.ZodString;
|
|
374
381
|
name: z.ZodString;
|
|
382
|
+
order: z.ZodNumber;
|
|
375
383
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
384
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
377
385
|
name: z.ZodString;
|
|
@@ -403,6 +411,7 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
|
|
|
403
411
|
}, {
|
|
404
412
|
code: z.ZodString;
|
|
405
413
|
name: z.ZodString;
|
|
414
|
+
order: z.ZodNumber;
|
|
406
415
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
407
416
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
408
417
|
name: z.ZodString;
|
|
@@ -677,7 +686,7 @@ export declare const zInsuranceSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
677
686
|
name: z.ZodString;
|
|
678
687
|
color: z.ZodOptional<z.ZodString>;
|
|
679
688
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
680
|
-
order: z.
|
|
689
|
+
order: z.ZodNumber;
|
|
681
690
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
682
691
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
683
692
|
id: z.ZodString;
|
|
@@ -692,7 +701,7 @@ export declare const zInsuranceSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
692
701
|
name: z.ZodString;
|
|
693
702
|
color: z.ZodOptional<z.ZodString>;
|
|
694
703
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
695
|
-
order: z.
|
|
704
|
+
order: z.ZodNumber;
|
|
696
705
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
697
706
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
698
707
|
id: z.ZodString;
|
|
@@ -707,6 +716,6 @@ export declare const zInsuranceSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
707
716
|
name: z.ZodString;
|
|
708
717
|
color: z.ZodOptional<z.ZodString>;
|
|
709
718
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
710
|
-
order: z.
|
|
719
|
+
order: z.ZodNumber;
|
|
711
720
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
712
721
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
@@ -26,6 +26,7 @@ exports.zPatientSourceSchema = zod_schemas_1.zFireDocSchema
|
|
|
26
26
|
.extend({
|
|
27
27
|
code: zod_1.z.string().min(1).max(20),
|
|
28
28
|
name: zod_1.z.string().min(1).max(255),
|
|
29
|
+
order: zod_1.z.number().min(0).max(100),
|
|
29
30
|
external_id: zod_1.z.string().nullable().optional(),
|
|
30
31
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
31
32
|
})
|
|
@@ -34,6 +35,7 @@ exports.zAppointmentSourceSchema = zod_schemas_1.zFireDocSchema
|
|
|
34
35
|
.extend({
|
|
35
36
|
code: zod_1.z.string().min(1).max(20),
|
|
36
37
|
name: zod_1.z.string().min(1).max(255),
|
|
38
|
+
order: zod_1.z.number().min(0).max(100),
|
|
37
39
|
external_id: zod_1.z.string().nullable().optional(),
|
|
38
40
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
39
41
|
})
|
|
@@ -42,6 +44,7 @@ exports.zAppointmentRequestTypeSchema = zod_schemas_1.zFireDocSchema
|
|
|
42
44
|
.extend({
|
|
43
45
|
code: zod_1.z.string().min(1).max(20),
|
|
44
46
|
name: zod_1.z.string().min(1).max(255),
|
|
47
|
+
order: zod_1.z.number().min(0).max(100),
|
|
45
48
|
external_id: zod_1.z.string().nullable().optional(),
|
|
46
49
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
47
50
|
})
|
|
@@ -86,14 +89,14 @@ exports.zDicAppointmentTypeBaseSchema = zod_1.z.enum([
|
|
|
86
89
|
// Schema para IAppointmentStatus (status customizados do usuário)
|
|
87
90
|
exports.zAppointmentStatusSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
88
91
|
name: zod_1.z.string().min(1).max(255),
|
|
89
|
-
order: zod_1.z.number(),
|
|
92
|
+
order: zod_1.z.number().min(0).max(100),
|
|
90
93
|
external_id: zod_1.z.string().nullable().optional(),
|
|
91
94
|
base_type: exports.zDicAppointmentStatusTypeSchema,
|
|
92
95
|
});
|
|
93
96
|
// Schema para IAppointmentType (tipos customizados do usuário)
|
|
94
97
|
exports.zAppointmentTypeSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
95
98
|
name: zod_1.z.string().min(1).max(255),
|
|
96
|
-
order: zod_1.z.number(),
|
|
99
|
+
order: zod_1.z.number().min(0).max(100),
|
|
97
100
|
external_id: zod_1.z.string().nullable().optional(),
|
|
98
101
|
base_type: exports.zDicAppointmentTypeBaseSchema,
|
|
99
102
|
});
|
|
@@ -170,7 +173,7 @@ exports.zInsuranceSchema = zod_schemas_1.zFireDocSchema
|
|
|
170
173
|
name: zod_1.z.string().min(1).max(255),
|
|
171
174
|
color: zod_1.z.string().max(20).optional(),
|
|
172
175
|
payment_type: exports.zInsurancePaymentTypeSchema,
|
|
173
|
-
order: zod_1.z.number().
|
|
176
|
+
order: zod_1.z.number().min(0).max(100),
|
|
174
177
|
external_id: zod_1.z.string().nullable().optional(),
|
|
175
178
|
})
|
|
176
179
|
.passthrough();
|
|
@@ -26,6 +26,7 @@ export const zPatientSourceSchema = zFireDocSchema
|
|
|
26
26
|
.extend({
|
|
27
27
|
code: z.string().min(1).max(20),
|
|
28
28
|
name: z.string().min(1).max(255),
|
|
29
|
+
order: z.number().min(0).max(100),
|
|
29
30
|
external_id: z.string().nullable().optional(),
|
|
30
31
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
31
32
|
})
|
|
@@ -35,6 +36,7 @@ export const zAppointmentSourceSchema = zFireDocSchema
|
|
|
35
36
|
.extend({
|
|
36
37
|
code: z.string().min(1).max(20),
|
|
37
38
|
name: z.string().min(1).max(255),
|
|
39
|
+
order: z.number().min(0).max(100),
|
|
38
40
|
external_id: z.string().nullable().optional(),
|
|
39
41
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
40
42
|
})
|
|
@@ -44,6 +46,7 @@ export const zAppointmentRequestTypeSchema = zFireDocSchema
|
|
|
44
46
|
.extend({
|
|
45
47
|
code: z.string().min(1).max(20),
|
|
46
48
|
name: z.string().min(1).max(255),
|
|
49
|
+
order: z.number().min(0).max(100),
|
|
47
50
|
external_id: z.string().nullable().optional(),
|
|
48
51
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
49
52
|
})
|
|
@@ -91,7 +94,7 @@ export const zDicAppointmentTypeBaseSchema = z.enum([
|
|
|
91
94
|
// Schema para IAppointmentStatus (status customizados do usuário)
|
|
92
95
|
export const zAppointmentStatusSchema = zFireDocSchema.extend({
|
|
93
96
|
name: z.string().min(1).max(255),
|
|
94
|
-
order: z.number(),
|
|
97
|
+
order: z.number().min(0).max(100),
|
|
95
98
|
external_id: z.string().nullable().optional(),
|
|
96
99
|
base_type: zDicAppointmentStatusTypeSchema,
|
|
97
100
|
});
|
|
@@ -99,7 +102,7 @@ export const zAppointmentStatusSchema = zFireDocSchema.extend({
|
|
|
99
102
|
// Schema para IAppointmentType (tipos customizados do usuário)
|
|
100
103
|
export const zAppointmentTypeSchema = zFireDocSchema.extend({
|
|
101
104
|
name: z.string().min(1).max(255),
|
|
102
|
-
order: z.number(),
|
|
105
|
+
order: z.number().min(0).max(100),
|
|
103
106
|
external_id: z.string().nullable().optional(),
|
|
104
107
|
base_type: zDicAppointmentTypeBaseSchema,
|
|
105
108
|
});
|
|
@@ -185,7 +188,7 @@ export const zInsuranceSchema = zFireDocSchema
|
|
|
185
188
|
name: z.string().min(1).max(255),
|
|
186
189
|
color: z.string().max(20).optional(),
|
|
187
190
|
payment_type: zInsurancePaymentTypeSchema,
|
|
188
|
-
order: z.number().
|
|
191
|
+
order: z.number().min(0).max(100),
|
|
189
192
|
external_id: z.string().nullable().optional(),
|
|
190
193
|
})
|
|
191
194
|
.passthrough();
|
|
@@ -77,7 +77,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
77
77
|
name: z.ZodString;
|
|
78
78
|
corporate_name: z.ZodOptional<z.ZodString>;
|
|
79
79
|
tax_id: z.ZodOptional<z.ZodString>;
|
|
80
|
-
active: z.
|
|
80
|
+
active: z.ZodBoolean;
|
|
81
81
|
ans: z.ZodOptional<z.ZodString>;
|
|
82
82
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
83
83
|
active: z.ZodBoolean;
|
|
@@ -125,7 +125,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
125
125
|
cnes: string;
|
|
126
126
|
};
|
|
127
127
|
}>>;
|
|
128
|
-
address: z.ZodObject<{
|
|
128
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
129
129
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
130
130
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
131
131
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -155,8 +155,8 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
155
155
|
state?: string | undefined;
|
|
156
156
|
zip?: string | undefined;
|
|
157
157
|
geo?: any;
|
|
158
|
-
}
|
|
159
|
-
contact: z.ZodObject<{
|
|
158
|
+
}>>;
|
|
159
|
+
contact: z.ZodOptional<z.ZodObject<{
|
|
160
160
|
email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
161
161
|
phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
162
162
|
mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -168,7 +168,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
168
168
|
email?: string | null | undefined;
|
|
169
169
|
phone?: string | null | undefined;
|
|
170
170
|
mobile?: string | null | undefined;
|
|
171
|
-
}
|
|
171
|
+
}>>;
|
|
172
172
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
173
173
|
name: z.ZodString;
|
|
174
174
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -201,7 +201,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
201
201
|
name: z.ZodString;
|
|
202
202
|
corporate_name: z.ZodOptional<z.ZodString>;
|
|
203
203
|
tax_id: z.ZodOptional<z.ZodString>;
|
|
204
|
-
active: z.
|
|
204
|
+
active: z.ZodBoolean;
|
|
205
205
|
ans: z.ZodOptional<z.ZodString>;
|
|
206
206
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
207
207
|
active: z.ZodBoolean;
|
|
@@ -249,7 +249,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
249
249
|
cnes: string;
|
|
250
250
|
};
|
|
251
251
|
}>>;
|
|
252
|
-
address: z.ZodObject<{
|
|
252
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
253
253
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
254
254
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
255
255
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -279,8 +279,8 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
279
279
|
state?: string | undefined;
|
|
280
280
|
zip?: string | undefined;
|
|
281
281
|
geo?: any;
|
|
282
|
-
}
|
|
283
|
-
contact: z.ZodObject<{
|
|
282
|
+
}>>;
|
|
283
|
+
contact: z.ZodOptional<z.ZodObject<{
|
|
284
284
|
email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
285
285
|
phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
286
286
|
mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -292,7 +292,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
292
292
|
email?: string | null | undefined;
|
|
293
293
|
phone?: string | null | undefined;
|
|
294
294
|
mobile?: string | null | undefined;
|
|
295
|
-
}
|
|
295
|
+
}>>;
|
|
296
296
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
297
297
|
name: z.ZodString;
|
|
298
298
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -325,7 +325,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
325
325
|
name: z.ZodString;
|
|
326
326
|
corporate_name: z.ZodOptional<z.ZodString>;
|
|
327
327
|
tax_id: z.ZodOptional<z.ZodString>;
|
|
328
|
-
active: z.
|
|
328
|
+
active: z.ZodBoolean;
|
|
329
329
|
ans: z.ZodOptional<z.ZodString>;
|
|
330
330
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
active: z.ZodBoolean;
|
|
@@ -373,7 +373,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
373
373
|
cnes: string;
|
|
374
374
|
};
|
|
375
375
|
}>>;
|
|
376
|
-
address: z.ZodObject<{
|
|
376
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
377
377
|
name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
378
378
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
379
379
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -403,8 +403,8 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
403
403
|
state?: string | undefined;
|
|
404
404
|
zip?: string | undefined;
|
|
405
405
|
geo?: any;
|
|
406
|
-
}
|
|
407
|
-
contact: z.ZodObject<{
|
|
406
|
+
}>>;
|
|
407
|
+
contact: z.ZodOptional<z.ZodObject<{
|
|
408
408
|
email: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
409
409
|
phone: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
410
410
|
mobile: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -416,7 +416,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
416
416
|
email?: string | null | undefined;
|
|
417
417
|
phone?: string | null | undefined;
|
|
418
418
|
mobile?: string | null | undefined;
|
|
419
|
-
}
|
|
419
|
+
}>>;
|
|
420
420
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
421
421
|
name: z.ZodString;
|
|
422
422
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -23,11 +23,11 @@ exports.zInsuranceCompanySchema = zod_schemas_1.zFireDocSchema
|
|
|
23
23
|
name: zod_1.z.string().min(1).max(255),
|
|
24
24
|
corporate_name: zod_1.z.string().optional(),
|
|
25
25
|
tax_id: zod_1.z.string().max(60).optional(),
|
|
26
|
-
active: zod_1.z.boolean()
|
|
26
|
+
active: zod_1.z.boolean(),
|
|
27
27
|
ans: zod_1.z.string().max(255).optional(),
|
|
28
28
|
tiss: exports.zTissConfigSchema.optional(),
|
|
29
|
-
address: zod_schemas_1.zAddressSchema,
|
|
30
|
-
contact: zod_schemas_1.zContactSchema,
|
|
29
|
+
address: zod_schemas_1.zAddressSchema.optional(),
|
|
30
|
+
contact: zod_schemas_1.zContactSchema.optional(),
|
|
31
31
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
32
32
|
})
|
|
33
33
|
.passthrough();
|
|
@@ -29,11 +29,11 @@ export const zInsuranceCompanySchema = zFireDocSchema
|
|
|
29
29
|
name: z.string().min(1).max(255),
|
|
30
30
|
corporate_name: z.string().optional(),
|
|
31
31
|
tax_id: z.string().max(60).optional(),
|
|
32
|
-
active: z.boolean()
|
|
32
|
+
active: z.boolean(),
|
|
33
33
|
ans: z.string().max(255).optional(),
|
|
34
34
|
tiss: zTissConfigSchema.optional(),
|
|
35
|
-
address: zAddressSchema,
|
|
36
|
-
contact: zContactSchema,
|
|
35
|
+
address: zAddressSchema.optional(),
|
|
36
|
+
contact: zContactSchema.optional(),
|
|
37
37
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
38
38
|
})
|
|
39
39
|
.passthrough();
|
|
@@ -27,16 +27,17 @@ export interface ISpecialty extends IFireDoc {
|
|
|
27
27
|
name: string;
|
|
28
28
|
order: number;
|
|
29
29
|
tiss?: string;
|
|
30
|
-
external_id?: string | null;
|
|
31
30
|
type_code?: string;
|
|
32
31
|
type_name?: string;
|
|
33
32
|
typeRef?: FirestoreDocumentReference;
|
|
33
|
+
external_id?: string | null;
|
|
34
34
|
tags?: ITag[] | null;
|
|
35
35
|
[key: string]: unknown;
|
|
36
36
|
}
|
|
37
37
|
export interface IPatientSource extends IFireDoc {
|
|
38
38
|
code: string;
|
|
39
39
|
name: string;
|
|
40
|
+
order: number;
|
|
40
41
|
external_id?: string | null;
|
|
41
42
|
tags?: ITag[] | null;
|
|
42
43
|
[key: string]: unknown;
|
|
@@ -44,6 +45,7 @@ export interface IPatientSource extends IFireDoc {
|
|
|
44
45
|
export interface IAppointmentSource extends IFireDoc {
|
|
45
46
|
code: string;
|
|
46
47
|
name: string;
|
|
48
|
+
order: number;
|
|
47
49
|
external_id?: string | null;
|
|
48
50
|
tags?: ITag[] | null;
|
|
49
51
|
[key: string]: unknown;
|
|
@@ -51,6 +53,7 @@ export interface IAppointmentSource extends IFireDoc {
|
|
|
51
53
|
export interface IAppointmentRequestType extends IFireDoc {
|
|
52
54
|
code: string;
|
|
53
55
|
name: string;
|
|
56
|
+
order: number;
|
|
54
57
|
external_id?: string | null;
|
|
55
58
|
tags?: ITag[] | null;
|
|
56
59
|
[key: string]: unknown;
|
|
@@ -113,12 +116,12 @@ export interface IMedication {
|
|
|
113
116
|
export interface IChronicCondition extends IFireDoc {
|
|
114
117
|
code: string;
|
|
115
118
|
name: string;
|
|
116
|
-
external_id?: string | null;
|
|
117
119
|
diagnosis_date?: string | null;
|
|
118
120
|
severity?: "Mild" | "Moderate" | "Severe";
|
|
119
121
|
controlled?: boolean;
|
|
120
122
|
medications?: IMedication[] | null;
|
|
121
123
|
notes?: string | null;
|
|
124
|
+
external_id?: string | null;
|
|
122
125
|
}
|
|
123
126
|
export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
|
|
124
127
|
export declare enum IAllergyKind {
|
|
@@ -49,10 +49,10 @@ export interface ISpecialty extends IFireDoc {
|
|
|
49
49
|
name: string;
|
|
50
50
|
order: number;
|
|
51
51
|
tiss?: string;
|
|
52
|
-
external_id?: string | null; // ID externo da especialidade
|
|
53
52
|
type_code?: string;
|
|
54
53
|
type_name?: string;
|
|
55
54
|
typeRef?: FirestoreDocumentReference;
|
|
55
|
+
external_id?: string | null; // ID externo da especialidade
|
|
56
56
|
tags?: ITag[] | null;
|
|
57
57
|
[key: string]: unknown; // index signature
|
|
58
58
|
}
|
|
@@ -60,6 +60,7 @@ export interface ISpecialty extends IFireDoc {
|
|
|
60
60
|
export interface IPatientSource extends IFireDoc {
|
|
61
61
|
code: string;
|
|
62
62
|
name: string;
|
|
63
|
+
order: number;
|
|
63
64
|
external_id?: string | null; // ID externo da fonte de pacientes
|
|
64
65
|
tags?: ITag[] | null;
|
|
65
66
|
[key: string]: unknown; // index signature
|
|
@@ -68,6 +69,7 @@ export interface IPatientSource extends IFireDoc {
|
|
|
68
69
|
export interface IAppointmentSource extends IFireDoc {
|
|
69
70
|
code: string;
|
|
70
71
|
name: string;
|
|
72
|
+
order: number;
|
|
71
73
|
external_id?: string | null; // ID externo da fonte de agendamentos
|
|
72
74
|
tags?: ITag[] | null;
|
|
73
75
|
[key: string]: unknown; // index signature
|
|
@@ -76,6 +78,7 @@ export interface IAppointmentSource extends IFireDoc {
|
|
|
76
78
|
export interface IAppointmentRequestType extends IFireDoc {
|
|
77
79
|
code: string;
|
|
78
80
|
name: string;
|
|
81
|
+
order: number;
|
|
79
82
|
external_id?: string | null; // ID externo do tipo de agendamento
|
|
80
83
|
tags?: ITag[] | null;
|
|
81
84
|
[key: string]: unknown; // index signature
|
|
@@ -159,12 +162,12 @@ export interface IMedication {
|
|
|
159
162
|
export interface IChronicCondition extends IFireDoc {
|
|
160
163
|
code: string; // Identificador único da condição
|
|
161
164
|
name: string; // Nome da doença crônica, ex: "Diabetes Tipo 2"
|
|
162
|
-
external_id?: string | null; // ID externo da condição crônica
|
|
163
165
|
diagnosis_date?: string | null; // Data do diagnóstico (ISO 8601)
|
|
164
166
|
severity?: "Mild" | "Moderate" | "Severe"; // Nível de gravidade
|
|
165
167
|
controlled?: boolean; // Indica se a condição está sob controle
|
|
166
168
|
medications?: IMedication[] | null; // Lista de medicamentos utilizados para tratar a condição
|
|
167
169
|
notes?: string | null; // Observações adicionais
|
|
170
|
+
external_id?: string | null; // ID externo da condição crônica
|
|
168
171
|
}
|
|
169
172
|
|
|
170
173
|
export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
|
|
@@ -8,7 +8,7 @@ export declare enum IMedInsuranceAction {
|
|
|
8
8
|
}
|
|
9
9
|
export interface ITissContract {
|
|
10
10
|
type: "PJ" | "PF";
|
|
11
|
-
|
|
11
|
+
operator_code: string;
|
|
12
12
|
taxId: string;
|
|
13
13
|
name: string;
|
|
14
14
|
cnes: string;
|
|
@@ -16,7 +16,7 @@ export interface ITissContract {
|
|
|
16
16
|
export interface ITissConfig {
|
|
17
17
|
active: boolean;
|
|
18
18
|
version: string;
|
|
19
|
-
|
|
19
|
+
current_batch: number;
|
|
20
20
|
contract: ITissContract;
|
|
21
21
|
}
|
|
22
22
|
export interface IInsuranceCompany extends IFireDoc {
|
|
@@ -17,7 +17,7 @@ export enum IMedInsuranceAction {
|
|
|
17
17
|
|
|
18
18
|
export interface ITissContract {
|
|
19
19
|
type: "PJ" | "PF"; // Tipo de contrato: Pessoa Jurídica (PJ) ou Física (PF)
|
|
20
|
-
|
|
20
|
+
operator_code: string; // Código na operadora
|
|
21
21
|
taxId: string; // CNPJ ou CPF da operadora
|
|
22
22
|
name: string; // Nome da operadora
|
|
23
23
|
cnes: string; // Código CNES (Cadastro Nacional de Estabelecimentos de Saúde)
|
|
@@ -26,7 +26,7 @@ export interface ITissContract {
|
|
|
26
26
|
export interface ITissConfig {
|
|
27
27
|
active: boolean; // Indica se o faturamento TISS está ativo
|
|
28
28
|
version: string; // Versão do TISS (ex: "4.01.00")
|
|
29
|
-
|
|
29
|
+
current_batch: number; // Número do lote atual
|
|
30
30
|
contract: ITissContract;
|
|
31
31
|
}
|
|
32
32
|
|