@metriport/commonwell-sdk 1.0.2 → 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.
Files changed (57) hide show
  1. package/lib/client/commonwell.d.ts +60 -0
  2. package/lib/client/commonwell.js +312 -0
  3. package/lib/client/commonwell.js.map +1 -0
  4. package/lib/common/util.d.ts +5 -0
  5. package/lib/common/util.js +15 -0
  6. package/lib/common/util.js.map +1 -0
  7. package/lib/common/validate-npi.js +8 -8
  8. package/lib/common/validate-npi.js.map +1 -1
  9. package/lib/index.d.ts +10 -0
  10. package/lib/index.js +20 -1
  11. package/lib/index.js.map +1 -1
  12. package/lib/models/address.d.ts +50 -0
  13. package/lib/models/address.js +24 -0
  14. package/lib/models/address.js.map +1 -0
  15. package/lib/models/certificates.d.ts +156 -0
  16. package/lib/models/certificates.js +27 -0
  17. package/lib/models/certificates.js.map +1 -0
  18. package/lib/models/contact.d.ts +50 -0
  19. package/lib/models/contact.js +31 -0
  20. package/lib/models/contact.js.map +1 -0
  21. package/lib/models/demographics.d.ts +291 -0
  22. package/lib/models/demographics.js +32 -0
  23. package/lib/models/demographics.js.map +1 -0
  24. package/lib/models/enrollment-summary.d.ts +18 -0
  25. package/lib/models/enrollment-summary.js +13 -0
  26. package/lib/models/enrollment-summary.js.map +1 -0
  27. package/lib/models/facility.d.ts +75 -0
  28. package/lib/models/facility.js +11 -0
  29. package/lib/models/facility.js.map +1 -0
  30. package/lib/models/human-name.d.ts +53 -0
  31. package/lib/models/human-name.js +27 -0
  32. package/lib/models/human-name.js.map +1 -0
  33. package/lib/models/identifier.d.ts +46 -0
  34. package/lib/models/identifier.js +22 -0
  35. package/lib/models/identifier.js.map +1 -0
  36. package/lib/models/iso-date.d.ts +3 -0
  37. package/lib/models/iso-date.js +7 -0
  38. package/lib/models/iso-date.js.map +1 -0
  39. package/lib/models/iso-datetime.d.ts +3 -0
  40. package/lib/models/iso-datetime.js +9 -0
  41. package/lib/models/iso-datetime.js.map +1 -0
  42. package/lib/models/link.d.ts +638 -0
  43. package/lib/models/link.js +41 -0
  44. package/lib/models/link.js.map +1 -0
  45. package/lib/models/organization.d.ts +751 -0
  46. package/lib/models/organization.js +83 -0
  47. package/lib/models/organization.js.map +1 -0
  48. package/lib/models/patient.d.ts +5953 -0
  49. package/lib/models/patient.js +41 -0
  50. package/lib/models/patient.js.map +1 -0
  51. package/lib/models/period.d.ts +12 -0
  52. package/lib/models/period.js +11 -0
  53. package/lib/models/period.js.map +1 -0
  54. package/lib/models/person.d.ts +1884 -0
  55. package/lib/models/person.js +31 -0
  56. package/lib/models/person.js.map +1 -0
  57. package/package.json +6 -4
@@ -0,0 +1,1884 @@
1
+ import { z } from "zod";
2
+ export declare const personLinksSchema: z.ZodObject<{
3
+ self: z.ZodObject<{
4
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
6
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ type?: string;
9
+ href?: string;
10
+ templated?: boolean;
11
+ }, {
12
+ type?: string;
13
+ href?: string;
14
+ templated?: boolean;
15
+ }>;
16
+ patientLink: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
18
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
19
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type?: string;
22
+ href?: string;
23
+ templated?: boolean;
24
+ }, {
25
+ type?: string;
26
+ href?: string;
27
+ templated?: boolean;
28
+ }>>>;
29
+ patientMatch: z.ZodNullable<z.ZodOptional<z.ZodObject<{
30
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
32
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ type?: string;
35
+ href?: string;
36
+ templated?: boolean;
37
+ }, {
38
+ type?: string;
39
+ href?: string;
40
+ templated?: boolean;
41
+ }>>>;
42
+ unenroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
43
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
45
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type?: string;
48
+ href?: string;
49
+ templated?: boolean;
50
+ }, {
51
+ type?: string;
52
+ href?: string;
53
+ templated?: boolean;
54
+ }>>>;
55
+ enroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
56
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
57
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
58
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ type?: string;
61
+ href?: string;
62
+ templated?: boolean;
63
+ }, {
64
+ type?: string;
65
+ href?: string;
66
+ templated?: boolean;
67
+ }>>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ self?: {
70
+ type?: string;
71
+ href?: string;
72
+ templated?: boolean;
73
+ };
74
+ patientLink?: {
75
+ type?: string;
76
+ href?: string;
77
+ templated?: boolean;
78
+ };
79
+ patientMatch?: {
80
+ type?: string;
81
+ href?: string;
82
+ templated?: boolean;
83
+ };
84
+ unenroll?: {
85
+ type?: string;
86
+ href?: string;
87
+ templated?: boolean;
88
+ };
89
+ enroll?: {
90
+ type?: string;
91
+ href?: string;
92
+ templated?: boolean;
93
+ };
94
+ }, {
95
+ self?: {
96
+ type?: string;
97
+ href?: string;
98
+ templated?: boolean;
99
+ };
100
+ patientLink?: {
101
+ type?: string;
102
+ href?: string;
103
+ templated?: boolean;
104
+ };
105
+ patientMatch?: {
106
+ type?: string;
107
+ href?: string;
108
+ templated?: boolean;
109
+ };
110
+ unenroll?: {
111
+ type?: string;
112
+ href?: string;
113
+ templated?: boolean;
114
+ };
115
+ enroll?: {
116
+ type?: string;
117
+ href?: string;
118
+ templated?: boolean;
119
+ };
120
+ }>;
121
+ export declare const personSchema: z.ZodObject<{
122
+ enrolled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
123
+ enrollmentSummary: z.ZodNullable<z.ZodOptional<z.ZodObject<{
124
+ dateEnrolled: z.ZodUnion<[z.ZodString, z.ZodString]>;
125
+ enroller: z.ZodString;
126
+ dateUnenrolled: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
127
+ unenroller: z.ZodNullable<z.ZodOptional<z.ZodString>>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ dateEnrolled?: string;
130
+ enroller?: string;
131
+ dateUnenrolled?: string;
132
+ unenroller?: string;
133
+ }, {
134
+ dateEnrolled?: string;
135
+ enroller?: string;
136
+ dateUnenrolled?: string;
137
+ unenroller?: string;
138
+ }>>>;
139
+ details: z.ZodObject<{
140
+ identifier: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
141
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
142
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
143
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
+ key: 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
+ assigner: z.ZodNullable<z.ZodOptional<z.ZodString>>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ key?: string;
158
+ use?: string;
159
+ label?: string;
160
+ system?: string;
161
+ period?: {
162
+ end?: string;
163
+ start?: string;
164
+ };
165
+ assigner?: string;
166
+ }, {
167
+ key?: string;
168
+ use?: string;
169
+ label?: string;
170
+ system?: string;
171
+ period?: {
172
+ end?: string;
173
+ start?: string;
174
+ };
175
+ assigner?: string;
176
+ }>, "many">>>;
177
+ name: z.ZodArray<z.ZodObject<{
178
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
179
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
180
+ family: z.ZodArray<z.ZodString, "many">;
181
+ given: z.ZodArray<z.ZodString, "many">;
182
+ prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
183
+ suffix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
184
+ period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
185
+ start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
186
+ end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ end?: string;
189
+ start?: string;
190
+ }, {
191
+ end?: string;
192
+ start?: string;
193
+ }>>>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ family?: string[];
196
+ use?: string;
197
+ period?: {
198
+ end?: string;
199
+ start?: string;
200
+ };
201
+ text?: string;
202
+ given?: string[];
203
+ prefix?: string;
204
+ suffix?: string;
205
+ }, {
206
+ family?: string[];
207
+ use?: string;
208
+ period?: {
209
+ end?: string;
210
+ start?: string;
211
+ };
212
+ text?: string;
213
+ given?: string[];
214
+ prefix?: string;
215
+ suffix?: string;
216
+ }>, "many">;
217
+ telecom: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
218
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
219
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
220
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
221
+ period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
222
+ start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
223
+ end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ end?: string;
226
+ start?: string;
227
+ }, {
228
+ end?: string;
229
+ start?: string;
230
+ }>>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ value?: string;
233
+ use?: string;
234
+ system?: string;
235
+ period?: {
236
+ end?: string;
237
+ start?: string;
238
+ };
239
+ }, {
240
+ value?: string;
241
+ use?: string;
242
+ system?: string;
243
+ period?: {
244
+ end?: string;
245
+ start?: string;
246
+ };
247
+ }>, "many">>>;
248
+ gender: z.ZodObject<{
249
+ code: z.ZodEnum<[string, ...string[]]>;
250
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
251
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ code?: string;
254
+ system?: string;
255
+ display?: string;
256
+ }, {
257
+ code?: string;
258
+ system?: string;
259
+ display?: string;
260
+ }>;
261
+ birthDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
262
+ address: z.ZodArray<z.ZodObject<{
263
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
264
+ line: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
265
+ city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
266
+ state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
267
+ zip: z.ZodString;
268
+ country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
269
+ period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
270
+ start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
271
+ end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
272
+ }, "strip", z.ZodTypeAny, {
273
+ end?: string;
274
+ start?: string;
275
+ }, {
276
+ end?: string;
277
+ start?: string;
278
+ }>>>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ line?: string[];
281
+ use?: string;
282
+ period?: {
283
+ end?: string;
284
+ start?: string;
285
+ };
286
+ city?: string;
287
+ state?: string;
288
+ zip?: string;
289
+ country?: string;
290
+ }, {
291
+ line?: string[];
292
+ use?: string;
293
+ period?: {
294
+ end?: string;
295
+ start?: string;
296
+ };
297
+ city?: string;
298
+ state?: string;
299
+ zip?: string;
300
+ country?: string;
301
+ }>, "many">;
302
+ picture: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ name?: {
305
+ family?: string[];
306
+ use?: string;
307
+ period?: {
308
+ end?: string;
309
+ start?: string;
310
+ };
311
+ text?: string;
312
+ given?: string[];
313
+ prefix?: string;
314
+ suffix?: string;
315
+ }[];
316
+ identifier?: {
317
+ key?: string;
318
+ use?: string;
319
+ label?: string;
320
+ system?: string;
321
+ period?: {
322
+ end?: string;
323
+ start?: string;
324
+ };
325
+ assigner?: string;
326
+ }[];
327
+ telecom?: {
328
+ value?: string;
329
+ use?: string;
330
+ system?: string;
331
+ period?: {
332
+ end?: string;
333
+ start?: string;
334
+ };
335
+ }[];
336
+ gender?: {
337
+ code?: string;
338
+ system?: string;
339
+ display?: string;
340
+ };
341
+ birthDate?: string;
342
+ address?: {
343
+ line?: string[];
344
+ use?: string;
345
+ period?: {
346
+ end?: string;
347
+ start?: string;
348
+ };
349
+ city?: string;
350
+ state?: string;
351
+ zip?: string;
352
+ country?: string;
353
+ }[];
354
+ picture?: any;
355
+ }, {
356
+ name?: {
357
+ family?: string[];
358
+ use?: string;
359
+ period?: {
360
+ end?: string;
361
+ start?: string;
362
+ };
363
+ text?: string;
364
+ given?: string[];
365
+ prefix?: string;
366
+ suffix?: string;
367
+ }[];
368
+ identifier?: {
369
+ key?: string;
370
+ use?: string;
371
+ label?: string;
372
+ system?: string;
373
+ period?: {
374
+ end?: string;
375
+ start?: string;
376
+ };
377
+ assigner?: string;
378
+ }[];
379
+ telecom?: {
380
+ value?: string;
381
+ use?: string;
382
+ system?: string;
383
+ period?: {
384
+ end?: string;
385
+ start?: string;
386
+ };
387
+ }[];
388
+ gender?: {
389
+ code?: string;
390
+ system?: string;
391
+ display?: string;
392
+ };
393
+ birthDate?: string;
394
+ address?: {
395
+ line?: string[];
396
+ use?: string;
397
+ period?: {
398
+ end?: string;
399
+ start?: string;
400
+ };
401
+ city?: string;
402
+ state?: string;
403
+ zip?: string;
404
+ country?: string;
405
+ }[];
406
+ picture?: any;
407
+ }>;
408
+ _links: z.ZodNullable<z.ZodOptional<z.ZodObject<{
409
+ self: z.ZodObject<{
410
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
411
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
412
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ type?: string;
415
+ href?: string;
416
+ templated?: boolean;
417
+ }, {
418
+ type?: string;
419
+ href?: string;
420
+ templated?: boolean;
421
+ }>;
422
+ patientLink: z.ZodNullable<z.ZodOptional<z.ZodObject<{
423
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
424
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
425
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ type?: string;
428
+ href?: string;
429
+ templated?: boolean;
430
+ }, {
431
+ type?: string;
432
+ href?: string;
433
+ templated?: boolean;
434
+ }>>>;
435
+ patientMatch: z.ZodNullable<z.ZodOptional<z.ZodObject<{
436
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
437
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
438
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
439
+ }, "strip", z.ZodTypeAny, {
440
+ type?: string;
441
+ href?: string;
442
+ templated?: boolean;
443
+ }, {
444
+ type?: string;
445
+ href?: string;
446
+ templated?: boolean;
447
+ }>>>;
448
+ unenroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
449
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
450
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
451
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
452
+ }, "strip", z.ZodTypeAny, {
453
+ type?: string;
454
+ href?: string;
455
+ templated?: boolean;
456
+ }, {
457
+ type?: string;
458
+ href?: string;
459
+ templated?: boolean;
460
+ }>>>;
461
+ enroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
462
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
463
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
464
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ type?: string;
467
+ href?: string;
468
+ templated?: boolean;
469
+ }, {
470
+ type?: string;
471
+ href?: string;
472
+ templated?: boolean;
473
+ }>>>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ self?: {
476
+ type?: string;
477
+ href?: string;
478
+ templated?: boolean;
479
+ };
480
+ patientLink?: {
481
+ type?: string;
482
+ href?: string;
483
+ templated?: boolean;
484
+ };
485
+ patientMatch?: {
486
+ type?: string;
487
+ href?: string;
488
+ templated?: boolean;
489
+ };
490
+ unenroll?: {
491
+ type?: string;
492
+ href?: string;
493
+ templated?: boolean;
494
+ };
495
+ enroll?: {
496
+ type?: string;
497
+ href?: string;
498
+ templated?: boolean;
499
+ };
500
+ }, {
501
+ self?: {
502
+ type?: string;
503
+ href?: string;
504
+ templated?: boolean;
505
+ };
506
+ patientLink?: {
507
+ type?: string;
508
+ href?: string;
509
+ templated?: boolean;
510
+ };
511
+ patientMatch?: {
512
+ type?: string;
513
+ href?: string;
514
+ templated?: boolean;
515
+ };
516
+ unenroll?: {
517
+ type?: string;
518
+ href?: string;
519
+ templated?: boolean;
520
+ };
521
+ enroll?: {
522
+ type?: string;
523
+ href?: string;
524
+ templated?: boolean;
525
+ };
526
+ }>>>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ _links?: {
529
+ self?: {
530
+ type?: string;
531
+ href?: string;
532
+ templated?: boolean;
533
+ };
534
+ patientLink?: {
535
+ type?: string;
536
+ href?: string;
537
+ templated?: boolean;
538
+ };
539
+ patientMatch?: {
540
+ type?: string;
541
+ href?: string;
542
+ templated?: boolean;
543
+ };
544
+ unenroll?: {
545
+ type?: string;
546
+ href?: string;
547
+ templated?: boolean;
548
+ };
549
+ enroll?: {
550
+ type?: string;
551
+ href?: string;
552
+ templated?: boolean;
553
+ };
554
+ };
555
+ details?: {
556
+ name?: {
557
+ family?: string[];
558
+ use?: string;
559
+ period?: {
560
+ end?: string;
561
+ start?: string;
562
+ };
563
+ text?: string;
564
+ given?: string[];
565
+ prefix?: string;
566
+ suffix?: string;
567
+ }[];
568
+ identifier?: {
569
+ key?: string;
570
+ use?: string;
571
+ label?: string;
572
+ system?: string;
573
+ period?: {
574
+ end?: string;
575
+ start?: string;
576
+ };
577
+ assigner?: string;
578
+ }[];
579
+ telecom?: {
580
+ value?: string;
581
+ use?: string;
582
+ system?: string;
583
+ period?: {
584
+ end?: string;
585
+ start?: string;
586
+ };
587
+ }[];
588
+ gender?: {
589
+ code?: string;
590
+ system?: string;
591
+ display?: string;
592
+ };
593
+ birthDate?: string;
594
+ address?: {
595
+ line?: string[];
596
+ use?: string;
597
+ period?: {
598
+ end?: string;
599
+ start?: string;
600
+ };
601
+ city?: string;
602
+ state?: string;
603
+ zip?: string;
604
+ country?: string;
605
+ }[];
606
+ picture?: any;
607
+ };
608
+ enrolled?: boolean;
609
+ enrollmentSummary?: {
610
+ dateEnrolled?: string;
611
+ enroller?: string;
612
+ dateUnenrolled?: string;
613
+ unenroller?: string;
614
+ };
615
+ }, {
616
+ _links?: {
617
+ self?: {
618
+ type?: string;
619
+ href?: string;
620
+ templated?: boolean;
621
+ };
622
+ patientLink?: {
623
+ type?: string;
624
+ href?: string;
625
+ templated?: boolean;
626
+ };
627
+ patientMatch?: {
628
+ type?: string;
629
+ href?: string;
630
+ templated?: boolean;
631
+ };
632
+ unenroll?: {
633
+ type?: string;
634
+ href?: string;
635
+ templated?: boolean;
636
+ };
637
+ enroll?: {
638
+ type?: string;
639
+ href?: string;
640
+ templated?: boolean;
641
+ };
642
+ };
643
+ details?: {
644
+ name?: {
645
+ family?: string[];
646
+ use?: string;
647
+ period?: {
648
+ end?: string;
649
+ start?: string;
650
+ };
651
+ text?: string;
652
+ given?: string[];
653
+ prefix?: string;
654
+ suffix?: string;
655
+ }[];
656
+ identifier?: {
657
+ key?: string;
658
+ use?: string;
659
+ label?: string;
660
+ system?: string;
661
+ period?: {
662
+ end?: string;
663
+ start?: string;
664
+ };
665
+ assigner?: string;
666
+ }[];
667
+ telecom?: {
668
+ value?: string;
669
+ use?: string;
670
+ system?: string;
671
+ period?: {
672
+ end?: string;
673
+ start?: string;
674
+ };
675
+ }[];
676
+ gender?: {
677
+ code?: string;
678
+ system?: string;
679
+ display?: string;
680
+ };
681
+ birthDate?: string;
682
+ address?: {
683
+ line?: string[];
684
+ use?: string;
685
+ period?: {
686
+ end?: string;
687
+ start?: string;
688
+ };
689
+ city?: string;
690
+ state?: string;
691
+ zip?: string;
692
+ country?: string;
693
+ }[];
694
+ picture?: any;
695
+ };
696
+ enrolled?: boolean;
697
+ enrollmentSummary?: {
698
+ dateEnrolled?: string;
699
+ enroller?: string;
700
+ dateUnenrolled?: string;
701
+ unenroller?: string;
702
+ };
703
+ }>;
704
+ export type Person = z.infer<typeof personSchema>;
705
+ export declare const personSearchRespSchema: z.ZodObject<{
706
+ message: z.ZodString;
707
+ _embedded: z.ZodObject<{
708
+ person: z.ZodArray<z.ZodObject<{
709
+ enrolled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
710
+ enrollmentSummary: z.ZodNullable<z.ZodOptional<z.ZodObject<{
711
+ dateEnrolled: z.ZodUnion<[z.ZodString, z.ZodString]>;
712
+ enroller: z.ZodString;
713
+ dateUnenrolled: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
714
+ unenroller: z.ZodNullable<z.ZodOptional<z.ZodString>>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ dateEnrolled?: string;
717
+ enroller?: string;
718
+ dateUnenrolled?: string;
719
+ unenroller?: string;
720
+ }, {
721
+ dateEnrolled?: string;
722
+ enroller?: string;
723
+ dateUnenrolled?: string;
724
+ unenroller?: string;
725
+ }>>>;
726
+ details: z.ZodObject<{
727
+ identifier: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
728
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
729
+ label: z.ZodNullable<z.ZodOptional<z.ZodString>>;
730
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
731
+ key: z.ZodString;
732
+ period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
733
+ start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
734
+ end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ end?: string;
737
+ start?: string;
738
+ }, {
739
+ end?: string;
740
+ start?: string;
741
+ }>>>;
742
+ assigner: z.ZodNullable<z.ZodOptional<z.ZodString>>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ key?: string;
745
+ use?: string;
746
+ label?: string;
747
+ system?: string;
748
+ period?: {
749
+ end?: string;
750
+ start?: string;
751
+ };
752
+ assigner?: string;
753
+ }, {
754
+ key?: string;
755
+ use?: string;
756
+ label?: string;
757
+ system?: string;
758
+ period?: {
759
+ end?: string;
760
+ start?: string;
761
+ };
762
+ assigner?: string;
763
+ }>, "many">>>;
764
+ name: z.ZodArray<z.ZodObject<{
765
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
766
+ text: z.ZodNullable<z.ZodOptional<z.ZodString>>;
767
+ family: z.ZodArray<z.ZodString, "many">;
768
+ given: z.ZodArray<z.ZodString, "many">;
769
+ prefix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
770
+ suffix: z.ZodNullable<z.ZodOptional<z.ZodString>>;
771
+ period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
772
+ start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
773
+ end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
774
+ }, "strip", z.ZodTypeAny, {
775
+ end?: string;
776
+ start?: string;
777
+ }, {
778
+ end?: string;
779
+ start?: string;
780
+ }>>>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ family?: string[];
783
+ use?: string;
784
+ period?: {
785
+ end?: string;
786
+ start?: string;
787
+ };
788
+ text?: string;
789
+ given?: string[];
790
+ prefix?: string;
791
+ suffix?: string;
792
+ }, {
793
+ family?: string[];
794
+ use?: string;
795
+ period?: {
796
+ end?: string;
797
+ start?: string;
798
+ };
799
+ text?: string;
800
+ given?: string[];
801
+ prefix?: string;
802
+ suffix?: string;
803
+ }>, "many">;
804
+ telecom: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
805
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
806
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
807
+ value: z.ZodNullable<z.ZodOptional<z.ZodString>>;
808
+ period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
809
+ start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
810
+ end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
811
+ }, "strip", z.ZodTypeAny, {
812
+ end?: string;
813
+ start?: string;
814
+ }, {
815
+ end?: string;
816
+ start?: string;
817
+ }>>>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ value?: string;
820
+ use?: string;
821
+ system?: string;
822
+ period?: {
823
+ end?: string;
824
+ start?: string;
825
+ };
826
+ }, {
827
+ value?: string;
828
+ use?: string;
829
+ system?: string;
830
+ period?: {
831
+ end?: string;
832
+ start?: string;
833
+ };
834
+ }>, "many">>>;
835
+ gender: z.ZodObject<{
836
+ code: z.ZodEnum<[string, ...string[]]>;
837
+ display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
838
+ system: z.ZodNullable<z.ZodOptional<z.ZodString>>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ code?: string;
841
+ system?: string;
842
+ display?: string;
843
+ }, {
844
+ code?: string;
845
+ system?: string;
846
+ display?: string;
847
+ }>;
848
+ birthDate: z.ZodUnion<[z.ZodString, z.ZodString]>;
849
+ address: z.ZodArray<z.ZodObject<{
850
+ use: z.ZodNullable<z.ZodOptional<z.ZodEnum<[string, ...string[]]>>>;
851
+ line: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
852
+ city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
853
+ state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
854
+ zip: z.ZodString;
855
+ country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
856
+ period: z.ZodNullable<z.ZodOptional<z.ZodObject<{
857
+ start: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
858
+ end: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
859
+ }, "strip", z.ZodTypeAny, {
860
+ end?: string;
861
+ start?: string;
862
+ }, {
863
+ end?: string;
864
+ start?: string;
865
+ }>>>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ line?: string[];
868
+ use?: string;
869
+ period?: {
870
+ end?: string;
871
+ start?: string;
872
+ };
873
+ city?: string;
874
+ state?: string;
875
+ zip?: string;
876
+ country?: string;
877
+ }, {
878
+ line?: string[];
879
+ use?: string;
880
+ period?: {
881
+ end?: string;
882
+ start?: string;
883
+ };
884
+ city?: string;
885
+ state?: string;
886
+ zip?: string;
887
+ country?: string;
888
+ }>, "many">;
889
+ picture: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ name?: {
892
+ family?: string[];
893
+ use?: string;
894
+ period?: {
895
+ end?: string;
896
+ start?: string;
897
+ };
898
+ text?: string;
899
+ given?: string[];
900
+ prefix?: string;
901
+ suffix?: string;
902
+ }[];
903
+ identifier?: {
904
+ key?: string;
905
+ use?: string;
906
+ label?: string;
907
+ system?: string;
908
+ period?: {
909
+ end?: string;
910
+ start?: string;
911
+ };
912
+ assigner?: string;
913
+ }[];
914
+ telecom?: {
915
+ value?: string;
916
+ use?: string;
917
+ system?: string;
918
+ period?: {
919
+ end?: string;
920
+ start?: string;
921
+ };
922
+ }[];
923
+ gender?: {
924
+ code?: string;
925
+ system?: string;
926
+ display?: string;
927
+ };
928
+ birthDate?: string;
929
+ address?: {
930
+ line?: string[];
931
+ use?: string;
932
+ period?: {
933
+ end?: string;
934
+ start?: string;
935
+ };
936
+ city?: string;
937
+ state?: string;
938
+ zip?: string;
939
+ country?: string;
940
+ }[];
941
+ picture?: any;
942
+ }, {
943
+ name?: {
944
+ family?: string[];
945
+ use?: string;
946
+ period?: {
947
+ end?: string;
948
+ start?: string;
949
+ };
950
+ text?: string;
951
+ given?: string[];
952
+ prefix?: string;
953
+ suffix?: string;
954
+ }[];
955
+ identifier?: {
956
+ key?: string;
957
+ use?: string;
958
+ label?: string;
959
+ system?: string;
960
+ period?: {
961
+ end?: string;
962
+ start?: string;
963
+ };
964
+ assigner?: string;
965
+ }[];
966
+ telecom?: {
967
+ value?: string;
968
+ use?: string;
969
+ system?: string;
970
+ period?: {
971
+ end?: string;
972
+ start?: string;
973
+ };
974
+ }[];
975
+ gender?: {
976
+ code?: string;
977
+ system?: string;
978
+ display?: string;
979
+ };
980
+ birthDate?: string;
981
+ address?: {
982
+ line?: string[];
983
+ use?: string;
984
+ period?: {
985
+ end?: string;
986
+ start?: string;
987
+ };
988
+ city?: string;
989
+ state?: string;
990
+ zip?: string;
991
+ country?: string;
992
+ }[];
993
+ picture?: any;
994
+ }>;
995
+ _links: z.ZodNullable<z.ZodOptional<z.ZodObject<{
996
+ self: z.ZodObject<{
997
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
998
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
999
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ type?: string;
1002
+ href?: string;
1003
+ templated?: boolean;
1004
+ }, {
1005
+ type?: string;
1006
+ href?: string;
1007
+ templated?: boolean;
1008
+ }>;
1009
+ patientLink: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1010
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1011
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1012
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ type?: string;
1015
+ href?: string;
1016
+ templated?: boolean;
1017
+ }, {
1018
+ type?: string;
1019
+ href?: string;
1020
+ templated?: boolean;
1021
+ }>>>;
1022
+ patientMatch: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1023
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1024
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1025
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ type?: string;
1028
+ href?: string;
1029
+ templated?: boolean;
1030
+ }, {
1031
+ type?: string;
1032
+ href?: string;
1033
+ templated?: boolean;
1034
+ }>>>;
1035
+ unenroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1036
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1037
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1038
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1039
+ }, "strip", z.ZodTypeAny, {
1040
+ type?: string;
1041
+ href?: string;
1042
+ templated?: boolean;
1043
+ }, {
1044
+ type?: string;
1045
+ href?: string;
1046
+ templated?: boolean;
1047
+ }>>>;
1048
+ enroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1049
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1050
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1051
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ type?: string;
1054
+ href?: string;
1055
+ templated?: boolean;
1056
+ }, {
1057
+ type?: string;
1058
+ href?: string;
1059
+ templated?: boolean;
1060
+ }>>>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ self?: {
1063
+ type?: string;
1064
+ href?: string;
1065
+ templated?: boolean;
1066
+ };
1067
+ patientLink?: {
1068
+ type?: string;
1069
+ href?: string;
1070
+ templated?: boolean;
1071
+ };
1072
+ patientMatch?: {
1073
+ type?: string;
1074
+ href?: string;
1075
+ templated?: boolean;
1076
+ };
1077
+ unenroll?: {
1078
+ type?: string;
1079
+ href?: string;
1080
+ templated?: boolean;
1081
+ };
1082
+ enroll?: {
1083
+ type?: string;
1084
+ href?: string;
1085
+ templated?: boolean;
1086
+ };
1087
+ }, {
1088
+ self?: {
1089
+ type?: string;
1090
+ href?: string;
1091
+ templated?: boolean;
1092
+ };
1093
+ patientLink?: {
1094
+ type?: string;
1095
+ href?: string;
1096
+ templated?: boolean;
1097
+ };
1098
+ patientMatch?: {
1099
+ type?: string;
1100
+ href?: string;
1101
+ templated?: boolean;
1102
+ };
1103
+ unenroll?: {
1104
+ type?: string;
1105
+ href?: string;
1106
+ templated?: boolean;
1107
+ };
1108
+ enroll?: {
1109
+ type?: string;
1110
+ href?: string;
1111
+ templated?: boolean;
1112
+ };
1113
+ }>>>;
1114
+ }, "strip", z.ZodTypeAny, {
1115
+ _links?: {
1116
+ self?: {
1117
+ type?: string;
1118
+ href?: string;
1119
+ templated?: boolean;
1120
+ };
1121
+ patientLink?: {
1122
+ type?: string;
1123
+ href?: string;
1124
+ templated?: boolean;
1125
+ };
1126
+ patientMatch?: {
1127
+ type?: string;
1128
+ href?: string;
1129
+ templated?: boolean;
1130
+ };
1131
+ unenroll?: {
1132
+ type?: string;
1133
+ href?: string;
1134
+ templated?: boolean;
1135
+ };
1136
+ enroll?: {
1137
+ type?: string;
1138
+ href?: string;
1139
+ templated?: boolean;
1140
+ };
1141
+ };
1142
+ details?: {
1143
+ name?: {
1144
+ family?: string[];
1145
+ use?: string;
1146
+ period?: {
1147
+ end?: string;
1148
+ start?: string;
1149
+ };
1150
+ text?: string;
1151
+ given?: string[];
1152
+ prefix?: string;
1153
+ suffix?: string;
1154
+ }[];
1155
+ identifier?: {
1156
+ key?: string;
1157
+ use?: string;
1158
+ label?: string;
1159
+ system?: string;
1160
+ period?: {
1161
+ end?: string;
1162
+ start?: string;
1163
+ };
1164
+ assigner?: string;
1165
+ }[];
1166
+ telecom?: {
1167
+ value?: string;
1168
+ use?: string;
1169
+ system?: string;
1170
+ period?: {
1171
+ end?: string;
1172
+ start?: string;
1173
+ };
1174
+ }[];
1175
+ gender?: {
1176
+ code?: string;
1177
+ system?: string;
1178
+ display?: string;
1179
+ };
1180
+ birthDate?: string;
1181
+ address?: {
1182
+ line?: string[];
1183
+ use?: string;
1184
+ period?: {
1185
+ end?: string;
1186
+ start?: string;
1187
+ };
1188
+ city?: string;
1189
+ state?: string;
1190
+ zip?: string;
1191
+ country?: string;
1192
+ }[];
1193
+ picture?: any;
1194
+ };
1195
+ enrolled?: boolean;
1196
+ enrollmentSummary?: {
1197
+ dateEnrolled?: string;
1198
+ enroller?: string;
1199
+ dateUnenrolled?: string;
1200
+ unenroller?: string;
1201
+ };
1202
+ }, {
1203
+ _links?: {
1204
+ self?: {
1205
+ type?: string;
1206
+ href?: string;
1207
+ templated?: boolean;
1208
+ };
1209
+ patientLink?: {
1210
+ type?: string;
1211
+ href?: string;
1212
+ templated?: boolean;
1213
+ };
1214
+ patientMatch?: {
1215
+ type?: string;
1216
+ href?: string;
1217
+ templated?: boolean;
1218
+ };
1219
+ unenroll?: {
1220
+ type?: string;
1221
+ href?: string;
1222
+ templated?: boolean;
1223
+ };
1224
+ enroll?: {
1225
+ type?: string;
1226
+ href?: string;
1227
+ templated?: boolean;
1228
+ };
1229
+ };
1230
+ details?: {
1231
+ name?: {
1232
+ family?: string[];
1233
+ use?: string;
1234
+ period?: {
1235
+ end?: string;
1236
+ start?: string;
1237
+ };
1238
+ text?: string;
1239
+ given?: string[];
1240
+ prefix?: string;
1241
+ suffix?: string;
1242
+ }[];
1243
+ identifier?: {
1244
+ key?: string;
1245
+ use?: string;
1246
+ label?: string;
1247
+ system?: string;
1248
+ period?: {
1249
+ end?: string;
1250
+ start?: string;
1251
+ };
1252
+ assigner?: string;
1253
+ }[];
1254
+ telecom?: {
1255
+ value?: string;
1256
+ use?: string;
1257
+ system?: string;
1258
+ period?: {
1259
+ end?: string;
1260
+ start?: string;
1261
+ };
1262
+ }[];
1263
+ gender?: {
1264
+ code?: string;
1265
+ system?: string;
1266
+ display?: string;
1267
+ };
1268
+ birthDate?: string;
1269
+ address?: {
1270
+ line?: string[];
1271
+ use?: string;
1272
+ period?: {
1273
+ end?: string;
1274
+ start?: string;
1275
+ };
1276
+ city?: string;
1277
+ state?: string;
1278
+ zip?: string;
1279
+ country?: string;
1280
+ }[];
1281
+ picture?: any;
1282
+ };
1283
+ enrolled?: boolean;
1284
+ enrollmentSummary?: {
1285
+ dateEnrolled?: string;
1286
+ enroller?: string;
1287
+ dateUnenrolled?: string;
1288
+ unenroller?: string;
1289
+ };
1290
+ }>, "many">;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ person?: {
1293
+ _links?: {
1294
+ self?: {
1295
+ type?: string;
1296
+ href?: string;
1297
+ templated?: boolean;
1298
+ };
1299
+ patientLink?: {
1300
+ type?: string;
1301
+ href?: string;
1302
+ templated?: boolean;
1303
+ };
1304
+ patientMatch?: {
1305
+ type?: string;
1306
+ href?: string;
1307
+ templated?: boolean;
1308
+ };
1309
+ unenroll?: {
1310
+ type?: string;
1311
+ href?: string;
1312
+ templated?: boolean;
1313
+ };
1314
+ enroll?: {
1315
+ type?: string;
1316
+ href?: string;
1317
+ templated?: boolean;
1318
+ };
1319
+ };
1320
+ details?: {
1321
+ name?: {
1322
+ family?: string[];
1323
+ use?: string;
1324
+ period?: {
1325
+ end?: string;
1326
+ start?: string;
1327
+ };
1328
+ text?: string;
1329
+ given?: string[];
1330
+ prefix?: string;
1331
+ suffix?: string;
1332
+ }[];
1333
+ identifier?: {
1334
+ key?: string;
1335
+ use?: string;
1336
+ label?: string;
1337
+ system?: string;
1338
+ period?: {
1339
+ end?: string;
1340
+ start?: string;
1341
+ };
1342
+ assigner?: string;
1343
+ }[];
1344
+ telecom?: {
1345
+ value?: string;
1346
+ use?: string;
1347
+ system?: string;
1348
+ period?: {
1349
+ end?: string;
1350
+ start?: string;
1351
+ };
1352
+ }[];
1353
+ gender?: {
1354
+ code?: string;
1355
+ system?: string;
1356
+ display?: string;
1357
+ };
1358
+ birthDate?: string;
1359
+ address?: {
1360
+ line?: string[];
1361
+ use?: string;
1362
+ period?: {
1363
+ end?: string;
1364
+ start?: string;
1365
+ };
1366
+ city?: string;
1367
+ state?: string;
1368
+ zip?: string;
1369
+ country?: string;
1370
+ }[];
1371
+ picture?: any;
1372
+ };
1373
+ enrolled?: boolean;
1374
+ enrollmentSummary?: {
1375
+ dateEnrolled?: string;
1376
+ enroller?: string;
1377
+ dateUnenrolled?: string;
1378
+ unenroller?: string;
1379
+ };
1380
+ }[];
1381
+ }, {
1382
+ person?: {
1383
+ _links?: {
1384
+ self?: {
1385
+ type?: string;
1386
+ href?: string;
1387
+ templated?: boolean;
1388
+ };
1389
+ patientLink?: {
1390
+ type?: string;
1391
+ href?: string;
1392
+ templated?: boolean;
1393
+ };
1394
+ patientMatch?: {
1395
+ type?: string;
1396
+ href?: string;
1397
+ templated?: boolean;
1398
+ };
1399
+ unenroll?: {
1400
+ type?: string;
1401
+ href?: string;
1402
+ templated?: boolean;
1403
+ };
1404
+ enroll?: {
1405
+ type?: string;
1406
+ href?: string;
1407
+ templated?: boolean;
1408
+ };
1409
+ };
1410
+ details?: {
1411
+ name?: {
1412
+ family?: string[];
1413
+ use?: string;
1414
+ period?: {
1415
+ end?: string;
1416
+ start?: string;
1417
+ };
1418
+ text?: string;
1419
+ given?: string[];
1420
+ prefix?: string;
1421
+ suffix?: string;
1422
+ }[];
1423
+ identifier?: {
1424
+ key?: string;
1425
+ use?: string;
1426
+ label?: string;
1427
+ system?: string;
1428
+ period?: {
1429
+ end?: string;
1430
+ start?: string;
1431
+ };
1432
+ assigner?: string;
1433
+ }[];
1434
+ telecom?: {
1435
+ value?: string;
1436
+ use?: string;
1437
+ system?: string;
1438
+ period?: {
1439
+ end?: string;
1440
+ start?: string;
1441
+ };
1442
+ }[];
1443
+ gender?: {
1444
+ code?: string;
1445
+ system?: string;
1446
+ display?: string;
1447
+ };
1448
+ birthDate?: string;
1449
+ address?: {
1450
+ line?: string[];
1451
+ use?: string;
1452
+ period?: {
1453
+ end?: string;
1454
+ start?: string;
1455
+ };
1456
+ city?: string;
1457
+ state?: string;
1458
+ zip?: string;
1459
+ country?: string;
1460
+ }[];
1461
+ picture?: any;
1462
+ };
1463
+ enrolled?: boolean;
1464
+ enrollmentSummary?: {
1465
+ dateEnrolled?: string;
1466
+ enroller?: string;
1467
+ dateUnenrolled?: string;
1468
+ unenroller?: string;
1469
+ };
1470
+ }[];
1471
+ }>;
1472
+ _links: z.ZodObject<{
1473
+ self: z.ZodObject<{
1474
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1475
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1476
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ type?: string;
1479
+ href?: string;
1480
+ templated?: boolean;
1481
+ }, {
1482
+ type?: string;
1483
+ href?: string;
1484
+ templated?: boolean;
1485
+ }>;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ self?: {
1488
+ type?: string;
1489
+ href?: string;
1490
+ templated?: boolean;
1491
+ };
1492
+ }, {
1493
+ self?: {
1494
+ type?: string;
1495
+ href?: string;
1496
+ templated?: boolean;
1497
+ };
1498
+ }>;
1499
+ }, "strip", z.ZodTypeAny, {
1500
+ message?: string;
1501
+ _links?: {
1502
+ self?: {
1503
+ type?: string;
1504
+ href?: string;
1505
+ templated?: boolean;
1506
+ };
1507
+ };
1508
+ _embedded?: {
1509
+ person?: {
1510
+ _links?: {
1511
+ self?: {
1512
+ type?: string;
1513
+ href?: string;
1514
+ templated?: boolean;
1515
+ };
1516
+ patientLink?: {
1517
+ type?: string;
1518
+ href?: string;
1519
+ templated?: boolean;
1520
+ };
1521
+ patientMatch?: {
1522
+ type?: string;
1523
+ href?: string;
1524
+ templated?: boolean;
1525
+ };
1526
+ unenroll?: {
1527
+ type?: string;
1528
+ href?: string;
1529
+ templated?: boolean;
1530
+ };
1531
+ enroll?: {
1532
+ type?: string;
1533
+ href?: string;
1534
+ templated?: boolean;
1535
+ };
1536
+ };
1537
+ details?: {
1538
+ name?: {
1539
+ family?: string[];
1540
+ use?: string;
1541
+ period?: {
1542
+ end?: string;
1543
+ start?: string;
1544
+ };
1545
+ text?: string;
1546
+ given?: string[];
1547
+ prefix?: string;
1548
+ suffix?: string;
1549
+ }[];
1550
+ identifier?: {
1551
+ key?: string;
1552
+ use?: string;
1553
+ label?: string;
1554
+ system?: string;
1555
+ period?: {
1556
+ end?: string;
1557
+ start?: string;
1558
+ };
1559
+ assigner?: string;
1560
+ }[];
1561
+ telecom?: {
1562
+ value?: string;
1563
+ use?: string;
1564
+ system?: string;
1565
+ period?: {
1566
+ end?: string;
1567
+ start?: string;
1568
+ };
1569
+ }[];
1570
+ gender?: {
1571
+ code?: string;
1572
+ system?: string;
1573
+ display?: string;
1574
+ };
1575
+ birthDate?: string;
1576
+ address?: {
1577
+ line?: string[];
1578
+ use?: string;
1579
+ period?: {
1580
+ end?: string;
1581
+ start?: string;
1582
+ };
1583
+ city?: string;
1584
+ state?: string;
1585
+ zip?: string;
1586
+ country?: string;
1587
+ }[];
1588
+ picture?: any;
1589
+ };
1590
+ enrolled?: boolean;
1591
+ enrollmentSummary?: {
1592
+ dateEnrolled?: string;
1593
+ enroller?: string;
1594
+ dateUnenrolled?: string;
1595
+ unenroller?: string;
1596
+ };
1597
+ }[];
1598
+ };
1599
+ }, {
1600
+ message?: string;
1601
+ _links?: {
1602
+ self?: {
1603
+ type?: string;
1604
+ href?: string;
1605
+ templated?: boolean;
1606
+ };
1607
+ };
1608
+ _embedded?: {
1609
+ person?: {
1610
+ _links?: {
1611
+ self?: {
1612
+ type?: string;
1613
+ href?: string;
1614
+ templated?: boolean;
1615
+ };
1616
+ patientLink?: {
1617
+ type?: string;
1618
+ href?: string;
1619
+ templated?: boolean;
1620
+ };
1621
+ patientMatch?: {
1622
+ type?: string;
1623
+ href?: string;
1624
+ templated?: boolean;
1625
+ };
1626
+ unenroll?: {
1627
+ type?: string;
1628
+ href?: string;
1629
+ templated?: boolean;
1630
+ };
1631
+ enroll?: {
1632
+ type?: string;
1633
+ href?: string;
1634
+ templated?: boolean;
1635
+ };
1636
+ };
1637
+ details?: {
1638
+ name?: {
1639
+ family?: string[];
1640
+ use?: string;
1641
+ period?: {
1642
+ end?: string;
1643
+ start?: string;
1644
+ };
1645
+ text?: string;
1646
+ given?: string[];
1647
+ prefix?: string;
1648
+ suffix?: string;
1649
+ }[];
1650
+ identifier?: {
1651
+ key?: string;
1652
+ use?: string;
1653
+ label?: string;
1654
+ system?: string;
1655
+ period?: {
1656
+ end?: string;
1657
+ start?: string;
1658
+ };
1659
+ assigner?: string;
1660
+ }[];
1661
+ telecom?: {
1662
+ value?: string;
1663
+ use?: string;
1664
+ system?: string;
1665
+ period?: {
1666
+ end?: string;
1667
+ start?: string;
1668
+ };
1669
+ }[];
1670
+ gender?: {
1671
+ code?: string;
1672
+ system?: string;
1673
+ display?: string;
1674
+ };
1675
+ birthDate?: string;
1676
+ address?: {
1677
+ line?: string[];
1678
+ use?: string;
1679
+ period?: {
1680
+ end?: string;
1681
+ start?: string;
1682
+ };
1683
+ city?: string;
1684
+ state?: string;
1685
+ zip?: string;
1686
+ country?: string;
1687
+ }[];
1688
+ picture?: any;
1689
+ };
1690
+ enrolled?: boolean;
1691
+ enrollmentSummary?: {
1692
+ dateEnrolled?: string;
1693
+ enroller?: string;
1694
+ dateUnenrolled?: string;
1695
+ unenroller?: string;
1696
+ };
1697
+ }[];
1698
+ };
1699
+ }>;
1700
+ export type PersonSearchResp = z.infer<typeof personSearchRespSchema>;
1701
+ export declare const patientLinkSchema: z.ZodObject<{
1702
+ patient: z.ZodString;
1703
+ assuranceLevel: z.ZodEnum<[string, ...string[]]>;
1704
+ _links: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1705
+ self: z.ZodObject<{
1706
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1707
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1708
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ type?: string;
1711
+ href?: string;
1712
+ templated?: boolean;
1713
+ }, {
1714
+ type?: string;
1715
+ href?: string;
1716
+ templated?: boolean;
1717
+ }>;
1718
+ patientLink: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1719
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1720
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1721
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1722
+ }, "strip", z.ZodTypeAny, {
1723
+ type?: string;
1724
+ href?: string;
1725
+ templated?: boolean;
1726
+ }, {
1727
+ type?: string;
1728
+ href?: string;
1729
+ templated?: boolean;
1730
+ }>>>;
1731
+ patientMatch: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1732
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1733
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1734
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1735
+ }, "strip", z.ZodTypeAny, {
1736
+ type?: string;
1737
+ href?: string;
1738
+ templated?: boolean;
1739
+ }, {
1740
+ type?: string;
1741
+ href?: string;
1742
+ templated?: boolean;
1743
+ }>>>;
1744
+ unenroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1745
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1746
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1747
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ type?: string;
1750
+ href?: string;
1751
+ templated?: boolean;
1752
+ }, {
1753
+ type?: string;
1754
+ href?: string;
1755
+ templated?: boolean;
1756
+ }>>>;
1757
+ enroll: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1758
+ href: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1759
+ templated: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
1760
+ type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1761
+ }, "strip", z.ZodTypeAny, {
1762
+ type?: string;
1763
+ href?: string;
1764
+ templated?: boolean;
1765
+ }, {
1766
+ type?: string;
1767
+ href?: string;
1768
+ templated?: boolean;
1769
+ }>>>;
1770
+ }, "strip", z.ZodTypeAny, {
1771
+ self?: {
1772
+ type?: string;
1773
+ href?: string;
1774
+ templated?: boolean;
1775
+ };
1776
+ patientLink?: {
1777
+ type?: string;
1778
+ href?: string;
1779
+ templated?: boolean;
1780
+ };
1781
+ patientMatch?: {
1782
+ type?: string;
1783
+ href?: string;
1784
+ templated?: boolean;
1785
+ };
1786
+ unenroll?: {
1787
+ type?: string;
1788
+ href?: string;
1789
+ templated?: boolean;
1790
+ };
1791
+ enroll?: {
1792
+ type?: string;
1793
+ href?: string;
1794
+ templated?: boolean;
1795
+ };
1796
+ }, {
1797
+ self?: {
1798
+ type?: string;
1799
+ href?: string;
1800
+ templated?: boolean;
1801
+ };
1802
+ patientLink?: {
1803
+ type?: string;
1804
+ href?: string;
1805
+ templated?: boolean;
1806
+ };
1807
+ patientMatch?: {
1808
+ type?: string;
1809
+ href?: string;
1810
+ templated?: boolean;
1811
+ };
1812
+ unenroll?: {
1813
+ type?: string;
1814
+ href?: string;
1815
+ templated?: boolean;
1816
+ };
1817
+ enroll?: {
1818
+ type?: string;
1819
+ href?: string;
1820
+ templated?: boolean;
1821
+ };
1822
+ }>>>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ _links?: {
1825
+ self?: {
1826
+ type?: string;
1827
+ href?: string;
1828
+ templated?: boolean;
1829
+ };
1830
+ patientLink?: {
1831
+ type?: string;
1832
+ href?: string;
1833
+ templated?: boolean;
1834
+ };
1835
+ patientMatch?: {
1836
+ type?: string;
1837
+ href?: string;
1838
+ templated?: boolean;
1839
+ };
1840
+ unenroll?: {
1841
+ type?: string;
1842
+ href?: string;
1843
+ templated?: boolean;
1844
+ };
1845
+ enroll?: {
1846
+ type?: string;
1847
+ href?: string;
1848
+ templated?: boolean;
1849
+ };
1850
+ };
1851
+ assuranceLevel?: string;
1852
+ patient?: string;
1853
+ }, {
1854
+ _links?: {
1855
+ self?: {
1856
+ type?: string;
1857
+ href?: string;
1858
+ templated?: boolean;
1859
+ };
1860
+ patientLink?: {
1861
+ type?: string;
1862
+ href?: string;
1863
+ templated?: boolean;
1864
+ };
1865
+ patientMatch?: {
1866
+ type?: string;
1867
+ href?: string;
1868
+ templated?: boolean;
1869
+ };
1870
+ unenroll?: {
1871
+ type?: string;
1872
+ href?: string;
1873
+ templated?: boolean;
1874
+ };
1875
+ enroll?: {
1876
+ type?: string;
1877
+ href?: string;
1878
+ templated?: boolean;
1879
+ };
1880
+ };
1881
+ assuranceLevel?: string;
1882
+ patient?: string;
1883
+ }>;
1884
+ export type PatientLink = z.infer<typeof patientLinkSchema>;