@metriport/commonwell-sdk 3.0.0 → 3.0.2
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/lib/client/commonwell-api.d.ts +48 -0
- package/lib/client/commonwell-api.js +3 -0
- package/lib/client/commonwell-api.js.map +1 -0
- package/lib/client/commonwell.d.ts +15 -9
- package/lib/client/commonwell.js +41 -18
- package/lib/client/commonwell.js.map +1 -1
- package/lib/common/fileDownload.d.ts +2 -2
- package/lib/common/fileDownload.js.map +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js.map +1 -1
- package/lib/models/address.d.ts +6 -6
- package/lib/models/certificates.d.ts +13 -13
- package/lib/models/contact.d.ts +4 -4
- package/lib/models/demographics.d.ts +48 -49
- package/lib/models/document.d.ts +1115 -551
- package/lib/models/document.js +9 -0
- package/lib/models/document.js.map +1 -1
- package/lib/models/facility.d.ts +16 -16
- package/lib/models/human-name.d.ts +8 -8
- package/lib/models/identifier.d.ts +2 -3
- package/lib/models/link.d.ts +116 -117
- package/lib/models/organization.d.ts +140 -140
- package/lib/models/patient.d.ts +1826 -4170
- package/lib/models/patient.js +9 -2
- package/lib/models/patient.js.map +1 -1
- package/lib/models/person.d.ts +1003 -449
- package/lib/models/person.js +6 -1
- package/lib/models/person.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,19 +11,18 @@ export declare const genderSchema: z.ZodObject<{
|
|
|
11
11
|
system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
code?: string;
|
|
14
|
-
system?: string;
|
|
15
14
|
display?: string;
|
|
15
|
+
system?: string;
|
|
16
16
|
}, {
|
|
17
17
|
code?: string;
|
|
18
|
-
system?: string;
|
|
19
18
|
display?: string;
|
|
19
|
+
system?: string;
|
|
20
20
|
}>;
|
|
21
21
|
export type Gender = z.infer<typeof genderSchema>;
|
|
22
22
|
export declare const demographicsSchema: z.ZodObject<{
|
|
23
|
-
identifier: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
23
|
+
identifier: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
24
|
system: z.ZodString;
|
|
25
25
|
key: z.ZodString;
|
|
26
|
-
}, {
|
|
27
26
|
use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
|
|
28
27
|
label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
28
|
period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -37,7 +36,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
37
36
|
end?: string;
|
|
38
37
|
}>>>;
|
|
39
38
|
assigner: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
40
|
-
}
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
40
|
system?: string;
|
|
42
41
|
key?: string;
|
|
43
42
|
use?: string;
|
|
@@ -76,27 +75,27 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
76
75
|
end?: string;
|
|
77
76
|
}>>>;
|
|
78
77
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
text?: string;
|
|
80
78
|
use?: string;
|
|
81
|
-
|
|
82
|
-
start?: string;
|
|
83
|
-
end?: string;
|
|
84
|
-
};
|
|
79
|
+
text?: string;
|
|
85
80
|
family?: string[];
|
|
86
81
|
given?: string[];
|
|
87
82
|
prefix?: string;
|
|
88
83
|
suffix?: string;
|
|
89
|
-
}, {
|
|
90
|
-
text?: string;
|
|
91
|
-
use?: string;
|
|
92
84
|
period?: {
|
|
93
85
|
start?: string;
|
|
94
86
|
end?: string;
|
|
95
87
|
};
|
|
88
|
+
}, {
|
|
89
|
+
use?: string;
|
|
90
|
+
text?: string;
|
|
96
91
|
family?: string[];
|
|
97
92
|
given?: string[];
|
|
98
93
|
prefix?: string;
|
|
99
94
|
suffix?: string;
|
|
95
|
+
period?: {
|
|
96
|
+
start?: string;
|
|
97
|
+
end?: string;
|
|
98
|
+
};
|
|
100
99
|
}>, "many">;
|
|
101
100
|
telecom: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
101
|
use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
|
|
@@ -113,17 +112,17 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
113
112
|
end?: string;
|
|
114
113
|
}>>>;
|
|
115
114
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
value?: string;
|
|
117
|
-
system?: string;
|
|
118
115
|
use?: string;
|
|
116
|
+
system?: string;
|
|
117
|
+
value?: string;
|
|
119
118
|
period?: {
|
|
120
119
|
start?: string;
|
|
121
120
|
end?: string;
|
|
122
121
|
};
|
|
123
122
|
}, {
|
|
124
|
-
value?: string;
|
|
125
|
-
system?: string;
|
|
126
123
|
use?: string;
|
|
124
|
+
system?: string;
|
|
125
|
+
value?: string;
|
|
127
126
|
period?: {
|
|
128
127
|
start?: string;
|
|
129
128
|
end?: string;
|
|
@@ -135,12 +134,12 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
135
134
|
system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
136
135
|
}, "strip", z.ZodTypeAny, {
|
|
137
136
|
code?: string;
|
|
138
|
-
system?: string;
|
|
139
137
|
display?: string;
|
|
138
|
+
system?: string;
|
|
140
139
|
}, {
|
|
141
140
|
code?: string;
|
|
142
|
-
system?: string;
|
|
143
141
|
display?: string;
|
|
142
|
+
system?: string;
|
|
144
143
|
}>;
|
|
145
144
|
birthDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
146
145
|
address: z.ZodArray<z.ZodObject<{
|
|
@@ -162,26 +161,26 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
162
161
|
}>>>;
|
|
163
162
|
}, "strip", z.ZodTypeAny, {
|
|
164
163
|
use?: string;
|
|
165
|
-
period?: {
|
|
166
|
-
start?: string;
|
|
167
|
-
end?: string;
|
|
168
|
-
};
|
|
169
164
|
line?: string[];
|
|
170
165
|
city?: string;
|
|
171
166
|
state?: string;
|
|
172
167
|
zip?: string;
|
|
173
168
|
country?: string;
|
|
174
|
-
}, {
|
|
175
|
-
use?: string;
|
|
176
169
|
period?: {
|
|
177
170
|
start?: string;
|
|
178
171
|
end?: string;
|
|
179
172
|
};
|
|
173
|
+
}, {
|
|
174
|
+
use?: string;
|
|
180
175
|
line?: string[];
|
|
181
176
|
city?: string;
|
|
182
177
|
state?: string;
|
|
183
178
|
zip?: string;
|
|
184
179
|
country?: string;
|
|
180
|
+
period?: {
|
|
181
|
+
start?: string;
|
|
182
|
+
end?: string;
|
|
183
|
+
};
|
|
185
184
|
}>, "many">;
|
|
186
185
|
picture: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
187
186
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -197,21 +196,21 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
197
196
|
assigner?: string;
|
|
198
197
|
}[];
|
|
199
198
|
name?: {
|
|
200
|
-
text?: string;
|
|
201
199
|
use?: string;
|
|
202
|
-
|
|
203
|
-
start?: string;
|
|
204
|
-
end?: string;
|
|
205
|
-
};
|
|
200
|
+
text?: string;
|
|
206
201
|
family?: string[];
|
|
207
202
|
given?: string[];
|
|
208
203
|
prefix?: string;
|
|
209
204
|
suffix?: string;
|
|
205
|
+
period?: {
|
|
206
|
+
start?: string;
|
|
207
|
+
end?: string;
|
|
208
|
+
};
|
|
210
209
|
}[];
|
|
211
210
|
telecom?: {
|
|
212
|
-
value?: string;
|
|
213
|
-
system?: string;
|
|
214
211
|
use?: string;
|
|
212
|
+
system?: string;
|
|
213
|
+
value?: string;
|
|
215
214
|
period?: {
|
|
216
215
|
start?: string;
|
|
217
216
|
end?: string;
|
|
@@ -219,21 +218,21 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
219
218
|
}[];
|
|
220
219
|
gender?: {
|
|
221
220
|
code?: string;
|
|
222
|
-
system?: string;
|
|
223
221
|
display?: string;
|
|
222
|
+
system?: string;
|
|
224
223
|
};
|
|
225
224
|
birthDate?: string;
|
|
226
225
|
address?: {
|
|
227
226
|
use?: string;
|
|
228
|
-
period?: {
|
|
229
|
-
start?: string;
|
|
230
|
-
end?: string;
|
|
231
|
-
};
|
|
232
227
|
line?: string[];
|
|
233
228
|
city?: string;
|
|
234
229
|
state?: string;
|
|
235
230
|
zip?: string;
|
|
236
231
|
country?: string;
|
|
232
|
+
period?: {
|
|
233
|
+
start?: string;
|
|
234
|
+
end?: string;
|
|
235
|
+
};
|
|
237
236
|
}[];
|
|
238
237
|
picture?: any;
|
|
239
238
|
}, {
|
|
@@ -249,21 +248,21 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
249
248
|
assigner?: string;
|
|
250
249
|
}[];
|
|
251
250
|
name?: {
|
|
252
|
-
text?: string;
|
|
253
251
|
use?: string;
|
|
254
|
-
|
|
255
|
-
start?: string;
|
|
256
|
-
end?: string;
|
|
257
|
-
};
|
|
252
|
+
text?: string;
|
|
258
253
|
family?: string[];
|
|
259
254
|
given?: string[];
|
|
260
255
|
prefix?: string;
|
|
261
256
|
suffix?: string;
|
|
257
|
+
period?: {
|
|
258
|
+
start?: string;
|
|
259
|
+
end?: string;
|
|
260
|
+
};
|
|
262
261
|
}[];
|
|
263
262
|
telecom?: {
|
|
264
|
-
value?: string;
|
|
265
|
-
system?: string;
|
|
266
263
|
use?: string;
|
|
264
|
+
system?: string;
|
|
265
|
+
value?: string;
|
|
267
266
|
period?: {
|
|
268
267
|
start?: string;
|
|
269
268
|
end?: string;
|
|
@@ -271,21 +270,21 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
271
270
|
}[];
|
|
272
271
|
gender?: {
|
|
273
272
|
code?: string;
|
|
274
|
-
system?: string;
|
|
275
273
|
display?: string;
|
|
274
|
+
system?: string;
|
|
276
275
|
};
|
|
277
276
|
birthDate?: string;
|
|
278
277
|
address?: {
|
|
279
278
|
use?: string;
|
|
280
|
-
period?: {
|
|
281
|
-
start?: string;
|
|
282
|
-
end?: string;
|
|
283
|
-
};
|
|
284
279
|
line?: string[];
|
|
285
280
|
city?: string;
|
|
286
281
|
state?: string;
|
|
287
282
|
zip?: string;
|
|
288
283
|
country?: string;
|
|
284
|
+
period?: {
|
|
285
|
+
start?: string;
|
|
286
|
+
end?: string;
|
|
287
|
+
};
|
|
289
288
|
}[];
|
|
290
289
|
picture?: any;
|
|
291
290
|
}>;
|