@metriport/api-sdk 12.0.0-alpha.2 → 12.0.0-alpha.4
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/medical/models/demographics.d.ts +20 -20
- package/dist/medical/models/facility.d.ts +30 -30
- package/dist/medical/models/fhir.d.ts +2 -2
- package/dist/medical/models/patient.d.ts +426 -426
- package/package.json +4 -4
- package/dist/api-sdk/src/index.d.ts +0 -26
- package/dist/api-sdk/src/index.d.ts.map +0 -1
- package/dist/api-sdk/src/index.js +0 -64
- package/dist/api-sdk/src/index.js.map +0 -1
- package/dist/api-sdk/src/medical/client/metriport.d.ts +0 -350
- package/dist/api-sdk/src/medical/client/metriport.d.ts.map +0 -1
- package/dist/api-sdk/src/medical/client/metriport.js +0 -596
- package/dist/api-sdk/src/medical/client/metriport.js.map +0 -1
- package/dist/api-sdk/src/medical/models/patientDTO.d.ts +0 -52
- package/dist/api-sdk/src/medical/models/patientDTO.d.ts.map +0 -1
- package/dist/api-sdk/src/medical/models/patientDTO.js +0 -3
- package/dist/api-sdk/src/medical/models/patientDTO.js.map +0 -1
- package/dist/medical/models/webhook-request.d.ts +0 -376
- package/dist/medical/models/webhook-request.d.ts.map +0 -1
- package/dist/medical/models/webhook-request.js +0 -109
- package/dist/medical/models/webhook-request.js.map +0 -1
- package/dist/medical/models/webhook-status-response.d.ts +0 -7
- package/dist/medical/models/webhook-status-response.d.ts.map +0 -1
- package/dist/medical/models/webhook-status-response.js +0 -3
- package/dist/medical/models/webhook-status-response.js.map +0 -1
- package/dist/shared/src/medical/webhook/webhook-request.d.ts +0 -376
- package/dist/shared/src/medical/webhook/webhook-request.d.ts.map +0 -1
- package/dist/shared/src/medical/webhook/webhook-request.js +0 -109
- package/dist/shared/src/medical/webhook/webhook-request.js.map +0 -1
- package/dist/shared/src/medical/webhook/webhook-status-response.d.ts +0 -7
- package/dist/shared/src/medical/webhook/webhook-status-response.d.ts.map +0 -1
- package/dist/shared/src/medical/webhook/webhook-status-response.js +0 -3
- package/dist/shared/src/medical/webhook/webhook-status-response.js.map +0 -1
|
@@ -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
|
-
value: string;
|
|
49
48
|
type: "driversLicense";
|
|
49
|
+
value: string;
|
|
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
|
-
value: string;
|
|
61
60
|
type: "driversLicense";
|
|
61
|
+
value: string;
|
|
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
|
-
value: string;
|
|
96
95
|
type: "ssn";
|
|
96
|
+
value: string;
|
|
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
|
-
value: string;
|
|
107
106
|
type: "ssn";
|
|
107
|
+
value: string;
|
|
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
|
-
value: string;
|
|
167
166
|
type: "driversLicense";
|
|
167
|
+
value: string;
|
|
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
|
-
value: string;
|
|
179
178
|
type: "driversLicense";
|
|
179
|
+
value: string;
|
|
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
|
-
value: string;
|
|
214
213
|
type: "ssn";
|
|
214
|
+
value: string;
|
|
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
|
-
value: string;
|
|
225
224
|
type: "ssn";
|
|
225
|
+
value: string;
|
|
226
226
|
period?: {
|
|
227
227
|
start: string;
|
|
228
228
|
end?: string | undefined;
|
|
@@ -343,6 +343,10 @@ 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";
|
|
346
350
|
address: ({
|
|
347
351
|
addressLine1: string;
|
|
348
352
|
city: string;
|
|
@@ -410,13 +414,9 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
410
414
|
lon: number;
|
|
411
415
|
} | undefined;
|
|
412
416
|
}[]] | undefined);
|
|
413
|
-
firstName: string;
|
|
414
|
-
lastName: string;
|
|
415
|
-
dob: string;
|
|
416
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
417
417
|
personalIdentifiers?: ({
|
|
418
|
-
value: string;
|
|
419
418
|
type: "driversLicense";
|
|
419
|
+
value: string;
|
|
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
|
-
value: string;
|
|
431
430
|
type: "ssn";
|
|
431
|
+
value: string;
|
|
432
432
|
period?: {
|
|
433
433
|
start: string;
|
|
434
434
|
end?: string | undefined;
|
|
@@ -446,6 +446,10 @@ 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";
|
|
449
453
|
address: ({
|
|
450
454
|
addressLine1: string;
|
|
451
455
|
city: string;
|
|
@@ -513,13 +517,9 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
513
517
|
} | undefined;
|
|
514
518
|
country?: "USA" | undefined;
|
|
515
519
|
}[]] | undefined);
|
|
516
|
-
firstName: string;
|
|
517
|
-
lastName: string;
|
|
518
|
-
dob: string;
|
|
519
|
-
genderAtBirth: "F" | "M" | "O" | "U";
|
|
520
520
|
personalIdentifiers?: ({
|
|
521
|
-
value: string;
|
|
522
521
|
type: "driversLicense";
|
|
522
|
+
value: string;
|
|
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
|
-
value: string;
|
|
534
533
|
type: "ssn";
|
|
534
|
+
value: string;
|
|
535
535
|
period?: {
|
|
536
536
|
start: string;
|
|
537
537
|
end?: string | undefined;
|
|
@@ -45,8 +45,6 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
45
45
|
country?: "USA" | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
name: string;
|
|
49
|
-
npi: string;
|
|
50
48
|
address: {
|
|
51
49
|
addressLine1: string;
|
|
52
50
|
city: string;
|
|
@@ -59,11 +57,11 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
59
57
|
lon: number;
|
|
60
58
|
} | undefined;
|
|
61
59
|
};
|
|
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;
|
|
67
65
|
address: {
|
|
68
66
|
addressLine1: string;
|
|
69
67
|
city: string;
|
|
@@ -76,15 +74,13 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
76
74
|
} | undefined;
|
|
77
75
|
country?: "USA" | undefined;
|
|
78
76
|
};
|
|
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>>;
|
|
88
84
|
address: z.ZodObject<{
|
|
89
85
|
addressLine1: z.ZodString;
|
|
90
86
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
@@ -125,11 +121,14 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
125
121
|
} | undefined;
|
|
126
122
|
country?: "USA" | undefined;
|
|
127
123
|
}>;
|
|
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
|
-
|
|
132
|
-
npi: string;
|
|
131
|
+
id: string;
|
|
133
132
|
address: {
|
|
134
133
|
addressLine1: string;
|
|
135
134
|
city: string;
|
|
@@ -142,13 +141,13 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
142
141
|
lon: number;
|
|
143
142
|
} | undefined;
|
|
144
143
|
};
|
|
145
|
-
|
|
144
|
+
name: string;
|
|
145
|
+
npi: string;
|
|
146
146
|
tin?: string | null | undefined;
|
|
147
147
|
active?: boolean | null | undefined;
|
|
148
148
|
eTag?: string | undefined;
|
|
149
149
|
}, {
|
|
150
|
-
|
|
151
|
-
npi: string;
|
|
150
|
+
id: string;
|
|
152
151
|
address: {
|
|
153
152
|
addressLine1: string;
|
|
154
153
|
city: string;
|
|
@@ -161,7 +160,8 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
161
160
|
} | undefined;
|
|
162
161
|
country?: "USA" | undefined;
|
|
163
162
|
};
|
|
164
|
-
|
|
163
|
+
name: string;
|
|
164
|
+
npi: string;
|
|
165
165
|
tin?: string | null | undefined;
|
|
166
166
|
active?: boolean | null | undefined;
|
|
167
167
|
eTag?: string | undefined;
|
|
@@ -169,10 +169,6 @@ 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>>;
|
|
176
172
|
address: z.ZodObject<{
|
|
177
173
|
addressLine1: z.ZodString;
|
|
178
174
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
@@ -213,11 +209,14 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
213
209
|
} | undefined;
|
|
214
210
|
country?: "USA" | undefined;
|
|
215
211
|
}>;
|
|
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
|
-
|
|
220
|
-
npi: string;
|
|
219
|
+
id: string;
|
|
221
220
|
address: {
|
|
222
221
|
addressLine1: string;
|
|
223
222
|
city: string;
|
|
@@ -230,13 +229,13 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
230
229
|
lon: number;
|
|
231
230
|
} | undefined;
|
|
232
231
|
};
|
|
233
|
-
|
|
232
|
+
name: string;
|
|
233
|
+
npi: string;
|
|
234
234
|
tin?: string | null | undefined;
|
|
235
235
|
active?: boolean | null | undefined;
|
|
236
236
|
eTag?: string | undefined;
|
|
237
237
|
}, {
|
|
238
|
-
|
|
239
|
-
npi: string;
|
|
238
|
+
id: string;
|
|
240
239
|
address: {
|
|
241
240
|
addressLine1: string;
|
|
242
241
|
city: string;
|
|
@@ -249,15 +248,15 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
249
248
|
} | undefined;
|
|
250
249
|
country?: "USA" | undefined;
|
|
251
250
|
};
|
|
252
|
-
|
|
251
|
+
name: string;
|
|
252
|
+
npi: 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
|
-
|
|
260
|
-
npi: string;
|
|
259
|
+
id: string;
|
|
261
260
|
address: {
|
|
262
261
|
addressLine1: string;
|
|
263
262
|
city: string;
|
|
@@ -270,15 +269,15 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
270
269
|
lon: number;
|
|
271
270
|
} | undefined;
|
|
272
271
|
};
|
|
273
|
-
|
|
272
|
+
name: string;
|
|
273
|
+
npi: 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
|
-
|
|
281
|
-
npi: string;
|
|
280
|
+
id: string;
|
|
282
281
|
address: {
|
|
283
282
|
addressLine1: string;
|
|
284
283
|
city: string;
|
|
@@ -291,7 +290,8 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
291
290
|
} | undefined;
|
|
292
291
|
country?: "USA" | undefined;
|
|
293
292
|
};
|
|
294
|
-
|
|
293
|
+
name: string;
|
|
294
|
+
npi: 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
|
-
resources: Record<string, number>;
|
|
53
52
|
total: number;
|
|
53
|
+
resources: Record<string, number>;
|
|
54
54
|
}, {
|
|
55
55
|
filter: {
|
|
56
56
|
resources: string;
|
|
57
57
|
dateFrom?: string | undefined;
|
|
58
58
|
dateTo?: string | undefined;
|
|
59
59
|
};
|
|
60
|
-
resources: Record<string, number>;
|
|
61
60
|
total: number;
|
|
61
|
+
resources: Record<string, number>;
|
|
62
62
|
}>;
|
|
63
63
|
export type ConsolidatedCountResponse = z.infer<typeof consolidatedCountSchema>;
|
|
64
64
|
export declare const consolidatedQuerySchema: z.ZodObject<{
|