@metriport/api-sdk 18.10.1-alpha.0 → 18.10.1
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/devices/client/metriport.d.ts.map +1 -1
- package/dist/devices/client/metriport.js.map +1 -1
- package/dist/devices/client/util/date-util.js +1 -2
- package/dist/devices/client/util/date-util.js.map +1 -1
- package/dist/devices/client/util/timezone-util.js +1 -2
- package/dist/devices/client/util/timezone-util.js.map +1 -1
- package/dist/devices/models/common/provider-source.js +1 -1
- package/dist/devices/models/common/provider-source.js.map +1 -1
- package/dist/devices/models/common/source-type.js +1 -1
- package/dist/devices/models/common/source-type.js.map +1 -1
- package/dist/medical/client/metriport.d.ts +0 -2
- package/dist/medical/client/metriport.d.ts.map +1 -1
- package/dist/medical/client/metriport.js +2 -2
- package/dist/medical/client/metriport.js.map +1 -1
- package/dist/medical/models/common/address.d.ts +4 -4
- package/dist/medical/models/common/address.js.map +1 -1
- package/dist/medical/models/common/base-update.js +2 -2
- package/dist/medical/models/common/base-update.js.map +1 -1
- package/dist/medical/models/common/hie-control.js.map +1 -1
- package/dist/medical/models/common/medical-data-source.js +1 -1
- package/dist/medical/models/common/medical-data-source.js.map +1 -1
- package/dist/medical/models/common/us-data.js.map +1 -1
- package/dist/medical/models/demographics.d.ts +105 -105
- package/dist/medical/models/demographics.d.ts.map +1 -1
- package/dist/medical/models/demographics.js.map +1 -1
- package/dist/medical/models/document.d.ts +56 -56
- package/dist/medical/models/document.js +2 -2
- package/dist/medical/models/document.js.map +1 -1
- package/dist/medical/models/facility.d.ts +59 -59
- package/dist/medical/models/facility.js.map +1 -1
- package/dist/medical/models/fhir.d.ts +20 -20
- package/dist/medical/models/fhir.js.map +1 -1
- package/dist/medical/models/organization.d.ts +22 -22
- package/dist/medical/models/organization.js.map +1 -1
- package/dist/medical/models/patient.d.ts +442 -442
- package/dist/medical/models/patient.js.map +1 -1
- package/dist/shared.js +3 -3
- package/dist/shared.js.map +1 -1
- package/package.json +10 -10
|
@@ -20,11 +20,11 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
20
20
|
start: z.ZodOptional<z.ZodString>;
|
|
21
21
|
end: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
end: string;
|
|
24
23
|
start?: string | undefined;
|
|
25
|
-
}, {
|
|
26
24
|
end: string;
|
|
25
|
+
}, {
|
|
27
26
|
start?: string | undefined;
|
|
27
|
+
end: string;
|
|
28
28
|
}>]>>;
|
|
29
29
|
assigner: z.ZodOptional<z.ZodString>;
|
|
30
30
|
}, {
|
|
@@ -83,29 +83,29 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
83
83
|
WY: import("@metriport/shared").USState.WY;
|
|
84
84
|
}>, import("@metriport/shared").USState, unknown>;
|
|
85
85
|
}>, "strip", z.ZodTypeAny, {
|
|
86
|
-
type: "driversLicense";
|
|
87
86
|
value: string;
|
|
88
|
-
state: import("@metriport/shared").USState;
|
|
89
87
|
period?: {
|
|
90
88
|
start: string;
|
|
91
89
|
end?: string | undefined;
|
|
92
90
|
} | {
|
|
93
|
-
end: string;
|
|
94
91
|
start?: string | undefined;
|
|
92
|
+
end: string;
|
|
95
93
|
} | undefined;
|
|
96
94
|
assigner?: string | undefined;
|
|
97
|
-
}, {
|
|
98
95
|
type: "driversLicense";
|
|
96
|
+
state: import("@metriport/shared").USState;
|
|
97
|
+
}, {
|
|
99
98
|
value: string;
|
|
100
|
-
state?: unknown;
|
|
101
99
|
period?: {
|
|
102
100
|
start: string;
|
|
103
101
|
end?: string | undefined;
|
|
104
102
|
} | {
|
|
105
|
-
end: string;
|
|
106
103
|
start?: string | undefined;
|
|
104
|
+
end: string;
|
|
107
105
|
} | undefined;
|
|
108
106
|
assigner?: string | undefined;
|
|
107
|
+
type: "driversLicense";
|
|
108
|
+
state?: unknown;
|
|
109
109
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
110
110
|
value: z.ZodString;
|
|
111
111
|
period: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -121,37 +121,37 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
121
121
|
start: z.ZodOptional<z.ZodString>;
|
|
122
122
|
end: z.ZodString;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
end: string;
|
|
125
124
|
start?: string | undefined;
|
|
126
|
-
}, {
|
|
127
125
|
end: string;
|
|
126
|
+
}, {
|
|
128
127
|
start?: string | undefined;
|
|
128
|
+
end: string;
|
|
129
129
|
}>]>>;
|
|
130
130
|
assigner: z.ZodOptional<z.ZodString>;
|
|
131
131
|
}, {
|
|
132
132
|
type: z.ZodEnum<["ssn"]>;
|
|
133
133
|
}>, "strip", z.ZodTypeAny, {
|
|
134
|
-
type: "ssn";
|
|
135
134
|
value: string;
|
|
136
135
|
period?: {
|
|
137
136
|
start: string;
|
|
138
137
|
end?: string | undefined;
|
|
139
138
|
} | {
|
|
140
|
-
end: string;
|
|
141
139
|
start?: string | undefined;
|
|
140
|
+
end: string;
|
|
142
141
|
} | undefined;
|
|
143
142
|
assigner?: string | undefined;
|
|
144
|
-
}, {
|
|
145
143
|
type: "ssn";
|
|
144
|
+
}, {
|
|
146
145
|
value: string;
|
|
147
146
|
period?: {
|
|
148
147
|
start: string;
|
|
149
148
|
end?: string | undefined;
|
|
150
149
|
} | {
|
|
151
|
-
end: string;
|
|
152
150
|
start?: string | undefined;
|
|
151
|
+
end: string;
|
|
153
152
|
} | undefined;
|
|
154
153
|
assigner?: string | undefined;
|
|
154
|
+
type: "ssn";
|
|
155
155
|
}>]>, "many">>;
|
|
156
156
|
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
157
157
|
addressLine1: z.ZodString;
|
|
@@ -224,21 +224,21 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
224
224
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
addressLine1: string;
|
|
227
|
+
addressLine2?: string | undefined;
|
|
227
228
|
city: string;
|
|
228
229
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
229
230
|
zip: string;
|
|
230
|
-
country: "USA";
|
|
231
|
-
addressLine2?: string | undefined;
|
|
232
231
|
coordinates?: {
|
|
233
232
|
lat: number;
|
|
234
233
|
lon: number;
|
|
235
234
|
} | undefined;
|
|
235
|
+
country: "USA";
|
|
236
236
|
}, {
|
|
237
237
|
addressLine1: string;
|
|
238
|
-
city: string;
|
|
239
|
-
zip: string;
|
|
240
238
|
addressLine2?: string | undefined;
|
|
239
|
+
city: string;
|
|
241
240
|
state?: unknown;
|
|
241
|
+
zip: string;
|
|
242
242
|
coordinates?: {
|
|
243
243
|
lat: number;
|
|
244
244
|
lon: number;
|
|
@@ -315,21 +315,21 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
315
315
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
316
316
|
}, "strip", z.ZodTypeAny, {
|
|
317
317
|
addressLine1: string;
|
|
318
|
+
addressLine2?: string | undefined;
|
|
318
319
|
city: string;
|
|
319
320
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
320
321
|
zip: string;
|
|
321
|
-
country: "USA";
|
|
322
|
-
addressLine2?: string | undefined;
|
|
323
322
|
coordinates?: {
|
|
324
323
|
lat: number;
|
|
325
324
|
lon: number;
|
|
326
325
|
} | undefined;
|
|
326
|
+
country: "USA";
|
|
327
327
|
}, {
|
|
328
328
|
addressLine1: string;
|
|
329
|
-
city: string;
|
|
330
|
-
zip: string;
|
|
331
329
|
addressLine2?: string | undefined;
|
|
330
|
+
city: string;
|
|
332
331
|
state?: unknown;
|
|
332
|
+
zip: string;
|
|
333
333
|
coordinates?: {
|
|
334
334
|
lat: number;
|
|
335
335
|
lon: number;
|
|
@@ -456,71 +456,73 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
456
456
|
lastName: string;
|
|
457
457
|
dob: string;
|
|
458
458
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
459
|
+
personalIdentifiers?: ({
|
|
460
|
+
value: string;
|
|
461
|
+
period?: {
|
|
462
|
+
start: string;
|
|
463
|
+
end?: string | undefined;
|
|
464
|
+
} | {
|
|
465
|
+
start?: string | undefined;
|
|
466
|
+
end: string;
|
|
467
|
+
} | undefined;
|
|
468
|
+
assigner?: string | undefined;
|
|
469
|
+
type: "driversLicense";
|
|
470
|
+
state: import("@metriport/shared").USState;
|
|
471
|
+
} | {
|
|
472
|
+
value: string;
|
|
473
|
+
period?: {
|
|
474
|
+
start: string;
|
|
475
|
+
end?: string | undefined;
|
|
476
|
+
} | {
|
|
477
|
+
start?: string | undefined;
|
|
478
|
+
end: string;
|
|
479
|
+
} | undefined;
|
|
480
|
+
assigner?: string | undefined;
|
|
481
|
+
type: "ssn";
|
|
482
|
+
})[] | undefined;
|
|
459
483
|
address: {
|
|
460
484
|
addressLine1: string;
|
|
485
|
+
addressLine2?: string | undefined;
|
|
461
486
|
city: string;
|
|
462
487
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
463
488
|
zip: string;
|
|
464
|
-
country: "USA";
|
|
465
|
-
addressLine2?: string | undefined;
|
|
466
489
|
coordinates?: {
|
|
467
490
|
lat: number;
|
|
468
491
|
lon: number;
|
|
469
492
|
} | undefined;
|
|
493
|
+
country: "USA";
|
|
470
494
|
} | [{
|
|
471
495
|
addressLine1: string;
|
|
496
|
+
addressLine2?: string | undefined;
|
|
472
497
|
city: string;
|
|
473
498
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
474
499
|
zip: string;
|
|
475
|
-
country: "USA";
|
|
476
|
-
addressLine2?: string | undefined;
|
|
477
500
|
coordinates?: {
|
|
478
501
|
lat: number;
|
|
479
502
|
lon: number;
|
|
480
503
|
} | undefined;
|
|
504
|
+
country: "USA";
|
|
481
505
|
}, ...{
|
|
482
506
|
addressLine1: string;
|
|
507
|
+
addressLine2?: string | undefined;
|
|
483
508
|
city: string;
|
|
484
509
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
485
510
|
zip: string;
|
|
486
|
-
country: "USA";
|
|
487
|
-
addressLine2?: string | undefined;
|
|
488
511
|
coordinates?: {
|
|
489
512
|
lat: number;
|
|
490
513
|
lon: number;
|
|
491
514
|
} | undefined;
|
|
515
|
+
country: "USA";
|
|
492
516
|
}[]];
|
|
493
|
-
personalIdentifiers?: ({
|
|
494
|
-
type: "driversLicense";
|
|
495
|
-
value: string;
|
|
496
|
-
state: import("@metriport/shared").USState;
|
|
497
|
-
period?: {
|
|
498
|
-
start: string;
|
|
499
|
-
end?: string | undefined;
|
|
500
|
-
} | {
|
|
501
|
-
end: string;
|
|
502
|
-
start?: string | undefined;
|
|
503
|
-
} | undefined;
|
|
504
|
-
assigner?: string | undefined;
|
|
505
|
-
} | {
|
|
506
|
-
type: "ssn";
|
|
507
|
-
value: string;
|
|
508
|
-
period?: {
|
|
509
|
-
start: string;
|
|
510
|
-
end?: string | undefined;
|
|
511
|
-
} | {
|
|
512
|
-
end: string;
|
|
513
|
-
start?: string | undefined;
|
|
514
|
-
} | undefined;
|
|
515
|
-
assigner?: string | undefined;
|
|
516
|
-
})[] | undefined;
|
|
517
517
|
contact?: {
|
|
518
518
|
phone?: string | null | undefined;
|
|
519
519
|
email?: string | null | undefined;
|
|
520
|
-
} | {
|
|
520
|
+
}[] | {
|
|
521
521
|
phone?: string | null | undefined;
|
|
522
522
|
email?: string | null | undefined;
|
|
523
|
-
}
|
|
523
|
+
} | undefined;
|
|
524
|
+
externalId?: string | undefined;
|
|
525
|
+
hieOptOut?: boolean | undefined;
|
|
524
526
|
hie?: {
|
|
525
527
|
carequality?: {
|
|
526
528
|
exclude?: boolean | undefined;
|
|
@@ -532,8 +534,6 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
532
534
|
exclude?: boolean | undefined;
|
|
533
535
|
} | undefined;
|
|
534
536
|
} | undefined;
|
|
535
|
-
externalId?: string | undefined;
|
|
536
|
-
hieOptOut?: boolean | undefined;
|
|
537
537
|
settings?: {
|
|
538
538
|
subscriptions?: {
|
|
539
539
|
adt?: string[] | undefined;
|
|
@@ -545,12 +545,36 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
545
545
|
lastName: string;
|
|
546
546
|
dob: string;
|
|
547
547
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
548
|
+
personalIdentifiers?: ({
|
|
549
|
+
value: string;
|
|
550
|
+
period?: {
|
|
551
|
+
start: string;
|
|
552
|
+
end?: string | undefined;
|
|
553
|
+
} | {
|
|
554
|
+
start?: string | undefined;
|
|
555
|
+
end: string;
|
|
556
|
+
} | undefined;
|
|
557
|
+
assigner?: string | undefined;
|
|
558
|
+
type: "driversLicense";
|
|
559
|
+
state?: unknown;
|
|
560
|
+
} | {
|
|
561
|
+
value: string;
|
|
562
|
+
period?: {
|
|
563
|
+
start: string;
|
|
564
|
+
end?: string | undefined;
|
|
565
|
+
} | {
|
|
566
|
+
start?: string | undefined;
|
|
567
|
+
end: string;
|
|
568
|
+
} | undefined;
|
|
569
|
+
assigner?: string | undefined;
|
|
570
|
+
type: "ssn";
|
|
571
|
+
})[] | undefined;
|
|
548
572
|
address: {
|
|
549
573
|
addressLine1: string;
|
|
550
|
-
city: string;
|
|
551
|
-
zip: string;
|
|
552
574
|
addressLine2?: string | undefined;
|
|
575
|
+
city: string;
|
|
553
576
|
state?: unknown;
|
|
577
|
+
zip: string;
|
|
554
578
|
coordinates?: {
|
|
555
579
|
lat: number;
|
|
556
580
|
lon: number;
|
|
@@ -558,10 +582,10 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
558
582
|
country?: "USA" | undefined;
|
|
559
583
|
} | [{
|
|
560
584
|
addressLine1: string;
|
|
561
|
-
city: string;
|
|
562
|
-
zip: string;
|
|
563
585
|
addressLine2?: string | undefined;
|
|
586
|
+
city: string;
|
|
564
587
|
state?: unknown;
|
|
588
|
+
zip: string;
|
|
565
589
|
coordinates?: {
|
|
566
590
|
lat: number;
|
|
567
591
|
lon: number;
|
|
@@ -569,47 +593,25 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
569
593
|
country?: "USA" | undefined;
|
|
570
594
|
}, ...{
|
|
571
595
|
addressLine1: string;
|
|
572
|
-
city: string;
|
|
573
|
-
zip: string;
|
|
574
596
|
addressLine2?: string | undefined;
|
|
597
|
+
city: string;
|
|
575
598
|
state?: unknown;
|
|
599
|
+
zip: string;
|
|
576
600
|
coordinates?: {
|
|
577
601
|
lat: number;
|
|
578
602
|
lon: number;
|
|
579
603
|
} | undefined;
|
|
580
604
|
country?: "USA" | undefined;
|
|
581
605
|
}[]];
|
|
582
|
-
personalIdentifiers?: ({
|
|
583
|
-
type: "driversLicense";
|
|
584
|
-
value: string;
|
|
585
|
-
state?: unknown;
|
|
586
|
-
period?: {
|
|
587
|
-
start: string;
|
|
588
|
-
end?: string | undefined;
|
|
589
|
-
} | {
|
|
590
|
-
end: string;
|
|
591
|
-
start?: string | undefined;
|
|
592
|
-
} | undefined;
|
|
593
|
-
assigner?: string | undefined;
|
|
594
|
-
} | {
|
|
595
|
-
type: "ssn";
|
|
596
|
-
value: string;
|
|
597
|
-
period?: {
|
|
598
|
-
start: string;
|
|
599
|
-
end?: string | undefined;
|
|
600
|
-
} | {
|
|
601
|
-
end: string;
|
|
602
|
-
start?: string | undefined;
|
|
603
|
-
} | undefined;
|
|
604
|
-
assigner?: string | undefined;
|
|
605
|
-
})[] | undefined;
|
|
606
606
|
contact?: {
|
|
607
607
|
phone?: string | null | undefined;
|
|
608
608
|
email?: string | null | undefined;
|
|
609
|
-
} | {
|
|
609
|
+
}[] | {
|
|
610
610
|
phone?: string | null | undefined;
|
|
611
611
|
email?: string | null | undefined;
|
|
612
|
-
}
|
|
612
|
+
} | undefined;
|
|
613
|
+
externalId?: string | undefined;
|
|
614
|
+
hieOptOut?: boolean | undefined;
|
|
613
615
|
hie?: {
|
|
614
616
|
carequality?: {
|
|
615
617
|
exclude?: boolean | undefined;
|
|
@@ -621,8 +623,6 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
621
623
|
exclude?: boolean | undefined;
|
|
622
624
|
} | undefined;
|
|
623
625
|
} | undefined;
|
|
624
|
-
externalId?: string | undefined;
|
|
625
|
-
hieOptOut?: boolean | undefined;
|
|
626
626
|
settings?: {
|
|
627
627
|
subscriptions?: {
|
|
628
628
|
adt?: string[] | undefined;
|
|
@@ -651,11 +651,11 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
651
651
|
start: z.ZodOptional<z.ZodString>;
|
|
652
652
|
end: z.ZodString;
|
|
653
653
|
}, "strip", z.ZodTypeAny, {
|
|
654
|
-
end: string;
|
|
655
654
|
start?: string | undefined;
|
|
656
|
-
}, {
|
|
657
655
|
end: string;
|
|
656
|
+
}, {
|
|
658
657
|
start?: string | undefined;
|
|
658
|
+
end: string;
|
|
659
659
|
}>]>>;
|
|
660
660
|
assigner: z.ZodOptional<z.ZodString>;
|
|
661
661
|
}, {
|
|
@@ -714,29 +714,29 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
714
714
|
WY: import("@metriport/shared").USState.WY;
|
|
715
715
|
}>, import("@metriport/shared").USState, unknown>;
|
|
716
716
|
}>, "strip", z.ZodTypeAny, {
|
|
717
|
-
type: "driversLicense";
|
|
718
717
|
value: string;
|
|
719
|
-
state: import("@metriport/shared").USState;
|
|
720
718
|
period?: {
|
|
721
719
|
start: string;
|
|
722
720
|
end?: string | undefined;
|
|
723
721
|
} | {
|
|
724
|
-
end: string;
|
|
725
722
|
start?: string | undefined;
|
|
723
|
+
end: string;
|
|
726
724
|
} | undefined;
|
|
727
725
|
assigner?: string | undefined;
|
|
728
|
-
}, {
|
|
729
726
|
type: "driversLicense";
|
|
727
|
+
state: import("@metriport/shared").USState;
|
|
728
|
+
}, {
|
|
730
729
|
value: string;
|
|
731
|
-
state?: unknown;
|
|
732
730
|
period?: {
|
|
733
731
|
start: string;
|
|
734
732
|
end?: string | undefined;
|
|
735
733
|
} | {
|
|
736
|
-
end: string;
|
|
737
734
|
start?: string | undefined;
|
|
735
|
+
end: string;
|
|
738
736
|
} | undefined;
|
|
739
737
|
assigner?: string | undefined;
|
|
738
|
+
type: "driversLicense";
|
|
739
|
+
state?: unknown;
|
|
740
740
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
741
741
|
value: z.ZodString;
|
|
742
742
|
period: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -752,37 +752,37 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
752
752
|
start: z.ZodOptional<z.ZodString>;
|
|
753
753
|
end: z.ZodString;
|
|
754
754
|
}, "strip", z.ZodTypeAny, {
|
|
755
|
-
end: string;
|
|
756
755
|
start?: string | undefined;
|
|
757
|
-
}, {
|
|
758
756
|
end: string;
|
|
757
|
+
}, {
|
|
759
758
|
start?: string | undefined;
|
|
759
|
+
end: string;
|
|
760
760
|
}>]>>;
|
|
761
761
|
assigner: z.ZodOptional<z.ZodString>;
|
|
762
762
|
}, {
|
|
763
763
|
type: z.ZodEnum<["ssn"]>;
|
|
764
764
|
}>, "strip", z.ZodTypeAny, {
|
|
765
|
-
type: "ssn";
|
|
766
765
|
value: string;
|
|
767
766
|
period?: {
|
|
768
767
|
start: string;
|
|
769
768
|
end?: string | undefined;
|
|
770
769
|
} | {
|
|
771
|
-
end: string;
|
|
772
770
|
start?: string | undefined;
|
|
771
|
+
end: string;
|
|
773
772
|
} | undefined;
|
|
774
773
|
assigner?: string | undefined;
|
|
775
|
-
}, {
|
|
776
774
|
type: "ssn";
|
|
775
|
+
}, {
|
|
777
776
|
value: string;
|
|
778
777
|
period?: {
|
|
779
778
|
start: string;
|
|
780
779
|
end?: string | undefined;
|
|
781
780
|
} | {
|
|
782
|
-
end: string;
|
|
783
781
|
start?: string | undefined;
|
|
782
|
+
end: string;
|
|
784
783
|
} | undefined;
|
|
785
784
|
assigner?: string | undefined;
|
|
785
|
+
type: "ssn";
|
|
786
786
|
}>]>, "many">>;
|
|
787
787
|
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
788
788
|
addressLine1: z.ZodString;
|
|
@@ -855,21 +855,21 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
855
855
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
856
856
|
}, "strip", z.ZodTypeAny, {
|
|
857
857
|
addressLine1: string;
|
|
858
|
+
addressLine2?: string | undefined;
|
|
858
859
|
city: string;
|
|
859
860
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
860
861
|
zip: string;
|
|
861
|
-
country: "USA";
|
|
862
|
-
addressLine2?: string | undefined;
|
|
863
862
|
coordinates?: {
|
|
864
863
|
lat: number;
|
|
865
864
|
lon: number;
|
|
866
865
|
} | undefined;
|
|
866
|
+
country: "USA";
|
|
867
867
|
}, {
|
|
868
868
|
addressLine1: string;
|
|
869
|
-
city: string;
|
|
870
|
-
zip: string;
|
|
871
869
|
addressLine2?: string | undefined;
|
|
870
|
+
city: string;
|
|
872
871
|
state?: unknown;
|
|
872
|
+
zip: string;
|
|
873
873
|
coordinates?: {
|
|
874
874
|
lat: number;
|
|
875
875
|
lon: number;
|
|
@@ -946,21 +946,21 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
946
946
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
947
947
|
}, "strip", z.ZodTypeAny, {
|
|
948
948
|
addressLine1: string;
|
|
949
|
+
addressLine2?: string | undefined;
|
|
949
950
|
city: string;
|
|
950
951
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
951
952
|
zip: string;
|
|
952
|
-
country: "USA";
|
|
953
|
-
addressLine2?: string | undefined;
|
|
954
953
|
coordinates?: {
|
|
955
954
|
lat: number;
|
|
956
955
|
lon: number;
|
|
957
956
|
} | undefined;
|
|
957
|
+
country: "USA";
|
|
958
958
|
}, {
|
|
959
959
|
addressLine1: string;
|
|
960
|
-
city: string;
|
|
961
|
-
zip: string;
|
|
962
960
|
addressLine2?: string | undefined;
|
|
961
|
+
city: string;
|
|
963
962
|
state?: unknown;
|
|
963
|
+
zip: string;
|
|
964
964
|
coordinates?: {
|
|
965
965
|
lat: number;
|
|
966
966
|
lon: number;
|
|
@@ -1087,76 +1087,78 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1087
1087
|
eTag: z.ZodOptional<z.ZodString>;
|
|
1088
1088
|
}>, "strip", z.ZodTypeAny, {
|
|
1089
1089
|
id: string;
|
|
1090
|
+
eTag?: string | undefined;
|
|
1090
1091
|
firstName: string;
|
|
1091
1092
|
lastName: string;
|
|
1092
1093
|
dob: string;
|
|
1093
1094
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
1095
|
+
personalIdentifiers?: ({
|
|
1096
|
+
value: string;
|
|
1097
|
+
period?: {
|
|
1098
|
+
start: string;
|
|
1099
|
+
end?: string | undefined;
|
|
1100
|
+
} | {
|
|
1101
|
+
start?: string | undefined;
|
|
1102
|
+
end: string;
|
|
1103
|
+
} | undefined;
|
|
1104
|
+
assigner?: string | undefined;
|
|
1105
|
+
type: "driversLicense";
|
|
1106
|
+
state: import("@metriport/shared").USState;
|
|
1107
|
+
} | {
|
|
1108
|
+
value: string;
|
|
1109
|
+
period?: {
|
|
1110
|
+
start: string;
|
|
1111
|
+
end?: string | undefined;
|
|
1112
|
+
} | {
|
|
1113
|
+
start?: string | undefined;
|
|
1114
|
+
end: string;
|
|
1115
|
+
} | undefined;
|
|
1116
|
+
assigner?: string | undefined;
|
|
1117
|
+
type: "ssn";
|
|
1118
|
+
})[] | undefined;
|
|
1094
1119
|
address: {
|
|
1095
1120
|
addressLine1: string;
|
|
1121
|
+
addressLine2?: string | undefined;
|
|
1096
1122
|
city: string;
|
|
1097
1123
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1098
1124
|
zip: string;
|
|
1099
|
-
country: "USA";
|
|
1100
|
-
addressLine2?: string | undefined;
|
|
1101
1125
|
coordinates?: {
|
|
1102
1126
|
lat: number;
|
|
1103
1127
|
lon: number;
|
|
1104
1128
|
} | undefined;
|
|
1129
|
+
country: "USA";
|
|
1105
1130
|
} | [{
|
|
1106
1131
|
addressLine1: string;
|
|
1132
|
+
addressLine2?: string | undefined;
|
|
1107
1133
|
city: string;
|
|
1108
1134
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1109
1135
|
zip: string;
|
|
1110
|
-
country: "USA";
|
|
1111
|
-
addressLine2?: string | undefined;
|
|
1112
1136
|
coordinates?: {
|
|
1113
1137
|
lat: number;
|
|
1114
1138
|
lon: number;
|
|
1115
1139
|
} | undefined;
|
|
1140
|
+
country: "USA";
|
|
1116
1141
|
}, ...{
|
|
1117
1142
|
addressLine1: string;
|
|
1143
|
+
addressLine2?: string | undefined;
|
|
1118
1144
|
city: string;
|
|
1119
1145
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1120
1146
|
zip: string;
|
|
1121
|
-
country: "USA";
|
|
1122
|
-
addressLine2?: string | undefined;
|
|
1123
1147
|
coordinates?: {
|
|
1124
1148
|
lat: number;
|
|
1125
1149
|
lon: number;
|
|
1126
1150
|
} | undefined;
|
|
1151
|
+
country: "USA";
|
|
1127
1152
|
}[]];
|
|
1128
|
-
eTag?: string | undefined;
|
|
1129
|
-
personalIdentifiers?: ({
|
|
1130
|
-
type: "driversLicense";
|
|
1131
|
-
value: string;
|
|
1132
|
-
state: import("@metriport/shared").USState;
|
|
1133
|
-
period?: {
|
|
1134
|
-
start: string;
|
|
1135
|
-
end?: string | undefined;
|
|
1136
|
-
} | {
|
|
1137
|
-
end: string;
|
|
1138
|
-
start?: string | undefined;
|
|
1139
|
-
} | undefined;
|
|
1140
|
-
assigner?: string | undefined;
|
|
1141
|
-
} | {
|
|
1142
|
-
type: "ssn";
|
|
1143
|
-
value: string;
|
|
1144
|
-
period?: {
|
|
1145
|
-
start: string;
|
|
1146
|
-
end?: string | undefined;
|
|
1147
|
-
} | {
|
|
1148
|
-
end: string;
|
|
1149
|
-
start?: string | undefined;
|
|
1150
|
-
} | undefined;
|
|
1151
|
-
assigner?: string | undefined;
|
|
1152
|
-
})[] | undefined;
|
|
1153
1153
|
contact?: {
|
|
1154
1154
|
phone?: string | null | undefined;
|
|
1155
1155
|
email?: string | null | undefined;
|
|
1156
|
-
} | {
|
|
1156
|
+
}[] | {
|
|
1157
1157
|
phone?: string | null | undefined;
|
|
1158
1158
|
email?: string | null | undefined;
|
|
1159
|
-
}
|
|
1159
|
+
} | undefined;
|
|
1160
|
+
externalId?: string | undefined;
|
|
1161
|
+
hieOptOut?: boolean | undefined;
|
|
1160
1162
|
hie?: {
|
|
1161
1163
|
carequality?: {
|
|
1162
1164
|
exclude?: boolean | undefined;
|
|
@@ -1168,8 +1170,6 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1168
1170
|
exclude?: boolean | undefined;
|
|
1169
1171
|
} | undefined;
|
|
1170
1172
|
} | undefined;
|
|
1171
|
-
externalId?: string | undefined;
|
|
1172
|
-
hieOptOut?: boolean | undefined;
|
|
1173
1173
|
settings?: {
|
|
1174
1174
|
subscriptions?: {
|
|
1175
1175
|
adt?: string[] | undefined;
|
|
@@ -1178,16 +1178,41 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1178
1178
|
cohorts?: string[] | undefined;
|
|
1179
1179
|
}, {
|
|
1180
1180
|
id: string;
|
|
1181
|
+
eTag?: string | undefined;
|
|
1181
1182
|
firstName: string;
|
|
1182
1183
|
lastName: string;
|
|
1183
1184
|
dob: string;
|
|
1184
1185
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
1186
|
+
personalIdentifiers?: ({
|
|
1187
|
+
value: string;
|
|
1188
|
+
period?: {
|
|
1189
|
+
start: string;
|
|
1190
|
+
end?: string | undefined;
|
|
1191
|
+
} | {
|
|
1192
|
+
start?: string | undefined;
|
|
1193
|
+
end: string;
|
|
1194
|
+
} | undefined;
|
|
1195
|
+
assigner?: string | undefined;
|
|
1196
|
+
type: "driversLicense";
|
|
1197
|
+
state?: unknown;
|
|
1198
|
+
} | {
|
|
1199
|
+
value: string;
|
|
1200
|
+
period?: {
|
|
1201
|
+
start: string;
|
|
1202
|
+
end?: string | undefined;
|
|
1203
|
+
} | {
|
|
1204
|
+
start?: string | undefined;
|
|
1205
|
+
end: string;
|
|
1206
|
+
} | undefined;
|
|
1207
|
+
assigner?: string | undefined;
|
|
1208
|
+
type: "ssn";
|
|
1209
|
+
})[] | undefined;
|
|
1185
1210
|
address: {
|
|
1186
1211
|
addressLine1: string;
|
|
1187
|
-
city: string;
|
|
1188
|
-
zip: string;
|
|
1189
1212
|
addressLine2?: string | undefined;
|
|
1213
|
+
city: string;
|
|
1190
1214
|
state?: unknown;
|
|
1215
|
+
zip: string;
|
|
1191
1216
|
coordinates?: {
|
|
1192
1217
|
lat: number;
|
|
1193
1218
|
lon: number;
|
|
@@ -1195,10 +1220,10 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1195
1220
|
country?: "USA" | undefined;
|
|
1196
1221
|
} | [{
|
|
1197
1222
|
addressLine1: string;
|
|
1198
|
-
city: string;
|
|
1199
|
-
zip: string;
|
|
1200
1223
|
addressLine2?: string | undefined;
|
|
1224
|
+
city: string;
|
|
1201
1225
|
state?: unknown;
|
|
1226
|
+
zip: string;
|
|
1202
1227
|
coordinates?: {
|
|
1203
1228
|
lat: number;
|
|
1204
1229
|
lon: number;
|
|
@@ -1206,48 +1231,25 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1206
1231
|
country?: "USA" | undefined;
|
|
1207
1232
|
}, ...{
|
|
1208
1233
|
addressLine1: string;
|
|
1209
|
-
city: string;
|
|
1210
|
-
zip: string;
|
|
1211
1234
|
addressLine2?: string | undefined;
|
|
1235
|
+
city: string;
|
|
1212
1236
|
state?: unknown;
|
|
1237
|
+
zip: string;
|
|
1213
1238
|
coordinates?: {
|
|
1214
1239
|
lat: number;
|
|
1215
1240
|
lon: number;
|
|
1216
1241
|
} | undefined;
|
|
1217
1242
|
country?: "USA" | undefined;
|
|
1218
1243
|
}[]];
|
|
1219
|
-
eTag?: string | undefined;
|
|
1220
|
-
personalIdentifiers?: ({
|
|
1221
|
-
type: "driversLicense";
|
|
1222
|
-
value: string;
|
|
1223
|
-
state?: unknown;
|
|
1224
|
-
period?: {
|
|
1225
|
-
start: string;
|
|
1226
|
-
end?: string | undefined;
|
|
1227
|
-
} | {
|
|
1228
|
-
end: string;
|
|
1229
|
-
start?: string | undefined;
|
|
1230
|
-
} | undefined;
|
|
1231
|
-
assigner?: string | undefined;
|
|
1232
|
-
} | {
|
|
1233
|
-
type: "ssn";
|
|
1234
|
-
value: string;
|
|
1235
|
-
period?: {
|
|
1236
|
-
start: string;
|
|
1237
|
-
end?: string | undefined;
|
|
1238
|
-
} | {
|
|
1239
|
-
end: string;
|
|
1240
|
-
start?: string | undefined;
|
|
1241
|
-
} | undefined;
|
|
1242
|
-
assigner?: string | undefined;
|
|
1243
|
-
})[] | undefined;
|
|
1244
1244
|
contact?: {
|
|
1245
1245
|
phone?: string | null | undefined;
|
|
1246
1246
|
email?: string | null | undefined;
|
|
1247
|
-
} | {
|
|
1247
|
+
}[] | {
|
|
1248
1248
|
phone?: string | null | undefined;
|
|
1249
1249
|
email?: string | null | undefined;
|
|
1250
|
-
}
|
|
1250
|
+
} | undefined;
|
|
1251
|
+
externalId?: string | undefined;
|
|
1252
|
+
hieOptOut?: boolean | undefined;
|
|
1251
1253
|
hie?: {
|
|
1252
1254
|
carequality?: {
|
|
1253
1255
|
exclude?: boolean | undefined;
|
|
@@ -1259,8 +1261,6 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1259
1261
|
exclude?: boolean | undefined;
|
|
1260
1262
|
} | undefined;
|
|
1261
1263
|
} | undefined;
|
|
1262
|
-
externalId?: string | undefined;
|
|
1263
|
-
hieOptOut?: boolean | undefined;
|
|
1264
1264
|
settings?: {
|
|
1265
1265
|
subscriptions?: {
|
|
1266
1266
|
adt?: string[] | undefined;
|
|
@@ -1289,11 +1289,11 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1289
1289
|
start: z.ZodOptional<z.ZodString>;
|
|
1290
1290
|
end: z.ZodString;
|
|
1291
1291
|
}, "strip", z.ZodTypeAny, {
|
|
1292
|
-
end: string;
|
|
1293
1292
|
start?: string | undefined;
|
|
1294
|
-
}, {
|
|
1295
1293
|
end: string;
|
|
1294
|
+
}, {
|
|
1296
1295
|
start?: string | undefined;
|
|
1296
|
+
end: string;
|
|
1297
1297
|
}>]>>;
|
|
1298
1298
|
assigner: z.ZodOptional<z.ZodString>;
|
|
1299
1299
|
}, {
|
|
@@ -1352,29 +1352,29 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1352
1352
|
WY: import("@metriport/shared").USState.WY;
|
|
1353
1353
|
}>, import("@metriport/shared").USState, unknown>;
|
|
1354
1354
|
}>, "strip", z.ZodTypeAny, {
|
|
1355
|
-
type: "driversLicense";
|
|
1356
1355
|
value: string;
|
|
1357
|
-
state: import("@metriport/shared").USState;
|
|
1358
1356
|
period?: {
|
|
1359
1357
|
start: string;
|
|
1360
1358
|
end?: string | undefined;
|
|
1361
1359
|
} | {
|
|
1362
|
-
end: string;
|
|
1363
1360
|
start?: string | undefined;
|
|
1361
|
+
end: string;
|
|
1364
1362
|
} | undefined;
|
|
1365
1363
|
assigner?: string | undefined;
|
|
1366
|
-
}, {
|
|
1367
1364
|
type: "driversLicense";
|
|
1365
|
+
state: import("@metriport/shared").USState;
|
|
1366
|
+
}, {
|
|
1368
1367
|
value: string;
|
|
1369
|
-
state?: unknown;
|
|
1370
1368
|
period?: {
|
|
1371
1369
|
start: string;
|
|
1372
1370
|
end?: string | undefined;
|
|
1373
1371
|
} | {
|
|
1374
|
-
end: string;
|
|
1375
1372
|
start?: string | undefined;
|
|
1373
|
+
end: string;
|
|
1376
1374
|
} | undefined;
|
|
1377
1375
|
assigner?: string | undefined;
|
|
1376
|
+
type: "driversLicense";
|
|
1377
|
+
state?: unknown;
|
|
1378
1378
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1379
1379
|
value: z.ZodString;
|
|
1380
1380
|
period: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -1390,37 +1390,37 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1390
1390
|
start: z.ZodOptional<z.ZodString>;
|
|
1391
1391
|
end: z.ZodString;
|
|
1392
1392
|
}, "strip", z.ZodTypeAny, {
|
|
1393
|
-
end: string;
|
|
1394
1393
|
start?: string | undefined;
|
|
1395
|
-
}, {
|
|
1396
1394
|
end: string;
|
|
1395
|
+
}, {
|
|
1397
1396
|
start?: string | undefined;
|
|
1397
|
+
end: string;
|
|
1398
1398
|
}>]>>;
|
|
1399
1399
|
assigner: z.ZodOptional<z.ZodString>;
|
|
1400
1400
|
}, {
|
|
1401
1401
|
type: z.ZodEnum<["ssn"]>;
|
|
1402
1402
|
}>, "strip", z.ZodTypeAny, {
|
|
1403
|
-
type: "ssn";
|
|
1404
1403
|
value: string;
|
|
1405
1404
|
period?: {
|
|
1406
1405
|
start: string;
|
|
1407
1406
|
end?: string | undefined;
|
|
1408
1407
|
} | {
|
|
1409
|
-
end: string;
|
|
1410
1408
|
start?: string | undefined;
|
|
1409
|
+
end: string;
|
|
1411
1410
|
} | undefined;
|
|
1412
1411
|
assigner?: string | undefined;
|
|
1413
|
-
}, {
|
|
1414
1412
|
type: "ssn";
|
|
1413
|
+
}, {
|
|
1415
1414
|
value: string;
|
|
1416
1415
|
period?: {
|
|
1417
1416
|
start: string;
|
|
1418
1417
|
end?: string | undefined;
|
|
1419
1418
|
} | {
|
|
1420
|
-
end: string;
|
|
1421
1419
|
start?: string | undefined;
|
|
1420
|
+
end: string;
|
|
1422
1421
|
} | undefined;
|
|
1423
1422
|
assigner?: string | undefined;
|
|
1423
|
+
type: "ssn";
|
|
1424
1424
|
}>]>, "many">>;
|
|
1425
1425
|
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1426
1426
|
addressLine1: z.ZodString;
|
|
@@ -1493,21 +1493,21 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1493
1493
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1494
1494
|
}, "strip", z.ZodTypeAny, {
|
|
1495
1495
|
addressLine1: string;
|
|
1496
|
+
addressLine2?: string | undefined;
|
|
1496
1497
|
city: string;
|
|
1497
1498
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1498
1499
|
zip: string;
|
|
1499
|
-
country: "USA";
|
|
1500
|
-
addressLine2?: string | undefined;
|
|
1501
1500
|
coordinates?: {
|
|
1502
1501
|
lat: number;
|
|
1503
1502
|
lon: number;
|
|
1504
1503
|
} | undefined;
|
|
1504
|
+
country: "USA";
|
|
1505
1505
|
}, {
|
|
1506
1506
|
addressLine1: string;
|
|
1507
|
-
city: string;
|
|
1508
|
-
zip: string;
|
|
1509
1507
|
addressLine2?: string | undefined;
|
|
1508
|
+
city: string;
|
|
1510
1509
|
state?: unknown;
|
|
1510
|
+
zip: string;
|
|
1511
1511
|
coordinates?: {
|
|
1512
1512
|
lat: number;
|
|
1513
1513
|
lon: number;
|
|
@@ -1584,21 +1584,21 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1584
1584
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1585
1585
|
}, "strip", z.ZodTypeAny, {
|
|
1586
1586
|
addressLine1: string;
|
|
1587
|
+
addressLine2?: string | undefined;
|
|
1587
1588
|
city: string;
|
|
1588
1589
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1589
1590
|
zip: string;
|
|
1590
|
-
country: "USA";
|
|
1591
|
-
addressLine2?: string | undefined;
|
|
1592
1591
|
coordinates?: {
|
|
1593
1592
|
lat: number;
|
|
1594
1593
|
lon: number;
|
|
1595
1594
|
} | undefined;
|
|
1595
|
+
country: "USA";
|
|
1596
1596
|
}, {
|
|
1597
1597
|
addressLine1: string;
|
|
1598
|
-
city: string;
|
|
1599
|
-
zip: string;
|
|
1600
1598
|
addressLine2?: string | undefined;
|
|
1599
|
+
city: string;
|
|
1601
1600
|
state?: unknown;
|
|
1601
|
+
zip: string;
|
|
1602
1602
|
coordinates?: {
|
|
1603
1603
|
lat: number;
|
|
1604
1604
|
lon: number;
|
|
@@ -1727,77 +1727,78 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1727
1727
|
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
1728
1728
|
}>, "strip", z.ZodTypeAny, {
|
|
1729
1729
|
id: string;
|
|
1730
|
+
eTag?: string | undefined;
|
|
1730
1731
|
firstName: string;
|
|
1731
1732
|
lastName: string;
|
|
1732
1733
|
dob: string;
|
|
1733
1734
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
1735
|
+
personalIdentifiers?: ({
|
|
1736
|
+
value: string;
|
|
1737
|
+
period?: {
|
|
1738
|
+
start: string;
|
|
1739
|
+
end?: string | undefined;
|
|
1740
|
+
} | {
|
|
1741
|
+
start?: string | undefined;
|
|
1742
|
+
end: string;
|
|
1743
|
+
} | undefined;
|
|
1744
|
+
assigner?: string | undefined;
|
|
1745
|
+
type: "driversLicense";
|
|
1746
|
+
state: import("@metriport/shared").USState;
|
|
1747
|
+
} | {
|
|
1748
|
+
value: string;
|
|
1749
|
+
period?: {
|
|
1750
|
+
start: string;
|
|
1751
|
+
end?: string | undefined;
|
|
1752
|
+
} | {
|
|
1753
|
+
start?: string | undefined;
|
|
1754
|
+
end: string;
|
|
1755
|
+
} | undefined;
|
|
1756
|
+
assigner?: string | undefined;
|
|
1757
|
+
type: "ssn";
|
|
1758
|
+
})[] | undefined;
|
|
1734
1759
|
address: {
|
|
1735
1760
|
addressLine1: string;
|
|
1761
|
+
addressLine2?: string | undefined;
|
|
1736
1762
|
city: string;
|
|
1737
1763
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1738
1764
|
zip: string;
|
|
1739
|
-
country: "USA";
|
|
1740
|
-
addressLine2?: string | undefined;
|
|
1741
1765
|
coordinates?: {
|
|
1742
1766
|
lat: number;
|
|
1743
1767
|
lon: number;
|
|
1744
1768
|
} | undefined;
|
|
1769
|
+
country: "USA";
|
|
1745
1770
|
} | [{
|
|
1746
1771
|
addressLine1: string;
|
|
1772
|
+
addressLine2?: string | undefined;
|
|
1747
1773
|
city: string;
|
|
1748
1774
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1749
1775
|
zip: string;
|
|
1750
|
-
country: "USA";
|
|
1751
|
-
addressLine2?: string | undefined;
|
|
1752
1776
|
coordinates?: {
|
|
1753
1777
|
lat: number;
|
|
1754
1778
|
lon: number;
|
|
1755
1779
|
} | undefined;
|
|
1780
|
+
country: "USA";
|
|
1756
1781
|
}, ...{
|
|
1757
1782
|
addressLine1: string;
|
|
1783
|
+
addressLine2?: string | undefined;
|
|
1758
1784
|
city: string;
|
|
1759
1785
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1760
1786
|
zip: string;
|
|
1761
|
-
country: "USA";
|
|
1762
|
-
addressLine2?: string | undefined;
|
|
1763
1787
|
coordinates?: {
|
|
1764
1788
|
lat: number;
|
|
1765
1789
|
lon: number;
|
|
1766
1790
|
} | undefined;
|
|
1791
|
+
country: "USA";
|
|
1767
1792
|
}[]];
|
|
1768
|
-
facilityIds: string[];
|
|
1769
|
-
eTag?: string | undefined;
|
|
1770
|
-
personalIdentifiers?: ({
|
|
1771
|
-
type: "driversLicense";
|
|
1772
|
-
value: string;
|
|
1773
|
-
state: import("@metriport/shared").USState;
|
|
1774
|
-
period?: {
|
|
1775
|
-
start: string;
|
|
1776
|
-
end?: string | undefined;
|
|
1777
|
-
} | {
|
|
1778
|
-
end: string;
|
|
1779
|
-
start?: string | undefined;
|
|
1780
|
-
} | undefined;
|
|
1781
|
-
assigner?: string | undefined;
|
|
1782
|
-
} | {
|
|
1783
|
-
type: "ssn";
|
|
1784
|
-
value: string;
|
|
1785
|
-
period?: {
|
|
1786
|
-
start: string;
|
|
1787
|
-
end?: string | undefined;
|
|
1788
|
-
} | {
|
|
1789
|
-
end: string;
|
|
1790
|
-
start?: string | undefined;
|
|
1791
|
-
} | undefined;
|
|
1792
|
-
assigner?: string | undefined;
|
|
1793
|
-
})[] | undefined;
|
|
1794
1793
|
contact?: {
|
|
1795
1794
|
phone?: string | null | undefined;
|
|
1796
1795
|
email?: string | null | undefined;
|
|
1797
|
-
} | {
|
|
1796
|
+
}[] | {
|
|
1798
1797
|
phone?: string | null | undefined;
|
|
1799
1798
|
email?: string | null | undefined;
|
|
1800
|
-
}
|
|
1799
|
+
} | undefined;
|
|
1800
|
+
externalId?: string | undefined;
|
|
1801
|
+
hieOptOut?: boolean | undefined;
|
|
1801
1802
|
hie?: {
|
|
1802
1803
|
carequality?: {
|
|
1803
1804
|
exclude?: boolean | undefined;
|
|
@@ -1809,26 +1810,50 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1809
1810
|
exclude?: boolean | undefined;
|
|
1810
1811
|
} | undefined;
|
|
1811
1812
|
} | undefined;
|
|
1812
|
-
externalId?: string | undefined;
|
|
1813
|
-
hieOptOut?: boolean | undefined;
|
|
1814
1813
|
settings?: {
|
|
1815
1814
|
subscriptions?: {
|
|
1816
1815
|
adt?: string[] | undefined;
|
|
1817
1816
|
} | undefined;
|
|
1818
1817
|
} | undefined;
|
|
1819
1818
|
cohorts?: string[] | undefined;
|
|
1819
|
+
facilityIds: string[];
|
|
1820
1820
|
}, {
|
|
1821
1821
|
id: string;
|
|
1822
|
+
eTag?: string | undefined;
|
|
1822
1823
|
firstName: string;
|
|
1823
1824
|
lastName: string;
|
|
1824
1825
|
dob: string;
|
|
1825
1826
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
1827
|
+
personalIdentifiers?: ({
|
|
1828
|
+
value: string;
|
|
1829
|
+
period?: {
|
|
1830
|
+
start: string;
|
|
1831
|
+
end?: string | undefined;
|
|
1832
|
+
} | {
|
|
1833
|
+
start?: string | undefined;
|
|
1834
|
+
end: string;
|
|
1835
|
+
} | undefined;
|
|
1836
|
+
assigner?: string | undefined;
|
|
1837
|
+
type: "driversLicense";
|
|
1838
|
+
state?: unknown;
|
|
1839
|
+
} | {
|
|
1840
|
+
value: string;
|
|
1841
|
+
period?: {
|
|
1842
|
+
start: string;
|
|
1843
|
+
end?: string | undefined;
|
|
1844
|
+
} | {
|
|
1845
|
+
start?: string | undefined;
|
|
1846
|
+
end: string;
|
|
1847
|
+
} | undefined;
|
|
1848
|
+
assigner?: string | undefined;
|
|
1849
|
+
type: "ssn";
|
|
1850
|
+
})[] | undefined;
|
|
1826
1851
|
address: {
|
|
1827
1852
|
addressLine1: string;
|
|
1828
|
-
city: string;
|
|
1829
|
-
zip: string;
|
|
1830
1853
|
addressLine2?: string | undefined;
|
|
1854
|
+
city: string;
|
|
1831
1855
|
state?: unknown;
|
|
1856
|
+
zip: string;
|
|
1832
1857
|
coordinates?: {
|
|
1833
1858
|
lat: number;
|
|
1834
1859
|
lon: number;
|
|
@@ -1836,10 +1861,10 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1836
1861
|
country?: "USA" | undefined;
|
|
1837
1862
|
} | [{
|
|
1838
1863
|
addressLine1: string;
|
|
1839
|
-
city: string;
|
|
1840
|
-
zip: string;
|
|
1841
1864
|
addressLine2?: string | undefined;
|
|
1865
|
+
city: string;
|
|
1842
1866
|
state?: unknown;
|
|
1867
|
+
zip: string;
|
|
1843
1868
|
coordinates?: {
|
|
1844
1869
|
lat: number;
|
|
1845
1870
|
lon: number;
|
|
@@ -1847,49 +1872,25 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1847
1872
|
country?: "USA" | undefined;
|
|
1848
1873
|
}, ...{
|
|
1849
1874
|
addressLine1: string;
|
|
1850
|
-
city: string;
|
|
1851
|
-
zip: string;
|
|
1852
1875
|
addressLine2?: string | undefined;
|
|
1876
|
+
city: string;
|
|
1853
1877
|
state?: unknown;
|
|
1878
|
+
zip: string;
|
|
1854
1879
|
coordinates?: {
|
|
1855
1880
|
lat: number;
|
|
1856
1881
|
lon: number;
|
|
1857
1882
|
} | undefined;
|
|
1858
1883
|
country?: "USA" | undefined;
|
|
1859
1884
|
}[]];
|
|
1860
|
-
facilityIds: string[];
|
|
1861
|
-
eTag?: string | undefined;
|
|
1862
|
-
personalIdentifiers?: ({
|
|
1863
|
-
type: "driversLicense";
|
|
1864
|
-
value: string;
|
|
1865
|
-
state?: unknown;
|
|
1866
|
-
period?: {
|
|
1867
|
-
start: string;
|
|
1868
|
-
end?: string | undefined;
|
|
1869
|
-
} | {
|
|
1870
|
-
end: string;
|
|
1871
|
-
start?: string | undefined;
|
|
1872
|
-
} | undefined;
|
|
1873
|
-
assigner?: string | undefined;
|
|
1874
|
-
} | {
|
|
1875
|
-
type: "ssn";
|
|
1876
|
-
value: string;
|
|
1877
|
-
period?: {
|
|
1878
|
-
start: string;
|
|
1879
|
-
end?: string | undefined;
|
|
1880
|
-
} | {
|
|
1881
|
-
end: string;
|
|
1882
|
-
start?: string | undefined;
|
|
1883
|
-
} | undefined;
|
|
1884
|
-
assigner?: string | undefined;
|
|
1885
|
-
})[] | undefined;
|
|
1886
1885
|
contact?: {
|
|
1887
1886
|
phone?: string | null | undefined;
|
|
1888
1887
|
email?: string | null | undefined;
|
|
1889
|
-
} | {
|
|
1888
|
+
}[] | {
|
|
1890
1889
|
phone?: string | null | undefined;
|
|
1891
1890
|
email?: string | null | undefined;
|
|
1892
|
-
}
|
|
1891
|
+
} | undefined;
|
|
1892
|
+
externalId?: string | undefined;
|
|
1893
|
+
hieOptOut?: boolean | undefined;
|
|
1893
1894
|
hie?: {
|
|
1894
1895
|
carequality?: {
|
|
1895
1896
|
exclude?: boolean | undefined;
|
|
@@ -1901,14 +1902,13 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1901
1902
|
exclude?: boolean | undefined;
|
|
1902
1903
|
} | undefined;
|
|
1903
1904
|
} | undefined;
|
|
1904
|
-
externalId?: string | undefined;
|
|
1905
|
-
hieOptOut?: boolean | undefined;
|
|
1906
1905
|
settings?: {
|
|
1907
1906
|
subscriptions?: {
|
|
1908
1907
|
adt?: string[] | undefined;
|
|
1909
1908
|
} | undefined;
|
|
1910
1909
|
} | undefined;
|
|
1911
1910
|
cohorts?: string[] | undefined;
|
|
1911
|
+
facilityIds: string[];
|
|
1912
1912
|
}>;
|
|
1913
1913
|
export type Patient = z.infer<typeof patientSchema>;
|
|
1914
1914
|
export declare const patientListSchema: z.ZodObject<{
|
|
@@ -1932,11 +1932,11 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1932
1932
|
start: z.ZodOptional<z.ZodString>;
|
|
1933
1933
|
end: z.ZodString;
|
|
1934
1934
|
}, "strip", z.ZodTypeAny, {
|
|
1935
|
-
end: string;
|
|
1936
1935
|
start?: string | undefined;
|
|
1937
|
-
}, {
|
|
1938
1936
|
end: string;
|
|
1937
|
+
}, {
|
|
1939
1938
|
start?: string | undefined;
|
|
1939
|
+
end: string;
|
|
1940
1940
|
}>]>>;
|
|
1941
1941
|
assigner: z.ZodOptional<z.ZodString>;
|
|
1942
1942
|
}, {
|
|
@@ -1995,29 +1995,29 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1995
1995
|
WY: import("@metriport/shared").USState.WY;
|
|
1996
1996
|
}>, import("@metriport/shared").USState, unknown>;
|
|
1997
1997
|
}>, "strip", z.ZodTypeAny, {
|
|
1998
|
-
type: "driversLicense";
|
|
1999
1998
|
value: string;
|
|
2000
|
-
state: import("@metriport/shared").USState;
|
|
2001
1999
|
period?: {
|
|
2002
2000
|
start: string;
|
|
2003
2001
|
end?: string | undefined;
|
|
2004
2002
|
} | {
|
|
2005
|
-
end: string;
|
|
2006
2003
|
start?: string | undefined;
|
|
2004
|
+
end: string;
|
|
2007
2005
|
} | undefined;
|
|
2008
2006
|
assigner?: string | undefined;
|
|
2009
|
-
}, {
|
|
2010
2007
|
type: "driversLicense";
|
|
2008
|
+
state: import("@metriport/shared").USState;
|
|
2009
|
+
}, {
|
|
2011
2010
|
value: string;
|
|
2012
|
-
state?: unknown;
|
|
2013
2011
|
period?: {
|
|
2014
2012
|
start: string;
|
|
2015
2013
|
end?: string | undefined;
|
|
2016
2014
|
} | {
|
|
2017
|
-
end: string;
|
|
2018
2015
|
start?: string | undefined;
|
|
2016
|
+
end: string;
|
|
2019
2017
|
} | undefined;
|
|
2020
2018
|
assigner?: string | undefined;
|
|
2019
|
+
type: "driversLicense";
|
|
2020
|
+
state?: unknown;
|
|
2021
2021
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2022
2022
|
value: z.ZodString;
|
|
2023
2023
|
period: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -2033,37 +2033,37 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2033
2033
|
start: z.ZodOptional<z.ZodString>;
|
|
2034
2034
|
end: z.ZodString;
|
|
2035
2035
|
}, "strip", z.ZodTypeAny, {
|
|
2036
|
-
end: string;
|
|
2037
2036
|
start?: string | undefined;
|
|
2038
|
-
}, {
|
|
2039
2037
|
end: string;
|
|
2038
|
+
}, {
|
|
2040
2039
|
start?: string | undefined;
|
|
2040
|
+
end: string;
|
|
2041
2041
|
}>]>>;
|
|
2042
2042
|
assigner: z.ZodOptional<z.ZodString>;
|
|
2043
2043
|
}, {
|
|
2044
2044
|
type: z.ZodEnum<["ssn"]>;
|
|
2045
2045
|
}>, "strip", z.ZodTypeAny, {
|
|
2046
|
-
type: "ssn";
|
|
2047
2046
|
value: string;
|
|
2048
2047
|
period?: {
|
|
2049
2048
|
start: string;
|
|
2050
2049
|
end?: string | undefined;
|
|
2051
2050
|
} | {
|
|
2052
|
-
end: string;
|
|
2053
2051
|
start?: string | undefined;
|
|
2052
|
+
end: string;
|
|
2054
2053
|
} | undefined;
|
|
2055
2054
|
assigner?: string | undefined;
|
|
2056
|
-
}, {
|
|
2057
2055
|
type: "ssn";
|
|
2056
|
+
}, {
|
|
2058
2057
|
value: string;
|
|
2059
2058
|
period?: {
|
|
2060
2059
|
start: string;
|
|
2061
2060
|
end?: string | undefined;
|
|
2062
2061
|
} | {
|
|
2063
|
-
end: string;
|
|
2064
2062
|
start?: string | undefined;
|
|
2063
|
+
end: string;
|
|
2065
2064
|
} | undefined;
|
|
2066
2065
|
assigner?: string | undefined;
|
|
2066
|
+
type: "ssn";
|
|
2067
2067
|
}>]>, "many">>;
|
|
2068
2068
|
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
2069
2069
|
addressLine1: z.ZodString;
|
|
@@ -2136,21 +2136,21 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2136
2136
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
2137
2137
|
}, "strip", z.ZodTypeAny, {
|
|
2138
2138
|
addressLine1: string;
|
|
2139
|
+
addressLine2?: string | undefined;
|
|
2139
2140
|
city: string;
|
|
2140
2141
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2141
2142
|
zip: string;
|
|
2142
|
-
country: "USA";
|
|
2143
|
-
addressLine2?: string | undefined;
|
|
2144
2143
|
coordinates?: {
|
|
2145
2144
|
lat: number;
|
|
2146
2145
|
lon: number;
|
|
2147
2146
|
} | undefined;
|
|
2147
|
+
country: "USA";
|
|
2148
2148
|
}, {
|
|
2149
2149
|
addressLine1: string;
|
|
2150
|
-
city: string;
|
|
2151
|
-
zip: string;
|
|
2152
2150
|
addressLine2?: string | undefined;
|
|
2151
|
+
city: string;
|
|
2153
2152
|
state?: unknown;
|
|
2153
|
+
zip: string;
|
|
2154
2154
|
coordinates?: {
|
|
2155
2155
|
lat: number;
|
|
2156
2156
|
lon: number;
|
|
@@ -2227,21 +2227,21 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2227
2227
|
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
2228
2228
|
}, "strip", z.ZodTypeAny, {
|
|
2229
2229
|
addressLine1: string;
|
|
2230
|
+
addressLine2?: string | undefined;
|
|
2230
2231
|
city: string;
|
|
2231
2232
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2232
2233
|
zip: string;
|
|
2233
|
-
country: "USA";
|
|
2234
|
-
addressLine2?: string | undefined;
|
|
2235
2234
|
coordinates?: {
|
|
2236
2235
|
lat: number;
|
|
2237
2236
|
lon: number;
|
|
2238
2237
|
} | undefined;
|
|
2238
|
+
country: "USA";
|
|
2239
2239
|
}, {
|
|
2240
2240
|
addressLine1: string;
|
|
2241
|
-
city: string;
|
|
2242
|
-
zip: string;
|
|
2243
2241
|
addressLine2?: string | undefined;
|
|
2242
|
+
city: string;
|
|
2244
2243
|
state?: unknown;
|
|
2244
|
+
zip: string;
|
|
2245
2245
|
coordinates?: {
|
|
2246
2246
|
lat: number;
|
|
2247
2247
|
lon: number;
|
|
@@ -2370,77 +2370,78 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2370
2370
|
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
2371
2371
|
}>, "strip", z.ZodTypeAny, {
|
|
2372
2372
|
id: string;
|
|
2373
|
+
eTag?: string | undefined;
|
|
2373
2374
|
firstName: string;
|
|
2374
2375
|
lastName: string;
|
|
2375
2376
|
dob: string;
|
|
2376
2377
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
2378
|
+
personalIdentifiers?: ({
|
|
2379
|
+
value: string;
|
|
2380
|
+
period?: {
|
|
2381
|
+
start: string;
|
|
2382
|
+
end?: string | undefined;
|
|
2383
|
+
} | {
|
|
2384
|
+
start?: string | undefined;
|
|
2385
|
+
end: string;
|
|
2386
|
+
} | undefined;
|
|
2387
|
+
assigner?: string | undefined;
|
|
2388
|
+
type: "driversLicense";
|
|
2389
|
+
state: import("@metriport/shared").USState;
|
|
2390
|
+
} | {
|
|
2391
|
+
value: string;
|
|
2392
|
+
period?: {
|
|
2393
|
+
start: string;
|
|
2394
|
+
end?: string | undefined;
|
|
2395
|
+
} | {
|
|
2396
|
+
start?: string | undefined;
|
|
2397
|
+
end: string;
|
|
2398
|
+
} | undefined;
|
|
2399
|
+
assigner?: string | undefined;
|
|
2400
|
+
type: "ssn";
|
|
2401
|
+
})[] | undefined;
|
|
2377
2402
|
address: {
|
|
2378
2403
|
addressLine1: string;
|
|
2404
|
+
addressLine2?: string | undefined;
|
|
2379
2405
|
city: string;
|
|
2380
2406
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2381
2407
|
zip: string;
|
|
2382
|
-
country: "USA";
|
|
2383
|
-
addressLine2?: string | undefined;
|
|
2384
2408
|
coordinates?: {
|
|
2385
2409
|
lat: number;
|
|
2386
2410
|
lon: number;
|
|
2387
2411
|
} | undefined;
|
|
2412
|
+
country: "USA";
|
|
2388
2413
|
} | [{
|
|
2389
2414
|
addressLine1: string;
|
|
2415
|
+
addressLine2?: string | undefined;
|
|
2390
2416
|
city: string;
|
|
2391
2417
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2392
2418
|
zip: string;
|
|
2393
|
-
country: "USA";
|
|
2394
|
-
addressLine2?: string | undefined;
|
|
2395
2419
|
coordinates?: {
|
|
2396
2420
|
lat: number;
|
|
2397
2421
|
lon: number;
|
|
2398
2422
|
} | undefined;
|
|
2423
|
+
country: "USA";
|
|
2399
2424
|
}, ...{
|
|
2400
2425
|
addressLine1: string;
|
|
2426
|
+
addressLine2?: string | undefined;
|
|
2401
2427
|
city: string;
|
|
2402
2428
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2403
2429
|
zip: string;
|
|
2404
|
-
country: "USA";
|
|
2405
|
-
addressLine2?: string | undefined;
|
|
2406
2430
|
coordinates?: {
|
|
2407
2431
|
lat: number;
|
|
2408
2432
|
lon: number;
|
|
2409
2433
|
} | undefined;
|
|
2434
|
+
country: "USA";
|
|
2410
2435
|
}[]];
|
|
2411
|
-
facilityIds: string[];
|
|
2412
|
-
eTag?: string | undefined;
|
|
2413
|
-
personalIdentifiers?: ({
|
|
2414
|
-
type: "driversLicense";
|
|
2415
|
-
value: string;
|
|
2416
|
-
state: import("@metriport/shared").USState;
|
|
2417
|
-
period?: {
|
|
2418
|
-
start: string;
|
|
2419
|
-
end?: string | undefined;
|
|
2420
|
-
} | {
|
|
2421
|
-
end: string;
|
|
2422
|
-
start?: string | undefined;
|
|
2423
|
-
} | undefined;
|
|
2424
|
-
assigner?: string | undefined;
|
|
2425
|
-
} | {
|
|
2426
|
-
type: "ssn";
|
|
2427
|
-
value: string;
|
|
2428
|
-
period?: {
|
|
2429
|
-
start: string;
|
|
2430
|
-
end?: string | undefined;
|
|
2431
|
-
} | {
|
|
2432
|
-
end: string;
|
|
2433
|
-
start?: string | undefined;
|
|
2434
|
-
} | undefined;
|
|
2435
|
-
assigner?: string | undefined;
|
|
2436
|
-
})[] | undefined;
|
|
2437
2436
|
contact?: {
|
|
2438
2437
|
phone?: string | null | undefined;
|
|
2439
2438
|
email?: string | null | undefined;
|
|
2440
|
-
} | {
|
|
2439
|
+
}[] | {
|
|
2441
2440
|
phone?: string | null | undefined;
|
|
2442
2441
|
email?: string | null | undefined;
|
|
2443
|
-
}
|
|
2442
|
+
} | undefined;
|
|
2443
|
+
externalId?: string | undefined;
|
|
2444
|
+
hieOptOut?: boolean | undefined;
|
|
2444
2445
|
hie?: {
|
|
2445
2446
|
carequality?: {
|
|
2446
2447
|
exclude?: boolean | undefined;
|
|
@@ -2452,26 +2453,50 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2452
2453
|
exclude?: boolean | undefined;
|
|
2453
2454
|
} | undefined;
|
|
2454
2455
|
} | undefined;
|
|
2455
|
-
externalId?: string | undefined;
|
|
2456
|
-
hieOptOut?: boolean | undefined;
|
|
2457
2456
|
settings?: {
|
|
2458
2457
|
subscriptions?: {
|
|
2459
2458
|
adt?: string[] | undefined;
|
|
2460
2459
|
} | undefined;
|
|
2461
2460
|
} | undefined;
|
|
2462
2461
|
cohorts?: string[] | undefined;
|
|
2462
|
+
facilityIds: string[];
|
|
2463
2463
|
}, {
|
|
2464
2464
|
id: string;
|
|
2465
|
+
eTag?: string | undefined;
|
|
2465
2466
|
firstName: string;
|
|
2466
2467
|
lastName: string;
|
|
2467
2468
|
dob: string;
|
|
2468
2469
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
2470
|
+
personalIdentifiers?: ({
|
|
2471
|
+
value: string;
|
|
2472
|
+
period?: {
|
|
2473
|
+
start: string;
|
|
2474
|
+
end?: string | undefined;
|
|
2475
|
+
} | {
|
|
2476
|
+
start?: string | undefined;
|
|
2477
|
+
end: string;
|
|
2478
|
+
} | undefined;
|
|
2479
|
+
assigner?: string | undefined;
|
|
2480
|
+
type: "driversLicense";
|
|
2481
|
+
state?: unknown;
|
|
2482
|
+
} | {
|
|
2483
|
+
value: string;
|
|
2484
|
+
period?: {
|
|
2485
|
+
start: string;
|
|
2486
|
+
end?: string | undefined;
|
|
2487
|
+
} | {
|
|
2488
|
+
start?: string | undefined;
|
|
2489
|
+
end: string;
|
|
2490
|
+
} | undefined;
|
|
2491
|
+
assigner?: string | undefined;
|
|
2492
|
+
type: "ssn";
|
|
2493
|
+
})[] | undefined;
|
|
2469
2494
|
address: {
|
|
2470
2495
|
addressLine1: string;
|
|
2471
|
-
city: string;
|
|
2472
|
-
zip: string;
|
|
2473
2496
|
addressLine2?: string | undefined;
|
|
2497
|
+
city: string;
|
|
2474
2498
|
state?: unknown;
|
|
2499
|
+
zip: string;
|
|
2475
2500
|
coordinates?: {
|
|
2476
2501
|
lat: number;
|
|
2477
2502
|
lon: number;
|
|
@@ -2479,10 +2504,10 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2479
2504
|
country?: "USA" | undefined;
|
|
2480
2505
|
} | [{
|
|
2481
2506
|
addressLine1: string;
|
|
2482
|
-
city: string;
|
|
2483
|
-
zip: string;
|
|
2484
2507
|
addressLine2?: string | undefined;
|
|
2508
|
+
city: string;
|
|
2485
2509
|
state?: unknown;
|
|
2510
|
+
zip: string;
|
|
2486
2511
|
coordinates?: {
|
|
2487
2512
|
lat: number;
|
|
2488
2513
|
lon: number;
|
|
@@ -2490,49 +2515,25 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2490
2515
|
country?: "USA" | undefined;
|
|
2491
2516
|
}, ...{
|
|
2492
2517
|
addressLine1: string;
|
|
2493
|
-
city: string;
|
|
2494
|
-
zip: string;
|
|
2495
2518
|
addressLine2?: string | undefined;
|
|
2519
|
+
city: string;
|
|
2496
2520
|
state?: unknown;
|
|
2521
|
+
zip: string;
|
|
2497
2522
|
coordinates?: {
|
|
2498
2523
|
lat: number;
|
|
2499
2524
|
lon: number;
|
|
2500
2525
|
} | undefined;
|
|
2501
2526
|
country?: "USA" | undefined;
|
|
2502
2527
|
}[]];
|
|
2503
|
-
facilityIds: string[];
|
|
2504
|
-
eTag?: string | undefined;
|
|
2505
|
-
personalIdentifiers?: ({
|
|
2506
|
-
type: "driversLicense";
|
|
2507
|
-
value: string;
|
|
2508
|
-
state?: unknown;
|
|
2509
|
-
period?: {
|
|
2510
|
-
start: string;
|
|
2511
|
-
end?: string | undefined;
|
|
2512
|
-
} | {
|
|
2513
|
-
end: string;
|
|
2514
|
-
start?: string | undefined;
|
|
2515
|
-
} | undefined;
|
|
2516
|
-
assigner?: string | undefined;
|
|
2517
|
-
} | {
|
|
2518
|
-
type: "ssn";
|
|
2519
|
-
value: string;
|
|
2520
|
-
period?: {
|
|
2521
|
-
start: string;
|
|
2522
|
-
end?: string | undefined;
|
|
2523
|
-
} | {
|
|
2524
|
-
end: string;
|
|
2525
|
-
start?: string | undefined;
|
|
2526
|
-
} | undefined;
|
|
2527
|
-
assigner?: string | undefined;
|
|
2528
|
-
})[] | undefined;
|
|
2529
2528
|
contact?: {
|
|
2530
2529
|
phone?: string | null | undefined;
|
|
2531
2530
|
email?: string | null | undefined;
|
|
2532
|
-
} | {
|
|
2531
|
+
}[] | {
|
|
2533
2532
|
phone?: string | null | undefined;
|
|
2534
2533
|
email?: string | null | undefined;
|
|
2535
|
-
}
|
|
2534
|
+
} | undefined;
|
|
2535
|
+
externalId?: string | undefined;
|
|
2536
|
+
hieOptOut?: boolean | undefined;
|
|
2536
2537
|
hie?: {
|
|
2537
2538
|
carequality?: {
|
|
2538
2539
|
exclude?: boolean | undefined;
|
|
@@ -2544,89 +2545,89 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2544
2545
|
exclude?: boolean | undefined;
|
|
2545
2546
|
} | undefined;
|
|
2546
2547
|
} | undefined;
|
|
2547
|
-
externalId?: string | undefined;
|
|
2548
|
-
hieOptOut?: boolean | undefined;
|
|
2549
2548
|
settings?: {
|
|
2550
2549
|
subscriptions?: {
|
|
2551
2550
|
adt?: string[] | undefined;
|
|
2552
2551
|
} | undefined;
|
|
2553
2552
|
} | undefined;
|
|
2554
2553
|
cohorts?: string[] | undefined;
|
|
2554
|
+
facilityIds: string[];
|
|
2555
2555
|
}>, "many">;
|
|
2556
2556
|
}, "strip", z.ZodTypeAny, {
|
|
2557
2557
|
patients: {
|
|
2558
2558
|
id: string;
|
|
2559
|
+
eTag?: string | undefined;
|
|
2559
2560
|
firstName: string;
|
|
2560
2561
|
lastName: string;
|
|
2561
2562
|
dob: string;
|
|
2562
2563
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
2564
|
+
personalIdentifiers?: ({
|
|
2565
|
+
value: string;
|
|
2566
|
+
period?: {
|
|
2567
|
+
start: string;
|
|
2568
|
+
end?: string | undefined;
|
|
2569
|
+
} | {
|
|
2570
|
+
start?: string | undefined;
|
|
2571
|
+
end: string;
|
|
2572
|
+
} | undefined;
|
|
2573
|
+
assigner?: string | undefined;
|
|
2574
|
+
type: "driversLicense";
|
|
2575
|
+
state: import("@metriport/shared").USState;
|
|
2576
|
+
} | {
|
|
2577
|
+
value: string;
|
|
2578
|
+
period?: {
|
|
2579
|
+
start: string;
|
|
2580
|
+
end?: string | undefined;
|
|
2581
|
+
} | {
|
|
2582
|
+
start?: string | undefined;
|
|
2583
|
+
end: string;
|
|
2584
|
+
} | undefined;
|
|
2585
|
+
assigner?: string | undefined;
|
|
2586
|
+
type: "ssn";
|
|
2587
|
+
})[] | undefined;
|
|
2563
2588
|
address: {
|
|
2564
2589
|
addressLine1: string;
|
|
2590
|
+
addressLine2?: string | undefined;
|
|
2565
2591
|
city: string;
|
|
2566
2592
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2567
2593
|
zip: string;
|
|
2568
|
-
country: "USA";
|
|
2569
|
-
addressLine2?: string | undefined;
|
|
2570
2594
|
coordinates?: {
|
|
2571
2595
|
lat: number;
|
|
2572
2596
|
lon: number;
|
|
2573
2597
|
} | undefined;
|
|
2598
|
+
country: "USA";
|
|
2574
2599
|
} | [{
|
|
2575
2600
|
addressLine1: string;
|
|
2601
|
+
addressLine2?: string | undefined;
|
|
2576
2602
|
city: string;
|
|
2577
2603
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2578
2604
|
zip: string;
|
|
2579
|
-
country: "USA";
|
|
2580
|
-
addressLine2?: string | undefined;
|
|
2581
2605
|
coordinates?: {
|
|
2582
2606
|
lat: number;
|
|
2583
2607
|
lon: number;
|
|
2584
2608
|
} | undefined;
|
|
2609
|
+
country: "USA";
|
|
2585
2610
|
}, ...{
|
|
2586
2611
|
addressLine1: string;
|
|
2612
|
+
addressLine2?: string | undefined;
|
|
2587
2613
|
city: string;
|
|
2588
2614
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2589
2615
|
zip: string;
|
|
2590
|
-
country: "USA";
|
|
2591
|
-
addressLine2?: string | undefined;
|
|
2592
2616
|
coordinates?: {
|
|
2593
2617
|
lat: number;
|
|
2594
2618
|
lon: number;
|
|
2595
2619
|
} | undefined;
|
|
2620
|
+
country: "USA";
|
|
2596
2621
|
}[]];
|
|
2597
|
-
facilityIds: string[];
|
|
2598
|
-
eTag?: string | undefined;
|
|
2599
|
-
personalIdentifiers?: ({
|
|
2600
|
-
type: "driversLicense";
|
|
2601
|
-
value: string;
|
|
2602
|
-
state: import("@metriport/shared").USState;
|
|
2603
|
-
period?: {
|
|
2604
|
-
start: string;
|
|
2605
|
-
end?: string | undefined;
|
|
2606
|
-
} | {
|
|
2607
|
-
end: string;
|
|
2608
|
-
start?: string | undefined;
|
|
2609
|
-
} | undefined;
|
|
2610
|
-
assigner?: string | undefined;
|
|
2611
|
-
} | {
|
|
2612
|
-
type: "ssn";
|
|
2613
|
-
value: string;
|
|
2614
|
-
period?: {
|
|
2615
|
-
start: string;
|
|
2616
|
-
end?: string | undefined;
|
|
2617
|
-
} | {
|
|
2618
|
-
end: string;
|
|
2619
|
-
start?: string | undefined;
|
|
2620
|
-
} | undefined;
|
|
2621
|
-
assigner?: string | undefined;
|
|
2622
|
-
})[] | undefined;
|
|
2623
2622
|
contact?: {
|
|
2624
2623
|
phone?: string | null | undefined;
|
|
2625
2624
|
email?: string | null | undefined;
|
|
2626
|
-
} | {
|
|
2625
|
+
}[] | {
|
|
2627
2626
|
phone?: string | null | undefined;
|
|
2628
2627
|
email?: string | null | undefined;
|
|
2629
|
-
}
|
|
2628
|
+
} | undefined;
|
|
2629
|
+
externalId?: string | undefined;
|
|
2630
|
+
hieOptOut?: boolean | undefined;
|
|
2630
2631
|
hie?: {
|
|
2631
2632
|
carequality?: {
|
|
2632
2633
|
exclude?: boolean | undefined;
|
|
@@ -2638,28 +2639,52 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2638
2639
|
exclude?: boolean | undefined;
|
|
2639
2640
|
} | undefined;
|
|
2640
2641
|
} | undefined;
|
|
2641
|
-
externalId?: string | undefined;
|
|
2642
|
-
hieOptOut?: boolean | undefined;
|
|
2643
2642
|
settings?: {
|
|
2644
2643
|
subscriptions?: {
|
|
2645
2644
|
adt?: string[] | undefined;
|
|
2646
2645
|
} | undefined;
|
|
2647
2646
|
} | undefined;
|
|
2648
2647
|
cohorts?: string[] | undefined;
|
|
2648
|
+
facilityIds: string[];
|
|
2649
2649
|
}[];
|
|
2650
2650
|
}, {
|
|
2651
2651
|
patients: {
|
|
2652
2652
|
id: string;
|
|
2653
|
+
eTag?: string | undefined;
|
|
2653
2654
|
firstName: string;
|
|
2654
2655
|
lastName: string;
|
|
2655
2656
|
dob: string;
|
|
2656
2657
|
genderAtBirth: "F" | "M" | "O" | "U";
|
|
2658
|
+
personalIdentifiers?: ({
|
|
2659
|
+
value: string;
|
|
2660
|
+
period?: {
|
|
2661
|
+
start: string;
|
|
2662
|
+
end?: string | undefined;
|
|
2663
|
+
} | {
|
|
2664
|
+
start?: string | undefined;
|
|
2665
|
+
end: string;
|
|
2666
|
+
} | undefined;
|
|
2667
|
+
assigner?: string | undefined;
|
|
2668
|
+
type: "driversLicense";
|
|
2669
|
+
state?: unknown;
|
|
2670
|
+
} | {
|
|
2671
|
+
value: string;
|
|
2672
|
+
period?: {
|
|
2673
|
+
start: string;
|
|
2674
|
+
end?: string | undefined;
|
|
2675
|
+
} | {
|
|
2676
|
+
start?: string | undefined;
|
|
2677
|
+
end: string;
|
|
2678
|
+
} | undefined;
|
|
2679
|
+
assigner?: string | undefined;
|
|
2680
|
+
type: "ssn";
|
|
2681
|
+
})[] | undefined;
|
|
2657
2682
|
address: {
|
|
2658
2683
|
addressLine1: string;
|
|
2659
|
-
city: string;
|
|
2660
|
-
zip: string;
|
|
2661
2684
|
addressLine2?: string | undefined;
|
|
2685
|
+
city: string;
|
|
2662
2686
|
state?: unknown;
|
|
2687
|
+
zip: string;
|
|
2663
2688
|
coordinates?: {
|
|
2664
2689
|
lat: number;
|
|
2665
2690
|
lon: number;
|
|
@@ -2667,10 +2692,10 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2667
2692
|
country?: "USA" | undefined;
|
|
2668
2693
|
} | [{
|
|
2669
2694
|
addressLine1: string;
|
|
2670
|
-
city: string;
|
|
2671
|
-
zip: string;
|
|
2672
2695
|
addressLine2?: string | undefined;
|
|
2696
|
+
city: string;
|
|
2673
2697
|
state?: unknown;
|
|
2698
|
+
zip: string;
|
|
2674
2699
|
coordinates?: {
|
|
2675
2700
|
lat: number;
|
|
2676
2701
|
lon: number;
|
|
@@ -2678,49 +2703,25 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2678
2703
|
country?: "USA" | undefined;
|
|
2679
2704
|
}, ...{
|
|
2680
2705
|
addressLine1: string;
|
|
2681
|
-
city: string;
|
|
2682
|
-
zip: string;
|
|
2683
2706
|
addressLine2?: string | undefined;
|
|
2707
|
+
city: string;
|
|
2684
2708
|
state?: unknown;
|
|
2709
|
+
zip: string;
|
|
2685
2710
|
coordinates?: {
|
|
2686
2711
|
lat: number;
|
|
2687
2712
|
lon: number;
|
|
2688
2713
|
} | undefined;
|
|
2689
2714
|
country?: "USA" | undefined;
|
|
2690
2715
|
}[]];
|
|
2691
|
-
facilityIds: string[];
|
|
2692
|
-
eTag?: string | undefined;
|
|
2693
|
-
personalIdentifiers?: ({
|
|
2694
|
-
type: "driversLicense";
|
|
2695
|
-
value: string;
|
|
2696
|
-
state?: unknown;
|
|
2697
|
-
period?: {
|
|
2698
|
-
start: string;
|
|
2699
|
-
end?: string | undefined;
|
|
2700
|
-
} | {
|
|
2701
|
-
end: string;
|
|
2702
|
-
start?: string | undefined;
|
|
2703
|
-
} | undefined;
|
|
2704
|
-
assigner?: string | undefined;
|
|
2705
|
-
} | {
|
|
2706
|
-
type: "ssn";
|
|
2707
|
-
value: string;
|
|
2708
|
-
period?: {
|
|
2709
|
-
start: string;
|
|
2710
|
-
end?: string | undefined;
|
|
2711
|
-
} | {
|
|
2712
|
-
end: string;
|
|
2713
|
-
start?: string | undefined;
|
|
2714
|
-
} | undefined;
|
|
2715
|
-
assigner?: string | undefined;
|
|
2716
|
-
})[] | undefined;
|
|
2717
2716
|
contact?: {
|
|
2718
2717
|
phone?: string | null | undefined;
|
|
2719
2718
|
email?: string | null | undefined;
|
|
2720
|
-
} | {
|
|
2719
|
+
}[] | {
|
|
2721
2720
|
phone?: string | null | undefined;
|
|
2722
2721
|
email?: string | null | undefined;
|
|
2723
|
-
}
|
|
2722
|
+
} | undefined;
|
|
2723
|
+
externalId?: string | undefined;
|
|
2724
|
+
hieOptOut?: boolean | undefined;
|
|
2724
2725
|
hie?: {
|
|
2725
2726
|
carequality?: {
|
|
2726
2727
|
exclude?: boolean | undefined;
|
|
@@ -2732,14 +2733,13 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2732
2733
|
exclude?: boolean | undefined;
|
|
2733
2734
|
} | undefined;
|
|
2734
2735
|
} | undefined;
|
|
2735
|
-
externalId?: string | undefined;
|
|
2736
|
-
hieOptOut?: boolean | undefined;
|
|
2737
2736
|
settings?: {
|
|
2738
2737
|
subscriptions?: {
|
|
2739
2738
|
adt?: string[] | undefined;
|
|
2740
2739
|
} | undefined;
|
|
2741
2740
|
} | undefined;
|
|
2742
2741
|
cohorts?: string[] | undefined;
|
|
2742
|
+
facilityIds: string[];
|
|
2743
2743
|
}[];
|
|
2744
2744
|
}>;
|
|
2745
2745
|
export declare const queryStatusSchema: z.ZodEnum<["processing", "completed", "failed"]>;
|