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