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