evo360-types 1.2.24 → 1.2.26
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 +4 -35
- package/dist/apps/evo-med/dic/zod-schemas.js +50 -54
- package/dist/apps/evo-med/dic/zod-schemas.ts +53 -53
- package/dist/apps/evo-med/people/zod-schemas.d.ts +124 -171
- package/dist/apps/evo-med/people/zod-schemas.js +24 -4
- package/dist/apps/evo-med/people/zod-schemas.ts +32 -4
- package/dist/types/evo-med/dic/index.d.ts +0 -1
- package/dist/types/evo-med/dic/index.ts +0 -1
- package/dist/types/evo-med/people/index.d.ts +26 -2
- package/dist/types/evo-med/people/index.js +8 -1
- package/dist/types/evo-med/people/index.ts +29 -2
- package/package.json +1 -1
|
@@ -492,6 +492,7 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
|
|
|
492
492
|
color?: string | undefined;
|
|
493
493
|
}>, "many">>>;
|
|
494
494
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
495
|
+
export declare const zAppointmentStatusTypeSchema: z.ZodEnum<["rs", "cf", "ci", "co", "cx", "ns"]>;
|
|
495
496
|
export declare const zAppointmentStatusSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
496
497
|
id: z.ZodString;
|
|
497
498
|
ref: z.ZodAny;
|
|
@@ -540,6 +541,7 @@ export declare const zMedicationSchema: z.ZodObject<{
|
|
|
540
541
|
dosage?: string | null | undefined;
|
|
541
542
|
frequency?: string | null | undefined;
|
|
542
543
|
}>;
|
|
544
|
+
export declare const zSeveritySchema: z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>;
|
|
543
545
|
export declare const zChronicConditionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
544
546
|
id: z.ZodString;
|
|
545
547
|
ref: z.ZodAny;
|
|
@@ -551,42 +553,16 @@ export declare const zChronicConditionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
551
553
|
}, {
|
|
552
554
|
code: z.ZodString;
|
|
553
555
|
name: z.ZodString;
|
|
554
|
-
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
555
|
-
severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
|
|
556
|
-
controlled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
557
|
-
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
558
|
-
name: z.ZodString;
|
|
559
|
-
dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
560
|
-
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
561
|
-
}, "strip", z.ZodTypeAny, {
|
|
562
|
-
name: string;
|
|
563
|
-
dosage: string | null;
|
|
564
|
-
frequency: string | null;
|
|
565
|
-
}, {
|
|
566
|
-
name: string;
|
|
567
|
-
dosage?: string | null | undefined;
|
|
568
|
-
frequency?: string | null | undefined;
|
|
569
|
-
}>, "many">>>;
|
|
570
|
-
notes: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
571
556
|
}>, "strip", z.ZodTypeAny, {
|
|
572
557
|
code: string;
|
|
573
558
|
name: string;
|
|
574
559
|
id: string;
|
|
575
560
|
tenant: string;
|
|
576
561
|
model_ver: number;
|
|
577
|
-
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
578
|
-
controlled: boolean;
|
|
579
|
-
notes: string | null;
|
|
580
562
|
ref?: any;
|
|
581
563
|
created_at?: Date | null | undefined;
|
|
582
564
|
updated_at?: Date | null | undefined;
|
|
583
565
|
deleted_at?: Date | null | undefined;
|
|
584
|
-
diagnosis_date?: string | null | undefined;
|
|
585
|
-
medications?: {
|
|
586
|
-
name: string;
|
|
587
|
-
dosage: string | null;
|
|
588
|
-
frequency: string | null;
|
|
589
|
-
}[] | null | undefined;
|
|
590
566
|
}, {
|
|
591
567
|
code: string;
|
|
592
568
|
name: string;
|
|
@@ -597,16 +573,8 @@ export declare const zChronicConditionSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
597
573
|
created_at?: Date | null | undefined;
|
|
598
574
|
updated_at?: Date | null | undefined;
|
|
599
575
|
deleted_at?: Date | null | undefined;
|
|
600
|
-
diagnosis_date?: string | null | undefined;
|
|
601
|
-
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
602
|
-
controlled?: boolean | undefined;
|
|
603
|
-
medications?: {
|
|
604
|
-
name: string;
|
|
605
|
-
dosage?: string | null | undefined;
|
|
606
|
-
frequency?: string | null | undefined;
|
|
607
|
-
}[] | null | undefined;
|
|
608
|
-
notes?: string | null | undefined;
|
|
609
576
|
}>;
|
|
577
|
+
export declare const zAllergyKindSchema: z.ZodEnum<["Food", "Drug", "Insect", "Other"]>;
|
|
610
578
|
export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
611
579
|
id: z.ZodString;
|
|
612
580
|
ref: z.ZodAny;
|
|
@@ -645,6 +613,7 @@ export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
645
613
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
646
614
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
647
615
|
}>;
|
|
616
|
+
export declare const zMedicalCouncilUFSchema: 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", "BR"]>;
|
|
648
617
|
export declare const zMedicalCouncilSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
649
618
|
id: z.ZodString;
|
|
650
619
|
ref: z.ZodAny;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zMedicalCouncilSchema = exports.zAllergySchema = exports.zChronicConditionSchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = exports.zSpecialtySchema = exports.zSpecialtyTypeSchema = void 0;
|
|
3
|
+
exports.zMedicalCouncilSchema = exports.zMedicalCouncilUFSchema = exports.zAllergySchema = exports.zAllergyKindSchema = exports.zChronicConditionSchema = exports.zSeveritySchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentStatusTypeSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = exports.zSpecialtySchema = exports.zSpecialtyTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
6
|
exports.zSpecialtyTypeSchema = zod_schemas_1.zFireDocSchema
|
|
@@ -58,80 +58,76 @@ exports.zAppointmentRequestTypeSchema = zod_schemas_1.zFireDocSchema
|
|
|
58
58
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
59
59
|
})
|
|
60
60
|
.passthrough();
|
|
61
|
+
exports.zAppointmentStatusTypeSchema = zod_1.z.enum([
|
|
62
|
+
"rs",
|
|
63
|
+
"cf",
|
|
64
|
+
"ci",
|
|
65
|
+
"co",
|
|
66
|
+
"cx",
|
|
67
|
+
"ns",
|
|
68
|
+
]);
|
|
61
69
|
exports.zAppointmentStatusSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
62
70
|
code: zod_1.z.string().min(1).max(10),
|
|
63
71
|
name: zod_1.z.string().min(1).max(255),
|
|
64
|
-
type:
|
|
72
|
+
type: exports.zAppointmentStatusTypeSchema.default("rs"),
|
|
65
73
|
});
|
|
66
74
|
exports.zMedicationSchema = zod_1.z.object({
|
|
67
75
|
name: zod_1.z.string().min(1).max(255),
|
|
68
76
|
dosage: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
69
77
|
frequency: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
70
78
|
});
|
|
79
|
+
exports.zSeveritySchema = zod_1.z.enum([
|
|
80
|
+
"Mild",
|
|
81
|
+
"Moderate",
|
|
82
|
+
"Severe",
|
|
83
|
+
"Unknown",
|
|
84
|
+
]);
|
|
71
85
|
exports.zChronicConditionSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
72
86
|
code: zod_1.z.string().min(1).max(10),
|
|
73
87
|
name: zod_1.z.string().min(1).max(255),
|
|
74
|
-
diagnosis_date: zod_1.z.string().nullable().optional(),
|
|
75
|
-
severity: zod_1.z
|
|
76
|
-
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
77
|
-
.optional()
|
|
78
|
-
.default("Unknown"),
|
|
79
|
-
controlled: zod_1.z.boolean().optional().default(false),
|
|
80
|
-
medications: zod_1.z.array(exports.zMedicationSchema).nullable().optional(),
|
|
81
|
-
notes: zod_1.z.string().max(1024).nullable().optional().default(""),
|
|
82
88
|
});
|
|
89
|
+
exports.zAllergyKindSchema = zod_1.z.enum(["Food", "Drug", "Insect", "Other"]);
|
|
83
90
|
exports.zAllergySchema = zod_schemas_1.zFireDocSchema.extend({
|
|
84
91
|
code: zod_1.z.string().min(1).max(10),
|
|
85
92
|
name: zod_1.z.string().min(1).max(255),
|
|
86
|
-
kind:
|
|
87
|
-
|
|
88
|
-
.nullable()
|
|
89
|
-
.optional()
|
|
90
|
-
.default("Other"),
|
|
91
|
-
severity: zod_1.z
|
|
92
|
-
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
93
|
-
.nullable()
|
|
94
|
-
.optional()
|
|
95
|
-
.default("Unknown"),
|
|
93
|
+
kind: exports.zAllergyKindSchema.nullable().optional().default("Other"),
|
|
94
|
+
severity: exports.zSeveritySchema.nullable().optional().default("Unknown"),
|
|
96
95
|
});
|
|
96
|
+
exports.zMedicalCouncilUFSchema = zod_1.z.enum([
|
|
97
|
+
"AC",
|
|
98
|
+
"AL",
|
|
99
|
+
"AP",
|
|
100
|
+
"AM",
|
|
101
|
+
"BA",
|
|
102
|
+
"CE",
|
|
103
|
+
"ES",
|
|
104
|
+
"GO",
|
|
105
|
+
"MA",
|
|
106
|
+
"MT",
|
|
107
|
+
"MS",
|
|
108
|
+
"MG",
|
|
109
|
+
"PA",
|
|
110
|
+
"PB",
|
|
111
|
+
"PR",
|
|
112
|
+
"PE",
|
|
113
|
+
"PI",
|
|
114
|
+
"RJ",
|
|
115
|
+
"RN",
|
|
116
|
+
"RS",
|
|
117
|
+
"RO",
|
|
118
|
+
"RR",
|
|
119
|
+
"SC",
|
|
120
|
+
"SP",
|
|
121
|
+
"SE",
|
|
122
|
+
"TO",
|
|
123
|
+
"DF",
|
|
124
|
+
"BR", //nacional
|
|
125
|
+
]);
|
|
97
126
|
exports.zMedicalCouncilSchema = zod_schemas_1.zFireDocSchema
|
|
98
127
|
.extend({
|
|
99
128
|
name: zod_1.z.string().min(1).max(255),
|
|
100
129
|
acronym: zod_1.z.string().min(1).max(60),
|
|
101
|
-
uf:
|
|
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
|
-
"BR", //nacional
|
|
131
|
-
])
|
|
132
|
-
.nullable()
|
|
133
|
-
.optional()
|
|
134
|
-
.default("SP"),
|
|
130
|
+
uf: exports.zMedicalCouncilUFSchema.nullable().optional().default("SP"),
|
|
135
131
|
country: zod_1.z.string().min(1).max(255).nullable().optional().default("Brasil"),
|
|
136
132
|
})
|
|
137
133
|
.passthrough();
|
|
@@ -63,10 +63,19 @@ export const zAppointmentRequestTypeSchema = zFireDocSchema
|
|
|
63
63
|
})
|
|
64
64
|
.passthrough();
|
|
65
65
|
|
|
66
|
+
export const zAppointmentStatusTypeSchema = z.enum([
|
|
67
|
+
"rs",
|
|
68
|
+
"cf",
|
|
69
|
+
"ci",
|
|
70
|
+
"co",
|
|
71
|
+
"cx",
|
|
72
|
+
"ns",
|
|
73
|
+
]);
|
|
74
|
+
|
|
66
75
|
export const zAppointmentStatusSchema = zFireDocSchema.extend({
|
|
67
76
|
code: z.string().min(1).max(10),
|
|
68
77
|
name: z.string().min(1).max(255),
|
|
69
|
-
type:
|
|
78
|
+
type: zAppointmentStatusTypeSchema.default("rs"),
|
|
70
79
|
});
|
|
71
80
|
|
|
72
81
|
export const zMedicationSchema = z.object({
|
|
@@ -75,72 +84,63 @@ export const zMedicationSchema = z.object({
|
|
|
75
84
|
frequency: z.string().max(255).nullable().optional().default(""),
|
|
76
85
|
});
|
|
77
86
|
|
|
87
|
+
export const zSeveritySchema = z.enum([
|
|
88
|
+
"Mild",
|
|
89
|
+
"Moderate",
|
|
90
|
+
"Severe",
|
|
91
|
+
"Unknown",
|
|
92
|
+
]);
|
|
93
|
+
|
|
78
94
|
export const zChronicConditionSchema = zFireDocSchema.extend({
|
|
79
95
|
code: z.string().min(1).max(10),
|
|
80
96
|
name: z.string().min(1).max(255),
|
|
81
|
-
diagnosis_date: z.string().nullable().optional(),
|
|
82
|
-
severity: z
|
|
83
|
-
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
84
|
-
.optional()
|
|
85
|
-
.default("Unknown"),
|
|
86
|
-
controlled: z.boolean().optional().default(false),
|
|
87
|
-
medications: z.array(zMedicationSchema).nullable().optional(),
|
|
88
|
-
notes: z.string().max(1024).nullable().optional().default(""),
|
|
89
97
|
});
|
|
90
98
|
|
|
99
|
+
export const zAllergyKindSchema = z.enum(["Food", "Drug", "Insect", "Other"]);
|
|
100
|
+
|
|
91
101
|
export const zAllergySchema = zFireDocSchema.extend({
|
|
92
102
|
code: z.string().min(1).max(10),
|
|
93
103
|
name: z.string().min(1).max(255),
|
|
94
|
-
kind:
|
|
95
|
-
|
|
96
|
-
.nullable()
|
|
97
|
-
.optional()
|
|
98
|
-
.default("Other"),
|
|
99
|
-
severity: z
|
|
100
|
-
.enum(["Mild", "Moderate", "Severe", "Unknown"])
|
|
101
|
-
.nullable()
|
|
102
|
-
.optional()
|
|
103
|
-
.default("Unknown"),
|
|
104
|
+
kind: zAllergyKindSchema.nullable().optional().default("Other"),
|
|
105
|
+
severity: zSeveritySchema.nullable().optional().default("Unknown"),
|
|
104
106
|
});
|
|
105
107
|
|
|
108
|
+
export const zMedicalCouncilUFSchema = z.enum([
|
|
109
|
+
"AC",
|
|
110
|
+
"AL",
|
|
111
|
+
"AP",
|
|
112
|
+
"AM",
|
|
113
|
+
"BA",
|
|
114
|
+
"CE",
|
|
115
|
+
"ES",
|
|
116
|
+
"GO",
|
|
117
|
+
"MA",
|
|
118
|
+
"MT",
|
|
119
|
+
"MS",
|
|
120
|
+
"MG",
|
|
121
|
+
"PA",
|
|
122
|
+
"PB",
|
|
123
|
+
"PR",
|
|
124
|
+
"PE",
|
|
125
|
+
"PI",
|
|
126
|
+
"RJ",
|
|
127
|
+
"RN",
|
|
128
|
+
"RS",
|
|
129
|
+
"RO",
|
|
130
|
+
"RR",
|
|
131
|
+
"SC",
|
|
132
|
+
"SP",
|
|
133
|
+
"SE",
|
|
134
|
+
"TO",
|
|
135
|
+
"DF",
|
|
136
|
+
"BR", //nacional
|
|
137
|
+
]);
|
|
138
|
+
|
|
106
139
|
export const zMedicalCouncilSchema = zFireDocSchema
|
|
107
140
|
.extend({
|
|
108
141
|
name: z.string().min(1).max(255),
|
|
109
142
|
acronym: z.string().min(1).max(60),
|
|
110
|
-
uf:
|
|
111
|
-
.enum([
|
|
112
|
-
"AC",
|
|
113
|
-
"AL",
|
|
114
|
-
"AP",
|
|
115
|
-
"AM",
|
|
116
|
-
"BA",
|
|
117
|
-
"CE",
|
|
118
|
-
"ES",
|
|
119
|
-
"GO",
|
|
120
|
-
"MA",
|
|
121
|
-
"MT",
|
|
122
|
-
"MS",
|
|
123
|
-
"MG",
|
|
124
|
-
"PA",
|
|
125
|
-
"PB",
|
|
126
|
-
"PR",
|
|
127
|
-
"PE",
|
|
128
|
-
"PI",
|
|
129
|
-
"RJ",
|
|
130
|
-
"RN",
|
|
131
|
-
"RS",
|
|
132
|
-
"RO",
|
|
133
|
-
"RR",
|
|
134
|
-
"SC",
|
|
135
|
-
"SP",
|
|
136
|
-
"SE",
|
|
137
|
-
"TO",
|
|
138
|
-
"DF",
|
|
139
|
-
"BR", //nacional
|
|
140
|
-
])
|
|
141
|
-
.nullable()
|
|
142
|
-
.optional()
|
|
143
|
-
.default("SP"),
|
|
143
|
+
uf: zMedicalCouncilUFSchema.nullable().optional().default("SP"),
|
|
144
144
|
country: z.string().min(1).max(255).nullable().optional().default("Brasil"),
|
|
145
145
|
})
|
|
146
146
|
.passthrough();
|
|
@@ -4,12 +4,12 @@ export declare const zProfessionalCouncilSchema: z.ZodObject<{
|
|
|
4
4
|
doc: z.ZodString;
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
acronym: z.ZodString;
|
|
7
|
-
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.
|
|
7
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<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", "BR"]>>>>;
|
|
8
8
|
ref: z.ZodAny;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name: string;
|
|
11
11
|
acronym: string;
|
|
12
|
-
uf:
|
|
12
|
+
uf: "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" | "BR" | null;
|
|
13
13
|
doc: string;
|
|
14
14
|
ref?: any;
|
|
15
15
|
}, {
|
|
@@ -17,7 +17,7 @@ export declare const zProfessionalCouncilSchema: z.ZodObject<{
|
|
|
17
17
|
acronym: string;
|
|
18
18
|
doc: string;
|
|
19
19
|
ref?: any;
|
|
20
|
-
uf?:
|
|
20
|
+
uf?: "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" | "BR" | null | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const zProfessionalSpecialtySchema: z.ZodObject<{
|
|
23
23
|
code: z.ZodString;
|
|
@@ -71,12 +71,12 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
71
71
|
doc: z.ZodString;
|
|
72
72
|
name: z.ZodString;
|
|
73
73
|
acronym: z.ZodString;
|
|
74
|
-
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.
|
|
74
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<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", "BR"]>>>>;
|
|
75
75
|
ref: z.ZodAny;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
name: string;
|
|
78
78
|
acronym: string;
|
|
79
|
-
uf:
|
|
79
|
+
uf: "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" | "BR" | null;
|
|
80
80
|
doc: string;
|
|
81
81
|
ref?: any;
|
|
82
82
|
}, {
|
|
@@ -84,7 +84,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
84
84
|
acronym: string;
|
|
85
85
|
doc: string;
|
|
86
86
|
ref?: any;
|
|
87
|
-
uf?:
|
|
87
|
+
uf?: "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" | "BR" | null | undefined;
|
|
88
88
|
}>, "many">>>;
|
|
89
89
|
specialties: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
90
90
|
code: z.ZodString;
|
|
@@ -199,12 +199,12 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
199
199
|
doc: z.ZodString;
|
|
200
200
|
name: z.ZodString;
|
|
201
201
|
acronym: z.ZodString;
|
|
202
|
-
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.
|
|
202
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<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", "BR"]>>>>;
|
|
203
203
|
ref: z.ZodAny;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
205
|
name: string;
|
|
206
206
|
acronym: string;
|
|
207
|
-
uf:
|
|
207
|
+
uf: "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" | "BR" | null;
|
|
208
208
|
doc: string;
|
|
209
209
|
ref?: any;
|
|
210
210
|
}, {
|
|
@@ -212,7 +212,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
212
212
|
acronym: string;
|
|
213
213
|
doc: string;
|
|
214
214
|
ref?: any;
|
|
215
|
-
uf?:
|
|
215
|
+
uf?: "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" | "BR" | null | undefined;
|
|
216
216
|
}>, "many">>>;
|
|
217
217
|
specialties: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
218
218
|
code: z.ZodString;
|
|
@@ -327,12 +327,12 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
327
327
|
doc: z.ZodString;
|
|
328
328
|
name: z.ZodString;
|
|
329
329
|
acronym: z.ZodString;
|
|
330
|
-
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.
|
|
330
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodNullable<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", "BR"]>>>>;
|
|
331
331
|
ref: z.ZodAny;
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
333
|
name: string;
|
|
334
334
|
acronym: string;
|
|
335
|
-
uf:
|
|
335
|
+
uf: "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" | "BR" | null;
|
|
336
336
|
doc: string;
|
|
337
337
|
ref?: any;
|
|
338
338
|
}, {
|
|
@@ -340,7 +340,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
340
340
|
acronym: string;
|
|
341
341
|
doc: string;
|
|
342
342
|
ref?: any;
|
|
343
|
-
uf?:
|
|
343
|
+
uf?: "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" | "BR" | null | undefined;
|
|
344
344
|
}>, "many">>>;
|
|
345
345
|
specialties: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
346
346
|
code: z.ZodString;
|
|
@@ -432,6 +432,73 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
432
432
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
433
433
|
export declare const zPatientStatusSchema: z.ZodEnum<["active", "inactive", "draft"]>;
|
|
434
434
|
export declare const zBloodTypeSchema: z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>;
|
|
435
|
+
export declare const zPatientAllergySchema: z.ZodObject<{
|
|
436
|
+
code: z.ZodString;
|
|
437
|
+
name: z.ZodString;
|
|
438
|
+
ref: z.ZodAny;
|
|
439
|
+
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
440
|
+
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
441
|
+
}, "strip", z.ZodTypeAny, {
|
|
442
|
+
code: string;
|
|
443
|
+
name: string;
|
|
444
|
+
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
445
|
+
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
446
|
+
ref?: any;
|
|
447
|
+
}, {
|
|
448
|
+
code: string;
|
|
449
|
+
name: string;
|
|
450
|
+
ref?: any;
|
|
451
|
+
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
452
|
+
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
453
|
+
}>;
|
|
454
|
+
export declare const zPatientChronicConditionSchema: z.ZodObject<{
|
|
455
|
+
code: z.ZodString;
|
|
456
|
+
name: z.ZodString;
|
|
457
|
+
ref: z.ZodAny;
|
|
458
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
459
|
+
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
460
|
+
controlled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
461
|
+
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
462
|
+
name: z.ZodString;
|
|
463
|
+
dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
464
|
+
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
|
+
name: string;
|
|
467
|
+
dosage: string | null;
|
|
468
|
+
frequency: string | null;
|
|
469
|
+
}, {
|
|
470
|
+
name: string;
|
|
471
|
+
dosage?: string | null | undefined;
|
|
472
|
+
frequency?: string | null | undefined;
|
|
473
|
+
}>, "many">>>;
|
|
474
|
+
notes: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
475
|
+
}, "strip", z.ZodTypeAny, {
|
|
476
|
+
code: string;
|
|
477
|
+
name: string;
|
|
478
|
+
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
479
|
+
controlled: boolean;
|
|
480
|
+
notes: string;
|
|
481
|
+
ref?: any;
|
|
482
|
+
diagnosis_date?: Date | null | undefined;
|
|
483
|
+
medications?: {
|
|
484
|
+
name: string;
|
|
485
|
+
dosage: string | null;
|
|
486
|
+
frequency: string | null;
|
|
487
|
+
}[] | null | undefined;
|
|
488
|
+
}, {
|
|
489
|
+
code: string;
|
|
490
|
+
name: string;
|
|
491
|
+
ref?: any;
|
|
492
|
+
diagnosis_date?: Date | null | undefined;
|
|
493
|
+
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
494
|
+
controlled?: boolean | undefined;
|
|
495
|
+
medications?: {
|
|
496
|
+
name: string;
|
|
497
|
+
dosage?: string | null | undefined;
|
|
498
|
+
frequency?: string | null | undefined;
|
|
499
|
+
}[] | null | undefined;
|
|
500
|
+
notes?: string | undefined;
|
|
501
|
+
}>;
|
|
435
502
|
export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
436
503
|
id: z.ZodString;
|
|
437
504
|
ref: z.ZodAny;
|
|
@@ -498,57 +565,31 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
498
565
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
499
566
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
500
567
|
blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>>>>;
|
|
501
|
-
allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<
|
|
502
|
-
id: z.ZodString;
|
|
503
|
-
ref: z.ZodAny;
|
|
504
|
-
tenant: z.ZodString;
|
|
505
|
-
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
506
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
507
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
508
|
-
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
509
|
-
}, {
|
|
568
|
+
allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
510
569
|
code: z.ZodString;
|
|
511
570
|
name: z.ZodString;
|
|
571
|
+
ref: z.ZodAny;
|
|
512
572
|
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
513
573
|
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
514
|
-
}
|
|
574
|
+
}, "strip", z.ZodTypeAny, {
|
|
515
575
|
code: string;
|
|
516
576
|
name: string;
|
|
517
|
-
id: string;
|
|
518
|
-
tenant: string;
|
|
519
|
-
model_ver: number;
|
|
520
577
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
521
578
|
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
522
579
|
ref?: any;
|
|
523
|
-
created_at?: Date | null | undefined;
|
|
524
|
-
updated_at?: Date | null | undefined;
|
|
525
|
-
deleted_at?: Date | null | undefined;
|
|
526
580
|
}, {
|
|
527
581
|
code: string;
|
|
528
582
|
name: string;
|
|
529
|
-
id: string;
|
|
530
|
-
tenant: string;
|
|
531
583
|
ref?: any;
|
|
532
|
-
model_ver?: number | undefined;
|
|
533
|
-
created_at?: Date | null | undefined;
|
|
534
|
-
updated_at?: Date | null | undefined;
|
|
535
|
-
deleted_at?: Date | null | undefined;
|
|
536
584
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
537
585
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
538
586
|
}>, "many">>>;
|
|
539
|
-
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<
|
|
540
|
-
id: z.ZodString;
|
|
541
|
-
ref: z.ZodAny;
|
|
542
|
-
tenant: z.ZodString;
|
|
543
|
-
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
544
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
545
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
546
|
-
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
547
|
-
}, {
|
|
587
|
+
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
548
588
|
code: z.ZodString;
|
|
549
589
|
name: z.ZodString;
|
|
550
|
-
|
|
551
|
-
|
|
590
|
+
ref: z.ZodAny;
|
|
591
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
592
|
+
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
552
593
|
controlled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
553
594
|
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
554
595
|
name: z.ZodString;
|
|
@@ -563,21 +604,15 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
563
604
|
dosage?: string | null | undefined;
|
|
564
605
|
frequency?: string | null | undefined;
|
|
565
606
|
}>, "many">>>;
|
|
566
|
-
notes: z.ZodDefault<z.ZodOptional<z.
|
|
567
|
-
}
|
|
607
|
+
notes: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
608
|
+
}, "strip", z.ZodTypeAny, {
|
|
568
609
|
code: string;
|
|
569
610
|
name: string;
|
|
570
|
-
|
|
571
|
-
tenant: string;
|
|
572
|
-
model_ver: number;
|
|
573
|
-
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
611
|
+
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
574
612
|
controlled: boolean;
|
|
575
|
-
notes: string
|
|
613
|
+
notes: string;
|
|
576
614
|
ref?: any;
|
|
577
|
-
|
|
578
|
-
updated_at?: Date | null | undefined;
|
|
579
|
-
deleted_at?: Date | null | undefined;
|
|
580
|
-
diagnosis_date?: string | null | undefined;
|
|
615
|
+
diagnosis_date?: Date | null | undefined;
|
|
581
616
|
medications?: {
|
|
582
617
|
name: string;
|
|
583
618
|
dosage: string | null;
|
|
@@ -586,22 +621,16 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
586
621
|
}, {
|
|
587
622
|
code: string;
|
|
588
623
|
name: string;
|
|
589
|
-
id: string;
|
|
590
|
-
tenant: string;
|
|
591
624
|
ref?: any;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
updated_at?: Date | null | undefined;
|
|
595
|
-
deleted_at?: Date | null | undefined;
|
|
596
|
-
diagnosis_date?: string | null | undefined;
|
|
597
|
-
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
625
|
+
diagnosis_date?: Date | null | undefined;
|
|
626
|
+
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
598
627
|
controlled?: boolean | undefined;
|
|
599
628
|
medications?: {
|
|
600
629
|
name: string;
|
|
601
630
|
dosage?: string | null | undefined;
|
|
602
631
|
frequency?: string | null | undefined;
|
|
603
632
|
}[] | null | undefined;
|
|
604
|
-
notes?: string |
|
|
633
|
+
notes?: string | undefined;
|
|
605
634
|
}>, "many">>>;
|
|
606
635
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
607
636
|
name: z.ZodString;
|
|
@@ -683,57 +712,31 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
683
712
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
684
713
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
685
714
|
blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>>>>;
|
|
686
|
-
allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<
|
|
687
|
-
id: z.ZodString;
|
|
688
|
-
ref: z.ZodAny;
|
|
689
|
-
tenant: z.ZodString;
|
|
690
|
-
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
691
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
692
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
693
|
-
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
694
|
-
}, {
|
|
715
|
+
allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
695
716
|
code: z.ZodString;
|
|
696
717
|
name: z.ZodString;
|
|
718
|
+
ref: z.ZodAny;
|
|
697
719
|
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
698
720
|
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
699
|
-
}
|
|
721
|
+
}, "strip", z.ZodTypeAny, {
|
|
700
722
|
code: string;
|
|
701
723
|
name: string;
|
|
702
|
-
id: string;
|
|
703
|
-
tenant: string;
|
|
704
|
-
model_ver: number;
|
|
705
724
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
706
725
|
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
707
726
|
ref?: any;
|
|
708
|
-
created_at?: Date | null | undefined;
|
|
709
|
-
updated_at?: Date | null | undefined;
|
|
710
|
-
deleted_at?: Date | null | undefined;
|
|
711
727
|
}, {
|
|
712
728
|
code: string;
|
|
713
729
|
name: string;
|
|
714
|
-
id: string;
|
|
715
|
-
tenant: string;
|
|
716
730
|
ref?: any;
|
|
717
|
-
model_ver?: number | undefined;
|
|
718
|
-
created_at?: Date | null | undefined;
|
|
719
|
-
updated_at?: Date | null | undefined;
|
|
720
|
-
deleted_at?: Date | null | undefined;
|
|
721
731
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
722
732
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
723
733
|
}>, "many">>>;
|
|
724
|
-
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<
|
|
725
|
-
id: z.ZodString;
|
|
726
|
-
ref: z.ZodAny;
|
|
727
|
-
tenant: z.ZodString;
|
|
728
|
-
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
729
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
730
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
731
|
-
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
732
|
-
}, {
|
|
734
|
+
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
733
735
|
code: z.ZodString;
|
|
734
736
|
name: z.ZodString;
|
|
735
|
-
|
|
736
|
-
|
|
737
|
+
ref: z.ZodAny;
|
|
738
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
739
|
+
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
737
740
|
controlled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
738
741
|
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
739
742
|
name: z.ZodString;
|
|
@@ -748,21 +751,15 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
748
751
|
dosage?: string | null | undefined;
|
|
749
752
|
frequency?: string | null | undefined;
|
|
750
753
|
}>, "many">>>;
|
|
751
|
-
notes: z.ZodDefault<z.ZodOptional<z.
|
|
752
|
-
}
|
|
754
|
+
notes: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
755
|
+
}, "strip", z.ZodTypeAny, {
|
|
753
756
|
code: string;
|
|
754
757
|
name: string;
|
|
755
|
-
|
|
756
|
-
tenant: string;
|
|
757
|
-
model_ver: number;
|
|
758
|
-
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
758
|
+
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
759
759
|
controlled: boolean;
|
|
760
|
-
notes: string
|
|
760
|
+
notes: string;
|
|
761
761
|
ref?: any;
|
|
762
|
-
|
|
763
|
-
updated_at?: Date | null | undefined;
|
|
764
|
-
deleted_at?: Date | null | undefined;
|
|
765
|
-
diagnosis_date?: string | null | undefined;
|
|
762
|
+
diagnosis_date?: Date | null | undefined;
|
|
766
763
|
medications?: {
|
|
767
764
|
name: string;
|
|
768
765
|
dosage: string | null;
|
|
@@ -771,22 +768,16 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
771
768
|
}, {
|
|
772
769
|
code: string;
|
|
773
770
|
name: string;
|
|
774
|
-
id: string;
|
|
775
|
-
tenant: string;
|
|
776
771
|
ref?: any;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
updated_at?: Date | null | undefined;
|
|
780
|
-
deleted_at?: Date | null | undefined;
|
|
781
|
-
diagnosis_date?: string | null | undefined;
|
|
782
|
-
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
772
|
+
diagnosis_date?: Date | null | undefined;
|
|
773
|
+
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
783
774
|
controlled?: boolean | undefined;
|
|
784
775
|
medications?: {
|
|
785
776
|
name: string;
|
|
786
777
|
dosage?: string | null | undefined;
|
|
787
778
|
frequency?: string | null | undefined;
|
|
788
779
|
}[] | null | undefined;
|
|
789
|
-
notes?: string |
|
|
780
|
+
notes?: string | undefined;
|
|
790
781
|
}>, "many">>>;
|
|
791
782
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
792
783
|
name: z.ZodString;
|
|
@@ -868,57 +859,31 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
868
859
|
height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
869
860
|
weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
870
861
|
blood_type: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>>>>;
|
|
871
|
-
allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<
|
|
872
|
-
id: z.ZodString;
|
|
873
|
-
ref: z.ZodAny;
|
|
874
|
-
tenant: z.ZodString;
|
|
875
|
-
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
876
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
877
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
878
|
-
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
879
|
-
}, {
|
|
862
|
+
allergies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
880
863
|
code: z.ZodString;
|
|
881
864
|
name: z.ZodString;
|
|
865
|
+
ref: z.ZodAny;
|
|
882
866
|
kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
|
|
883
867
|
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
884
|
-
}
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
885
869
|
code: string;
|
|
886
870
|
name: string;
|
|
887
|
-
id: string;
|
|
888
|
-
tenant: string;
|
|
889
|
-
model_ver: number;
|
|
890
871
|
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
891
872
|
kind: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
892
873
|
ref?: any;
|
|
893
|
-
created_at?: Date | null | undefined;
|
|
894
|
-
updated_at?: Date | null | undefined;
|
|
895
|
-
deleted_at?: Date | null | undefined;
|
|
896
874
|
}, {
|
|
897
875
|
code: string;
|
|
898
876
|
name: string;
|
|
899
|
-
id: string;
|
|
900
|
-
tenant: string;
|
|
901
877
|
ref?: any;
|
|
902
|
-
model_ver?: number | undefined;
|
|
903
|
-
created_at?: Date | null | undefined;
|
|
904
|
-
updated_at?: Date | null | undefined;
|
|
905
|
-
deleted_at?: Date | null | undefined;
|
|
906
878
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
907
879
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
908
880
|
}>, "many">>>;
|
|
909
|
-
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<
|
|
910
|
-
id: z.ZodString;
|
|
911
|
-
ref: z.ZodAny;
|
|
912
|
-
tenant: z.ZodString;
|
|
913
|
-
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
914
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
915
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
916
|
-
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
917
|
-
}, {
|
|
881
|
+
chronic_conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
918
882
|
code: z.ZodString;
|
|
919
883
|
name: z.ZodString;
|
|
920
|
-
|
|
921
|
-
|
|
884
|
+
ref: z.ZodAny;
|
|
885
|
+
diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
886
|
+
severity: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>>;
|
|
922
887
|
controlled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
923
888
|
medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
924
889
|
name: z.ZodString;
|
|
@@ -933,21 +898,15 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
933
898
|
dosage?: string | null | undefined;
|
|
934
899
|
frequency?: string | null | undefined;
|
|
935
900
|
}>, "many">>>;
|
|
936
|
-
notes: z.ZodDefault<z.ZodOptional<z.
|
|
937
|
-
}
|
|
901
|
+
notes: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
902
|
+
}, "strip", z.ZodTypeAny, {
|
|
938
903
|
code: string;
|
|
939
904
|
name: string;
|
|
940
|
-
|
|
941
|
-
tenant: string;
|
|
942
|
-
model_ver: number;
|
|
943
|
-
severity: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
905
|
+
severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
944
906
|
controlled: boolean;
|
|
945
|
-
notes: string
|
|
907
|
+
notes: string;
|
|
946
908
|
ref?: any;
|
|
947
|
-
|
|
948
|
-
updated_at?: Date | null | undefined;
|
|
949
|
-
deleted_at?: Date | null | undefined;
|
|
950
|
-
diagnosis_date?: string | null | undefined;
|
|
909
|
+
diagnosis_date?: Date | null | undefined;
|
|
951
910
|
medications?: {
|
|
952
911
|
name: string;
|
|
953
912
|
dosage: string | null;
|
|
@@ -956,22 +915,16 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
956
915
|
}, {
|
|
957
916
|
code: string;
|
|
958
917
|
name: string;
|
|
959
|
-
id: string;
|
|
960
|
-
tenant: string;
|
|
961
918
|
ref?: any;
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
updated_at?: Date | null | undefined;
|
|
965
|
-
deleted_at?: Date | null | undefined;
|
|
966
|
-
diagnosis_date?: string | null | undefined;
|
|
967
|
-
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
919
|
+
diagnosis_date?: Date | null | undefined;
|
|
920
|
+
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
|
|
968
921
|
controlled?: boolean | undefined;
|
|
969
922
|
medications?: {
|
|
970
923
|
name: string;
|
|
971
924
|
dosage?: string | null | undefined;
|
|
972
925
|
frequency?: string | null | undefined;
|
|
973
926
|
}[] | null | undefined;
|
|
974
|
-
notes?: string |
|
|
927
|
+
notes?: string | undefined;
|
|
975
928
|
}>, "many">>>;
|
|
976
929
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
977
930
|
name: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zPatientSchema = exports.zBloodTypeSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalOfficeSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
|
|
3
|
+
exports.zPatientSchema = exports.zPatientChronicConditionSchema = exports.zPatientAllergySchema = exports.zBloodTypeSchema = exports.zPatientStatusSchema = exports.zProfessionalSchema = exports.zProfessionalOfficeSchema = exports.zProfessionalSpecialtySchema = exports.zProfessionalCouncilSchema = exports.zProfessionalStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../dic/zod-schemas");
|
|
6
6
|
const zod_schemas_2 = require("../../shared/zod-schemas");
|
|
@@ -15,7 +15,7 @@ exports.zProfessionalCouncilSchema = zod_1.z.object({
|
|
|
15
15
|
doc: zod_1.z.string().min(1).max(255),
|
|
16
16
|
name: zod_1.z.string().min(1).max(255),
|
|
17
17
|
acronym: zod_1.z.string().min(1).max(60),
|
|
18
|
-
uf:
|
|
18
|
+
uf: zod_schemas_1.zMedicalCouncilUFSchema.nullable().optional().default("SP"),
|
|
19
19
|
ref: zod_1.z.any(),
|
|
20
20
|
});
|
|
21
21
|
exports.zProfessionalSpecialtySchema = zod_1.z.object({
|
|
@@ -59,6 +59,23 @@ exports.zBloodTypeSchema = zod_1.z.enum([
|
|
|
59
59
|
"O-",
|
|
60
60
|
"Unknown",
|
|
61
61
|
]);
|
|
62
|
+
exports.zPatientAllergySchema = zod_1.z.object({
|
|
63
|
+
code: zod_1.z.string().min(1).max(10),
|
|
64
|
+
name: zod_1.z.string().min(1).max(255),
|
|
65
|
+
ref: zod_1.z.any(),
|
|
66
|
+
kind: zod_schemas_1.zAllergyKindSchema.nullable().optional().default("Other"),
|
|
67
|
+
severity: zod_schemas_1.zSeveritySchema.nullable().optional().default("Unknown"),
|
|
68
|
+
});
|
|
69
|
+
exports.zPatientChronicConditionSchema = zod_1.z.object({
|
|
70
|
+
code: zod_1.z.string().min(1).max(10),
|
|
71
|
+
name: zod_1.z.string().min(1).max(255),
|
|
72
|
+
ref: zod_1.z.any(),
|
|
73
|
+
diagnosis_date: zod_1.z.date().nullable().optional(),
|
|
74
|
+
severity: zod_schemas_1.zSeveritySchema.nullable().optional().default("Unknown"),
|
|
75
|
+
controlled: zod_1.z.boolean().optional().default(false),
|
|
76
|
+
medications: zod_1.z.array(zod_schemas_1.zMedicationSchema).nullable().optional(),
|
|
77
|
+
notes: zod_1.z.string().max(2048).optional().default(""),
|
|
78
|
+
});
|
|
62
79
|
exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSchema
|
|
63
80
|
.extend({
|
|
64
81
|
social_id: zod_1.z.string().nullable().optional(),
|
|
@@ -68,8 +85,11 @@ exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSche
|
|
|
68
85
|
height_cm: zod_1.z.number().nullable().optional(),
|
|
69
86
|
weight_kg: zod_1.z.number().nullable().optional(),
|
|
70
87
|
blood_type: exports.zBloodTypeSchema.nullable().optional().default("Unknown"),
|
|
71
|
-
allergies: zod_1.z.array(
|
|
72
|
-
chronic_conditions: zod_1.z
|
|
88
|
+
allergies: zod_1.z.array(exports.zPatientAllergySchema).nullable().optional(),
|
|
89
|
+
chronic_conditions: zod_1.z
|
|
90
|
+
.array(exports.zPatientChronicConditionSchema)
|
|
91
|
+
.nullable()
|
|
92
|
+
.optional(),
|
|
73
93
|
tags: zod_1.z.array(zod_schemas_2.zTagSchema).nullable().optional(),
|
|
74
94
|
userRef: zod_1.z.any(),
|
|
75
95
|
})
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
zAllergyKindSchema,
|
|
4
|
+
zAllergySchema,
|
|
5
|
+
zMedicalCouncilUFSchema,
|
|
6
|
+
zMedicationSchema,
|
|
7
|
+
zSeveritySchema,
|
|
8
|
+
} from "../dic/zod-schemas";
|
|
3
9
|
import {
|
|
4
10
|
zAddressSchema,
|
|
5
11
|
zContactSchema,
|
|
@@ -19,7 +25,7 @@ export const zProfessionalCouncilSchema = z.object({
|
|
|
19
25
|
doc: z.string().min(1).max(255),
|
|
20
26
|
name: z.string().min(1).max(255),
|
|
21
27
|
acronym: z.string().min(1).max(60),
|
|
22
|
-
uf:
|
|
28
|
+
uf: zMedicalCouncilUFSchema.nullable().optional().default("SP"),
|
|
23
29
|
ref: z.any(),
|
|
24
30
|
});
|
|
25
31
|
|
|
@@ -69,6 +75,25 @@ export const zBloodTypeSchema = z.enum([
|
|
|
69
75
|
"Unknown",
|
|
70
76
|
]);
|
|
71
77
|
|
|
78
|
+
export const zPatientAllergySchema = z.object({
|
|
79
|
+
code: z.string().min(1).max(10),
|
|
80
|
+
name: z.string().min(1).max(255),
|
|
81
|
+
ref: z.any(),
|
|
82
|
+
kind: zAllergyKindSchema.nullable().optional().default("Other"),
|
|
83
|
+
severity: zSeveritySchema.nullable().optional().default("Unknown"),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export const zPatientChronicConditionSchema = z.object({
|
|
87
|
+
code: z.string().min(1).max(10),
|
|
88
|
+
name: z.string().min(1).max(255),
|
|
89
|
+
ref: z.any(),
|
|
90
|
+
diagnosis_date: z.date().nullable().optional(),
|
|
91
|
+
severity: zSeveritySchema.nullable().optional().default("Unknown"),
|
|
92
|
+
controlled: z.boolean().optional().default(false),
|
|
93
|
+
medications: z.array(zMedicationSchema).nullable().optional(),
|
|
94
|
+
notes: z.string().max(2048).optional().default(""),
|
|
95
|
+
});
|
|
96
|
+
|
|
72
97
|
export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
|
|
73
98
|
.extend({
|
|
74
99
|
social_id: z.string().nullable().optional(),
|
|
@@ -78,8 +103,11 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
|
|
|
78
103
|
height_cm: z.number().nullable().optional(),
|
|
79
104
|
weight_kg: z.number().nullable().optional(),
|
|
80
105
|
blood_type: zBloodTypeSchema.nullable().optional().default("Unknown"),
|
|
81
|
-
allergies: z.array(
|
|
82
|
-
chronic_conditions: z
|
|
106
|
+
allergies: z.array(zPatientAllergySchema).nullable().optional(),
|
|
107
|
+
chronic_conditions: z
|
|
108
|
+
.array(zPatientChronicConditionSchema)
|
|
109
|
+
.nullable()
|
|
110
|
+
.optional(),
|
|
83
111
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
84
112
|
userRef: z.any(),
|
|
85
113
|
})
|
|
@@ -103,7 +103,6 @@ export interface IAllergy extends IFireDoc {
|
|
|
103
103
|
code: string;
|
|
104
104
|
name: string;
|
|
105
105
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
106
|
-
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
107
106
|
}
|
|
108
107
|
export interface IMedicalCouncil extends IFireDoc {
|
|
109
108
|
name: string;
|
|
@@ -141,7 +141,6 @@ export interface IAllergy extends IFireDoc {
|
|
|
141
141
|
code: string;
|
|
142
142
|
name: string;
|
|
143
143
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
144
|
-
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
|
|
145
144
|
}
|
|
146
145
|
|
|
147
146
|
export interface IMedicalCouncil extends IFireDoc {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "../fb_collections";
|
|
2
2
|
import { IProfile } from "../../evo-people";
|
|
3
3
|
import type { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
|
|
4
|
-
import { IAllergy,
|
|
4
|
+
import { IAllergy, IMedication } from "../dic";
|
|
5
5
|
export type MedPeopleAction = "CREATE_PROFESSIONAL" | "DELETE_PROFESSIONAL" | "UPDATE_PROFESSIONAL" | "UPDATE_PROFESSIONAL_PHOTO" | "UPDATE_PROFESSIONAL_PROFILE" | "UPDATE_PROFESSIONAL_PASSWORD" | "UPDATE_PROFESSIONAL_REPORT_TO" | "UPDATE_PROFESSIONAL_DEPARTMENT" | "UPDATE_PROFESSIONAL_OFFICE" | "UPDATE_PROFESSIONAL_COMPANY" | "UPDATE_PROFESSIONAL_JOB_TITLE" | "UPDATE_PROFESSIONAL_WORK_EMAIL" | "UPDATE_PROFESSIONAL_STATUS";
|
|
6
6
|
export declare enum IMedPeopleAction {
|
|
7
7
|
Create_professional = "CREATE_PROFESSIONAL",
|
|
@@ -78,6 +78,30 @@ export declare enum IBloodType {
|
|
|
78
78
|
ONegative = "O-",
|
|
79
79
|
Unknown = "Unknown"
|
|
80
80
|
}
|
|
81
|
+
export type Severity = "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
82
|
+
export declare enum ISeverity {
|
|
83
|
+
Mild = "Mild",
|
|
84
|
+
Moderate = "Moderate",
|
|
85
|
+
Severe = "Severe",
|
|
86
|
+
Unknown = "Unknown"
|
|
87
|
+
}
|
|
88
|
+
export interface IPatientChronicCondition {
|
|
89
|
+
code: string;
|
|
90
|
+
name: string;
|
|
91
|
+
ref?: FirestoreDocumentReference;
|
|
92
|
+
diagnosis_date?: Date | null;
|
|
93
|
+
severity?: Severity | null;
|
|
94
|
+
controlled?: boolean | null;
|
|
95
|
+
medications?: IMedication[] | null;
|
|
96
|
+
notes?: string | null;
|
|
97
|
+
}
|
|
98
|
+
export interface IPatientAllergy {
|
|
99
|
+
code: string;
|
|
100
|
+
name: string;
|
|
101
|
+
kind?: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
102
|
+
ref?: FirestoreDocumentReference;
|
|
103
|
+
severity?: Severity | null;
|
|
104
|
+
}
|
|
81
105
|
export interface IPatient extends IProfile {
|
|
82
106
|
social_id?: string | null;
|
|
83
107
|
status?: PatientStatus;
|
|
@@ -90,7 +114,7 @@ export interface IPatient extends IProfile {
|
|
|
90
114
|
weight_kg?: number | null;
|
|
91
115
|
blood_type?: BloodType | null;
|
|
92
116
|
allergies?: IAllergy[] | null;
|
|
93
|
-
chronic_conditions?:
|
|
117
|
+
chronic_conditions?: IPatientChronicCondition[] | null;
|
|
94
118
|
tags?: ITag[] | null;
|
|
95
119
|
userRef?: FirestoreDocumentReference;
|
|
96
120
|
[key: string]: unknown;
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.IBloodType = exports.IPatientStatus = exports.IProfessionalStatus = exports.IMedPeopleAction = void 0;
|
|
17
|
+
exports.ISeverity = exports.IBloodType = exports.IPatientStatus = exports.IProfessionalStatus = exports.IMedPeopleAction = void 0;
|
|
18
18
|
__exportStar(require("../fb_collections"), exports);
|
|
19
19
|
var IMedPeopleAction;
|
|
20
20
|
(function (IMedPeopleAction) {
|
|
@@ -57,3 +57,10 @@ var IBloodType;
|
|
|
57
57
|
IBloodType["ONegative"] = "O-";
|
|
58
58
|
IBloodType["Unknown"] = "Unknown";
|
|
59
59
|
})(IBloodType || (exports.IBloodType = IBloodType = {}));
|
|
60
|
+
var ISeverity;
|
|
61
|
+
(function (ISeverity) {
|
|
62
|
+
ISeverity["Mild"] = "Mild";
|
|
63
|
+
ISeverity["Moderate"] = "Moderate";
|
|
64
|
+
ISeverity["Severe"] = "Severe";
|
|
65
|
+
ISeverity["Unknown"] = "Unknown";
|
|
66
|
+
})(ISeverity || (exports.ISeverity = ISeverity = {}));
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
IContact,
|
|
7
7
|
ITag,
|
|
8
8
|
} from "../../shared";
|
|
9
|
-
import { IAllergy, IChronicCondition } from "../dic";
|
|
9
|
+
import { IAllergy, IChronicCondition, IMedication } from "../dic";
|
|
10
10
|
|
|
11
11
|
// ----- MedPeopleTypes
|
|
12
12
|
|
|
@@ -137,6 +137,33 @@ export enum IBloodType {
|
|
|
137
137
|
Unknown = "Unknown",
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
export type Severity = "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
141
|
+
export enum ISeverity {
|
|
142
|
+
Mild = "Mild",
|
|
143
|
+
Moderate = "Moderate",
|
|
144
|
+
Severe = "Severe",
|
|
145
|
+
Unknown = "Unknown",
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface IPatientChronicCondition {
|
|
149
|
+
code: string; // Identificador único da condição
|
|
150
|
+
name: string; // Nome da doença crônica, ex: "Diabetes Tipo 2"
|
|
151
|
+
ref?: FirestoreDocumentReference;
|
|
152
|
+
diagnosis_date?: Date | null; // Data do diagnóstico (ISO 8601)
|
|
153
|
+
severity?: Severity | null; // Nível de gravidade
|
|
154
|
+
controlled?: boolean | null; // Indica se a condição está sob controle
|
|
155
|
+
medications?: IMedication[] | null; // Lista de medicamentos utilizados para tratar a condição
|
|
156
|
+
notes?: string | null; // Observações adicionais
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface IPatientAllergy {
|
|
160
|
+
code: string;
|
|
161
|
+
name: string;
|
|
162
|
+
kind?: "Food" | "Drug" | "Insect" | "Other" | null;
|
|
163
|
+
ref?: FirestoreDocumentReference;
|
|
164
|
+
severity?: Severity | null; // Nível de gravidade
|
|
165
|
+
}
|
|
166
|
+
|
|
140
167
|
export interface IPatient extends IProfile {
|
|
141
168
|
social_id?: string | null; //CPF
|
|
142
169
|
status?: PatientStatus;
|
|
@@ -150,7 +177,7 @@ export interface IPatient extends IProfile {
|
|
|
150
177
|
weight_kg?: number | null; // Peso em kg
|
|
151
178
|
blood_type?: BloodType | null; // Tipo sanguíneo
|
|
152
179
|
allergies?: IAllergy[] | null; // Lista de alergias conhecidas
|
|
153
|
-
chronic_conditions?:
|
|
180
|
+
chronic_conditions?: IPatientChronicCondition[] | null; // Lista de doenças crônicas do paciente
|
|
154
181
|
tags?: ITag[] | null;
|
|
155
182
|
userRef?: FirestoreDocumentReference;
|
|
156
183
|
[key: string]: unknown; // index signature
|