@blackcode_sa/metaestetics-api 1.6.20 → 1.6.21

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/index.d.ts CHANGED
@@ -1628,11 +1628,11 @@ declare const PATIENT_MEDICAL_INFO_COLLECTION = "medical_info";
1628
1628
  interface Allergy {
1629
1629
  type: AllergyType;
1630
1630
  subtype: AllergySubtype;
1631
- name?: string;
1632
- severity?: "mild" | "moderate" | "severe";
1633
- reaction?: string;
1634
- diagnosed?: Timestamp;
1635
- notes?: string;
1631
+ name?: string | null;
1632
+ severity?: "mild" | "moderate" | "severe" | null;
1633
+ reaction?: string | null;
1634
+ diagnosed?: Timestamp | null;
1635
+ notes?: string | null;
1636
1636
  }
1637
1637
  interface VitalStats {
1638
1638
  height?: number;
@@ -1665,9 +1665,9 @@ interface PatientMedicalInfo {
1665
1665
  name: string;
1666
1666
  dosage: string;
1667
1667
  frequency: string;
1668
- startDate: Timestamp;
1669
- endDate?: Timestamp;
1670
- prescribedBy?: string;
1668
+ startDate?: Timestamp | null;
1669
+ endDate?: Timestamp | null;
1670
+ prescribedBy?: string | null;
1671
1671
  }[];
1672
1672
  emergencyNotes?: string;
1673
1673
  lastUpdated: Timestamp;
@@ -1690,11 +1690,11 @@ interface UpdateVitalStatsData {
1690
1690
  interface AddAllergyData {
1691
1691
  type: AllergyType;
1692
1692
  subtype: AllergySubtype;
1693
- name?: string;
1693
+ name?: string | null;
1694
1694
  severity?: "mild" | "moderate" | "severe";
1695
- reaction?: string;
1696
- diagnosed?: Timestamp;
1697
- notes?: string;
1695
+ reaction?: string | null;
1696
+ diagnosed?: Timestamp | null;
1697
+ notes?: string | null;
1698
1698
  }
1699
1699
  interface UpdateAllergyData extends Partial<AddAllergyData> {
1700
1700
  allergyIndex: number;
@@ -8294,10 +8294,10 @@ declare const allergySubtypeSchema: z.ZodUnion<[z.ZodNativeEnum<typeof Medicatio
8294
8294
  declare const allergySchema: z.ZodObject<{
8295
8295
  type: z.ZodNativeEnum<typeof AllergyType>;
8296
8296
  subtype: z.ZodUnion<[z.ZodNativeEnum<typeof MedicationAllergySubtype>, z.ZodNativeEnum<typeof FoodAllergySubtype>, z.ZodNativeEnum<typeof EnvironmentalAllergySubtype>, z.ZodNativeEnum<typeof CosmeticAllergySubtype>, z.ZodLiteral<"other">]>;
8297
- name: z.ZodOptional<z.ZodString>;
8297
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8298
8298
  severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
8299
- reaction: z.ZodOptional<z.ZodString>;
8300
- diagnosed: z.ZodOptional<z.ZodObject<{
8299
+ reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8300
+ diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8301
8301
  seconds: z.ZodNumber;
8302
8302
  nanoseconds: z.ZodNumber;
8303
8303
  }, "strip", z.ZodTypeAny, {
@@ -8306,30 +8306,30 @@ declare const allergySchema: z.ZodObject<{
8306
8306
  }, {
8307
8307
  seconds: number;
8308
8308
  nanoseconds: number;
8309
- }>>;
8310
- notes: z.ZodOptional<z.ZodString>;
8309
+ }>>>;
8310
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8311
8311
  }, "strip", z.ZodTypeAny, {
8312
8312
  type: AllergyType;
8313
8313
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
8314
- name?: string | undefined;
8314
+ name?: string | null | undefined;
8315
8315
  severity?: "mild" | "moderate" | "severe" | undefined;
8316
- reaction?: string | undefined;
8316
+ reaction?: string | null | undefined;
8317
8317
  diagnosed?: {
8318
8318
  seconds: number;
8319
8319
  nanoseconds: number;
8320
- } | undefined;
8321
- notes?: string | undefined;
8320
+ } | null | undefined;
8321
+ notes?: string | null | undefined;
8322
8322
  }, {
8323
8323
  type: AllergyType;
8324
8324
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
8325
- name?: string | undefined;
8325
+ name?: string | null | undefined;
8326
8326
  severity?: "mild" | "moderate" | "severe" | undefined;
8327
- reaction?: string | undefined;
8327
+ reaction?: string | null | undefined;
8328
8328
  diagnosed?: {
8329
8329
  seconds: number;
8330
8330
  nanoseconds: number;
8331
- } | undefined;
8332
- notes?: string | undefined;
8331
+ } | null | undefined;
8332
+ notes?: string | null | undefined;
8333
8333
  }>;
8334
8334
  declare const vitalStatsSchema: z.ZodObject<{
8335
8335
  height: z.ZodOptional<z.ZodNumber>;
@@ -8400,7 +8400,7 @@ declare const blockingConditionSchema: z.ZodObject<{
8400
8400
  seconds: number;
8401
8401
  nanoseconds: number;
8402
8402
  }>;
8403
- notes: z.ZodOptional<z.ZodString>;
8403
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8404
8404
  isActive: z.ZodBoolean;
8405
8405
  }, "strip", z.ZodTypeAny, {
8406
8406
  isActive: boolean;
@@ -8409,7 +8409,7 @@ declare const blockingConditionSchema: z.ZodObject<{
8409
8409
  seconds: number;
8410
8410
  nanoseconds: number;
8411
8411
  };
8412
- notes?: string | undefined;
8412
+ notes?: string | null | undefined;
8413
8413
  }, {
8414
8414
  isActive: boolean;
8415
8415
  condition: BlockingCondition;
@@ -8417,7 +8417,7 @@ declare const blockingConditionSchema: z.ZodObject<{
8417
8417
  seconds: number;
8418
8418
  nanoseconds: number;
8419
8419
  };
8420
- notes?: string | undefined;
8420
+ notes?: string | null | undefined;
8421
8421
  }>;
8422
8422
  declare const contraindicationSchema: z.ZodObject<{
8423
8423
  condition: z.ZodNativeEnum<typeof Contraindication>;
@@ -8432,7 +8432,7 @@ declare const contraindicationSchema: z.ZodObject<{
8432
8432
  nanoseconds: number;
8433
8433
  }>;
8434
8434
  frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
8435
- notes: z.ZodOptional<z.ZodString>;
8435
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8436
8436
  isActive: z.ZodBoolean;
8437
8437
  }, "strip", z.ZodTypeAny, {
8438
8438
  isActive: boolean;
@@ -8442,7 +8442,7 @@ declare const contraindicationSchema: z.ZodObject<{
8442
8442
  nanoseconds: number;
8443
8443
  };
8444
8444
  frequency: "rare" | "occasional" | "frequent";
8445
- notes?: string | undefined;
8445
+ notes?: string | null | undefined;
8446
8446
  }, {
8447
8447
  isActive: boolean;
8448
8448
  condition: Contraindication;
@@ -8451,13 +8451,13 @@ declare const contraindicationSchema: z.ZodObject<{
8451
8451
  nanoseconds: number;
8452
8452
  };
8453
8453
  frequency: "rare" | "occasional" | "frequent";
8454
- notes?: string | undefined;
8454
+ notes?: string | null | undefined;
8455
8455
  }>;
8456
8456
  declare const medicationSchema: z.ZodObject<{
8457
8457
  name: z.ZodString;
8458
8458
  dosage: z.ZodString;
8459
8459
  frequency: z.ZodString;
8460
- startDate: z.ZodObject<{
8460
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8461
8461
  seconds: z.ZodNumber;
8462
8462
  nanoseconds: z.ZodNumber;
8463
8463
  }, "strip", z.ZodTypeAny, {
@@ -8466,8 +8466,8 @@ declare const medicationSchema: z.ZodObject<{
8466
8466
  }, {
8467
8467
  seconds: number;
8468
8468
  nanoseconds: number;
8469
- }>;
8470
- endDate: z.ZodOptional<z.ZodObject<{
8469
+ }>>>;
8470
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8471
8471
  seconds: z.ZodNumber;
8472
8472
  nanoseconds: z.ZodNumber;
8473
8473
  }, "strip", z.ZodTypeAny, {
@@ -8476,34 +8476,34 @@ declare const medicationSchema: z.ZodObject<{
8476
8476
  }, {
8477
8477
  seconds: number;
8478
8478
  nanoseconds: number;
8479
- }>>;
8480
- prescribedBy: z.ZodOptional<z.ZodString>;
8479
+ }>>>;
8480
+ prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8481
8481
  }, "strip", z.ZodTypeAny, {
8482
8482
  name: string;
8483
8483
  dosage: string;
8484
8484
  frequency: string;
8485
- startDate: {
8485
+ startDate?: {
8486
8486
  seconds: number;
8487
8487
  nanoseconds: number;
8488
- };
8488
+ } | null | undefined;
8489
8489
  endDate?: {
8490
8490
  seconds: number;
8491
8491
  nanoseconds: number;
8492
- } | undefined;
8493
- prescribedBy?: string | undefined;
8492
+ } | null | undefined;
8493
+ prescribedBy?: string | null | undefined;
8494
8494
  }, {
8495
8495
  name: string;
8496
8496
  dosage: string;
8497
8497
  frequency: string;
8498
- startDate: {
8498
+ startDate?: {
8499
8499
  seconds: number;
8500
8500
  nanoseconds: number;
8501
- };
8501
+ } | null | undefined;
8502
8502
  endDate?: {
8503
8503
  seconds: number;
8504
8504
  nanoseconds: number;
8505
- } | undefined;
8506
- prescribedBy?: string | undefined;
8505
+ } | null | undefined;
8506
+ prescribedBy?: string | null | undefined;
8507
8507
  }>;
8508
8508
  declare const patientMedicalInfoSchema: z.ZodObject<{
8509
8509
  patientId: z.ZodString;
@@ -8576,7 +8576,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8576
8576
  seconds: number;
8577
8577
  nanoseconds: number;
8578
8578
  }>;
8579
- notes: z.ZodOptional<z.ZodString>;
8579
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8580
8580
  isActive: z.ZodBoolean;
8581
8581
  }, "strip", z.ZodTypeAny, {
8582
8582
  isActive: boolean;
@@ -8585,7 +8585,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8585
8585
  seconds: number;
8586
8586
  nanoseconds: number;
8587
8587
  };
8588
- notes?: string | undefined;
8588
+ notes?: string | null | undefined;
8589
8589
  }, {
8590
8590
  isActive: boolean;
8591
8591
  condition: BlockingCondition;
@@ -8593,7 +8593,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8593
8593
  seconds: number;
8594
8594
  nanoseconds: number;
8595
8595
  };
8596
- notes?: string | undefined;
8596
+ notes?: string | null | undefined;
8597
8597
  }>, "many">;
8598
8598
  contraindications: z.ZodArray<z.ZodObject<{
8599
8599
  condition: z.ZodNativeEnum<typeof Contraindication>;
@@ -8608,7 +8608,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8608
8608
  nanoseconds: number;
8609
8609
  }>;
8610
8610
  frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
8611
- notes: z.ZodOptional<z.ZodString>;
8611
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8612
8612
  isActive: z.ZodBoolean;
8613
8613
  }, "strip", z.ZodTypeAny, {
8614
8614
  isActive: boolean;
@@ -8618,7 +8618,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8618
8618
  nanoseconds: number;
8619
8619
  };
8620
8620
  frequency: "rare" | "occasional" | "frequent";
8621
- notes?: string | undefined;
8621
+ notes?: string | null | undefined;
8622
8622
  }, {
8623
8623
  isActive: boolean;
8624
8624
  condition: Contraindication;
@@ -8627,15 +8627,15 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8627
8627
  nanoseconds: number;
8628
8628
  };
8629
8629
  frequency: "rare" | "occasional" | "frequent";
8630
- notes?: string | undefined;
8630
+ notes?: string | null | undefined;
8631
8631
  }>, "many">;
8632
8632
  allergies: z.ZodArray<z.ZodObject<{
8633
8633
  type: z.ZodNativeEnum<typeof AllergyType>;
8634
8634
  subtype: z.ZodUnion<[z.ZodNativeEnum<typeof MedicationAllergySubtype>, z.ZodNativeEnum<typeof FoodAllergySubtype>, z.ZodNativeEnum<typeof EnvironmentalAllergySubtype>, z.ZodNativeEnum<typeof CosmeticAllergySubtype>, z.ZodLiteral<"other">]>;
8635
- name: z.ZodOptional<z.ZodString>;
8635
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8636
8636
  severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
8637
- reaction: z.ZodOptional<z.ZodString>;
8638
- diagnosed: z.ZodOptional<z.ZodObject<{
8637
+ reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8638
+ diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8639
8639
  seconds: z.ZodNumber;
8640
8640
  nanoseconds: z.ZodNumber;
8641
8641
  }, "strip", z.ZodTypeAny, {
@@ -8644,36 +8644,36 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8644
8644
  }, {
8645
8645
  seconds: number;
8646
8646
  nanoseconds: number;
8647
- }>>;
8648
- notes: z.ZodOptional<z.ZodString>;
8647
+ }>>>;
8648
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8649
8649
  }, "strip", z.ZodTypeAny, {
8650
8650
  type: AllergyType;
8651
8651
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
8652
- name?: string | undefined;
8652
+ name?: string | null | undefined;
8653
8653
  severity?: "mild" | "moderate" | "severe" | undefined;
8654
- reaction?: string | undefined;
8654
+ reaction?: string | null | undefined;
8655
8655
  diagnosed?: {
8656
8656
  seconds: number;
8657
8657
  nanoseconds: number;
8658
- } | undefined;
8659
- notes?: string | undefined;
8658
+ } | null | undefined;
8659
+ notes?: string | null | undefined;
8660
8660
  }, {
8661
8661
  type: AllergyType;
8662
8662
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
8663
- name?: string | undefined;
8663
+ name?: string | null | undefined;
8664
8664
  severity?: "mild" | "moderate" | "severe" | undefined;
8665
- reaction?: string | undefined;
8665
+ reaction?: string | null | undefined;
8666
8666
  diagnosed?: {
8667
8667
  seconds: number;
8668
8668
  nanoseconds: number;
8669
- } | undefined;
8670
- notes?: string | undefined;
8669
+ } | null | undefined;
8670
+ notes?: string | null | undefined;
8671
8671
  }>, "many">;
8672
8672
  currentMedications: z.ZodArray<z.ZodObject<{
8673
8673
  name: z.ZodString;
8674
8674
  dosage: z.ZodString;
8675
8675
  frequency: z.ZodString;
8676
- startDate: z.ZodObject<{
8676
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8677
8677
  seconds: z.ZodNumber;
8678
8678
  nanoseconds: z.ZodNumber;
8679
8679
  }, "strip", z.ZodTypeAny, {
@@ -8682,8 +8682,8 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8682
8682
  }, {
8683
8683
  seconds: number;
8684
8684
  nanoseconds: number;
8685
- }>;
8686
- endDate: z.ZodOptional<z.ZodObject<{
8685
+ }>>>;
8686
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8687
8687
  seconds: z.ZodNumber;
8688
8688
  nanoseconds: z.ZodNumber;
8689
8689
  }, "strip", z.ZodTypeAny, {
@@ -8692,34 +8692,34 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8692
8692
  }, {
8693
8693
  seconds: number;
8694
8694
  nanoseconds: number;
8695
- }>>;
8696
- prescribedBy: z.ZodOptional<z.ZodString>;
8695
+ }>>>;
8696
+ prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8697
8697
  }, "strip", z.ZodTypeAny, {
8698
8698
  name: string;
8699
8699
  dosage: string;
8700
8700
  frequency: string;
8701
- startDate: {
8701
+ startDate?: {
8702
8702
  seconds: number;
8703
8703
  nanoseconds: number;
8704
- };
8704
+ } | null | undefined;
8705
8705
  endDate?: {
8706
8706
  seconds: number;
8707
8707
  nanoseconds: number;
8708
- } | undefined;
8709
- prescribedBy?: string | undefined;
8708
+ } | null | undefined;
8709
+ prescribedBy?: string | null | undefined;
8710
8710
  }, {
8711
8711
  name: string;
8712
8712
  dosage: string;
8713
8713
  frequency: string;
8714
- startDate: {
8714
+ startDate?: {
8715
8715
  seconds: number;
8716
8716
  nanoseconds: number;
8717
- };
8717
+ } | null | undefined;
8718
8718
  endDate?: {
8719
8719
  seconds: number;
8720
8720
  nanoseconds: number;
8721
- } | undefined;
8722
- prescribedBy?: string | undefined;
8721
+ } | null | undefined;
8722
+ prescribedBy?: string | null | undefined;
8723
8723
  }>, "many">;
8724
8724
  emergencyNotes: z.ZodOptional<z.ZodString>;
8725
8725
  lastUpdated: z.ZodObject<{
@@ -8753,7 +8753,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8753
8753
  nanoseconds: number;
8754
8754
  };
8755
8755
  frequency: "rare" | "occasional" | "frequent";
8756
- notes?: string | undefined;
8756
+ notes?: string | null | undefined;
8757
8757
  }[];
8758
8758
  patientId: string;
8759
8759
  lastUpdated: {
@@ -8781,33 +8781,33 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8781
8781
  seconds: number;
8782
8782
  nanoseconds: number;
8783
8783
  };
8784
- notes?: string | undefined;
8784
+ notes?: string | null | undefined;
8785
8785
  }[];
8786
8786
  allergies: {
8787
8787
  type: AllergyType;
8788
8788
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
8789
- name?: string | undefined;
8789
+ name?: string | null | undefined;
8790
8790
  severity?: "mild" | "moderate" | "severe" | undefined;
8791
- reaction?: string | undefined;
8791
+ reaction?: string | null | undefined;
8792
8792
  diagnosed?: {
8793
8793
  seconds: number;
8794
8794
  nanoseconds: number;
8795
- } | undefined;
8796
- notes?: string | undefined;
8795
+ } | null | undefined;
8796
+ notes?: string | null | undefined;
8797
8797
  }[];
8798
8798
  currentMedications: {
8799
8799
  name: string;
8800
8800
  dosage: string;
8801
8801
  frequency: string;
8802
- startDate: {
8802
+ startDate?: {
8803
8803
  seconds: number;
8804
8804
  nanoseconds: number;
8805
- };
8805
+ } | null | undefined;
8806
8806
  endDate?: {
8807
8807
  seconds: number;
8808
8808
  nanoseconds: number;
8809
- } | undefined;
8810
- prescribedBy?: string | undefined;
8809
+ } | null | undefined;
8810
+ prescribedBy?: string | null | undefined;
8811
8811
  }[];
8812
8812
  verifiedBy?: string | undefined;
8813
8813
  verifiedAt?: {
@@ -8824,7 +8824,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8824
8824
  nanoseconds: number;
8825
8825
  };
8826
8826
  frequency: "rare" | "occasional" | "frequent";
8827
- notes?: string | undefined;
8827
+ notes?: string | null | undefined;
8828
8828
  }[];
8829
8829
  patientId: string;
8830
8830
  lastUpdated: {
@@ -8852,33 +8852,33 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
8852
8852
  seconds: number;
8853
8853
  nanoseconds: number;
8854
8854
  };
8855
- notes?: string | undefined;
8855
+ notes?: string | null | undefined;
8856
8856
  }[];
8857
8857
  allergies: {
8858
8858
  type: AllergyType;
8859
8859
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
8860
- name?: string | undefined;
8860
+ name?: string | null | undefined;
8861
8861
  severity?: "mild" | "moderate" | "severe" | undefined;
8862
- reaction?: string | undefined;
8862
+ reaction?: string | null | undefined;
8863
8863
  diagnosed?: {
8864
8864
  seconds: number;
8865
8865
  nanoseconds: number;
8866
- } | undefined;
8867
- notes?: string | undefined;
8866
+ } | null | undefined;
8867
+ notes?: string | null | undefined;
8868
8868
  }[];
8869
8869
  currentMedications: {
8870
8870
  name: string;
8871
8871
  dosage: string;
8872
8872
  frequency: string;
8873
- startDate: {
8873
+ startDate?: {
8874
8874
  seconds: number;
8875
8875
  nanoseconds: number;
8876
- };
8876
+ } | null | undefined;
8877
8877
  endDate?: {
8878
8878
  seconds: number;
8879
8879
  nanoseconds: number;
8880
- } | undefined;
8881
- prescribedBy?: string | undefined;
8880
+ } | null | undefined;
8881
+ prescribedBy?: string | null | undefined;
8882
8882
  }[];
8883
8883
  verifiedBy?: string | undefined;
8884
8884
  verifiedAt?: {
@@ -8958,7 +8958,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
8958
8958
  seconds: number;
8959
8959
  nanoseconds: number;
8960
8960
  }>;
8961
- notes: z.ZodOptional<z.ZodString>;
8961
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8962
8962
  isActive: z.ZodBoolean;
8963
8963
  }, "strip", z.ZodTypeAny, {
8964
8964
  isActive: boolean;
@@ -8967,7 +8967,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
8967
8967
  seconds: number;
8968
8968
  nanoseconds: number;
8969
8969
  };
8970
- notes?: string | undefined;
8970
+ notes?: string | null | undefined;
8971
8971
  }, {
8972
8972
  isActive: boolean;
8973
8973
  condition: BlockingCondition;
@@ -8975,7 +8975,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
8975
8975
  seconds: number;
8976
8976
  nanoseconds: number;
8977
8977
  };
8978
- notes?: string | undefined;
8978
+ notes?: string | null | undefined;
8979
8979
  }>, "many">;
8980
8980
  contraindications: z.ZodArray<z.ZodObject<{
8981
8981
  condition: z.ZodNativeEnum<typeof Contraindication>;
@@ -8990,7 +8990,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
8990
8990
  nanoseconds: number;
8991
8991
  }>;
8992
8992
  frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
8993
- notes: z.ZodOptional<z.ZodString>;
8993
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8994
8994
  isActive: z.ZodBoolean;
8995
8995
  }, "strip", z.ZodTypeAny, {
8996
8996
  isActive: boolean;
@@ -9000,7 +9000,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9000
9000
  nanoseconds: number;
9001
9001
  };
9002
9002
  frequency: "rare" | "occasional" | "frequent";
9003
- notes?: string | undefined;
9003
+ notes?: string | null | undefined;
9004
9004
  }, {
9005
9005
  isActive: boolean;
9006
9006
  condition: Contraindication;
@@ -9009,15 +9009,15 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9009
9009
  nanoseconds: number;
9010
9010
  };
9011
9011
  frequency: "rare" | "occasional" | "frequent";
9012
- notes?: string | undefined;
9012
+ notes?: string | null | undefined;
9013
9013
  }>, "many">;
9014
9014
  allergies: z.ZodArray<z.ZodObject<{
9015
9015
  type: z.ZodNativeEnum<typeof AllergyType>;
9016
9016
  subtype: z.ZodUnion<[z.ZodNativeEnum<typeof MedicationAllergySubtype>, z.ZodNativeEnum<typeof FoodAllergySubtype>, z.ZodNativeEnum<typeof EnvironmentalAllergySubtype>, z.ZodNativeEnum<typeof CosmeticAllergySubtype>, z.ZodLiteral<"other">]>;
9017
- name: z.ZodOptional<z.ZodString>;
9017
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9018
9018
  severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
9019
- reaction: z.ZodOptional<z.ZodString>;
9020
- diagnosed: z.ZodOptional<z.ZodObject<{
9019
+ reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9020
+ diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9021
9021
  seconds: z.ZodNumber;
9022
9022
  nanoseconds: z.ZodNumber;
9023
9023
  }, "strip", z.ZodTypeAny, {
@@ -9026,36 +9026,36 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9026
9026
  }, {
9027
9027
  seconds: number;
9028
9028
  nanoseconds: number;
9029
- }>>;
9030
- notes: z.ZodOptional<z.ZodString>;
9029
+ }>>>;
9030
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9031
9031
  }, "strip", z.ZodTypeAny, {
9032
9032
  type: AllergyType;
9033
9033
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9034
- name?: string | undefined;
9034
+ name?: string | null | undefined;
9035
9035
  severity?: "mild" | "moderate" | "severe" | undefined;
9036
- reaction?: string | undefined;
9036
+ reaction?: string | null | undefined;
9037
9037
  diagnosed?: {
9038
9038
  seconds: number;
9039
9039
  nanoseconds: number;
9040
- } | undefined;
9041
- notes?: string | undefined;
9040
+ } | null | undefined;
9041
+ notes?: string | null | undefined;
9042
9042
  }, {
9043
9043
  type: AllergyType;
9044
9044
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9045
- name?: string | undefined;
9045
+ name?: string | null | undefined;
9046
9046
  severity?: "mild" | "moderate" | "severe" | undefined;
9047
- reaction?: string | undefined;
9047
+ reaction?: string | null | undefined;
9048
9048
  diagnosed?: {
9049
9049
  seconds: number;
9050
9050
  nanoseconds: number;
9051
- } | undefined;
9052
- notes?: string | undefined;
9051
+ } | null | undefined;
9052
+ notes?: string | null | undefined;
9053
9053
  }>, "many">;
9054
9054
  currentMedications: z.ZodArray<z.ZodObject<{
9055
9055
  name: z.ZodString;
9056
9056
  dosage: z.ZodString;
9057
9057
  frequency: z.ZodString;
9058
- startDate: z.ZodObject<{
9058
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9059
9059
  seconds: z.ZodNumber;
9060
9060
  nanoseconds: z.ZodNumber;
9061
9061
  }, "strip", z.ZodTypeAny, {
@@ -9064,8 +9064,8 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9064
9064
  }, {
9065
9065
  seconds: number;
9066
9066
  nanoseconds: number;
9067
- }>;
9068
- endDate: z.ZodOptional<z.ZodObject<{
9067
+ }>>>;
9068
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9069
9069
  seconds: z.ZodNumber;
9070
9070
  nanoseconds: z.ZodNumber;
9071
9071
  }, "strip", z.ZodTypeAny, {
@@ -9074,34 +9074,34 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9074
9074
  }, {
9075
9075
  seconds: number;
9076
9076
  nanoseconds: number;
9077
- }>>;
9078
- prescribedBy: z.ZodOptional<z.ZodString>;
9077
+ }>>>;
9078
+ prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9079
9079
  }, "strip", z.ZodTypeAny, {
9080
9080
  name: string;
9081
9081
  dosage: string;
9082
9082
  frequency: string;
9083
- startDate: {
9083
+ startDate?: {
9084
9084
  seconds: number;
9085
9085
  nanoseconds: number;
9086
- };
9086
+ } | null | undefined;
9087
9087
  endDate?: {
9088
9088
  seconds: number;
9089
9089
  nanoseconds: number;
9090
- } | undefined;
9091
- prescribedBy?: string | undefined;
9090
+ } | null | undefined;
9091
+ prescribedBy?: string | null | undefined;
9092
9092
  }, {
9093
9093
  name: string;
9094
9094
  dosage: string;
9095
9095
  frequency: string;
9096
- startDate: {
9096
+ startDate?: {
9097
9097
  seconds: number;
9098
9098
  nanoseconds: number;
9099
- };
9099
+ } | null | undefined;
9100
9100
  endDate?: {
9101
9101
  seconds: number;
9102
9102
  nanoseconds: number;
9103
- } | undefined;
9104
- prescribedBy?: string | undefined;
9103
+ } | null | undefined;
9104
+ prescribedBy?: string | null | undefined;
9105
9105
  }>, "many">;
9106
9106
  emergencyNotes: z.ZodOptional<z.ZodString>;
9107
9107
  lastUpdated: z.ZodObject<{
@@ -9135,7 +9135,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9135
9135
  nanoseconds: number;
9136
9136
  };
9137
9137
  frequency: "rare" | "occasional" | "frequent";
9138
- notes?: string | undefined;
9138
+ notes?: string | null | undefined;
9139
9139
  }[];
9140
9140
  vitalStats: {
9141
9141
  height?: number | undefined;
@@ -9157,33 +9157,33 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9157
9157
  seconds: number;
9158
9158
  nanoseconds: number;
9159
9159
  };
9160
- notes?: string | undefined;
9160
+ notes?: string | null | undefined;
9161
9161
  }[];
9162
9162
  allergies: {
9163
9163
  type: AllergyType;
9164
9164
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9165
- name?: string | undefined;
9165
+ name?: string | null | undefined;
9166
9166
  severity?: "mild" | "moderate" | "severe" | undefined;
9167
- reaction?: string | undefined;
9167
+ reaction?: string | null | undefined;
9168
9168
  diagnosed?: {
9169
9169
  seconds: number;
9170
9170
  nanoseconds: number;
9171
- } | undefined;
9172
- notes?: string | undefined;
9171
+ } | null | undefined;
9172
+ notes?: string | null | undefined;
9173
9173
  }[];
9174
9174
  currentMedications: {
9175
9175
  name: string;
9176
9176
  dosage: string;
9177
9177
  frequency: string;
9178
- startDate: {
9178
+ startDate?: {
9179
9179
  seconds: number;
9180
9180
  nanoseconds: number;
9181
- };
9181
+ } | null | undefined;
9182
9182
  endDate?: {
9183
9183
  seconds: number;
9184
9184
  nanoseconds: number;
9185
- } | undefined;
9186
- prescribedBy?: string | undefined;
9185
+ } | null | undefined;
9186
+ prescribedBy?: string | null | undefined;
9187
9187
  }[];
9188
9188
  emergencyNotes?: string | undefined;
9189
9189
  }, {
@@ -9195,7 +9195,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9195
9195
  nanoseconds: number;
9196
9196
  };
9197
9197
  frequency: "rare" | "occasional" | "frequent";
9198
- notes?: string | undefined;
9198
+ notes?: string | null | undefined;
9199
9199
  }[];
9200
9200
  vitalStats: {
9201
9201
  height?: number | undefined;
@@ -9217,33 +9217,33 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
9217
9217
  seconds: number;
9218
9218
  nanoseconds: number;
9219
9219
  };
9220
- notes?: string | undefined;
9220
+ notes?: string | null | undefined;
9221
9221
  }[];
9222
9222
  allergies: {
9223
9223
  type: AllergyType;
9224
9224
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9225
- name?: string | undefined;
9225
+ name?: string | null | undefined;
9226
9226
  severity?: "mild" | "moderate" | "severe" | undefined;
9227
- reaction?: string | undefined;
9227
+ reaction?: string | null | undefined;
9228
9228
  diagnosed?: {
9229
9229
  seconds: number;
9230
9230
  nanoseconds: number;
9231
- } | undefined;
9232
- notes?: string | undefined;
9231
+ } | null | undefined;
9232
+ notes?: string | null | undefined;
9233
9233
  }[];
9234
9234
  currentMedications: {
9235
9235
  name: string;
9236
9236
  dosage: string;
9237
9237
  frequency: string;
9238
- startDate: {
9238
+ startDate?: {
9239
9239
  seconds: number;
9240
9240
  nanoseconds: number;
9241
- };
9241
+ } | null | undefined;
9242
9242
  endDate?: {
9243
9243
  seconds: number;
9244
9244
  nanoseconds: number;
9245
- } | undefined;
9246
- prescribedBy?: string | undefined;
9245
+ } | null | undefined;
9246
+ prescribedBy?: string | null | undefined;
9247
9247
  }[];
9248
9248
  emergencyNotes?: string | undefined;
9249
9249
  }>;
@@ -9261,7 +9261,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9261
9261
  nanoseconds: number;
9262
9262
  }>;
9263
9263
  frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
9264
- notes: z.ZodOptional<z.ZodString>;
9264
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9265
9265
  isActive: z.ZodBoolean;
9266
9266
  }, "strip", z.ZodTypeAny, {
9267
9267
  isActive: boolean;
@@ -9271,7 +9271,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9271
9271
  nanoseconds: number;
9272
9272
  };
9273
9273
  frequency: "rare" | "occasional" | "frequent";
9274
- notes?: string | undefined;
9274
+ notes?: string | null | undefined;
9275
9275
  }, {
9276
9276
  isActive: boolean;
9277
9277
  condition: Contraindication;
@@ -9280,7 +9280,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9280
9280
  nanoseconds: number;
9281
9281
  };
9282
9282
  frequency: "rare" | "occasional" | "frequent";
9283
- notes?: string | undefined;
9283
+ notes?: string | null | undefined;
9284
9284
  }>, "many">>;
9285
9285
  vitalStats: z.ZodOptional<z.ZodObject<{
9286
9286
  height: z.ZodOptional<z.ZodNumber>;
@@ -9351,7 +9351,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9351
9351
  seconds: number;
9352
9352
  nanoseconds: number;
9353
9353
  }>;
9354
- notes: z.ZodOptional<z.ZodString>;
9354
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9355
9355
  isActive: z.ZodBoolean;
9356
9356
  }, "strip", z.ZodTypeAny, {
9357
9357
  isActive: boolean;
@@ -9360,7 +9360,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9360
9360
  seconds: number;
9361
9361
  nanoseconds: number;
9362
9362
  };
9363
- notes?: string | undefined;
9363
+ notes?: string | null | undefined;
9364
9364
  }, {
9365
9365
  isActive: boolean;
9366
9366
  condition: BlockingCondition;
@@ -9368,15 +9368,15 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9368
9368
  seconds: number;
9369
9369
  nanoseconds: number;
9370
9370
  };
9371
- notes?: string | undefined;
9371
+ notes?: string | null | undefined;
9372
9372
  }>, "many">>;
9373
9373
  allergies: z.ZodOptional<z.ZodArray<z.ZodObject<{
9374
9374
  type: z.ZodNativeEnum<typeof AllergyType>;
9375
9375
  subtype: z.ZodUnion<[z.ZodNativeEnum<typeof MedicationAllergySubtype>, z.ZodNativeEnum<typeof FoodAllergySubtype>, z.ZodNativeEnum<typeof EnvironmentalAllergySubtype>, z.ZodNativeEnum<typeof CosmeticAllergySubtype>, z.ZodLiteral<"other">]>;
9376
- name: z.ZodOptional<z.ZodString>;
9376
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9377
9377
  severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
9378
- reaction: z.ZodOptional<z.ZodString>;
9379
- diagnosed: z.ZodOptional<z.ZodObject<{
9378
+ reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9379
+ diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9380
9380
  seconds: z.ZodNumber;
9381
9381
  nanoseconds: z.ZodNumber;
9382
9382
  }, "strip", z.ZodTypeAny, {
@@ -9385,36 +9385,36 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9385
9385
  }, {
9386
9386
  seconds: number;
9387
9387
  nanoseconds: number;
9388
- }>>;
9389
- notes: z.ZodOptional<z.ZodString>;
9388
+ }>>>;
9389
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9390
9390
  }, "strip", z.ZodTypeAny, {
9391
9391
  type: AllergyType;
9392
9392
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9393
- name?: string | undefined;
9393
+ name?: string | null | undefined;
9394
9394
  severity?: "mild" | "moderate" | "severe" | undefined;
9395
- reaction?: string | undefined;
9395
+ reaction?: string | null | undefined;
9396
9396
  diagnosed?: {
9397
9397
  seconds: number;
9398
9398
  nanoseconds: number;
9399
- } | undefined;
9400
- notes?: string | undefined;
9399
+ } | null | undefined;
9400
+ notes?: string | null | undefined;
9401
9401
  }, {
9402
9402
  type: AllergyType;
9403
9403
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9404
- name?: string | undefined;
9404
+ name?: string | null | undefined;
9405
9405
  severity?: "mild" | "moderate" | "severe" | undefined;
9406
- reaction?: string | undefined;
9406
+ reaction?: string | null | undefined;
9407
9407
  diagnosed?: {
9408
9408
  seconds: number;
9409
9409
  nanoseconds: number;
9410
- } | undefined;
9411
- notes?: string | undefined;
9410
+ } | null | undefined;
9411
+ notes?: string | null | undefined;
9412
9412
  }>, "many">>;
9413
9413
  currentMedications: z.ZodOptional<z.ZodArray<z.ZodObject<{
9414
9414
  name: z.ZodString;
9415
9415
  dosage: z.ZodString;
9416
9416
  frequency: z.ZodString;
9417
- startDate: z.ZodObject<{
9417
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9418
9418
  seconds: z.ZodNumber;
9419
9419
  nanoseconds: z.ZodNumber;
9420
9420
  }, "strip", z.ZodTypeAny, {
@@ -9423,8 +9423,8 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9423
9423
  }, {
9424
9424
  seconds: number;
9425
9425
  nanoseconds: number;
9426
- }>;
9427
- endDate: z.ZodOptional<z.ZodObject<{
9426
+ }>>>;
9427
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9428
9428
  seconds: z.ZodNumber;
9429
9429
  nanoseconds: z.ZodNumber;
9430
9430
  }, "strip", z.ZodTypeAny, {
@@ -9433,34 +9433,34 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9433
9433
  }, {
9434
9434
  seconds: number;
9435
9435
  nanoseconds: number;
9436
- }>>;
9437
- prescribedBy: z.ZodOptional<z.ZodString>;
9436
+ }>>>;
9437
+ prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9438
9438
  }, "strip", z.ZodTypeAny, {
9439
9439
  name: string;
9440
9440
  dosage: string;
9441
9441
  frequency: string;
9442
- startDate: {
9442
+ startDate?: {
9443
9443
  seconds: number;
9444
9444
  nanoseconds: number;
9445
- };
9445
+ } | null | undefined;
9446
9446
  endDate?: {
9447
9447
  seconds: number;
9448
9448
  nanoseconds: number;
9449
- } | undefined;
9450
- prescribedBy?: string | undefined;
9449
+ } | null | undefined;
9450
+ prescribedBy?: string | null | undefined;
9451
9451
  }, {
9452
9452
  name: string;
9453
9453
  dosage: string;
9454
9454
  frequency: string;
9455
- startDate: {
9455
+ startDate?: {
9456
9456
  seconds: number;
9457
9457
  nanoseconds: number;
9458
- };
9458
+ } | null | undefined;
9459
9459
  endDate?: {
9460
9460
  seconds: number;
9461
9461
  nanoseconds: number;
9462
- } | undefined;
9463
- prescribedBy?: string | undefined;
9462
+ } | null | undefined;
9463
+ prescribedBy?: string | null | undefined;
9464
9464
  }>, "many">>;
9465
9465
  emergencyNotes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9466
9466
  }, "strip", z.ZodTypeAny, {
@@ -9472,7 +9472,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9472
9472
  nanoseconds: number;
9473
9473
  };
9474
9474
  frequency: "rare" | "occasional" | "frequent";
9475
- notes?: string | undefined;
9475
+ notes?: string | null | undefined;
9476
9476
  }[] | undefined;
9477
9477
  vitalStats?: {
9478
9478
  height?: number | undefined;
@@ -9494,33 +9494,33 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9494
9494
  seconds: number;
9495
9495
  nanoseconds: number;
9496
9496
  };
9497
- notes?: string | undefined;
9497
+ notes?: string | null | undefined;
9498
9498
  }[] | undefined;
9499
9499
  allergies?: {
9500
9500
  type: AllergyType;
9501
9501
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9502
- name?: string | undefined;
9502
+ name?: string | null | undefined;
9503
9503
  severity?: "mild" | "moderate" | "severe" | undefined;
9504
- reaction?: string | undefined;
9504
+ reaction?: string | null | undefined;
9505
9505
  diagnosed?: {
9506
9506
  seconds: number;
9507
9507
  nanoseconds: number;
9508
- } | undefined;
9509
- notes?: string | undefined;
9508
+ } | null | undefined;
9509
+ notes?: string | null | undefined;
9510
9510
  }[] | undefined;
9511
9511
  currentMedications?: {
9512
9512
  name: string;
9513
9513
  dosage: string;
9514
9514
  frequency: string;
9515
- startDate: {
9515
+ startDate?: {
9516
9516
  seconds: number;
9517
9517
  nanoseconds: number;
9518
- };
9518
+ } | null | undefined;
9519
9519
  endDate?: {
9520
9520
  seconds: number;
9521
9521
  nanoseconds: number;
9522
- } | undefined;
9523
- prescribedBy?: string | undefined;
9522
+ } | null | undefined;
9523
+ prescribedBy?: string | null | undefined;
9524
9524
  }[] | undefined;
9525
9525
  emergencyNotes?: string | undefined;
9526
9526
  }, {
@@ -9532,7 +9532,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9532
9532
  nanoseconds: number;
9533
9533
  };
9534
9534
  frequency: "rare" | "occasional" | "frequent";
9535
- notes?: string | undefined;
9535
+ notes?: string | null | undefined;
9536
9536
  }[] | undefined;
9537
9537
  vitalStats?: {
9538
9538
  height?: number | undefined;
@@ -9554,33 +9554,33 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
9554
9554
  seconds: number;
9555
9555
  nanoseconds: number;
9556
9556
  };
9557
- notes?: string | undefined;
9557
+ notes?: string | null | undefined;
9558
9558
  }[] | undefined;
9559
9559
  allergies?: {
9560
9560
  type: AllergyType;
9561
9561
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9562
- name?: string | undefined;
9562
+ name?: string | null | undefined;
9563
9563
  severity?: "mild" | "moderate" | "severe" | undefined;
9564
- reaction?: string | undefined;
9564
+ reaction?: string | null | undefined;
9565
9565
  diagnosed?: {
9566
9566
  seconds: number;
9567
9567
  nanoseconds: number;
9568
- } | undefined;
9569
- notes?: string | undefined;
9568
+ } | null | undefined;
9569
+ notes?: string | null | undefined;
9570
9570
  }[] | undefined;
9571
9571
  currentMedications?: {
9572
9572
  name: string;
9573
9573
  dosage: string;
9574
9574
  frequency: string;
9575
- startDate: {
9575
+ startDate?: {
9576
9576
  seconds: number;
9577
9577
  nanoseconds: number;
9578
- };
9578
+ } | null | undefined;
9579
9579
  endDate?: {
9580
9580
  seconds: number;
9581
9581
  nanoseconds: number;
9582
- } | undefined;
9583
- prescribedBy?: string | undefined;
9582
+ } | null | undefined;
9583
+ prescribedBy?: string | null | undefined;
9584
9584
  }[] | undefined;
9585
9585
  emergencyNotes?: string | undefined;
9586
9586
  }>;
@@ -9644,10 +9644,10 @@ declare const updateVitalStatsSchema: z.ZodObject<{
9644
9644
  declare const addAllergySchema: z.ZodObject<{
9645
9645
  type: z.ZodNativeEnum<typeof AllergyType>;
9646
9646
  subtype: z.ZodUnion<[z.ZodNativeEnum<typeof MedicationAllergySubtype>, z.ZodNativeEnum<typeof FoodAllergySubtype>, z.ZodNativeEnum<typeof EnvironmentalAllergySubtype>, z.ZodNativeEnum<typeof CosmeticAllergySubtype>, z.ZodLiteral<"other">]>;
9647
- name: z.ZodOptional<z.ZodString>;
9647
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9648
9648
  severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
9649
- reaction: z.ZodOptional<z.ZodString>;
9650
- diagnosed: z.ZodOptional<z.ZodObject<{
9649
+ reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9650
+ diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9651
9651
  seconds: z.ZodNumber;
9652
9652
  nanoseconds: z.ZodNumber;
9653
9653
  }, "strip", z.ZodTypeAny, {
@@ -9656,38 +9656,38 @@ declare const addAllergySchema: z.ZodObject<{
9656
9656
  }, {
9657
9657
  seconds: number;
9658
9658
  nanoseconds: number;
9659
- }>>;
9660
- notes: z.ZodOptional<z.ZodString>;
9659
+ }>>>;
9660
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9661
9661
  }, "strip", z.ZodTypeAny, {
9662
9662
  type: AllergyType;
9663
9663
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9664
- name?: string | undefined;
9664
+ name?: string | null | undefined;
9665
9665
  severity?: "mild" | "moderate" | "severe" | undefined;
9666
- reaction?: string | undefined;
9666
+ reaction?: string | null | undefined;
9667
9667
  diagnosed?: {
9668
9668
  seconds: number;
9669
9669
  nanoseconds: number;
9670
- } | undefined;
9671
- notes?: string | undefined;
9670
+ } | null | undefined;
9671
+ notes?: string | null | undefined;
9672
9672
  }, {
9673
9673
  type: AllergyType;
9674
9674
  subtype: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype;
9675
- name?: string | undefined;
9675
+ name?: string | null | undefined;
9676
9676
  severity?: "mild" | "moderate" | "severe" | undefined;
9677
- reaction?: string | undefined;
9677
+ reaction?: string | null | undefined;
9678
9678
  diagnosed?: {
9679
9679
  seconds: number;
9680
9680
  nanoseconds: number;
9681
- } | undefined;
9682
- notes?: string | undefined;
9681
+ } | null | undefined;
9682
+ notes?: string | null | undefined;
9683
9683
  }>;
9684
9684
  declare const updateAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
9685
9685
  type: z.ZodOptional<z.ZodNativeEnum<typeof AllergyType>>;
9686
9686
  subtype: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<typeof MedicationAllergySubtype>, z.ZodNativeEnum<typeof FoodAllergySubtype>, z.ZodNativeEnum<typeof EnvironmentalAllergySubtype>, z.ZodNativeEnum<typeof CosmeticAllergySubtype>, z.ZodLiteral<"other">]>>;
9687
- name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9687
+ name: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9688
9688
  severity: z.ZodOptional<z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>>;
9689
- reaction: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9690
- diagnosed: z.ZodOptional<z.ZodOptional<z.ZodObject<{
9689
+ reaction: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9690
+ diagnosed: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
9691
9691
  seconds: z.ZodNumber;
9692
9692
  nanoseconds: z.ZodNumber;
9693
9693
  }, "strip", z.ZodTypeAny, {
@@ -9696,34 +9696,34 @@ declare const updateAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
9696
9696
  }, {
9697
9697
  seconds: number;
9698
9698
  nanoseconds: number;
9699
- }>>>;
9700
- notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9699
+ }>>>>;
9700
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9701
9701
  }, {
9702
9702
  allergyIndex: z.ZodNumber;
9703
9703
  }>, "strip", z.ZodTypeAny, {
9704
9704
  allergyIndex: number;
9705
9705
  type?: AllergyType | undefined;
9706
- name?: string | undefined;
9706
+ name?: string | null | undefined;
9707
9707
  subtype?: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype | undefined;
9708
9708
  severity?: "mild" | "moderate" | "severe" | undefined;
9709
- reaction?: string | undefined;
9709
+ reaction?: string | null | undefined;
9710
9710
  diagnosed?: {
9711
9711
  seconds: number;
9712
9712
  nanoseconds: number;
9713
- } | undefined;
9714
- notes?: string | undefined;
9713
+ } | null | undefined;
9714
+ notes?: string | null | undefined;
9715
9715
  }, {
9716
9716
  allergyIndex: number;
9717
9717
  type?: AllergyType | undefined;
9718
- name?: string | undefined;
9718
+ name?: string | null | undefined;
9719
9719
  subtype?: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype | undefined;
9720
9720
  severity?: "mild" | "moderate" | "severe" | undefined;
9721
- reaction?: string | undefined;
9721
+ reaction?: string | null | undefined;
9722
9722
  diagnosed?: {
9723
9723
  seconds: number;
9724
9724
  nanoseconds: number;
9725
- } | undefined;
9726
- notes?: string | undefined;
9725
+ } | null | undefined;
9726
+ notes?: string | null | undefined;
9727
9727
  }>;
9728
9728
  declare const addBlockingConditionSchema: z.ZodObject<{
9729
9729
  condition: z.ZodNativeEnum<typeof BlockingCondition>;
@@ -9737,7 +9737,7 @@ declare const addBlockingConditionSchema: z.ZodObject<{
9737
9737
  seconds: number;
9738
9738
  nanoseconds: number;
9739
9739
  }>;
9740
- notes: z.ZodOptional<z.ZodString>;
9740
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9741
9741
  isActive: z.ZodBoolean;
9742
9742
  }, "strip", z.ZodTypeAny, {
9743
9743
  isActive: boolean;
@@ -9746,7 +9746,7 @@ declare const addBlockingConditionSchema: z.ZodObject<{
9746
9746
  seconds: number;
9747
9747
  nanoseconds: number;
9748
9748
  };
9749
- notes?: string | undefined;
9749
+ notes?: string | null | undefined;
9750
9750
  }, {
9751
9751
  isActive: boolean;
9752
9752
  condition: BlockingCondition;
@@ -9754,7 +9754,7 @@ declare const addBlockingConditionSchema: z.ZodObject<{
9754
9754
  seconds: number;
9755
9755
  nanoseconds: number;
9756
9756
  };
9757
- notes?: string | undefined;
9757
+ notes?: string | null | undefined;
9758
9758
  }>;
9759
9759
  declare const updateBlockingConditionSchema: z.ZodObject<z.objectUtil.extendShape<{
9760
9760
  condition: z.ZodOptional<z.ZodNativeEnum<typeof BlockingCondition>>;
@@ -9768,14 +9768,14 @@ declare const updateBlockingConditionSchema: z.ZodObject<z.objectUtil.extendShap
9768
9768
  seconds: number;
9769
9769
  nanoseconds: number;
9770
9770
  }>>;
9771
- notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9771
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9772
9772
  isActive: z.ZodOptional<z.ZodBoolean>;
9773
9773
  }, {
9774
9774
  conditionIndex: z.ZodNumber;
9775
9775
  }>, "strip", z.ZodTypeAny, {
9776
9776
  conditionIndex: number;
9777
9777
  isActive?: boolean | undefined;
9778
- notes?: string | undefined;
9778
+ notes?: string | null | undefined;
9779
9779
  condition?: BlockingCondition | undefined;
9780
9780
  diagnosedAt?: {
9781
9781
  seconds: number;
@@ -9784,7 +9784,7 @@ declare const updateBlockingConditionSchema: z.ZodObject<z.objectUtil.extendShap
9784
9784
  }, {
9785
9785
  conditionIndex: number;
9786
9786
  isActive?: boolean | undefined;
9787
- notes?: string | undefined;
9787
+ notes?: string | null | undefined;
9788
9788
  condition?: BlockingCondition | undefined;
9789
9789
  diagnosedAt?: {
9790
9790
  seconds: number;
@@ -9804,7 +9804,7 @@ declare const addContraindicationSchema: z.ZodObject<{
9804
9804
  nanoseconds: number;
9805
9805
  }>;
9806
9806
  frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
9807
- notes: z.ZodOptional<z.ZodString>;
9807
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9808
9808
  isActive: z.ZodBoolean;
9809
9809
  }, "strip", z.ZodTypeAny, {
9810
9810
  isActive: boolean;
@@ -9814,7 +9814,7 @@ declare const addContraindicationSchema: z.ZodObject<{
9814
9814
  nanoseconds: number;
9815
9815
  };
9816
9816
  frequency: "rare" | "occasional" | "frequent";
9817
- notes?: string | undefined;
9817
+ notes?: string | null | undefined;
9818
9818
  }, {
9819
9819
  isActive: boolean;
9820
9820
  condition: Contraindication;
@@ -9823,7 +9823,7 @@ declare const addContraindicationSchema: z.ZodObject<{
9823
9823
  nanoseconds: number;
9824
9824
  };
9825
9825
  frequency: "rare" | "occasional" | "frequent";
9826
- notes?: string | undefined;
9826
+ notes?: string | null | undefined;
9827
9827
  }>;
9828
9828
  declare const updateContraindicationSchema: z.ZodObject<z.objectUtil.extendShape<{
9829
9829
  condition: z.ZodOptional<z.ZodNativeEnum<typeof Contraindication>>;
@@ -9838,14 +9838,14 @@ declare const updateContraindicationSchema: z.ZodObject<z.objectUtil.extendShape
9838
9838
  nanoseconds: number;
9839
9839
  }>>;
9840
9840
  frequency: z.ZodOptional<z.ZodEnum<["rare", "occasional", "frequent"]>>;
9841
- notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9841
+ notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9842
9842
  isActive: z.ZodOptional<z.ZodBoolean>;
9843
9843
  }, {
9844
9844
  contraindicationIndex: z.ZodNumber;
9845
9845
  }>, "strip", z.ZodTypeAny, {
9846
9846
  contraindicationIndex: number;
9847
9847
  isActive?: boolean | undefined;
9848
- notes?: string | undefined;
9848
+ notes?: string | null | undefined;
9849
9849
  condition?: Contraindication | undefined;
9850
9850
  lastOccurrence?: {
9851
9851
  seconds: number;
@@ -9855,7 +9855,7 @@ declare const updateContraindicationSchema: z.ZodObject<z.objectUtil.extendShape
9855
9855
  }, {
9856
9856
  contraindicationIndex: number;
9857
9857
  isActive?: boolean | undefined;
9858
- notes?: string | undefined;
9858
+ notes?: string | null | undefined;
9859
9859
  condition?: Contraindication | undefined;
9860
9860
  lastOccurrence?: {
9861
9861
  seconds: number;
@@ -9867,7 +9867,7 @@ declare const addMedicationSchema: z.ZodObject<{
9867
9867
  name: z.ZodString;
9868
9868
  dosage: z.ZodString;
9869
9869
  frequency: z.ZodString;
9870
- startDate: z.ZodObject<{
9870
+ startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9871
9871
  seconds: z.ZodNumber;
9872
9872
  nanoseconds: z.ZodNumber;
9873
9873
  }, "strip", z.ZodTypeAny, {
@@ -9876,8 +9876,8 @@ declare const addMedicationSchema: z.ZodObject<{
9876
9876
  }, {
9877
9877
  seconds: number;
9878
9878
  nanoseconds: number;
9879
- }>;
9880
- endDate: z.ZodOptional<z.ZodObject<{
9879
+ }>>>;
9880
+ endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9881
9881
  seconds: z.ZodNumber;
9882
9882
  nanoseconds: z.ZodNumber;
9883
9883
  }, "strip", z.ZodTypeAny, {
@@ -9886,40 +9886,40 @@ declare const addMedicationSchema: z.ZodObject<{
9886
9886
  }, {
9887
9887
  seconds: number;
9888
9888
  nanoseconds: number;
9889
- }>>;
9890
- prescribedBy: z.ZodOptional<z.ZodString>;
9889
+ }>>>;
9890
+ prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9891
9891
  }, "strip", z.ZodTypeAny, {
9892
9892
  name: string;
9893
9893
  dosage: string;
9894
9894
  frequency: string;
9895
- startDate: {
9895
+ startDate?: {
9896
9896
  seconds: number;
9897
9897
  nanoseconds: number;
9898
- };
9898
+ } | null | undefined;
9899
9899
  endDate?: {
9900
9900
  seconds: number;
9901
9901
  nanoseconds: number;
9902
- } | undefined;
9903
- prescribedBy?: string | undefined;
9902
+ } | null | undefined;
9903
+ prescribedBy?: string | null | undefined;
9904
9904
  }, {
9905
9905
  name: string;
9906
9906
  dosage: string;
9907
9907
  frequency: string;
9908
- startDate: {
9908
+ startDate?: {
9909
9909
  seconds: number;
9910
9910
  nanoseconds: number;
9911
- };
9911
+ } | null | undefined;
9912
9912
  endDate?: {
9913
9913
  seconds: number;
9914
9914
  nanoseconds: number;
9915
- } | undefined;
9916
- prescribedBy?: string | undefined;
9915
+ } | null | undefined;
9916
+ prescribedBy?: string | null | undefined;
9917
9917
  }>;
9918
9918
  declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
9919
9919
  name: z.ZodOptional<z.ZodString>;
9920
9920
  dosage: z.ZodOptional<z.ZodString>;
9921
9921
  frequency: z.ZodOptional<z.ZodString>;
9922
- startDate: z.ZodOptional<z.ZodObject<{
9922
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
9923
9923
  seconds: z.ZodNumber;
9924
9924
  nanoseconds: z.ZodNumber;
9925
9925
  }, "strip", z.ZodTypeAny, {
@@ -9928,8 +9928,8 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
9928
9928
  }, {
9929
9929
  seconds: number;
9930
9930
  nanoseconds: number;
9931
- }>>;
9932
- endDate: z.ZodOptional<z.ZodOptional<z.ZodObject<{
9931
+ }>>>>;
9932
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
9933
9933
  seconds: z.ZodNumber;
9934
9934
  nanoseconds: z.ZodNumber;
9935
9935
  }, "strip", z.ZodTypeAny, {
@@ -9938,8 +9938,8 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
9938
9938
  }, {
9939
9939
  seconds: number;
9940
9940
  nanoseconds: number;
9941
- }>>>;
9942
- prescribedBy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9941
+ }>>>>;
9942
+ prescribedBy: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
9943
9943
  }, {
9944
9944
  medicationIndex: z.ZodNumber;
9945
9945
  }>, "strip", z.ZodTypeAny, {
@@ -9950,12 +9950,12 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
9950
9950
  startDate?: {
9951
9951
  seconds: number;
9952
9952
  nanoseconds: number;
9953
- } | undefined;
9953
+ } | null | undefined;
9954
9954
  endDate?: {
9955
9955
  seconds: number;
9956
9956
  nanoseconds: number;
9957
- } | undefined;
9958
- prescribedBy?: string | undefined;
9957
+ } | null | undefined;
9958
+ prescribedBy?: string | null | undefined;
9959
9959
  }, {
9960
9960
  medicationIndex: number;
9961
9961
  name?: string | undefined;
@@ -9964,12 +9964,12 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
9964
9964
  startDate?: {
9965
9965
  seconds: number;
9966
9966
  nanoseconds: number;
9967
- } | undefined;
9967
+ } | null | undefined;
9968
9968
  endDate?: {
9969
9969
  seconds: number;
9970
9970
  nanoseconds: number;
9971
- } | undefined;
9972
- prescribedBy?: string | undefined;
9971
+ } | null | undefined;
9972
+ prescribedBy?: string | null | undefined;
9973
9973
  }>;
9974
9974
 
9975
9975
  /**