@blackcode_sa/metaestetics-api 1.7.2 → 1.7.3
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.mts +279 -341
- package/dist/index.d.ts +279 -341
- package/dist/index.js +1173 -1122
- package/dist/index.mjs +383 -332
- package/package.json +1 -1
- package/src/services/patient/utils/medical.utils.ts +26 -23
- package/src/services/patient/utils/practitioner.utils.ts +102 -0
- package/src/types/patient/medical-info.types.ts +2 -2
- package/src/validations/common.schema.ts +15 -4
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Auth, User as User$1 } from 'firebase/auth';
|
|
|
6
6
|
import { Analytics } from 'firebase/analytics';
|
|
7
7
|
import { FirebaseStorage } from 'firebase/storage';
|
|
8
8
|
import { Functions } from 'firebase/functions';
|
|
9
|
+
import * as _firebase_firestore from '@firebase/firestore';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Review system type definitions
|
|
@@ -1413,14 +1414,14 @@ interface PatientMedicalInfo {
|
|
|
1413
1414
|
condition: BlockingCondition;
|
|
1414
1415
|
diagnosedAt: Timestamp;
|
|
1415
1416
|
isActive: boolean;
|
|
1416
|
-
notes?: string;
|
|
1417
|
+
notes?: string | null;
|
|
1417
1418
|
}[];
|
|
1418
1419
|
contraindications: {
|
|
1419
1420
|
condition: Contraindication;
|
|
1420
1421
|
lastOccurrence: Timestamp;
|
|
1421
1422
|
frequency: "rare" | "occasional" | "frequent";
|
|
1422
1423
|
isActive: boolean;
|
|
1423
|
-
notes?: string;
|
|
1424
|
+
notes?: string | null;
|
|
1424
1425
|
}[];
|
|
1425
1426
|
allergies: Allergy[];
|
|
1426
1427
|
currentMedications: {
|
|
@@ -8344,7 +8345,7 @@ declare const allergySchema: z.ZodObject<{
|
|
|
8344
8345
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8345
8346
|
severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
|
|
8346
8347
|
reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8347
|
-
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8348
|
+
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8348
8349
|
seconds: z.ZodNumber;
|
|
8349
8350
|
nanoseconds: z.ZodNumber;
|
|
8350
8351
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8353,6 +8354,9 @@ declare const allergySchema: z.ZodObject<{
|
|
|
8353
8354
|
}, {
|
|
8354
8355
|
seconds: number;
|
|
8355
8356
|
nanoseconds: number;
|
|
8357
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8358
|
+
seconds: number;
|
|
8359
|
+
nanoseconds: number;
|
|
8356
8360
|
}>>>;
|
|
8357
8361
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8358
8362
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8361,10 +8365,7 @@ declare const allergySchema: z.ZodObject<{
|
|
|
8361
8365
|
name?: string | null | undefined;
|
|
8362
8366
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
8363
8367
|
reaction?: string | null | undefined;
|
|
8364
|
-
diagnosed?:
|
|
8365
|
-
seconds: number;
|
|
8366
|
-
nanoseconds: number;
|
|
8367
|
-
} | null | undefined;
|
|
8368
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
8368
8369
|
notes?: string | null | undefined;
|
|
8369
8370
|
}, {
|
|
8370
8371
|
type: AllergyType;
|
|
@@ -8372,7 +8373,7 @@ declare const allergySchema: z.ZodObject<{
|
|
|
8372
8373
|
name?: string | null | undefined;
|
|
8373
8374
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
8374
8375
|
reaction?: string | null | undefined;
|
|
8375
|
-
diagnosed?: {
|
|
8376
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
8376
8377
|
seconds: number;
|
|
8377
8378
|
nanoseconds: number;
|
|
8378
8379
|
} | null | undefined;
|
|
@@ -8385,7 +8386,7 @@ declare const vitalStatsSchema: z.ZodObject<{
|
|
|
8385
8386
|
bloodPressure: z.ZodOptional<z.ZodObject<{
|
|
8386
8387
|
systolic: z.ZodNumber;
|
|
8387
8388
|
diastolic: z.ZodNumber;
|
|
8388
|
-
lastMeasured: z.ZodObject<{
|
|
8389
|
+
lastMeasured: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8389
8390
|
seconds: z.ZodNumber;
|
|
8390
8391
|
nanoseconds: z.ZodNumber;
|
|
8391
8392
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8394,18 +8395,18 @@ declare const vitalStatsSchema: z.ZodObject<{
|
|
|
8394
8395
|
}, {
|
|
8395
8396
|
seconds: number;
|
|
8396
8397
|
nanoseconds: number;
|
|
8398
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8399
|
+
seconds: number;
|
|
8400
|
+
nanoseconds: number;
|
|
8397
8401
|
}>;
|
|
8398
8402
|
}, "strip", z.ZodTypeAny, {
|
|
8399
8403
|
systolic: number;
|
|
8400
8404
|
diastolic: number;
|
|
8401
|
-
lastMeasured:
|
|
8402
|
-
seconds: number;
|
|
8403
|
-
nanoseconds: number;
|
|
8404
|
-
};
|
|
8405
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
8405
8406
|
}, {
|
|
8406
8407
|
systolic: number;
|
|
8407
8408
|
diastolic: number;
|
|
8408
|
-
lastMeasured: {
|
|
8409
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
8409
8410
|
seconds: number;
|
|
8410
8411
|
nanoseconds: number;
|
|
8411
8412
|
};
|
|
@@ -8417,10 +8418,7 @@ declare const vitalStatsSchema: z.ZodObject<{
|
|
|
8417
8418
|
bloodPressure?: {
|
|
8418
8419
|
systolic: number;
|
|
8419
8420
|
diastolic: number;
|
|
8420
|
-
lastMeasured:
|
|
8421
|
-
seconds: number;
|
|
8422
|
-
nanoseconds: number;
|
|
8423
|
-
};
|
|
8421
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
8424
8422
|
} | undefined;
|
|
8425
8423
|
}, {
|
|
8426
8424
|
height?: number | undefined;
|
|
@@ -8429,7 +8427,7 @@ declare const vitalStatsSchema: z.ZodObject<{
|
|
|
8429
8427
|
bloodPressure?: {
|
|
8430
8428
|
systolic: number;
|
|
8431
8429
|
diastolic: number;
|
|
8432
|
-
lastMeasured: {
|
|
8430
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
8433
8431
|
seconds: number;
|
|
8434
8432
|
nanoseconds: number;
|
|
8435
8433
|
};
|
|
@@ -8437,7 +8435,7 @@ declare const vitalStatsSchema: z.ZodObject<{
|
|
|
8437
8435
|
}>;
|
|
8438
8436
|
declare const blockingConditionSchema: z.ZodObject<{
|
|
8439
8437
|
condition: z.ZodNativeEnum<typeof BlockingCondition>;
|
|
8440
|
-
diagnosedAt: z.ZodObject<{
|
|
8438
|
+
diagnosedAt: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8441
8439
|
seconds: z.ZodNumber;
|
|
8442
8440
|
nanoseconds: z.ZodNumber;
|
|
8443
8441
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8446,21 +8444,21 @@ declare const blockingConditionSchema: z.ZodObject<{
|
|
|
8446
8444
|
}, {
|
|
8447
8445
|
seconds: number;
|
|
8448
8446
|
nanoseconds: number;
|
|
8447
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8448
|
+
seconds: number;
|
|
8449
|
+
nanoseconds: number;
|
|
8449
8450
|
}>;
|
|
8450
8451
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8451
8452
|
isActive: z.ZodBoolean;
|
|
8452
8453
|
}, "strip", z.ZodTypeAny, {
|
|
8453
8454
|
isActive: boolean;
|
|
8454
8455
|
condition: BlockingCondition;
|
|
8455
|
-
diagnosedAt:
|
|
8456
|
-
seconds: number;
|
|
8457
|
-
nanoseconds: number;
|
|
8458
|
-
};
|
|
8456
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
8459
8457
|
notes?: string | null | undefined;
|
|
8460
8458
|
}, {
|
|
8461
8459
|
isActive: boolean;
|
|
8462
8460
|
condition: BlockingCondition;
|
|
8463
|
-
diagnosedAt: {
|
|
8461
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
8464
8462
|
seconds: number;
|
|
8465
8463
|
nanoseconds: number;
|
|
8466
8464
|
};
|
|
@@ -8468,7 +8466,7 @@ declare const blockingConditionSchema: z.ZodObject<{
|
|
|
8468
8466
|
}>;
|
|
8469
8467
|
declare const contraindicationSchema: z.ZodObject<{
|
|
8470
8468
|
condition: z.ZodNativeEnum<typeof Contraindication>;
|
|
8471
|
-
lastOccurrence: z.ZodObject<{
|
|
8469
|
+
lastOccurrence: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8472
8470
|
seconds: z.ZodNumber;
|
|
8473
8471
|
nanoseconds: z.ZodNumber;
|
|
8474
8472
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8477,6 +8475,9 @@ declare const contraindicationSchema: z.ZodObject<{
|
|
|
8477
8475
|
}, {
|
|
8478
8476
|
seconds: number;
|
|
8479
8477
|
nanoseconds: number;
|
|
8478
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8479
|
+
seconds: number;
|
|
8480
|
+
nanoseconds: number;
|
|
8480
8481
|
}>;
|
|
8481
8482
|
frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
|
|
8482
8483
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -8484,16 +8485,13 @@ declare const contraindicationSchema: z.ZodObject<{
|
|
|
8484
8485
|
}, "strip", z.ZodTypeAny, {
|
|
8485
8486
|
isActive: boolean;
|
|
8486
8487
|
condition: Contraindication;
|
|
8487
|
-
lastOccurrence:
|
|
8488
|
-
seconds: number;
|
|
8489
|
-
nanoseconds: number;
|
|
8490
|
-
};
|
|
8488
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
8491
8489
|
frequency: "rare" | "occasional" | "frequent";
|
|
8492
8490
|
notes?: string | null | undefined;
|
|
8493
8491
|
}, {
|
|
8494
8492
|
isActive: boolean;
|
|
8495
8493
|
condition: Contraindication;
|
|
8496
|
-
lastOccurrence: {
|
|
8494
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
8497
8495
|
seconds: number;
|
|
8498
8496
|
nanoseconds: number;
|
|
8499
8497
|
};
|
|
@@ -8504,7 +8502,7 @@ declare const medicationSchema: z.ZodObject<{
|
|
|
8504
8502
|
name: z.ZodString;
|
|
8505
8503
|
dosage: z.ZodString;
|
|
8506
8504
|
frequency: z.ZodString;
|
|
8507
|
-
startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8505
|
+
startDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8508
8506
|
seconds: z.ZodNumber;
|
|
8509
8507
|
nanoseconds: z.ZodNumber;
|
|
8510
8508
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8513,8 +8511,11 @@ declare const medicationSchema: z.ZodObject<{
|
|
|
8513
8511
|
}, {
|
|
8514
8512
|
seconds: number;
|
|
8515
8513
|
nanoseconds: number;
|
|
8514
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8515
|
+
seconds: number;
|
|
8516
|
+
nanoseconds: number;
|
|
8516
8517
|
}>>>;
|
|
8517
|
-
endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8518
|
+
endDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8518
8519
|
seconds: z.ZodNumber;
|
|
8519
8520
|
nanoseconds: z.ZodNumber;
|
|
8520
8521
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8523,30 +8524,27 @@ declare const medicationSchema: z.ZodObject<{
|
|
|
8523
8524
|
}, {
|
|
8524
8525
|
seconds: number;
|
|
8525
8526
|
nanoseconds: number;
|
|
8527
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8528
|
+
seconds: number;
|
|
8529
|
+
nanoseconds: number;
|
|
8526
8530
|
}>>>;
|
|
8527
8531
|
prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8528
8532
|
}, "strip", z.ZodTypeAny, {
|
|
8529
8533
|
name: string;
|
|
8530
8534
|
dosage: string;
|
|
8531
8535
|
frequency: string;
|
|
8532
|
-
startDate?:
|
|
8533
|
-
|
|
8534
|
-
nanoseconds: number;
|
|
8535
|
-
} | null | undefined;
|
|
8536
|
-
endDate?: {
|
|
8537
|
-
seconds: number;
|
|
8538
|
-
nanoseconds: number;
|
|
8539
|
-
} | null | undefined;
|
|
8536
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
8537
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
8540
8538
|
prescribedBy?: string | null | undefined;
|
|
8541
8539
|
}, {
|
|
8542
8540
|
name: string;
|
|
8543
8541
|
dosage: string;
|
|
8544
8542
|
frequency: string;
|
|
8545
|
-
startDate?: {
|
|
8543
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
8546
8544
|
seconds: number;
|
|
8547
8545
|
nanoseconds: number;
|
|
8548
8546
|
} | null | undefined;
|
|
8549
|
-
endDate?: {
|
|
8547
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
8550
8548
|
seconds: number;
|
|
8551
8549
|
nanoseconds: number;
|
|
8552
8550
|
} | null | undefined;
|
|
@@ -8561,7 +8559,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8561
8559
|
bloodPressure: z.ZodOptional<z.ZodObject<{
|
|
8562
8560
|
systolic: z.ZodNumber;
|
|
8563
8561
|
diastolic: z.ZodNumber;
|
|
8564
|
-
lastMeasured: z.ZodObject<{
|
|
8562
|
+
lastMeasured: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8565
8563
|
seconds: z.ZodNumber;
|
|
8566
8564
|
nanoseconds: z.ZodNumber;
|
|
8567
8565
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8570,18 +8568,18 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8570
8568
|
}, {
|
|
8571
8569
|
seconds: number;
|
|
8572
8570
|
nanoseconds: number;
|
|
8571
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8572
|
+
seconds: number;
|
|
8573
|
+
nanoseconds: number;
|
|
8573
8574
|
}>;
|
|
8574
8575
|
}, "strip", z.ZodTypeAny, {
|
|
8575
8576
|
systolic: number;
|
|
8576
8577
|
diastolic: number;
|
|
8577
|
-
lastMeasured:
|
|
8578
|
-
seconds: number;
|
|
8579
|
-
nanoseconds: number;
|
|
8580
|
-
};
|
|
8578
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
8581
8579
|
}, {
|
|
8582
8580
|
systolic: number;
|
|
8583
8581
|
diastolic: number;
|
|
8584
|
-
lastMeasured: {
|
|
8582
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
8585
8583
|
seconds: number;
|
|
8586
8584
|
nanoseconds: number;
|
|
8587
8585
|
};
|
|
@@ -8593,10 +8591,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8593
8591
|
bloodPressure?: {
|
|
8594
8592
|
systolic: number;
|
|
8595
8593
|
diastolic: number;
|
|
8596
|
-
lastMeasured:
|
|
8597
|
-
seconds: number;
|
|
8598
|
-
nanoseconds: number;
|
|
8599
|
-
};
|
|
8594
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
8600
8595
|
} | undefined;
|
|
8601
8596
|
}, {
|
|
8602
8597
|
height?: number | undefined;
|
|
@@ -8605,7 +8600,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8605
8600
|
bloodPressure?: {
|
|
8606
8601
|
systolic: number;
|
|
8607
8602
|
diastolic: number;
|
|
8608
|
-
lastMeasured: {
|
|
8603
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
8609
8604
|
seconds: number;
|
|
8610
8605
|
nanoseconds: number;
|
|
8611
8606
|
};
|
|
@@ -8613,7 +8608,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8613
8608
|
}>;
|
|
8614
8609
|
blockingConditions: z.ZodArray<z.ZodObject<{
|
|
8615
8610
|
condition: z.ZodNativeEnum<typeof BlockingCondition>;
|
|
8616
|
-
diagnosedAt: z.ZodObject<{
|
|
8611
|
+
diagnosedAt: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8617
8612
|
seconds: z.ZodNumber;
|
|
8618
8613
|
nanoseconds: z.ZodNumber;
|
|
8619
8614
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8622,21 +8617,21 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8622
8617
|
}, {
|
|
8623
8618
|
seconds: number;
|
|
8624
8619
|
nanoseconds: number;
|
|
8620
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8621
|
+
seconds: number;
|
|
8622
|
+
nanoseconds: number;
|
|
8625
8623
|
}>;
|
|
8626
8624
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8627
8625
|
isActive: z.ZodBoolean;
|
|
8628
8626
|
}, "strip", z.ZodTypeAny, {
|
|
8629
8627
|
isActive: boolean;
|
|
8630
8628
|
condition: BlockingCondition;
|
|
8631
|
-
diagnosedAt:
|
|
8632
|
-
seconds: number;
|
|
8633
|
-
nanoseconds: number;
|
|
8634
|
-
};
|
|
8629
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
8635
8630
|
notes?: string | null | undefined;
|
|
8636
8631
|
}, {
|
|
8637
8632
|
isActive: boolean;
|
|
8638
8633
|
condition: BlockingCondition;
|
|
8639
|
-
diagnosedAt: {
|
|
8634
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
8640
8635
|
seconds: number;
|
|
8641
8636
|
nanoseconds: number;
|
|
8642
8637
|
};
|
|
@@ -8644,7 +8639,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8644
8639
|
}>, "many">;
|
|
8645
8640
|
contraindications: z.ZodArray<z.ZodObject<{
|
|
8646
8641
|
condition: z.ZodNativeEnum<typeof Contraindication>;
|
|
8647
|
-
lastOccurrence: z.ZodObject<{
|
|
8642
|
+
lastOccurrence: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8648
8643
|
seconds: z.ZodNumber;
|
|
8649
8644
|
nanoseconds: z.ZodNumber;
|
|
8650
8645
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8653,6 +8648,9 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8653
8648
|
}, {
|
|
8654
8649
|
seconds: number;
|
|
8655
8650
|
nanoseconds: number;
|
|
8651
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8652
|
+
seconds: number;
|
|
8653
|
+
nanoseconds: number;
|
|
8656
8654
|
}>;
|
|
8657
8655
|
frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
|
|
8658
8656
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -8660,16 +8658,13 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8660
8658
|
}, "strip", z.ZodTypeAny, {
|
|
8661
8659
|
isActive: boolean;
|
|
8662
8660
|
condition: Contraindication;
|
|
8663
|
-
lastOccurrence:
|
|
8664
|
-
seconds: number;
|
|
8665
|
-
nanoseconds: number;
|
|
8666
|
-
};
|
|
8661
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
8667
8662
|
frequency: "rare" | "occasional" | "frequent";
|
|
8668
8663
|
notes?: string | null | undefined;
|
|
8669
8664
|
}, {
|
|
8670
8665
|
isActive: boolean;
|
|
8671
8666
|
condition: Contraindication;
|
|
8672
|
-
lastOccurrence: {
|
|
8667
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
8673
8668
|
seconds: number;
|
|
8674
8669
|
nanoseconds: number;
|
|
8675
8670
|
};
|
|
@@ -8682,7 +8677,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8682
8677
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8683
8678
|
severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
|
|
8684
8679
|
reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8685
|
-
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8680
|
+
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8686
8681
|
seconds: z.ZodNumber;
|
|
8687
8682
|
nanoseconds: z.ZodNumber;
|
|
8688
8683
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8691,6 +8686,9 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8691
8686
|
}, {
|
|
8692
8687
|
seconds: number;
|
|
8693
8688
|
nanoseconds: number;
|
|
8689
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8690
|
+
seconds: number;
|
|
8691
|
+
nanoseconds: number;
|
|
8694
8692
|
}>>>;
|
|
8695
8693
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8696
8694
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8699,10 +8697,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8699
8697
|
name?: string | null | undefined;
|
|
8700
8698
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
8701
8699
|
reaction?: string | null | undefined;
|
|
8702
|
-
diagnosed?:
|
|
8703
|
-
seconds: number;
|
|
8704
|
-
nanoseconds: number;
|
|
8705
|
-
} | null | undefined;
|
|
8700
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
8706
8701
|
notes?: string | null | undefined;
|
|
8707
8702
|
}, {
|
|
8708
8703
|
type: AllergyType;
|
|
@@ -8710,7 +8705,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8710
8705
|
name?: string | null | undefined;
|
|
8711
8706
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
8712
8707
|
reaction?: string | null | undefined;
|
|
8713
|
-
diagnosed?: {
|
|
8708
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
8714
8709
|
seconds: number;
|
|
8715
8710
|
nanoseconds: number;
|
|
8716
8711
|
} | null | undefined;
|
|
@@ -8720,7 +8715,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8720
8715
|
name: z.ZodString;
|
|
8721
8716
|
dosage: z.ZodString;
|
|
8722
8717
|
frequency: z.ZodString;
|
|
8723
|
-
startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8718
|
+
startDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8724
8719
|
seconds: z.ZodNumber;
|
|
8725
8720
|
nanoseconds: z.ZodNumber;
|
|
8726
8721
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8729,8 +8724,11 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8729
8724
|
}, {
|
|
8730
8725
|
seconds: number;
|
|
8731
8726
|
nanoseconds: number;
|
|
8727
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8728
|
+
seconds: number;
|
|
8729
|
+
nanoseconds: number;
|
|
8732
8730
|
}>>>;
|
|
8733
|
-
endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
8731
|
+
endDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8734
8732
|
seconds: z.ZodNumber;
|
|
8735
8733
|
nanoseconds: z.ZodNumber;
|
|
8736
8734
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8739,37 +8737,34 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8739
8737
|
}, {
|
|
8740
8738
|
seconds: number;
|
|
8741
8739
|
nanoseconds: number;
|
|
8740
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8741
|
+
seconds: number;
|
|
8742
|
+
nanoseconds: number;
|
|
8742
8743
|
}>>>;
|
|
8743
8744
|
prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8744
8745
|
}, "strip", z.ZodTypeAny, {
|
|
8745
8746
|
name: string;
|
|
8746
8747
|
dosage: string;
|
|
8747
8748
|
frequency: string;
|
|
8748
|
-
startDate?:
|
|
8749
|
-
|
|
8750
|
-
nanoseconds: number;
|
|
8751
|
-
} | null | undefined;
|
|
8752
|
-
endDate?: {
|
|
8753
|
-
seconds: number;
|
|
8754
|
-
nanoseconds: number;
|
|
8755
|
-
} | null | undefined;
|
|
8749
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
8750
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
8756
8751
|
prescribedBy?: string | null | undefined;
|
|
8757
8752
|
}, {
|
|
8758
8753
|
name: string;
|
|
8759
8754
|
dosage: string;
|
|
8760
8755
|
frequency: string;
|
|
8761
|
-
startDate?: {
|
|
8756
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
8762
8757
|
seconds: number;
|
|
8763
8758
|
nanoseconds: number;
|
|
8764
8759
|
} | null | undefined;
|
|
8765
|
-
endDate?: {
|
|
8760
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
8766
8761
|
seconds: number;
|
|
8767
8762
|
nanoseconds: number;
|
|
8768
8763
|
} | null | undefined;
|
|
8769
8764
|
prescribedBy?: string | null | undefined;
|
|
8770
8765
|
}>, "many">;
|
|
8771
8766
|
emergencyNotes: z.ZodOptional<z.ZodString>;
|
|
8772
|
-
lastUpdated: z.ZodObject<{
|
|
8767
|
+
lastUpdated: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8773
8768
|
seconds: z.ZodNumber;
|
|
8774
8769
|
nanoseconds: z.ZodNumber;
|
|
8775
8770
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8778,10 +8773,13 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8778
8773
|
}, {
|
|
8779
8774
|
seconds: number;
|
|
8780
8775
|
nanoseconds: number;
|
|
8776
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8777
|
+
seconds: number;
|
|
8778
|
+
nanoseconds: number;
|
|
8781
8779
|
}>;
|
|
8782
8780
|
updatedBy: z.ZodString;
|
|
8783
8781
|
verifiedBy: z.ZodOptional<z.ZodString>;
|
|
8784
|
-
verifiedAt: z.ZodOptional<z.ZodObject<{
|
|
8782
|
+
verifiedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8785
8783
|
seconds: z.ZodNumber;
|
|
8786
8784
|
nanoseconds: z.ZodNumber;
|
|
8787
8785
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8790,23 +8788,20 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8790
8788
|
}, {
|
|
8791
8789
|
seconds: number;
|
|
8792
8790
|
nanoseconds: number;
|
|
8791
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8792
|
+
seconds: number;
|
|
8793
|
+
nanoseconds: number;
|
|
8793
8794
|
}>>;
|
|
8794
8795
|
}, "strip", z.ZodTypeAny, {
|
|
8795
8796
|
contraindications: {
|
|
8796
8797
|
isActive: boolean;
|
|
8797
8798
|
condition: Contraindication;
|
|
8798
|
-
lastOccurrence:
|
|
8799
|
-
seconds: number;
|
|
8800
|
-
nanoseconds: number;
|
|
8801
|
-
};
|
|
8799
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
8802
8800
|
frequency: "rare" | "occasional" | "frequent";
|
|
8803
8801
|
notes?: string | null | undefined;
|
|
8804
8802
|
}[];
|
|
8805
8803
|
patientId: string;
|
|
8806
|
-
lastUpdated:
|
|
8807
|
-
seconds: number;
|
|
8808
|
-
nanoseconds: number;
|
|
8809
|
-
};
|
|
8804
|
+
lastUpdated: _firebase_firestore.Timestamp;
|
|
8810
8805
|
updatedBy: string;
|
|
8811
8806
|
vitalStats: {
|
|
8812
8807
|
height?: number | undefined;
|
|
@@ -8815,19 +8810,13 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8815
8810
|
bloodPressure?: {
|
|
8816
8811
|
systolic: number;
|
|
8817
8812
|
diastolic: number;
|
|
8818
|
-
lastMeasured:
|
|
8819
|
-
seconds: number;
|
|
8820
|
-
nanoseconds: number;
|
|
8821
|
-
};
|
|
8813
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
8822
8814
|
} | undefined;
|
|
8823
8815
|
};
|
|
8824
8816
|
blockingConditions: {
|
|
8825
8817
|
isActive: boolean;
|
|
8826
8818
|
condition: BlockingCondition;
|
|
8827
|
-
diagnosedAt:
|
|
8828
|
-
seconds: number;
|
|
8829
|
-
nanoseconds: number;
|
|
8830
|
-
};
|
|
8819
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
8831
8820
|
notes?: string | null | undefined;
|
|
8832
8821
|
}[];
|
|
8833
8822
|
allergies: {
|
|
@@ -8836,37 +8825,25 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8836
8825
|
name?: string | null | undefined;
|
|
8837
8826
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
8838
8827
|
reaction?: string | null | undefined;
|
|
8839
|
-
diagnosed?:
|
|
8840
|
-
seconds: number;
|
|
8841
|
-
nanoseconds: number;
|
|
8842
|
-
} | null | undefined;
|
|
8828
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
8843
8829
|
notes?: string | null | undefined;
|
|
8844
8830
|
}[];
|
|
8845
8831
|
currentMedications: {
|
|
8846
8832
|
name: string;
|
|
8847
8833
|
dosage: string;
|
|
8848
8834
|
frequency: string;
|
|
8849
|
-
startDate?:
|
|
8850
|
-
|
|
8851
|
-
nanoseconds: number;
|
|
8852
|
-
} | null | undefined;
|
|
8853
|
-
endDate?: {
|
|
8854
|
-
seconds: number;
|
|
8855
|
-
nanoseconds: number;
|
|
8856
|
-
} | null | undefined;
|
|
8835
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
8836
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
8857
8837
|
prescribedBy?: string | null | undefined;
|
|
8858
8838
|
}[];
|
|
8859
8839
|
verifiedBy?: string | undefined;
|
|
8860
|
-
verifiedAt?:
|
|
8861
|
-
seconds: number;
|
|
8862
|
-
nanoseconds: number;
|
|
8863
|
-
} | undefined;
|
|
8840
|
+
verifiedAt?: _firebase_firestore.Timestamp | undefined;
|
|
8864
8841
|
emergencyNotes?: string | undefined;
|
|
8865
8842
|
}, {
|
|
8866
8843
|
contraindications: {
|
|
8867
8844
|
isActive: boolean;
|
|
8868
8845
|
condition: Contraindication;
|
|
8869
|
-
lastOccurrence: {
|
|
8846
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
8870
8847
|
seconds: number;
|
|
8871
8848
|
nanoseconds: number;
|
|
8872
8849
|
};
|
|
@@ -8874,7 +8851,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8874
8851
|
notes?: string | null | undefined;
|
|
8875
8852
|
}[];
|
|
8876
8853
|
patientId: string;
|
|
8877
|
-
lastUpdated: {
|
|
8854
|
+
lastUpdated: _firebase_firestore.Timestamp | {
|
|
8878
8855
|
seconds: number;
|
|
8879
8856
|
nanoseconds: number;
|
|
8880
8857
|
};
|
|
@@ -8886,7 +8863,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8886
8863
|
bloodPressure?: {
|
|
8887
8864
|
systolic: number;
|
|
8888
8865
|
diastolic: number;
|
|
8889
|
-
lastMeasured: {
|
|
8866
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
8890
8867
|
seconds: number;
|
|
8891
8868
|
nanoseconds: number;
|
|
8892
8869
|
};
|
|
@@ -8895,7 +8872,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8895
8872
|
blockingConditions: {
|
|
8896
8873
|
isActive: boolean;
|
|
8897
8874
|
condition: BlockingCondition;
|
|
8898
|
-
diagnosedAt: {
|
|
8875
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
8899
8876
|
seconds: number;
|
|
8900
8877
|
nanoseconds: number;
|
|
8901
8878
|
};
|
|
@@ -8907,7 +8884,7 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8907
8884
|
name?: string | null | undefined;
|
|
8908
8885
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
8909
8886
|
reaction?: string | null | undefined;
|
|
8910
|
-
diagnosed?: {
|
|
8887
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
8911
8888
|
seconds: number;
|
|
8912
8889
|
nanoseconds: number;
|
|
8913
8890
|
} | null | undefined;
|
|
@@ -8917,18 +8894,18 @@ declare const patientMedicalInfoSchema: z.ZodObject<{
|
|
|
8917
8894
|
name: string;
|
|
8918
8895
|
dosage: string;
|
|
8919
8896
|
frequency: string;
|
|
8920
|
-
startDate?: {
|
|
8897
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
8921
8898
|
seconds: number;
|
|
8922
8899
|
nanoseconds: number;
|
|
8923
8900
|
} | null | undefined;
|
|
8924
|
-
endDate?: {
|
|
8901
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
8925
8902
|
seconds: number;
|
|
8926
8903
|
nanoseconds: number;
|
|
8927
8904
|
} | null | undefined;
|
|
8928
8905
|
prescribedBy?: string | null | undefined;
|
|
8929
8906
|
}[];
|
|
8930
8907
|
verifiedBy?: string | undefined;
|
|
8931
|
-
verifiedAt?: {
|
|
8908
|
+
verifiedAt?: _firebase_firestore.Timestamp | {
|
|
8932
8909
|
seconds: number;
|
|
8933
8910
|
nanoseconds: number;
|
|
8934
8911
|
} | undefined;
|
|
@@ -8943,7 +8920,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
8943
8920
|
bloodPressure: z.ZodOptional<z.ZodObject<{
|
|
8944
8921
|
systolic: z.ZodNumber;
|
|
8945
8922
|
diastolic: z.ZodNumber;
|
|
8946
|
-
lastMeasured: z.ZodObject<{
|
|
8923
|
+
lastMeasured: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8947
8924
|
seconds: z.ZodNumber;
|
|
8948
8925
|
nanoseconds: z.ZodNumber;
|
|
8949
8926
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8952,18 +8929,18 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
8952
8929
|
}, {
|
|
8953
8930
|
seconds: number;
|
|
8954
8931
|
nanoseconds: number;
|
|
8932
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8933
|
+
seconds: number;
|
|
8934
|
+
nanoseconds: number;
|
|
8955
8935
|
}>;
|
|
8956
8936
|
}, "strip", z.ZodTypeAny, {
|
|
8957
8937
|
systolic: number;
|
|
8958
8938
|
diastolic: number;
|
|
8959
|
-
lastMeasured:
|
|
8960
|
-
seconds: number;
|
|
8961
|
-
nanoseconds: number;
|
|
8962
|
-
};
|
|
8939
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
8963
8940
|
}, {
|
|
8964
8941
|
systolic: number;
|
|
8965
8942
|
diastolic: number;
|
|
8966
|
-
lastMeasured: {
|
|
8943
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
8967
8944
|
seconds: number;
|
|
8968
8945
|
nanoseconds: number;
|
|
8969
8946
|
};
|
|
@@ -8975,10 +8952,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
8975
8952
|
bloodPressure?: {
|
|
8976
8953
|
systolic: number;
|
|
8977
8954
|
diastolic: number;
|
|
8978
|
-
lastMeasured:
|
|
8979
|
-
seconds: number;
|
|
8980
|
-
nanoseconds: number;
|
|
8981
|
-
};
|
|
8955
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
8982
8956
|
} | undefined;
|
|
8983
8957
|
}, {
|
|
8984
8958
|
height?: number | undefined;
|
|
@@ -8987,7 +8961,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
8987
8961
|
bloodPressure?: {
|
|
8988
8962
|
systolic: number;
|
|
8989
8963
|
diastolic: number;
|
|
8990
|
-
lastMeasured: {
|
|
8964
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
8991
8965
|
seconds: number;
|
|
8992
8966
|
nanoseconds: number;
|
|
8993
8967
|
};
|
|
@@ -8995,7 +8969,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
8995
8969
|
}>;
|
|
8996
8970
|
blockingConditions: z.ZodArray<z.ZodObject<{
|
|
8997
8971
|
condition: z.ZodNativeEnum<typeof BlockingCondition>;
|
|
8998
|
-
diagnosedAt: z.ZodObject<{
|
|
8972
|
+
diagnosedAt: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
8999
8973
|
seconds: z.ZodNumber;
|
|
9000
8974
|
nanoseconds: z.ZodNumber;
|
|
9001
8975
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9004,21 +8978,21 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9004
8978
|
}, {
|
|
9005
8979
|
seconds: number;
|
|
9006
8980
|
nanoseconds: number;
|
|
8981
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
8982
|
+
seconds: number;
|
|
8983
|
+
nanoseconds: number;
|
|
9007
8984
|
}>;
|
|
9008
8985
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9009
8986
|
isActive: z.ZodBoolean;
|
|
9010
8987
|
}, "strip", z.ZodTypeAny, {
|
|
9011
8988
|
isActive: boolean;
|
|
9012
8989
|
condition: BlockingCondition;
|
|
9013
|
-
diagnosedAt:
|
|
9014
|
-
seconds: number;
|
|
9015
|
-
nanoseconds: number;
|
|
9016
|
-
};
|
|
8990
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
9017
8991
|
notes?: string | null | undefined;
|
|
9018
8992
|
}, {
|
|
9019
8993
|
isActive: boolean;
|
|
9020
8994
|
condition: BlockingCondition;
|
|
9021
|
-
diagnosedAt: {
|
|
8995
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
9022
8996
|
seconds: number;
|
|
9023
8997
|
nanoseconds: number;
|
|
9024
8998
|
};
|
|
@@ -9026,7 +9000,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9026
9000
|
}>, "many">;
|
|
9027
9001
|
contraindications: z.ZodArray<z.ZodObject<{
|
|
9028
9002
|
condition: z.ZodNativeEnum<typeof Contraindication>;
|
|
9029
|
-
lastOccurrence: z.ZodObject<{
|
|
9003
|
+
lastOccurrence: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9030
9004
|
seconds: z.ZodNumber;
|
|
9031
9005
|
nanoseconds: z.ZodNumber;
|
|
9032
9006
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9035,6 +9009,9 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9035
9009
|
}, {
|
|
9036
9010
|
seconds: number;
|
|
9037
9011
|
nanoseconds: number;
|
|
9012
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9013
|
+
seconds: number;
|
|
9014
|
+
nanoseconds: number;
|
|
9038
9015
|
}>;
|
|
9039
9016
|
frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
|
|
9040
9017
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -9042,16 +9019,13 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9042
9019
|
}, "strip", z.ZodTypeAny, {
|
|
9043
9020
|
isActive: boolean;
|
|
9044
9021
|
condition: Contraindication;
|
|
9045
|
-
lastOccurrence:
|
|
9046
|
-
seconds: number;
|
|
9047
|
-
nanoseconds: number;
|
|
9048
|
-
};
|
|
9022
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
9049
9023
|
frequency: "rare" | "occasional" | "frequent";
|
|
9050
9024
|
notes?: string | null | undefined;
|
|
9051
9025
|
}, {
|
|
9052
9026
|
isActive: boolean;
|
|
9053
9027
|
condition: Contraindication;
|
|
9054
|
-
lastOccurrence: {
|
|
9028
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
9055
9029
|
seconds: number;
|
|
9056
9030
|
nanoseconds: number;
|
|
9057
9031
|
};
|
|
@@ -9064,7 +9038,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9064
9038
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9065
9039
|
severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
|
|
9066
9040
|
reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9067
|
-
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9041
|
+
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9068
9042
|
seconds: z.ZodNumber;
|
|
9069
9043
|
nanoseconds: z.ZodNumber;
|
|
9070
9044
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9073,6 +9047,9 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9073
9047
|
}, {
|
|
9074
9048
|
seconds: number;
|
|
9075
9049
|
nanoseconds: number;
|
|
9050
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9051
|
+
seconds: number;
|
|
9052
|
+
nanoseconds: number;
|
|
9076
9053
|
}>>>;
|
|
9077
9054
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9078
9055
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9081,10 +9058,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9081
9058
|
name?: string | null | undefined;
|
|
9082
9059
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9083
9060
|
reaction?: string | null | undefined;
|
|
9084
|
-
diagnosed?:
|
|
9085
|
-
seconds: number;
|
|
9086
|
-
nanoseconds: number;
|
|
9087
|
-
} | null | undefined;
|
|
9061
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
9088
9062
|
notes?: string | null | undefined;
|
|
9089
9063
|
}, {
|
|
9090
9064
|
type: AllergyType;
|
|
@@ -9092,7 +9066,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9092
9066
|
name?: string | null | undefined;
|
|
9093
9067
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9094
9068
|
reaction?: string | null | undefined;
|
|
9095
|
-
diagnosed?: {
|
|
9069
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
9096
9070
|
seconds: number;
|
|
9097
9071
|
nanoseconds: number;
|
|
9098
9072
|
} | null | undefined;
|
|
@@ -9102,7 +9076,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9102
9076
|
name: z.ZodString;
|
|
9103
9077
|
dosage: z.ZodString;
|
|
9104
9078
|
frequency: z.ZodString;
|
|
9105
|
-
startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9079
|
+
startDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9106
9080
|
seconds: z.ZodNumber;
|
|
9107
9081
|
nanoseconds: z.ZodNumber;
|
|
9108
9082
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9111,8 +9085,11 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9111
9085
|
}, {
|
|
9112
9086
|
seconds: number;
|
|
9113
9087
|
nanoseconds: number;
|
|
9088
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9089
|
+
seconds: number;
|
|
9090
|
+
nanoseconds: number;
|
|
9114
9091
|
}>>>;
|
|
9115
|
-
endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9092
|
+
endDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9116
9093
|
seconds: z.ZodNumber;
|
|
9117
9094
|
nanoseconds: z.ZodNumber;
|
|
9118
9095
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9121,37 +9098,34 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9121
9098
|
}, {
|
|
9122
9099
|
seconds: number;
|
|
9123
9100
|
nanoseconds: number;
|
|
9101
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9102
|
+
seconds: number;
|
|
9103
|
+
nanoseconds: number;
|
|
9124
9104
|
}>>>;
|
|
9125
9105
|
prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9126
9106
|
}, "strip", z.ZodTypeAny, {
|
|
9127
9107
|
name: string;
|
|
9128
9108
|
dosage: string;
|
|
9129
9109
|
frequency: string;
|
|
9130
|
-
startDate?:
|
|
9131
|
-
|
|
9132
|
-
nanoseconds: number;
|
|
9133
|
-
} | null | undefined;
|
|
9134
|
-
endDate?: {
|
|
9135
|
-
seconds: number;
|
|
9136
|
-
nanoseconds: number;
|
|
9137
|
-
} | null | undefined;
|
|
9110
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9111
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9138
9112
|
prescribedBy?: string | null | undefined;
|
|
9139
9113
|
}, {
|
|
9140
9114
|
name: string;
|
|
9141
9115
|
dosage: string;
|
|
9142
9116
|
frequency: string;
|
|
9143
|
-
startDate?: {
|
|
9117
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
9144
9118
|
seconds: number;
|
|
9145
9119
|
nanoseconds: number;
|
|
9146
9120
|
} | null | undefined;
|
|
9147
|
-
endDate?: {
|
|
9121
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
9148
9122
|
seconds: number;
|
|
9149
9123
|
nanoseconds: number;
|
|
9150
9124
|
} | null | undefined;
|
|
9151
9125
|
prescribedBy?: string | null | undefined;
|
|
9152
9126
|
}>, "many">;
|
|
9153
9127
|
emergencyNotes: z.ZodOptional<z.ZodString>;
|
|
9154
|
-
lastUpdated: z.ZodObject<{
|
|
9128
|
+
lastUpdated: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9155
9129
|
seconds: z.ZodNumber;
|
|
9156
9130
|
nanoseconds: z.ZodNumber;
|
|
9157
9131
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9160,10 +9134,13 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9160
9134
|
}, {
|
|
9161
9135
|
seconds: number;
|
|
9162
9136
|
nanoseconds: number;
|
|
9137
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9138
|
+
seconds: number;
|
|
9139
|
+
nanoseconds: number;
|
|
9163
9140
|
}>;
|
|
9164
9141
|
updatedBy: z.ZodString;
|
|
9165
9142
|
verifiedBy: z.ZodOptional<z.ZodString>;
|
|
9166
|
-
verifiedAt: z.ZodOptional<z.ZodObject<{
|
|
9143
|
+
verifiedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9167
9144
|
seconds: z.ZodNumber;
|
|
9168
9145
|
nanoseconds: z.ZodNumber;
|
|
9169
9146
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9172,15 +9149,15 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9172
9149
|
}, {
|
|
9173
9150
|
seconds: number;
|
|
9174
9151
|
nanoseconds: number;
|
|
9152
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9153
|
+
seconds: number;
|
|
9154
|
+
nanoseconds: number;
|
|
9175
9155
|
}>>;
|
|
9176
9156
|
}, "patientId" | "lastUpdated" | "updatedBy" | "verifiedBy" | "verifiedAt">, "strip", z.ZodTypeAny, {
|
|
9177
9157
|
contraindications: {
|
|
9178
9158
|
isActive: boolean;
|
|
9179
9159
|
condition: Contraindication;
|
|
9180
|
-
lastOccurrence:
|
|
9181
|
-
seconds: number;
|
|
9182
|
-
nanoseconds: number;
|
|
9183
|
-
};
|
|
9160
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
9184
9161
|
frequency: "rare" | "occasional" | "frequent";
|
|
9185
9162
|
notes?: string | null | undefined;
|
|
9186
9163
|
}[];
|
|
@@ -9191,19 +9168,13 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9191
9168
|
bloodPressure?: {
|
|
9192
9169
|
systolic: number;
|
|
9193
9170
|
diastolic: number;
|
|
9194
|
-
lastMeasured:
|
|
9195
|
-
seconds: number;
|
|
9196
|
-
nanoseconds: number;
|
|
9197
|
-
};
|
|
9171
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
9198
9172
|
} | undefined;
|
|
9199
9173
|
};
|
|
9200
9174
|
blockingConditions: {
|
|
9201
9175
|
isActive: boolean;
|
|
9202
9176
|
condition: BlockingCondition;
|
|
9203
|
-
diagnosedAt:
|
|
9204
|
-
seconds: number;
|
|
9205
|
-
nanoseconds: number;
|
|
9206
|
-
};
|
|
9177
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
9207
9178
|
notes?: string | null | undefined;
|
|
9208
9179
|
}[];
|
|
9209
9180
|
allergies: {
|
|
@@ -9212,24 +9183,15 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9212
9183
|
name?: string | null | undefined;
|
|
9213
9184
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9214
9185
|
reaction?: string | null | undefined;
|
|
9215
|
-
diagnosed?:
|
|
9216
|
-
seconds: number;
|
|
9217
|
-
nanoseconds: number;
|
|
9218
|
-
} | null | undefined;
|
|
9186
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
9219
9187
|
notes?: string | null | undefined;
|
|
9220
9188
|
}[];
|
|
9221
9189
|
currentMedications: {
|
|
9222
9190
|
name: string;
|
|
9223
9191
|
dosage: string;
|
|
9224
9192
|
frequency: string;
|
|
9225
|
-
startDate?:
|
|
9226
|
-
|
|
9227
|
-
nanoseconds: number;
|
|
9228
|
-
} | null | undefined;
|
|
9229
|
-
endDate?: {
|
|
9230
|
-
seconds: number;
|
|
9231
|
-
nanoseconds: number;
|
|
9232
|
-
} | null | undefined;
|
|
9193
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9194
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9233
9195
|
prescribedBy?: string | null | undefined;
|
|
9234
9196
|
}[];
|
|
9235
9197
|
emergencyNotes?: string | undefined;
|
|
@@ -9237,7 +9199,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9237
9199
|
contraindications: {
|
|
9238
9200
|
isActive: boolean;
|
|
9239
9201
|
condition: Contraindication;
|
|
9240
|
-
lastOccurrence: {
|
|
9202
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
9241
9203
|
seconds: number;
|
|
9242
9204
|
nanoseconds: number;
|
|
9243
9205
|
};
|
|
@@ -9251,7 +9213,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9251
9213
|
bloodPressure?: {
|
|
9252
9214
|
systolic: number;
|
|
9253
9215
|
diastolic: number;
|
|
9254
|
-
lastMeasured: {
|
|
9216
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
9255
9217
|
seconds: number;
|
|
9256
9218
|
nanoseconds: number;
|
|
9257
9219
|
};
|
|
@@ -9260,7 +9222,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9260
9222
|
blockingConditions: {
|
|
9261
9223
|
isActive: boolean;
|
|
9262
9224
|
condition: BlockingCondition;
|
|
9263
|
-
diagnosedAt: {
|
|
9225
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
9264
9226
|
seconds: number;
|
|
9265
9227
|
nanoseconds: number;
|
|
9266
9228
|
};
|
|
@@ -9272,7 +9234,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9272
9234
|
name?: string | null | undefined;
|
|
9273
9235
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9274
9236
|
reaction?: string | null | undefined;
|
|
9275
|
-
diagnosed?: {
|
|
9237
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
9276
9238
|
seconds: number;
|
|
9277
9239
|
nanoseconds: number;
|
|
9278
9240
|
} | null | undefined;
|
|
@@ -9282,11 +9244,11 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9282
9244
|
name: string;
|
|
9283
9245
|
dosage: string;
|
|
9284
9246
|
frequency: string;
|
|
9285
|
-
startDate?: {
|
|
9247
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
9286
9248
|
seconds: number;
|
|
9287
9249
|
nanoseconds: number;
|
|
9288
9250
|
} | null | undefined;
|
|
9289
|
-
endDate?: {
|
|
9251
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
9290
9252
|
seconds: number;
|
|
9291
9253
|
nanoseconds: number;
|
|
9292
9254
|
} | null | undefined;
|
|
@@ -9297,7 +9259,7 @@ declare const createPatientMedicalInfoSchema: z.ZodObject<Omit<{
|
|
|
9297
9259
|
declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
9298
9260
|
contraindications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9299
9261
|
condition: z.ZodNativeEnum<typeof Contraindication>;
|
|
9300
|
-
lastOccurrence: z.ZodObject<{
|
|
9262
|
+
lastOccurrence: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9301
9263
|
seconds: z.ZodNumber;
|
|
9302
9264
|
nanoseconds: z.ZodNumber;
|
|
9303
9265
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9306,6 +9268,9 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9306
9268
|
}, {
|
|
9307
9269
|
seconds: number;
|
|
9308
9270
|
nanoseconds: number;
|
|
9271
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9272
|
+
seconds: number;
|
|
9273
|
+
nanoseconds: number;
|
|
9309
9274
|
}>;
|
|
9310
9275
|
frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
|
|
9311
9276
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -9313,16 +9278,13 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9313
9278
|
}, "strip", z.ZodTypeAny, {
|
|
9314
9279
|
isActive: boolean;
|
|
9315
9280
|
condition: Contraindication;
|
|
9316
|
-
lastOccurrence:
|
|
9317
|
-
seconds: number;
|
|
9318
|
-
nanoseconds: number;
|
|
9319
|
-
};
|
|
9281
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
9320
9282
|
frequency: "rare" | "occasional" | "frequent";
|
|
9321
9283
|
notes?: string | null | undefined;
|
|
9322
9284
|
}, {
|
|
9323
9285
|
isActive: boolean;
|
|
9324
9286
|
condition: Contraindication;
|
|
9325
|
-
lastOccurrence: {
|
|
9287
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
9326
9288
|
seconds: number;
|
|
9327
9289
|
nanoseconds: number;
|
|
9328
9290
|
};
|
|
@@ -9336,7 +9298,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9336
9298
|
bloodPressure: z.ZodOptional<z.ZodObject<{
|
|
9337
9299
|
systolic: z.ZodNumber;
|
|
9338
9300
|
diastolic: z.ZodNumber;
|
|
9339
|
-
lastMeasured: z.ZodObject<{
|
|
9301
|
+
lastMeasured: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9340
9302
|
seconds: z.ZodNumber;
|
|
9341
9303
|
nanoseconds: z.ZodNumber;
|
|
9342
9304
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9345,18 +9307,18 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9345
9307
|
}, {
|
|
9346
9308
|
seconds: number;
|
|
9347
9309
|
nanoseconds: number;
|
|
9310
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9311
|
+
seconds: number;
|
|
9312
|
+
nanoseconds: number;
|
|
9348
9313
|
}>;
|
|
9349
9314
|
}, "strip", z.ZodTypeAny, {
|
|
9350
9315
|
systolic: number;
|
|
9351
9316
|
diastolic: number;
|
|
9352
|
-
lastMeasured:
|
|
9353
|
-
seconds: number;
|
|
9354
|
-
nanoseconds: number;
|
|
9355
|
-
};
|
|
9317
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
9356
9318
|
}, {
|
|
9357
9319
|
systolic: number;
|
|
9358
9320
|
diastolic: number;
|
|
9359
|
-
lastMeasured: {
|
|
9321
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
9360
9322
|
seconds: number;
|
|
9361
9323
|
nanoseconds: number;
|
|
9362
9324
|
};
|
|
@@ -9368,10 +9330,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9368
9330
|
bloodPressure?: {
|
|
9369
9331
|
systolic: number;
|
|
9370
9332
|
diastolic: number;
|
|
9371
|
-
lastMeasured:
|
|
9372
|
-
seconds: number;
|
|
9373
|
-
nanoseconds: number;
|
|
9374
|
-
};
|
|
9333
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
9375
9334
|
} | undefined;
|
|
9376
9335
|
}, {
|
|
9377
9336
|
height?: number | undefined;
|
|
@@ -9380,7 +9339,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9380
9339
|
bloodPressure?: {
|
|
9381
9340
|
systolic: number;
|
|
9382
9341
|
diastolic: number;
|
|
9383
|
-
lastMeasured: {
|
|
9342
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
9384
9343
|
seconds: number;
|
|
9385
9344
|
nanoseconds: number;
|
|
9386
9345
|
};
|
|
@@ -9388,7 +9347,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9388
9347
|
}>>;
|
|
9389
9348
|
blockingConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9390
9349
|
condition: z.ZodNativeEnum<typeof BlockingCondition>;
|
|
9391
|
-
diagnosedAt: z.ZodObject<{
|
|
9350
|
+
diagnosedAt: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9392
9351
|
seconds: z.ZodNumber;
|
|
9393
9352
|
nanoseconds: z.ZodNumber;
|
|
9394
9353
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9397,21 +9356,21 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9397
9356
|
}, {
|
|
9398
9357
|
seconds: number;
|
|
9399
9358
|
nanoseconds: number;
|
|
9359
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9360
|
+
seconds: number;
|
|
9361
|
+
nanoseconds: number;
|
|
9400
9362
|
}>;
|
|
9401
9363
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9402
9364
|
isActive: z.ZodBoolean;
|
|
9403
9365
|
}, "strip", z.ZodTypeAny, {
|
|
9404
9366
|
isActive: boolean;
|
|
9405
9367
|
condition: BlockingCondition;
|
|
9406
|
-
diagnosedAt:
|
|
9407
|
-
seconds: number;
|
|
9408
|
-
nanoseconds: number;
|
|
9409
|
-
};
|
|
9368
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
9410
9369
|
notes?: string | null | undefined;
|
|
9411
9370
|
}, {
|
|
9412
9371
|
isActive: boolean;
|
|
9413
9372
|
condition: BlockingCondition;
|
|
9414
|
-
diagnosedAt: {
|
|
9373
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
9415
9374
|
seconds: number;
|
|
9416
9375
|
nanoseconds: number;
|
|
9417
9376
|
};
|
|
@@ -9423,7 +9382,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9423
9382
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9424
9383
|
severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
|
|
9425
9384
|
reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9426
|
-
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9385
|
+
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9427
9386
|
seconds: z.ZodNumber;
|
|
9428
9387
|
nanoseconds: z.ZodNumber;
|
|
9429
9388
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9432,6 +9391,9 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9432
9391
|
}, {
|
|
9433
9392
|
seconds: number;
|
|
9434
9393
|
nanoseconds: number;
|
|
9394
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9395
|
+
seconds: number;
|
|
9396
|
+
nanoseconds: number;
|
|
9435
9397
|
}>>>;
|
|
9436
9398
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9437
9399
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9440,10 +9402,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9440
9402
|
name?: string | null | undefined;
|
|
9441
9403
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9442
9404
|
reaction?: string | null | undefined;
|
|
9443
|
-
diagnosed?:
|
|
9444
|
-
seconds: number;
|
|
9445
|
-
nanoseconds: number;
|
|
9446
|
-
} | null | undefined;
|
|
9405
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
9447
9406
|
notes?: string | null | undefined;
|
|
9448
9407
|
}, {
|
|
9449
9408
|
type: AllergyType;
|
|
@@ -9451,7 +9410,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9451
9410
|
name?: string | null | undefined;
|
|
9452
9411
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9453
9412
|
reaction?: string | null | undefined;
|
|
9454
|
-
diagnosed?: {
|
|
9413
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
9455
9414
|
seconds: number;
|
|
9456
9415
|
nanoseconds: number;
|
|
9457
9416
|
} | null | undefined;
|
|
@@ -9461,7 +9420,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9461
9420
|
name: z.ZodString;
|
|
9462
9421
|
dosage: z.ZodString;
|
|
9463
9422
|
frequency: z.ZodString;
|
|
9464
|
-
startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9423
|
+
startDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9465
9424
|
seconds: z.ZodNumber;
|
|
9466
9425
|
nanoseconds: z.ZodNumber;
|
|
9467
9426
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9470,8 +9429,11 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9470
9429
|
}, {
|
|
9471
9430
|
seconds: number;
|
|
9472
9431
|
nanoseconds: number;
|
|
9432
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9433
|
+
seconds: number;
|
|
9434
|
+
nanoseconds: number;
|
|
9473
9435
|
}>>>;
|
|
9474
|
-
endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9436
|
+
endDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9475
9437
|
seconds: z.ZodNumber;
|
|
9476
9438
|
nanoseconds: z.ZodNumber;
|
|
9477
9439
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9480,30 +9442,27 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9480
9442
|
}, {
|
|
9481
9443
|
seconds: number;
|
|
9482
9444
|
nanoseconds: number;
|
|
9445
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9446
|
+
seconds: number;
|
|
9447
|
+
nanoseconds: number;
|
|
9483
9448
|
}>>>;
|
|
9484
9449
|
prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9485
9450
|
}, "strip", z.ZodTypeAny, {
|
|
9486
9451
|
name: string;
|
|
9487
9452
|
dosage: string;
|
|
9488
9453
|
frequency: string;
|
|
9489
|
-
startDate?:
|
|
9490
|
-
|
|
9491
|
-
nanoseconds: number;
|
|
9492
|
-
} | null | undefined;
|
|
9493
|
-
endDate?: {
|
|
9494
|
-
seconds: number;
|
|
9495
|
-
nanoseconds: number;
|
|
9496
|
-
} | null | undefined;
|
|
9454
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9455
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9497
9456
|
prescribedBy?: string | null | undefined;
|
|
9498
9457
|
}, {
|
|
9499
9458
|
name: string;
|
|
9500
9459
|
dosage: string;
|
|
9501
9460
|
frequency: string;
|
|
9502
|
-
startDate?: {
|
|
9461
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
9503
9462
|
seconds: number;
|
|
9504
9463
|
nanoseconds: number;
|
|
9505
9464
|
} | null | undefined;
|
|
9506
|
-
endDate?: {
|
|
9465
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
9507
9466
|
seconds: number;
|
|
9508
9467
|
nanoseconds: number;
|
|
9509
9468
|
} | null | undefined;
|
|
@@ -9514,10 +9473,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9514
9473
|
contraindications?: {
|
|
9515
9474
|
isActive: boolean;
|
|
9516
9475
|
condition: Contraindication;
|
|
9517
|
-
lastOccurrence:
|
|
9518
|
-
seconds: number;
|
|
9519
|
-
nanoseconds: number;
|
|
9520
|
-
};
|
|
9476
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
9521
9477
|
frequency: "rare" | "occasional" | "frequent";
|
|
9522
9478
|
notes?: string | null | undefined;
|
|
9523
9479
|
}[] | undefined;
|
|
@@ -9528,19 +9484,13 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9528
9484
|
bloodPressure?: {
|
|
9529
9485
|
systolic: number;
|
|
9530
9486
|
diastolic: number;
|
|
9531
|
-
lastMeasured:
|
|
9532
|
-
seconds: number;
|
|
9533
|
-
nanoseconds: number;
|
|
9534
|
-
};
|
|
9487
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
9535
9488
|
} | undefined;
|
|
9536
9489
|
} | undefined;
|
|
9537
9490
|
blockingConditions?: {
|
|
9538
9491
|
isActive: boolean;
|
|
9539
9492
|
condition: BlockingCondition;
|
|
9540
|
-
diagnosedAt:
|
|
9541
|
-
seconds: number;
|
|
9542
|
-
nanoseconds: number;
|
|
9543
|
-
};
|
|
9493
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
9544
9494
|
notes?: string | null | undefined;
|
|
9545
9495
|
}[] | undefined;
|
|
9546
9496
|
allergies?: {
|
|
@@ -9549,24 +9499,15 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9549
9499
|
name?: string | null | undefined;
|
|
9550
9500
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9551
9501
|
reaction?: string | null | undefined;
|
|
9552
|
-
diagnosed?:
|
|
9553
|
-
seconds: number;
|
|
9554
|
-
nanoseconds: number;
|
|
9555
|
-
} | null | undefined;
|
|
9502
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
9556
9503
|
notes?: string | null | undefined;
|
|
9557
9504
|
}[] | undefined;
|
|
9558
9505
|
currentMedications?: {
|
|
9559
9506
|
name: string;
|
|
9560
9507
|
dosage: string;
|
|
9561
9508
|
frequency: string;
|
|
9562
|
-
startDate?:
|
|
9563
|
-
|
|
9564
|
-
nanoseconds: number;
|
|
9565
|
-
} | null | undefined;
|
|
9566
|
-
endDate?: {
|
|
9567
|
-
seconds: number;
|
|
9568
|
-
nanoseconds: number;
|
|
9569
|
-
} | null | undefined;
|
|
9509
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9510
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9570
9511
|
prescribedBy?: string | null | undefined;
|
|
9571
9512
|
}[] | undefined;
|
|
9572
9513
|
emergencyNotes?: string | undefined;
|
|
@@ -9574,7 +9515,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9574
9515
|
contraindications?: {
|
|
9575
9516
|
isActive: boolean;
|
|
9576
9517
|
condition: Contraindication;
|
|
9577
|
-
lastOccurrence: {
|
|
9518
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
9578
9519
|
seconds: number;
|
|
9579
9520
|
nanoseconds: number;
|
|
9580
9521
|
};
|
|
@@ -9588,7 +9529,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9588
9529
|
bloodPressure?: {
|
|
9589
9530
|
systolic: number;
|
|
9590
9531
|
diastolic: number;
|
|
9591
|
-
lastMeasured: {
|
|
9532
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
9592
9533
|
seconds: number;
|
|
9593
9534
|
nanoseconds: number;
|
|
9594
9535
|
};
|
|
@@ -9597,7 +9538,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9597
9538
|
blockingConditions?: {
|
|
9598
9539
|
isActive: boolean;
|
|
9599
9540
|
condition: BlockingCondition;
|
|
9600
|
-
diagnosedAt: {
|
|
9541
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
9601
9542
|
seconds: number;
|
|
9602
9543
|
nanoseconds: number;
|
|
9603
9544
|
};
|
|
@@ -9609,7 +9550,7 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9609
9550
|
name?: string | null | undefined;
|
|
9610
9551
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9611
9552
|
reaction?: string | null | undefined;
|
|
9612
|
-
diagnosed?: {
|
|
9553
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
9613
9554
|
seconds: number;
|
|
9614
9555
|
nanoseconds: number;
|
|
9615
9556
|
} | null | undefined;
|
|
@@ -9619,11 +9560,11 @@ declare const updatePatientMedicalInfoSchema: z.ZodObject<{
|
|
|
9619
9560
|
name: string;
|
|
9620
9561
|
dosage: string;
|
|
9621
9562
|
frequency: string;
|
|
9622
|
-
startDate?: {
|
|
9563
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
9623
9564
|
seconds: number;
|
|
9624
9565
|
nanoseconds: number;
|
|
9625
9566
|
} | null | undefined;
|
|
9626
|
-
endDate?: {
|
|
9567
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
9627
9568
|
seconds: number;
|
|
9628
9569
|
nanoseconds: number;
|
|
9629
9570
|
} | null | undefined;
|
|
@@ -9638,7 +9579,7 @@ declare const updateVitalStatsSchema: z.ZodObject<{
|
|
|
9638
9579
|
bloodPressure: z.ZodOptional<z.ZodObject<{
|
|
9639
9580
|
systolic: z.ZodNumber;
|
|
9640
9581
|
diastolic: z.ZodNumber;
|
|
9641
|
-
lastMeasured: z.ZodObject<{
|
|
9582
|
+
lastMeasured: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9642
9583
|
seconds: z.ZodNumber;
|
|
9643
9584
|
nanoseconds: z.ZodNumber;
|
|
9644
9585
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9647,18 +9588,18 @@ declare const updateVitalStatsSchema: z.ZodObject<{
|
|
|
9647
9588
|
}, {
|
|
9648
9589
|
seconds: number;
|
|
9649
9590
|
nanoseconds: number;
|
|
9591
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9592
|
+
seconds: number;
|
|
9593
|
+
nanoseconds: number;
|
|
9650
9594
|
}>;
|
|
9651
9595
|
}, "strip", z.ZodTypeAny, {
|
|
9652
9596
|
systolic: number;
|
|
9653
9597
|
diastolic: number;
|
|
9654
|
-
lastMeasured:
|
|
9655
|
-
seconds: number;
|
|
9656
|
-
nanoseconds: number;
|
|
9657
|
-
};
|
|
9598
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
9658
9599
|
}, {
|
|
9659
9600
|
systolic: number;
|
|
9660
9601
|
diastolic: number;
|
|
9661
|
-
lastMeasured: {
|
|
9602
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
9662
9603
|
seconds: number;
|
|
9663
9604
|
nanoseconds: number;
|
|
9664
9605
|
};
|
|
@@ -9670,10 +9611,7 @@ declare const updateVitalStatsSchema: z.ZodObject<{
|
|
|
9670
9611
|
bloodPressure?: {
|
|
9671
9612
|
systolic: number;
|
|
9672
9613
|
diastolic: number;
|
|
9673
|
-
lastMeasured:
|
|
9674
|
-
seconds: number;
|
|
9675
|
-
nanoseconds: number;
|
|
9676
|
-
};
|
|
9614
|
+
lastMeasured: _firebase_firestore.Timestamp;
|
|
9677
9615
|
} | undefined;
|
|
9678
9616
|
}, {
|
|
9679
9617
|
height?: number | undefined;
|
|
@@ -9682,7 +9620,7 @@ declare const updateVitalStatsSchema: z.ZodObject<{
|
|
|
9682
9620
|
bloodPressure?: {
|
|
9683
9621
|
systolic: number;
|
|
9684
9622
|
diastolic: number;
|
|
9685
|
-
lastMeasured: {
|
|
9623
|
+
lastMeasured: _firebase_firestore.Timestamp | {
|
|
9686
9624
|
seconds: number;
|
|
9687
9625
|
nanoseconds: number;
|
|
9688
9626
|
};
|
|
@@ -9694,7 +9632,7 @@ declare const addAllergySchema: z.ZodObject<{
|
|
|
9694
9632
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9695
9633
|
severity: z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>;
|
|
9696
9634
|
reaction: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9697
|
-
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9635
|
+
diagnosed: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9698
9636
|
seconds: z.ZodNumber;
|
|
9699
9637
|
nanoseconds: z.ZodNumber;
|
|
9700
9638
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9703,6 +9641,9 @@ declare const addAllergySchema: z.ZodObject<{
|
|
|
9703
9641
|
}, {
|
|
9704
9642
|
seconds: number;
|
|
9705
9643
|
nanoseconds: number;
|
|
9644
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9645
|
+
seconds: number;
|
|
9646
|
+
nanoseconds: number;
|
|
9706
9647
|
}>>>;
|
|
9707
9648
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9708
9649
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9711,10 +9652,7 @@ declare const addAllergySchema: z.ZodObject<{
|
|
|
9711
9652
|
name?: string | null | undefined;
|
|
9712
9653
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9713
9654
|
reaction?: string | null | undefined;
|
|
9714
|
-
diagnosed?:
|
|
9715
|
-
seconds: number;
|
|
9716
|
-
nanoseconds: number;
|
|
9717
|
-
} | null | undefined;
|
|
9655
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
9718
9656
|
notes?: string | null | undefined;
|
|
9719
9657
|
}, {
|
|
9720
9658
|
type: AllergyType;
|
|
@@ -9722,7 +9660,7 @@ declare const addAllergySchema: z.ZodObject<{
|
|
|
9722
9660
|
name?: string | null | undefined;
|
|
9723
9661
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9724
9662
|
reaction?: string | null | undefined;
|
|
9725
|
-
diagnosed?: {
|
|
9663
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
9726
9664
|
seconds: number;
|
|
9727
9665
|
nanoseconds: number;
|
|
9728
9666
|
} | null | undefined;
|
|
@@ -9734,7 +9672,7 @@ declare const updateAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9734
9672
|
name: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9735
9673
|
severity: z.ZodOptional<z.ZodOptional<z.ZodEnum<["mild", "moderate", "severe"]>>>;
|
|
9736
9674
|
reaction: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9737
|
-
diagnosed: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9675
|
+
diagnosed: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9738
9676
|
seconds: z.ZodNumber;
|
|
9739
9677
|
nanoseconds: z.ZodNumber;
|
|
9740
9678
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9743,6 +9681,9 @@ declare const updateAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9743
9681
|
}, {
|
|
9744
9682
|
seconds: number;
|
|
9745
9683
|
nanoseconds: number;
|
|
9684
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9685
|
+
seconds: number;
|
|
9686
|
+
nanoseconds: number;
|
|
9746
9687
|
}>>>>;
|
|
9747
9688
|
notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9748
9689
|
}, {
|
|
@@ -9754,10 +9695,7 @@ declare const updateAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9754
9695
|
subtype?: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype | undefined;
|
|
9755
9696
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9756
9697
|
reaction?: string | null | undefined;
|
|
9757
|
-
diagnosed?:
|
|
9758
|
-
seconds: number;
|
|
9759
|
-
nanoseconds: number;
|
|
9760
|
-
} | null | undefined;
|
|
9698
|
+
diagnosed?: _firebase_firestore.Timestamp | null | undefined;
|
|
9761
9699
|
notes?: string | null | undefined;
|
|
9762
9700
|
}, {
|
|
9763
9701
|
allergyIndex: number;
|
|
@@ -9766,7 +9704,7 @@ declare const updateAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9766
9704
|
subtype?: "other" | MedicationAllergySubtype | FoodAllergySubtype | EnvironmentalAllergySubtype | CosmeticAllergySubtype | undefined;
|
|
9767
9705
|
severity?: "mild" | "moderate" | "severe" | undefined;
|
|
9768
9706
|
reaction?: string | null | undefined;
|
|
9769
|
-
diagnosed?: {
|
|
9707
|
+
diagnosed?: _firebase_firestore.Timestamp | {
|
|
9770
9708
|
seconds: number;
|
|
9771
9709
|
nanoseconds: number;
|
|
9772
9710
|
} | null | undefined;
|
|
@@ -9774,7 +9712,7 @@ declare const updateAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9774
9712
|
}>;
|
|
9775
9713
|
declare const addBlockingConditionSchema: z.ZodObject<{
|
|
9776
9714
|
condition: z.ZodNativeEnum<typeof BlockingCondition>;
|
|
9777
|
-
diagnosedAt: z.ZodObject<{
|
|
9715
|
+
diagnosedAt: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9778
9716
|
seconds: z.ZodNumber;
|
|
9779
9717
|
nanoseconds: z.ZodNumber;
|
|
9780
9718
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9783,21 +9721,21 @@ declare const addBlockingConditionSchema: z.ZodObject<{
|
|
|
9783
9721
|
}, {
|
|
9784
9722
|
seconds: number;
|
|
9785
9723
|
nanoseconds: number;
|
|
9724
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9725
|
+
seconds: number;
|
|
9726
|
+
nanoseconds: number;
|
|
9786
9727
|
}>;
|
|
9787
9728
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9788
9729
|
isActive: z.ZodBoolean;
|
|
9789
9730
|
}, "strip", z.ZodTypeAny, {
|
|
9790
9731
|
isActive: boolean;
|
|
9791
9732
|
condition: BlockingCondition;
|
|
9792
|
-
diagnosedAt:
|
|
9793
|
-
seconds: number;
|
|
9794
|
-
nanoseconds: number;
|
|
9795
|
-
};
|
|
9733
|
+
diagnosedAt: _firebase_firestore.Timestamp;
|
|
9796
9734
|
notes?: string | null | undefined;
|
|
9797
9735
|
}, {
|
|
9798
9736
|
isActive: boolean;
|
|
9799
9737
|
condition: BlockingCondition;
|
|
9800
|
-
diagnosedAt: {
|
|
9738
|
+
diagnosedAt: _firebase_firestore.Timestamp | {
|
|
9801
9739
|
seconds: number;
|
|
9802
9740
|
nanoseconds: number;
|
|
9803
9741
|
};
|
|
@@ -9805,7 +9743,7 @@ declare const addBlockingConditionSchema: z.ZodObject<{
|
|
|
9805
9743
|
}>;
|
|
9806
9744
|
declare const updateBlockingConditionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
9807
9745
|
condition: z.ZodOptional<z.ZodNativeEnum<typeof BlockingCondition>>;
|
|
9808
|
-
diagnosedAt: z.ZodOptional<z.ZodObject<{
|
|
9746
|
+
diagnosedAt: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9809
9747
|
seconds: z.ZodNumber;
|
|
9810
9748
|
nanoseconds: z.ZodNumber;
|
|
9811
9749
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9814,6 +9752,9 @@ declare const updateBlockingConditionSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
9814
9752
|
}, {
|
|
9815
9753
|
seconds: number;
|
|
9816
9754
|
nanoseconds: number;
|
|
9755
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9756
|
+
seconds: number;
|
|
9757
|
+
nanoseconds: number;
|
|
9817
9758
|
}>>;
|
|
9818
9759
|
notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9819
9760
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -9824,23 +9765,20 @@ declare const updateBlockingConditionSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
9824
9765
|
isActive?: boolean | undefined;
|
|
9825
9766
|
notes?: string | null | undefined;
|
|
9826
9767
|
condition?: BlockingCondition | undefined;
|
|
9827
|
-
diagnosedAt?:
|
|
9828
|
-
seconds: number;
|
|
9829
|
-
nanoseconds: number;
|
|
9830
|
-
} | undefined;
|
|
9768
|
+
diagnosedAt?: _firebase_firestore.Timestamp | undefined;
|
|
9831
9769
|
}, {
|
|
9832
9770
|
conditionIndex: number;
|
|
9833
9771
|
isActive?: boolean | undefined;
|
|
9834
9772
|
notes?: string | null | undefined;
|
|
9835
9773
|
condition?: BlockingCondition | undefined;
|
|
9836
|
-
diagnosedAt?: {
|
|
9774
|
+
diagnosedAt?: _firebase_firestore.Timestamp | {
|
|
9837
9775
|
seconds: number;
|
|
9838
9776
|
nanoseconds: number;
|
|
9839
9777
|
} | undefined;
|
|
9840
9778
|
}>;
|
|
9841
9779
|
declare const addContraindicationSchema: z.ZodObject<{
|
|
9842
9780
|
condition: z.ZodNativeEnum<typeof Contraindication>;
|
|
9843
|
-
lastOccurrence: z.ZodObject<{
|
|
9781
|
+
lastOccurrence: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9844
9782
|
seconds: z.ZodNumber;
|
|
9845
9783
|
nanoseconds: z.ZodNumber;
|
|
9846
9784
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9849,6 +9787,9 @@ declare const addContraindicationSchema: z.ZodObject<{
|
|
|
9849
9787
|
}, {
|
|
9850
9788
|
seconds: number;
|
|
9851
9789
|
nanoseconds: number;
|
|
9790
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9791
|
+
seconds: number;
|
|
9792
|
+
nanoseconds: number;
|
|
9852
9793
|
}>;
|
|
9853
9794
|
frequency: z.ZodEnum<["rare", "occasional", "frequent"]>;
|
|
9854
9795
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -9856,16 +9797,13 @@ declare const addContraindicationSchema: z.ZodObject<{
|
|
|
9856
9797
|
}, "strip", z.ZodTypeAny, {
|
|
9857
9798
|
isActive: boolean;
|
|
9858
9799
|
condition: Contraindication;
|
|
9859
|
-
lastOccurrence:
|
|
9860
|
-
seconds: number;
|
|
9861
|
-
nanoseconds: number;
|
|
9862
|
-
};
|
|
9800
|
+
lastOccurrence: _firebase_firestore.Timestamp;
|
|
9863
9801
|
frequency: "rare" | "occasional" | "frequent";
|
|
9864
9802
|
notes?: string | null | undefined;
|
|
9865
9803
|
}, {
|
|
9866
9804
|
isActive: boolean;
|
|
9867
9805
|
condition: Contraindication;
|
|
9868
|
-
lastOccurrence: {
|
|
9806
|
+
lastOccurrence: _firebase_firestore.Timestamp | {
|
|
9869
9807
|
seconds: number;
|
|
9870
9808
|
nanoseconds: number;
|
|
9871
9809
|
};
|
|
@@ -9874,7 +9812,7 @@ declare const addContraindicationSchema: z.ZodObject<{
|
|
|
9874
9812
|
}>;
|
|
9875
9813
|
declare const updateContraindicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
9876
9814
|
condition: z.ZodOptional<z.ZodNativeEnum<typeof Contraindication>>;
|
|
9877
|
-
lastOccurrence: z.ZodOptional<z.ZodObject<{
|
|
9815
|
+
lastOccurrence: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9878
9816
|
seconds: z.ZodNumber;
|
|
9879
9817
|
nanoseconds: z.ZodNumber;
|
|
9880
9818
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9883,6 +9821,9 @@ declare const updateContraindicationSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
9883
9821
|
}, {
|
|
9884
9822
|
seconds: number;
|
|
9885
9823
|
nanoseconds: number;
|
|
9824
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9825
|
+
seconds: number;
|
|
9826
|
+
nanoseconds: number;
|
|
9886
9827
|
}>>;
|
|
9887
9828
|
frequency: z.ZodOptional<z.ZodEnum<["rare", "occasional", "frequent"]>>;
|
|
9888
9829
|
notes: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
@@ -9894,17 +9835,14 @@ declare const updateContraindicationSchema: z.ZodObject<z.objectUtil.extendShape
|
|
|
9894
9835
|
isActive?: boolean | undefined;
|
|
9895
9836
|
notes?: string | null | undefined;
|
|
9896
9837
|
condition?: Contraindication | undefined;
|
|
9897
|
-
lastOccurrence?:
|
|
9898
|
-
seconds: number;
|
|
9899
|
-
nanoseconds: number;
|
|
9900
|
-
} | undefined;
|
|
9838
|
+
lastOccurrence?: _firebase_firestore.Timestamp | undefined;
|
|
9901
9839
|
frequency?: "rare" | "occasional" | "frequent" | undefined;
|
|
9902
9840
|
}, {
|
|
9903
9841
|
contraindicationIndex: number;
|
|
9904
9842
|
isActive?: boolean | undefined;
|
|
9905
9843
|
notes?: string | null | undefined;
|
|
9906
9844
|
condition?: Contraindication | undefined;
|
|
9907
|
-
lastOccurrence?: {
|
|
9845
|
+
lastOccurrence?: _firebase_firestore.Timestamp | {
|
|
9908
9846
|
seconds: number;
|
|
9909
9847
|
nanoseconds: number;
|
|
9910
9848
|
} | undefined;
|
|
@@ -9914,7 +9852,7 @@ declare const addMedicationSchema: z.ZodObject<{
|
|
|
9914
9852
|
name: z.ZodString;
|
|
9915
9853
|
dosage: z.ZodString;
|
|
9916
9854
|
frequency: z.ZodString;
|
|
9917
|
-
startDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9855
|
+
startDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9918
9856
|
seconds: z.ZodNumber;
|
|
9919
9857
|
nanoseconds: z.ZodNumber;
|
|
9920
9858
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9923,8 +9861,11 @@ declare const addMedicationSchema: z.ZodObject<{
|
|
|
9923
9861
|
}, {
|
|
9924
9862
|
seconds: number;
|
|
9925
9863
|
nanoseconds: number;
|
|
9864
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9865
|
+
seconds: number;
|
|
9866
|
+
nanoseconds: number;
|
|
9926
9867
|
}>>>;
|
|
9927
|
-
endDate: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9868
|
+
endDate: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9928
9869
|
seconds: z.ZodNumber;
|
|
9929
9870
|
nanoseconds: z.ZodNumber;
|
|
9930
9871
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9933,30 +9874,27 @@ declare const addMedicationSchema: z.ZodObject<{
|
|
|
9933
9874
|
}, {
|
|
9934
9875
|
seconds: number;
|
|
9935
9876
|
nanoseconds: number;
|
|
9877
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9878
|
+
seconds: number;
|
|
9879
|
+
nanoseconds: number;
|
|
9936
9880
|
}>>>;
|
|
9937
9881
|
prescribedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9938
9882
|
}, "strip", z.ZodTypeAny, {
|
|
9939
9883
|
name: string;
|
|
9940
9884
|
dosage: string;
|
|
9941
9885
|
frequency: string;
|
|
9942
|
-
startDate?:
|
|
9943
|
-
|
|
9944
|
-
nanoseconds: number;
|
|
9945
|
-
} | null | undefined;
|
|
9946
|
-
endDate?: {
|
|
9947
|
-
seconds: number;
|
|
9948
|
-
nanoseconds: number;
|
|
9949
|
-
} | null | undefined;
|
|
9886
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9887
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9950
9888
|
prescribedBy?: string | null | undefined;
|
|
9951
9889
|
}, {
|
|
9952
9890
|
name: string;
|
|
9953
9891
|
dosage: string;
|
|
9954
9892
|
frequency: string;
|
|
9955
|
-
startDate?: {
|
|
9893
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
9956
9894
|
seconds: number;
|
|
9957
9895
|
nanoseconds: number;
|
|
9958
9896
|
} | null | undefined;
|
|
9959
|
-
endDate?: {
|
|
9897
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
9960
9898
|
seconds: number;
|
|
9961
9899
|
nanoseconds: number;
|
|
9962
9900
|
} | null | undefined;
|
|
@@ -9966,7 +9904,7 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9966
9904
|
name: z.ZodOptional<z.ZodString>;
|
|
9967
9905
|
dosage: z.ZodOptional<z.ZodString>;
|
|
9968
9906
|
frequency: z.ZodOptional<z.ZodString>;
|
|
9969
|
-
startDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9907
|
+
startDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9970
9908
|
seconds: z.ZodNumber;
|
|
9971
9909
|
nanoseconds: z.ZodNumber;
|
|
9972
9910
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9975,8 +9913,11 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9975
9913
|
}, {
|
|
9976
9914
|
seconds: number;
|
|
9977
9915
|
nanoseconds: number;
|
|
9916
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9917
|
+
seconds: number;
|
|
9918
|
+
nanoseconds: number;
|
|
9978
9919
|
}>>>>;
|
|
9979
|
-
endDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
9920
|
+
endDate: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
9980
9921
|
seconds: z.ZodNumber;
|
|
9981
9922
|
nanoseconds: z.ZodNumber;
|
|
9982
9923
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9985,6 +9926,9 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9985
9926
|
}, {
|
|
9986
9927
|
seconds: number;
|
|
9987
9928
|
nanoseconds: number;
|
|
9929
|
+
}>, z.ZodType<_firebase_firestore.Timestamp, z.ZodTypeDef, _firebase_firestore.Timestamp>]>, _firebase_firestore.Timestamp, _firebase_firestore.Timestamp | {
|
|
9930
|
+
seconds: number;
|
|
9931
|
+
nanoseconds: number;
|
|
9988
9932
|
}>>>>;
|
|
9989
9933
|
prescribedBy: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
9990
9934
|
}, {
|
|
@@ -9994,25 +9938,19 @@ declare const updateMedicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9994
9938
|
name?: string | undefined;
|
|
9995
9939
|
dosage?: string | undefined;
|
|
9996
9940
|
frequency?: string | undefined;
|
|
9997
|
-
startDate?:
|
|
9998
|
-
|
|
9999
|
-
nanoseconds: number;
|
|
10000
|
-
} | null | undefined;
|
|
10001
|
-
endDate?: {
|
|
10002
|
-
seconds: number;
|
|
10003
|
-
nanoseconds: number;
|
|
10004
|
-
} | null | undefined;
|
|
9941
|
+
startDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
9942
|
+
endDate?: _firebase_firestore.Timestamp | null | undefined;
|
|
10005
9943
|
prescribedBy?: string | null | undefined;
|
|
10006
9944
|
}, {
|
|
10007
9945
|
medicationIndex: number;
|
|
10008
9946
|
name?: string | undefined;
|
|
10009
9947
|
dosage?: string | undefined;
|
|
10010
9948
|
frequency?: string | undefined;
|
|
10011
|
-
startDate?: {
|
|
9949
|
+
startDate?: _firebase_firestore.Timestamp | {
|
|
10012
9950
|
seconds: number;
|
|
10013
9951
|
nanoseconds: number;
|
|
10014
9952
|
} | null | undefined;
|
|
10015
|
-
endDate?: {
|
|
9953
|
+
endDate?: _firebase_firestore.Timestamp | {
|
|
10016
9954
|
seconds: number;
|
|
10017
9955
|
nanoseconds: number;
|
|
10018
9956
|
} | null | undefined;
|