@metriport/api-sdk 12.1.3 → 12.2.0-alpha.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.
- package/dist/index.d.ts +2 -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/models/common/address.d.ts +56 -3
- package/dist/medical/models/common/address.d.ts.map +1 -1
- package/dist/medical/models/common/address.js +3 -2
- package/dist/medical/models/common/address.js.map +1 -1
- package/dist/medical/models/common/us-data.d.ts +3 -1
- package/dist/medical/models/common/us-data.d.ts.map +1 -1
- package/dist/medical/models/common/us-data.js +5 -3
- package/dist/medical/models/common/us-data.js.map +1 -1
- package/dist/medical/models/demographics.d.ts +29 -29
- package/dist/medical/models/demographics.js +1 -1
- package/dist/medical/models/demographics.js.map +1 -1
- package/dist/medical/models/facility.d.ts +19 -19
- package/dist/medical/models/fhir.d.ts +2 -2
- package/dist/medical/models/organization.d.ts +10 -10
- package/dist/medical/models/patient.d.ts +112 -112
- package/dist/shared.d.ts +1 -0
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +6 -2
- package/dist/shared.js.map +1 -1
- package/package.json +4 -4
|
@@ -8,7 +8,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
8
8
|
addressLine1: z.ZodString;
|
|
9
9
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
10
10
|
city: z.ZodString;
|
|
11
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
11
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
12
12
|
AL: import("@metriport/shared").USState.AL;
|
|
13
13
|
AK: import("@metriport/shared").USState.AK;
|
|
14
14
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -60,7 +60,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
60
60
|
WV: import("@metriport/shared").USState.WV;
|
|
61
61
|
WI: import("@metriport/shared").USState.WI;
|
|
62
62
|
WY: import("@metriport/shared").USState.WY;
|
|
63
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
63
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
64
64
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
65
65
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
66
66
|
lat: z.ZodNumber;
|
|
@@ -76,7 +76,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
addressLine1: string;
|
|
78
78
|
city: string;
|
|
79
|
-
state: import("@metriport/shared").USState;
|
|
79
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
80
80
|
zip: string;
|
|
81
81
|
country: "USA";
|
|
82
82
|
addressLine2?: string | undefined;
|
|
@@ -100,7 +100,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
100
100
|
address: {
|
|
101
101
|
addressLine1: string;
|
|
102
102
|
city: string;
|
|
103
|
-
state: import("@metriport/shared").USState;
|
|
103
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
104
104
|
zip: string;
|
|
105
105
|
country: "USA";
|
|
106
106
|
addressLine2?: string | undefined;
|
|
@@ -137,7 +137,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
137
137
|
addressLine1: z.ZodString;
|
|
138
138
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
139
139
|
city: z.ZodString;
|
|
140
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
140
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
141
141
|
AL: import("@metriport/shared").USState.AL;
|
|
142
142
|
AK: import("@metriport/shared").USState.AK;
|
|
143
143
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -189,7 +189,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
189
189
|
WV: import("@metriport/shared").USState.WV;
|
|
190
190
|
WI: import("@metriport/shared").USState.WI;
|
|
191
191
|
WY: import("@metriport/shared").USState.WY;
|
|
192
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
192
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
193
193
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
194
194
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
195
195
|
lat: z.ZodNumber;
|
|
@@ -205,7 +205,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
addressLine1: string;
|
|
207
207
|
city: string;
|
|
208
|
-
state: import("@metriport/shared").USState;
|
|
208
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
209
209
|
zip: string;
|
|
210
210
|
country: "USA";
|
|
211
211
|
addressLine2?: string | undefined;
|
|
@@ -232,11 +232,10 @@ 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;
|
|
236
235
|
address: {
|
|
237
236
|
addressLine1: string;
|
|
238
237
|
city: string;
|
|
239
|
-
state: import("@metriport/shared").USState;
|
|
238
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
240
239
|
zip: string;
|
|
241
240
|
country: "USA";
|
|
242
241
|
addressLine2?: string | undefined;
|
|
@@ -247,11 +246,11 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
247
246
|
};
|
|
248
247
|
name: string;
|
|
249
248
|
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;
|
|
255
254
|
address: {
|
|
256
255
|
addressLine1: string;
|
|
257
256
|
city: string;
|
|
@@ -266,6 +265,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
266
265
|
};
|
|
267
266
|
name: string;
|
|
268
267
|
npi: string;
|
|
268
|
+
id: string;
|
|
269
269
|
tin?: string | null | undefined;
|
|
270
270
|
active?: boolean | null | undefined;
|
|
271
271
|
eTag?: string | undefined;
|
|
@@ -277,7 +277,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
277
277
|
addressLine1: z.ZodString;
|
|
278
278
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
279
279
|
city: z.ZodString;
|
|
280
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
280
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
281
281
|
AL: import("@metriport/shared").USState.AL;
|
|
282
282
|
AK: import("@metriport/shared").USState.AK;
|
|
283
283
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -329,7 +329,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
329
329
|
WV: import("@metriport/shared").USState.WV;
|
|
330
330
|
WI: import("@metriport/shared").USState.WI;
|
|
331
331
|
WY: import("@metriport/shared").USState.WY;
|
|
332
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
332
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
333
333
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
334
334
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
335
335
|
lat: z.ZodNumber;
|
|
@@ -345,7 +345,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
346
|
addressLine1: string;
|
|
347
347
|
city: string;
|
|
348
|
-
state: import("@metriport/shared").USState;
|
|
348
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
349
349
|
zip: string;
|
|
350
350
|
country: "USA";
|
|
351
351
|
addressLine2?: string | undefined;
|
|
@@ -372,11 +372,10 @@ 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;
|
|
376
375
|
address: {
|
|
377
376
|
addressLine1: string;
|
|
378
377
|
city: string;
|
|
379
|
-
state: import("@metriport/shared").USState;
|
|
378
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
380
379
|
zip: string;
|
|
381
380
|
country: "USA";
|
|
382
381
|
addressLine2?: string | undefined;
|
|
@@ -387,11 +386,11 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
387
386
|
};
|
|
388
387
|
name: string;
|
|
389
388
|
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;
|
|
395
394
|
address: {
|
|
396
395
|
addressLine1: string;
|
|
397
396
|
city: string;
|
|
@@ -406,17 +405,17 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
406
405
|
};
|
|
407
406
|
name: string;
|
|
408
407
|
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;
|
|
416
415
|
address: {
|
|
417
416
|
addressLine1: string;
|
|
418
417
|
city: string;
|
|
419
|
-
state: import("@metriport/shared").USState;
|
|
418
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
420
419
|
zip: string;
|
|
421
420
|
country: "USA";
|
|
422
421
|
addressLine2?: string | undefined;
|
|
@@ -427,13 +426,13 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
427
426
|
};
|
|
428
427
|
name: string;
|
|
429
428
|
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;
|
|
437
436
|
address: {
|
|
438
437
|
addressLine1: string;
|
|
439
438
|
city: string;
|
|
@@ -448,6 +447,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
448
447
|
};
|
|
449
448
|
name: string;
|
|
450
449
|
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
|
-
total: number;
|
|
60
59
|
resources: Record<string, number>;
|
|
60
|
+
total: number;
|
|
61
61
|
}, {
|
|
62
62
|
filter: {
|
|
63
63
|
resources: string;
|
|
64
64
|
dateFrom?: string | undefined;
|
|
65
65
|
dateTo?: string | undefined;
|
|
66
66
|
};
|
|
67
|
-
total: number;
|
|
68
67
|
resources: Record<string, number>;
|
|
68
|
+
total: number;
|
|
69
69
|
}>;
|
|
70
70
|
export type ConsolidatedCountResponse = z.infer<typeof consolidatedCountSchema>;
|
|
71
71
|
export declare const consolidatedQuerySchema: z.ZodObject<{
|
|
@@ -15,7 +15,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
15
15
|
addressLine1: z.ZodString;
|
|
16
16
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
17
17
|
city: z.ZodString;
|
|
18
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
18
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
19
19
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
20
20
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
21
21
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -67,7 +67,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
67
67
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
68
68
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
69
69
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
70
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
70
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
71
71
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
72
72
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
73
73
|
lat: z.ZodNumber;
|
|
@@ -83,7 +83,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
84
|
addressLine1: string;
|
|
85
85
|
city: string;
|
|
86
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
86
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
87
87
|
zip: string;
|
|
88
88
|
country: "USA";
|
|
89
89
|
addressLine2?: string | undefined;
|
|
@@ -109,7 +109,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
109
109
|
location: {
|
|
110
110
|
addressLine1: string;
|
|
111
111
|
city: string;
|
|
112
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
112
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
113
113
|
zip: string;
|
|
114
114
|
country: "USA";
|
|
115
115
|
addressLine2?: string | undefined;
|
|
@@ -142,7 +142,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
142
142
|
addressLine1: z.ZodString;
|
|
143
143
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
144
144
|
city: z.ZodString;
|
|
145
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
145
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
146
146
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
147
147
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
148
148
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -194,7 +194,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
194
194
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
195
195
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
196
196
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
197
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
197
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
198
198
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
199
199
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
200
200
|
lat: z.ZodNumber;
|
|
@@ -210,7 +210,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
211
|
addressLine1: string;
|
|
212
212
|
city: string;
|
|
213
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
213
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
214
214
|
zip: string;
|
|
215
215
|
country: "USA";
|
|
216
216
|
addressLine2?: string | undefined;
|
|
@@ -235,12 +235,12 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
235
235
|
eTag: z.ZodOptional<z.ZodString>;
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
237
|
type: OrgType;
|
|
238
|
-
id: string;
|
|
239
238
|
name: string;
|
|
239
|
+
id: string;
|
|
240
240
|
location: {
|
|
241
241
|
addressLine1: string;
|
|
242
242
|
city: string;
|
|
243
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
243
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
244
244
|
zip: string;
|
|
245
245
|
country: "USA";
|
|
246
246
|
addressLine2?: string | undefined;
|
|
@@ -253,8 +253,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
253
253
|
eTag?: string | undefined;
|
|
254
254
|
}, {
|
|
255
255
|
type: OrgType;
|
|
256
|
-
id: string;
|
|
257
256
|
name: string;
|
|
257
|
+
id: string;
|
|
258
258
|
location: {
|
|
259
259
|
addressLine1: string;
|
|
260
260
|
city: string;
|