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