evo360-types 1.3.84 → 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 +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 +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
|
@@ -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,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
|
|