evo360-types 1.3.82 → 1.3.86
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/insurance/zod-schemas.d.ts +47 -47
- package/dist/apps/evo-med/insurance/zod-schemas.js +10 -10
- package/dist/apps/evo-med/insurance/zod-schemas.ts +10 -10
- package/dist/types/evo-med/dic/index.d.ts +2 -2
- package/dist/types/evo-med/dic/index.ts +2 -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
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const zTissContractSchema: z.ZodObject<{
|
|
3
3
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
4
|
-
|
|
4
|
+
operator_code: z.ZodString;
|
|
5
5
|
taxId: z.ZodString;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
cnes: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
name: string;
|
|
10
10
|
type: "PJ" | "PF";
|
|
11
|
-
|
|
11
|
+
operator_code: string;
|
|
12
12
|
taxId: string;
|
|
13
13
|
cnes: string;
|
|
14
14
|
}, {
|
|
15
15
|
name: string;
|
|
16
16
|
type: "PJ" | "PF";
|
|
17
|
-
|
|
17
|
+
operator_code: string;
|
|
18
18
|
taxId: string;
|
|
19
19
|
cnes: string;
|
|
20
20
|
}>;
|
|
21
21
|
export declare const zTissConfigSchema: z.ZodObject<{
|
|
22
22
|
active: z.ZodBoolean;
|
|
23
23
|
version: z.ZodString;
|
|
24
|
-
|
|
24
|
+
current_batch: z.ZodNumber;
|
|
25
25
|
contract: z.ZodObject<{
|
|
26
26
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
27
|
-
|
|
27
|
+
operator_code: z.ZodString;
|
|
28
28
|
taxId: z.ZodString;
|
|
29
29
|
name: z.ZodString;
|
|
30
30
|
cnes: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
name: string;
|
|
33
33
|
type: "PJ" | "PF";
|
|
34
|
-
|
|
34
|
+
operator_code: string;
|
|
35
35
|
taxId: string;
|
|
36
36
|
cnes: string;
|
|
37
37
|
}, {
|
|
38
38
|
name: string;
|
|
39
39
|
type: "PJ" | "PF";
|
|
40
|
-
|
|
40
|
+
operator_code: string;
|
|
41
41
|
taxId: string;
|
|
42
42
|
cnes: string;
|
|
43
43
|
}>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
version: string;
|
|
46
46
|
active: boolean;
|
|
47
|
-
|
|
47
|
+
current_batch: number;
|
|
48
48
|
contract: {
|
|
49
49
|
name: string;
|
|
50
50
|
type: "PJ" | "PF";
|
|
51
|
-
|
|
51
|
+
operator_code: string;
|
|
52
52
|
taxId: string;
|
|
53
53
|
cnes: string;
|
|
54
54
|
};
|
|
55
55
|
}, {
|
|
56
56
|
version: string;
|
|
57
57
|
active: boolean;
|
|
58
|
-
|
|
58
|
+
current_batch: number;
|
|
59
59
|
contract: {
|
|
60
60
|
name: string;
|
|
61
61
|
type: "PJ" | "PF";
|
|
62
|
-
|
|
62
|
+
operator_code: string;
|
|
63
63
|
taxId: string;
|
|
64
64
|
cnes: string;
|
|
65
65
|
};
|
|
@@ -82,50 +82,50 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
82
82
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
83
83
|
active: z.ZodBoolean;
|
|
84
84
|
version: z.ZodString;
|
|
85
|
-
|
|
85
|
+
current_batch: z.ZodNumber;
|
|
86
86
|
contract: z.ZodObject<{
|
|
87
87
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
88
|
-
|
|
88
|
+
operator_code: z.ZodString;
|
|
89
89
|
taxId: z.ZodString;
|
|
90
90
|
name: z.ZodString;
|
|
91
91
|
cnes: z.ZodString;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
93
|
name: string;
|
|
94
94
|
type: "PJ" | "PF";
|
|
95
|
-
|
|
95
|
+
operator_code: string;
|
|
96
96
|
taxId: string;
|
|
97
97
|
cnes: string;
|
|
98
98
|
}, {
|
|
99
99
|
name: string;
|
|
100
100
|
type: "PJ" | "PF";
|
|
101
|
-
|
|
101
|
+
operator_code: string;
|
|
102
102
|
taxId: string;
|
|
103
103
|
cnes: string;
|
|
104
104
|
}>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
106
|
version: string;
|
|
107
107
|
active: boolean;
|
|
108
|
-
|
|
108
|
+
current_batch: number;
|
|
109
109
|
contract: {
|
|
110
110
|
name: string;
|
|
111
111
|
type: "PJ" | "PF";
|
|
112
|
-
|
|
112
|
+
operator_code: string;
|
|
113
113
|
taxId: string;
|
|
114
114
|
cnes: string;
|
|
115
115
|
};
|
|
116
116
|
}, {
|
|
117
117
|
version: string;
|
|
118
118
|
active: boolean;
|
|
119
|
-
|
|
119
|
+
current_batch: number;
|
|
120
120
|
contract: {
|
|
121
121
|
name: string;
|
|
122
122
|
type: "PJ" | "PF";
|
|
123
|
-
|
|
123
|
+
operator_code: string;
|
|
124
124
|
taxId: string;
|
|
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>;
|
|
@@ -206,50 +206,50 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
206
206
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
207
207
|
active: z.ZodBoolean;
|
|
208
208
|
version: z.ZodString;
|
|
209
|
-
|
|
209
|
+
current_batch: z.ZodNumber;
|
|
210
210
|
contract: z.ZodObject<{
|
|
211
211
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
212
|
-
|
|
212
|
+
operator_code: z.ZodString;
|
|
213
213
|
taxId: z.ZodString;
|
|
214
214
|
name: z.ZodString;
|
|
215
215
|
cnes: z.ZodString;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
name: string;
|
|
218
218
|
type: "PJ" | "PF";
|
|
219
|
-
|
|
219
|
+
operator_code: string;
|
|
220
220
|
taxId: string;
|
|
221
221
|
cnes: string;
|
|
222
222
|
}, {
|
|
223
223
|
name: string;
|
|
224
224
|
type: "PJ" | "PF";
|
|
225
|
-
|
|
225
|
+
operator_code: string;
|
|
226
226
|
taxId: string;
|
|
227
227
|
cnes: string;
|
|
228
228
|
}>;
|
|
229
229
|
}, "strip", z.ZodTypeAny, {
|
|
230
230
|
version: string;
|
|
231
231
|
active: boolean;
|
|
232
|
-
|
|
232
|
+
current_batch: number;
|
|
233
233
|
contract: {
|
|
234
234
|
name: string;
|
|
235
235
|
type: "PJ" | "PF";
|
|
236
|
-
|
|
236
|
+
operator_code: string;
|
|
237
237
|
taxId: string;
|
|
238
238
|
cnes: string;
|
|
239
239
|
};
|
|
240
240
|
}, {
|
|
241
241
|
version: string;
|
|
242
242
|
active: boolean;
|
|
243
|
-
|
|
243
|
+
current_batch: number;
|
|
244
244
|
contract: {
|
|
245
245
|
name: string;
|
|
246
246
|
type: "PJ" | "PF";
|
|
247
|
-
|
|
247
|
+
operator_code: string;
|
|
248
248
|
taxId: string;
|
|
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>;
|
|
@@ -330,50 +330,50 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
330
330
|
tiss: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
active: z.ZodBoolean;
|
|
332
332
|
version: z.ZodString;
|
|
333
|
-
|
|
333
|
+
current_batch: z.ZodNumber;
|
|
334
334
|
contract: z.ZodObject<{
|
|
335
335
|
type: z.ZodEnum<["PJ", "PF"]>;
|
|
336
|
-
|
|
336
|
+
operator_code: z.ZodString;
|
|
337
337
|
taxId: z.ZodString;
|
|
338
338
|
name: z.ZodString;
|
|
339
339
|
cnes: z.ZodString;
|
|
340
340
|
}, "strip", z.ZodTypeAny, {
|
|
341
341
|
name: string;
|
|
342
342
|
type: "PJ" | "PF";
|
|
343
|
-
|
|
343
|
+
operator_code: string;
|
|
344
344
|
taxId: string;
|
|
345
345
|
cnes: string;
|
|
346
346
|
}, {
|
|
347
347
|
name: string;
|
|
348
348
|
type: "PJ" | "PF";
|
|
349
|
-
|
|
349
|
+
operator_code: string;
|
|
350
350
|
taxId: string;
|
|
351
351
|
cnes: string;
|
|
352
352
|
}>;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
354
|
version: string;
|
|
355
355
|
active: boolean;
|
|
356
|
-
|
|
356
|
+
current_batch: number;
|
|
357
357
|
contract: {
|
|
358
358
|
name: string;
|
|
359
359
|
type: "PJ" | "PF";
|
|
360
|
-
|
|
360
|
+
operator_code: string;
|
|
361
361
|
taxId: string;
|
|
362
362
|
cnes: string;
|
|
363
363
|
};
|
|
364
364
|
}, {
|
|
365
365
|
version: string;
|
|
366
366
|
active: boolean;
|
|
367
|
-
|
|
367
|
+
current_batch: number;
|
|
368
368
|
contract: {
|
|
369
369
|
name: string;
|
|
370
370
|
type: "PJ" | "PF";
|
|
371
|
-
|
|
371
|
+
operator_code: string;
|
|
372
372
|
taxId: string;
|
|
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>;
|
|
@@ -6,15 +6,15 @@ const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
|
6
6
|
// Define Zod schemas for each interface
|
|
7
7
|
exports.zTissContractSchema = zod_1.z.object({
|
|
8
8
|
type: zod_1.z.enum(["PJ", "PF"]),
|
|
9
|
-
|
|
10
|
-
taxId: zod_1.z.string().
|
|
11
|
-
name: zod_1.z.string().
|
|
12
|
-
cnes: zod_1.z.string().
|
|
9
|
+
operator_code: zod_1.z.string().max(20),
|
|
10
|
+
taxId: zod_1.z.string().max(255),
|
|
11
|
+
name: zod_1.z.string().max(255),
|
|
12
|
+
cnes: zod_1.z.string().max(255),
|
|
13
13
|
});
|
|
14
14
|
exports.zTissConfigSchema = zod_1.z.object({
|
|
15
15
|
active: zod_1.z.boolean(),
|
|
16
|
-
version: zod_1.z.string().
|
|
17
|
-
|
|
16
|
+
version: zod_1.z.string().max(20),
|
|
17
|
+
current_batch: zod_1.z.number(),
|
|
18
18
|
contract: exports.zTissContractSchema,
|
|
19
19
|
});
|
|
20
20
|
exports.zInsuranceCompanySchema = zod_schemas_1.zFireDocSchema
|
|
@@ -22,12 +22,12 @@ exports.zInsuranceCompanySchema = zod_schemas_1.zFireDocSchema
|
|
|
22
22
|
code: zod_1.z.string().min(1).max(20),
|
|
23
23
|
name: zod_1.z.string().min(1).max(255),
|
|
24
24
|
corporate_name: zod_1.z.string().optional(),
|
|
25
|
-
tax_id: zod_1.z.string().optional(),
|
|
25
|
+
tax_id: zod_1.z.string().max(60).optional(),
|
|
26
26
|
active: zod_1.z.boolean(),
|
|
27
|
-
ans: zod_1.z.string().
|
|
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();
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
|
|
11
11
|
export const zTissContractSchema = z.object({
|
|
12
12
|
type: z.enum(["PJ", "PF"]),
|
|
13
|
-
|
|
14
|
-
taxId: z.string().
|
|
15
|
-
name: z.string().
|
|
16
|
-
cnes: z.string().
|
|
13
|
+
operator_code: z.string().max(20),
|
|
14
|
+
taxId: z.string().max(255),
|
|
15
|
+
name: z.string().max(255),
|
|
16
|
+
cnes: z.string().max(255),
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
export const zTissConfigSchema = z.object({
|
|
20
20
|
active: z.boolean(),
|
|
21
|
-
version: z.string().
|
|
22
|
-
|
|
21
|
+
version: z.string().max(20),
|
|
22
|
+
current_batch: z.number(),
|
|
23
23
|
contract: zTissContractSchema,
|
|
24
24
|
});
|
|
25
25
|
|
|
@@ -28,12 +28,12 @@ export const zInsuranceCompanySchema = zFireDocSchema
|
|
|
28
28
|
code: z.string().min(1).max(20),
|
|
29
29
|
name: z.string().min(1).max(255),
|
|
30
30
|
corporate_name: z.string().optional(),
|
|
31
|
-
tax_id: z.string().optional(),
|
|
31
|
+
tax_id: z.string().max(60).optional(),
|
|
32
32
|
active: z.boolean(),
|
|
33
|
-
ans: z.string().
|
|
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,10 +27,10 @@ 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
|
}
|
|
@@ -113,12 +113,12 @@ export interface IMedication {
|
|
|
113
113
|
export interface IChronicCondition extends IFireDoc {
|
|
114
114
|
code: string;
|
|
115
115
|
name: string;
|
|
116
|
-
external_id?: string | null;
|
|
117
116
|
diagnosis_date?: string | null;
|
|
118
117
|
severity?: "Mild" | "Moderate" | "Severe";
|
|
119
118
|
controlled?: boolean;
|
|
120
119
|
medications?: IMedication[] | null;
|
|
121
120
|
notes?: string | null;
|
|
121
|
+
external_id?: string | null;
|
|
122
122
|
}
|
|
123
123
|
export type AllergyKind = "Food" | "Drug" | "Insect" | "Other";
|
|
124
124
|
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
|
}
|
|
@@ -159,12 +159,12 @@ export interface IMedication {
|
|
|
159
159
|
export interface IChronicCondition extends IFireDoc {
|
|
160
160
|
code: string; // Identificador único da condição
|
|
161
161
|
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
162
|
diagnosis_date?: string | null; // Data do diagnóstico (ISO 8601)
|
|
164
163
|
severity?: "Mild" | "Moderate" | "Severe"; // Nível de gravidade
|
|
165
164
|
controlled?: boolean; // Indica se a condição está sob controle
|
|
166
165
|
medications?: IMedication[] | null; // Lista de medicamentos utilizados para tratar a condição
|
|
167
166
|
notes?: string | null; // Observações adicionais
|
|
167
|
+
external_id?: string | null; // ID externo da condição crônica
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
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
|
|