@metriport/api-sdk 18.10.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/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/medical/client/metriport.d.ts +19 -4
- package/dist/medical/client/metriport.d.ts.map +1 -1
- package/dist/medical/client/metriport.js +26 -4
- 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.d.ts +66 -0
- package/dist/medical/models/common/hie-control.d.ts.map +1 -0
- package/dist/medical/models/common/hie-control.js +29 -0
- package/dist/medical/models/common/hie-control.js.map +1 -0
- 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 +159 -54
- package/dist/medical/models/document.d.ts.map +1 -1
- package/dist/medical/models/document.js +25 -3
- 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 +798 -436
- package/dist/medical/models/patient.d.ts.map +1 -1
- package/dist/medical/models/patient.js +2 -0
- 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 +11 -11
|
@@ -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;
|
|
@@ -221,24 +221,24 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
221
221
|
lat: number;
|
|
222
222
|
lon: number;
|
|
223
223
|
}>>;
|
|
224
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
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;
|
|
@@ -312,24 +312,24 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
312
312
|
lat: number;
|
|
313
313
|
lon: number;
|
|
314
314
|
}>>;
|
|
315
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
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;
|
|
@@ -370,6 +370,69 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
370
370
|
}, {
|
|
371
371
|
externalId: z.ZodOptional<z.ZodString>;
|
|
372
372
|
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
373
|
+
hie: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
374
|
+
carequality: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
+
}, "strict", z.ZodTypeAny, {
|
|
377
|
+
exclude?: boolean | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
exclude?: boolean | undefined;
|
|
380
|
+
}>>;
|
|
381
|
+
commonwell: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
}, "strict", z.ZodTypeAny, {
|
|
384
|
+
exclude?: boolean | undefined;
|
|
385
|
+
}, {
|
|
386
|
+
exclude?: boolean | undefined;
|
|
387
|
+
}>>;
|
|
388
|
+
ehex: z.ZodOptional<z.ZodObject<{
|
|
389
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
+
}, "strict", z.ZodTypeAny, {
|
|
391
|
+
exclude?: boolean | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
exclude?: boolean | undefined;
|
|
394
|
+
}>>;
|
|
395
|
+
}, "strict", z.ZodTypeAny, {
|
|
396
|
+
carequality?: {
|
|
397
|
+
exclude?: boolean | undefined;
|
|
398
|
+
} | undefined;
|
|
399
|
+
commonwell?: {
|
|
400
|
+
exclude?: boolean | undefined;
|
|
401
|
+
} | undefined;
|
|
402
|
+
ehex?: {
|
|
403
|
+
exclude?: boolean | undefined;
|
|
404
|
+
} | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
carequality?: {
|
|
407
|
+
exclude?: boolean | undefined;
|
|
408
|
+
} | undefined;
|
|
409
|
+
commonwell?: {
|
|
410
|
+
exclude?: boolean | undefined;
|
|
411
|
+
} | undefined;
|
|
412
|
+
ehex?: {
|
|
413
|
+
exclude?: boolean | undefined;
|
|
414
|
+
} | undefined;
|
|
415
|
+
}>, {
|
|
416
|
+
carequality?: {
|
|
417
|
+
exclude?: boolean | undefined;
|
|
418
|
+
} | undefined;
|
|
419
|
+
commonwell?: {
|
|
420
|
+
exclude?: boolean | undefined;
|
|
421
|
+
} | undefined;
|
|
422
|
+
ehex?: {
|
|
423
|
+
exclude?: boolean | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
}, {
|
|
426
|
+
carequality?: {
|
|
427
|
+
exclude?: boolean | undefined;
|
|
428
|
+
} | undefined;
|
|
429
|
+
commonwell?: {
|
|
430
|
+
exclude?: boolean | undefined;
|
|
431
|
+
} | undefined;
|
|
432
|
+
ehex?: {
|
|
433
|
+
exclude?: boolean | undefined;
|
|
434
|
+
} | undefined;
|
|
435
|
+
}>>;
|
|
373
436
|
settings: z.ZodOptional<z.ZodObject<{
|
|
374
437
|
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
375
438
|
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -393,90 +456,125 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
393
456
|
lastName: string;
|
|
394
457
|
dob: string;
|
|
395
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;
|
|
396
483
|
address: {
|
|
397
484
|
addressLine1: string;
|
|
485
|
+
addressLine2?: string | undefined;
|
|
398
486
|
city: string;
|
|
399
487
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
400
488
|
zip: string;
|
|
401
|
-
country: "USA";
|
|
402
|
-
addressLine2?: string | undefined;
|
|
403
489
|
coordinates?: {
|
|
404
490
|
lat: number;
|
|
405
491
|
lon: number;
|
|
406
492
|
} | undefined;
|
|
493
|
+
country: "USA";
|
|
407
494
|
} | [{
|
|
408
495
|
addressLine1: string;
|
|
496
|
+
addressLine2?: string | undefined;
|
|
409
497
|
city: string;
|
|
410
498
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
411
499
|
zip: string;
|
|
412
|
-
country: "USA";
|
|
413
|
-
addressLine2?: string | undefined;
|
|
414
500
|
coordinates?: {
|
|
415
501
|
lat: number;
|
|
416
502
|
lon: number;
|
|
417
503
|
} | undefined;
|
|
504
|
+
country: "USA";
|
|
418
505
|
}, ...{
|
|
419
506
|
addressLine1: string;
|
|
507
|
+
addressLine2?: string | undefined;
|
|
420
508
|
city: string;
|
|
421
509
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
422
510
|
zip: string;
|
|
423
|
-
country: "USA";
|
|
424
|
-
addressLine2?: string | undefined;
|
|
425
511
|
coordinates?: {
|
|
426
512
|
lat: number;
|
|
427
513
|
lon: number;
|
|
428
514
|
} | undefined;
|
|
515
|
+
country: "USA";
|
|
429
516
|
}[]];
|
|
517
|
+
contact?: {
|
|
518
|
+
phone?: string | null | undefined;
|
|
519
|
+
email?: string | null | undefined;
|
|
520
|
+
}[] | {
|
|
521
|
+
phone?: string | null | undefined;
|
|
522
|
+
email?: string | null | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
externalId?: string | undefined;
|
|
525
|
+
hieOptOut?: boolean | undefined;
|
|
526
|
+
hie?: {
|
|
527
|
+
carequality?: {
|
|
528
|
+
exclude?: boolean | undefined;
|
|
529
|
+
} | undefined;
|
|
530
|
+
commonwell?: {
|
|
531
|
+
exclude?: boolean | undefined;
|
|
532
|
+
} | undefined;
|
|
533
|
+
ehex?: {
|
|
534
|
+
exclude?: boolean | undefined;
|
|
535
|
+
} | undefined;
|
|
536
|
+
} | undefined;
|
|
537
|
+
settings?: {
|
|
538
|
+
subscriptions?: {
|
|
539
|
+
adt?: string[] | undefined;
|
|
540
|
+
} | undefined;
|
|
541
|
+
} | undefined;
|
|
542
|
+
cohorts?: string[] | undefined;
|
|
543
|
+
}, {
|
|
544
|
+
firstName: string;
|
|
545
|
+
lastName: string;
|
|
546
|
+
dob: string;
|
|
547
|
+
genderAtBirth: "F" | "M" | "O" | "U";
|
|
430
548
|
personalIdentifiers?: ({
|
|
431
|
-
type: "driversLicense";
|
|
432
549
|
value: string;
|
|
433
|
-
state: import("@metriport/shared").USState;
|
|
434
550
|
period?: {
|
|
435
551
|
start: string;
|
|
436
552
|
end?: string | undefined;
|
|
437
553
|
} | {
|
|
438
|
-
end: string;
|
|
439
554
|
start?: string | undefined;
|
|
555
|
+
end: string;
|
|
440
556
|
} | undefined;
|
|
441
557
|
assigner?: string | undefined;
|
|
558
|
+
type: "driversLicense";
|
|
559
|
+
state?: unknown;
|
|
442
560
|
} | {
|
|
443
|
-
type: "ssn";
|
|
444
561
|
value: string;
|
|
445
562
|
period?: {
|
|
446
563
|
start: string;
|
|
447
564
|
end?: string | undefined;
|
|
448
565
|
} | {
|
|
449
|
-
end: string;
|
|
450
566
|
start?: string | undefined;
|
|
567
|
+
end: string;
|
|
451
568
|
} | undefined;
|
|
452
569
|
assigner?: string | undefined;
|
|
570
|
+
type: "ssn";
|
|
453
571
|
})[] | undefined;
|
|
454
|
-
contact?: {
|
|
455
|
-
phone?: string | null | undefined;
|
|
456
|
-
email?: string | null | undefined;
|
|
457
|
-
} | {
|
|
458
|
-
phone?: string | null | undefined;
|
|
459
|
-
email?: string | null | undefined;
|
|
460
|
-
}[] | undefined;
|
|
461
|
-
externalId?: string | undefined;
|
|
462
|
-
hieOptOut?: boolean | undefined;
|
|
463
|
-
settings?: {
|
|
464
|
-
subscriptions?: {
|
|
465
|
-
adt?: string[] | undefined;
|
|
466
|
-
} | undefined;
|
|
467
|
-
} | undefined;
|
|
468
|
-
cohorts?: string[] | undefined;
|
|
469
|
-
}, {
|
|
470
|
-
firstName: string;
|
|
471
|
-
lastName: string;
|
|
472
|
-
dob: string;
|
|
473
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
474
572
|
address: {
|
|
475
573
|
addressLine1: string;
|
|
476
|
-
city: string;
|
|
477
|
-
zip: string;
|
|
478
574
|
addressLine2?: string | undefined;
|
|
575
|
+
city: string;
|
|
479
576
|
state?: unknown;
|
|
577
|
+
zip: string;
|
|
480
578
|
coordinates?: {
|
|
481
579
|
lat: number;
|
|
482
580
|
lon: number;
|
|
@@ -484,10 +582,10 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
484
582
|
country?: "USA" | undefined;
|
|
485
583
|
} | [{
|
|
486
584
|
addressLine1: string;
|
|
487
|
-
city: string;
|
|
488
|
-
zip: string;
|
|
489
585
|
addressLine2?: string | undefined;
|
|
586
|
+
city: string;
|
|
490
587
|
state?: unknown;
|
|
588
|
+
zip: string;
|
|
491
589
|
coordinates?: {
|
|
492
590
|
lat: number;
|
|
493
591
|
lon: number;
|
|
@@ -495,49 +593,36 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
495
593
|
country?: "USA" | undefined;
|
|
496
594
|
}, ...{
|
|
497
595
|
addressLine1: string;
|
|
498
|
-
city: string;
|
|
499
|
-
zip: string;
|
|
500
596
|
addressLine2?: string | undefined;
|
|
597
|
+
city: string;
|
|
501
598
|
state?: unknown;
|
|
599
|
+
zip: string;
|
|
502
600
|
coordinates?: {
|
|
503
601
|
lat: number;
|
|
504
602
|
lon: number;
|
|
505
603
|
} | undefined;
|
|
506
604
|
country?: "USA" | undefined;
|
|
507
605
|
}[]];
|
|
508
|
-
personalIdentifiers?: ({
|
|
509
|
-
type: "driversLicense";
|
|
510
|
-
value: string;
|
|
511
|
-
state?: unknown;
|
|
512
|
-
period?: {
|
|
513
|
-
start: string;
|
|
514
|
-
end?: string | undefined;
|
|
515
|
-
} | {
|
|
516
|
-
end: string;
|
|
517
|
-
start?: string | undefined;
|
|
518
|
-
} | undefined;
|
|
519
|
-
assigner?: string | undefined;
|
|
520
|
-
} | {
|
|
521
|
-
type: "ssn";
|
|
522
|
-
value: string;
|
|
523
|
-
period?: {
|
|
524
|
-
start: string;
|
|
525
|
-
end?: string | undefined;
|
|
526
|
-
} | {
|
|
527
|
-
end: string;
|
|
528
|
-
start?: string | undefined;
|
|
529
|
-
} | undefined;
|
|
530
|
-
assigner?: string | undefined;
|
|
531
|
-
})[] | undefined;
|
|
532
606
|
contact?: {
|
|
533
607
|
phone?: string | null | undefined;
|
|
534
608
|
email?: string | null | undefined;
|
|
535
|
-
} | {
|
|
609
|
+
}[] | {
|
|
536
610
|
phone?: string | null | undefined;
|
|
537
611
|
email?: string | null | undefined;
|
|
538
|
-
}
|
|
612
|
+
} | undefined;
|
|
539
613
|
externalId?: string | undefined;
|
|
540
614
|
hieOptOut?: boolean | undefined;
|
|
615
|
+
hie?: {
|
|
616
|
+
carequality?: {
|
|
617
|
+
exclude?: boolean | undefined;
|
|
618
|
+
} | undefined;
|
|
619
|
+
commonwell?: {
|
|
620
|
+
exclude?: boolean | undefined;
|
|
621
|
+
} | undefined;
|
|
622
|
+
ehex?: {
|
|
623
|
+
exclude?: boolean | undefined;
|
|
624
|
+
} | undefined;
|
|
625
|
+
} | undefined;
|
|
541
626
|
settings?: {
|
|
542
627
|
subscriptions?: {
|
|
543
628
|
adt?: string[] | undefined;
|
|
@@ -566,11 +651,11 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
566
651
|
start: z.ZodOptional<z.ZodString>;
|
|
567
652
|
end: z.ZodString;
|
|
568
653
|
}, "strip", z.ZodTypeAny, {
|
|
569
|
-
end: string;
|
|
570
654
|
start?: string | undefined;
|
|
571
|
-
}, {
|
|
572
655
|
end: string;
|
|
656
|
+
}, {
|
|
573
657
|
start?: string | undefined;
|
|
658
|
+
end: string;
|
|
574
659
|
}>]>>;
|
|
575
660
|
assigner: z.ZodOptional<z.ZodString>;
|
|
576
661
|
}, {
|
|
@@ -629,29 +714,29 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
629
714
|
WY: import("@metriport/shared").USState.WY;
|
|
630
715
|
}>, import("@metriport/shared").USState, unknown>;
|
|
631
716
|
}>, "strip", z.ZodTypeAny, {
|
|
632
|
-
type: "driversLicense";
|
|
633
717
|
value: string;
|
|
634
|
-
state: import("@metriport/shared").USState;
|
|
635
718
|
period?: {
|
|
636
719
|
start: string;
|
|
637
720
|
end?: string | undefined;
|
|
638
721
|
} | {
|
|
639
|
-
end: string;
|
|
640
722
|
start?: string | undefined;
|
|
723
|
+
end: string;
|
|
641
724
|
} | undefined;
|
|
642
725
|
assigner?: string | undefined;
|
|
643
|
-
}, {
|
|
644
726
|
type: "driversLicense";
|
|
727
|
+
state: import("@metriport/shared").USState;
|
|
728
|
+
}, {
|
|
645
729
|
value: string;
|
|
646
|
-
state?: unknown;
|
|
647
730
|
period?: {
|
|
648
731
|
start: string;
|
|
649
732
|
end?: string | undefined;
|
|
650
733
|
} | {
|
|
651
|
-
end: string;
|
|
652
734
|
start?: string | undefined;
|
|
735
|
+
end: string;
|
|
653
736
|
} | undefined;
|
|
654
737
|
assigner?: string | undefined;
|
|
738
|
+
type: "driversLicense";
|
|
739
|
+
state?: unknown;
|
|
655
740
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
656
741
|
value: z.ZodString;
|
|
657
742
|
period: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -667,37 +752,37 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
667
752
|
start: z.ZodOptional<z.ZodString>;
|
|
668
753
|
end: z.ZodString;
|
|
669
754
|
}, "strip", z.ZodTypeAny, {
|
|
670
|
-
end: string;
|
|
671
755
|
start?: string | undefined;
|
|
672
|
-
}, {
|
|
673
756
|
end: string;
|
|
757
|
+
}, {
|
|
674
758
|
start?: string | undefined;
|
|
759
|
+
end: string;
|
|
675
760
|
}>]>>;
|
|
676
761
|
assigner: z.ZodOptional<z.ZodString>;
|
|
677
762
|
}, {
|
|
678
763
|
type: z.ZodEnum<["ssn"]>;
|
|
679
764
|
}>, "strip", z.ZodTypeAny, {
|
|
680
|
-
type: "ssn";
|
|
681
765
|
value: string;
|
|
682
766
|
period?: {
|
|
683
767
|
start: string;
|
|
684
768
|
end?: string | undefined;
|
|
685
769
|
} | {
|
|
686
|
-
end: string;
|
|
687
770
|
start?: string | undefined;
|
|
771
|
+
end: string;
|
|
688
772
|
} | undefined;
|
|
689
773
|
assigner?: string | undefined;
|
|
690
|
-
}, {
|
|
691
774
|
type: "ssn";
|
|
775
|
+
}, {
|
|
692
776
|
value: string;
|
|
693
777
|
period?: {
|
|
694
778
|
start: string;
|
|
695
779
|
end?: string | undefined;
|
|
696
780
|
} | {
|
|
697
|
-
end: string;
|
|
698
781
|
start?: string | undefined;
|
|
782
|
+
end: string;
|
|
699
783
|
} | undefined;
|
|
700
784
|
assigner?: string | undefined;
|
|
785
|
+
type: "ssn";
|
|
701
786
|
}>]>, "many">>;
|
|
702
787
|
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
703
788
|
addressLine1: z.ZodString;
|
|
@@ -767,24 +852,24 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
767
852
|
lat: number;
|
|
768
853
|
lon: number;
|
|
769
854
|
}>>;
|
|
770
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
855
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
771
856
|
}, "strip", z.ZodTypeAny, {
|
|
772
857
|
addressLine1: string;
|
|
858
|
+
addressLine2?: string | undefined;
|
|
773
859
|
city: string;
|
|
774
860
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
775
861
|
zip: string;
|
|
776
|
-
country: "USA";
|
|
777
|
-
addressLine2?: string | undefined;
|
|
778
862
|
coordinates?: {
|
|
779
863
|
lat: number;
|
|
780
864
|
lon: number;
|
|
781
865
|
} | undefined;
|
|
866
|
+
country: "USA";
|
|
782
867
|
}, {
|
|
783
868
|
addressLine1: string;
|
|
784
|
-
city: string;
|
|
785
|
-
zip: string;
|
|
786
869
|
addressLine2?: string | undefined;
|
|
870
|
+
city: string;
|
|
787
871
|
state?: unknown;
|
|
872
|
+
zip: string;
|
|
788
873
|
coordinates?: {
|
|
789
874
|
lat: number;
|
|
790
875
|
lon: number;
|
|
@@ -858,24 +943,24 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
858
943
|
lat: number;
|
|
859
944
|
lon: number;
|
|
860
945
|
}>>;
|
|
861
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
946
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
862
947
|
}, "strip", z.ZodTypeAny, {
|
|
863
948
|
addressLine1: string;
|
|
949
|
+
addressLine2?: string | undefined;
|
|
864
950
|
city: string;
|
|
865
951
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
866
952
|
zip: string;
|
|
867
|
-
country: "USA";
|
|
868
|
-
addressLine2?: string | undefined;
|
|
869
953
|
coordinates?: {
|
|
870
954
|
lat: number;
|
|
871
955
|
lon: number;
|
|
872
956
|
} | undefined;
|
|
957
|
+
country: "USA";
|
|
873
958
|
}, {
|
|
874
959
|
addressLine1: string;
|
|
875
|
-
city: string;
|
|
876
|
-
zip: string;
|
|
877
960
|
addressLine2?: string | undefined;
|
|
961
|
+
city: string;
|
|
878
962
|
state?: unknown;
|
|
963
|
+
zip: string;
|
|
879
964
|
coordinates?: {
|
|
880
965
|
lat: number;
|
|
881
966
|
lon: number;
|
|
@@ -916,21 +1001,84 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
916
1001
|
}, {
|
|
917
1002
|
externalId: z.ZodOptional<z.ZodString>;
|
|
918
1003
|
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
}, "
|
|
923
|
-
|
|
1004
|
+
hie: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1005
|
+
carequality: z.ZodOptional<z.ZodObject<{
|
|
1006
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
1007
|
+
}, "strict", z.ZodTypeAny, {
|
|
1008
|
+
exclude?: boolean | undefined;
|
|
924
1009
|
}, {
|
|
925
|
-
|
|
1010
|
+
exclude?: boolean | undefined;
|
|
926
1011
|
}>>;
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
1012
|
+
commonwell: z.ZodOptional<z.ZodObject<{
|
|
1013
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
1014
|
+
}, "strict", z.ZodTypeAny, {
|
|
1015
|
+
exclude?: boolean | undefined;
|
|
1016
|
+
}, {
|
|
1017
|
+
exclude?: boolean | undefined;
|
|
1018
|
+
}>>;
|
|
1019
|
+
ehex: z.ZodOptional<z.ZodObject<{
|
|
1020
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
1021
|
+
}, "strict", z.ZodTypeAny, {
|
|
1022
|
+
exclude?: boolean | undefined;
|
|
1023
|
+
}, {
|
|
1024
|
+
exclude?: boolean | undefined;
|
|
1025
|
+
}>>;
|
|
1026
|
+
}, "strict", z.ZodTypeAny, {
|
|
1027
|
+
carequality?: {
|
|
1028
|
+
exclude?: boolean | undefined;
|
|
930
1029
|
} | undefined;
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
1030
|
+
commonwell?: {
|
|
1031
|
+
exclude?: boolean | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
ehex?: {
|
|
1034
|
+
exclude?: boolean | undefined;
|
|
1035
|
+
} | undefined;
|
|
1036
|
+
}, {
|
|
1037
|
+
carequality?: {
|
|
1038
|
+
exclude?: boolean | undefined;
|
|
1039
|
+
} | undefined;
|
|
1040
|
+
commonwell?: {
|
|
1041
|
+
exclude?: boolean | undefined;
|
|
1042
|
+
} | undefined;
|
|
1043
|
+
ehex?: {
|
|
1044
|
+
exclude?: boolean | undefined;
|
|
1045
|
+
} | undefined;
|
|
1046
|
+
}>, {
|
|
1047
|
+
carequality?: {
|
|
1048
|
+
exclude?: boolean | undefined;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
commonwell?: {
|
|
1051
|
+
exclude?: boolean | undefined;
|
|
1052
|
+
} | undefined;
|
|
1053
|
+
ehex?: {
|
|
1054
|
+
exclude?: boolean | undefined;
|
|
1055
|
+
} | undefined;
|
|
1056
|
+
}, {
|
|
1057
|
+
carequality?: {
|
|
1058
|
+
exclude?: boolean | undefined;
|
|
1059
|
+
} | undefined;
|
|
1060
|
+
commonwell?: {
|
|
1061
|
+
exclude?: boolean | undefined;
|
|
1062
|
+
} | undefined;
|
|
1063
|
+
ehex?: {
|
|
1064
|
+
exclude?: boolean | undefined;
|
|
1065
|
+
} | undefined;
|
|
1066
|
+
}>>;
|
|
1067
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
1068
|
+
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
1069
|
+
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1070
|
+
}, "strip", z.ZodTypeAny, {
|
|
1071
|
+
adt?: string[] | undefined;
|
|
1072
|
+
}, {
|
|
1073
|
+
adt?: string[] | undefined;
|
|
1074
|
+
}>>;
|
|
1075
|
+
}, "strip", z.ZodTypeAny, {
|
|
1076
|
+
subscriptions?: {
|
|
1077
|
+
adt?: string[] | undefined;
|
|
1078
|
+
} | undefined;
|
|
1079
|
+
}, {
|
|
1080
|
+
subscriptions?: {
|
|
1081
|
+
adt?: string[] | undefined;
|
|
934
1082
|
} | undefined;
|
|
935
1083
|
}>>;
|
|
936
1084
|
cohorts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -939,96 +1087,132 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
939
1087
|
eTag: z.ZodOptional<z.ZodString>;
|
|
940
1088
|
}>, "strip", z.ZodTypeAny, {
|
|
941
1089
|
id: string;
|
|
1090
|
+
eTag?: string | undefined;
|
|
942
1091
|
firstName: string;
|
|
943
1092
|
lastName: string;
|
|
944
1093
|
dob: string;
|
|
945
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;
|
|
946
1119
|
address: {
|
|
947
1120
|
addressLine1: string;
|
|
1121
|
+
addressLine2?: string | undefined;
|
|
948
1122
|
city: string;
|
|
949
1123
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
950
1124
|
zip: string;
|
|
951
|
-
country: "USA";
|
|
952
|
-
addressLine2?: string | undefined;
|
|
953
1125
|
coordinates?: {
|
|
954
1126
|
lat: number;
|
|
955
1127
|
lon: number;
|
|
956
1128
|
} | undefined;
|
|
1129
|
+
country: "USA";
|
|
957
1130
|
} | [{
|
|
958
1131
|
addressLine1: string;
|
|
1132
|
+
addressLine2?: string | undefined;
|
|
959
1133
|
city: string;
|
|
960
1134
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
961
1135
|
zip: string;
|
|
962
|
-
country: "USA";
|
|
963
|
-
addressLine2?: string | undefined;
|
|
964
1136
|
coordinates?: {
|
|
965
1137
|
lat: number;
|
|
966
1138
|
lon: number;
|
|
967
1139
|
} | undefined;
|
|
1140
|
+
country: "USA";
|
|
968
1141
|
}, ...{
|
|
969
1142
|
addressLine1: string;
|
|
1143
|
+
addressLine2?: string | undefined;
|
|
970
1144
|
city: string;
|
|
971
1145
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
972
1146
|
zip: string;
|
|
973
|
-
country: "USA";
|
|
974
|
-
addressLine2?: string | undefined;
|
|
975
1147
|
coordinates?: {
|
|
976
1148
|
lat: number;
|
|
977
1149
|
lon: number;
|
|
978
1150
|
} | undefined;
|
|
1151
|
+
country: "USA";
|
|
979
1152
|
}[]];
|
|
1153
|
+
contact?: {
|
|
1154
|
+
phone?: string | null | undefined;
|
|
1155
|
+
email?: string | null | undefined;
|
|
1156
|
+
}[] | {
|
|
1157
|
+
phone?: string | null | undefined;
|
|
1158
|
+
email?: string | null | undefined;
|
|
1159
|
+
} | undefined;
|
|
1160
|
+
externalId?: string | undefined;
|
|
1161
|
+
hieOptOut?: boolean | undefined;
|
|
1162
|
+
hie?: {
|
|
1163
|
+
carequality?: {
|
|
1164
|
+
exclude?: boolean | undefined;
|
|
1165
|
+
} | undefined;
|
|
1166
|
+
commonwell?: {
|
|
1167
|
+
exclude?: boolean | undefined;
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
ehex?: {
|
|
1170
|
+
exclude?: boolean | undefined;
|
|
1171
|
+
} | undefined;
|
|
1172
|
+
} | undefined;
|
|
1173
|
+
settings?: {
|
|
1174
|
+
subscriptions?: {
|
|
1175
|
+
adt?: string[] | undefined;
|
|
1176
|
+
} | undefined;
|
|
1177
|
+
} | undefined;
|
|
1178
|
+
cohorts?: string[] | undefined;
|
|
1179
|
+
}, {
|
|
1180
|
+
id: string;
|
|
980
1181
|
eTag?: string | undefined;
|
|
1182
|
+
firstName: string;
|
|
1183
|
+
lastName: string;
|
|
1184
|
+
dob: string;
|
|
1185
|
+
genderAtBirth: "F" | "M" | "O" | "U";
|
|
981
1186
|
personalIdentifiers?: ({
|
|
982
|
-
type: "driversLicense";
|
|
983
1187
|
value: string;
|
|
984
|
-
state: import("@metriport/shared").USState;
|
|
985
1188
|
period?: {
|
|
986
1189
|
start: string;
|
|
987
1190
|
end?: string | undefined;
|
|
988
1191
|
} | {
|
|
989
|
-
end: string;
|
|
990
1192
|
start?: string | undefined;
|
|
1193
|
+
end: string;
|
|
991
1194
|
} | undefined;
|
|
992
1195
|
assigner?: string | undefined;
|
|
1196
|
+
type: "driversLicense";
|
|
1197
|
+
state?: unknown;
|
|
993
1198
|
} | {
|
|
994
|
-
type: "ssn";
|
|
995
1199
|
value: string;
|
|
996
1200
|
period?: {
|
|
997
1201
|
start: string;
|
|
998
1202
|
end?: string | undefined;
|
|
999
1203
|
} | {
|
|
1000
|
-
end: string;
|
|
1001
1204
|
start?: string | undefined;
|
|
1205
|
+
end: string;
|
|
1002
1206
|
} | undefined;
|
|
1003
1207
|
assigner?: string | undefined;
|
|
1208
|
+
type: "ssn";
|
|
1004
1209
|
})[] | undefined;
|
|
1005
|
-
contact?: {
|
|
1006
|
-
phone?: string | null | undefined;
|
|
1007
|
-
email?: string | null | undefined;
|
|
1008
|
-
} | {
|
|
1009
|
-
phone?: string | null | undefined;
|
|
1010
|
-
email?: string | null | undefined;
|
|
1011
|
-
}[] | undefined;
|
|
1012
|
-
externalId?: string | undefined;
|
|
1013
|
-
hieOptOut?: boolean | undefined;
|
|
1014
|
-
settings?: {
|
|
1015
|
-
subscriptions?: {
|
|
1016
|
-
adt?: string[] | undefined;
|
|
1017
|
-
} | undefined;
|
|
1018
|
-
} | undefined;
|
|
1019
|
-
cohorts?: string[] | undefined;
|
|
1020
|
-
}, {
|
|
1021
|
-
id: string;
|
|
1022
|
-
firstName: string;
|
|
1023
|
-
lastName: string;
|
|
1024
|
-
dob: string;
|
|
1025
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
1026
1210
|
address: {
|
|
1027
1211
|
addressLine1: string;
|
|
1028
|
-
city: string;
|
|
1029
|
-
zip: string;
|
|
1030
1212
|
addressLine2?: string | undefined;
|
|
1213
|
+
city: string;
|
|
1031
1214
|
state?: unknown;
|
|
1215
|
+
zip: string;
|
|
1032
1216
|
coordinates?: {
|
|
1033
1217
|
lat: number;
|
|
1034
1218
|
lon: number;
|
|
@@ -1036,10 +1220,10 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1036
1220
|
country?: "USA" | undefined;
|
|
1037
1221
|
} | [{
|
|
1038
1222
|
addressLine1: string;
|
|
1039
|
-
city: string;
|
|
1040
|
-
zip: string;
|
|
1041
1223
|
addressLine2?: string | undefined;
|
|
1224
|
+
city: string;
|
|
1042
1225
|
state?: unknown;
|
|
1226
|
+
zip: string;
|
|
1043
1227
|
coordinates?: {
|
|
1044
1228
|
lat: number;
|
|
1045
1229
|
lon: number;
|
|
@@ -1047,50 +1231,36 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1047
1231
|
country?: "USA" | undefined;
|
|
1048
1232
|
}, ...{
|
|
1049
1233
|
addressLine1: string;
|
|
1050
|
-
city: string;
|
|
1051
|
-
zip: string;
|
|
1052
1234
|
addressLine2?: string | undefined;
|
|
1235
|
+
city: string;
|
|
1053
1236
|
state?: unknown;
|
|
1237
|
+
zip: string;
|
|
1054
1238
|
coordinates?: {
|
|
1055
1239
|
lat: number;
|
|
1056
1240
|
lon: number;
|
|
1057
1241
|
} | undefined;
|
|
1058
1242
|
country?: "USA" | undefined;
|
|
1059
1243
|
}[]];
|
|
1060
|
-
eTag?: string | undefined;
|
|
1061
|
-
personalIdentifiers?: ({
|
|
1062
|
-
type: "driversLicense";
|
|
1063
|
-
value: string;
|
|
1064
|
-
state?: unknown;
|
|
1065
|
-
period?: {
|
|
1066
|
-
start: string;
|
|
1067
|
-
end?: string | undefined;
|
|
1068
|
-
} | {
|
|
1069
|
-
end: string;
|
|
1070
|
-
start?: string | undefined;
|
|
1071
|
-
} | undefined;
|
|
1072
|
-
assigner?: string | undefined;
|
|
1073
|
-
} | {
|
|
1074
|
-
type: "ssn";
|
|
1075
|
-
value: string;
|
|
1076
|
-
period?: {
|
|
1077
|
-
start: string;
|
|
1078
|
-
end?: string | undefined;
|
|
1079
|
-
} | {
|
|
1080
|
-
end: string;
|
|
1081
|
-
start?: string | undefined;
|
|
1082
|
-
} | undefined;
|
|
1083
|
-
assigner?: string | undefined;
|
|
1084
|
-
})[] | undefined;
|
|
1085
1244
|
contact?: {
|
|
1086
1245
|
phone?: string | null | undefined;
|
|
1087
1246
|
email?: string | null | undefined;
|
|
1088
|
-
} | {
|
|
1247
|
+
}[] | {
|
|
1089
1248
|
phone?: string | null | undefined;
|
|
1090
1249
|
email?: string | null | undefined;
|
|
1091
|
-
}
|
|
1250
|
+
} | undefined;
|
|
1092
1251
|
externalId?: string | undefined;
|
|
1093
1252
|
hieOptOut?: boolean | undefined;
|
|
1253
|
+
hie?: {
|
|
1254
|
+
carequality?: {
|
|
1255
|
+
exclude?: boolean | undefined;
|
|
1256
|
+
} | undefined;
|
|
1257
|
+
commonwell?: {
|
|
1258
|
+
exclude?: boolean | undefined;
|
|
1259
|
+
} | undefined;
|
|
1260
|
+
ehex?: {
|
|
1261
|
+
exclude?: boolean | undefined;
|
|
1262
|
+
} | undefined;
|
|
1263
|
+
} | undefined;
|
|
1094
1264
|
settings?: {
|
|
1095
1265
|
subscriptions?: {
|
|
1096
1266
|
adt?: string[] | undefined;
|
|
@@ -1119,11 +1289,11 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1119
1289
|
start: z.ZodOptional<z.ZodString>;
|
|
1120
1290
|
end: z.ZodString;
|
|
1121
1291
|
}, "strip", z.ZodTypeAny, {
|
|
1122
|
-
end: string;
|
|
1123
1292
|
start?: string | undefined;
|
|
1124
|
-
}, {
|
|
1125
1293
|
end: string;
|
|
1294
|
+
}, {
|
|
1126
1295
|
start?: string | undefined;
|
|
1296
|
+
end: string;
|
|
1127
1297
|
}>]>>;
|
|
1128
1298
|
assigner: z.ZodOptional<z.ZodString>;
|
|
1129
1299
|
}, {
|
|
@@ -1182,29 +1352,29 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1182
1352
|
WY: import("@metriport/shared").USState.WY;
|
|
1183
1353
|
}>, import("@metriport/shared").USState, unknown>;
|
|
1184
1354
|
}>, "strip", z.ZodTypeAny, {
|
|
1185
|
-
type: "driversLicense";
|
|
1186
1355
|
value: string;
|
|
1187
|
-
state: import("@metriport/shared").USState;
|
|
1188
1356
|
period?: {
|
|
1189
1357
|
start: string;
|
|
1190
1358
|
end?: string | undefined;
|
|
1191
1359
|
} | {
|
|
1192
|
-
end: string;
|
|
1193
1360
|
start?: string | undefined;
|
|
1361
|
+
end: string;
|
|
1194
1362
|
} | undefined;
|
|
1195
1363
|
assigner?: string | undefined;
|
|
1196
|
-
}, {
|
|
1197
1364
|
type: "driversLicense";
|
|
1365
|
+
state: import("@metriport/shared").USState;
|
|
1366
|
+
}, {
|
|
1198
1367
|
value: string;
|
|
1199
|
-
state?: unknown;
|
|
1200
1368
|
period?: {
|
|
1201
1369
|
start: string;
|
|
1202
1370
|
end?: string | undefined;
|
|
1203
1371
|
} | {
|
|
1204
|
-
end: string;
|
|
1205
1372
|
start?: string | undefined;
|
|
1373
|
+
end: string;
|
|
1206
1374
|
} | undefined;
|
|
1207
1375
|
assigner?: string | undefined;
|
|
1376
|
+
type: "driversLicense";
|
|
1377
|
+
state?: unknown;
|
|
1208
1378
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1209
1379
|
value: z.ZodString;
|
|
1210
1380
|
period: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -1220,37 +1390,37 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1220
1390
|
start: z.ZodOptional<z.ZodString>;
|
|
1221
1391
|
end: z.ZodString;
|
|
1222
1392
|
}, "strip", z.ZodTypeAny, {
|
|
1223
|
-
end: string;
|
|
1224
1393
|
start?: string | undefined;
|
|
1225
|
-
}, {
|
|
1226
1394
|
end: string;
|
|
1395
|
+
}, {
|
|
1227
1396
|
start?: string | undefined;
|
|
1397
|
+
end: string;
|
|
1228
1398
|
}>]>>;
|
|
1229
1399
|
assigner: z.ZodOptional<z.ZodString>;
|
|
1230
1400
|
}, {
|
|
1231
1401
|
type: z.ZodEnum<["ssn"]>;
|
|
1232
1402
|
}>, "strip", z.ZodTypeAny, {
|
|
1233
|
-
type: "ssn";
|
|
1234
1403
|
value: string;
|
|
1235
1404
|
period?: {
|
|
1236
1405
|
start: string;
|
|
1237
1406
|
end?: string | undefined;
|
|
1238
1407
|
} | {
|
|
1239
|
-
end: string;
|
|
1240
1408
|
start?: string | undefined;
|
|
1409
|
+
end: string;
|
|
1241
1410
|
} | undefined;
|
|
1242
1411
|
assigner?: string | undefined;
|
|
1243
|
-
}, {
|
|
1244
1412
|
type: "ssn";
|
|
1413
|
+
}, {
|
|
1245
1414
|
value: string;
|
|
1246
1415
|
period?: {
|
|
1247
1416
|
start: string;
|
|
1248
1417
|
end?: string | undefined;
|
|
1249
1418
|
} | {
|
|
1250
|
-
end: string;
|
|
1251
1419
|
start?: string | undefined;
|
|
1420
|
+
end: string;
|
|
1252
1421
|
} | undefined;
|
|
1253
1422
|
assigner?: string | undefined;
|
|
1423
|
+
type: "ssn";
|
|
1254
1424
|
}>]>, "many">>;
|
|
1255
1425
|
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1256
1426
|
addressLine1: z.ZodString;
|
|
@@ -1320,24 +1490,24 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1320
1490
|
lat: number;
|
|
1321
1491
|
lon: number;
|
|
1322
1492
|
}>>;
|
|
1323
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1493
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1324
1494
|
}, "strip", z.ZodTypeAny, {
|
|
1325
1495
|
addressLine1: string;
|
|
1496
|
+
addressLine2?: string | undefined;
|
|
1326
1497
|
city: string;
|
|
1327
1498
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1328
1499
|
zip: string;
|
|
1329
|
-
country: "USA";
|
|
1330
|
-
addressLine2?: string | undefined;
|
|
1331
1500
|
coordinates?: {
|
|
1332
1501
|
lat: number;
|
|
1333
1502
|
lon: number;
|
|
1334
1503
|
} | undefined;
|
|
1504
|
+
country: "USA";
|
|
1335
1505
|
}, {
|
|
1336
1506
|
addressLine1: string;
|
|
1337
|
-
city: string;
|
|
1338
|
-
zip: string;
|
|
1339
1507
|
addressLine2?: string | undefined;
|
|
1508
|
+
city: string;
|
|
1340
1509
|
state?: unknown;
|
|
1510
|
+
zip: string;
|
|
1341
1511
|
coordinates?: {
|
|
1342
1512
|
lat: number;
|
|
1343
1513
|
lon: number;
|
|
@@ -1411,24 +1581,24 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1411
1581
|
lat: number;
|
|
1412
1582
|
lon: number;
|
|
1413
1583
|
}>>;
|
|
1414
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1584
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1415
1585
|
}, "strip", z.ZodTypeAny, {
|
|
1416
1586
|
addressLine1: string;
|
|
1587
|
+
addressLine2?: string | undefined;
|
|
1417
1588
|
city: string;
|
|
1418
1589
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1419
1590
|
zip: string;
|
|
1420
|
-
country: "USA";
|
|
1421
|
-
addressLine2?: string | undefined;
|
|
1422
1591
|
coordinates?: {
|
|
1423
1592
|
lat: number;
|
|
1424
1593
|
lon: number;
|
|
1425
1594
|
} | undefined;
|
|
1595
|
+
country: "USA";
|
|
1426
1596
|
}, {
|
|
1427
1597
|
addressLine1: string;
|
|
1428
|
-
city: string;
|
|
1429
|
-
zip: string;
|
|
1430
1598
|
addressLine2?: string | undefined;
|
|
1599
|
+
city: string;
|
|
1431
1600
|
state?: unknown;
|
|
1601
|
+
zip: string;
|
|
1432
1602
|
coordinates?: {
|
|
1433
1603
|
lat: number;
|
|
1434
1604
|
lon: number;
|
|
@@ -1469,6 +1639,69 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1469
1639
|
}, {
|
|
1470
1640
|
externalId: z.ZodOptional<z.ZodString>;
|
|
1471
1641
|
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
1642
|
+
hie: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
1643
|
+
carequality: z.ZodOptional<z.ZodObject<{
|
|
1644
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
1645
|
+
}, "strict", z.ZodTypeAny, {
|
|
1646
|
+
exclude?: boolean | undefined;
|
|
1647
|
+
}, {
|
|
1648
|
+
exclude?: boolean | undefined;
|
|
1649
|
+
}>>;
|
|
1650
|
+
commonwell: z.ZodOptional<z.ZodObject<{
|
|
1651
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
1652
|
+
}, "strict", z.ZodTypeAny, {
|
|
1653
|
+
exclude?: boolean | undefined;
|
|
1654
|
+
}, {
|
|
1655
|
+
exclude?: boolean | undefined;
|
|
1656
|
+
}>>;
|
|
1657
|
+
ehex: z.ZodOptional<z.ZodObject<{
|
|
1658
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
1659
|
+
}, "strict", z.ZodTypeAny, {
|
|
1660
|
+
exclude?: boolean | undefined;
|
|
1661
|
+
}, {
|
|
1662
|
+
exclude?: boolean | undefined;
|
|
1663
|
+
}>>;
|
|
1664
|
+
}, "strict", z.ZodTypeAny, {
|
|
1665
|
+
carequality?: {
|
|
1666
|
+
exclude?: boolean | undefined;
|
|
1667
|
+
} | undefined;
|
|
1668
|
+
commonwell?: {
|
|
1669
|
+
exclude?: boolean | undefined;
|
|
1670
|
+
} | undefined;
|
|
1671
|
+
ehex?: {
|
|
1672
|
+
exclude?: boolean | undefined;
|
|
1673
|
+
} | undefined;
|
|
1674
|
+
}, {
|
|
1675
|
+
carequality?: {
|
|
1676
|
+
exclude?: boolean | undefined;
|
|
1677
|
+
} | undefined;
|
|
1678
|
+
commonwell?: {
|
|
1679
|
+
exclude?: boolean | undefined;
|
|
1680
|
+
} | undefined;
|
|
1681
|
+
ehex?: {
|
|
1682
|
+
exclude?: boolean | undefined;
|
|
1683
|
+
} | undefined;
|
|
1684
|
+
}>, {
|
|
1685
|
+
carequality?: {
|
|
1686
|
+
exclude?: boolean | undefined;
|
|
1687
|
+
} | undefined;
|
|
1688
|
+
commonwell?: {
|
|
1689
|
+
exclude?: boolean | undefined;
|
|
1690
|
+
} | undefined;
|
|
1691
|
+
ehex?: {
|
|
1692
|
+
exclude?: boolean | undefined;
|
|
1693
|
+
} | undefined;
|
|
1694
|
+
}, {
|
|
1695
|
+
carequality?: {
|
|
1696
|
+
exclude?: boolean | undefined;
|
|
1697
|
+
} | undefined;
|
|
1698
|
+
commonwell?: {
|
|
1699
|
+
exclude?: boolean | undefined;
|
|
1700
|
+
} | undefined;
|
|
1701
|
+
ehex?: {
|
|
1702
|
+
exclude?: boolean | undefined;
|
|
1703
|
+
} | undefined;
|
|
1704
|
+
}>>;
|
|
1472
1705
|
settings: z.ZodOptional<z.ZodObject<{
|
|
1473
1706
|
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
1474
1707
|
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1494,97 +1727,133 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1494
1727
|
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
1495
1728
|
}>, "strip", z.ZodTypeAny, {
|
|
1496
1729
|
id: string;
|
|
1730
|
+
eTag?: string | undefined;
|
|
1497
1731
|
firstName: string;
|
|
1498
1732
|
lastName: string;
|
|
1499
1733
|
dob: string;
|
|
1500
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;
|
|
1501
1759
|
address: {
|
|
1502
1760
|
addressLine1: string;
|
|
1761
|
+
addressLine2?: string | undefined;
|
|
1503
1762
|
city: string;
|
|
1504
1763
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1505
1764
|
zip: string;
|
|
1506
|
-
country: "USA";
|
|
1507
|
-
addressLine2?: string | undefined;
|
|
1508
1765
|
coordinates?: {
|
|
1509
1766
|
lat: number;
|
|
1510
1767
|
lon: number;
|
|
1511
1768
|
} | undefined;
|
|
1769
|
+
country: "USA";
|
|
1512
1770
|
} | [{
|
|
1513
1771
|
addressLine1: string;
|
|
1772
|
+
addressLine2?: string | undefined;
|
|
1514
1773
|
city: string;
|
|
1515
1774
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1516
1775
|
zip: string;
|
|
1517
|
-
country: "USA";
|
|
1518
|
-
addressLine2?: string | undefined;
|
|
1519
1776
|
coordinates?: {
|
|
1520
1777
|
lat: number;
|
|
1521
1778
|
lon: number;
|
|
1522
1779
|
} | undefined;
|
|
1780
|
+
country: "USA";
|
|
1523
1781
|
}, ...{
|
|
1524
1782
|
addressLine1: string;
|
|
1783
|
+
addressLine2?: string | undefined;
|
|
1525
1784
|
city: string;
|
|
1526
1785
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1527
1786
|
zip: string;
|
|
1528
|
-
country: "USA";
|
|
1529
|
-
addressLine2?: string | undefined;
|
|
1530
1787
|
coordinates?: {
|
|
1531
1788
|
lat: number;
|
|
1532
1789
|
lon: number;
|
|
1533
1790
|
} | undefined;
|
|
1791
|
+
country: "USA";
|
|
1534
1792
|
}[]];
|
|
1793
|
+
contact?: {
|
|
1794
|
+
phone?: string | null | undefined;
|
|
1795
|
+
email?: string | null | undefined;
|
|
1796
|
+
}[] | {
|
|
1797
|
+
phone?: string | null | undefined;
|
|
1798
|
+
email?: string | null | undefined;
|
|
1799
|
+
} | undefined;
|
|
1800
|
+
externalId?: string | undefined;
|
|
1801
|
+
hieOptOut?: boolean | undefined;
|
|
1802
|
+
hie?: {
|
|
1803
|
+
carequality?: {
|
|
1804
|
+
exclude?: boolean | undefined;
|
|
1805
|
+
} | undefined;
|
|
1806
|
+
commonwell?: {
|
|
1807
|
+
exclude?: boolean | undefined;
|
|
1808
|
+
} | undefined;
|
|
1809
|
+
ehex?: {
|
|
1810
|
+
exclude?: boolean | undefined;
|
|
1811
|
+
} | undefined;
|
|
1812
|
+
} | undefined;
|
|
1813
|
+
settings?: {
|
|
1814
|
+
subscriptions?: {
|
|
1815
|
+
adt?: string[] | undefined;
|
|
1816
|
+
} | undefined;
|
|
1817
|
+
} | undefined;
|
|
1818
|
+
cohorts?: string[] | undefined;
|
|
1535
1819
|
facilityIds: string[];
|
|
1820
|
+
}, {
|
|
1821
|
+
id: string;
|
|
1536
1822
|
eTag?: string | undefined;
|
|
1823
|
+
firstName: string;
|
|
1824
|
+
lastName: string;
|
|
1825
|
+
dob: string;
|
|
1826
|
+
genderAtBirth: "F" | "M" | "O" | "U";
|
|
1537
1827
|
personalIdentifiers?: ({
|
|
1538
|
-
type: "driversLicense";
|
|
1539
1828
|
value: string;
|
|
1540
|
-
state: import("@metriport/shared").USState;
|
|
1541
1829
|
period?: {
|
|
1542
1830
|
start: string;
|
|
1543
1831
|
end?: string | undefined;
|
|
1544
1832
|
} | {
|
|
1545
|
-
end: string;
|
|
1546
1833
|
start?: string | undefined;
|
|
1834
|
+
end: string;
|
|
1547
1835
|
} | undefined;
|
|
1548
1836
|
assigner?: string | undefined;
|
|
1837
|
+
type: "driversLicense";
|
|
1838
|
+
state?: unknown;
|
|
1549
1839
|
} | {
|
|
1550
|
-
type: "ssn";
|
|
1551
1840
|
value: string;
|
|
1552
1841
|
period?: {
|
|
1553
1842
|
start: string;
|
|
1554
1843
|
end?: string | undefined;
|
|
1555
1844
|
} | {
|
|
1556
|
-
end: string;
|
|
1557
1845
|
start?: string | undefined;
|
|
1846
|
+
end: string;
|
|
1558
1847
|
} | undefined;
|
|
1559
1848
|
assigner?: string | undefined;
|
|
1849
|
+
type: "ssn";
|
|
1560
1850
|
})[] | undefined;
|
|
1561
|
-
contact?: {
|
|
1562
|
-
phone?: string | null | undefined;
|
|
1563
|
-
email?: string | null | undefined;
|
|
1564
|
-
} | {
|
|
1565
|
-
phone?: string | null | undefined;
|
|
1566
|
-
email?: string | null | undefined;
|
|
1567
|
-
}[] | undefined;
|
|
1568
|
-
externalId?: string | undefined;
|
|
1569
|
-
hieOptOut?: boolean | undefined;
|
|
1570
|
-
settings?: {
|
|
1571
|
-
subscriptions?: {
|
|
1572
|
-
adt?: string[] | undefined;
|
|
1573
|
-
} | undefined;
|
|
1574
|
-
} | undefined;
|
|
1575
|
-
cohorts?: string[] | undefined;
|
|
1576
|
-
}, {
|
|
1577
|
-
id: string;
|
|
1578
|
-
firstName: string;
|
|
1579
|
-
lastName: string;
|
|
1580
|
-
dob: string;
|
|
1581
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
1582
1851
|
address: {
|
|
1583
1852
|
addressLine1: string;
|
|
1584
|
-
city: string;
|
|
1585
|
-
zip: string;
|
|
1586
1853
|
addressLine2?: string | undefined;
|
|
1854
|
+
city: string;
|
|
1587
1855
|
state?: unknown;
|
|
1856
|
+
zip: string;
|
|
1588
1857
|
coordinates?: {
|
|
1589
1858
|
lat: number;
|
|
1590
1859
|
lon: number;
|
|
@@ -1592,10 +1861,10 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1592
1861
|
country?: "USA" | undefined;
|
|
1593
1862
|
} | [{
|
|
1594
1863
|
addressLine1: string;
|
|
1595
|
-
city: string;
|
|
1596
|
-
zip: string;
|
|
1597
1864
|
addressLine2?: string | undefined;
|
|
1865
|
+
city: string;
|
|
1598
1866
|
state?: unknown;
|
|
1867
|
+
zip: string;
|
|
1599
1868
|
coordinates?: {
|
|
1600
1869
|
lat: number;
|
|
1601
1870
|
lon: number;
|
|
@@ -1603,57 +1872,43 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1603
1872
|
country?: "USA" | undefined;
|
|
1604
1873
|
}, ...{
|
|
1605
1874
|
addressLine1: string;
|
|
1606
|
-
city: string;
|
|
1607
|
-
zip: string;
|
|
1608
1875
|
addressLine2?: string | undefined;
|
|
1876
|
+
city: string;
|
|
1609
1877
|
state?: unknown;
|
|
1878
|
+
zip: string;
|
|
1610
1879
|
coordinates?: {
|
|
1611
1880
|
lat: number;
|
|
1612
1881
|
lon: number;
|
|
1613
1882
|
} | undefined;
|
|
1614
1883
|
country?: "USA" | undefined;
|
|
1615
1884
|
}[]];
|
|
1616
|
-
facilityIds: string[];
|
|
1617
|
-
eTag?: string | undefined;
|
|
1618
|
-
personalIdentifiers?: ({
|
|
1619
|
-
type: "driversLicense";
|
|
1620
|
-
value: string;
|
|
1621
|
-
state?: unknown;
|
|
1622
|
-
period?: {
|
|
1623
|
-
start: string;
|
|
1624
|
-
end?: string | undefined;
|
|
1625
|
-
} | {
|
|
1626
|
-
end: string;
|
|
1627
|
-
start?: string | undefined;
|
|
1628
|
-
} | undefined;
|
|
1629
|
-
assigner?: string | undefined;
|
|
1630
|
-
} | {
|
|
1631
|
-
type: "ssn";
|
|
1632
|
-
value: string;
|
|
1633
|
-
period?: {
|
|
1634
|
-
start: string;
|
|
1635
|
-
end?: string | undefined;
|
|
1636
|
-
} | {
|
|
1637
|
-
end: string;
|
|
1638
|
-
start?: string | undefined;
|
|
1639
|
-
} | undefined;
|
|
1640
|
-
assigner?: string | undefined;
|
|
1641
|
-
})[] | undefined;
|
|
1642
1885
|
contact?: {
|
|
1643
1886
|
phone?: string | null | undefined;
|
|
1644
1887
|
email?: string | null | undefined;
|
|
1645
|
-
} | {
|
|
1888
|
+
}[] | {
|
|
1646
1889
|
phone?: string | null | undefined;
|
|
1647
1890
|
email?: string | null | undefined;
|
|
1648
|
-
}
|
|
1891
|
+
} | undefined;
|
|
1649
1892
|
externalId?: string | undefined;
|
|
1650
1893
|
hieOptOut?: boolean | undefined;
|
|
1894
|
+
hie?: {
|
|
1895
|
+
carequality?: {
|
|
1896
|
+
exclude?: boolean | undefined;
|
|
1897
|
+
} | undefined;
|
|
1898
|
+
commonwell?: {
|
|
1899
|
+
exclude?: boolean | undefined;
|
|
1900
|
+
} | undefined;
|
|
1901
|
+
ehex?: {
|
|
1902
|
+
exclude?: boolean | undefined;
|
|
1903
|
+
} | undefined;
|
|
1904
|
+
} | undefined;
|
|
1651
1905
|
settings?: {
|
|
1652
1906
|
subscriptions?: {
|
|
1653
1907
|
adt?: string[] | undefined;
|
|
1654
1908
|
} | undefined;
|
|
1655
1909
|
} | undefined;
|
|
1656
1910
|
cohorts?: string[] | undefined;
|
|
1911
|
+
facilityIds: string[];
|
|
1657
1912
|
}>;
|
|
1658
1913
|
export type Patient = z.infer<typeof patientSchema>;
|
|
1659
1914
|
export declare const patientListSchema: z.ZodObject<{
|
|
@@ -1677,11 +1932,11 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1677
1932
|
start: z.ZodOptional<z.ZodString>;
|
|
1678
1933
|
end: z.ZodString;
|
|
1679
1934
|
}, "strip", z.ZodTypeAny, {
|
|
1680
|
-
end: string;
|
|
1681
1935
|
start?: string | undefined;
|
|
1682
|
-
}, {
|
|
1683
1936
|
end: string;
|
|
1937
|
+
}, {
|
|
1684
1938
|
start?: string | undefined;
|
|
1939
|
+
end: string;
|
|
1685
1940
|
}>]>>;
|
|
1686
1941
|
assigner: z.ZodOptional<z.ZodString>;
|
|
1687
1942
|
}, {
|
|
@@ -1740,29 +1995,29 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1740
1995
|
WY: import("@metriport/shared").USState.WY;
|
|
1741
1996
|
}>, import("@metriport/shared").USState, unknown>;
|
|
1742
1997
|
}>, "strip", z.ZodTypeAny, {
|
|
1743
|
-
type: "driversLicense";
|
|
1744
1998
|
value: string;
|
|
1745
|
-
state: import("@metriport/shared").USState;
|
|
1746
1999
|
period?: {
|
|
1747
2000
|
start: string;
|
|
1748
2001
|
end?: string | undefined;
|
|
1749
2002
|
} | {
|
|
1750
|
-
end: string;
|
|
1751
2003
|
start?: string | undefined;
|
|
2004
|
+
end: string;
|
|
1752
2005
|
} | undefined;
|
|
1753
2006
|
assigner?: string | undefined;
|
|
1754
|
-
}, {
|
|
1755
2007
|
type: "driversLicense";
|
|
2008
|
+
state: import("@metriport/shared").USState;
|
|
2009
|
+
}, {
|
|
1756
2010
|
value: string;
|
|
1757
|
-
state?: unknown;
|
|
1758
2011
|
period?: {
|
|
1759
2012
|
start: string;
|
|
1760
2013
|
end?: string | undefined;
|
|
1761
2014
|
} | {
|
|
1762
|
-
end: string;
|
|
1763
2015
|
start?: string | undefined;
|
|
2016
|
+
end: string;
|
|
1764
2017
|
} | undefined;
|
|
1765
2018
|
assigner?: string | undefined;
|
|
2019
|
+
type: "driversLicense";
|
|
2020
|
+
state?: unknown;
|
|
1766
2021
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1767
2022
|
value: z.ZodString;
|
|
1768
2023
|
period: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -1778,37 +2033,37 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1778
2033
|
start: z.ZodOptional<z.ZodString>;
|
|
1779
2034
|
end: z.ZodString;
|
|
1780
2035
|
}, "strip", z.ZodTypeAny, {
|
|
1781
|
-
end: string;
|
|
1782
2036
|
start?: string | undefined;
|
|
1783
|
-
}, {
|
|
1784
2037
|
end: string;
|
|
2038
|
+
}, {
|
|
1785
2039
|
start?: string | undefined;
|
|
2040
|
+
end: string;
|
|
1786
2041
|
}>]>>;
|
|
1787
2042
|
assigner: z.ZodOptional<z.ZodString>;
|
|
1788
2043
|
}, {
|
|
1789
2044
|
type: z.ZodEnum<["ssn"]>;
|
|
1790
2045
|
}>, "strip", z.ZodTypeAny, {
|
|
1791
|
-
type: "ssn";
|
|
1792
2046
|
value: string;
|
|
1793
2047
|
period?: {
|
|
1794
2048
|
start: string;
|
|
1795
2049
|
end?: string | undefined;
|
|
1796
2050
|
} | {
|
|
1797
|
-
end: string;
|
|
1798
2051
|
start?: string | undefined;
|
|
2052
|
+
end: string;
|
|
1799
2053
|
} | undefined;
|
|
1800
2054
|
assigner?: string | undefined;
|
|
1801
|
-
}, {
|
|
1802
2055
|
type: "ssn";
|
|
2056
|
+
}, {
|
|
1803
2057
|
value: string;
|
|
1804
2058
|
period?: {
|
|
1805
2059
|
start: string;
|
|
1806
2060
|
end?: string | undefined;
|
|
1807
2061
|
} | {
|
|
1808
|
-
end: string;
|
|
1809
2062
|
start?: string | undefined;
|
|
2063
|
+
end: string;
|
|
1810
2064
|
} | undefined;
|
|
1811
2065
|
assigner?: string | undefined;
|
|
2066
|
+
type: "ssn";
|
|
1812
2067
|
}>]>, "many">>;
|
|
1813
2068
|
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
1814
2069
|
addressLine1: z.ZodString;
|
|
@@ -1878,24 +2133,24 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1878
2133
|
lat: number;
|
|
1879
2134
|
lon: number;
|
|
1880
2135
|
}>>;
|
|
1881
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
2136
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1882
2137
|
}, "strip", z.ZodTypeAny, {
|
|
1883
2138
|
addressLine1: string;
|
|
2139
|
+
addressLine2?: string | undefined;
|
|
1884
2140
|
city: string;
|
|
1885
2141
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1886
2142
|
zip: string;
|
|
1887
|
-
country: "USA";
|
|
1888
|
-
addressLine2?: string | undefined;
|
|
1889
2143
|
coordinates?: {
|
|
1890
2144
|
lat: number;
|
|
1891
2145
|
lon: number;
|
|
1892
2146
|
} | undefined;
|
|
2147
|
+
country: "USA";
|
|
1893
2148
|
}, {
|
|
1894
2149
|
addressLine1: string;
|
|
1895
|
-
city: string;
|
|
1896
|
-
zip: string;
|
|
1897
2150
|
addressLine2?: string | undefined;
|
|
2151
|
+
city: string;
|
|
1898
2152
|
state?: unknown;
|
|
2153
|
+
zip: string;
|
|
1899
2154
|
coordinates?: {
|
|
1900
2155
|
lat: number;
|
|
1901
2156
|
lon: number;
|
|
@@ -1969,24 +2224,24 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1969
2224
|
lat: number;
|
|
1970
2225
|
lon: number;
|
|
1971
2226
|
}>>;
|
|
1972
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
2227
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
1973
2228
|
}, "strip", z.ZodTypeAny, {
|
|
1974
2229
|
addressLine1: string;
|
|
2230
|
+
addressLine2?: string | undefined;
|
|
1975
2231
|
city: string;
|
|
1976
2232
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
1977
2233
|
zip: string;
|
|
1978
|
-
country: "USA";
|
|
1979
|
-
addressLine2?: string | undefined;
|
|
1980
2234
|
coordinates?: {
|
|
1981
2235
|
lat: number;
|
|
1982
2236
|
lon: number;
|
|
1983
2237
|
} | undefined;
|
|
2238
|
+
country: "USA";
|
|
1984
2239
|
}, {
|
|
1985
2240
|
addressLine1: string;
|
|
1986
|
-
city: string;
|
|
1987
|
-
zip: string;
|
|
1988
2241
|
addressLine2?: string | undefined;
|
|
2242
|
+
city: string;
|
|
1989
2243
|
state?: unknown;
|
|
2244
|
+
zip: string;
|
|
1990
2245
|
coordinates?: {
|
|
1991
2246
|
lat: number;
|
|
1992
2247
|
lon: number;
|
|
@@ -2027,6 +2282,69 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2027
2282
|
}, {
|
|
2028
2283
|
externalId: z.ZodOptional<z.ZodString>;
|
|
2029
2284
|
hieOptOut: z.ZodOptional<z.ZodBoolean>;
|
|
2285
|
+
hie: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
2286
|
+
carequality: z.ZodOptional<z.ZodObject<{
|
|
2287
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
2288
|
+
}, "strict", z.ZodTypeAny, {
|
|
2289
|
+
exclude?: boolean | undefined;
|
|
2290
|
+
}, {
|
|
2291
|
+
exclude?: boolean | undefined;
|
|
2292
|
+
}>>;
|
|
2293
|
+
commonwell: z.ZodOptional<z.ZodObject<{
|
|
2294
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
2295
|
+
}, "strict", z.ZodTypeAny, {
|
|
2296
|
+
exclude?: boolean | undefined;
|
|
2297
|
+
}, {
|
|
2298
|
+
exclude?: boolean | undefined;
|
|
2299
|
+
}>>;
|
|
2300
|
+
ehex: z.ZodOptional<z.ZodObject<{
|
|
2301
|
+
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
2302
|
+
}, "strict", z.ZodTypeAny, {
|
|
2303
|
+
exclude?: boolean | undefined;
|
|
2304
|
+
}, {
|
|
2305
|
+
exclude?: boolean | undefined;
|
|
2306
|
+
}>>;
|
|
2307
|
+
}, "strict", z.ZodTypeAny, {
|
|
2308
|
+
carequality?: {
|
|
2309
|
+
exclude?: boolean | undefined;
|
|
2310
|
+
} | undefined;
|
|
2311
|
+
commonwell?: {
|
|
2312
|
+
exclude?: boolean | undefined;
|
|
2313
|
+
} | undefined;
|
|
2314
|
+
ehex?: {
|
|
2315
|
+
exclude?: boolean | undefined;
|
|
2316
|
+
} | undefined;
|
|
2317
|
+
}, {
|
|
2318
|
+
carequality?: {
|
|
2319
|
+
exclude?: boolean | undefined;
|
|
2320
|
+
} | undefined;
|
|
2321
|
+
commonwell?: {
|
|
2322
|
+
exclude?: boolean | undefined;
|
|
2323
|
+
} | undefined;
|
|
2324
|
+
ehex?: {
|
|
2325
|
+
exclude?: boolean | undefined;
|
|
2326
|
+
} | undefined;
|
|
2327
|
+
}>, {
|
|
2328
|
+
carequality?: {
|
|
2329
|
+
exclude?: boolean | undefined;
|
|
2330
|
+
} | undefined;
|
|
2331
|
+
commonwell?: {
|
|
2332
|
+
exclude?: boolean | undefined;
|
|
2333
|
+
} | undefined;
|
|
2334
|
+
ehex?: {
|
|
2335
|
+
exclude?: boolean | undefined;
|
|
2336
|
+
} | undefined;
|
|
2337
|
+
}, {
|
|
2338
|
+
carequality?: {
|
|
2339
|
+
exclude?: boolean | undefined;
|
|
2340
|
+
} | undefined;
|
|
2341
|
+
commonwell?: {
|
|
2342
|
+
exclude?: boolean | undefined;
|
|
2343
|
+
} | undefined;
|
|
2344
|
+
ehex?: {
|
|
2345
|
+
exclude?: boolean | undefined;
|
|
2346
|
+
} | undefined;
|
|
2347
|
+
}>>;
|
|
2030
2348
|
settings: z.ZodOptional<z.ZodObject<{
|
|
2031
2349
|
subscriptions: z.ZodOptional<z.ZodObject<{
|
|
2032
2350
|
adt: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2052,97 +2370,133 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2052
2370
|
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
2053
2371
|
}>, "strip", z.ZodTypeAny, {
|
|
2054
2372
|
id: string;
|
|
2373
|
+
eTag?: string | undefined;
|
|
2055
2374
|
firstName: string;
|
|
2056
2375
|
lastName: string;
|
|
2057
2376
|
dob: string;
|
|
2058
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;
|
|
2059
2402
|
address: {
|
|
2060
2403
|
addressLine1: string;
|
|
2404
|
+
addressLine2?: string | undefined;
|
|
2061
2405
|
city: string;
|
|
2062
2406
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2063
2407
|
zip: string;
|
|
2064
|
-
country: "USA";
|
|
2065
|
-
addressLine2?: string | undefined;
|
|
2066
2408
|
coordinates?: {
|
|
2067
2409
|
lat: number;
|
|
2068
2410
|
lon: number;
|
|
2069
2411
|
} | undefined;
|
|
2412
|
+
country: "USA";
|
|
2070
2413
|
} | [{
|
|
2071
2414
|
addressLine1: string;
|
|
2415
|
+
addressLine2?: string | undefined;
|
|
2072
2416
|
city: string;
|
|
2073
2417
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2074
2418
|
zip: string;
|
|
2075
|
-
country: "USA";
|
|
2076
|
-
addressLine2?: string | undefined;
|
|
2077
2419
|
coordinates?: {
|
|
2078
2420
|
lat: number;
|
|
2079
2421
|
lon: number;
|
|
2080
2422
|
} | undefined;
|
|
2423
|
+
country: "USA";
|
|
2081
2424
|
}, ...{
|
|
2082
2425
|
addressLine1: string;
|
|
2426
|
+
addressLine2?: string | undefined;
|
|
2083
2427
|
city: string;
|
|
2084
2428
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2085
2429
|
zip: string;
|
|
2086
|
-
country: "USA";
|
|
2087
|
-
addressLine2?: string | undefined;
|
|
2088
2430
|
coordinates?: {
|
|
2089
2431
|
lat: number;
|
|
2090
2432
|
lon: number;
|
|
2091
2433
|
} | undefined;
|
|
2434
|
+
country: "USA";
|
|
2092
2435
|
}[]];
|
|
2436
|
+
contact?: {
|
|
2437
|
+
phone?: string | null | undefined;
|
|
2438
|
+
email?: string | null | undefined;
|
|
2439
|
+
}[] | {
|
|
2440
|
+
phone?: string | null | undefined;
|
|
2441
|
+
email?: string | null | undefined;
|
|
2442
|
+
} | undefined;
|
|
2443
|
+
externalId?: string | undefined;
|
|
2444
|
+
hieOptOut?: boolean | undefined;
|
|
2445
|
+
hie?: {
|
|
2446
|
+
carequality?: {
|
|
2447
|
+
exclude?: boolean | undefined;
|
|
2448
|
+
} | undefined;
|
|
2449
|
+
commonwell?: {
|
|
2450
|
+
exclude?: boolean | undefined;
|
|
2451
|
+
} | undefined;
|
|
2452
|
+
ehex?: {
|
|
2453
|
+
exclude?: boolean | undefined;
|
|
2454
|
+
} | undefined;
|
|
2455
|
+
} | undefined;
|
|
2456
|
+
settings?: {
|
|
2457
|
+
subscriptions?: {
|
|
2458
|
+
adt?: string[] | undefined;
|
|
2459
|
+
} | undefined;
|
|
2460
|
+
} | undefined;
|
|
2461
|
+
cohorts?: string[] | undefined;
|
|
2093
2462
|
facilityIds: string[];
|
|
2463
|
+
}, {
|
|
2464
|
+
id: string;
|
|
2094
2465
|
eTag?: string | undefined;
|
|
2466
|
+
firstName: string;
|
|
2467
|
+
lastName: string;
|
|
2468
|
+
dob: string;
|
|
2469
|
+
genderAtBirth: "F" | "M" | "O" | "U";
|
|
2095
2470
|
personalIdentifiers?: ({
|
|
2096
|
-
type: "driversLicense";
|
|
2097
2471
|
value: string;
|
|
2098
|
-
state: import("@metriport/shared").USState;
|
|
2099
2472
|
period?: {
|
|
2100
2473
|
start: string;
|
|
2101
2474
|
end?: string | undefined;
|
|
2102
2475
|
} | {
|
|
2103
|
-
end: string;
|
|
2104
2476
|
start?: string | undefined;
|
|
2477
|
+
end: string;
|
|
2105
2478
|
} | undefined;
|
|
2106
2479
|
assigner?: string | undefined;
|
|
2480
|
+
type: "driversLicense";
|
|
2481
|
+
state?: unknown;
|
|
2107
2482
|
} | {
|
|
2108
|
-
type: "ssn";
|
|
2109
2483
|
value: string;
|
|
2110
2484
|
period?: {
|
|
2111
2485
|
start: string;
|
|
2112
2486
|
end?: string | undefined;
|
|
2113
2487
|
} | {
|
|
2114
|
-
end: string;
|
|
2115
2488
|
start?: string | undefined;
|
|
2489
|
+
end: string;
|
|
2116
2490
|
} | undefined;
|
|
2117
2491
|
assigner?: string | undefined;
|
|
2492
|
+
type: "ssn";
|
|
2118
2493
|
})[] | undefined;
|
|
2119
|
-
contact?: {
|
|
2120
|
-
phone?: string | null | undefined;
|
|
2121
|
-
email?: string | null | undefined;
|
|
2122
|
-
} | {
|
|
2123
|
-
phone?: string | null | undefined;
|
|
2124
|
-
email?: string | null | undefined;
|
|
2125
|
-
}[] | undefined;
|
|
2126
|
-
externalId?: string | undefined;
|
|
2127
|
-
hieOptOut?: boolean | undefined;
|
|
2128
|
-
settings?: {
|
|
2129
|
-
subscriptions?: {
|
|
2130
|
-
adt?: string[] | undefined;
|
|
2131
|
-
} | undefined;
|
|
2132
|
-
} | undefined;
|
|
2133
|
-
cohorts?: string[] | undefined;
|
|
2134
|
-
}, {
|
|
2135
|
-
id: string;
|
|
2136
|
-
firstName: string;
|
|
2137
|
-
lastName: string;
|
|
2138
|
-
dob: string;
|
|
2139
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
2140
2494
|
address: {
|
|
2141
2495
|
addressLine1: string;
|
|
2142
|
-
city: string;
|
|
2143
|
-
zip: string;
|
|
2144
2496
|
addressLine2?: string | undefined;
|
|
2497
|
+
city: string;
|
|
2145
2498
|
state?: unknown;
|
|
2499
|
+
zip: string;
|
|
2146
2500
|
coordinates?: {
|
|
2147
2501
|
lat: number;
|
|
2148
2502
|
lon: number;
|
|
@@ -2150,10 +2504,10 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2150
2504
|
country?: "USA" | undefined;
|
|
2151
2505
|
} | [{
|
|
2152
2506
|
addressLine1: string;
|
|
2153
|
-
city: string;
|
|
2154
|
-
zip: string;
|
|
2155
2507
|
addressLine2?: string | undefined;
|
|
2508
|
+
city: string;
|
|
2156
2509
|
state?: unknown;
|
|
2510
|
+
zip: string;
|
|
2157
2511
|
coordinates?: {
|
|
2158
2512
|
lat: number;
|
|
2159
2513
|
lon: number;
|
|
@@ -2161,154 +2515,176 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2161
2515
|
country?: "USA" | undefined;
|
|
2162
2516
|
}, ...{
|
|
2163
2517
|
addressLine1: string;
|
|
2164
|
-
city: string;
|
|
2165
|
-
zip: string;
|
|
2166
2518
|
addressLine2?: string | undefined;
|
|
2519
|
+
city: string;
|
|
2167
2520
|
state?: unknown;
|
|
2521
|
+
zip: string;
|
|
2168
2522
|
coordinates?: {
|
|
2169
2523
|
lat: number;
|
|
2170
2524
|
lon: number;
|
|
2171
2525
|
} | undefined;
|
|
2172
2526
|
country?: "USA" | undefined;
|
|
2173
2527
|
}[]];
|
|
2174
|
-
facilityIds: string[];
|
|
2175
|
-
eTag?: string | undefined;
|
|
2176
|
-
personalIdentifiers?: ({
|
|
2177
|
-
type: "driversLicense";
|
|
2178
|
-
value: string;
|
|
2179
|
-
state?: unknown;
|
|
2180
|
-
period?: {
|
|
2181
|
-
start: string;
|
|
2182
|
-
end?: string | undefined;
|
|
2183
|
-
} | {
|
|
2184
|
-
end: string;
|
|
2185
|
-
start?: string | undefined;
|
|
2186
|
-
} | undefined;
|
|
2187
|
-
assigner?: string | undefined;
|
|
2188
|
-
} | {
|
|
2189
|
-
type: "ssn";
|
|
2190
|
-
value: string;
|
|
2191
|
-
period?: {
|
|
2192
|
-
start: string;
|
|
2193
|
-
end?: string | undefined;
|
|
2194
|
-
} | {
|
|
2195
|
-
end: string;
|
|
2196
|
-
start?: string | undefined;
|
|
2197
|
-
} | undefined;
|
|
2198
|
-
assigner?: string | undefined;
|
|
2199
|
-
})[] | undefined;
|
|
2200
2528
|
contact?: {
|
|
2201
2529
|
phone?: string | null | undefined;
|
|
2202
2530
|
email?: string | null | undefined;
|
|
2203
|
-
} | {
|
|
2531
|
+
}[] | {
|
|
2204
2532
|
phone?: string | null | undefined;
|
|
2205
2533
|
email?: string | null | undefined;
|
|
2206
|
-
}
|
|
2534
|
+
} | undefined;
|
|
2207
2535
|
externalId?: string | undefined;
|
|
2208
2536
|
hieOptOut?: boolean | undefined;
|
|
2537
|
+
hie?: {
|
|
2538
|
+
carequality?: {
|
|
2539
|
+
exclude?: boolean | undefined;
|
|
2540
|
+
} | undefined;
|
|
2541
|
+
commonwell?: {
|
|
2542
|
+
exclude?: boolean | undefined;
|
|
2543
|
+
} | undefined;
|
|
2544
|
+
ehex?: {
|
|
2545
|
+
exclude?: boolean | undefined;
|
|
2546
|
+
} | undefined;
|
|
2547
|
+
} | undefined;
|
|
2209
2548
|
settings?: {
|
|
2210
2549
|
subscriptions?: {
|
|
2211
2550
|
adt?: string[] | undefined;
|
|
2212
2551
|
} | undefined;
|
|
2213
2552
|
} | undefined;
|
|
2214
2553
|
cohorts?: string[] | undefined;
|
|
2554
|
+
facilityIds: string[];
|
|
2215
2555
|
}>, "many">;
|
|
2216
2556
|
}, "strip", z.ZodTypeAny, {
|
|
2217
2557
|
patients: {
|
|
2218
2558
|
id: string;
|
|
2559
|
+
eTag?: string | undefined;
|
|
2219
2560
|
firstName: string;
|
|
2220
2561
|
lastName: string;
|
|
2221
2562
|
dob: string;
|
|
2222
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;
|
|
2223
2588
|
address: {
|
|
2224
2589
|
addressLine1: string;
|
|
2590
|
+
addressLine2?: string | undefined;
|
|
2225
2591
|
city: string;
|
|
2226
2592
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2227
2593
|
zip: string;
|
|
2228
|
-
country: "USA";
|
|
2229
|
-
addressLine2?: string | undefined;
|
|
2230
2594
|
coordinates?: {
|
|
2231
2595
|
lat: number;
|
|
2232
2596
|
lon: number;
|
|
2233
2597
|
} | undefined;
|
|
2598
|
+
country: "USA";
|
|
2234
2599
|
} | [{
|
|
2235
2600
|
addressLine1: string;
|
|
2601
|
+
addressLine2?: string | undefined;
|
|
2236
2602
|
city: string;
|
|
2237
2603
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2238
2604
|
zip: string;
|
|
2239
|
-
country: "USA";
|
|
2240
|
-
addressLine2?: string | undefined;
|
|
2241
2605
|
coordinates?: {
|
|
2242
2606
|
lat: number;
|
|
2243
2607
|
lon: number;
|
|
2244
2608
|
} | undefined;
|
|
2609
|
+
country: "USA";
|
|
2245
2610
|
}, ...{
|
|
2246
2611
|
addressLine1: string;
|
|
2612
|
+
addressLine2?: string | undefined;
|
|
2247
2613
|
city: string;
|
|
2248
2614
|
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
2249
2615
|
zip: string;
|
|
2250
|
-
country: "USA";
|
|
2251
|
-
addressLine2?: string | undefined;
|
|
2252
2616
|
coordinates?: {
|
|
2253
2617
|
lat: number;
|
|
2254
2618
|
lon: number;
|
|
2255
2619
|
} | undefined;
|
|
2620
|
+
country: "USA";
|
|
2256
2621
|
}[]];
|
|
2257
|
-
facilityIds: string[];
|
|
2258
|
-
eTag?: string | undefined;
|
|
2259
|
-
personalIdentifiers?: ({
|
|
2260
|
-
type: "driversLicense";
|
|
2261
|
-
value: string;
|
|
2262
|
-
state: import("@metriport/shared").USState;
|
|
2263
|
-
period?: {
|
|
2264
|
-
start: string;
|
|
2265
|
-
end?: string | undefined;
|
|
2266
|
-
} | {
|
|
2267
|
-
end: string;
|
|
2268
|
-
start?: string | undefined;
|
|
2269
|
-
} | undefined;
|
|
2270
|
-
assigner?: string | undefined;
|
|
2271
|
-
} | {
|
|
2272
|
-
type: "ssn";
|
|
2273
|
-
value: string;
|
|
2274
|
-
period?: {
|
|
2275
|
-
start: string;
|
|
2276
|
-
end?: string | undefined;
|
|
2277
|
-
} | {
|
|
2278
|
-
end: string;
|
|
2279
|
-
start?: string | undefined;
|
|
2280
|
-
} | undefined;
|
|
2281
|
-
assigner?: string | undefined;
|
|
2282
|
-
})[] | undefined;
|
|
2283
2622
|
contact?: {
|
|
2284
2623
|
phone?: string | null | undefined;
|
|
2285
2624
|
email?: string | null | undefined;
|
|
2286
|
-
} | {
|
|
2625
|
+
}[] | {
|
|
2287
2626
|
phone?: string | null | undefined;
|
|
2288
2627
|
email?: string | null | undefined;
|
|
2289
|
-
}
|
|
2628
|
+
} | undefined;
|
|
2290
2629
|
externalId?: string | undefined;
|
|
2291
2630
|
hieOptOut?: boolean | undefined;
|
|
2631
|
+
hie?: {
|
|
2632
|
+
carequality?: {
|
|
2633
|
+
exclude?: boolean | undefined;
|
|
2634
|
+
} | undefined;
|
|
2635
|
+
commonwell?: {
|
|
2636
|
+
exclude?: boolean | undefined;
|
|
2637
|
+
} | undefined;
|
|
2638
|
+
ehex?: {
|
|
2639
|
+
exclude?: boolean | undefined;
|
|
2640
|
+
} | undefined;
|
|
2641
|
+
} | undefined;
|
|
2292
2642
|
settings?: {
|
|
2293
2643
|
subscriptions?: {
|
|
2294
2644
|
adt?: string[] | undefined;
|
|
2295
2645
|
} | undefined;
|
|
2296
2646
|
} | undefined;
|
|
2297
2647
|
cohorts?: string[] | undefined;
|
|
2648
|
+
facilityIds: string[];
|
|
2298
2649
|
}[];
|
|
2299
2650
|
}, {
|
|
2300
2651
|
patients: {
|
|
2301
2652
|
id: string;
|
|
2653
|
+
eTag?: string | undefined;
|
|
2302
2654
|
firstName: string;
|
|
2303
2655
|
lastName: string;
|
|
2304
2656
|
dob: string;
|
|
2305
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;
|
|
2306
2682
|
address: {
|
|
2307
2683
|
addressLine1: string;
|
|
2308
|
-
city: string;
|
|
2309
|
-
zip: string;
|
|
2310
2684
|
addressLine2?: string | undefined;
|
|
2685
|
+
city: string;
|
|
2311
2686
|
state?: unknown;
|
|
2687
|
+
zip: string;
|
|
2312
2688
|
coordinates?: {
|
|
2313
2689
|
lat: number;
|
|
2314
2690
|
lon: number;
|
|
@@ -2316,10 +2692,10 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2316
2692
|
country?: "USA" | undefined;
|
|
2317
2693
|
} | [{
|
|
2318
2694
|
addressLine1: string;
|
|
2319
|
-
city: string;
|
|
2320
|
-
zip: string;
|
|
2321
2695
|
addressLine2?: string | undefined;
|
|
2696
|
+
city: string;
|
|
2322
2697
|
state?: unknown;
|
|
2698
|
+
zip: string;
|
|
2323
2699
|
coordinates?: {
|
|
2324
2700
|
lat: number;
|
|
2325
2701
|
lon: number;
|
|
@@ -2327,57 +2703,43 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2327
2703
|
country?: "USA" | undefined;
|
|
2328
2704
|
}, ...{
|
|
2329
2705
|
addressLine1: string;
|
|
2330
|
-
city: string;
|
|
2331
|
-
zip: string;
|
|
2332
2706
|
addressLine2?: string | undefined;
|
|
2707
|
+
city: string;
|
|
2333
2708
|
state?: unknown;
|
|
2709
|
+
zip: string;
|
|
2334
2710
|
coordinates?: {
|
|
2335
2711
|
lat: number;
|
|
2336
2712
|
lon: number;
|
|
2337
2713
|
} | undefined;
|
|
2338
2714
|
country?: "USA" | undefined;
|
|
2339
2715
|
}[]];
|
|
2340
|
-
facilityIds: string[];
|
|
2341
|
-
eTag?: string | undefined;
|
|
2342
|
-
personalIdentifiers?: ({
|
|
2343
|
-
type: "driversLicense";
|
|
2344
|
-
value: string;
|
|
2345
|
-
state?: unknown;
|
|
2346
|
-
period?: {
|
|
2347
|
-
start: string;
|
|
2348
|
-
end?: string | undefined;
|
|
2349
|
-
} | {
|
|
2350
|
-
end: string;
|
|
2351
|
-
start?: string | undefined;
|
|
2352
|
-
} | undefined;
|
|
2353
|
-
assigner?: string | undefined;
|
|
2354
|
-
} | {
|
|
2355
|
-
type: "ssn";
|
|
2356
|
-
value: string;
|
|
2357
|
-
period?: {
|
|
2358
|
-
start: string;
|
|
2359
|
-
end?: string | undefined;
|
|
2360
|
-
} | {
|
|
2361
|
-
end: string;
|
|
2362
|
-
start?: string | undefined;
|
|
2363
|
-
} | undefined;
|
|
2364
|
-
assigner?: string | undefined;
|
|
2365
|
-
})[] | undefined;
|
|
2366
2716
|
contact?: {
|
|
2367
2717
|
phone?: string | null | undefined;
|
|
2368
2718
|
email?: string | null | undefined;
|
|
2369
|
-
} | {
|
|
2719
|
+
}[] | {
|
|
2370
2720
|
phone?: string | null | undefined;
|
|
2371
2721
|
email?: string | null | undefined;
|
|
2372
|
-
}
|
|
2722
|
+
} | undefined;
|
|
2373
2723
|
externalId?: string | undefined;
|
|
2374
2724
|
hieOptOut?: boolean | undefined;
|
|
2725
|
+
hie?: {
|
|
2726
|
+
carequality?: {
|
|
2727
|
+
exclude?: boolean | undefined;
|
|
2728
|
+
} | undefined;
|
|
2729
|
+
commonwell?: {
|
|
2730
|
+
exclude?: boolean | undefined;
|
|
2731
|
+
} | undefined;
|
|
2732
|
+
ehex?: {
|
|
2733
|
+
exclude?: boolean | undefined;
|
|
2734
|
+
} | undefined;
|
|
2735
|
+
} | undefined;
|
|
2375
2736
|
settings?: {
|
|
2376
2737
|
subscriptions?: {
|
|
2377
2738
|
adt?: string[] | undefined;
|
|
2378
2739
|
} | undefined;
|
|
2379
2740
|
} | undefined;
|
|
2380
2741
|
cohorts?: string[] | undefined;
|
|
2742
|
+
facilityIds: string[];
|
|
2381
2743
|
}[];
|
|
2382
2744
|
}>;
|
|
2383
2745
|
export declare const queryStatusSchema: z.ZodEnum<["processing", "completed", "failed"]>;
|