@metriport/api-sdk 12.2.0-alpha.0 → 12.2.0

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.
@@ -142,8 +142,8 @@ export declare const driverLicenseIdentifierWithBaseSchema: z.ZodObject<{
142
142
  WY: import("@metriport/shared").USState.WY;
143
143
  }>, import("@metriport/shared").USState, unknown>;
144
144
  }, "strip", z.ZodTypeAny, {
145
- value: string;
146
145
  type: "driversLicense";
146
+ value: string;
147
147
  state: import("@metriport/shared").USState;
148
148
  period?: {
149
149
  start: string;
@@ -154,8 +154,8 @@ export declare const driverLicenseIdentifierWithBaseSchema: z.ZodObject<{
154
154
  } | undefined;
155
155
  assigner?: string | undefined;
156
156
  }, {
157
- value: string;
158
157
  type: "driversLicense";
158
+ value: string;
159
159
  period?: {
160
160
  start: string;
161
161
  end?: string | undefined;
@@ -198,8 +198,8 @@ export declare const generalTypeIdentifierWithBaseSchema: z.ZodObject<{
198
198
  assigner: z.ZodOptional<z.ZodString>;
199
199
  type: z.ZodEnum<["ssn"]>;
200
200
  }, "strip", z.ZodTypeAny, {
201
- value: string;
202
201
  type: "ssn";
202
+ value: string;
203
203
  period?: {
204
204
  start: string;
205
205
  end?: string | undefined;
@@ -209,8 +209,8 @@ export declare const generalTypeIdentifierWithBaseSchema: z.ZodObject<{
209
209
  } | undefined;
210
210
  assigner?: string | undefined;
211
211
  }, {
212
- value: string;
213
212
  type: "ssn";
213
+ value: string;
214
214
  period?: {
215
215
  start: string;
216
216
  end?: string | undefined;
@@ -298,8 +298,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
298
298
  WY: import("@metriport/shared").USState.WY;
299
299
  }>, import("@metriport/shared").USState, unknown>;
300
300
  }, "strip", z.ZodTypeAny, {
301
- value: string;
302
301
  type: "driversLicense";
302
+ value: string;
303
303
  state: import("@metriport/shared").USState;
304
304
  period?: {
305
305
  start: string;
@@ -310,8 +310,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
310
310
  } | undefined;
311
311
  assigner?: string | undefined;
312
312
  }, {
313
- value: string;
314
313
  type: "driversLicense";
314
+ value: string;
315
315
  period?: {
316
316
  start: string;
317
317
  end?: string | undefined;
@@ -345,8 +345,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
345
345
  assigner: z.ZodOptional<z.ZodString>;
346
346
  type: z.ZodEnum<["ssn"]>;
347
347
  }, "strip", z.ZodTypeAny, {
348
- value: string;
349
348
  type: "ssn";
349
+ value: string;
350
350
  period?: {
351
351
  start: string;
352
352
  end?: string | undefined;
@@ -356,8 +356,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
356
356
  } | undefined;
357
357
  assigner?: string | undefined;
358
358
  }, {
359
- value: string;
360
359
  type: "ssn";
360
+ value: string;
361
361
  period?: {
362
362
  start: string;
363
363
  end?: string | undefined;
@@ -469,8 +469,8 @@ export declare const demographicsSchema: z.ZodObject<{
469
469
  WY: import("@metriport/shared").USState.WY;
470
470
  }>, import("@metriport/shared").USState, unknown>;
471
471
  }, "strip", z.ZodTypeAny, {
472
- value: string;
473
472
  type: "driversLicense";
473
+ value: string;
474
474
  state: import("@metriport/shared").USState;
475
475
  period?: {
476
476
  start: string;
@@ -481,8 +481,8 @@ export declare const demographicsSchema: z.ZodObject<{
481
481
  } | undefined;
482
482
  assigner?: string | undefined;
483
483
  }, {
484
- value: string;
485
484
  type: "driversLicense";
485
+ value: string;
486
486
  period?: {
487
487
  start: string;
488
488
  end?: string | undefined;
@@ -516,8 +516,8 @@ export declare const demographicsSchema: z.ZodObject<{
516
516
  assigner: z.ZodOptional<z.ZodString>;
517
517
  type: z.ZodEnum<["ssn"]>;
518
518
  }, "strip", z.ZodTypeAny, {
519
- value: string;
520
519
  type: "ssn";
520
+ value: string;
521
521
  period?: {
522
522
  start: string;
523
523
  end?: string | undefined;
@@ -527,8 +527,8 @@ export declare const demographicsSchema: z.ZodObject<{
527
527
  } | undefined;
528
528
  assigner?: string | undefined;
529
529
  }, {
530
- value: string;
531
530
  type: "ssn";
531
+ value: string;
532
532
  period?: {
533
533
  start: string;
534
534
  end?: string | undefined;
@@ -825,8 +825,8 @@ export declare const demographicsSchema: z.ZodObject<{
825
825
  } | undefined;
826
826
  }[]] | undefined);
827
827
  personalIdentifiers?: ({
828
- value: string;
829
828
  type: "driversLicense";
829
+ value: string;
830
830
  state: import("@metriport/shared").USState;
831
831
  period?: {
832
832
  start: string;
@@ -837,8 +837,8 @@ export declare const demographicsSchema: z.ZodObject<{
837
837
  } | undefined;
838
838
  assigner?: string | undefined;
839
839
  } | {
840
- value: string;
841
840
  type: "ssn";
841
+ value: string;
842
842
  period?: {
843
843
  start: string;
844
844
  end?: string | undefined;
@@ -928,8 +928,8 @@ export declare const demographicsSchema: z.ZodObject<{
928
928
  country?: "USA" | undefined;
929
929
  }[]] | undefined);
930
930
  personalIdentifiers?: ({
931
- value: string;
932
931
  type: "driversLicense";
932
+ value: string;
933
933
  period?: {
934
934
  start: string;
935
935
  end?: string | undefined;
@@ -940,8 +940,8 @@ export declare const demographicsSchema: z.ZodObject<{
940
940
  assigner?: string | undefined;
941
941
  state?: unknown;
942
942
  } | {
943
- value: string;
944
943
  type: "ssn";
944
+ value: string;
945
945
  period?: {
946
946
  start: string;
947
947
  end?: string | undefined;
@@ -232,6 +232,7 @@ export declare const facilitySchema: z.ZodObject<{
232
232
  id: z.ZodString;
233
233
  eTag: z.ZodOptional<z.ZodString>;
234
234
  }, "strip", z.ZodTypeAny, {
235
+ id: string;
235
236
  address: {
236
237
  addressLine1: string;
237
238
  city: string;
@@ -246,11 +247,11 @@ export declare const facilitySchema: z.ZodObject<{
246
247
  };
247
248
  name: string;
248
249
  npi: string;
249
- id: string;
250
250
  tin?: string | null | undefined;
251
251
  active?: boolean | null | undefined;
252
252
  eTag?: string | undefined;
253
253
  }, {
254
+ id: string;
254
255
  address: {
255
256
  addressLine1: string;
256
257
  city: string;
@@ -265,7 +266,6 @@ export declare const facilitySchema: z.ZodObject<{
265
266
  };
266
267
  name: string;
267
268
  npi: string;
268
- id: string;
269
269
  tin?: string | null | undefined;
270
270
  active?: boolean | null | undefined;
271
271
  eTag?: string | undefined;
@@ -372,6 +372,7 @@ export declare const facilityListSchema: z.ZodObject<{
372
372
  id: z.ZodString;
373
373
  eTag: z.ZodOptional<z.ZodString>;
374
374
  }, "strip", z.ZodTypeAny, {
375
+ id: string;
375
376
  address: {
376
377
  addressLine1: string;
377
378
  city: string;
@@ -386,11 +387,11 @@ export declare const facilityListSchema: z.ZodObject<{
386
387
  };
387
388
  name: string;
388
389
  npi: string;
389
- id: string;
390
390
  tin?: string | null | undefined;
391
391
  active?: boolean | null | undefined;
392
392
  eTag?: string | undefined;
393
393
  }, {
394
+ id: string;
394
395
  address: {
395
396
  addressLine1: string;
396
397
  city: string;
@@ -405,13 +406,13 @@ export declare const facilityListSchema: z.ZodObject<{
405
406
  };
406
407
  name: string;
407
408
  npi: string;
408
- id: string;
409
409
  tin?: string | null | undefined;
410
410
  active?: boolean | null | undefined;
411
411
  eTag?: string | undefined;
412
412
  }>, "many">;
413
413
  }, "strip", z.ZodTypeAny, {
414
414
  facilities: {
415
+ id: string;
415
416
  address: {
416
417
  addressLine1: string;
417
418
  city: string;
@@ -426,13 +427,13 @@ export declare const facilityListSchema: z.ZodObject<{
426
427
  };
427
428
  name: string;
428
429
  npi: string;
429
- id: string;
430
430
  tin?: string | null | undefined;
431
431
  active?: boolean | null | undefined;
432
432
  eTag?: string | undefined;
433
433
  }[];
434
434
  }, {
435
435
  facilities: {
436
+ id: string;
436
437
  address: {
437
438
  addressLine1: string;
438
439
  city: string;
@@ -447,7 +448,6 @@ export declare const facilityListSchema: z.ZodObject<{
447
448
  };
448
449
  name: string;
449
450
  npi: string;
450
- id: string;
451
451
  tin?: string | null | undefined;
452
452
  active?: boolean | null | undefined;
453
453
  eTag?: string | undefined;
@@ -56,16 +56,16 @@ export declare const consolidatedCountSchema: z.ZodObject<{
56
56
  dateFrom?: string | undefined;
57
57
  dateTo?: string | undefined;
58
58
  };
59
- resources: Record<string, number>;
60
59
  total: number;
60
+ resources: Record<string, number>;
61
61
  }, {
62
62
  filter: {
63
63
  resources: string;
64
64
  dateFrom?: string | undefined;
65
65
  dateTo?: string | undefined;
66
66
  };
67
- resources: Record<string, number>;
68
67
  total: number;
68
+ resources: Record<string, number>;
69
69
  }>;
70
70
  export type ConsolidatedCountResponse = z.infer<typeof consolidatedCountSchema>;
71
71
  export declare const consolidatedQuerySchema: z.ZodObject<{
@@ -235,8 +235,8 @@ export declare const organizationSchema: z.ZodObject<{
235
235
  eTag: z.ZodOptional<z.ZodString>;
236
236
  }, "strip", z.ZodTypeAny, {
237
237
  type: OrgType;
238
- name: string;
239
238
  id: string;
239
+ name: string;
240
240
  location: {
241
241
  addressLine1: string;
242
242
  city: string;
@@ -253,8 +253,8 @@ export declare const organizationSchema: z.ZodObject<{
253
253
  eTag?: string | undefined;
254
254
  }, {
255
255
  type: OrgType;
256
- name: string;
257
256
  id: string;
257
+ name: string;
258
258
  location: {
259
259
  addressLine1: string;
260
260
  city: string;
@@ -82,8 +82,8 @@ export declare const patientCreateSchema: z.ZodObject<{
82
82
  WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
83
83
  }>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
84
84
  }, "strip", z.ZodTypeAny, {
85
- value: string;
86
85
  type: "driversLicense";
86
+ value: string;
87
87
  state: import("@metriport/shared/dist/domain/address/state").USState;
88
88
  period?: {
89
89
  start: string;
@@ -94,8 +94,8 @@ export declare const patientCreateSchema: z.ZodObject<{
94
94
  } | undefined;
95
95
  assigner?: string | undefined;
96
96
  }, {
97
- value: string;
98
97
  type: "driversLicense";
98
+ value: string;
99
99
  period?: {
100
100
  start: string;
101
101
  end?: string | undefined;
@@ -129,8 +129,8 @@ export declare const patientCreateSchema: z.ZodObject<{
129
129
  assigner: z.ZodOptional<z.ZodString>;
130
130
  type: z.ZodEnum<["ssn"]>;
131
131
  }, "strip", z.ZodTypeAny, {
132
- value: string;
133
132
  type: "ssn";
133
+ value: string;
134
134
  period?: {
135
135
  start: string;
136
136
  end?: string | undefined;
@@ -140,8 +140,8 @@ export declare const patientCreateSchema: z.ZodObject<{
140
140
  } | undefined;
141
141
  assigner?: string | undefined;
142
142
  }, {
143
- value: string;
144
143
  type: "ssn";
144
+ value: string;
145
145
  period?: {
146
146
  start: string;
147
147
  end?: string | undefined;
@@ -439,8 +439,8 @@ export declare const patientCreateSchema: z.ZodObject<{
439
439
  } | undefined;
440
440
  }[]] | undefined);
441
441
  personalIdentifiers?: ({
442
- value: string;
443
442
  type: "driversLicense";
443
+ value: string;
444
444
  state: import("@metriport/shared/dist/domain/address/state").USState;
445
445
  period?: {
446
446
  start: string;
@@ -451,8 +451,8 @@ export declare const patientCreateSchema: z.ZodObject<{
451
451
  } | undefined;
452
452
  assigner?: string | undefined;
453
453
  } | {
454
- value: string;
455
454
  type: "ssn";
455
+ value: string;
456
456
  period?: {
457
457
  start: string;
458
458
  end?: string | undefined;
@@ -543,8 +543,8 @@ export declare const patientCreateSchema: z.ZodObject<{
543
543
  country?: "USA" | undefined;
544
544
  }[]] | undefined);
545
545
  personalIdentifiers?: ({
546
- value: string;
547
546
  type: "driversLicense";
547
+ value: string;
548
548
  period?: {
549
549
  start: string;
550
550
  end?: string | undefined;
@@ -555,8 +555,8 @@ export declare const patientCreateSchema: z.ZodObject<{
555
555
  assigner?: string | undefined;
556
556
  state?: unknown;
557
557
  } | {
558
- value: string;
559
558
  type: "ssn";
559
+ value: string;
560
560
  period?: {
561
561
  start: string;
562
562
  end?: string | undefined;
@@ -658,8 +658,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
658
658
  WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
659
659
  }>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
660
660
  }, "strip", z.ZodTypeAny, {
661
- value: string;
662
661
  type: "driversLicense";
662
+ value: string;
663
663
  state: import("@metriport/shared/dist/domain/address/state").USState;
664
664
  period?: {
665
665
  start: string;
@@ -670,8 +670,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
670
670
  } | undefined;
671
671
  assigner?: string | undefined;
672
672
  }, {
673
- value: string;
674
673
  type: "driversLicense";
674
+ value: string;
675
675
  period?: {
676
676
  start: string;
677
677
  end?: string | undefined;
@@ -705,8 +705,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
705
705
  assigner: z.ZodOptional<z.ZodString>;
706
706
  type: z.ZodEnum<["ssn"]>;
707
707
  }, "strip", z.ZodTypeAny, {
708
- value: string;
709
708
  type: "ssn";
709
+ value: string;
710
710
  period?: {
711
711
  start: string;
712
712
  end?: string | undefined;
@@ -716,8 +716,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
716
716
  } | undefined;
717
717
  assigner?: string | undefined;
718
718
  }, {
719
- value: string;
720
719
  type: "ssn";
720
+ value: string;
721
721
  period?: {
722
722
  start: string;
723
723
  end?: string | undefined;
@@ -945,6 +945,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
945
945
  id: z.ZodString;
946
946
  eTag: z.ZodOptional<z.ZodString>;
947
947
  }, "strip", z.ZodTypeAny, {
948
+ id: string;
948
949
  firstName: string;
949
950
  lastName: string;
950
951
  dob: string;
@@ -1016,10 +1017,9 @@ export declare const patientUpdateSchema: z.ZodObject<{
1016
1017
  lon: number;
1017
1018
  } | undefined;
1018
1019
  }[]] | undefined);
1019
- id: string;
1020
1020
  personalIdentifiers?: ({
1021
- value: string;
1022
1021
  type: "driversLicense";
1022
+ value: string;
1023
1023
  state: import("@metriport/shared/dist/domain/address/state").USState;
1024
1024
  period?: {
1025
1025
  start: string;
@@ -1030,8 +1030,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
1030
1030
  } | undefined;
1031
1031
  assigner?: string | undefined;
1032
1032
  } | {
1033
- value: string;
1034
1033
  type: "ssn";
1034
+ value: string;
1035
1035
  period?: {
1036
1036
  start: string;
1037
1037
  end?: string | undefined;
@@ -1051,6 +1051,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
1051
1051
  externalId?: string | undefined;
1052
1052
  eTag?: string | undefined;
1053
1053
  }, {
1054
+ id: string;
1054
1055
  firstName: string;
1055
1056
  lastName: string;
1056
1057
  dob: string;
@@ -1122,10 +1123,9 @@ export declare const patientUpdateSchema: z.ZodObject<{
1122
1123
  } | undefined;
1123
1124
  country?: "USA" | undefined;
1124
1125
  }[]] | undefined);
1125
- id: string;
1126
1126
  personalIdentifiers?: ({
1127
- value: string;
1128
1127
  type: "driversLicense";
1128
+ value: string;
1129
1129
  period?: {
1130
1130
  start: string;
1131
1131
  end?: string | undefined;
@@ -1136,8 +1136,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
1136
1136
  assigner?: string | undefined;
1137
1137
  state?: unknown;
1138
1138
  } | {
1139
- value: string;
1140
1139
  type: "ssn";
1140
+ value: string;
1141
1141
  period?: {
1142
1142
  start: string;
1143
1143
  end?: string | undefined;
@@ -1159,6 +1159,8 @@ export declare const patientUpdateSchema: z.ZodObject<{
1159
1159
  }>;
1160
1160
  export type PatientUpdate = z.infer<typeof patientUpdateSchema>;
1161
1161
  export declare const patientSchema: z.ZodObject<{
1162
+ id: z.ZodString;
1163
+ eTag: z.ZodOptional<z.ZodString>;
1162
1164
  firstName: z.ZodString;
1163
1165
  lastName: z.ZodString;
1164
1166
  dob: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -1240,8 +1242,8 @@ export declare const patientSchema: z.ZodObject<{
1240
1242
  WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
1241
1243
  }>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
1242
1244
  }, "strip", z.ZodTypeAny, {
1243
- value: string;
1244
1245
  type: "driversLicense";
1246
+ value: string;
1245
1247
  state: import("@metriport/shared/dist/domain/address/state").USState;
1246
1248
  period?: {
1247
1249
  start: string;
@@ -1252,8 +1254,8 @@ export declare const patientSchema: z.ZodObject<{
1252
1254
  } | undefined;
1253
1255
  assigner?: string | undefined;
1254
1256
  }, {
1255
- value: string;
1256
1257
  type: "driversLicense";
1258
+ value: string;
1257
1259
  period?: {
1258
1260
  start: string;
1259
1261
  end?: string | undefined;
@@ -1287,8 +1289,8 @@ export declare const patientSchema: z.ZodObject<{
1287
1289
  assigner: z.ZodOptional<z.ZodString>;
1288
1290
  type: z.ZodEnum<["ssn"]>;
1289
1291
  }, "strip", z.ZodTypeAny, {
1290
- value: string;
1291
1292
  type: "ssn";
1293
+ value: string;
1292
1294
  period?: {
1293
1295
  start: string;
1294
1296
  end?: string | undefined;
@@ -1298,8 +1300,8 @@ export declare const patientSchema: z.ZodObject<{
1298
1300
  } | undefined;
1299
1301
  assigner?: string | undefined;
1300
1302
  }, {
1301
- value: string;
1302
1303
  type: "ssn";
1304
+ value: string;
1303
1305
  period?: {
1304
1306
  start: string;
1305
1307
  end?: string | undefined;
@@ -1523,11 +1525,10 @@ export declare const patientSchema: z.ZodObject<{
1523
1525
  phone?: string | null | undefined;
1524
1526
  email?: string | null | undefined;
1525
1527
  }>>]>;
1526
- id: z.ZodString;
1527
- eTag: z.ZodOptional<z.ZodString>;
1528
1528
  externalId: z.ZodOptional<z.ZodString>;
1529
1529
  facilityIds: z.ZodArray<z.ZodString, "many">;
1530
1530
  }, "strip", z.ZodTypeAny, {
1531
+ id: string;
1531
1532
  firstName: string;
1532
1533
  lastName: string;
1533
1534
  dob: string;
@@ -1599,11 +1600,11 @@ export declare const patientSchema: z.ZodObject<{
1599
1600
  lon: number;
1600
1601
  } | undefined;
1601
1602
  }[]] | undefined);
1602
- id: string;
1603
1603
  facilityIds: string[];
1604
+ eTag?: string | undefined;
1604
1605
  personalIdentifiers?: ({
1605
- value: string;
1606
1606
  type: "driversLicense";
1607
+ value: string;
1607
1608
  state: import("@metriport/shared/dist/domain/address/state").USState;
1608
1609
  period?: {
1609
1610
  start: string;
@@ -1614,8 +1615,8 @@ export declare const patientSchema: z.ZodObject<{
1614
1615
  } | undefined;
1615
1616
  assigner?: string | undefined;
1616
1617
  } | {
1617
- value: string;
1618
1618
  type: "ssn";
1619
+ value: string;
1619
1620
  period?: {
1620
1621
  start: string;
1621
1622
  end?: string | undefined;
@@ -1632,9 +1633,9 @@ export declare const patientSchema: z.ZodObject<{
1632
1633
  phone?: string | null | undefined;
1633
1634
  email?: string | null | undefined;
1634
1635
  }[] | undefined;
1635
- eTag?: string | undefined;
1636
1636
  externalId?: string | undefined;
1637
1637
  }, {
1638
+ id: string;
1638
1639
  firstName: string;
1639
1640
  lastName: string;
1640
1641
  dob: string;
@@ -1706,11 +1707,11 @@ export declare const patientSchema: z.ZodObject<{
1706
1707
  } | undefined;
1707
1708
  country?: "USA" | undefined;
1708
1709
  }[]] | undefined);
1709
- id: string;
1710
1710
  facilityIds: string[];
1711
+ eTag?: string | undefined;
1711
1712
  personalIdentifiers?: ({
1712
- value: string;
1713
1713
  type: "driversLicense";
1714
+ value: string;
1714
1715
  period?: {
1715
1716
  start: string;
1716
1717
  end?: string | undefined;
@@ -1721,8 +1722,8 @@ export declare const patientSchema: z.ZodObject<{
1721
1722
  assigner?: string | undefined;
1722
1723
  state?: unknown;
1723
1724
  } | {
1724
- value: string;
1725
1725
  type: "ssn";
1726
+ value: string;
1726
1727
  period?: {
1727
1728
  start: string;
1728
1729
  end?: string | undefined;
@@ -1739,12 +1740,13 @@ export declare const patientSchema: z.ZodObject<{
1739
1740
  phone?: string | null | undefined;
1740
1741
  email?: string | null | undefined;
1741
1742
  }[] | undefined;
1742
- eTag?: string | undefined;
1743
1743
  externalId?: string | undefined;
1744
1744
  }>;
1745
1745
  export type Patient = z.infer<typeof patientSchema>;
1746
1746
  export declare const patientListSchema: z.ZodObject<{
1747
1747
  patients: z.ZodArray<z.ZodObject<{
1748
+ id: z.ZodString;
1749
+ eTag: z.ZodOptional<z.ZodString>;
1748
1750
  firstName: z.ZodString;
1749
1751
  lastName: z.ZodString;
1750
1752
  dob: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -1826,8 +1828,8 @@ export declare const patientListSchema: z.ZodObject<{
1826
1828
  WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
1827
1829
  }>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
1828
1830
  }, "strip", z.ZodTypeAny, {
1829
- value: string;
1830
1831
  type: "driversLicense";
1832
+ value: string;
1831
1833
  state: import("@metriport/shared/dist/domain/address/state").USState;
1832
1834
  period?: {
1833
1835
  start: string;
@@ -1838,8 +1840,8 @@ export declare const patientListSchema: z.ZodObject<{
1838
1840
  } | undefined;
1839
1841
  assigner?: string | undefined;
1840
1842
  }, {
1841
- value: string;
1842
1843
  type: "driversLicense";
1844
+ value: string;
1843
1845
  period?: {
1844
1846
  start: string;
1845
1847
  end?: string | undefined;
@@ -1873,8 +1875,8 @@ export declare const patientListSchema: z.ZodObject<{
1873
1875
  assigner: z.ZodOptional<z.ZodString>;
1874
1876
  type: z.ZodEnum<["ssn"]>;
1875
1877
  }, "strip", z.ZodTypeAny, {
1876
- value: string;
1877
1878
  type: "ssn";
1879
+ value: string;
1878
1880
  period?: {
1879
1881
  start: string;
1880
1882
  end?: string | undefined;
@@ -1884,8 +1886,8 @@ export declare const patientListSchema: z.ZodObject<{
1884
1886
  } | undefined;
1885
1887
  assigner?: string | undefined;
1886
1888
  }, {
1887
- value: string;
1888
1889
  type: "ssn";
1890
+ value: string;
1889
1891
  period?: {
1890
1892
  start: string;
1891
1893
  end?: string | undefined;
@@ -2109,11 +2111,10 @@ export declare const patientListSchema: z.ZodObject<{
2109
2111
  phone?: string | null | undefined;
2110
2112
  email?: string | null | undefined;
2111
2113
  }>>]>;
2112
- id: z.ZodString;
2113
- eTag: z.ZodOptional<z.ZodString>;
2114
2114
  externalId: z.ZodOptional<z.ZodString>;
2115
2115
  facilityIds: z.ZodArray<z.ZodString, "many">;
2116
2116
  }, "strip", z.ZodTypeAny, {
2117
+ id: string;
2117
2118
  firstName: string;
2118
2119
  lastName: string;
2119
2120
  dob: string;
@@ -2185,11 +2186,11 @@ export declare const patientListSchema: z.ZodObject<{
2185
2186
  lon: number;
2186
2187
  } | undefined;
2187
2188
  }[]] | undefined);
2188
- id: string;
2189
2189
  facilityIds: string[];
2190
+ eTag?: string | undefined;
2190
2191
  personalIdentifiers?: ({
2191
- value: string;
2192
2192
  type: "driversLicense";
2193
+ value: string;
2193
2194
  state: import("@metriport/shared/dist/domain/address/state").USState;
2194
2195
  period?: {
2195
2196
  start: string;
@@ -2200,8 +2201,8 @@ export declare const patientListSchema: z.ZodObject<{
2200
2201
  } | undefined;
2201
2202
  assigner?: string | undefined;
2202
2203
  } | {
2203
- value: string;
2204
2204
  type: "ssn";
2205
+ value: string;
2205
2206
  period?: {
2206
2207
  start: string;
2207
2208
  end?: string | undefined;
@@ -2218,9 +2219,9 @@ export declare const patientListSchema: z.ZodObject<{
2218
2219
  phone?: string | null | undefined;
2219
2220
  email?: string | null | undefined;
2220
2221
  }[] | undefined;
2221
- eTag?: string | undefined;
2222
2222
  externalId?: string | undefined;
2223
2223
  }, {
2224
+ id: string;
2224
2225
  firstName: string;
2225
2226
  lastName: string;
2226
2227
  dob: string;
@@ -2292,11 +2293,11 @@ export declare const patientListSchema: z.ZodObject<{
2292
2293
  } | undefined;
2293
2294
  country?: "USA" | undefined;
2294
2295
  }[]] | undefined);
2295
- id: string;
2296
2296
  facilityIds: string[];
2297
+ eTag?: string | undefined;
2297
2298
  personalIdentifiers?: ({
2298
- value: string;
2299
2299
  type: "driversLicense";
2300
+ value: string;
2300
2301
  period?: {
2301
2302
  start: string;
2302
2303
  end?: string | undefined;
@@ -2307,8 +2308,8 @@ export declare const patientListSchema: z.ZodObject<{
2307
2308
  assigner?: string | undefined;
2308
2309
  state?: unknown;
2309
2310
  } | {
2310
- value: string;
2311
2311
  type: "ssn";
2312
+ value: string;
2312
2313
  period?: {
2313
2314
  start: string;
2314
2315
  end?: string | undefined;
@@ -2325,11 +2326,11 @@ export declare const patientListSchema: z.ZodObject<{
2325
2326
  phone?: string | null | undefined;
2326
2327
  email?: string | null | undefined;
2327
2328
  }[] | undefined;
2328
- eTag?: string | undefined;
2329
2329
  externalId?: string | undefined;
2330
2330
  }>, "many">;
2331
2331
  }, "strip", z.ZodTypeAny, {
2332
2332
  patients: {
2333
+ id: string;
2333
2334
  firstName: string;
2334
2335
  lastName: string;
2335
2336
  dob: string;
@@ -2401,11 +2402,11 @@ export declare const patientListSchema: z.ZodObject<{
2401
2402
  lon: number;
2402
2403
  } | undefined;
2403
2404
  }[]] | undefined);
2404
- id: string;
2405
2405
  facilityIds: string[];
2406
+ eTag?: string | undefined;
2406
2407
  personalIdentifiers?: ({
2407
- value: string;
2408
2408
  type: "driversLicense";
2409
+ value: string;
2409
2410
  state: import("@metriport/shared/dist/domain/address/state").USState;
2410
2411
  period?: {
2411
2412
  start: string;
@@ -2416,8 +2417,8 @@ export declare const patientListSchema: z.ZodObject<{
2416
2417
  } | undefined;
2417
2418
  assigner?: string | undefined;
2418
2419
  } | {
2419
- value: string;
2420
2420
  type: "ssn";
2421
+ value: string;
2421
2422
  period?: {
2422
2423
  start: string;
2423
2424
  end?: string | undefined;
@@ -2434,11 +2435,11 @@ export declare const patientListSchema: z.ZodObject<{
2434
2435
  phone?: string | null | undefined;
2435
2436
  email?: string | null | undefined;
2436
2437
  }[] | undefined;
2437
- eTag?: string | undefined;
2438
2438
  externalId?: string | undefined;
2439
2439
  }[];
2440
2440
  }, {
2441
2441
  patients: {
2442
+ id: string;
2442
2443
  firstName: string;
2443
2444
  lastName: string;
2444
2445
  dob: string;
@@ -2510,11 +2511,11 @@ export declare const patientListSchema: z.ZodObject<{
2510
2511
  } | undefined;
2511
2512
  country?: "USA" | undefined;
2512
2513
  }[]] | undefined);
2513
- id: string;
2514
2514
  facilityIds: string[];
2515
+ eTag?: string | undefined;
2515
2516
  personalIdentifiers?: ({
2516
- value: string;
2517
2517
  type: "driversLicense";
2518
+ value: string;
2518
2519
  period?: {
2519
2520
  start: string;
2520
2521
  end?: string | undefined;
@@ -2525,8 +2526,8 @@ export declare const patientListSchema: z.ZodObject<{
2525
2526
  assigner?: string | undefined;
2526
2527
  state?: unknown;
2527
2528
  } | {
2528
- value: string;
2529
2529
  type: "ssn";
2530
+ value: string;
2530
2531
  period?: {
2531
2532
  start: string;
2532
2533
  end?: string | undefined;
@@ -2543,7 +2544,6 @@ export declare const patientListSchema: z.ZodObject<{
2543
2544
  phone?: string | null | undefined;
2544
2545
  email?: string | null | undefined;
2545
2546
  }[] | undefined;
2546
- eTag?: string | undefined;
2547
2547
  externalId?: string | undefined;
2548
2548
  }[];
2549
2549
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "12.2.0-alpha.0",
3
+ "version": "12.2.0",
4
4
  "description": "Metriport helps you access and manage health and medical data, through a single open source API.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -57,8 +57,8 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@medplum/fhirtypes": "^2.0.32",
60
- "@metriport/commonwell-sdk": "^5.1.5-alpha.0",
61
- "@metriport/shared": "^0.14.0-alpha.0",
60
+ "@metriport/commonwell-sdk": "^5.1.5",
61
+ "@metriport/shared": "^0.14.0",
62
62
  "axios": "^1.4.0",
63
63
  "dayjs": "^1.11.7",
64
64
  "dotenv": "^16.3.1",
@@ -76,5 +76,5 @@
76
76
  "ts-jest": "29.1.1",
77
77
  "typescript": "^4.9.5"
78
78
  },
79
- "gitHead": "dfd21daff1a7240d64fded783f707764ee9df9e4"
79
+ "gitHead": "f09d805b784ad64e33660e52102e59dc3cf4999a"
80
80
  }