@metriport/api-sdk 12.0.0-alpha.1 → 12.0.0-alpha.3
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.
|
@@ -45,8 +45,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
45
45
|
type: z.ZodEnum<["driversLicense"]>;
|
|
46
46
|
state: z.ZodEffects<z.ZodNativeEnum<typeof import("./common/us-data").USState>, import("./common/us-data").USState, unknown>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
type: "driversLicense";
|
|
49
48
|
value: string;
|
|
49
|
+
type: "driversLicense";
|
|
50
50
|
state: import("./common/us-data").USState;
|
|
51
51
|
period?: {
|
|
52
52
|
start: string;
|
|
@@ -57,8 +57,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
57
57
|
} | undefined;
|
|
58
58
|
assigner?: string | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
type: "driversLicense";
|
|
61
60
|
value: string;
|
|
61
|
+
type: "driversLicense";
|
|
62
62
|
period?: {
|
|
63
63
|
start: string;
|
|
64
64
|
end?: string | undefined;
|
|
@@ -92,8 +92,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
92
92
|
assigner: z.ZodOptional<z.ZodString>;
|
|
93
93
|
type: z.ZodEnum<["ssn"]>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
type: "ssn";
|
|
96
95
|
value: string;
|
|
96
|
+
type: "ssn";
|
|
97
97
|
period?: {
|
|
98
98
|
start: string;
|
|
99
99
|
end?: string | undefined;
|
|
@@ -103,8 +103,8 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
103
103
|
} | undefined;
|
|
104
104
|
assigner?: string | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
type: "ssn";
|
|
107
106
|
value: string;
|
|
107
|
+
type: "ssn";
|
|
108
108
|
period?: {
|
|
109
109
|
start: string;
|
|
110
110
|
end?: string | undefined;
|
|
@@ -163,8 +163,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
163
163
|
type: z.ZodEnum<["driversLicense"]>;
|
|
164
164
|
state: z.ZodEffects<z.ZodNativeEnum<typeof import("./common/us-data").USState>, import("./common/us-data").USState, unknown>;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
type: "driversLicense";
|
|
167
166
|
value: string;
|
|
167
|
+
type: "driversLicense";
|
|
168
168
|
state: import("./common/us-data").USState;
|
|
169
169
|
period?: {
|
|
170
170
|
start: string;
|
|
@@ -175,8 +175,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
175
175
|
} | undefined;
|
|
176
176
|
assigner?: string | undefined;
|
|
177
177
|
}, {
|
|
178
|
-
type: "driversLicense";
|
|
179
178
|
value: string;
|
|
179
|
+
type: "driversLicense";
|
|
180
180
|
period?: {
|
|
181
181
|
start: string;
|
|
182
182
|
end?: string | undefined;
|
|
@@ -210,8 +210,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
210
210
|
assigner: z.ZodOptional<z.ZodString>;
|
|
211
211
|
type: z.ZodEnum<["ssn"]>;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
type: "ssn";
|
|
214
213
|
value: string;
|
|
214
|
+
type: "ssn";
|
|
215
215
|
period?: {
|
|
216
216
|
start: string;
|
|
217
217
|
end?: string | undefined;
|
|
@@ -221,8 +221,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
221
221
|
} | undefined;
|
|
222
222
|
assigner?: string | undefined;
|
|
223
223
|
}, {
|
|
224
|
-
type: "ssn";
|
|
225
224
|
value: string;
|
|
225
|
+
type: "ssn";
|
|
226
226
|
period?: {
|
|
227
227
|
start: string;
|
|
228
228
|
end?: string | undefined;
|
|
@@ -343,10 +343,6 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
343
343
|
email?: string | null | undefined;
|
|
344
344
|
}>>]>;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
|
-
firstName: string;
|
|
347
|
-
lastName: string;
|
|
348
|
-
dob: string;
|
|
349
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
350
346
|
address: ({
|
|
351
347
|
addressLine1: string;
|
|
352
348
|
city: string;
|
|
@@ -414,9 +410,13 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
414
410
|
lon: number;
|
|
415
411
|
} | undefined;
|
|
416
412
|
}[]] | undefined);
|
|
413
|
+
firstName: string;
|
|
414
|
+
lastName: string;
|
|
415
|
+
dob: string;
|
|
416
|
+
genderAtBirth: "F" | "M" | "O" | "U";
|
|
417
417
|
personalIdentifiers?: ({
|
|
418
|
-
type: "driversLicense";
|
|
419
418
|
value: string;
|
|
419
|
+
type: "driversLicense";
|
|
420
420
|
state: import("./common/us-data").USState;
|
|
421
421
|
period?: {
|
|
422
422
|
start: string;
|
|
@@ -427,8 +427,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
427
427
|
} | undefined;
|
|
428
428
|
assigner?: string | undefined;
|
|
429
429
|
} | {
|
|
430
|
-
type: "ssn";
|
|
431
430
|
value: string;
|
|
431
|
+
type: "ssn";
|
|
432
432
|
period?: {
|
|
433
433
|
start: string;
|
|
434
434
|
end?: string | undefined;
|
|
@@ -446,10 +446,6 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
446
446
|
email?: string | null | undefined;
|
|
447
447
|
}[] | undefined;
|
|
448
448
|
}, {
|
|
449
|
-
firstName: string;
|
|
450
|
-
lastName: string;
|
|
451
|
-
dob: string;
|
|
452
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
453
449
|
address: ({
|
|
454
450
|
addressLine1: string;
|
|
455
451
|
city: string;
|
|
@@ -517,9 +513,13 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
517
513
|
} | undefined;
|
|
518
514
|
country?: "USA" | undefined;
|
|
519
515
|
}[]] | undefined);
|
|
516
|
+
firstName: string;
|
|
517
|
+
lastName: string;
|
|
518
|
+
dob: string;
|
|
519
|
+
genderAtBirth: "F" | "M" | "O" | "U";
|
|
520
520
|
personalIdentifiers?: ({
|
|
521
|
-
type: "driversLicense";
|
|
522
521
|
value: string;
|
|
522
|
+
type: "driversLicense";
|
|
523
523
|
period?: {
|
|
524
524
|
start: string;
|
|
525
525
|
end?: string | undefined;
|
|
@@ -530,8 +530,8 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
530
530
|
assigner?: string | undefined;
|
|
531
531
|
state?: unknown;
|
|
532
532
|
} | {
|
|
533
|
-
type: "ssn";
|
|
534
533
|
value: string;
|
|
534
|
+
type: "ssn";
|
|
535
535
|
period?: {
|
|
536
536
|
start: string;
|
|
537
537
|
end?: string | undefined;
|
|
@@ -45,6 +45,8 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
45
45
|
country?: "USA" | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
name: string;
|
|
49
|
+
npi: string;
|
|
48
50
|
address: {
|
|
49
51
|
addressLine1: string;
|
|
50
52
|
city: string;
|
|
@@ -57,11 +59,11 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
57
59
|
lon: number;
|
|
58
60
|
} | undefined;
|
|
59
61
|
};
|
|
60
|
-
name: string;
|
|
61
|
-
npi: string;
|
|
62
62
|
tin?: string | null | undefined;
|
|
63
63
|
active?: boolean | null | undefined;
|
|
64
64
|
}, {
|
|
65
|
+
name: string;
|
|
66
|
+
npi: string;
|
|
65
67
|
address: {
|
|
66
68
|
addressLine1: string;
|
|
67
69
|
city: string;
|
|
@@ -74,13 +76,15 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
74
76
|
} | undefined;
|
|
75
77
|
country?: "USA" | undefined;
|
|
76
78
|
};
|
|
77
|
-
name: string;
|
|
78
|
-
npi: string;
|
|
79
79
|
tin?: string | null | undefined;
|
|
80
80
|
active?: boolean | null | undefined;
|
|
81
81
|
}>;
|
|
82
82
|
export type FacilityCreate = z.infer<typeof facilityCreateSchema>;
|
|
83
83
|
export declare const facilitySchema: z.ZodObject<{
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
npi: z.ZodEffects<z.ZodString, string, string>;
|
|
86
|
+
tin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
|
+
active: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
84
88
|
address: z.ZodObject<{
|
|
85
89
|
addressLine1: z.ZodString;
|
|
86
90
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
@@ -121,14 +125,11 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
121
125
|
} | undefined;
|
|
122
126
|
country?: "USA" | undefined;
|
|
123
127
|
}>;
|
|
124
|
-
name: z.ZodString;
|
|
125
|
-
npi: z.ZodEffects<z.ZodString, string, string>;
|
|
126
|
-
tin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
127
|
-
active: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
128
128
|
id: z.ZodString;
|
|
129
129
|
eTag: z.ZodOptional<z.ZodString>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
|
|
131
|
+
name: string;
|
|
132
|
+
npi: string;
|
|
132
133
|
address: {
|
|
133
134
|
addressLine1: string;
|
|
134
135
|
city: string;
|
|
@@ -141,13 +142,13 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
141
142
|
lon: number;
|
|
142
143
|
} | undefined;
|
|
143
144
|
};
|
|
144
|
-
|
|
145
|
-
npi: string;
|
|
145
|
+
id: string;
|
|
146
146
|
tin?: string | null | undefined;
|
|
147
147
|
active?: boolean | null | undefined;
|
|
148
148
|
eTag?: string | undefined;
|
|
149
149
|
}, {
|
|
150
|
-
|
|
150
|
+
name: string;
|
|
151
|
+
npi: string;
|
|
151
152
|
address: {
|
|
152
153
|
addressLine1: string;
|
|
153
154
|
city: string;
|
|
@@ -160,8 +161,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
160
161
|
} | undefined;
|
|
161
162
|
country?: "USA" | undefined;
|
|
162
163
|
};
|
|
163
|
-
|
|
164
|
-
npi: string;
|
|
164
|
+
id: string;
|
|
165
165
|
tin?: string | null | undefined;
|
|
166
166
|
active?: boolean | null | undefined;
|
|
167
167
|
eTag?: string | undefined;
|
|
@@ -169,6 +169,10 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
169
169
|
export type Facility = z.infer<typeof facilitySchema>;
|
|
170
170
|
export declare const facilityListSchema: z.ZodObject<{
|
|
171
171
|
facilities: z.ZodArray<z.ZodObject<{
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
npi: z.ZodEffects<z.ZodString, string, string>;
|
|
174
|
+
tin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
175
|
+
active: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
172
176
|
address: z.ZodObject<{
|
|
173
177
|
addressLine1: z.ZodString;
|
|
174
178
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
@@ -209,14 +213,11 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
209
213
|
} | undefined;
|
|
210
214
|
country?: "USA" | undefined;
|
|
211
215
|
}>;
|
|
212
|
-
name: z.ZodString;
|
|
213
|
-
npi: z.ZodEffects<z.ZodString, string, string>;
|
|
214
|
-
tin: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
215
|
-
active: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
216
216
|
id: z.ZodString;
|
|
217
217
|
eTag: z.ZodOptional<z.ZodString>;
|
|
218
218
|
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
|
|
219
|
+
name: string;
|
|
220
|
+
npi: string;
|
|
220
221
|
address: {
|
|
221
222
|
addressLine1: string;
|
|
222
223
|
city: string;
|
|
@@ -229,13 +230,13 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
229
230
|
lon: number;
|
|
230
231
|
} | undefined;
|
|
231
232
|
};
|
|
232
|
-
|
|
233
|
-
npi: string;
|
|
233
|
+
id: string;
|
|
234
234
|
tin?: string | null | undefined;
|
|
235
235
|
active?: boolean | null | undefined;
|
|
236
236
|
eTag?: string | undefined;
|
|
237
237
|
}, {
|
|
238
|
-
|
|
238
|
+
name: string;
|
|
239
|
+
npi: string;
|
|
239
240
|
address: {
|
|
240
241
|
addressLine1: string;
|
|
241
242
|
city: string;
|
|
@@ -248,15 +249,15 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
248
249
|
} | undefined;
|
|
249
250
|
country?: "USA" | undefined;
|
|
250
251
|
};
|
|
251
|
-
|
|
252
|
-
npi: string;
|
|
252
|
+
id: string;
|
|
253
253
|
tin?: string | null | undefined;
|
|
254
254
|
active?: boolean | null | undefined;
|
|
255
255
|
eTag?: string | undefined;
|
|
256
256
|
}>, "many">;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
facilities: {
|
|
259
|
-
|
|
259
|
+
name: string;
|
|
260
|
+
npi: string;
|
|
260
261
|
address: {
|
|
261
262
|
addressLine1: string;
|
|
262
263
|
city: string;
|
|
@@ -269,15 +270,15 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
269
270
|
lon: number;
|
|
270
271
|
} | undefined;
|
|
271
272
|
};
|
|
272
|
-
|
|
273
|
-
npi: string;
|
|
273
|
+
id: string;
|
|
274
274
|
tin?: string | null | undefined;
|
|
275
275
|
active?: boolean | null | undefined;
|
|
276
276
|
eTag?: string | undefined;
|
|
277
277
|
}[];
|
|
278
278
|
}, {
|
|
279
279
|
facilities: {
|
|
280
|
-
|
|
280
|
+
name: string;
|
|
281
|
+
npi: string;
|
|
281
282
|
address: {
|
|
282
283
|
addressLine1: string;
|
|
283
284
|
city: string;
|
|
@@ -290,8 +291,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
290
291
|
} | undefined;
|
|
291
292
|
country?: "USA" | undefined;
|
|
292
293
|
};
|
|
293
|
-
|
|
294
|
-
npi: string;
|
|
294
|
+
id: string;
|
|
295
295
|
tin?: string | null | undefined;
|
|
296
296
|
active?: boolean | null | undefined;
|
|
297
297
|
eTag?: string | undefined;
|
|
@@ -49,16 +49,16 @@ export declare const consolidatedCountSchema: z.ZodObject<{
|
|
|
49
49
|
dateFrom?: string | undefined;
|
|
50
50
|
dateTo?: string | undefined;
|
|
51
51
|
};
|
|
52
|
-
total: number;
|
|
53
52
|
resources: Record<string, number>;
|
|
53
|
+
total: number;
|
|
54
54
|
}, {
|
|
55
55
|
filter: {
|
|
56
56
|
resources: string;
|
|
57
57
|
dateFrom?: string | undefined;
|
|
58
58
|
dateTo?: string | undefined;
|
|
59
59
|
};
|
|
60
|
-
total: number;
|
|
61
60
|
resources: Record<string, number>;
|
|
61
|
+
total: number;
|
|
62
62
|
}>;
|
|
63
63
|
export type ConsolidatedCountResponse = z.infer<typeof consolidatedCountSchema>;
|
|
64
64
|
export declare const consolidatedQuerySchema: z.ZodObject<{
|