evo360-types 1.2.4 → 1.2.6

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.
@@ -611,3 +611,43 @@ export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
611
611
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
612
612
  kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
613
613
  }>;
614
+ export declare const zMedicalCouncilSchema: 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
+ uf: z.ZodDefault<z.ZodOptional<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"]>>>;
626
+ country: z.ZodDefault<z.ZodString>;
627
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
628
+ id: z.ZodString;
629
+ ref: z.ZodAny;
630
+ tenant: z.ZodString;
631
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
632
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
633
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
634
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
635
+ }, {
636
+ name: z.ZodString;
637
+ acronym: z.ZodString;
638
+ uf: z.ZodDefault<z.ZodOptional<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"]>>>;
639
+ country: z.ZodDefault<z.ZodString>;
640
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
641
+ id: z.ZodString;
642
+ ref: z.ZodAny;
643
+ tenant: z.ZodString;
644
+ model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
645
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
646
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
647
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
648
+ }, {
649
+ name: z.ZodString;
650
+ acronym: z.ZodString;
651
+ uf: z.ZodDefault<z.ZodOptional<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"]>>>;
652
+ country: z.ZodDefault<z.ZodString>;
653
+ }>, z.ZodTypeAny, "passthrough">>;
@@ -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.zMedicalCouncilSchema = exports.zAllergySchema = exports.zChronicConditionSchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = exports.zSpecialtySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../../shared/zod-schemas");
6
6
  exports.zSpecialtySchema = zod_schemas_1.zFireDocSchema
@@ -87,3 +87,43 @@ exports.zAllergySchema = zod_schemas_1.zFireDocSchema.extend({
87
87
  .optional()
88
88
  .default("Unknown"),
89
89
  });
90
+ exports.zMedicalCouncilSchema = zod_schemas_1.zFireDocSchema
91
+ .extend({
92
+ name: zod_1.z.string().min(1).max(255),
93
+ acronym: zod_1.z.string().min(1).max(60),
94
+ uf: zod_1.z
95
+ .enum([
96
+ "AC",
97
+ "AL",
98
+ "AP",
99
+ "AM",
100
+ "BA",
101
+ "CE",
102
+ "ES",
103
+ "GO",
104
+ "MA",
105
+ "MT",
106
+ "MS",
107
+ "MG",
108
+ "PA",
109
+ "PB",
110
+ "PR",
111
+ "PE",
112
+ "PI",
113
+ "RJ",
114
+ "RN",
115
+ "RS",
116
+ "RO",
117
+ "RR",
118
+ "SC",
119
+ "SP",
120
+ "SE",
121
+ "TO",
122
+ "DF",
123
+ "BR", //nacional
124
+ ])
125
+ .optional()
126
+ .default("SP"),
127
+ country: zod_1.z.string().min(3).max(255).default("Brasil"),
128
+ })
129
+ .passthrough();
@@ -94,3 +94,44 @@ export const zAllergySchema = zFireDocSchema.extend({
94
94
  .optional()
95
95
  .default("Unknown"),
96
96
  });
97
+
98
+ export const zMedicalCouncilSchema = zFireDocSchema
99
+ .extend({
100
+ name: z.string().min(1).max(255),
101
+ acronym: z.string().min(1).max(60),
102
+ uf: z
103
+ .enum([
104
+ "AC",
105
+ "AL",
106
+ "AP",
107
+ "AM",
108
+ "BA",
109
+ "CE",
110
+ "ES",
111
+ "GO",
112
+ "MA",
113
+ "MT",
114
+ "MS",
115
+ "MG",
116
+ "PA",
117
+ "PB",
118
+ "PR",
119
+ "PE",
120
+ "PI",
121
+ "RJ",
122
+ "RN",
123
+ "RS",
124
+ "RO",
125
+ "RR",
126
+ "SC",
127
+ "SP",
128
+ "SE",
129
+ "TO",
130
+ "DF",
131
+ "BR", //nacional
132
+ ])
133
+ .optional()
134
+ .default("SP"),
135
+ country: z.string().min(3).max(255).default("Brasil"),
136
+ })
137
+ .passthrough();
@@ -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
+ country: string;
141
142
  line1: string;
142
143
  line2: string;
143
144
  city: string;
144
145
  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
+ country?: string | undefined;
151
152
  line1?: string | undefined;
152
153
  line2?: string | undefined;
153
154
  city?: string | undefined;
154
155
  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
+ country: string;
259
260
  line1: string;
260
261
  line2: string;
261
262
  city: string;
262
263
  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
+ country?: string | undefined;
269
270
  line1?: string | undefined;
270
271
  line2?: string | undefined;
271
272
  city?: string | undefined;
272
273
  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
+ country: string;
377
378
  line1: string;
378
379
  line2: string;
379
380
  city: string;
380
381
  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
+ country?: string | undefined;
387
388
  line1?: string | undefined;
388
389
  line2?: string | undefined;
389
390
  city?: string | undefined;
390
391
  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
+ country: string;
73
75
  line1: string;
74
76
  line2: string;
75
77
  city: string;
76
78
  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
+ country?: string | undefined;
83
85
  line1?: string | undefined;
84
86
  line2?: string | undefined;
85
87
  city?: string | undefined;
86
88
  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
+ country: string;
175
178
  line1: string;
176
179
  line2: string;
177
180
  city: string;
178
181
  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
+ country?: string | undefined;
185
188
  line1?: string | undefined;
186
189
  line2?: string | undefined;
187
190
  city?: string | undefined;
188
191
  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
+ country: string;
277
281
  line1: string;
278
282
  line2: string;
279
283
  city: string;
280
284
  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
+ country?: string | undefined;
287
291
  line1?: string | undefined;
288
292
  line2?: string | undefined;
289
293
  city?: string | undefined;
290
294
  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
+ country: string;
356
360
  line1: string;
357
361
  line2: string;
358
362
  city: string;
359
363
  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
+ country?: string | undefined;
366
370
  line1?: string | undefined;
367
371
  line2?: string | undefined;
368
372
  city?: string | undefined;
369
373
  state?: string | undefined;
370
374
  zip?: string | undefined;
371
- country?: string | undefined;
372
375
  geo?: any;
373
376
  }>>;
374
377
  contact: z.ZodOptional<z.ZodObject<{
@@ -538,22 +541,22 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
538
541
  }, "strip", z.ZodTypeAny, {
539
542
  name: string;
540
543
  kind: string;
544
+ country: string;
541
545
  line1: string;
542
546
  line2: string;
543
547
  city: string;
544
548
  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
+ country?: string | undefined;
551
555
  line1?: string | undefined;
552
556
  line2?: string | undefined;
553
557
  city?: string | undefined;
554
558
  state?: string | undefined;
555
559
  zip?: string | undefined;
556
- country?: string | undefined;
557
560
  geo?: any;
558
561
  }>>;
559
562
  contact: z.ZodOptional<z.ZodObject<{
@@ -723,22 +726,22 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
723
726
  }, "strip", z.ZodTypeAny, {
724
727
  name: string;
725
728
  kind: string;
729
+ country: string;
726
730
  line1: string;
727
731
  line2: string;
728
732
  city: string;
729
733
  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
+ country?: string | undefined;
736
740
  line1?: string | undefined;
737
741
  line2?: string | undefined;
738
742
  city?: string | undefined;
739
743
  state?: string | undefined;
740
744
  zip?: string | undefined;
741
- country?: string | undefined;
742
745
  geo?: any;
743
746
  }>>;
744
747
  contact: z.ZodOptional<z.ZodObject<{
@@ -25,6 +25,7 @@ exports.zProfessionalSchema = zod_schemas_3.zProfileSchema // Extend from Profil
25
25
  job_title: zod_1.z.string().nullable().optional(),
26
26
  council_doc: zod_1.z.string().max(255).nullable().optional().default(""),
27
27
  council_name: zod_1.z.string().max(255).nullable().optional().default(""),
28
+ council_acronym: zod_1.z.string().max(60).nullable().optional().default(""),
28
29
  council_state: zod_1.z.string().max(255).nullable().optional().default(""),
29
30
  councilRef: zod_1.z.any(),
30
31
  specialties: zod_1.z.array(exports.zProfessionalSpecialtySchema).optional(),
@@ -30,6 +30,7 @@ export const zProfessionalSchema = zProfileSchema // Extend from ProfileSchema
30
30
  job_title: z.string().nullable().optional(),
31
31
  council_doc: z.string().max(255).nullable().optional().default(""),
32
32
  council_name: z.string().max(255).nullable().optional().default(""),
33
+ council_acronym: z.string().max(60).nullable().optional().default(""),
33
34
  council_state: z.string().max(255).nullable().optional().default(""),
34
35
  councilRef: z.any(),
35
36
  specialties: z.array(zProfessionalSpecialtySchema).optional(),
@@ -98,10 +98,10 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
98
98
  description: string | null;
99
99
  type_code: string | null;
100
100
  type_name: string | null;
101
+ acronym: string | null;
101
102
  duration: number | null;
102
103
  color: string | null;
103
104
  technical_name: string;
104
- acronym: string | null;
105
105
  tuss: string | null;
106
106
  ref?: any;
107
107
  created_at?: Date | null | undefined;
@@ -134,8 +134,8 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
134
134
  type_code?: string | null | undefined;
135
135
  type_name?: string | null | undefined;
136
136
  typeRef?: any;
137
+ acronym?: string | null | undefined;
137
138
  duration?: number | null | undefined;
138
139
  color?: string | null | undefined;
139
- acronym?: string | null | undefined;
140
140
  tuss?: string | null | undefined;
141
141
  }>;
@@ -51,22 +51,22 @@ export declare const zAddressSchema: z.ZodObject<{
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  name: string;
53
53
  kind: string;
54
+ country: string;
54
55
  line1: string;
55
56
  line2: string;
56
57
  city: string;
57
58
  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
+ country?: string | undefined;
64
65
  line1?: string | undefined;
65
66
  line2?: string | undefined;
66
67
  city?: string | undefined;
67
68
  state?: string | undefined;
68
69
  zip?: string | undefined;
69
- country?: string | undefined;
70
70
  geo?: any;
71
71
  }>;
72
72
  export declare const zContactSchema: z.ZodObject<{
@@ -105,3 +105,9 @@ export interface IAllergy extends IFireDoc {
105
105
  kind?: "Food" | "Drug" | "Insect" | "Other";
106
106
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
107
107
  }
108
+ export interface IMedicalCouncil extends IFireDoc {
109
+ name: string;
110
+ acronym: string;
111
+ uf?: string;
112
+ country: string;
113
+ }
@@ -143,3 +143,10 @@ export interface IAllergy extends IFireDoc {
143
143
  kind?: "Food" | "Drug" | "Insect" | "Other";
144
144
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
145
145
  }
146
+
147
+ export interface IMedicalCouncil extends IFireDoc {
148
+ name: string; // Nome do conselho (ex: "Conselho Regional de Medicina de São Paulo")
149
+ acronym: string; // Sigla do conselho
150
+ uf?: string; // Estado de atuação (ex: "SP", "RJ") - Opcional, pois alguns são nacionais
151
+ country: string; // País onde o conselho atua (ex: "Brasil")
152
+ }
@@ -35,9 +35,10 @@ export interface IProfessional extends IProfile {
35
35
  title: string;
36
36
  type?: string | null;
37
37
  job_title?: string | null;
38
- council_doc: string;
39
- council_name: string;
40
- council_state: string;
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: string;
74
- council_name: string;
75
- council_state: string;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",