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