evo360-types 1.2.4 → 1.2.5
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 +38 -0
- package/dist/apps/evo-med/dic/zod-schemas.js +37 -1
- package/dist/apps/evo-med/dic/zod-schemas.ts +37 -0
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +12 -12
- package/dist/apps/evo-med/people/zod-schemas.d.ts +27 -24
- package/dist/apps/evo-med/people/zod-schemas.js +1 -0
- package/dist/apps/evo-med/people/zod-schemas.ts +1 -0
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +2 -2
- package/dist/apps/shared/zod-schemas.d.ts +4 -4
- package/dist/types/evo-med/dic/index.d.ts +6 -0
- package/dist/types/evo-med/dic/index.ts +7 -0
- package/dist/types/evo-med/people/index.d.ts +7 -3
- package/dist/types/evo-med/people/index.ts +7 -3
- package/package.json +1 -1
|
@@ -611,3 +611,41 @@ export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
611
611
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
612
612
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
613
613
|
}>;
|
|
614
|
+
export declare const zCouncilSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
615
|
+
id: z.ZodString;
|
|
616
|
+
ref: z.ZodAny;
|
|
617
|
+
tenant: z.ZodString;
|
|
618
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
619
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
620
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
621
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
622
|
+
}, {
|
|
623
|
+
name: z.ZodString;
|
|
624
|
+
acronym: z.ZodString;
|
|
625
|
+
state: z.ZodDefault<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF"]>>;
|
|
626
|
+
country: z.ZodDefault<z.ZodString>;
|
|
627
|
+
}>, "strip", z.ZodTypeAny, {
|
|
628
|
+
name: string;
|
|
629
|
+
id: string;
|
|
630
|
+
tenant: string;
|
|
631
|
+
model_ver: number;
|
|
632
|
+
acronym: string;
|
|
633
|
+
state: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF";
|
|
634
|
+
country: string;
|
|
635
|
+
ref?: any;
|
|
636
|
+
created_at?: Date | null | undefined;
|
|
637
|
+
updated_at?: Date | null | undefined;
|
|
638
|
+
deleted_at?: Date | null | undefined;
|
|
639
|
+
}, {
|
|
640
|
+
name: string;
|
|
641
|
+
id: string;
|
|
642
|
+
tenant: string;
|
|
643
|
+
acronym: string;
|
|
644
|
+
ref?: any;
|
|
645
|
+
model_ver?: number | undefined;
|
|
646
|
+
created_at?: Date | null | undefined;
|
|
647
|
+
updated_at?: Date | null | undefined;
|
|
648
|
+
deleted_at?: Date | null | undefined;
|
|
649
|
+
state?: "AC" | "AL" | "AP" | "AM" | "BA" | "CE" | "ES" | "GO" | "MA" | "MT" | "MS" | "MG" | "PA" | "PB" | "PR" | "PE" | "PI" | "RJ" | "RN" | "RS" | "RO" | "RR" | "SC" | "SP" | "SE" | "TO" | "DF" | undefined;
|
|
650
|
+
country?: string | undefined;
|
|
651
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zAllergySchema = exports.zChronicConditionSchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = exports.zSpecialtySchema = void 0;
|
|
3
|
+
exports.zCouncilSchema = exports.zAllergySchema = exports.zChronicConditionSchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = exports.zSpecialtySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
6
|
exports.zSpecialtySchema = zod_schemas_1.zFireDocSchema
|
|
@@ -87,3 +87,39 @@ exports.zAllergySchema = zod_schemas_1.zFireDocSchema.extend({
|
|
|
87
87
|
.optional()
|
|
88
88
|
.default("Unknown"),
|
|
89
89
|
});
|
|
90
|
+
exports.zCouncilSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
91
|
+
name: zod_1.z.string().min(1).max(255),
|
|
92
|
+
acronym: zod_1.z.string().min(1).max(60),
|
|
93
|
+
state: zod_1.z
|
|
94
|
+
.enum([
|
|
95
|
+
"AC",
|
|
96
|
+
"AL",
|
|
97
|
+
"AP",
|
|
98
|
+
"AM",
|
|
99
|
+
"BA",
|
|
100
|
+
"CE",
|
|
101
|
+
"ES",
|
|
102
|
+
"GO",
|
|
103
|
+
"MA",
|
|
104
|
+
"MT",
|
|
105
|
+
"MS",
|
|
106
|
+
"MG",
|
|
107
|
+
"PA",
|
|
108
|
+
"PB",
|
|
109
|
+
"PR",
|
|
110
|
+
"PE",
|
|
111
|
+
"PI",
|
|
112
|
+
"RJ",
|
|
113
|
+
"RN",
|
|
114
|
+
"RS",
|
|
115
|
+
"RO",
|
|
116
|
+
"RR",
|
|
117
|
+
"SC",
|
|
118
|
+
"SP",
|
|
119
|
+
"SE",
|
|
120
|
+
"TO",
|
|
121
|
+
"DF",
|
|
122
|
+
])
|
|
123
|
+
.default("SP"),
|
|
124
|
+
country: zod_1.z.string().min(3).max(255).default("Brasil"),
|
|
125
|
+
});
|
|
@@ -94,3 +94,40 @@ export const zAllergySchema = zFireDocSchema.extend({
|
|
|
94
94
|
.optional()
|
|
95
95
|
.default("Unknown"),
|
|
96
96
|
});
|
|
97
|
+
|
|
98
|
+
export const zCouncilSchema = zFireDocSchema.extend({
|
|
99
|
+
name: z.string().min(1).max(255),
|
|
100
|
+
acronym: z.string().min(1).max(60),
|
|
101
|
+
state: z
|
|
102
|
+
.enum([
|
|
103
|
+
"AC",
|
|
104
|
+
"AL",
|
|
105
|
+
"AP",
|
|
106
|
+
"AM",
|
|
107
|
+
"BA",
|
|
108
|
+
"CE",
|
|
109
|
+
"ES",
|
|
110
|
+
"GO",
|
|
111
|
+
"MA",
|
|
112
|
+
"MT",
|
|
113
|
+
"MS",
|
|
114
|
+
"MG",
|
|
115
|
+
"PA",
|
|
116
|
+
"PB",
|
|
117
|
+
"PR",
|
|
118
|
+
"PE",
|
|
119
|
+
"PI",
|
|
120
|
+
"RJ",
|
|
121
|
+
"RN",
|
|
122
|
+
"RS",
|
|
123
|
+
"RO",
|
|
124
|
+
"RR",
|
|
125
|
+
"SC",
|
|
126
|
+
"SP",
|
|
127
|
+
"SE",
|
|
128
|
+
"TO",
|
|
129
|
+
"DF",
|
|
130
|
+
])
|
|
131
|
+
.default("SP"),
|
|
132
|
+
country: z.string().min(3).max(255).default("Brasil"),
|
|
133
|
+
});
|
|
@@ -138,22 +138,22 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
name: string;
|
|
140
140
|
kind: string;
|
|
141
|
+
state: string;
|
|
142
|
+
country: string;
|
|
141
143
|
line1: string;
|
|
142
144
|
line2: string;
|
|
143
145
|
city: string;
|
|
144
|
-
state: string;
|
|
145
146
|
zip: string;
|
|
146
|
-
country: string;
|
|
147
147
|
geo?: any;
|
|
148
148
|
}, {
|
|
149
149
|
name?: string | undefined;
|
|
150
150
|
kind?: string | undefined;
|
|
151
|
+
state?: string | undefined;
|
|
152
|
+
country?: string | undefined;
|
|
151
153
|
line1?: string | undefined;
|
|
152
154
|
line2?: string | undefined;
|
|
153
155
|
city?: string | undefined;
|
|
154
|
-
state?: string | undefined;
|
|
155
156
|
zip?: string | undefined;
|
|
156
|
-
country?: string | undefined;
|
|
157
157
|
geo?: any;
|
|
158
158
|
}>;
|
|
159
159
|
contact: z.ZodObject<{
|
|
@@ -256,22 +256,22 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
257
|
name: string;
|
|
258
258
|
kind: string;
|
|
259
|
+
state: string;
|
|
260
|
+
country: string;
|
|
259
261
|
line1: string;
|
|
260
262
|
line2: string;
|
|
261
263
|
city: string;
|
|
262
|
-
state: string;
|
|
263
264
|
zip: string;
|
|
264
|
-
country: string;
|
|
265
265
|
geo?: any;
|
|
266
266
|
}, {
|
|
267
267
|
name?: string | undefined;
|
|
268
268
|
kind?: string | undefined;
|
|
269
|
+
state?: string | undefined;
|
|
270
|
+
country?: string | undefined;
|
|
269
271
|
line1?: string | undefined;
|
|
270
272
|
line2?: string | undefined;
|
|
271
273
|
city?: string | undefined;
|
|
272
|
-
state?: string | undefined;
|
|
273
274
|
zip?: string | undefined;
|
|
274
|
-
country?: string | undefined;
|
|
275
275
|
geo?: any;
|
|
276
276
|
}>;
|
|
277
277
|
contact: z.ZodObject<{
|
|
@@ -374,22 +374,22 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
374
374
|
}, "strip", z.ZodTypeAny, {
|
|
375
375
|
name: string;
|
|
376
376
|
kind: string;
|
|
377
|
+
state: string;
|
|
378
|
+
country: string;
|
|
377
379
|
line1: string;
|
|
378
380
|
line2: string;
|
|
379
381
|
city: string;
|
|
380
|
-
state: string;
|
|
381
382
|
zip: string;
|
|
382
|
-
country: string;
|
|
383
383
|
geo?: any;
|
|
384
384
|
}, {
|
|
385
385
|
name?: string | undefined;
|
|
386
386
|
kind?: string | undefined;
|
|
387
|
+
state?: string | undefined;
|
|
388
|
+
country?: string | undefined;
|
|
387
389
|
line1?: string | undefined;
|
|
388
390
|
line2?: string | undefined;
|
|
389
391
|
city?: string | undefined;
|
|
390
|
-
state?: string | undefined;
|
|
391
392
|
zip?: string | undefined;
|
|
392
|
-
country?: string | undefined;
|
|
393
393
|
geo?: any;
|
|
394
394
|
}>;
|
|
395
395
|
contact: z.ZodObject<{
|
|
@@ -37,6 +37,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
37
37
|
job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
38
|
council_doc: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
39
39
|
council_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
40
|
+
council_acronym: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
40
41
|
council_state: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
41
42
|
councilRef: z.ZodAny;
|
|
42
43
|
specialties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -70,22 +71,22 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
70
71
|
}, "strip", z.ZodTypeAny, {
|
|
71
72
|
name: string;
|
|
72
73
|
kind: string;
|
|
74
|
+
state: string;
|
|
75
|
+
country: string;
|
|
73
76
|
line1: string;
|
|
74
77
|
line2: string;
|
|
75
78
|
city: string;
|
|
76
|
-
state: string;
|
|
77
79
|
zip: string;
|
|
78
|
-
country: string;
|
|
79
80
|
geo?: any;
|
|
80
81
|
}, {
|
|
81
82
|
name?: string | undefined;
|
|
82
83
|
kind?: string | undefined;
|
|
84
|
+
state?: string | undefined;
|
|
85
|
+
country?: string | undefined;
|
|
83
86
|
line1?: string | undefined;
|
|
84
87
|
line2?: string | undefined;
|
|
85
88
|
city?: string | undefined;
|
|
86
|
-
state?: string | undefined;
|
|
87
89
|
zip?: string | undefined;
|
|
88
|
-
country?: string | undefined;
|
|
89
90
|
geo?: any;
|
|
90
91
|
}>>;
|
|
91
92
|
contact: z.ZodOptional<z.ZodObject<{
|
|
@@ -139,6 +140,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
139
140
|
job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
141
|
council_doc: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
141
142
|
council_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
143
|
+
council_acronym: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
142
144
|
council_state: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
143
145
|
councilRef: z.ZodAny;
|
|
144
146
|
specialties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -172,22 +174,22 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
172
174
|
}, "strip", z.ZodTypeAny, {
|
|
173
175
|
name: string;
|
|
174
176
|
kind: string;
|
|
177
|
+
state: string;
|
|
178
|
+
country: string;
|
|
175
179
|
line1: string;
|
|
176
180
|
line2: string;
|
|
177
181
|
city: string;
|
|
178
|
-
state: string;
|
|
179
182
|
zip: string;
|
|
180
|
-
country: string;
|
|
181
183
|
geo?: any;
|
|
182
184
|
}, {
|
|
183
185
|
name?: string | undefined;
|
|
184
186
|
kind?: string | undefined;
|
|
187
|
+
state?: string | undefined;
|
|
188
|
+
country?: string | undefined;
|
|
185
189
|
line1?: string | undefined;
|
|
186
190
|
line2?: string | undefined;
|
|
187
191
|
city?: string | undefined;
|
|
188
|
-
state?: string | undefined;
|
|
189
192
|
zip?: string | undefined;
|
|
190
|
-
country?: string | undefined;
|
|
191
193
|
geo?: any;
|
|
192
194
|
}>>;
|
|
193
195
|
contact: z.ZodOptional<z.ZodObject<{
|
|
@@ -241,6 +243,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
241
243
|
job_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
244
|
council_doc: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
243
245
|
council_name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
246
|
+
council_acronym: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
244
247
|
council_state: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
245
248
|
councilRef: z.ZodAny;
|
|
246
249
|
specialties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -274,22 +277,22 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
274
277
|
}, "strip", z.ZodTypeAny, {
|
|
275
278
|
name: string;
|
|
276
279
|
kind: string;
|
|
280
|
+
state: string;
|
|
281
|
+
country: string;
|
|
277
282
|
line1: string;
|
|
278
283
|
line2: string;
|
|
279
284
|
city: string;
|
|
280
|
-
state: string;
|
|
281
285
|
zip: string;
|
|
282
|
-
country: string;
|
|
283
286
|
geo?: any;
|
|
284
287
|
}, {
|
|
285
288
|
name?: string | undefined;
|
|
286
289
|
kind?: string | undefined;
|
|
290
|
+
state?: string | undefined;
|
|
291
|
+
country?: string | undefined;
|
|
287
292
|
line1?: string | undefined;
|
|
288
293
|
line2?: string | undefined;
|
|
289
294
|
city?: string | undefined;
|
|
290
|
-
state?: string | undefined;
|
|
291
295
|
zip?: string | undefined;
|
|
292
|
-
country?: string | undefined;
|
|
293
296
|
geo?: any;
|
|
294
297
|
}>>;
|
|
295
298
|
contact: z.ZodOptional<z.ZodObject<{
|
|
@@ -353,22 +356,22 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
353
356
|
}, "strip", z.ZodTypeAny, {
|
|
354
357
|
name: string;
|
|
355
358
|
kind: string;
|
|
359
|
+
state: string;
|
|
360
|
+
country: string;
|
|
356
361
|
line1: string;
|
|
357
362
|
line2: string;
|
|
358
363
|
city: string;
|
|
359
|
-
state: string;
|
|
360
364
|
zip: string;
|
|
361
|
-
country: string;
|
|
362
365
|
geo?: any;
|
|
363
366
|
}, {
|
|
364
367
|
name?: string | undefined;
|
|
365
368
|
kind?: string | undefined;
|
|
369
|
+
state?: string | undefined;
|
|
370
|
+
country?: string | undefined;
|
|
366
371
|
line1?: string | undefined;
|
|
367
372
|
line2?: string | undefined;
|
|
368
373
|
city?: string | undefined;
|
|
369
|
-
state?: string | undefined;
|
|
370
374
|
zip?: string | undefined;
|
|
371
|
-
country?: string | undefined;
|
|
372
375
|
geo?: any;
|
|
373
376
|
}>>;
|
|
374
377
|
contact: z.ZodOptional<z.ZodObject<{
|
|
@@ -538,22 +541,22 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
538
541
|
}, "strip", z.ZodTypeAny, {
|
|
539
542
|
name: string;
|
|
540
543
|
kind: string;
|
|
544
|
+
state: string;
|
|
545
|
+
country: string;
|
|
541
546
|
line1: string;
|
|
542
547
|
line2: string;
|
|
543
548
|
city: string;
|
|
544
|
-
state: string;
|
|
545
549
|
zip: string;
|
|
546
|
-
country: string;
|
|
547
550
|
geo?: any;
|
|
548
551
|
}, {
|
|
549
552
|
name?: string | undefined;
|
|
550
553
|
kind?: string | undefined;
|
|
554
|
+
state?: string | undefined;
|
|
555
|
+
country?: string | undefined;
|
|
551
556
|
line1?: string | undefined;
|
|
552
557
|
line2?: string | undefined;
|
|
553
558
|
city?: string | undefined;
|
|
554
|
-
state?: string | undefined;
|
|
555
559
|
zip?: string | undefined;
|
|
556
|
-
country?: string | undefined;
|
|
557
560
|
geo?: any;
|
|
558
561
|
}>>;
|
|
559
562
|
contact: z.ZodOptional<z.ZodObject<{
|
|
@@ -723,22 +726,22 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
723
726
|
}, "strip", z.ZodTypeAny, {
|
|
724
727
|
name: string;
|
|
725
728
|
kind: string;
|
|
729
|
+
state: string;
|
|
730
|
+
country: string;
|
|
726
731
|
line1: string;
|
|
727
732
|
line2: string;
|
|
728
733
|
city: string;
|
|
729
|
-
state: string;
|
|
730
734
|
zip: string;
|
|
731
|
-
country: string;
|
|
732
735
|
geo?: any;
|
|
733
736
|
}, {
|
|
734
737
|
name?: string | undefined;
|
|
735
738
|
kind?: string | undefined;
|
|
739
|
+
state?: string | undefined;
|
|
740
|
+
country?: string | undefined;
|
|
736
741
|
line1?: string | undefined;
|
|
737
742
|
line2?: string | undefined;
|
|
738
743
|
city?: string | undefined;
|
|
739
|
-
state?: string | undefined;
|
|
740
744
|
zip?: string | undefined;
|
|
741
|
-
country?: string | undefined;
|
|
742
745
|
geo?: any;
|
|
743
746
|
}>>;
|
|
744
747
|
contact: z.ZodOptional<z.ZodObject<{
|
|
@@ -25,6 +25,7 @@ exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from Profil
|
|
|
25
25
|
job_title: zod_1.z.string().nullable().optional(),
|
|
26
26
|
council_doc: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
27
27
|
council_name: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
28
|
+
council_acronym: zod_1.z.string().max(60).nullable().optional().default(""),
|
|
28
29
|
council_state: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
29
30
|
councilRef: zod_1.z.any(),
|
|
30
31
|
specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).optional(),
|
|
@@ -30,6 +30,7 @@ export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
30
30
|
job_title: z.string().nullable().optional(),
|
|
31
31
|
council_doc: z.string().max(255).nullable().optional().default(""),
|
|
32
32
|
council_name: z.string().max(255).nullable().optional().default(""),
|
|
33
|
+
council_acronym: z.string().max(60).nullable().optional().default(""),
|
|
33
34
|
council_state: z.string().max(255).nullable().optional().default(""),
|
|
34
35
|
councilRef: z.any(),
|
|
35
36
|
specialties: z.array(zProfessionalSpecialtySchema).optional(),
|
|
@@ -98,10 +98,10 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
98
98
|
description: string | null;
|
|
99
99
|
type_code: string | null;
|
|
100
100
|
type_name: string | null;
|
|
101
|
+
acronym: string | null;
|
|
101
102
|
duration: number | null;
|
|
102
103
|
color: string | null;
|
|
103
104
|
technical_name: string;
|
|
104
|
-
acronym: string | null;
|
|
105
105
|
tuss: string | null;
|
|
106
106
|
ref?: any;
|
|
107
107
|
created_at?: Date | null | undefined;
|
|
@@ -134,8 +134,8 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
134
134
|
type_code?: string | null | undefined;
|
|
135
135
|
type_name?: string | null | undefined;
|
|
136
136
|
typeRef?: any;
|
|
137
|
+
acronym?: string | null | undefined;
|
|
137
138
|
duration?: number | null | undefined;
|
|
138
139
|
color?: string | null | undefined;
|
|
139
|
-
acronym?: string | null | undefined;
|
|
140
140
|
tuss?: string | null | undefined;
|
|
141
141
|
}>;
|
|
@@ -51,22 +51,22 @@ export declare const zAddressSchema: z.ZodObject<{
|
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
name: string;
|
|
53
53
|
kind: string;
|
|
54
|
+
state: string;
|
|
55
|
+
country: string;
|
|
54
56
|
line1: string;
|
|
55
57
|
line2: string;
|
|
56
58
|
city: string;
|
|
57
|
-
state: string;
|
|
58
59
|
zip: string;
|
|
59
|
-
country: string;
|
|
60
60
|
geo?: any;
|
|
61
61
|
}, {
|
|
62
62
|
name?: string | undefined;
|
|
63
63
|
kind?: string | undefined;
|
|
64
|
+
state?: string | undefined;
|
|
65
|
+
country?: string | undefined;
|
|
64
66
|
line1?: string | undefined;
|
|
65
67
|
line2?: string | undefined;
|
|
66
68
|
city?: string | undefined;
|
|
67
|
-
state?: string | undefined;
|
|
68
69
|
zip?: string | undefined;
|
|
69
|
-
country?: string | undefined;
|
|
70
70
|
geo?: any;
|
|
71
71
|
}>;
|
|
72
72
|
export declare const zContactSchema: z.ZodObject<{
|
|
@@ -105,3 +105,9 @@ export interface IAllergy extends IFireDoc {
|
|
|
105
105
|
kind?: "Food" | "Drug" | "Insect" | "Other";
|
|
106
106
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
107
107
|
}
|
|
108
|
+
export interface ICouncil extends IFireDoc {
|
|
109
|
+
name: string;
|
|
110
|
+
acronym: string;
|
|
111
|
+
state: string;
|
|
112
|
+
country: string;
|
|
113
|
+
}
|
|
@@ -143,3 +143,10 @@ export interface IAllergy extends IFireDoc {
|
|
|
143
143
|
kind?: "Food" | "Drug" | "Insect" | "Other";
|
|
144
144
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
145
145
|
}
|
|
146
|
+
|
|
147
|
+
export interface ICouncil extends IFireDoc {
|
|
148
|
+
name: string; // Nome do conselho (ex: "Conselho Regional de Medicina de São Paulo")
|
|
149
|
+
acronym: string; // Sigla do conselho
|
|
150
|
+
state: string; // Estado de atuação (ex: "SP", "RJ") - Opcional, pois alguns são nacionais
|
|
151
|
+
country: string; // País onde o conselho atua (ex: "Brasil")
|
|
152
|
+
}
|
|
@@ -35,9 +35,10 @@ export interface IProfessional extends IProfile {
|
|
|
35
35
|
title: string;
|
|
36
36
|
type?: string | null;
|
|
37
37
|
job_title?: string | null;
|
|
38
|
-
council_doc
|
|
39
|
-
council_name
|
|
40
|
-
|
|
38
|
+
council_doc?: string;
|
|
39
|
+
council_name?: string;
|
|
40
|
+
council_acronym?: string;
|
|
41
|
+
council_state?: string;
|
|
41
42
|
councilRef?: FirestoreDocumentReference;
|
|
42
43
|
specialties?: IProfessionalSpecialty[];
|
|
43
44
|
date_joining?: Date | null;
|
|
@@ -73,6 +74,9 @@ export declare enum IBloodType {
|
|
|
73
74
|
export interface IPatient extends IProfile {
|
|
74
75
|
social_id?: string | null;
|
|
75
76
|
status: PatientStatus;
|
|
77
|
+
source_code?: string | null;
|
|
78
|
+
source_name?: string | null;
|
|
79
|
+
sourceRef?: FirestoreDocumentReference;
|
|
76
80
|
address: IAddress;
|
|
77
81
|
contact: IContact;
|
|
78
82
|
height_cm: number;
|
|
@@ -70,9 +70,10 @@ export interface IProfessional extends IProfile {
|
|
|
70
70
|
title: string;
|
|
71
71
|
type?: string | null;
|
|
72
72
|
job_title?: string | null;
|
|
73
|
-
council_doc
|
|
74
|
-
council_name
|
|
75
|
-
|
|
73
|
+
council_doc?: string;
|
|
74
|
+
council_name?: string;
|
|
75
|
+
council_acronym?: string;
|
|
76
|
+
council_state?: string;
|
|
76
77
|
councilRef?: FirestoreDocumentReference;
|
|
77
78
|
specialties?: IProfessionalSpecialty[];
|
|
78
79
|
date_joining?: Date | null;
|
|
@@ -130,6 +131,9 @@ export enum IBloodType {
|
|
|
130
131
|
export interface IPatient extends IProfile {
|
|
131
132
|
social_id?: string | null; //CPF
|
|
132
133
|
status: PatientStatus;
|
|
134
|
+
source_code?: string | null;
|
|
135
|
+
source_name?: string | null;
|
|
136
|
+
sourceRef?: FirestoreDocumentReference;
|
|
133
137
|
address: IAddress;
|
|
134
138
|
contact: IContact;
|
|
135
139
|
//informações médicas
|