evo360-types 1.2.3 → 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 +49 -11
- package/dist/apps/evo-med/dic/zod-schemas.js +45 -5
- package/dist/apps/evo-med/dic/zod-schemas.ts +45 -4
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +12 -12
- package/dist/apps/evo-med/people/zod-schemas.d.ts +54 -51
- 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 +16 -10
- package/dist/types/evo-med/dic/index.ts +17 -10
- 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
|
@@ -469,7 +469,7 @@ export declare const zAppointmentStatusSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
469
469
|
}, {
|
|
470
470
|
code: z.ZodString;
|
|
471
471
|
name: z.ZodString;
|
|
472
|
-
type: z.ZodEnum<["rs", "cf", "ci", "co", "cx", "ns"]
|
|
472
|
+
type: z.ZodDefault<z.ZodEnum<["rs", "cf", "ci", "co", "cx", "ns"]>>;
|
|
473
473
|
}>, "strip", z.ZodTypeAny, {
|
|
474
474
|
code: string;
|
|
475
475
|
name: string;
|
|
@@ -486,12 +486,12 @@ export declare const zAppointmentStatusSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
486
486
|
name: string;
|
|
487
487
|
id: string;
|
|
488
488
|
tenant: string;
|
|
489
|
-
type: "rs" | "cf" | "ci" | "co" | "cx" | "ns";
|
|
490
489
|
ref?: any;
|
|
491
490
|
model_ver?: number | undefined;
|
|
492
491
|
created_at?: Date | null | undefined;
|
|
493
492
|
updated_at?: Date | null | undefined;
|
|
494
493
|
deleted_at?: Date | null | undefined;
|
|
494
|
+
type?: "rs" | "cf" | "ci" | "co" | "cx" | "ns" | undefined;
|
|
495
495
|
}>;
|
|
496
496
|
export declare const zMedicationSchema: z.ZodObject<{
|
|
497
497
|
name: z.ZodString;
|
|
@@ -517,9 +517,9 @@ export declare const zChronicConditionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
517
517
|
}, {
|
|
518
518
|
code: z.ZodString;
|
|
519
519
|
name: z.ZodString;
|
|
520
|
-
diagnosis_date: z.ZodOptional<z.ZodString
|
|
520
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
521
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
522
|
-
controlled: z.ZodOptional<z.ZodBoolean
|
|
522
|
+
controlled: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
523
523
|
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
524
524
|
name: z.ZodString;
|
|
525
525
|
dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -541,13 +541,13 @@ export declare const zChronicConditionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
541
541
|
tenant: string;
|
|
542
542
|
model_ver: number;
|
|
543
543
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
544
|
+
controlled: boolean | null;
|
|
544
545
|
notes: string | null;
|
|
545
546
|
ref?: any;
|
|
546
547
|
created_at?: Date | null | undefined;
|
|
547
548
|
updated_at?: Date | null | undefined;
|
|
548
549
|
deleted_at?: Date | null | undefined;
|
|
549
|
-
diagnosis_date?: string | undefined;
|
|
550
|
-
controlled?: boolean | undefined;
|
|
550
|
+
diagnosis_date?: string | null | undefined;
|
|
551
551
|
medications?: {
|
|
552
552
|
name: string;
|
|
553
553
|
dosage: string | null;
|
|
@@ -563,9 +563,9 @@ export declare const zChronicConditionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
563
563
|
created_at?: Date | null | undefined;
|
|
564
564
|
updated_at?: Date | null | undefined;
|
|
565
565
|
deleted_at?: Date | null | undefined;
|
|
566
|
-
diagnosis_date?: string | undefined;
|
|
566
|
+
diagnosis_date?: string | null | undefined;
|
|
567
567
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
568
|
-
controlled?: boolean | undefined;
|
|
568
|
+
controlled?: boolean | null | undefined;
|
|
569
569
|
medications?: {
|
|
570
570
|
name: string;
|
|
571
571
|
dosage?: string | null | undefined;
|
|
@@ -584,7 +584,7 @@ export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
584
584
|
}, {
|
|
585
585
|
code: z.ZodString;
|
|
586
586
|
name: z.ZodString;
|
|
587
|
-
kind: z.ZodEnum<["Food", "Drug", "Insect", "Other"]
|
|
587
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
588
588
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
589
589
|
}>, "strip", z.ZodTypeAny, {
|
|
590
590
|
code: string;
|
|
@@ -593,7 +593,7 @@ export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
593
593
|
tenant: string;
|
|
594
594
|
model_ver: number;
|
|
595
595
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
596
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
596
|
+
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
597
597
|
ref?: any;
|
|
598
598
|
created_at?: Date | null | undefined;
|
|
599
599
|
updated_at?: Date | null | undefined;
|
|
@@ -603,11 +603,49 @@ export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
603
603
|
name: string;
|
|
604
604
|
id: string;
|
|
605
605
|
tenant: string;
|
|
606
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
607
606
|
ref?: any;
|
|
608
607
|
model_ver?: number | undefined;
|
|
609
608
|
created_at?: Date | null | undefined;
|
|
610
609
|
updated_at?: Date | null | undefined;
|
|
611
610
|
deleted_at?: Date | null | undefined;
|
|
612
611
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
612
|
+
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
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;
|
|
613
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
|
|
@@ -55,7 +55,7 @@ exports.zAppointmentRequestTypeSchema = zod_schemas_1.zFireDocSchema
|
|
|
55
55
|
exports.zAppointmentStatusSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
56
56
|
code: zod_1.z.string().min(1).max(10),
|
|
57
57
|
name: zod_1.z.string().min(1).max(255),
|
|
58
|
-
type: zod_1.z.enum(["rs", "cf", "ci", "co", "cx", "ns"]),
|
|
58
|
+
type: zod_1.z.enum(["rs", "cf", "ci", "co", "cx", "ns"]).default("rs"),
|
|
59
59
|
});
|
|
60
60
|
exports.zMedicationSchema = zod_1.z.object({
|
|
61
61
|
name: zod_1.z.string().min(1).max(255),
|
|
@@ -65,21 +65,61 @@ exports.zMedicationSchema = zod_1.z.object({
|
|
|
65
65
|
exports.zChronicConditionSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
66
66
|
code: zod_1.z.string().min(1).max(10),
|
|
67
67
|
name: zod_1.z.string().min(1).max(255),
|
|
68
|
-
diagnosis_date: zod_1.z.string().optional(),
|
|
68
|
+
diagnosis_date: zod_1.z.string().nullable().optional(),
|
|
69
69
|
severity: zod_1.z
|
|
70
70
|
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
71
71
|
.optional()
|
|
72
72
|
.default("Unknown"),
|
|
73
|
-
controlled: zod_1.z.boolean().optional(),
|
|
73
|
+
controlled: zod_1.z.boolean().nullable().optional().default(false),
|
|
74
74
|
medications: zod_1.z.array(exports.zMedicationSchema).nullable().optional(),
|
|
75
75
|
notes: zod_1.z.string().max(1024).nullable().optional().default(""),
|
|
76
76
|
});
|
|
77
77
|
exports.zAllergySchema = zod_schemas_1.zFireDocSchema.extend({
|
|
78
78
|
code: zod_1.z.string().min(1).max(10),
|
|
79
79
|
name: zod_1.z.string().min(1).max(255),
|
|
80
|
-
kind: zod_1.z
|
|
80
|
+
kind: zod_1.z
|
|
81
|
+
.enum(["Food", "Drug", "Insect", "Other"])
|
|
82
|
+
.nullable()
|
|
83
|
+
.optional()
|
|
84
|
+
.default("Other"),
|
|
81
85
|
severity: zod_1.z
|
|
82
86
|
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
83
87
|
.optional()
|
|
84
88
|
.default("Unknown"),
|
|
85
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
|
+
});
|
|
@@ -59,7 +59,7 @@ export const zAppointmentRequestTypeSchema = zFireDocSchema
|
|
|
59
59
|
export const zAppointmentStatusSchema = zFireDocSchema.extend({
|
|
60
60
|
code: z.string().min(1).max(10),
|
|
61
61
|
name: z.string().min(1).max(255),
|
|
62
|
-
type: z.enum(["rs", "cf", "ci", "co", "cx", "ns"]),
|
|
62
|
+
type: z.enum(["rs", "cf", "ci", "co", "cx", "ns"]).default("rs"),
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
export const zMedicationSchema = z.object({
|
|
@@ -71,12 +71,12 @@ export const zMedicationSchema = z.object({
|
|
|
71
71
|
export const zChronicConditionSchema = zFireDocSchema.extend({
|
|
72
72
|
code: z.string().min(1).max(10),
|
|
73
73
|
name: z.string().min(1).max(255),
|
|
74
|
-
diagnosis_date: z.string().optional(),
|
|
74
|
+
diagnosis_date: z.string().nullable().optional(),
|
|
75
75
|
severity: z
|
|
76
76
|
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
77
77
|
.optional()
|
|
78
78
|
.default("Unknown"),
|
|
79
|
-
controlled: z.boolean().optional(),
|
|
79
|
+
controlled: z.boolean().nullable().optional().default(false),
|
|
80
80
|
medications: z.array(zMedicationSchema).nullable().optional(),
|
|
81
81
|
notes: z.string().max(1024).nullable().optional().default(""),
|
|
82
82
|
});
|
|
@@ -84,9 +84,50 @@ export const zChronicConditionSchema = zFireDocSchema.extend({
|
|
|
84
84
|
export const zAllergySchema = zFireDocSchema.extend({
|
|
85
85
|
code: z.string().min(1).max(10),
|
|
86
86
|
name: z.string().min(1).max(255),
|
|
87
|
-
kind: z
|
|
87
|
+
kind: z
|
|
88
|
+
.enum(["Food", "Drug", "Insect", "Other"])
|
|
89
|
+
.nullable()
|
|
90
|
+
.optional()
|
|
91
|
+
.default("Other"),
|
|
88
92
|
severity: z
|
|
89
93
|
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
90
94
|
.optional()
|
|
91
95
|
.default("Unknown"),
|
|
92
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<{
|
|
@@ -398,7 +401,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
398
401
|
}, {
|
|
399
402
|
code: z.ZodString;
|
|
400
403
|
name: z.ZodString;
|
|
401
|
-
kind: z.ZodEnum<["Food", "Drug", "Insect", "Other"]
|
|
404
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
402
405
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
403
406
|
}>, "strip", z.ZodTypeAny, {
|
|
404
407
|
code: string;
|
|
@@ -407,7 +410,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
407
410
|
tenant: string;
|
|
408
411
|
model_ver: number;
|
|
409
412
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
410
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
413
|
+
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
411
414
|
ref?: any;
|
|
412
415
|
created_at?: Date | null | undefined;
|
|
413
416
|
updated_at?: Date | null | undefined;
|
|
@@ -417,13 +420,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
417
420
|
name: string;
|
|
418
421
|
id: string;
|
|
419
422
|
tenant: string;
|
|
420
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
421
423
|
ref?: any;
|
|
422
424
|
model_ver?: number | undefined;
|
|
423
425
|
created_at?: Date | null | undefined;
|
|
424
426
|
updated_at?: Date | null | undefined;
|
|
425
427
|
deleted_at?: Date | null | undefined;
|
|
426
428
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
429
|
+
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
427
430
|
}>, "many">>;
|
|
428
431
|
chronic_conditions: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
429
432
|
id: z.ZodString;
|
|
@@ -436,9 +439,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
436
439
|
}, {
|
|
437
440
|
code: z.ZodString;
|
|
438
441
|
name: z.ZodString;
|
|
439
|
-
diagnosis_date: z.ZodOptional<z.ZodString
|
|
442
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
443
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
441
|
-
controlled: z.ZodOptional<z.ZodBoolean
|
|
444
|
+
controlled: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
442
445
|
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
443
446
|
name: z.ZodString;
|
|
444
447
|
dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -460,13 +463,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
460
463
|
tenant: string;
|
|
461
464
|
model_ver: number;
|
|
462
465
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
466
|
+
controlled: boolean | null;
|
|
463
467
|
notes: string | null;
|
|
464
468
|
ref?: any;
|
|
465
469
|
created_at?: Date | null | undefined;
|
|
466
470
|
updated_at?: Date | null | undefined;
|
|
467
471
|
deleted_at?: Date | null | undefined;
|
|
468
|
-
diagnosis_date?: string | undefined;
|
|
469
|
-
controlled?: boolean | undefined;
|
|
472
|
+
diagnosis_date?: string | null | undefined;
|
|
470
473
|
medications?: {
|
|
471
474
|
name: string;
|
|
472
475
|
dosage: string | null;
|
|
@@ -482,9 +485,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
482
485
|
created_at?: Date | null | undefined;
|
|
483
486
|
updated_at?: Date | null | undefined;
|
|
484
487
|
deleted_at?: Date | null | undefined;
|
|
485
|
-
diagnosis_date?: string | undefined;
|
|
488
|
+
diagnosis_date?: string | null | undefined;
|
|
486
489
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
487
|
-
controlled?: boolean | undefined;
|
|
490
|
+
controlled?: boolean | null | undefined;
|
|
488
491
|
medications?: {
|
|
489
492
|
name: string;
|
|
490
493
|
dosage?: string | null | undefined;
|
|
@@ -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<{
|
|
@@ -583,7 +586,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
583
586
|
}, {
|
|
584
587
|
code: z.ZodString;
|
|
585
588
|
name: z.ZodString;
|
|
586
|
-
kind: z.ZodEnum<["Food", "Drug", "Insect", "Other"]
|
|
589
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
587
590
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
588
591
|
}>, "strip", z.ZodTypeAny, {
|
|
589
592
|
code: string;
|
|
@@ -592,7 +595,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
592
595
|
tenant: string;
|
|
593
596
|
model_ver: number;
|
|
594
597
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
595
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
598
|
+
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
596
599
|
ref?: any;
|
|
597
600
|
created_at?: Date | null | undefined;
|
|
598
601
|
updated_at?: Date | null | undefined;
|
|
@@ -602,13 +605,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
602
605
|
name: string;
|
|
603
606
|
id: string;
|
|
604
607
|
tenant: string;
|
|
605
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
606
608
|
ref?: any;
|
|
607
609
|
model_ver?: number | undefined;
|
|
608
610
|
created_at?: Date | null | undefined;
|
|
609
611
|
updated_at?: Date | null | undefined;
|
|
610
612
|
deleted_at?: Date | null | undefined;
|
|
611
613
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
614
|
+
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
612
615
|
}>, "many">>;
|
|
613
616
|
chronic_conditions: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
614
617
|
id: z.ZodString;
|
|
@@ -621,9 +624,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
621
624
|
}, {
|
|
622
625
|
code: z.ZodString;
|
|
623
626
|
name: z.ZodString;
|
|
624
|
-
diagnosis_date: z.ZodOptional<z.ZodString
|
|
627
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
625
628
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
626
|
-
controlled: z.ZodOptional<z.ZodBoolean
|
|
629
|
+
controlled: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
627
630
|
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
628
631
|
name: z.ZodString;
|
|
629
632
|
dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -645,13 +648,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
645
648
|
tenant: string;
|
|
646
649
|
model_ver: number;
|
|
647
650
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
651
|
+
controlled: boolean | null;
|
|
648
652
|
notes: string | null;
|
|
649
653
|
ref?: any;
|
|
650
654
|
created_at?: Date | null | undefined;
|
|
651
655
|
updated_at?: Date | null | undefined;
|
|
652
656
|
deleted_at?: Date | null | undefined;
|
|
653
|
-
diagnosis_date?: string | undefined;
|
|
654
|
-
controlled?: boolean | undefined;
|
|
657
|
+
diagnosis_date?: string | null | undefined;
|
|
655
658
|
medications?: {
|
|
656
659
|
name: string;
|
|
657
660
|
dosage: string | null;
|
|
@@ -667,9 +670,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
667
670
|
created_at?: Date | null | undefined;
|
|
668
671
|
updated_at?: Date | null | undefined;
|
|
669
672
|
deleted_at?: Date | null | undefined;
|
|
670
|
-
diagnosis_date?: string | undefined;
|
|
673
|
+
diagnosis_date?: string | null | undefined;
|
|
671
674
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
672
|
-
controlled?: boolean | undefined;
|
|
675
|
+
controlled?: boolean | null | undefined;
|
|
673
676
|
medications?: {
|
|
674
677
|
name: string;
|
|
675
678
|
dosage?: string | null | undefined;
|
|
@@ -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<{
|
|
@@ -768,7 +771,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
768
771
|
}, {
|
|
769
772
|
code: z.ZodString;
|
|
770
773
|
name: z.ZodString;
|
|
771
|
-
kind: z.ZodEnum<["Food", "Drug", "Insect", "Other"]
|
|
774
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
772
775
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
773
776
|
}>, "strip", z.ZodTypeAny, {
|
|
774
777
|
code: string;
|
|
@@ -777,7 +780,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
777
780
|
tenant: string;
|
|
778
781
|
model_ver: number;
|
|
779
782
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
780
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
783
|
+
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
781
784
|
ref?: any;
|
|
782
785
|
created_at?: Date | null | undefined;
|
|
783
786
|
updated_at?: Date | null | undefined;
|
|
@@ -787,13 +790,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
787
790
|
name: string;
|
|
788
791
|
id: string;
|
|
789
792
|
tenant: string;
|
|
790
|
-
kind: "Food" | "Drug" | "Insect" | "Other";
|
|
791
793
|
ref?: any;
|
|
792
794
|
model_ver?: number | undefined;
|
|
793
795
|
created_at?: Date | null | undefined;
|
|
794
796
|
updated_at?: Date | null | undefined;
|
|
795
797
|
deleted_at?: Date | null | undefined;
|
|
796
798
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
799
|
+
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
797
800
|
}>, "many">>;
|
|
798
801
|
chronic_conditions: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
799
802
|
id: z.ZodString;
|
|
@@ -806,9 +809,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
806
809
|
}, {
|
|
807
810
|
code: z.ZodString;
|
|
808
811
|
name: z.ZodString;
|
|
809
|
-
diagnosis_date: z.ZodOptional<z.ZodString
|
|
812
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
810
813
|
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
811
|
-
controlled: z.ZodOptional<z.ZodBoolean
|
|
814
|
+
controlled: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
|
|
812
815
|
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
813
816
|
name: z.ZodString;
|
|
814
817
|
dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -830,13 +833,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
830
833
|
tenant: string;
|
|
831
834
|
model_ver: number;
|
|
832
835
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
836
|
+
controlled: boolean | null;
|
|
833
837
|
notes: string | null;
|
|
834
838
|
ref?: any;
|
|
835
839
|
created_at?: Date | null | undefined;
|
|
836
840
|
updated_at?: Date | null | undefined;
|
|
837
841
|
deleted_at?: Date | null | undefined;
|
|
838
|
-
diagnosis_date?: string | undefined;
|
|
839
|
-
controlled?: boolean | undefined;
|
|
842
|
+
diagnosis_date?: string | null | undefined;
|
|
840
843
|
medications?: {
|
|
841
844
|
name: string;
|
|
842
845
|
dosage: string | null;
|
|
@@ -852,9 +855,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
852
855
|
created_at?: Date | null | undefined;
|
|
853
856
|
updated_at?: Date | null | undefined;
|
|
854
857
|
deleted_at?: Date | null | undefined;
|
|
855
|
-
diagnosis_date?: string | undefined;
|
|
858
|
+
diagnosis_date?: string | null | undefined;
|
|
856
859
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
857
|
-
controlled?: boolean | undefined;
|
|
860
|
+
controlled?: boolean | null | undefined;
|
|
858
861
|
medications?: {
|
|
859
862
|
name: string;
|
|
860
863
|
dosage?: string | null | undefined;
|
|
@@ -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<{
|
|
@@ -32,9 +32,9 @@ export interface ISpecialty extends IFireDoc {
|
|
|
32
32
|
code: string;
|
|
33
33
|
name: string;
|
|
34
34
|
tiss?: string;
|
|
35
|
-
type_code
|
|
36
|
-
type_name
|
|
37
|
-
typeRef
|
|
35
|
+
type_code?: string;
|
|
36
|
+
type_name?: string;
|
|
37
|
+
typeRef?: FirestoreDocumentReference;
|
|
38
38
|
tags?: ITag[] | null;
|
|
39
39
|
[key: string]: unknown;
|
|
40
40
|
}
|
|
@@ -47,9 +47,9 @@ export interface IDistChannelType extends IFireDoc {
|
|
|
47
47
|
export interface IDistChannel extends IFireDoc {
|
|
48
48
|
code: string;
|
|
49
49
|
name: string;
|
|
50
|
-
type_code
|
|
51
|
-
type_name
|
|
52
|
-
typeRef
|
|
50
|
+
type_code?: string;
|
|
51
|
+
type_name?: string;
|
|
52
|
+
typeRef?: FirestoreDocumentReference;
|
|
53
53
|
tags?: ITag[] | null;
|
|
54
54
|
[key: string]: unknown;
|
|
55
55
|
}
|
|
@@ -87,8 +87,8 @@ export interface IAppointmentStatus extends IFireDoc {
|
|
|
87
87
|
}
|
|
88
88
|
export interface IMedication {
|
|
89
89
|
name: string;
|
|
90
|
-
dosage
|
|
91
|
-
frequency
|
|
90
|
+
dosage?: string;
|
|
91
|
+
frequency?: string;
|
|
92
92
|
}
|
|
93
93
|
export interface IChronicCondition extends IFireDoc {
|
|
94
94
|
code: string;
|
|
@@ -102,6 +102,12 @@ export interface IChronicCondition extends IFireDoc {
|
|
|
102
102
|
export interface IAllergy extends IFireDoc {
|
|
103
103
|
code: string;
|
|
104
104
|
name: string;
|
|
105
|
-
kind
|
|
106
|
-
severity
|
|
105
|
+
kind?: "Food" | "Drug" | "Insect" | "Other";
|
|
106
|
+
severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
107
|
+
}
|
|
108
|
+
export interface ICouncil extends IFireDoc {
|
|
109
|
+
name: string;
|
|
110
|
+
acronym: string;
|
|
111
|
+
state: string;
|
|
112
|
+
country: string;
|
|
107
113
|
}
|
|
@@ -60,9 +60,9 @@ export interface ISpecialty extends IFireDoc {
|
|
|
60
60
|
code: string;
|
|
61
61
|
name: string;
|
|
62
62
|
tiss?: string;
|
|
63
|
-
type_code
|
|
64
|
-
type_name
|
|
65
|
-
typeRef
|
|
63
|
+
type_code?: string;
|
|
64
|
+
type_name?: string;
|
|
65
|
+
typeRef?: FirestoreDocumentReference;
|
|
66
66
|
tags?: ITag[] | null;
|
|
67
67
|
[key: string]: unknown; // index signature
|
|
68
68
|
}
|
|
@@ -77,9 +77,9 @@ export interface IDistChannelType extends IFireDoc {
|
|
|
77
77
|
export interface IDistChannel extends IFireDoc {
|
|
78
78
|
code: string;
|
|
79
79
|
name: string;
|
|
80
|
-
type_code
|
|
81
|
-
type_name
|
|
82
|
-
typeRef
|
|
80
|
+
type_code?: string;
|
|
81
|
+
type_name?: string;
|
|
82
|
+
typeRef?: FirestoreDocumentReference;
|
|
83
83
|
tags?: ITag[] | null;
|
|
84
84
|
[key: string]: unknown; // index signature
|
|
85
85
|
}
|
|
@@ -123,8 +123,8 @@ export interface IAppointmentStatus extends IFireDoc {
|
|
|
123
123
|
|
|
124
124
|
export interface IMedication {
|
|
125
125
|
name: string;
|
|
126
|
-
dosage
|
|
127
|
-
frequency
|
|
126
|
+
dosage?: string;
|
|
127
|
+
frequency?: string;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
export interface IChronicCondition extends IFireDoc {
|
|
@@ -140,6 +140,13 @@ export interface IChronicCondition extends IFireDoc {
|
|
|
140
140
|
export interface IAllergy extends IFireDoc {
|
|
141
141
|
code: string;
|
|
142
142
|
name: string;
|
|
143
|
-
kind
|
|
144
|
-
severity
|
|
143
|
+
kind?: "Food" | "Drug" | "Insect" | "Other";
|
|
144
|
+
severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
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")
|
|
145
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
|