@metriport/api-sdk 7.5.4-alpha.0 → 7.5.4-alpha.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.
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const patientCreateSchema: z.ZodObject<{
|
|
3
|
+
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
4
|
+
addressLine1: z.ZodString;
|
|
5
|
+
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
6
|
+
city: z.ZodString;
|
|
7
|
+
state: z.ZodNativeEnum<typeof import("./common/us-data").USState>;
|
|
8
|
+
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
9
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
addressLine1: string;
|
|
12
|
+
city: string;
|
|
13
|
+
state: import("./common/us-data").USState;
|
|
14
|
+
zip: string;
|
|
15
|
+
country: "USA";
|
|
16
|
+
addressLine2?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
addressLine1: string;
|
|
19
|
+
city: string;
|
|
20
|
+
state: import("./common/us-data").USState;
|
|
21
|
+
zip: string;
|
|
22
|
+
addressLine2?: string | undefined;
|
|
23
|
+
country?: "USA" | undefined;
|
|
24
|
+
}>, "many">, z.ZodObject<{
|
|
25
|
+
addressLine1: z.ZodString;
|
|
26
|
+
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
27
|
+
city: z.ZodString;
|
|
28
|
+
state: z.ZodNativeEnum<typeof import("./common/us-data").USState>;
|
|
29
|
+
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
30
|
+
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
addressLine1: string;
|
|
33
|
+
city: string;
|
|
34
|
+
state: import("./common/us-data").USState;
|
|
35
|
+
zip: string;
|
|
36
|
+
country: "USA";
|
|
37
|
+
addressLine2?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
addressLine1: string;
|
|
40
|
+
city: string;
|
|
41
|
+
state: import("./common/us-data").USState;
|
|
42
|
+
zip: string;
|
|
43
|
+
addressLine2?: string | undefined;
|
|
44
|
+
country?: "USA" | undefined;
|
|
45
|
+
}>]>;
|
|
3
46
|
firstName: z.ZodString;
|
|
4
47
|
lastName: z.ZodString;
|
|
5
48
|
dob: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -53,49 +96,6 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
53
96
|
} | undefined;
|
|
54
97
|
assigner?: string | undefined;
|
|
55
98
|
}>, "many">>;
|
|
56
|
-
address: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
57
|
-
addressLine1: z.ZodString;
|
|
58
|
-
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
59
|
-
city: z.ZodString;
|
|
60
|
-
state: z.ZodNativeEnum<typeof import("./common/us-data").USState>;
|
|
61
|
-
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
62
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
addressLine1: string;
|
|
65
|
-
city: string;
|
|
66
|
-
state: import("./common/us-data").USState;
|
|
67
|
-
zip: string;
|
|
68
|
-
country: "USA";
|
|
69
|
-
addressLine2?: string | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
addressLine1: string;
|
|
72
|
-
city: string;
|
|
73
|
-
state: import("./common/us-data").USState;
|
|
74
|
-
zip: string;
|
|
75
|
-
addressLine2?: string | undefined;
|
|
76
|
-
country?: "USA" | undefined;
|
|
77
|
-
}>, "many">, z.ZodObject<{
|
|
78
|
-
addressLine1: z.ZodString;
|
|
79
|
-
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
80
|
-
city: z.ZodString;
|
|
81
|
-
state: z.ZodNativeEnum<typeof import("./common/us-data").USState>;
|
|
82
|
-
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
83
|
-
country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
|
|
84
|
-
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
addressLine1: string;
|
|
86
|
-
city: string;
|
|
87
|
-
state: import("./common/us-data").USState;
|
|
88
|
-
zip: string;
|
|
89
|
-
country: "USA";
|
|
90
|
-
addressLine2?: string | undefined;
|
|
91
|
-
}, {
|
|
92
|
-
addressLine1: string;
|
|
93
|
-
city: string;
|
|
94
|
-
state: import("./common/us-data").USState;
|
|
95
|
-
zip: string;
|
|
96
|
-
addressLine2?: string | undefined;
|
|
97
|
-
country?: "USA" | undefined;
|
|
98
|
-
}>]>;
|
|
99
99
|
contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
100
100
|
phone: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>]>;
|
|
101
101
|
email: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>]>;
|
|
@@ -127,6 +127,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
127
127
|
phone?: string | undefined;
|
|
128
128
|
email?: string | undefined;
|
|
129
129
|
}>>]>;
|
|
130
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
130
131
|
}, "strip", z.ZodTypeAny, {
|
|
131
132
|
address: ({
|
|
132
133
|
addressLine1: string;
|
|
@@ -181,6 +182,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
181
182
|
phone?: string | undefined;
|
|
182
183
|
email?: string | undefined;
|
|
183
184
|
}[] | undefined;
|
|
185
|
+
externalId?: string | undefined;
|
|
184
186
|
}, {
|
|
185
187
|
address: ({
|
|
186
188
|
addressLine1: string;
|
|
@@ -235,6 +237,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
235
237
|
phone?: string | undefined;
|
|
236
238
|
email?: string | undefined;
|
|
237
239
|
}[] | undefined;
|
|
240
|
+
externalId?: string | undefined;
|
|
238
241
|
}>;
|
|
239
242
|
export type PatientCreate = z.infer<typeof patientCreateSchema>;
|
|
240
243
|
export declare const patientUpdateSchema: z.ZodObject<{
|
|
@@ -365,6 +368,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
365
368
|
phone?: string | undefined;
|
|
366
369
|
email?: string | undefined;
|
|
367
370
|
}>>]>;
|
|
371
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
368
372
|
id: z.ZodString;
|
|
369
373
|
eTag: z.ZodOptional<z.ZodString>;
|
|
370
374
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -422,6 +426,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
422
426
|
phone?: string | undefined;
|
|
423
427
|
email?: string | undefined;
|
|
424
428
|
}[] | undefined;
|
|
429
|
+
externalId?: string | undefined;
|
|
425
430
|
eTag?: string | undefined;
|
|
426
431
|
}, {
|
|
427
432
|
id: string;
|
|
@@ -478,6 +483,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
478
483
|
phone?: string | undefined;
|
|
479
484
|
email?: string | undefined;
|
|
480
485
|
}[] | undefined;
|
|
486
|
+
externalId?: string | undefined;
|
|
481
487
|
eTag?: string | undefined;
|
|
482
488
|
}>;
|
|
483
489
|
export type PatientUpdate = z.infer<typeof patientUpdateSchema>;
|
|
@@ -611,8 +617,8 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
611
617
|
phone?: string | undefined;
|
|
612
618
|
email?: string | undefined;
|
|
613
619
|
}>>]>;
|
|
614
|
-
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
615
620
|
externalId: z.ZodOptional<z.ZodString>;
|
|
621
|
+
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
616
622
|
}, "strip", z.ZodTypeAny, {
|
|
617
623
|
id: string;
|
|
618
624
|
address: ({
|
|
@@ -862,8 +868,8 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
862
868
|
phone?: string | undefined;
|
|
863
869
|
email?: string | undefined;
|
|
864
870
|
}>>]>;
|
|
865
|
-
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
866
871
|
externalId: z.ZodOptional<z.ZodString>;
|
|
872
|
+
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
867
873
|
}, "strip", z.ZodTypeAny, {
|
|
868
874
|
id: string;
|
|
869
875
|
address: ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,kDAAgD,CAAC;AAC/E,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -4,11 +4,12 @@ exports.queryProgressSchema = exports.queryStatusSchema = exports.patientListSch
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_update_1 = require("./common/base-update");
|
|
6
6
|
const demographics_1 = require("./demographics");
|
|
7
|
-
exports.patientCreateSchema = demographics_1.demographicsSchema
|
|
7
|
+
exports.patientCreateSchema = demographics_1.demographicsSchema.extend({
|
|
8
|
+
externalId: zod_1.z.string().optional(),
|
|
9
|
+
});
|
|
8
10
|
exports.patientUpdateSchema = exports.patientCreateSchema.merge(base_update_1.baseUpdateSchema);
|
|
9
11
|
exports.patientSchema = exports.patientUpdateSchema.extend({
|
|
10
12
|
facilityIds: zod_1.z.array(zod_1.z.string()),
|
|
11
|
-
externalId: zod_1.z.string().optional(),
|
|
12
13
|
});
|
|
13
14
|
exports.patientListSchema = zod_1.z.object({
|
|
14
15
|
patients: zod_1.z.array(exports.patientSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;AAEvC,QAAA,mBAAmB,GAAG,iCAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../src/medical/models/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,sDAAwD;AACxD,iDAAoD;AAEvC,QAAA,mBAAmB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,2BAAmB,CAAC,KAAK,CAAC,8BAAgB,CAAC,CAAC;AAGlE,QAAA,aAAa,GAAG,2BAAmB,CAAC,MAAM,CAAC;IACtD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC;CACjC,CAAC,CAAC;AAEU,QAAA,iBAAiB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGlE,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,yBAAiB;CAC1B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/api-sdk",
|
|
3
|
-
"version": "7.5.4-alpha.
|
|
3
|
+
"version": "7.5.4-alpha.1",
|
|
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/",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"ts-jest": "29.1.1",
|
|
75
75
|
"typescript": "^4.9.5"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "060358a76ad187e9bdc70e4500c94945d35ac7fc"
|
|
78
78
|
}
|