evo360-types 1.2.2 → 1.2.4

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.
@@ -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,11 @@ 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
613
  }>;
@@ -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,19 +65,23 @@ 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.enum(["Food", "Drug", "Insect", "Other"]),
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()
@@ -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,7 +84,11 @@ 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.enum(["Food", "Drug", "Insect", "Other"]),
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()
@@ -398,7 +398,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
398
398
  }, {
399
399
  code: z.ZodString;
400
400
  name: z.ZodString;
401
- kind: z.ZodEnum<["Food", "Drug", "Insect", "Other"]>;
401
+ kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
402
402
  severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
403
403
  }>, "strip", z.ZodTypeAny, {
404
404
  code: string;
@@ -407,7 +407,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
407
407
  tenant: string;
408
408
  model_ver: number;
409
409
  severity: "Mild" | "Moderate" | "Severe" | "Unknown";
410
- kind: "Food" | "Drug" | "Insect" | "Other";
410
+ kind: "Food" | "Drug" | "Insect" | "Other" | null;
411
411
  ref?: any;
412
412
  created_at?: Date | null | undefined;
413
413
  updated_at?: Date | null | undefined;
@@ -417,13 +417,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
417
417
  name: string;
418
418
  id: string;
419
419
  tenant: string;
420
- kind: "Food" | "Drug" | "Insect" | "Other";
421
420
  ref?: any;
422
421
  model_ver?: number | undefined;
423
422
  created_at?: Date | null | undefined;
424
423
  updated_at?: Date | null | undefined;
425
424
  deleted_at?: Date | null | undefined;
426
425
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
426
+ kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
427
427
  }>, "many">>;
428
428
  chronic_conditions: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
429
429
  id: z.ZodString;
@@ -436,9 +436,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
436
436
  }, {
437
437
  code: z.ZodString;
438
438
  name: z.ZodString;
439
- diagnosis_date: z.ZodOptional<z.ZodString>;
439
+ diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
440
  severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
441
- controlled: z.ZodOptional<z.ZodBoolean>;
441
+ controlled: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
442
442
  medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
443
443
  name: z.ZodString;
444
444
  dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -460,13 +460,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
460
460
  tenant: string;
461
461
  model_ver: number;
462
462
  severity: "Mild" | "Moderate" | "Severe" | "Unknown";
463
+ controlled: boolean | null;
463
464
  notes: string | null;
464
465
  ref?: any;
465
466
  created_at?: Date | null | undefined;
466
467
  updated_at?: Date | null | undefined;
467
468
  deleted_at?: Date | null | undefined;
468
- diagnosis_date?: string | undefined;
469
- controlled?: boolean | undefined;
469
+ diagnosis_date?: string | null | undefined;
470
470
  medications?: {
471
471
  name: string;
472
472
  dosage: string | null;
@@ -482,9 +482,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
482
482
  created_at?: Date | null | undefined;
483
483
  updated_at?: Date | null | undefined;
484
484
  deleted_at?: Date | null | undefined;
485
- diagnosis_date?: string | undefined;
485
+ diagnosis_date?: string | null | undefined;
486
486
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
487
- controlled?: boolean | undefined;
487
+ controlled?: boolean | null | undefined;
488
488
  medications?: {
489
489
  name: string;
490
490
  dosage?: string | null | undefined;
@@ -583,7 +583,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
583
583
  }, {
584
584
  code: z.ZodString;
585
585
  name: z.ZodString;
586
- kind: z.ZodEnum<["Food", "Drug", "Insect", "Other"]>;
586
+ kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
587
587
  severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
588
588
  }>, "strip", z.ZodTypeAny, {
589
589
  code: string;
@@ -592,7 +592,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
592
592
  tenant: string;
593
593
  model_ver: number;
594
594
  severity: "Mild" | "Moderate" | "Severe" | "Unknown";
595
- kind: "Food" | "Drug" | "Insect" | "Other";
595
+ kind: "Food" | "Drug" | "Insect" | "Other" | null;
596
596
  ref?: any;
597
597
  created_at?: Date | null | undefined;
598
598
  updated_at?: Date | null | undefined;
@@ -602,13 +602,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
602
602
  name: string;
603
603
  id: string;
604
604
  tenant: string;
605
- kind: "Food" | "Drug" | "Insect" | "Other";
606
605
  ref?: any;
607
606
  model_ver?: number | undefined;
608
607
  created_at?: Date | null | undefined;
609
608
  updated_at?: Date | null | undefined;
610
609
  deleted_at?: Date | null | undefined;
611
610
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
611
+ kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
612
612
  }>, "many">>;
613
613
  chronic_conditions: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
614
614
  id: z.ZodString;
@@ -621,9 +621,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
621
621
  }, {
622
622
  code: z.ZodString;
623
623
  name: z.ZodString;
624
- diagnosis_date: z.ZodOptional<z.ZodString>;
624
+ diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
625
  severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
626
- controlled: z.ZodOptional<z.ZodBoolean>;
626
+ controlled: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
627
627
  medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
628
628
  name: z.ZodString;
629
629
  dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -645,13 +645,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
645
645
  tenant: string;
646
646
  model_ver: number;
647
647
  severity: "Mild" | "Moderate" | "Severe" | "Unknown";
648
+ controlled: boolean | null;
648
649
  notes: string | null;
649
650
  ref?: any;
650
651
  created_at?: Date | null | undefined;
651
652
  updated_at?: Date | null | undefined;
652
653
  deleted_at?: Date | null | undefined;
653
- diagnosis_date?: string | undefined;
654
- controlled?: boolean | undefined;
654
+ diagnosis_date?: string | null | undefined;
655
655
  medications?: {
656
656
  name: string;
657
657
  dosage: string | null;
@@ -667,9 +667,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
667
667
  created_at?: Date | null | undefined;
668
668
  updated_at?: Date | null | undefined;
669
669
  deleted_at?: Date | null | undefined;
670
- diagnosis_date?: string | undefined;
670
+ diagnosis_date?: string | null | undefined;
671
671
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
672
- controlled?: boolean | undefined;
672
+ controlled?: boolean | null | undefined;
673
673
  medications?: {
674
674
  name: string;
675
675
  dosage?: string | null | undefined;
@@ -768,7 +768,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
768
768
  }, {
769
769
  code: z.ZodString;
770
770
  name: z.ZodString;
771
- kind: z.ZodEnum<["Food", "Drug", "Insect", "Other"]>;
771
+ kind: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<["Food", "Drug", "Insect", "Other"]>>>>;
772
772
  severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
773
773
  }>, "strip", z.ZodTypeAny, {
774
774
  code: string;
@@ -777,7 +777,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
777
777
  tenant: string;
778
778
  model_ver: number;
779
779
  severity: "Mild" | "Moderate" | "Severe" | "Unknown";
780
- kind: "Food" | "Drug" | "Insect" | "Other";
780
+ kind: "Food" | "Drug" | "Insect" | "Other" | null;
781
781
  ref?: any;
782
782
  created_at?: Date | null | undefined;
783
783
  updated_at?: Date | null | undefined;
@@ -787,13 +787,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
787
787
  name: string;
788
788
  id: string;
789
789
  tenant: string;
790
- kind: "Food" | "Drug" | "Insect" | "Other";
791
790
  ref?: any;
792
791
  model_ver?: number | undefined;
793
792
  created_at?: Date | null | undefined;
794
793
  updated_at?: Date | null | undefined;
795
794
  deleted_at?: Date | null | undefined;
796
795
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
796
+ kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
797
797
  }>, "many">>;
798
798
  chronic_conditions: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
799
799
  id: z.ZodString;
@@ -806,9 +806,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
806
806
  }, {
807
807
  code: z.ZodString;
808
808
  name: z.ZodString;
809
- diagnosis_date: z.ZodOptional<z.ZodString>;
809
+ diagnosis_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
810
  severity: z.ZodDefault<z.ZodOptional<z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>>>;
811
- controlled: z.ZodOptional<z.ZodBoolean>;
811
+ controlled: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>>;
812
812
  medications: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
813
813
  name: z.ZodString;
814
814
  dosage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -830,13 +830,13 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
830
830
  tenant: string;
831
831
  model_ver: number;
832
832
  severity: "Mild" | "Moderate" | "Severe" | "Unknown";
833
+ controlled: boolean | null;
833
834
  notes: string | null;
834
835
  ref?: any;
835
836
  created_at?: Date | null | undefined;
836
837
  updated_at?: Date | null | undefined;
837
838
  deleted_at?: Date | null | undefined;
838
- diagnosis_date?: string | undefined;
839
- controlled?: boolean | undefined;
839
+ diagnosis_date?: string | null | undefined;
840
840
  medications?: {
841
841
  name: string;
842
842
  dosage: string | null;
@@ -852,9 +852,9 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
852
852
  created_at?: Date | null | undefined;
853
853
  updated_at?: Date | null | undefined;
854
854
  deleted_at?: Date | null | undefined;
855
- diagnosis_date?: string | undefined;
855
+ diagnosis_date?: string | null | undefined;
856
856
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
857
- controlled?: boolean | undefined;
857
+ controlled?: boolean | null | undefined;
858
858
  medications?: {
859
859
  name: string;
860
860
  dosage?: string | null | undefined;
@@ -32,9 +32,9 @@ export interface ISpecialty extends IFireDoc {
32
32
  code: string;
33
33
  name: string;
34
34
  tiss?: string;
35
- type_code: string;
36
- type_name: string;
37
- typeRef: FirestoreDocumentReference;
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: string;
51
- type_name: string;
52
- typeRef: FirestoreDocumentReference;
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: string;
91
- frequency: string;
90
+ dosage?: string;
91
+ frequency?: string;
92
92
  }
93
93
  export interface IChronicCondition extends IFireDoc {
94
94
  code: string;
@@ -102,6 +102,6 @@ export interface IChronicCondition extends IFireDoc {
102
102
  export interface IAllergy extends IFireDoc {
103
103
  code: string;
104
104
  name: string;
105
- kind: "Food" | "Drug" | "Insect" | "Other";
106
- severity: "Mild" | "Moderate" | "Severe" | "Unknown";
105
+ kind?: "Food" | "Drug" | "Insect" | "Other";
106
+ severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
107
107
  }
@@ -60,9 +60,9 @@ export interface ISpecialty extends IFireDoc {
60
60
  code: string;
61
61
  name: string;
62
62
  tiss?: string;
63
- type_code: string;
64
- type_name: string;
65
- typeRef: FirestoreDocumentReference;
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: string;
81
- type_name: string;
82
- typeRef: FirestoreDocumentReference;
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: string;
127
- frequency: string; // Ex: "1x ao dia"
126
+ dosage?: string;
127
+ frequency?: string;
128
128
  }
129
129
 
130
130
  export interface IChronicCondition extends IFireDoc {
@@ -140,6 +140,6 @@ export interface IChronicCondition extends IFireDoc {
140
140
  export interface IAllergy extends IFireDoc {
141
141
  code: string;
142
142
  name: string;
143
- kind: "Food" | "Drug" | "Insect" | "Other";
144
- severity: "Mild" | "Moderate" | "Severe" | "Unknown";
143
+ kind?: "Food" | "Drug" | "Insect" | "Other";
144
+ severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
145
145
  }
@@ -5,8 +5,8 @@ export declare const INSURANCES_COLLECTION = "insurances";
5
5
  export declare const PROCEDURES_COLLECTION = "procedures";
6
6
  export declare const DICS_COLLECTION = "dics";
7
7
  export declare const SPECIALTIES_COLLECTION = "specialties";
8
- export declare const CHANNEL_TYPES_COLLECTION = "dist-channel-types";
9
- export declare const DISTRIBUTION_CHANNELS_COLLECTION = "dist-channels";
8
+ export declare const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
9
+ export declare const DIST_CHANNELS_COLLECTION = "dist-channels";
10
10
  export declare const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
11
11
  export declare const PATIENT_SOURCES_COLLECTION = "patient_sources";
12
12
  export declare const APPOINTMENT_SOURCES_COLLECTION = "appointment_sources";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHRONIC_CONDITIONS_COLLECTION = exports.ALLERGIES_COLLECTION = exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = exports.APPOINTMENT_STATUSES_COLLECTION = exports.APPOINTMENT_SOURCES_COLLECTION = exports.PATIENT_SOURCES_COLLECTION = exports.MEDICAL_COUNCILS_COLLECTION = exports.DISTRIBUTION_CHANNELS_COLLECTION = exports.CHANNEL_TYPES_COLLECTION = exports.SPECIALTIES_COLLECTION = exports.DICS_COLLECTION = exports.PROCEDURES_COLLECTION = exports.INSURANCES_COLLECTION = exports.PATIENTS_COLLECTION = exports.PROFESSIONALS_COLLECTION = exports.EVO_MED_APP = void 0;
3
+ exports.CHRONIC_CONDITIONS_COLLECTION = exports.ALLERGIES_COLLECTION = exports.APPOINTMENT_REQUEST_TYPES_COLLECTION = exports.APPOINTMENT_STATUSES_COLLECTION = exports.APPOINTMENT_SOURCES_COLLECTION = exports.PATIENT_SOURCES_COLLECTION = exports.MEDICAL_COUNCILS_COLLECTION = exports.DIST_CHANNELS_COLLECTION = exports.DIST_CHANNEL_TYPES_COLLECTION = exports.SPECIALTIES_COLLECTION = exports.DICS_COLLECTION = exports.PROCEDURES_COLLECTION = exports.INSURANCES_COLLECTION = exports.PATIENTS_COLLECTION = exports.PROFESSIONALS_COLLECTION = exports.EVO_MED_APP = void 0;
4
4
  //EVO Med Application Doc
5
5
  exports.EVO_MED_APP = "evo-med";
6
6
  //people
@@ -13,8 +13,8 @@ exports.PROCEDURES_COLLECTION = "procedures";
13
13
  //dictionaries
14
14
  exports.DICS_COLLECTION = "dics";
15
15
  exports.SPECIALTIES_COLLECTION = "specialties";
16
- exports.CHANNEL_TYPES_COLLECTION = "dist-channel-types";
17
- exports.DISTRIBUTION_CHANNELS_COLLECTION = "dist-channels";
16
+ exports.DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
17
+ exports.DIST_CHANNELS_COLLECTION = "dist-channels";
18
18
  exports.MEDICAL_COUNCILS_COLLECTION = "medical-councils";
19
19
  exports.PATIENT_SOURCES_COLLECTION = "patient_sources";
20
20
  exports.APPOINTMENT_SOURCES_COLLECTION = "appointment_sources";
@@ -11,8 +11,8 @@ export const PROCEDURES_COLLECTION = "procedures";
11
11
  //dictionaries
12
12
  export const DICS_COLLECTION = "dics";
13
13
  export const SPECIALTIES_COLLECTION = "specialties";
14
- export const CHANNEL_TYPES_COLLECTION = "dist-channel-types";
15
- export const DISTRIBUTION_CHANNELS_COLLECTION = "dist-channels";
14
+ export const DIST_CHANNEL_TYPES_COLLECTION = "dist-channel-types";
15
+ export const DIST_CHANNELS_COLLECTION = "dist-channels";
16
16
  export const MEDICAL_COUNCILS_COLLECTION = "medical-councils";
17
17
  export const PATIENT_SOURCES_COLLECTION = "patient_sources";
18
18
  export const APPOINTMENT_SOURCES_COLLECTION = "appointment_sources";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",