@metriport/commonwell-sdk 1.0.2 → 1.0.3

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 (43) hide show
  1. package/lib/client/commonwell.d.ts +29 -0
  2. package/lib/client/commonwell.js +89 -0
  3. package/lib/client/commonwell.js.map +1 -0
  4. package/lib/common/util.d.ts +2 -0
  5. package/lib/common/util.js +9 -0
  6. package/lib/common/util.js.map +1 -0
  7. package/lib/index.d.ts +9 -0
  8. package/lib/index.js +17 -1
  9. package/lib/index.js.map +1 -1
  10. package/lib/models/address.d.ts +50 -0
  11. package/lib/models/address.js +24 -0
  12. package/lib/models/address.js.map +1 -0
  13. package/lib/models/contact.d.ts +50 -0
  14. package/lib/models/contact.js +31 -0
  15. package/lib/models/contact.js.map +1 -0
  16. package/lib/models/demographics.d.ts +291 -0
  17. package/lib/models/demographics.js +32 -0
  18. package/lib/models/demographics.js.map +1 -0
  19. package/lib/models/enrollment-summary.d.ts +18 -0
  20. package/lib/models/enrollment-summary.js +13 -0
  21. package/lib/models/enrollment-summary.js.map +1 -0
  22. package/lib/models/human-name.d.ts +53 -0
  23. package/lib/models/human-name.js +27 -0
  24. package/lib/models/human-name.js.map +1 -0
  25. package/lib/models/identifier.d.ts +46 -0
  26. package/lib/models/identifier.js +22 -0
  27. package/lib/models/identifier.js.map +1 -0
  28. package/lib/models/iso-date.d.ts +3 -0
  29. package/lib/models/iso-date.js +9 -0
  30. package/lib/models/iso-date.js.map +1 -0
  31. package/lib/models/iso-datetime.d.ts +3 -0
  32. package/lib/models/iso-datetime.js +9 -0
  33. package/lib/models/iso-datetime.js.map +1 -0
  34. package/lib/models/link.d.ts +15 -0
  35. package/lib/models/link.js +10 -0
  36. package/lib/models/link.js.map +1 -0
  37. package/lib/models/period.d.ts +12 -0
  38. package/lib/models/period.js +11 -0
  39. package/lib/models/period.js.map +1 -0
  40. package/lib/models/person.d.ts +1700 -0
  41. package/lib/models/person.js +26 -0
  42. package/lib/models/person.js.map +1 -0
  43. package/package.json +4 -3
@@ -0,0 +1,1700 @@
1
+ import { z } from "zod";
2
+ export declare const personLinksSchema: z.ZodObject<{
3
+ self: z.ZodObject<{
4
+ href: 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.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.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.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.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.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.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.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.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.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
+ enrolled?: boolean;
529
+ enrollmentSummary?: {
530
+ dateEnrolled?: string;
531
+ enroller?: string;
532
+ dateUnenrolled?: string;
533
+ unenroller?: string;
534
+ };
535
+ details?: {
536
+ name?: {
537
+ family?: string[];
538
+ use?: string;
539
+ period?: {
540
+ end?: string;
541
+ start?: string;
542
+ };
543
+ text?: string;
544
+ given?: string[];
545
+ prefix?: string;
546
+ suffix?: string;
547
+ }[];
548
+ identifier?: {
549
+ key?: string;
550
+ use?: string;
551
+ label?: string;
552
+ system?: string;
553
+ period?: {
554
+ end?: string;
555
+ start?: string;
556
+ };
557
+ assigner?: string;
558
+ }[];
559
+ telecom?: {
560
+ value?: string;
561
+ use?: string;
562
+ system?: string;
563
+ period?: {
564
+ end?: string;
565
+ start?: string;
566
+ };
567
+ }[];
568
+ gender?: {
569
+ code?: string;
570
+ system?: string;
571
+ display?: string;
572
+ };
573
+ birthDate?: string;
574
+ address?: {
575
+ line?: string[];
576
+ use?: string;
577
+ period?: {
578
+ end?: string;
579
+ start?: string;
580
+ };
581
+ city?: string;
582
+ state?: string;
583
+ zip?: string;
584
+ country?: string;
585
+ }[];
586
+ picture?: any;
587
+ };
588
+ _links?: {
589
+ self?: {
590
+ type?: string;
591
+ href?: string;
592
+ templated?: boolean;
593
+ };
594
+ patientLink?: {
595
+ type?: string;
596
+ href?: string;
597
+ templated?: boolean;
598
+ };
599
+ patientMatch?: {
600
+ type?: string;
601
+ href?: string;
602
+ templated?: boolean;
603
+ };
604
+ unenroll?: {
605
+ type?: string;
606
+ href?: string;
607
+ templated?: boolean;
608
+ };
609
+ enroll?: {
610
+ type?: string;
611
+ href?: string;
612
+ templated?: boolean;
613
+ };
614
+ };
615
+ }, {
616
+ enrolled?: boolean;
617
+ enrollmentSummary?: {
618
+ dateEnrolled?: string;
619
+ enroller?: string;
620
+ dateUnenrolled?: string;
621
+ unenroller?: string;
622
+ };
623
+ details?: {
624
+ name?: {
625
+ family?: string[];
626
+ use?: string;
627
+ period?: {
628
+ end?: string;
629
+ start?: string;
630
+ };
631
+ text?: string;
632
+ given?: string[];
633
+ prefix?: string;
634
+ suffix?: string;
635
+ }[];
636
+ identifier?: {
637
+ key?: string;
638
+ use?: string;
639
+ label?: string;
640
+ system?: string;
641
+ period?: {
642
+ end?: string;
643
+ start?: string;
644
+ };
645
+ assigner?: string;
646
+ }[];
647
+ telecom?: {
648
+ value?: string;
649
+ use?: string;
650
+ system?: string;
651
+ period?: {
652
+ end?: string;
653
+ start?: string;
654
+ };
655
+ }[];
656
+ gender?: {
657
+ code?: string;
658
+ system?: string;
659
+ display?: string;
660
+ };
661
+ birthDate?: string;
662
+ address?: {
663
+ line?: string[];
664
+ use?: string;
665
+ period?: {
666
+ end?: string;
667
+ start?: string;
668
+ };
669
+ city?: string;
670
+ state?: string;
671
+ zip?: string;
672
+ country?: string;
673
+ }[];
674
+ picture?: any;
675
+ };
676
+ _links?: {
677
+ self?: {
678
+ type?: string;
679
+ href?: string;
680
+ templated?: boolean;
681
+ };
682
+ patientLink?: {
683
+ type?: string;
684
+ href?: string;
685
+ templated?: boolean;
686
+ };
687
+ patientMatch?: {
688
+ type?: string;
689
+ href?: string;
690
+ templated?: boolean;
691
+ };
692
+ unenroll?: {
693
+ type?: string;
694
+ href?: string;
695
+ templated?: boolean;
696
+ };
697
+ enroll?: {
698
+ type?: string;
699
+ href?: string;
700
+ templated?: boolean;
701
+ };
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.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.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.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.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.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
+ enrolled?: boolean;
1116
+ enrollmentSummary?: {
1117
+ dateEnrolled?: string;
1118
+ enroller?: string;
1119
+ dateUnenrolled?: string;
1120
+ unenroller?: string;
1121
+ };
1122
+ details?: {
1123
+ name?: {
1124
+ family?: string[];
1125
+ use?: string;
1126
+ period?: {
1127
+ end?: string;
1128
+ start?: string;
1129
+ };
1130
+ text?: string;
1131
+ given?: string[];
1132
+ prefix?: string;
1133
+ suffix?: string;
1134
+ }[];
1135
+ identifier?: {
1136
+ key?: string;
1137
+ use?: string;
1138
+ label?: string;
1139
+ system?: string;
1140
+ period?: {
1141
+ end?: string;
1142
+ start?: string;
1143
+ };
1144
+ assigner?: string;
1145
+ }[];
1146
+ telecom?: {
1147
+ value?: string;
1148
+ use?: string;
1149
+ system?: string;
1150
+ period?: {
1151
+ end?: string;
1152
+ start?: string;
1153
+ };
1154
+ }[];
1155
+ gender?: {
1156
+ code?: string;
1157
+ system?: string;
1158
+ display?: string;
1159
+ };
1160
+ birthDate?: string;
1161
+ address?: {
1162
+ line?: string[];
1163
+ use?: string;
1164
+ period?: {
1165
+ end?: string;
1166
+ start?: string;
1167
+ };
1168
+ city?: string;
1169
+ state?: string;
1170
+ zip?: string;
1171
+ country?: string;
1172
+ }[];
1173
+ picture?: any;
1174
+ };
1175
+ _links?: {
1176
+ self?: {
1177
+ type?: string;
1178
+ href?: string;
1179
+ templated?: boolean;
1180
+ };
1181
+ patientLink?: {
1182
+ type?: string;
1183
+ href?: string;
1184
+ templated?: boolean;
1185
+ };
1186
+ patientMatch?: {
1187
+ type?: string;
1188
+ href?: string;
1189
+ templated?: boolean;
1190
+ };
1191
+ unenroll?: {
1192
+ type?: string;
1193
+ href?: string;
1194
+ templated?: boolean;
1195
+ };
1196
+ enroll?: {
1197
+ type?: string;
1198
+ href?: string;
1199
+ templated?: boolean;
1200
+ };
1201
+ };
1202
+ }, {
1203
+ enrolled?: boolean;
1204
+ enrollmentSummary?: {
1205
+ dateEnrolled?: string;
1206
+ enroller?: string;
1207
+ dateUnenrolled?: string;
1208
+ unenroller?: string;
1209
+ };
1210
+ details?: {
1211
+ name?: {
1212
+ family?: string[];
1213
+ use?: string;
1214
+ period?: {
1215
+ end?: string;
1216
+ start?: string;
1217
+ };
1218
+ text?: string;
1219
+ given?: string[];
1220
+ prefix?: string;
1221
+ suffix?: string;
1222
+ }[];
1223
+ identifier?: {
1224
+ key?: string;
1225
+ use?: string;
1226
+ label?: string;
1227
+ system?: string;
1228
+ period?: {
1229
+ end?: string;
1230
+ start?: string;
1231
+ };
1232
+ assigner?: string;
1233
+ }[];
1234
+ telecom?: {
1235
+ value?: string;
1236
+ use?: string;
1237
+ system?: string;
1238
+ period?: {
1239
+ end?: string;
1240
+ start?: string;
1241
+ };
1242
+ }[];
1243
+ gender?: {
1244
+ code?: string;
1245
+ system?: string;
1246
+ display?: string;
1247
+ };
1248
+ birthDate?: string;
1249
+ address?: {
1250
+ line?: string[];
1251
+ use?: string;
1252
+ period?: {
1253
+ end?: string;
1254
+ start?: string;
1255
+ };
1256
+ city?: string;
1257
+ state?: string;
1258
+ zip?: string;
1259
+ country?: string;
1260
+ }[];
1261
+ picture?: any;
1262
+ };
1263
+ _links?: {
1264
+ self?: {
1265
+ type?: string;
1266
+ href?: string;
1267
+ templated?: boolean;
1268
+ };
1269
+ patientLink?: {
1270
+ type?: string;
1271
+ href?: string;
1272
+ templated?: boolean;
1273
+ };
1274
+ patientMatch?: {
1275
+ type?: string;
1276
+ href?: string;
1277
+ templated?: boolean;
1278
+ };
1279
+ unenroll?: {
1280
+ type?: string;
1281
+ href?: string;
1282
+ templated?: boolean;
1283
+ };
1284
+ enroll?: {
1285
+ type?: string;
1286
+ href?: string;
1287
+ templated?: boolean;
1288
+ };
1289
+ };
1290
+ }>, "many">;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ person?: {
1293
+ enrolled?: boolean;
1294
+ enrollmentSummary?: {
1295
+ dateEnrolled?: string;
1296
+ enroller?: string;
1297
+ dateUnenrolled?: string;
1298
+ unenroller?: string;
1299
+ };
1300
+ details?: {
1301
+ name?: {
1302
+ family?: string[];
1303
+ use?: string;
1304
+ period?: {
1305
+ end?: string;
1306
+ start?: string;
1307
+ };
1308
+ text?: string;
1309
+ given?: string[];
1310
+ prefix?: string;
1311
+ suffix?: string;
1312
+ }[];
1313
+ identifier?: {
1314
+ key?: string;
1315
+ use?: string;
1316
+ label?: string;
1317
+ system?: string;
1318
+ period?: {
1319
+ end?: string;
1320
+ start?: string;
1321
+ };
1322
+ assigner?: string;
1323
+ }[];
1324
+ telecom?: {
1325
+ value?: string;
1326
+ use?: string;
1327
+ system?: string;
1328
+ period?: {
1329
+ end?: string;
1330
+ start?: string;
1331
+ };
1332
+ }[];
1333
+ gender?: {
1334
+ code?: string;
1335
+ system?: string;
1336
+ display?: string;
1337
+ };
1338
+ birthDate?: string;
1339
+ address?: {
1340
+ line?: string[];
1341
+ use?: string;
1342
+ period?: {
1343
+ end?: string;
1344
+ start?: string;
1345
+ };
1346
+ city?: string;
1347
+ state?: string;
1348
+ zip?: string;
1349
+ country?: string;
1350
+ }[];
1351
+ picture?: any;
1352
+ };
1353
+ _links?: {
1354
+ self?: {
1355
+ type?: string;
1356
+ href?: string;
1357
+ templated?: boolean;
1358
+ };
1359
+ patientLink?: {
1360
+ type?: string;
1361
+ href?: string;
1362
+ templated?: boolean;
1363
+ };
1364
+ patientMatch?: {
1365
+ type?: string;
1366
+ href?: string;
1367
+ templated?: boolean;
1368
+ };
1369
+ unenroll?: {
1370
+ type?: string;
1371
+ href?: string;
1372
+ templated?: boolean;
1373
+ };
1374
+ enroll?: {
1375
+ type?: string;
1376
+ href?: string;
1377
+ templated?: boolean;
1378
+ };
1379
+ };
1380
+ }[];
1381
+ }, {
1382
+ person?: {
1383
+ enrolled?: boolean;
1384
+ enrollmentSummary?: {
1385
+ dateEnrolled?: string;
1386
+ enroller?: string;
1387
+ dateUnenrolled?: string;
1388
+ unenroller?: string;
1389
+ };
1390
+ details?: {
1391
+ name?: {
1392
+ family?: string[];
1393
+ use?: string;
1394
+ period?: {
1395
+ end?: string;
1396
+ start?: string;
1397
+ };
1398
+ text?: string;
1399
+ given?: string[];
1400
+ prefix?: string;
1401
+ suffix?: string;
1402
+ }[];
1403
+ identifier?: {
1404
+ key?: string;
1405
+ use?: string;
1406
+ label?: string;
1407
+ system?: string;
1408
+ period?: {
1409
+ end?: string;
1410
+ start?: string;
1411
+ };
1412
+ assigner?: string;
1413
+ }[];
1414
+ telecom?: {
1415
+ value?: string;
1416
+ use?: string;
1417
+ system?: string;
1418
+ period?: {
1419
+ end?: string;
1420
+ start?: string;
1421
+ };
1422
+ }[];
1423
+ gender?: {
1424
+ code?: string;
1425
+ system?: string;
1426
+ display?: string;
1427
+ };
1428
+ birthDate?: string;
1429
+ address?: {
1430
+ line?: string[];
1431
+ use?: string;
1432
+ period?: {
1433
+ end?: string;
1434
+ start?: string;
1435
+ };
1436
+ city?: string;
1437
+ state?: string;
1438
+ zip?: string;
1439
+ country?: string;
1440
+ }[];
1441
+ picture?: any;
1442
+ };
1443
+ _links?: {
1444
+ self?: {
1445
+ type?: string;
1446
+ href?: string;
1447
+ templated?: boolean;
1448
+ };
1449
+ patientLink?: {
1450
+ type?: string;
1451
+ href?: string;
1452
+ templated?: boolean;
1453
+ };
1454
+ patientMatch?: {
1455
+ type?: string;
1456
+ href?: string;
1457
+ templated?: boolean;
1458
+ };
1459
+ unenroll?: {
1460
+ type?: string;
1461
+ href?: string;
1462
+ templated?: boolean;
1463
+ };
1464
+ enroll?: {
1465
+ type?: string;
1466
+ href?: string;
1467
+ templated?: boolean;
1468
+ };
1469
+ };
1470
+ }[];
1471
+ }>;
1472
+ _links: z.ZodObject<{
1473
+ self: z.ZodObject<{
1474
+ href: 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
+ enrolled?: boolean;
1511
+ enrollmentSummary?: {
1512
+ dateEnrolled?: string;
1513
+ enroller?: string;
1514
+ dateUnenrolled?: string;
1515
+ unenroller?: string;
1516
+ };
1517
+ details?: {
1518
+ name?: {
1519
+ family?: string[];
1520
+ use?: string;
1521
+ period?: {
1522
+ end?: string;
1523
+ start?: string;
1524
+ };
1525
+ text?: string;
1526
+ given?: string[];
1527
+ prefix?: string;
1528
+ suffix?: string;
1529
+ }[];
1530
+ identifier?: {
1531
+ key?: string;
1532
+ use?: string;
1533
+ label?: string;
1534
+ system?: string;
1535
+ period?: {
1536
+ end?: string;
1537
+ start?: string;
1538
+ };
1539
+ assigner?: string;
1540
+ }[];
1541
+ telecom?: {
1542
+ value?: string;
1543
+ use?: string;
1544
+ system?: string;
1545
+ period?: {
1546
+ end?: string;
1547
+ start?: string;
1548
+ };
1549
+ }[];
1550
+ gender?: {
1551
+ code?: string;
1552
+ system?: string;
1553
+ display?: string;
1554
+ };
1555
+ birthDate?: string;
1556
+ address?: {
1557
+ line?: string[];
1558
+ use?: string;
1559
+ period?: {
1560
+ end?: string;
1561
+ start?: string;
1562
+ };
1563
+ city?: string;
1564
+ state?: string;
1565
+ zip?: string;
1566
+ country?: string;
1567
+ }[];
1568
+ picture?: any;
1569
+ };
1570
+ _links?: {
1571
+ self?: {
1572
+ type?: string;
1573
+ href?: string;
1574
+ templated?: boolean;
1575
+ };
1576
+ patientLink?: {
1577
+ type?: string;
1578
+ href?: string;
1579
+ templated?: boolean;
1580
+ };
1581
+ patientMatch?: {
1582
+ type?: string;
1583
+ href?: string;
1584
+ templated?: boolean;
1585
+ };
1586
+ unenroll?: {
1587
+ type?: string;
1588
+ href?: string;
1589
+ templated?: boolean;
1590
+ };
1591
+ enroll?: {
1592
+ type?: string;
1593
+ href?: string;
1594
+ templated?: boolean;
1595
+ };
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
+ enrolled?: boolean;
1611
+ enrollmentSummary?: {
1612
+ dateEnrolled?: string;
1613
+ enroller?: string;
1614
+ dateUnenrolled?: string;
1615
+ unenroller?: string;
1616
+ };
1617
+ details?: {
1618
+ name?: {
1619
+ family?: string[];
1620
+ use?: string;
1621
+ period?: {
1622
+ end?: string;
1623
+ start?: string;
1624
+ };
1625
+ text?: string;
1626
+ given?: string[];
1627
+ prefix?: string;
1628
+ suffix?: string;
1629
+ }[];
1630
+ identifier?: {
1631
+ key?: string;
1632
+ use?: string;
1633
+ label?: string;
1634
+ system?: string;
1635
+ period?: {
1636
+ end?: string;
1637
+ start?: string;
1638
+ };
1639
+ assigner?: string;
1640
+ }[];
1641
+ telecom?: {
1642
+ value?: string;
1643
+ use?: string;
1644
+ system?: string;
1645
+ period?: {
1646
+ end?: string;
1647
+ start?: string;
1648
+ };
1649
+ }[];
1650
+ gender?: {
1651
+ code?: string;
1652
+ system?: string;
1653
+ display?: string;
1654
+ };
1655
+ birthDate?: string;
1656
+ address?: {
1657
+ line?: string[];
1658
+ use?: string;
1659
+ period?: {
1660
+ end?: string;
1661
+ start?: string;
1662
+ };
1663
+ city?: string;
1664
+ state?: string;
1665
+ zip?: string;
1666
+ country?: string;
1667
+ }[];
1668
+ picture?: any;
1669
+ };
1670
+ _links?: {
1671
+ self?: {
1672
+ type?: string;
1673
+ href?: string;
1674
+ templated?: boolean;
1675
+ };
1676
+ patientLink?: {
1677
+ type?: string;
1678
+ href?: string;
1679
+ templated?: boolean;
1680
+ };
1681
+ patientMatch?: {
1682
+ type?: string;
1683
+ href?: string;
1684
+ templated?: boolean;
1685
+ };
1686
+ unenroll?: {
1687
+ type?: string;
1688
+ href?: string;
1689
+ templated?: boolean;
1690
+ };
1691
+ enroll?: {
1692
+ type?: string;
1693
+ href?: string;
1694
+ templated?: boolean;
1695
+ };
1696
+ };
1697
+ }[];
1698
+ };
1699
+ }>;
1700
+ export type PersonSearchResp = z.infer<typeof personSearchRespSchema>;