@metriport/commonwell-sdk 1.0.3 → 1.1.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/lib/client/commonwell.d.ts +32 -1
- package/lib/client/commonwell.js +233 -10
- package/lib/client/commonwell.js.map +1 -1
- package/lib/common/util.d.ts +3 -0
- package/lib/common/util.js +7 -1
- package/lib/common/util.js.map +1 -1
- package/lib/common/validate-npi.js +8 -8
- package/lib/common/validate-npi.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/models/address.js.map +1 -1
- package/lib/models/certificates.d.ts +156 -0
- package/lib/models/certificates.js +27 -0
- package/lib/models/certificates.js.map +1 -0
- package/lib/models/contact.js.map +1 -1
- package/lib/models/demographics.js.map +1 -1
- package/lib/models/facility.d.ts +75 -0
- package/lib/models/facility.js +11 -0
- package/lib/models/facility.js.map +1 -0
- package/lib/models/human-name.js.map +1 -1
- package/lib/models/iso-date.js +1 -3
- package/lib/models/iso-date.js.map +1 -1
- package/lib/models/link.d.ts +624 -1
- package/lib/models/link.js +33 -2
- package/lib/models/link.js.map +1 -1
- package/lib/models/organization.d.ts +751 -0
- package/lib/models/organization.js +83 -0
- package/lib/models/organization.js.map +1 -0
- package/lib/models/patient.d.ts +5953 -0
- package/lib/models/patient.js +41 -0
- package/lib/models/patient.js.map +1 -0
- package/lib/models/person.d.ts +352 -168
- package/lib/models/person.js +6 -1
- package/lib/models/person.js.map +1 -1
- package/package.json +4 -3
package/lib/models/link.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare enum LOLA {
|
|
3
|
+
level_0 = "0",
|
|
4
|
+
level_1 = "1",
|
|
5
|
+
level_2 = "2",
|
|
6
|
+
level_3 = "3",
|
|
7
|
+
level_4 = "4"
|
|
8
|
+
}
|
|
9
|
+
export declare const lolaSchema: z.ZodEnum<[string, ...string[]]>;
|
|
2
10
|
export declare const linkSchema: z.ZodObject<{
|
|
3
|
-
href: z.ZodString
|
|
11
|
+
href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4
12
|
templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
5
13
|
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
14
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -13,3 +21,618 @@ export declare const linkSchema: z.ZodObject<{
|
|
|
13
21
|
templated?: boolean;
|
|
14
22
|
}>;
|
|
15
23
|
export type Link = z.infer<typeof linkSchema>;
|
|
24
|
+
export declare const networkLinkSchema: z.ZodObject<{
|
|
25
|
+
_links: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
26
|
+
self: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
27
|
+
href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
29
|
+
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
type?: string;
|
|
32
|
+
href?: string;
|
|
33
|
+
templated?: boolean;
|
|
34
|
+
}, {
|
|
35
|
+
type?: string;
|
|
36
|
+
href?: string;
|
|
37
|
+
templated?: boolean;
|
|
38
|
+
}>>>;
|
|
39
|
+
upgrade: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
40
|
+
href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
41
|
+
templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
42
|
+
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
type?: string;
|
|
45
|
+
href?: string;
|
|
46
|
+
templated?: boolean;
|
|
47
|
+
}, {
|
|
48
|
+
type?: string;
|
|
49
|
+
href?: string;
|
|
50
|
+
templated?: boolean;
|
|
51
|
+
}>>>;
|
|
52
|
+
downgrade: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
53
|
+
href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
54
|
+
templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
55
|
+
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
type?: string;
|
|
58
|
+
href?: string;
|
|
59
|
+
templated?: boolean;
|
|
60
|
+
}, {
|
|
61
|
+
type?: string;
|
|
62
|
+
href?: string;
|
|
63
|
+
templated?: boolean;
|
|
64
|
+
}>>>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
upgrade?: {
|
|
67
|
+
type?: string;
|
|
68
|
+
href?: string;
|
|
69
|
+
templated?: boolean;
|
|
70
|
+
};
|
|
71
|
+
self?: {
|
|
72
|
+
type?: string;
|
|
73
|
+
href?: string;
|
|
74
|
+
templated?: boolean;
|
|
75
|
+
};
|
|
76
|
+
downgrade?: {
|
|
77
|
+
type?: string;
|
|
78
|
+
href?: string;
|
|
79
|
+
templated?: boolean;
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
upgrade?: {
|
|
83
|
+
type?: string;
|
|
84
|
+
href?: string;
|
|
85
|
+
templated?: boolean;
|
|
86
|
+
};
|
|
87
|
+
self?: {
|
|
88
|
+
type?: string;
|
|
89
|
+
href?: string;
|
|
90
|
+
templated?: boolean;
|
|
91
|
+
};
|
|
92
|
+
downgrade?: {
|
|
93
|
+
type?: string;
|
|
94
|
+
href?: string;
|
|
95
|
+
templated?: boolean;
|
|
96
|
+
};
|
|
97
|
+
}>>>;
|
|
98
|
+
assuranceLevel: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
|
|
99
|
+
patient: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
100
|
+
details: z.ZodObject<{
|
|
101
|
+
identifier: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
|
|
103
|
+
label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
104
|
+
system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
105
|
+
key: z.ZodString;
|
|
106
|
+
period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
107
|
+
start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
108
|
+
end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
end?: string;
|
|
111
|
+
start?: string;
|
|
112
|
+
}, {
|
|
113
|
+
end?: string;
|
|
114
|
+
start?: string;
|
|
115
|
+
}>>>;
|
|
116
|
+
assigner: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
key?: string;
|
|
119
|
+
use?: string;
|
|
120
|
+
label?: string;
|
|
121
|
+
system?: string;
|
|
122
|
+
period?: {
|
|
123
|
+
end?: string;
|
|
124
|
+
start?: string;
|
|
125
|
+
};
|
|
126
|
+
assigner?: string;
|
|
127
|
+
}, {
|
|
128
|
+
key?: string;
|
|
129
|
+
use?: string;
|
|
130
|
+
label?: string;
|
|
131
|
+
system?: string;
|
|
132
|
+
period?: {
|
|
133
|
+
end?: string;
|
|
134
|
+
start?: string;
|
|
135
|
+
};
|
|
136
|
+
assigner?: string;
|
|
137
|
+
}>, "many">>>;
|
|
138
|
+
name: z.ZodArray<z.ZodObject<{
|
|
139
|
+
use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
|
|
140
|
+
text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
141
|
+
family: z.ZodArray<z.ZodString, "many">;
|
|
142
|
+
given: z.ZodArray<z.ZodString, "many">;
|
|
143
|
+
prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
144
|
+
suffix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
145
|
+
period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
146
|
+
start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
147
|
+
end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
end?: string;
|
|
150
|
+
start?: string;
|
|
151
|
+
}, {
|
|
152
|
+
end?: string;
|
|
153
|
+
start?: string;
|
|
154
|
+
}>>>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
family?: string[];
|
|
157
|
+
use?: string;
|
|
158
|
+
period?: {
|
|
159
|
+
end?: string;
|
|
160
|
+
start?: string;
|
|
161
|
+
};
|
|
162
|
+
text?: string;
|
|
163
|
+
given?: string[];
|
|
164
|
+
prefix?: string;
|
|
165
|
+
suffix?: string;
|
|
166
|
+
}, {
|
|
167
|
+
family?: string[];
|
|
168
|
+
use?: string;
|
|
169
|
+
period?: {
|
|
170
|
+
end?: string;
|
|
171
|
+
start?: string;
|
|
172
|
+
};
|
|
173
|
+
text?: string;
|
|
174
|
+
given?: string[];
|
|
175
|
+
prefix?: string;
|
|
176
|
+
suffix?: string;
|
|
177
|
+
}>, "many">;
|
|
178
|
+
telecom: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
179
|
+
use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
|
|
180
|
+
system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
181
|
+
value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
182
|
+
period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
183
|
+
start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
184
|
+
end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
end?: string;
|
|
187
|
+
start?: string;
|
|
188
|
+
}, {
|
|
189
|
+
end?: string;
|
|
190
|
+
start?: string;
|
|
191
|
+
}>>>;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
value?: string;
|
|
194
|
+
use?: string;
|
|
195
|
+
system?: string;
|
|
196
|
+
period?: {
|
|
197
|
+
end?: string;
|
|
198
|
+
start?: string;
|
|
199
|
+
};
|
|
200
|
+
}, {
|
|
201
|
+
value?: string;
|
|
202
|
+
use?: string;
|
|
203
|
+
system?: string;
|
|
204
|
+
period?: {
|
|
205
|
+
end?: string;
|
|
206
|
+
start?: string;
|
|
207
|
+
};
|
|
208
|
+
}>, "many">>>;
|
|
209
|
+
gender: z.ZodObject<{
|
|
210
|
+
code: z.ZodEnum<[string, ...string[]]>;
|
|
211
|
+
display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
212
|
+
system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
code?: string;
|
|
215
|
+
system?: string;
|
|
216
|
+
display?: string;
|
|
217
|
+
}, {
|
|
218
|
+
code?: string;
|
|
219
|
+
system?: string;
|
|
220
|
+
display?: string;
|
|
221
|
+
}>;
|
|
222
|
+
birthDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
223
|
+
address: z.ZodArray<z.ZodObject<{
|
|
224
|
+
use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
|
|
225
|
+
line: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
226
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
227
|
+
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
228
|
+
zip: z.ZodString;
|
|
229
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
230
|
+
period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
231
|
+
start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
232
|
+
end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
end?: string;
|
|
235
|
+
start?: string;
|
|
236
|
+
}, {
|
|
237
|
+
end?: string;
|
|
238
|
+
start?: string;
|
|
239
|
+
}>>>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
line?: string[];
|
|
242
|
+
use?: string;
|
|
243
|
+
period?: {
|
|
244
|
+
end?: string;
|
|
245
|
+
start?: string;
|
|
246
|
+
};
|
|
247
|
+
city?: string;
|
|
248
|
+
state?: string;
|
|
249
|
+
zip?: string;
|
|
250
|
+
country?: string;
|
|
251
|
+
}, {
|
|
252
|
+
line?: string[];
|
|
253
|
+
use?: string;
|
|
254
|
+
period?: {
|
|
255
|
+
end?: string;
|
|
256
|
+
start?: string;
|
|
257
|
+
};
|
|
258
|
+
city?: string;
|
|
259
|
+
state?: string;
|
|
260
|
+
zip?: string;
|
|
261
|
+
country?: string;
|
|
262
|
+
}>, "many">;
|
|
263
|
+
picture: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
name?: {
|
|
266
|
+
family?: string[];
|
|
267
|
+
use?: string;
|
|
268
|
+
period?: {
|
|
269
|
+
end?: string;
|
|
270
|
+
start?: string;
|
|
271
|
+
};
|
|
272
|
+
text?: string;
|
|
273
|
+
given?: string[];
|
|
274
|
+
prefix?: string;
|
|
275
|
+
suffix?: string;
|
|
276
|
+
}[];
|
|
277
|
+
identifier?: {
|
|
278
|
+
key?: string;
|
|
279
|
+
use?: string;
|
|
280
|
+
label?: string;
|
|
281
|
+
system?: string;
|
|
282
|
+
period?: {
|
|
283
|
+
end?: string;
|
|
284
|
+
start?: string;
|
|
285
|
+
};
|
|
286
|
+
assigner?: string;
|
|
287
|
+
}[];
|
|
288
|
+
telecom?: {
|
|
289
|
+
value?: string;
|
|
290
|
+
use?: string;
|
|
291
|
+
system?: string;
|
|
292
|
+
period?: {
|
|
293
|
+
end?: string;
|
|
294
|
+
start?: string;
|
|
295
|
+
};
|
|
296
|
+
}[];
|
|
297
|
+
gender?: {
|
|
298
|
+
code?: string;
|
|
299
|
+
system?: string;
|
|
300
|
+
display?: string;
|
|
301
|
+
};
|
|
302
|
+
birthDate?: string;
|
|
303
|
+
address?: {
|
|
304
|
+
line?: string[];
|
|
305
|
+
use?: string;
|
|
306
|
+
period?: {
|
|
307
|
+
end?: string;
|
|
308
|
+
start?: string;
|
|
309
|
+
};
|
|
310
|
+
city?: string;
|
|
311
|
+
state?: string;
|
|
312
|
+
zip?: string;
|
|
313
|
+
country?: string;
|
|
314
|
+
}[];
|
|
315
|
+
picture?: any;
|
|
316
|
+
}, {
|
|
317
|
+
name?: {
|
|
318
|
+
family?: string[];
|
|
319
|
+
use?: string;
|
|
320
|
+
period?: {
|
|
321
|
+
end?: string;
|
|
322
|
+
start?: string;
|
|
323
|
+
};
|
|
324
|
+
text?: string;
|
|
325
|
+
given?: string[];
|
|
326
|
+
prefix?: string;
|
|
327
|
+
suffix?: string;
|
|
328
|
+
}[];
|
|
329
|
+
identifier?: {
|
|
330
|
+
key?: string;
|
|
331
|
+
use?: string;
|
|
332
|
+
label?: string;
|
|
333
|
+
system?: string;
|
|
334
|
+
period?: {
|
|
335
|
+
end?: string;
|
|
336
|
+
start?: string;
|
|
337
|
+
};
|
|
338
|
+
assigner?: string;
|
|
339
|
+
}[];
|
|
340
|
+
telecom?: {
|
|
341
|
+
value?: string;
|
|
342
|
+
use?: string;
|
|
343
|
+
system?: string;
|
|
344
|
+
period?: {
|
|
345
|
+
end?: string;
|
|
346
|
+
start?: string;
|
|
347
|
+
};
|
|
348
|
+
}[];
|
|
349
|
+
gender?: {
|
|
350
|
+
code?: string;
|
|
351
|
+
system?: string;
|
|
352
|
+
display?: string;
|
|
353
|
+
};
|
|
354
|
+
birthDate?: string;
|
|
355
|
+
address?: {
|
|
356
|
+
line?: string[];
|
|
357
|
+
use?: string;
|
|
358
|
+
period?: {
|
|
359
|
+
end?: string;
|
|
360
|
+
start?: string;
|
|
361
|
+
};
|
|
362
|
+
city?: string;
|
|
363
|
+
state?: string;
|
|
364
|
+
zip?: string;
|
|
365
|
+
country?: string;
|
|
366
|
+
}[];
|
|
367
|
+
picture?: any;
|
|
368
|
+
}>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
details?: {
|
|
371
|
+
name?: {
|
|
372
|
+
family?: string[];
|
|
373
|
+
use?: string;
|
|
374
|
+
period?: {
|
|
375
|
+
end?: string;
|
|
376
|
+
start?: string;
|
|
377
|
+
};
|
|
378
|
+
text?: string;
|
|
379
|
+
given?: string[];
|
|
380
|
+
prefix?: string;
|
|
381
|
+
suffix?: string;
|
|
382
|
+
}[];
|
|
383
|
+
identifier?: {
|
|
384
|
+
key?: string;
|
|
385
|
+
use?: string;
|
|
386
|
+
label?: string;
|
|
387
|
+
system?: string;
|
|
388
|
+
period?: {
|
|
389
|
+
end?: string;
|
|
390
|
+
start?: string;
|
|
391
|
+
};
|
|
392
|
+
assigner?: string;
|
|
393
|
+
}[];
|
|
394
|
+
telecom?: {
|
|
395
|
+
value?: string;
|
|
396
|
+
use?: string;
|
|
397
|
+
system?: string;
|
|
398
|
+
period?: {
|
|
399
|
+
end?: string;
|
|
400
|
+
start?: string;
|
|
401
|
+
};
|
|
402
|
+
}[];
|
|
403
|
+
gender?: {
|
|
404
|
+
code?: string;
|
|
405
|
+
system?: string;
|
|
406
|
+
display?: string;
|
|
407
|
+
};
|
|
408
|
+
birthDate?: string;
|
|
409
|
+
address?: {
|
|
410
|
+
line?: string[];
|
|
411
|
+
use?: string;
|
|
412
|
+
period?: {
|
|
413
|
+
end?: string;
|
|
414
|
+
start?: string;
|
|
415
|
+
};
|
|
416
|
+
city?: string;
|
|
417
|
+
state?: string;
|
|
418
|
+
zip?: string;
|
|
419
|
+
country?: string;
|
|
420
|
+
}[];
|
|
421
|
+
picture?: any;
|
|
422
|
+
};
|
|
423
|
+
}, {
|
|
424
|
+
details?: {
|
|
425
|
+
name?: {
|
|
426
|
+
family?: string[];
|
|
427
|
+
use?: string;
|
|
428
|
+
period?: {
|
|
429
|
+
end?: string;
|
|
430
|
+
start?: string;
|
|
431
|
+
};
|
|
432
|
+
text?: string;
|
|
433
|
+
given?: string[];
|
|
434
|
+
prefix?: string;
|
|
435
|
+
suffix?: string;
|
|
436
|
+
}[];
|
|
437
|
+
identifier?: {
|
|
438
|
+
key?: string;
|
|
439
|
+
use?: string;
|
|
440
|
+
label?: string;
|
|
441
|
+
system?: string;
|
|
442
|
+
period?: {
|
|
443
|
+
end?: string;
|
|
444
|
+
start?: string;
|
|
445
|
+
};
|
|
446
|
+
assigner?: string;
|
|
447
|
+
}[];
|
|
448
|
+
telecom?: {
|
|
449
|
+
value?: string;
|
|
450
|
+
use?: string;
|
|
451
|
+
system?: string;
|
|
452
|
+
period?: {
|
|
453
|
+
end?: string;
|
|
454
|
+
start?: string;
|
|
455
|
+
};
|
|
456
|
+
}[];
|
|
457
|
+
gender?: {
|
|
458
|
+
code?: string;
|
|
459
|
+
system?: string;
|
|
460
|
+
display?: string;
|
|
461
|
+
};
|
|
462
|
+
birthDate?: string;
|
|
463
|
+
address?: {
|
|
464
|
+
line?: string[];
|
|
465
|
+
use?: string;
|
|
466
|
+
period?: {
|
|
467
|
+
end?: string;
|
|
468
|
+
start?: string;
|
|
469
|
+
};
|
|
470
|
+
city?: string;
|
|
471
|
+
state?: string;
|
|
472
|
+
zip?: string;
|
|
473
|
+
country?: string;
|
|
474
|
+
}[];
|
|
475
|
+
picture?: any;
|
|
476
|
+
};
|
|
477
|
+
}>>>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
_links?: {
|
|
480
|
+
upgrade?: {
|
|
481
|
+
type?: string;
|
|
482
|
+
href?: string;
|
|
483
|
+
templated?: boolean;
|
|
484
|
+
};
|
|
485
|
+
self?: {
|
|
486
|
+
type?: string;
|
|
487
|
+
href?: string;
|
|
488
|
+
templated?: boolean;
|
|
489
|
+
};
|
|
490
|
+
downgrade?: {
|
|
491
|
+
type?: string;
|
|
492
|
+
href?: string;
|
|
493
|
+
templated?: boolean;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
assuranceLevel?: string;
|
|
497
|
+
patient?: {
|
|
498
|
+
details?: {
|
|
499
|
+
name?: {
|
|
500
|
+
family?: string[];
|
|
501
|
+
use?: string;
|
|
502
|
+
period?: {
|
|
503
|
+
end?: string;
|
|
504
|
+
start?: string;
|
|
505
|
+
};
|
|
506
|
+
text?: string;
|
|
507
|
+
given?: string[];
|
|
508
|
+
prefix?: string;
|
|
509
|
+
suffix?: string;
|
|
510
|
+
}[];
|
|
511
|
+
identifier?: {
|
|
512
|
+
key?: string;
|
|
513
|
+
use?: string;
|
|
514
|
+
label?: string;
|
|
515
|
+
system?: string;
|
|
516
|
+
period?: {
|
|
517
|
+
end?: string;
|
|
518
|
+
start?: string;
|
|
519
|
+
};
|
|
520
|
+
assigner?: string;
|
|
521
|
+
}[];
|
|
522
|
+
telecom?: {
|
|
523
|
+
value?: string;
|
|
524
|
+
use?: string;
|
|
525
|
+
system?: string;
|
|
526
|
+
period?: {
|
|
527
|
+
end?: string;
|
|
528
|
+
start?: string;
|
|
529
|
+
};
|
|
530
|
+
}[];
|
|
531
|
+
gender?: {
|
|
532
|
+
code?: string;
|
|
533
|
+
system?: string;
|
|
534
|
+
display?: string;
|
|
535
|
+
};
|
|
536
|
+
birthDate?: string;
|
|
537
|
+
address?: {
|
|
538
|
+
line?: string[];
|
|
539
|
+
use?: string;
|
|
540
|
+
period?: {
|
|
541
|
+
end?: string;
|
|
542
|
+
start?: string;
|
|
543
|
+
};
|
|
544
|
+
city?: string;
|
|
545
|
+
state?: string;
|
|
546
|
+
zip?: string;
|
|
547
|
+
country?: string;
|
|
548
|
+
}[];
|
|
549
|
+
picture?: any;
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
}, {
|
|
553
|
+
_links?: {
|
|
554
|
+
upgrade?: {
|
|
555
|
+
type?: string;
|
|
556
|
+
href?: string;
|
|
557
|
+
templated?: boolean;
|
|
558
|
+
};
|
|
559
|
+
self?: {
|
|
560
|
+
type?: string;
|
|
561
|
+
href?: string;
|
|
562
|
+
templated?: boolean;
|
|
563
|
+
};
|
|
564
|
+
downgrade?: {
|
|
565
|
+
type?: string;
|
|
566
|
+
href?: string;
|
|
567
|
+
templated?: boolean;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
assuranceLevel?: string;
|
|
571
|
+
patient?: {
|
|
572
|
+
details?: {
|
|
573
|
+
name?: {
|
|
574
|
+
family?: string[];
|
|
575
|
+
use?: string;
|
|
576
|
+
period?: {
|
|
577
|
+
end?: string;
|
|
578
|
+
start?: string;
|
|
579
|
+
};
|
|
580
|
+
text?: string;
|
|
581
|
+
given?: string[];
|
|
582
|
+
prefix?: string;
|
|
583
|
+
suffix?: string;
|
|
584
|
+
}[];
|
|
585
|
+
identifier?: {
|
|
586
|
+
key?: string;
|
|
587
|
+
use?: string;
|
|
588
|
+
label?: string;
|
|
589
|
+
system?: string;
|
|
590
|
+
period?: {
|
|
591
|
+
end?: string;
|
|
592
|
+
start?: string;
|
|
593
|
+
};
|
|
594
|
+
assigner?: string;
|
|
595
|
+
}[];
|
|
596
|
+
telecom?: {
|
|
597
|
+
value?: string;
|
|
598
|
+
use?: string;
|
|
599
|
+
system?: string;
|
|
600
|
+
period?: {
|
|
601
|
+
end?: string;
|
|
602
|
+
start?: string;
|
|
603
|
+
};
|
|
604
|
+
}[];
|
|
605
|
+
gender?: {
|
|
606
|
+
code?: string;
|
|
607
|
+
system?: string;
|
|
608
|
+
display?: string;
|
|
609
|
+
};
|
|
610
|
+
birthDate?: string;
|
|
611
|
+
address?: {
|
|
612
|
+
line?: string[];
|
|
613
|
+
use?: string;
|
|
614
|
+
period?: {
|
|
615
|
+
end?: string;
|
|
616
|
+
start?: string;
|
|
617
|
+
};
|
|
618
|
+
city?: string;
|
|
619
|
+
state?: string;
|
|
620
|
+
zip?: string;
|
|
621
|
+
country?: string;
|
|
622
|
+
}[];
|
|
623
|
+
picture?: any;
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
}>;
|
|
627
|
+
export type NetworkLink = z.infer<typeof networkLinkSchema>;
|
|
628
|
+
export declare const patientLinkProxySchema: z.ZodObject<{
|
|
629
|
+
relationship: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
630
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
631
|
+
}, "strip", z.ZodTypeAny, {
|
|
632
|
+
name?: string;
|
|
633
|
+
relationship?: string;
|
|
634
|
+
}, {
|
|
635
|
+
name?: string;
|
|
636
|
+
relationship?: string;
|
|
637
|
+
}>;
|
|
638
|
+
export type PatientLinkProxy = z.infer<typeof patientLinkProxySchema>;
|
package/lib/models/link.js
CHANGED
|
@@ -1,10 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.linkSchema = void 0;
|
|
3
|
+
exports.patientLinkProxySchema = exports.networkLinkSchema = exports.linkSchema = exports.lolaSchema = exports.LOLA = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const demographics_1 = require("./demographics");
|
|
6
|
+
var LOLA;
|
|
7
|
+
(function (LOLA) {
|
|
8
|
+
LOLA["level_0"] = "0";
|
|
9
|
+
LOLA["level_1"] = "1";
|
|
10
|
+
LOLA["level_2"] = "2";
|
|
11
|
+
LOLA["level_3"] = "3";
|
|
12
|
+
LOLA["level_4"] = "4";
|
|
13
|
+
})(LOLA = exports.LOLA || (exports.LOLA = {}));
|
|
14
|
+
exports.lolaSchema = zod_1.z.enum(Object.values(LOLA));
|
|
5
15
|
exports.linkSchema = zod_1.z.object({
|
|
6
|
-
href: zod_1.z.string(),
|
|
16
|
+
href: zod_1.z.string().optional().nullable(),
|
|
7
17
|
templated: zod_1.z.boolean().optional().nullable(),
|
|
8
18
|
type: zod_1.z.string().optional().nullable(),
|
|
9
19
|
});
|
|
20
|
+
exports.networkLinkSchema = zod_1.z.object({
|
|
21
|
+
_links: zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
self: exports.linkSchema.optional().nullable(),
|
|
24
|
+
upgrade: exports.linkSchema.optional().nullable(),
|
|
25
|
+
downgrade: exports.linkSchema.optional().nullable(),
|
|
26
|
+
})
|
|
27
|
+
.optional()
|
|
28
|
+
.nullable(),
|
|
29
|
+
assuranceLevel: exports.lolaSchema.optional().nullable(),
|
|
30
|
+
patient: zod_1.z
|
|
31
|
+
.object({
|
|
32
|
+
details: demographics_1.demographicsSchema,
|
|
33
|
+
})
|
|
34
|
+
.optional()
|
|
35
|
+
.nullable(),
|
|
36
|
+
});
|
|
37
|
+
exports.patientLinkProxySchema = zod_1.z.object({
|
|
38
|
+
relationship: zod_1.z.string().optional().nullable(),
|
|
39
|
+
name: zod_1.z.string().optional().nullable(),
|
|
40
|
+
});
|
|
10
41
|
//# sourceMappingURL=link.js.map
|
package/lib/models/link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/models/link.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/models/link.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAoD;AAEpD,IAAY,IAMX;AAND,WAAY,IAAI;IACd,qBAAa,CAAA;IACb,qBAAa,CAAA;IACb,qBAAa,CAAA;IACb,qBAAa,CAAA;IACb,qBAAa,CAAA;AACf,CAAC,EANW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAMf;AAEY,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAA0B,CAAC,CAAC;AAIlE,QAAA,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAIU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,IAAI,EAAE,kBAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,OAAO,EAAE,kBAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzC,SAAS,EAAE,kBAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC5C,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,cAAc,EAAE,kBAAU,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,OAAO,EAAE,OAAC;SACP,MAAM,CAAC;QACN,OAAO,EAAE,iCAAkB;KAC5B,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|