@digitalmedika/satusehat 0.1.0 → 0.2.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 (50) hide show
  1. package/README.md +118 -2
  2. package/dist/builders/chest-xray-study-builder.d.ts +16 -0
  3. package/dist/builders/encounter-builder.d.ts +124 -0
  4. package/dist/builders/risk-assessment-builder.d.ts +39 -0
  5. package/dist/builders/service-request-imaging-study-diagnostic-report-builder.d.ts +49 -0
  6. package/dist/client/create-client.d.ts +1 -0
  7. package/dist/client/transport.d.ts +9 -0
  8. package/dist/core/types.d.ts +160 -0
  9. package/dist/endpoints/allergy-intolerance.d.ts +720 -0
  10. package/dist/endpoints/clinical-impression.d.ts +530 -0
  11. package/dist/endpoints/composition.d.ts +3 -0
  12. package/dist/endpoints/condition.d.ts +195 -195
  13. package/dist/endpoints/diagnostic-report.d.ts +70 -70
  14. package/dist/endpoints/dicom-router.d.ts +6 -0
  15. package/dist/endpoints/encounter.d.ts +156 -115
  16. package/dist/endpoints/imaging-study.d.ts +790 -0
  17. package/dist/endpoints/location.d.ts +30 -30
  18. package/dist/endpoints/medication-administration.d.ts +910 -0
  19. package/dist/endpoints/medication-request.d.ts +260 -260
  20. package/dist/endpoints/nutrition-order.d.ts +1510 -0
  21. package/dist/endpoints/observation.d.ts +230 -230
  22. package/dist/endpoints/organization.d.ts +20 -20
  23. package/dist/endpoints/practitioner-role.d.ts +25 -25
  24. package/dist/endpoints/procedure.d.ts +215 -215
  25. package/dist/endpoints/questionnaire-response.d.ts +195 -0
  26. package/dist/endpoints/risk-assessment.d.ts +770 -0
  27. package/dist/endpoints/service-request.d.ts +190 -190
  28. package/dist/endpoints/specimen.d.ts +105 -105
  29. package/dist/index.d.ts +19 -3
  30. package/dist/index.js +13 -1
  31. package/dist/schemas/allergy-intolerance.d.ts +4148 -0
  32. package/dist/schemas/clinical-impression.d.ts +2666 -0
  33. package/dist/schemas/composition.d.ts +2914 -0
  34. package/dist/schemas/condition.d.ts +476 -476
  35. package/dist/schemas/diagnostic-report.d.ts +172 -172
  36. package/dist/schemas/encounter.d.ts +1124 -564
  37. package/dist/schemas/imaging-study.d.ts +4609 -0
  38. package/dist/schemas/location.d.ts +72 -72
  39. package/dist/schemas/medication-administration.d.ts +5420 -0
  40. package/dist/schemas/medication-request.d.ts +1083 -1083
  41. package/dist/schemas/nutrition-order.d.ts +12261 -0
  42. package/dist/schemas/observation.d.ts +598 -598
  43. package/dist/schemas/organization.d.ts +60 -60
  44. package/dist/schemas/practitioner-role.d.ts +60 -60
  45. package/dist/schemas/procedure.d.ts +536 -536
  46. package/dist/schemas/questionnaire-response.d.ts +939 -0
  47. package/dist/schemas/risk-assessment.d.ts +4591 -0
  48. package/dist/schemas/service-request.d.ts +470 -470
  49. package/dist/schemas/specimen.d.ts +312 -312
  50. package/package.json +8 -1
@@ -0,0 +1,2914 @@
1
+ import { z } from "zod";
2
+ import { CodeableConceptSchema, ReferenceSchema } from "./common";
3
+ export declare const CompositionIdentifierSchema: z.ZodObject<{
4
+ use: z.ZodOptional<z.ZodString>;
5
+ } & {
6
+ system: z.ZodOptional<z.ZodString>;
7
+ value: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: string;
10
+ system?: string | undefined;
11
+ use?: string | undefined;
12
+ }, {
13
+ value: string;
14
+ system?: string | undefined;
15
+ use?: string | undefined;
16
+ }>;
17
+ export declare const CompositionStatusSchema: z.ZodEnum<["preliminary", "final", "amended", "entered-in-error"]>;
18
+ export declare const CompositionCodingSchema: z.ZodObject<{
19
+ system: z.ZodString;
20
+ code: z.ZodString;
21
+ display: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ code: string;
24
+ system: string;
25
+ display?: string | undefined;
26
+ }, {
27
+ code: string;
28
+ system: string;
29
+ display?: string | undefined;
30
+ }>;
31
+ export declare const CompositionRequiredCodeableConceptSchema: z.ZodObject<{
32
+ text: z.ZodOptional<z.ZodString>;
33
+ } & {
34
+ coding: z.ZodArray<z.ZodObject<{
35
+ system: z.ZodString;
36
+ code: z.ZodString;
37
+ display: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ code: string;
40
+ system: string;
41
+ display?: string | undefined;
42
+ }, {
43
+ code: string;
44
+ system: string;
45
+ display?: string | undefined;
46
+ }>, "many">;
47
+ }, "strip", z.ZodTypeAny, {
48
+ coding: {
49
+ code: string;
50
+ system: string;
51
+ display?: string | undefined;
52
+ }[];
53
+ text?: string | undefined;
54
+ }, {
55
+ coding: {
56
+ code: string;
57
+ system: string;
58
+ display?: string | undefined;
59
+ }[];
60
+ text?: string | undefined;
61
+ }>;
62
+ export declare const CompositionAttesterModeSchema: z.ZodEnum<["personal", "professional", "legal", "official"]>;
63
+ export declare const CompositionAttesterSchema: z.ZodObject<{
64
+ mode: z.ZodEnum<["personal", "professional", "legal", "official"]>;
65
+ time: z.ZodOptional<z.ZodString>;
66
+ party: z.ZodOptional<z.ZodObject<{
67
+ reference: z.ZodString;
68
+ display: z.ZodOptional<z.ZodString>;
69
+ type: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ reference: string;
72
+ type?: string | undefined;
73
+ display?: string | undefined;
74
+ }, {
75
+ reference: string;
76
+ type?: string | undefined;
77
+ display?: string | undefined;
78
+ }>>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ mode: "personal" | "professional" | "legal" | "official";
81
+ time?: string | undefined;
82
+ party?: {
83
+ reference: string;
84
+ type?: string | undefined;
85
+ display?: string | undefined;
86
+ } | undefined;
87
+ }, {
88
+ mode: "personal" | "professional" | "legal" | "official";
89
+ time?: string | undefined;
90
+ party?: {
91
+ reference: string;
92
+ type?: string | undefined;
93
+ display?: string | undefined;
94
+ } | undefined;
95
+ }>;
96
+ export declare const CompositionRelatesToCodeSchema: z.ZodEnum<["replaces", "transforms", "signs", "appends"]>;
97
+ export declare const CompositionRelatesToSchema: z.ZodEffects<z.ZodObject<{
98
+ code: z.ZodEnum<["replaces", "transforms", "signs", "appends"]>;
99
+ targetIdentifier: z.ZodOptional<z.ZodObject<{
100
+ system: z.ZodOptional<z.ZodString>;
101
+ use: z.ZodOptional<z.ZodString>;
102
+ value: z.ZodOptional<z.ZodString>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ value?: string | undefined;
105
+ system?: string | undefined;
106
+ use?: string | undefined;
107
+ }, {
108
+ value?: string | undefined;
109
+ system?: string | undefined;
110
+ use?: string | undefined;
111
+ }>>;
112
+ targetReference: z.ZodOptional<z.ZodObject<{
113
+ reference: z.ZodString;
114
+ display: z.ZodOptional<z.ZodString>;
115
+ type: z.ZodOptional<z.ZodString>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ reference: string;
118
+ type?: string | undefined;
119
+ display?: string | undefined;
120
+ }, {
121
+ reference: string;
122
+ type?: string | undefined;
123
+ display?: string | undefined;
124
+ }>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ code: "replaces" | "transforms" | "signs" | "appends";
127
+ targetIdentifier?: {
128
+ value?: string | undefined;
129
+ system?: string | undefined;
130
+ use?: string | undefined;
131
+ } | undefined;
132
+ targetReference?: {
133
+ reference: string;
134
+ type?: string | undefined;
135
+ display?: string | undefined;
136
+ } | undefined;
137
+ }, {
138
+ code: "replaces" | "transforms" | "signs" | "appends";
139
+ targetIdentifier?: {
140
+ value?: string | undefined;
141
+ system?: string | undefined;
142
+ use?: string | undefined;
143
+ } | undefined;
144
+ targetReference?: {
145
+ reference: string;
146
+ type?: string | undefined;
147
+ display?: string | undefined;
148
+ } | undefined;
149
+ }>, {
150
+ code: "replaces" | "transforms" | "signs" | "appends";
151
+ targetIdentifier?: {
152
+ value?: string | undefined;
153
+ system?: string | undefined;
154
+ use?: string | undefined;
155
+ } | undefined;
156
+ targetReference?: {
157
+ reference: string;
158
+ type?: string | undefined;
159
+ display?: string | undefined;
160
+ } | undefined;
161
+ }, {
162
+ code: "replaces" | "transforms" | "signs" | "appends";
163
+ targetIdentifier?: {
164
+ value?: string | undefined;
165
+ system?: string | undefined;
166
+ use?: string | undefined;
167
+ } | undefined;
168
+ targetReference?: {
169
+ reference: string;
170
+ type?: string | undefined;
171
+ display?: string | undefined;
172
+ } | undefined;
173
+ }>;
174
+ export declare const CompositionEventSchema: z.ZodObject<{
175
+ code: z.ZodOptional<z.ZodArray<z.ZodObject<{
176
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
+ system: z.ZodOptional<z.ZodString>;
178
+ code: z.ZodOptional<z.ZodString>;
179
+ display: z.ZodOptional<z.ZodString>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ code?: string | undefined;
182
+ system?: string | undefined;
183
+ display?: string | undefined;
184
+ }, {
185
+ code?: string | undefined;
186
+ system?: string | undefined;
187
+ display?: string | undefined;
188
+ }>, "many">>;
189
+ text: z.ZodOptional<z.ZodString>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ coding?: {
192
+ code?: string | undefined;
193
+ system?: string | undefined;
194
+ display?: string | undefined;
195
+ }[] | undefined;
196
+ text?: string | undefined;
197
+ }, {
198
+ coding?: {
199
+ code?: string | undefined;
200
+ system?: string | undefined;
201
+ display?: string | undefined;
202
+ }[] | undefined;
203
+ text?: string | undefined;
204
+ }>, "many">>;
205
+ period: z.ZodOptional<z.ZodObject<{
206
+ start: z.ZodOptional<z.ZodString>;
207
+ end: z.ZodOptional<z.ZodString>;
208
+ }, "strip", z.ZodTypeAny, {
209
+ start?: string | undefined;
210
+ end?: string | undefined;
211
+ }, {
212
+ start?: string | undefined;
213
+ end?: string | undefined;
214
+ }>>;
215
+ detail: z.ZodOptional<z.ZodArray<z.ZodObject<{
216
+ reference: z.ZodString;
217
+ display: z.ZodOptional<z.ZodString>;
218
+ type: z.ZodOptional<z.ZodString>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ reference: string;
221
+ type?: string | undefined;
222
+ display?: string | undefined;
223
+ }, {
224
+ reference: string;
225
+ type?: string | undefined;
226
+ display?: string | undefined;
227
+ }>, "many">>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ code?: {
230
+ coding?: {
231
+ code?: string | undefined;
232
+ system?: string | undefined;
233
+ display?: string | undefined;
234
+ }[] | undefined;
235
+ text?: string | undefined;
236
+ }[] | undefined;
237
+ period?: {
238
+ start?: string | undefined;
239
+ end?: string | undefined;
240
+ } | undefined;
241
+ detail?: {
242
+ reference: string;
243
+ type?: string | undefined;
244
+ display?: string | undefined;
245
+ }[] | undefined;
246
+ }, {
247
+ code?: {
248
+ coding?: {
249
+ code?: string | undefined;
250
+ system?: string | undefined;
251
+ display?: string | undefined;
252
+ }[] | undefined;
253
+ text?: string | undefined;
254
+ }[] | undefined;
255
+ period?: {
256
+ start?: string | undefined;
257
+ end?: string | undefined;
258
+ } | undefined;
259
+ detail?: {
260
+ reference: string;
261
+ type?: string | undefined;
262
+ display?: string | undefined;
263
+ }[] | undefined;
264
+ }>;
265
+ export declare const CompositionNarrativeStatusSchema: z.ZodEnum<["generated", "extensions", "additional", "empty"]>;
266
+ export declare const CompositionNarrativeSchema: z.ZodObject<{
267
+ status: z.ZodEnum<["generated", "extensions", "additional", "empty"]>;
268
+ div: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ status: "generated" | "extensions" | "additional" | "empty";
271
+ div: string;
272
+ }, {
273
+ status: "generated" | "extensions" | "additional" | "empty";
274
+ div: string;
275
+ }>;
276
+ export declare const CompositionSectionModeSchema: z.ZodEnum<["working", "snapshot", "changes"]>;
277
+ type CompositionSectionShape = {
278
+ title?: string | undefined;
279
+ code?: z.infer<typeof CodeableConceptSchema> | undefined;
280
+ author?: z.infer<typeof ReferenceSchema>[] | undefined;
281
+ focus?: z.infer<typeof ReferenceSchema> | undefined;
282
+ text?: z.infer<typeof CompositionNarrativeSchema> | undefined;
283
+ mode?: z.infer<typeof CompositionSectionModeSchema> | undefined;
284
+ orderedBy?: z.infer<typeof CodeableConceptSchema> | undefined;
285
+ entry?: z.infer<typeof ReferenceSchema>[] | undefined;
286
+ emptyReason?: z.infer<typeof CodeableConceptSchema> | undefined;
287
+ section?: CompositionSectionShape[] | undefined;
288
+ };
289
+ export declare const CompositionSectionSchema: z.ZodType<CompositionSectionShape>;
290
+ export declare const CompositionPatchOperationSchema: z.ZodObject<{
291
+ op: z.ZodLiteral<"replace">;
292
+ path: z.ZodString;
293
+ value: z.ZodUnknown;
294
+ }, "strip", z.ZodTypeAny, {
295
+ path: string;
296
+ op: "replace";
297
+ value?: unknown;
298
+ }, {
299
+ path: string;
300
+ op: "replace";
301
+ value?: unknown;
302
+ }>;
303
+ export declare const CompositionPatchSchema: z.ZodArray<z.ZodObject<{
304
+ op: z.ZodLiteral<"replace">;
305
+ path: z.ZodString;
306
+ value: z.ZodUnknown;
307
+ }, "strip", z.ZodTypeAny, {
308
+ path: string;
309
+ op: "replace";
310
+ value?: unknown;
311
+ }, {
312
+ path: string;
313
+ op: "replace";
314
+ value?: unknown;
315
+ }>, "many">;
316
+ export declare const CompositionSearchParamsSchema: z.ZodEffects<z.ZodObject<{
317
+ subject: z.ZodOptional<z.ZodString>;
318
+ encounter: z.ZodOptional<z.ZodString>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ encounter?: string | undefined;
321
+ subject?: string | undefined;
322
+ }, {
323
+ encounter?: string | undefined;
324
+ subject?: string | undefined;
325
+ }>, {
326
+ encounter?: string | undefined;
327
+ subject?: string | undefined;
328
+ }, {
329
+ encounter?: string | undefined;
330
+ subject?: string | undefined;
331
+ }>;
332
+ export declare const CompositionBaseSchema: z.ZodObject<{
333
+ resourceType: z.ZodLiteral<"Composition">;
334
+ identifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ use: z.ZodOptional<z.ZodString>;
336
+ } & {
337
+ system: z.ZodOptional<z.ZodString>;
338
+ value: z.ZodString;
339
+ }, "strip", z.ZodTypeAny, {
340
+ value: string;
341
+ system?: string | undefined;
342
+ use?: string | undefined;
343
+ }, {
344
+ value: string;
345
+ system?: string | undefined;
346
+ use?: string | undefined;
347
+ }>, "many">>;
348
+ status: z.ZodEnum<["preliminary", "final", "amended", "entered-in-error"]>;
349
+ type: z.ZodObject<{
350
+ text: z.ZodOptional<z.ZodString>;
351
+ } & {
352
+ coding: z.ZodArray<z.ZodObject<{
353
+ system: z.ZodString;
354
+ code: z.ZodString;
355
+ display: z.ZodOptional<z.ZodString>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ code: string;
358
+ system: string;
359
+ display?: string | undefined;
360
+ }, {
361
+ code: string;
362
+ system: string;
363
+ display?: string | undefined;
364
+ }>, "many">;
365
+ }, "strip", z.ZodTypeAny, {
366
+ coding: {
367
+ code: string;
368
+ system: string;
369
+ display?: string | undefined;
370
+ }[];
371
+ text?: string | undefined;
372
+ }, {
373
+ coding: {
374
+ code: string;
375
+ system: string;
376
+ display?: string | undefined;
377
+ }[];
378
+ text?: string | undefined;
379
+ }>;
380
+ category: z.ZodOptional<z.ZodArray<z.ZodObject<{
381
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
382
+ system: z.ZodOptional<z.ZodString>;
383
+ code: z.ZodOptional<z.ZodString>;
384
+ display: z.ZodOptional<z.ZodString>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ code?: string | undefined;
387
+ system?: string | undefined;
388
+ display?: string | undefined;
389
+ }, {
390
+ code?: string | undefined;
391
+ system?: string | undefined;
392
+ display?: string | undefined;
393
+ }>, "many">>;
394
+ text: z.ZodOptional<z.ZodString>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ coding?: {
397
+ code?: string | undefined;
398
+ system?: string | undefined;
399
+ display?: string | undefined;
400
+ }[] | undefined;
401
+ text?: string | undefined;
402
+ }, {
403
+ coding?: {
404
+ code?: string | undefined;
405
+ system?: string | undefined;
406
+ display?: string | undefined;
407
+ }[] | undefined;
408
+ text?: string | undefined;
409
+ }>, "many">>;
410
+ subject: z.ZodOptional<z.ZodObject<{
411
+ reference: z.ZodString;
412
+ display: z.ZodOptional<z.ZodString>;
413
+ type: z.ZodOptional<z.ZodString>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ reference: string;
416
+ type?: string | undefined;
417
+ display?: string | undefined;
418
+ }, {
419
+ reference: string;
420
+ type?: string | undefined;
421
+ display?: string | undefined;
422
+ }>>;
423
+ encounter: z.ZodOptional<z.ZodObject<{
424
+ reference: z.ZodString;
425
+ display: z.ZodOptional<z.ZodString>;
426
+ type: z.ZodOptional<z.ZodString>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ reference: string;
429
+ type?: string | undefined;
430
+ display?: string | undefined;
431
+ }, {
432
+ reference: string;
433
+ type?: string | undefined;
434
+ display?: string | undefined;
435
+ }>>;
436
+ date: z.ZodString;
437
+ author: z.ZodArray<z.ZodObject<{
438
+ reference: z.ZodString;
439
+ display: z.ZodOptional<z.ZodString>;
440
+ type: z.ZodOptional<z.ZodString>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ reference: string;
443
+ type?: string | undefined;
444
+ display?: string | undefined;
445
+ }, {
446
+ reference: string;
447
+ type?: string | undefined;
448
+ display?: string | undefined;
449
+ }>, "many">;
450
+ title: z.ZodString;
451
+ confidentiality: z.ZodOptional<z.ZodString>;
452
+ attester: z.ZodOptional<z.ZodArray<z.ZodObject<{
453
+ mode: z.ZodEnum<["personal", "professional", "legal", "official"]>;
454
+ time: z.ZodOptional<z.ZodString>;
455
+ party: z.ZodOptional<z.ZodObject<{
456
+ reference: z.ZodString;
457
+ display: z.ZodOptional<z.ZodString>;
458
+ type: z.ZodOptional<z.ZodString>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ reference: string;
461
+ type?: string | undefined;
462
+ display?: string | undefined;
463
+ }, {
464
+ reference: string;
465
+ type?: string | undefined;
466
+ display?: string | undefined;
467
+ }>>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ mode: "personal" | "professional" | "legal" | "official";
470
+ time?: string | undefined;
471
+ party?: {
472
+ reference: string;
473
+ type?: string | undefined;
474
+ display?: string | undefined;
475
+ } | undefined;
476
+ }, {
477
+ mode: "personal" | "professional" | "legal" | "official";
478
+ time?: string | undefined;
479
+ party?: {
480
+ reference: string;
481
+ type?: string | undefined;
482
+ display?: string | undefined;
483
+ } | undefined;
484
+ }>, "many">>;
485
+ custodian: z.ZodOptional<z.ZodObject<{
486
+ reference: z.ZodString;
487
+ display: z.ZodOptional<z.ZodString>;
488
+ type: z.ZodOptional<z.ZodString>;
489
+ }, "strip", z.ZodTypeAny, {
490
+ reference: string;
491
+ type?: string | undefined;
492
+ display?: string | undefined;
493
+ }, {
494
+ reference: string;
495
+ type?: string | undefined;
496
+ display?: string | undefined;
497
+ }>>;
498
+ relatesTo: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
499
+ code: z.ZodEnum<["replaces", "transforms", "signs", "appends"]>;
500
+ targetIdentifier: z.ZodOptional<z.ZodObject<{
501
+ system: z.ZodOptional<z.ZodString>;
502
+ use: z.ZodOptional<z.ZodString>;
503
+ value: z.ZodOptional<z.ZodString>;
504
+ }, "strip", z.ZodTypeAny, {
505
+ value?: string | undefined;
506
+ system?: string | undefined;
507
+ use?: string | undefined;
508
+ }, {
509
+ value?: string | undefined;
510
+ system?: string | undefined;
511
+ use?: string | undefined;
512
+ }>>;
513
+ targetReference: z.ZodOptional<z.ZodObject<{
514
+ reference: z.ZodString;
515
+ display: z.ZodOptional<z.ZodString>;
516
+ type: z.ZodOptional<z.ZodString>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ reference: string;
519
+ type?: string | undefined;
520
+ display?: string | undefined;
521
+ }, {
522
+ reference: string;
523
+ type?: string | undefined;
524
+ display?: string | undefined;
525
+ }>>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ code: "replaces" | "transforms" | "signs" | "appends";
528
+ targetIdentifier?: {
529
+ value?: string | undefined;
530
+ system?: string | undefined;
531
+ use?: string | undefined;
532
+ } | undefined;
533
+ targetReference?: {
534
+ reference: string;
535
+ type?: string | undefined;
536
+ display?: string | undefined;
537
+ } | undefined;
538
+ }, {
539
+ code: "replaces" | "transforms" | "signs" | "appends";
540
+ targetIdentifier?: {
541
+ value?: string | undefined;
542
+ system?: string | undefined;
543
+ use?: string | undefined;
544
+ } | undefined;
545
+ targetReference?: {
546
+ reference: string;
547
+ type?: string | undefined;
548
+ display?: string | undefined;
549
+ } | undefined;
550
+ }>, {
551
+ code: "replaces" | "transforms" | "signs" | "appends";
552
+ targetIdentifier?: {
553
+ value?: string | undefined;
554
+ system?: string | undefined;
555
+ use?: string | undefined;
556
+ } | undefined;
557
+ targetReference?: {
558
+ reference: string;
559
+ type?: string | undefined;
560
+ display?: string | undefined;
561
+ } | undefined;
562
+ }, {
563
+ code: "replaces" | "transforms" | "signs" | "appends";
564
+ targetIdentifier?: {
565
+ value?: string | undefined;
566
+ system?: string | undefined;
567
+ use?: string | undefined;
568
+ } | undefined;
569
+ targetReference?: {
570
+ reference: string;
571
+ type?: string | undefined;
572
+ display?: string | undefined;
573
+ } | undefined;
574
+ }>, "many">>;
575
+ event: z.ZodOptional<z.ZodArray<z.ZodObject<{
576
+ code: z.ZodOptional<z.ZodArray<z.ZodObject<{
577
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
578
+ system: z.ZodOptional<z.ZodString>;
579
+ code: z.ZodOptional<z.ZodString>;
580
+ display: z.ZodOptional<z.ZodString>;
581
+ }, "strip", z.ZodTypeAny, {
582
+ code?: string | undefined;
583
+ system?: string | undefined;
584
+ display?: string | undefined;
585
+ }, {
586
+ code?: string | undefined;
587
+ system?: string | undefined;
588
+ display?: string | undefined;
589
+ }>, "many">>;
590
+ text: z.ZodOptional<z.ZodString>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ coding?: {
593
+ code?: string | undefined;
594
+ system?: string | undefined;
595
+ display?: string | undefined;
596
+ }[] | undefined;
597
+ text?: string | undefined;
598
+ }, {
599
+ coding?: {
600
+ code?: string | undefined;
601
+ system?: string | undefined;
602
+ display?: string | undefined;
603
+ }[] | undefined;
604
+ text?: string | undefined;
605
+ }>, "many">>;
606
+ period: z.ZodOptional<z.ZodObject<{
607
+ start: z.ZodOptional<z.ZodString>;
608
+ end: z.ZodOptional<z.ZodString>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ start?: string | undefined;
611
+ end?: string | undefined;
612
+ }, {
613
+ start?: string | undefined;
614
+ end?: string | undefined;
615
+ }>>;
616
+ detail: z.ZodOptional<z.ZodArray<z.ZodObject<{
617
+ reference: z.ZodString;
618
+ display: z.ZodOptional<z.ZodString>;
619
+ type: z.ZodOptional<z.ZodString>;
620
+ }, "strip", z.ZodTypeAny, {
621
+ reference: string;
622
+ type?: string | undefined;
623
+ display?: string | undefined;
624
+ }, {
625
+ reference: string;
626
+ type?: string | undefined;
627
+ display?: string | undefined;
628
+ }>, "many">>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ code?: {
631
+ coding?: {
632
+ code?: string | undefined;
633
+ system?: string | undefined;
634
+ display?: string | undefined;
635
+ }[] | undefined;
636
+ text?: string | undefined;
637
+ }[] | undefined;
638
+ period?: {
639
+ start?: string | undefined;
640
+ end?: string | undefined;
641
+ } | undefined;
642
+ detail?: {
643
+ reference: string;
644
+ type?: string | undefined;
645
+ display?: string | undefined;
646
+ }[] | undefined;
647
+ }, {
648
+ code?: {
649
+ coding?: {
650
+ code?: string | undefined;
651
+ system?: string | undefined;
652
+ display?: string | undefined;
653
+ }[] | undefined;
654
+ text?: string | undefined;
655
+ }[] | undefined;
656
+ period?: {
657
+ start?: string | undefined;
658
+ end?: string | undefined;
659
+ } | undefined;
660
+ detail?: {
661
+ reference: string;
662
+ type?: string | undefined;
663
+ display?: string | undefined;
664
+ }[] | undefined;
665
+ }>, "many">>;
666
+ section: z.ZodOptional<z.ZodArray<z.ZodType<CompositionSectionShape, z.ZodTypeDef, CompositionSectionShape>, "many">>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ type: {
669
+ coding: {
670
+ code: string;
671
+ system: string;
672
+ display?: string | undefined;
673
+ }[];
674
+ text?: string | undefined;
675
+ };
676
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
677
+ title: string;
678
+ resourceType: "Composition";
679
+ date: string;
680
+ author: {
681
+ reference: string;
682
+ type?: string | undefined;
683
+ display?: string | undefined;
684
+ }[];
685
+ identifier?: {
686
+ value: string;
687
+ system?: string | undefined;
688
+ use?: string | undefined;
689
+ }[] | undefined;
690
+ category?: {
691
+ coding?: {
692
+ code?: string | undefined;
693
+ system?: string | undefined;
694
+ display?: string | undefined;
695
+ }[] | undefined;
696
+ text?: string | undefined;
697
+ }[] | undefined;
698
+ encounter?: {
699
+ reference: string;
700
+ type?: string | undefined;
701
+ display?: string | undefined;
702
+ } | undefined;
703
+ subject?: {
704
+ reference: string;
705
+ type?: string | undefined;
706
+ display?: string | undefined;
707
+ } | undefined;
708
+ section?: CompositionSectionShape[] | undefined;
709
+ confidentiality?: string | undefined;
710
+ attester?: {
711
+ mode: "personal" | "professional" | "legal" | "official";
712
+ time?: string | undefined;
713
+ party?: {
714
+ reference: string;
715
+ type?: string | undefined;
716
+ display?: string | undefined;
717
+ } | undefined;
718
+ }[] | undefined;
719
+ custodian?: {
720
+ reference: string;
721
+ type?: string | undefined;
722
+ display?: string | undefined;
723
+ } | undefined;
724
+ relatesTo?: {
725
+ code: "replaces" | "transforms" | "signs" | "appends";
726
+ targetIdentifier?: {
727
+ value?: string | undefined;
728
+ system?: string | undefined;
729
+ use?: string | undefined;
730
+ } | undefined;
731
+ targetReference?: {
732
+ reference: string;
733
+ type?: string | undefined;
734
+ display?: string | undefined;
735
+ } | undefined;
736
+ }[] | undefined;
737
+ event?: {
738
+ code?: {
739
+ coding?: {
740
+ code?: string | undefined;
741
+ system?: string | undefined;
742
+ display?: string | undefined;
743
+ }[] | undefined;
744
+ text?: string | undefined;
745
+ }[] | undefined;
746
+ period?: {
747
+ start?: string | undefined;
748
+ end?: string | undefined;
749
+ } | undefined;
750
+ detail?: {
751
+ reference: string;
752
+ type?: string | undefined;
753
+ display?: string | undefined;
754
+ }[] | undefined;
755
+ }[] | undefined;
756
+ }, {
757
+ type: {
758
+ coding: {
759
+ code: string;
760
+ system: string;
761
+ display?: string | undefined;
762
+ }[];
763
+ text?: string | undefined;
764
+ };
765
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
766
+ title: string;
767
+ resourceType: "Composition";
768
+ date: string;
769
+ author: {
770
+ reference: string;
771
+ type?: string | undefined;
772
+ display?: string | undefined;
773
+ }[];
774
+ identifier?: {
775
+ value: string;
776
+ system?: string | undefined;
777
+ use?: string | undefined;
778
+ }[] | undefined;
779
+ category?: {
780
+ coding?: {
781
+ code?: string | undefined;
782
+ system?: string | undefined;
783
+ display?: string | undefined;
784
+ }[] | undefined;
785
+ text?: string | undefined;
786
+ }[] | undefined;
787
+ encounter?: {
788
+ reference: string;
789
+ type?: string | undefined;
790
+ display?: string | undefined;
791
+ } | undefined;
792
+ subject?: {
793
+ reference: string;
794
+ type?: string | undefined;
795
+ display?: string | undefined;
796
+ } | undefined;
797
+ section?: CompositionSectionShape[] | undefined;
798
+ confidentiality?: string | undefined;
799
+ attester?: {
800
+ mode: "personal" | "professional" | "legal" | "official";
801
+ time?: string | undefined;
802
+ party?: {
803
+ reference: string;
804
+ type?: string | undefined;
805
+ display?: string | undefined;
806
+ } | undefined;
807
+ }[] | undefined;
808
+ custodian?: {
809
+ reference: string;
810
+ type?: string | undefined;
811
+ display?: string | undefined;
812
+ } | undefined;
813
+ relatesTo?: {
814
+ code: "replaces" | "transforms" | "signs" | "appends";
815
+ targetIdentifier?: {
816
+ value?: string | undefined;
817
+ system?: string | undefined;
818
+ use?: string | undefined;
819
+ } | undefined;
820
+ targetReference?: {
821
+ reference: string;
822
+ type?: string | undefined;
823
+ display?: string | undefined;
824
+ } | undefined;
825
+ }[] | undefined;
826
+ event?: {
827
+ code?: {
828
+ coding?: {
829
+ code?: string | undefined;
830
+ system?: string | undefined;
831
+ display?: string | undefined;
832
+ }[] | undefined;
833
+ text?: string | undefined;
834
+ }[] | undefined;
835
+ period?: {
836
+ start?: string | undefined;
837
+ end?: string | undefined;
838
+ } | undefined;
839
+ detail?: {
840
+ reference: string;
841
+ type?: string | undefined;
842
+ display?: string | undefined;
843
+ }[] | undefined;
844
+ }[] | undefined;
845
+ }>;
846
+ export declare const CompositionCreateSchema: z.ZodObject<{
847
+ resourceType: z.ZodLiteral<"Composition">;
848
+ identifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
849
+ use: z.ZodOptional<z.ZodString>;
850
+ } & {
851
+ system: z.ZodOptional<z.ZodString>;
852
+ value: z.ZodString;
853
+ }, "strip", z.ZodTypeAny, {
854
+ value: string;
855
+ system?: string | undefined;
856
+ use?: string | undefined;
857
+ }, {
858
+ value: string;
859
+ system?: string | undefined;
860
+ use?: string | undefined;
861
+ }>, "many">>;
862
+ status: z.ZodEnum<["preliminary", "final", "amended", "entered-in-error"]>;
863
+ type: z.ZodObject<{
864
+ text: z.ZodOptional<z.ZodString>;
865
+ } & {
866
+ coding: z.ZodArray<z.ZodObject<{
867
+ system: z.ZodString;
868
+ code: z.ZodString;
869
+ display: z.ZodOptional<z.ZodString>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ code: string;
872
+ system: string;
873
+ display?: string | undefined;
874
+ }, {
875
+ code: string;
876
+ system: string;
877
+ display?: string | undefined;
878
+ }>, "many">;
879
+ }, "strip", z.ZodTypeAny, {
880
+ coding: {
881
+ code: string;
882
+ system: string;
883
+ display?: string | undefined;
884
+ }[];
885
+ text?: string | undefined;
886
+ }, {
887
+ coding: {
888
+ code: string;
889
+ system: string;
890
+ display?: string | undefined;
891
+ }[];
892
+ text?: string | undefined;
893
+ }>;
894
+ category: z.ZodOptional<z.ZodArray<z.ZodObject<{
895
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
896
+ system: z.ZodOptional<z.ZodString>;
897
+ code: z.ZodOptional<z.ZodString>;
898
+ display: z.ZodOptional<z.ZodString>;
899
+ }, "strip", z.ZodTypeAny, {
900
+ code?: string | undefined;
901
+ system?: string | undefined;
902
+ display?: string | undefined;
903
+ }, {
904
+ code?: string | undefined;
905
+ system?: string | undefined;
906
+ display?: string | undefined;
907
+ }>, "many">>;
908
+ text: z.ZodOptional<z.ZodString>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ coding?: {
911
+ code?: string | undefined;
912
+ system?: string | undefined;
913
+ display?: string | undefined;
914
+ }[] | undefined;
915
+ text?: string | undefined;
916
+ }, {
917
+ coding?: {
918
+ code?: string | undefined;
919
+ system?: string | undefined;
920
+ display?: string | undefined;
921
+ }[] | undefined;
922
+ text?: string | undefined;
923
+ }>, "many">>;
924
+ subject: z.ZodOptional<z.ZodObject<{
925
+ reference: z.ZodString;
926
+ display: z.ZodOptional<z.ZodString>;
927
+ type: z.ZodOptional<z.ZodString>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ reference: string;
930
+ type?: string | undefined;
931
+ display?: string | undefined;
932
+ }, {
933
+ reference: string;
934
+ type?: string | undefined;
935
+ display?: string | undefined;
936
+ }>>;
937
+ encounter: z.ZodOptional<z.ZodObject<{
938
+ reference: z.ZodString;
939
+ display: z.ZodOptional<z.ZodString>;
940
+ type: z.ZodOptional<z.ZodString>;
941
+ }, "strip", z.ZodTypeAny, {
942
+ reference: string;
943
+ type?: string | undefined;
944
+ display?: string | undefined;
945
+ }, {
946
+ reference: string;
947
+ type?: string | undefined;
948
+ display?: string | undefined;
949
+ }>>;
950
+ date: z.ZodString;
951
+ author: z.ZodArray<z.ZodObject<{
952
+ reference: z.ZodString;
953
+ display: z.ZodOptional<z.ZodString>;
954
+ type: z.ZodOptional<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ reference: string;
957
+ type?: string | undefined;
958
+ display?: string | undefined;
959
+ }, {
960
+ reference: string;
961
+ type?: string | undefined;
962
+ display?: string | undefined;
963
+ }>, "many">;
964
+ title: z.ZodString;
965
+ confidentiality: z.ZodOptional<z.ZodString>;
966
+ attester: z.ZodOptional<z.ZodArray<z.ZodObject<{
967
+ mode: z.ZodEnum<["personal", "professional", "legal", "official"]>;
968
+ time: z.ZodOptional<z.ZodString>;
969
+ party: z.ZodOptional<z.ZodObject<{
970
+ reference: z.ZodString;
971
+ display: z.ZodOptional<z.ZodString>;
972
+ type: z.ZodOptional<z.ZodString>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ reference: string;
975
+ type?: string | undefined;
976
+ display?: string | undefined;
977
+ }, {
978
+ reference: string;
979
+ type?: string | undefined;
980
+ display?: string | undefined;
981
+ }>>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ mode: "personal" | "professional" | "legal" | "official";
984
+ time?: string | undefined;
985
+ party?: {
986
+ reference: string;
987
+ type?: string | undefined;
988
+ display?: string | undefined;
989
+ } | undefined;
990
+ }, {
991
+ mode: "personal" | "professional" | "legal" | "official";
992
+ time?: string | undefined;
993
+ party?: {
994
+ reference: string;
995
+ type?: string | undefined;
996
+ display?: string | undefined;
997
+ } | undefined;
998
+ }>, "many">>;
999
+ custodian: z.ZodOptional<z.ZodObject<{
1000
+ reference: z.ZodString;
1001
+ display: z.ZodOptional<z.ZodString>;
1002
+ type: z.ZodOptional<z.ZodString>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ reference: string;
1005
+ type?: string | undefined;
1006
+ display?: string | undefined;
1007
+ }, {
1008
+ reference: string;
1009
+ type?: string | undefined;
1010
+ display?: string | undefined;
1011
+ }>>;
1012
+ relatesTo: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1013
+ code: z.ZodEnum<["replaces", "transforms", "signs", "appends"]>;
1014
+ targetIdentifier: z.ZodOptional<z.ZodObject<{
1015
+ system: z.ZodOptional<z.ZodString>;
1016
+ use: z.ZodOptional<z.ZodString>;
1017
+ value: z.ZodOptional<z.ZodString>;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ value?: string | undefined;
1020
+ system?: string | undefined;
1021
+ use?: string | undefined;
1022
+ }, {
1023
+ value?: string | undefined;
1024
+ system?: string | undefined;
1025
+ use?: string | undefined;
1026
+ }>>;
1027
+ targetReference: z.ZodOptional<z.ZodObject<{
1028
+ reference: z.ZodString;
1029
+ display: z.ZodOptional<z.ZodString>;
1030
+ type: z.ZodOptional<z.ZodString>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ reference: string;
1033
+ type?: string | undefined;
1034
+ display?: string | undefined;
1035
+ }, {
1036
+ reference: string;
1037
+ type?: string | undefined;
1038
+ display?: string | undefined;
1039
+ }>>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ code: "replaces" | "transforms" | "signs" | "appends";
1042
+ targetIdentifier?: {
1043
+ value?: string | undefined;
1044
+ system?: string | undefined;
1045
+ use?: string | undefined;
1046
+ } | undefined;
1047
+ targetReference?: {
1048
+ reference: string;
1049
+ type?: string | undefined;
1050
+ display?: string | undefined;
1051
+ } | undefined;
1052
+ }, {
1053
+ code: "replaces" | "transforms" | "signs" | "appends";
1054
+ targetIdentifier?: {
1055
+ value?: string | undefined;
1056
+ system?: string | undefined;
1057
+ use?: string | undefined;
1058
+ } | undefined;
1059
+ targetReference?: {
1060
+ reference: string;
1061
+ type?: string | undefined;
1062
+ display?: string | undefined;
1063
+ } | undefined;
1064
+ }>, {
1065
+ code: "replaces" | "transforms" | "signs" | "appends";
1066
+ targetIdentifier?: {
1067
+ value?: string | undefined;
1068
+ system?: string | undefined;
1069
+ use?: string | undefined;
1070
+ } | undefined;
1071
+ targetReference?: {
1072
+ reference: string;
1073
+ type?: string | undefined;
1074
+ display?: string | undefined;
1075
+ } | undefined;
1076
+ }, {
1077
+ code: "replaces" | "transforms" | "signs" | "appends";
1078
+ targetIdentifier?: {
1079
+ value?: string | undefined;
1080
+ system?: string | undefined;
1081
+ use?: string | undefined;
1082
+ } | undefined;
1083
+ targetReference?: {
1084
+ reference: string;
1085
+ type?: string | undefined;
1086
+ display?: string | undefined;
1087
+ } | undefined;
1088
+ }>, "many">>;
1089
+ event: z.ZodOptional<z.ZodArray<z.ZodObject<{
1090
+ code: z.ZodOptional<z.ZodArray<z.ZodObject<{
1091
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
1092
+ system: z.ZodOptional<z.ZodString>;
1093
+ code: z.ZodOptional<z.ZodString>;
1094
+ display: z.ZodOptional<z.ZodString>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ code?: string | undefined;
1097
+ system?: string | undefined;
1098
+ display?: string | undefined;
1099
+ }, {
1100
+ code?: string | undefined;
1101
+ system?: string | undefined;
1102
+ display?: string | undefined;
1103
+ }>, "many">>;
1104
+ text: z.ZodOptional<z.ZodString>;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ coding?: {
1107
+ code?: string | undefined;
1108
+ system?: string | undefined;
1109
+ display?: string | undefined;
1110
+ }[] | undefined;
1111
+ text?: string | undefined;
1112
+ }, {
1113
+ coding?: {
1114
+ code?: string | undefined;
1115
+ system?: string | undefined;
1116
+ display?: string | undefined;
1117
+ }[] | undefined;
1118
+ text?: string | undefined;
1119
+ }>, "many">>;
1120
+ period: z.ZodOptional<z.ZodObject<{
1121
+ start: z.ZodOptional<z.ZodString>;
1122
+ end: z.ZodOptional<z.ZodString>;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ start?: string | undefined;
1125
+ end?: string | undefined;
1126
+ }, {
1127
+ start?: string | undefined;
1128
+ end?: string | undefined;
1129
+ }>>;
1130
+ detail: z.ZodOptional<z.ZodArray<z.ZodObject<{
1131
+ reference: z.ZodString;
1132
+ display: z.ZodOptional<z.ZodString>;
1133
+ type: z.ZodOptional<z.ZodString>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ reference: string;
1136
+ type?: string | undefined;
1137
+ display?: string | undefined;
1138
+ }, {
1139
+ reference: string;
1140
+ type?: string | undefined;
1141
+ display?: string | undefined;
1142
+ }>, "many">>;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ code?: {
1145
+ coding?: {
1146
+ code?: string | undefined;
1147
+ system?: string | undefined;
1148
+ display?: string | undefined;
1149
+ }[] | undefined;
1150
+ text?: string | undefined;
1151
+ }[] | undefined;
1152
+ period?: {
1153
+ start?: string | undefined;
1154
+ end?: string | undefined;
1155
+ } | undefined;
1156
+ detail?: {
1157
+ reference: string;
1158
+ type?: string | undefined;
1159
+ display?: string | undefined;
1160
+ }[] | undefined;
1161
+ }, {
1162
+ code?: {
1163
+ coding?: {
1164
+ code?: string | undefined;
1165
+ system?: string | undefined;
1166
+ display?: string | undefined;
1167
+ }[] | undefined;
1168
+ text?: string | undefined;
1169
+ }[] | undefined;
1170
+ period?: {
1171
+ start?: string | undefined;
1172
+ end?: string | undefined;
1173
+ } | undefined;
1174
+ detail?: {
1175
+ reference: string;
1176
+ type?: string | undefined;
1177
+ display?: string | undefined;
1178
+ }[] | undefined;
1179
+ }>, "many">>;
1180
+ section: z.ZodOptional<z.ZodArray<z.ZodType<CompositionSectionShape, z.ZodTypeDef, CompositionSectionShape>, "many">>;
1181
+ }, "strip", z.ZodTypeAny, {
1182
+ type: {
1183
+ coding: {
1184
+ code: string;
1185
+ system: string;
1186
+ display?: string | undefined;
1187
+ }[];
1188
+ text?: string | undefined;
1189
+ };
1190
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
1191
+ title: string;
1192
+ resourceType: "Composition";
1193
+ date: string;
1194
+ author: {
1195
+ reference: string;
1196
+ type?: string | undefined;
1197
+ display?: string | undefined;
1198
+ }[];
1199
+ identifier?: {
1200
+ value: string;
1201
+ system?: string | undefined;
1202
+ use?: string | undefined;
1203
+ }[] | undefined;
1204
+ category?: {
1205
+ coding?: {
1206
+ code?: string | undefined;
1207
+ system?: string | undefined;
1208
+ display?: string | undefined;
1209
+ }[] | undefined;
1210
+ text?: string | undefined;
1211
+ }[] | undefined;
1212
+ encounter?: {
1213
+ reference: string;
1214
+ type?: string | undefined;
1215
+ display?: string | undefined;
1216
+ } | undefined;
1217
+ subject?: {
1218
+ reference: string;
1219
+ type?: string | undefined;
1220
+ display?: string | undefined;
1221
+ } | undefined;
1222
+ section?: CompositionSectionShape[] | undefined;
1223
+ confidentiality?: string | undefined;
1224
+ attester?: {
1225
+ mode: "personal" | "professional" | "legal" | "official";
1226
+ time?: string | undefined;
1227
+ party?: {
1228
+ reference: string;
1229
+ type?: string | undefined;
1230
+ display?: string | undefined;
1231
+ } | undefined;
1232
+ }[] | undefined;
1233
+ custodian?: {
1234
+ reference: string;
1235
+ type?: string | undefined;
1236
+ display?: string | undefined;
1237
+ } | undefined;
1238
+ relatesTo?: {
1239
+ code: "replaces" | "transforms" | "signs" | "appends";
1240
+ targetIdentifier?: {
1241
+ value?: string | undefined;
1242
+ system?: string | undefined;
1243
+ use?: string | undefined;
1244
+ } | undefined;
1245
+ targetReference?: {
1246
+ reference: string;
1247
+ type?: string | undefined;
1248
+ display?: string | undefined;
1249
+ } | undefined;
1250
+ }[] | undefined;
1251
+ event?: {
1252
+ code?: {
1253
+ coding?: {
1254
+ code?: string | undefined;
1255
+ system?: string | undefined;
1256
+ display?: string | undefined;
1257
+ }[] | undefined;
1258
+ text?: string | undefined;
1259
+ }[] | undefined;
1260
+ period?: {
1261
+ start?: string | undefined;
1262
+ end?: string | undefined;
1263
+ } | undefined;
1264
+ detail?: {
1265
+ reference: string;
1266
+ type?: string | undefined;
1267
+ display?: string | undefined;
1268
+ }[] | undefined;
1269
+ }[] | undefined;
1270
+ }, {
1271
+ type: {
1272
+ coding: {
1273
+ code: string;
1274
+ system: string;
1275
+ display?: string | undefined;
1276
+ }[];
1277
+ text?: string | undefined;
1278
+ };
1279
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
1280
+ title: string;
1281
+ resourceType: "Composition";
1282
+ date: string;
1283
+ author: {
1284
+ reference: string;
1285
+ type?: string | undefined;
1286
+ display?: string | undefined;
1287
+ }[];
1288
+ identifier?: {
1289
+ value: string;
1290
+ system?: string | undefined;
1291
+ use?: string | undefined;
1292
+ }[] | undefined;
1293
+ category?: {
1294
+ coding?: {
1295
+ code?: string | undefined;
1296
+ system?: string | undefined;
1297
+ display?: string | undefined;
1298
+ }[] | undefined;
1299
+ text?: string | undefined;
1300
+ }[] | undefined;
1301
+ encounter?: {
1302
+ reference: string;
1303
+ type?: string | undefined;
1304
+ display?: string | undefined;
1305
+ } | undefined;
1306
+ subject?: {
1307
+ reference: string;
1308
+ type?: string | undefined;
1309
+ display?: string | undefined;
1310
+ } | undefined;
1311
+ section?: CompositionSectionShape[] | undefined;
1312
+ confidentiality?: string | undefined;
1313
+ attester?: {
1314
+ mode: "personal" | "professional" | "legal" | "official";
1315
+ time?: string | undefined;
1316
+ party?: {
1317
+ reference: string;
1318
+ type?: string | undefined;
1319
+ display?: string | undefined;
1320
+ } | undefined;
1321
+ }[] | undefined;
1322
+ custodian?: {
1323
+ reference: string;
1324
+ type?: string | undefined;
1325
+ display?: string | undefined;
1326
+ } | undefined;
1327
+ relatesTo?: {
1328
+ code: "replaces" | "transforms" | "signs" | "appends";
1329
+ targetIdentifier?: {
1330
+ value?: string | undefined;
1331
+ system?: string | undefined;
1332
+ use?: string | undefined;
1333
+ } | undefined;
1334
+ targetReference?: {
1335
+ reference: string;
1336
+ type?: string | undefined;
1337
+ display?: string | undefined;
1338
+ } | undefined;
1339
+ }[] | undefined;
1340
+ event?: {
1341
+ code?: {
1342
+ coding?: {
1343
+ code?: string | undefined;
1344
+ system?: string | undefined;
1345
+ display?: string | undefined;
1346
+ }[] | undefined;
1347
+ text?: string | undefined;
1348
+ }[] | undefined;
1349
+ period?: {
1350
+ start?: string | undefined;
1351
+ end?: string | undefined;
1352
+ } | undefined;
1353
+ detail?: {
1354
+ reference: string;
1355
+ type?: string | undefined;
1356
+ display?: string | undefined;
1357
+ }[] | undefined;
1358
+ }[] | undefined;
1359
+ }>;
1360
+ export declare const CompositionSchema: z.ZodObject<{
1361
+ resourceType: z.ZodLiteral<"Composition">;
1362
+ identifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1363
+ use: z.ZodOptional<z.ZodString>;
1364
+ } & {
1365
+ system: z.ZodOptional<z.ZodString>;
1366
+ value: z.ZodString;
1367
+ }, "strip", z.ZodTypeAny, {
1368
+ value: string;
1369
+ system?: string | undefined;
1370
+ use?: string | undefined;
1371
+ }, {
1372
+ value: string;
1373
+ system?: string | undefined;
1374
+ use?: string | undefined;
1375
+ }>, "many">>;
1376
+ status: z.ZodEnum<["preliminary", "final", "amended", "entered-in-error"]>;
1377
+ type: z.ZodObject<{
1378
+ text: z.ZodOptional<z.ZodString>;
1379
+ } & {
1380
+ coding: z.ZodArray<z.ZodObject<{
1381
+ system: z.ZodString;
1382
+ code: z.ZodString;
1383
+ display: z.ZodOptional<z.ZodString>;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ code: string;
1386
+ system: string;
1387
+ display?: string | undefined;
1388
+ }, {
1389
+ code: string;
1390
+ system: string;
1391
+ display?: string | undefined;
1392
+ }>, "many">;
1393
+ }, "strip", z.ZodTypeAny, {
1394
+ coding: {
1395
+ code: string;
1396
+ system: string;
1397
+ display?: string | undefined;
1398
+ }[];
1399
+ text?: string | undefined;
1400
+ }, {
1401
+ coding: {
1402
+ code: string;
1403
+ system: string;
1404
+ display?: string | undefined;
1405
+ }[];
1406
+ text?: string | undefined;
1407
+ }>;
1408
+ category: z.ZodOptional<z.ZodArray<z.ZodObject<{
1409
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
1410
+ system: z.ZodOptional<z.ZodString>;
1411
+ code: z.ZodOptional<z.ZodString>;
1412
+ display: z.ZodOptional<z.ZodString>;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ code?: string | undefined;
1415
+ system?: string | undefined;
1416
+ display?: string | undefined;
1417
+ }, {
1418
+ code?: string | undefined;
1419
+ system?: string | undefined;
1420
+ display?: string | undefined;
1421
+ }>, "many">>;
1422
+ text: z.ZodOptional<z.ZodString>;
1423
+ }, "strip", z.ZodTypeAny, {
1424
+ coding?: {
1425
+ code?: string | undefined;
1426
+ system?: string | undefined;
1427
+ display?: string | undefined;
1428
+ }[] | undefined;
1429
+ text?: string | undefined;
1430
+ }, {
1431
+ coding?: {
1432
+ code?: string | undefined;
1433
+ system?: string | undefined;
1434
+ display?: string | undefined;
1435
+ }[] | undefined;
1436
+ text?: string | undefined;
1437
+ }>, "many">>;
1438
+ subject: z.ZodOptional<z.ZodObject<{
1439
+ reference: z.ZodString;
1440
+ display: z.ZodOptional<z.ZodString>;
1441
+ type: z.ZodOptional<z.ZodString>;
1442
+ }, "strip", z.ZodTypeAny, {
1443
+ reference: string;
1444
+ type?: string | undefined;
1445
+ display?: string | undefined;
1446
+ }, {
1447
+ reference: string;
1448
+ type?: string | undefined;
1449
+ display?: string | undefined;
1450
+ }>>;
1451
+ encounter: z.ZodOptional<z.ZodObject<{
1452
+ reference: z.ZodString;
1453
+ display: z.ZodOptional<z.ZodString>;
1454
+ type: z.ZodOptional<z.ZodString>;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ reference: string;
1457
+ type?: string | undefined;
1458
+ display?: string | undefined;
1459
+ }, {
1460
+ reference: string;
1461
+ type?: string | undefined;
1462
+ display?: string | undefined;
1463
+ }>>;
1464
+ date: z.ZodString;
1465
+ author: z.ZodArray<z.ZodObject<{
1466
+ reference: z.ZodString;
1467
+ display: z.ZodOptional<z.ZodString>;
1468
+ type: z.ZodOptional<z.ZodString>;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ reference: string;
1471
+ type?: string | undefined;
1472
+ display?: string | undefined;
1473
+ }, {
1474
+ reference: string;
1475
+ type?: string | undefined;
1476
+ display?: string | undefined;
1477
+ }>, "many">;
1478
+ title: z.ZodString;
1479
+ confidentiality: z.ZodOptional<z.ZodString>;
1480
+ attester: z.ZodOptional<z.ZodArray<z.ZodObject<{
1481
+ mode: z.ZodEnum<["personal", "professional", "legal", "official"]>;
1482
+ time: z.ZodOptional<z.ZodString>;
1483
+ party: z.ZodOptional<z.ZodObject<{
1484
+ reference: z.ZodString;
1485
+ display: z.ZodOptional<z.ZodString>;
1486
+ type: z.ZodOptional<z.ZodString>;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ reference: string;
1489
+ type?: string | undefined;
1490
+ display?: string | undefined;
1491
+ }, {
1492
+ reference: string;
1493
+ type?: string | undefined;
1494
+ display?: string | undefined;
1495
+ }>>;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ mode: "personal" | "professional" | "legal" | "official";
1498
+ time?: string | undefined;
1499
+ party?: {
1500
+ reference: string;
1501
+ type?: string | undefined;
1502
+ display?: string | undefined;
1503
+ } | undefined;
1504
+ }, {
1505
+ mode: "personal" | "professional" | "legal" | "official";
1506
+ time?: string | undefined;
1507
+ party?: {
1508
+ reference: string;
1509
+ type?: string | undefined;
1510
+ display?: string | undefined;
1511
+ } | undefined;
1512
+ }>, "many">>;
1513
+ custodian: z.ZodOptional<z.ZodObject<{
1514
+ reference: z.ZodString;
1515
+ display: z.ZodOptional<z.ZodString>;
1516
+ type: z.ZodOptional<z.ZodString>;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ reference: string;
1519
+ type?: string | undefined;
1520
+ display?: string | undefined;
1521
+ }, {
1522
+ reference: string;
1523
+ type?: string | undefined;
1524
+ display?: string | undefined;
1525
+ }>>;
1526
+ relatesTo: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1527
+ code: z.ZodEnum<["replaces", "transforms", "signs", "appends"]>;
1528
+ targetIdentifier: z.ZodOptional<z.ZodObject<{
1529
+ system: z.ZodOptional<z.ZodString>;
1530
+ use: z.ZodOptional<z.ZodString>;
1531
+ value: z.ZodOptional<z.ZodString>;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ value?: string | undefined;
1534
+ system?: string | undefined;
1535
+ use?: string | undefined;
1536
+ }, {
1537
+ value?: string | undefined;
1538
+ system?: string | undefined;
1539
+ use?: string | undefined;
1540
+ }>>;
1541
+ targetReference: z.ZodOptional<z.ZodObject<{
1542
+ reference: z.ZodString;
1543
+ display: z.ZodOptional<z.ZodString>;
1544
+ type: z.ZodOptional<z.ZodString>;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ reference: string;
1547
+ type?: string | undefined;
1548
+ display?: string | undefined;
1549
+ }, {
1550
+ reference: string;
1551
+ type?: string | undefined;
1552
+ display?: string | undefined;
1553
+ }>>;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ code: "replaces" | "transforms" | "signs" | "appends";
1556
+ targetIdentifier?: {
1557
+ value?: string | undefined;
1558
+ system?: string | undefined;
1559
+ use?: string | undefined;
1560
+ } | undefined;
1561
+ targetReference?: {
1562
+ reference: string;
1563
+ type?: string | undefined;
1564
+ display?: string | undefined;
1565
+ } | undefined;
1566
+ }, {
1567
+ code: "replaces" | "transforms" | "signs" | "appends";
1568
+ targetIdentifier?: {
1569
+ value?: string | undefined;
1570
+ system?: string | undefined;
1571
+ use?: string | undefined;
1572
+ } | undefined;
1573
+ targetReference?: {
1574
+ reference: string;
1575
+ type?: string | undefined;
1576
+ display?: string | undefined;
1577
+ } | undefined;
1578
+ }>, {
1579
+ code: "replaces" | "transforms" | "signs" | "appends";
1580
+ targetIdentifier?: {
1581
+ value?: string | undefined;
1582
+ system?: string | undefined;
1583
+ use?: string | undefined;
1584
+ } | undefined;
1585
+ targetReference?: {
1586
+ reference: string;
1587
+ type?: string | undefined;
1588
+ display?: string | undefined;
1589
+ } | undefined;
1590
+ }, {
1591
+ code: "replaces" | "transforms" | "signs" | "appends";
1592
+ targetIdentifier?: {
1593
+ value?: string | undefined;
1594
+ system?: string | undefined;
1595
+ use?: string | undefined;
1596
+ } | undefined;
1597
+ targetReference?: {
1598
+ reference: string;
1599
+ type?: string | undefined;
1600
+ display?: string | undefined;
1601
+ } | undefined;
1602
+ }>, "many">>;
1603
+ event: z.ZodOptional<z.ZodArray<z.ZodObject<{
1604
+ code: z.ZodOptional<z.ZodArray<z.ZodObject<{
1605
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
1606
+ system: z.ZodOptional<z.ZodString>;
1607
+ code: z.ZodOptional<z.ZodString>;
1608
+ display: z.ZodOptional<z.ZodString>;
1609
+ }, "strip", z.ZodTypeAny, {
1610
+ code?: string | undefined;
1611
+ system?: string | undefined;
1612
+ display?: string | undefined;
1613
+ }, {
1614
+ code?: string | undefined;
1615
+ system?: string | undefined;
1616
+ display?: string | undefined;
1617
+ }>, "many">>;
1618
+ text: z.ZodOptional<z.ZodString>;
1619
+ }, "strip", z.ZodTypeAny, {
1620
+ coding?: {
1621
+ code?: string | undefined;
1622
+ system?: string | undefined;
1623
+ display?: string | undefined;
1624
+ }[] | undefined;
1625
+ text?: string | undefined;
1626
+ }, {
1627
+ coding?: {
1628
+ code?: string | undefined;
1629
+ system?: string | undefined;
1630
+ display?: string | undefined;
1631
+ }[] | undefined;
1632
+ text?: string | undefined;
1633
+ }>, "many">>;
1634
+ period: z.ZodOptional<z.ZodObject<{
1635
+ start: z.ZodOptional<z.ZodString>;
1636
+ end: z.ZodOptional<z.ZodString>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ start?: string | undefined;
1639
+ end?: string | undefined;
1640
+ }, {
1641
+ start?: string | undefined;
1642
+ end?: string | undefined;
1643
+ }>>;
1644
+ detail: z.ZodOptional<z.ZodArray<z.ZodObject<{
1645
+ reference: z.ZodString;
1646
+ display: z.ZodOptional<z.ZodString>;
1647
+ type: z.ZodOptional<z.ZodString>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ reference: string;
1650
+ type?: string | undefined;
1651
+ display?: string | undefined;
1652
+ }, {
1653
+ reference: string;
1654
+ type?: string | undefined;
1655
+ display?: string | undefined;
1656
+ }>, "many">>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ code?: {
1659
+ coding?: {
1660
+ code?: string | undefined;
1661
+ system?: string | undefined;
1662
+ display?: string | undefined;
1663
+ }[] | undefined;
1664
+ text?: string | undefined;
1665
+ }[] | undefined;
1666
+ period?: {
1667
+ start?: string | undefined;
1668
+ end?: string | undefined;
1669
+ } | undefined;
1670
+ detail?: {
1671
+ reference: string;
1672
+ type?: string | undefined;
1673
+ display?: string | undefined;
1674
+ }[] | undefined;
1675
+ }, {
1676
+ code?: {
1677
+ coding?: {
1678
+ code?: string | undefined;
1679
+ system?: string | undefined;
1680
+ display?: string | undefined;
1681
+ }[] | undefined;
1682
+ text?: string | undefined;
1683
+ }[] | undefined;
1684
+ period?: {
1685
+ start?: string | undefined;
1686
+ end?: string | undefined;
1687
+ } | undefined;
1688
+ detail?: {
1689
+ reference: string;
1690
+ type?: string | undefined;
1691
+ display?: string | undefined;
1692
+ }[] | undefined;
1693
+ }>, "many">>;
1694
+ section: z.ZodOptional<z.ZodArray<z.ZodType<CompositionSectionShape, z.ZodTypeDef, CompositionSectionShape>, "many">>;
1695
+ } & {
1696
+ id: z.ZodString;
1697
+ meta: z.ZodOptional<z.ZodObject<{
1698
+ lastUpdated: z.ZodOptional<z.ZodString>;
1699
+ profile: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1700
+ versionId: z.ZodOptional<z.ZodString>;
1701
+ }, "strip", z.ZodTypeAny, {
1702
+ lastUpdated?: string | undefined;
1703
+ profile?: string[] | undefined;
1704
+ versionId?: string | undefined;
1705
+ }, {
1706
+ lastUpdated?: string | undefined;
1707
+ profile?: string[] | undefined;
1708
+ versionId?: string | undefined;
1709
+ }>>;
1710
+ }, "strip", z.ZodTypeAny, {
1711
+ type: {
1712
+ coding: {
1713
+ code: string;
1714
+ system: string;
1715
+ display?: string | undefined;
1716
+ }[];
1717
+ text?: string | undefined;
1718
+ };
1719
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
1720
+ title: string;
1721
+ resourceType: "Composition";
1722
+ date: string;
1723
+ id: string;
1724
+ author: {
1725
+ reference: string;
1726
+ type?: string | undefined;
1727
+ display?: string | undefined;
1728
+ }[];
1729
+ identifier?: {
1730
+ value: string;
1731
+ system?: string | undefined;
1732
+ use?: string | undefined;
1733
+ }[] | undefined;
1734
+ meta?: {
1735
+ lastUpdated?: string | undefined;
1736
+ profile?: string[] | undefined;
1737
+ versionId?: string | undefined;
1738
+ } | undefined;
1739
+ category?: {
1740
+ coding?: {
1741
+ code?: string | undefined;
1742
+ system?: string | undefined;
1743
+ display?: string | undefined;
1744
+ }[] | undefined;
1745
+ text?: string | undefined;
1746
+ }[] | undefined;
1747
+ encounter?: {
1748
+ reference: string;
1749
+ type?: string | undefined;
1750
+ display?: string | undefined;
1751
+ } | undefined;
1752
+ subject?: {
1753
+ reference: string;
1754
+ type?: string | undefined;
1755
+ display?: string | undefined;
1756
+ } | undefined;
1757
+ section?: CompositionSectionShape[] | undefined;
1758
+ confidentiality?: string | undefined;
1759
+ attester?: {
1760
+ mode: "personal" | "professional" | "legal" | "official";
1761
+ time?: string | undefined;
1762
+ party?: {
1763
+ reference: string;
1764
+ type?: string | undefined;
1765
+ display?: string | undefined;
1766
+ } | undefined;
1767
+ }[] | undefined;
1768
+ custodian?: {
1769
+ reference: string;
1770
+ type?: string | undefined;
1771
+ display?: string | undefined;
1772
+ } | undefined;
1773
+ relatesTo?: {
1774
+ code: "replaces" | "transforms" | "signs" | "appends";
1775
+ targetIdentifier?: {
1776
+ value?: string | undefined;
1777
+ system?: string | undefined;
1778
+ use?: string | undefined;
1779
+ } | undefined;
1780
+ targetReference?: {
1781
+ reference: string;
1782
+ type?: string | undefined;
1783
+ display?: string | undefined;
1784
+ } | undefined;
1785
+ }[] | undefined;
1786
+ event?: {
1787
+ code?: {
1788
+ coding?: {
1789
+ code?: string | undefined;
1790
+ system?: string | undefined;
1791
+ display?: string | undefined;
1792
+ }[] | undefined;
1793
+ text?: string | undefined;
1794
+ }[] | undefined;
1795
+ period?: {
1796
+ start?: string | undefined;
1797
+ end?: string | undefined;
1798
+ } | undefined;
1799
+ detail?: {
1800
+ reference: string;
1801
+ type?: string | undefined;
1802
+ display?: string | undefined;
1803
+ }[] | undefined;
1804
+ }[] | undefined;
1805
+ }, {
1806
+ type: {
1807
+ coding: {
1808
+ code: string;
1809
+ system: string;
1810
+ display?: string | undefined;
1811
+ }[];
1812
+ text?: string | undefined;
1813
+ };
1814
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
1815
+ title: string;
1816
+ resourceType: "Composition";
1817
+ date: string;
1818
+ id: string;
1819
+ author: {
1820
+ reference: string;
1821
+ type?: string | undefined;
1822
+ display?: string | undefined;
1823
+ }[];
1824
+ identifier?: {
1825
+ value: string;
1826
+ system?: string | undefined;
1827
+ use?: string | undefined;
1828
+ }[] | undefined;
1829
+ meta?: {
1830
+ lastUpdated?: string | undefined;
1831
+ profile?: string[] | undefined;
1832
+ versionId?: string | undefined;
1833
+ } | undefined;
1834
+ category?: {
1835
+ coding?: {
1836
+ code?: string | undefined;
1837
+ system?: string | undefined;
1838
+ display?: string | undefined;
1839
+ }[] | undefined;
1840
+ text?: string | undefined;
1841
+ }[] | undefined;
1842
+ encounter?: {
1843
+ reference: string;
1844
+ type?: string | undefined;
1845
+ display?: string | undefined;
1846
+ } | undefined;
1847
+ subject?: {
1848
+ reference: string;
1849
+ type?: string | undefined;
1850
+ display?: string | undefined;
1851
+ } | undefined;
1852
+ section?: CompositionSectionShape[] | undefined;
1853
+ confidentiality?: string | undefined;
1854
+ attester?: {
1855
+ mode: "personal" | "professional" | "legal" | "official";
1856
+ time?: string | undefined;
1857
+ party?: {
1858
+ reference: string;
1859
+ type?: string | undefined;
1860
+ display?: string | undefined;
1861
+ } | undefined;
1862
+ }[] | undefined;
1863
+ custodian?: {
1864
+ reference: string;
1865
+ type?: string | undefined;
1866
+ display?: string | undefined;
1867
+ } | undefined;
1868
+ relatesTo?: {
1869
+ code: "replaces" | "transforms" | "signs" | "appends";
1870
+ targetIdentifier?: {
1871
+ value?: string | undefined;
1872
+ system?: string | undefined;
1873
+ use?: string | undefined;
1874
+ } | undefined;
1875
+ targetReference?: {
1876
+ reference: string;
1877
+ type?: string | undefined;
1878
+ display?: string | undefined;
1879
+ } | undefined;
1880
+ }[] | undefined;
1881
+ event?: {
1882
+ code?: {
1883
+ coding?: {
1884
+ code?: string | undefined;
1885
+ system?: string | undefined;
1886
+ display?: string | undefined;
1887
+ }[] | undefined;
1888
+ text?: string | undefined;
1889
+ }[] | undefined;
1890
+ period?: {
1891
+ start?: string | undefined;
1892
+ end?: string | undefined;
1893
+ } | undefined;
1894
+ detail?: {
1895
+ reference: string;
1896
+ type?: string | undefined;
1897
+ display?: string | undefined;
1898
+ }[] | undefined;
1899
+ }[] | undefined;
1900
+ }>;
1901
+ export declare const CompositionUpdateParamsSchema: z.ZodObject<{
1902
+ id: z.ZodString;
1903
+ }, "strip", z.ZodTypeAny, {
1904
+ id: string;
1905
+ }, {
1906
+ id: string;
1907
+ }>;
1908
+ export declare const CompositionBundleSchema: z.ZodObject<{
1909
+ resourceType: z.ZodLiteral<"Bundle">;
1910
+ type: z.ZodOptional<z.ZodString>;
1911
+ total: z.ZodOptional<z.ZodNumber>;
1912
+ link: z.ZodOptional<z.ZodArray<z.ZodObject<{
1913
+ relation: z.ZodOptional<z.ZodString>;
1914
+ url: z.ZodOptional<z.ZodString>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ url?: string | undefined;
1917
+ relation?: string | undefined;
1918
+ }, {
1919
+ url?: string | undefined;
1920
+ relation?: string | undefined;
1921
+ }>, "many">>;
1922
+ entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
1923
+ fullUrl: z.ZodOptional<z.ZodString>;
1924
+ resource: z.ZodObject<{
1925
+ resourceType: z.ZodLiteral<"Composition">;
1926
+ identifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
1927
+ use: z.ZodOptional<z.ZodString>;
1928
+ } & {
1929
+ system: z.ZodOptional<z.ZodString>;
1930
+ value: z.ZodString;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ value: string;
1933
+ system?: string | undefined;
1934
+ use?: string | undefined;
1935
+ }, {
1936
+ value: string;
1937
+ system?: string | undefined;
1938
+ use?: string | undefined;
1939
+ }>, "many">>;
1940
+ status: z.ZodEnum<["preliminary", "final", "amended", "entered-in-error"]>;
1941
+ type: z.ZodObject<{
1942
+ text: z.ZodOptional<z.ZodString>;
1943
+ } & {
1944
+ coding: z.ZodArray<z.ZodObject<{
1945
+ system: z.ZodString;
1946
+ code: z.ZodString;
1947
+ display: z.ZodOptional<z.ZodString>;
1948
+ }, "strip", z.ZodTypeAny, {
1949
+ code: string;
1950
+ system: string;
1951
+ display?: string | undefined;
1952
+ }, {
1953
+ code: string;
1954
+ system: string;
1955
+ display?: string | undefined;
1956
+ }>, "many">;
1957
+ }, "strip", z.ZodTypeAny, {
1958
+ coding: {
1959
+ code: string;
1960
+ system: string;
1961
+ display?: string | undefined;
1962
+ }[];
1963
+ text?: string | undefined;
1964
+ }, {
1965
+ coding: {
1966
+ code: string;
1967
+ system: string;
1968
+ display?: string | undefined;
1969
+ }[];
1970
+ text?: string | undefined;
1971
+ }>;
1972
+ category: z.ZodOptional<z.ZodArray<z.ZodObject<{
1973
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
1974
+ system: z.ZodOptional<z.ZodString>;
1975
+ code: z.ZodOptional<z.ZodString>;
1976
+ display: z.ZodOptional<z.ZodString>;
1977
+ }, "strip", z.ZodTypeAny, {
1978
+ code?: string | undefined;
1979
+ system?: string | undefined;
1980
+ display?: string | undefined;
1981
+ }, {
1982
+ code?: string | undefined;
1983
+ system?: string | undefined;
1984
+ display?: string | undefined;
1985
+ }>, "many">>;
1986
+ text: z.ZodOptional<z.ZodString>;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ coding?: {
1989
+ code?: string | undefined;
1990
+ system?: string | undefined;
1991
+ display?: string | undefined;
1992
+ }[] | undefined;
1993
+ text?: string | undefined;
1994
+ }, {
1995
+ coding?: {
1996
+ code?: string | undefined;
1997
+ system?: string | undefined;
1998
+ display?: string | undefined;
1999
+ }[] | undefined;
2000
+ text?: string | undefined;
2001
+ }>, "many">>;
2002
+ subject: z.ZodOptional<z.ZodObject<{
2003
+ reference: z.ZodString;
2004
+ display: z.ZodOptional<z.ZodString>;
2005
+ type: z.ZodOptional<z.ZodString>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ reference: string;
2008
+ type?: string | undefined;
2009
+ display?: string | undefined;
2010
+ }, {
2011
+ reference: string;
2012
+ type?: string | undefined;
2013
+ display?: string | undefined;
2014
+ }>>;
2015
+ encounter: z.ZodOptional<z.ZodObject<{
2016
+ reference: z.ZodString;
2017
+ display: z.ZodOptional<z.ZodString>;
2018
+ type: z.ZodOptional<z.ZodString>;
2019
+ }, "strip", z.ZodTypeAny, {
2020
+ reference: string;
2021
+ type?: string | undefined;
2022
+ display?: string | undefined;
2023
+ }, {
2024
+ reference: string;
2025
+ type?: string | undefined;
2026
+ display?: string | undefined;
2027
+ }>>;
2028
+ date: z.ZodString;
2029
+ author: z.ZodArray<z.ZodObject<{
2030
+ reference: z.ZodString;
2031
+ display: z.ZodOptional<z.ZodString>;
2032
+ type: z.ZodOptional<z.ZodString>;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ reference: string;
2035
+ type?: string | undefined;
2036
+ display?: string | undefined;
2037
+ }, {
2038
+ reference: string;
2039
+ type?: string | undefined;
2040
+ display?: string | undefined;
2041
+ }>, "many">;
2042
+ title: z.ZodString;
2043
+ confidentiality: z.ZodOptional<z.ZodString>;
2044
+ attester: z.ZodOptional<z.ZodArray<z.ZodObject<{
2045
+ mode: z.ZodEnum<["personal", "professional", "legal", "official"]>;
2046
+ time: z.ZodOptional<z.ZodString>;
2047
+ party: z.ZodOptional<z.ZodObject<{
2048
+ reference: z.ZodString;
2049
+ display: z.ZodOptional<z.ZodString>;
2050
+ type: z.ZodOptional<z.ZodString>;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ reference: string;
2053
+ type?: string | undefined;
2054
+ display?: string | undefined;
2055
+ }, {
2056
+ reference: string;
2057
+ type?: string | undefined;
2058
+ display?: string | undefined;
2059
+ }>>;
2060
+ }, "strip", z.ZodTypeAny, {
2061
+ mode: "personal" | "professional" | "legal" | "official";
2062
+ time?: string | undefined;
2063
+ party?: {
2064
+ reference: string;
2065
+ type?: string | undefined;
2066
+ display?: string | undefined;
2067
+ } | undefined;
2068
+ }, {
2069
+ mode: "personal" | "professional" | "legal" | "official";
2070
+ time?: string | undefined;
2071
+ party?: {
2072
+ reference: string;
2073
+ type?: string | undefined;
2074
+ display?: string | undefined;
2075
+ } | undefined;
2076
+ }>, "many">>;
2077
+ custodian: z.ZodOptional<z.ZodObject<{
2078
+ reference: z.ZodString;
2079
+ display: z.ZodOptional<z.ZodString>;
2080
+ type: z.ZodOptional<z.ZodString>;
2081
+ }, "strip", z.ZodTypeAny, {
2082
+ reference: string;
2083
+ type?: string | undefined;
2084
+ display?: string | undefined;
2085
+ }, {
2086
+ reference: string;
2087
+ type?: string | undefined;
2088
+ display?: string | undefined;
2089
+ }>>;
2090
+ relatesTo: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2091
+ code: z.ZodEnum<["replaces", "transforms", "signs", "appends"]>;
2092
+ targetIdentifier: z.ZodOptional<z.ZodObject<{
2093
+ system: z.ZodOptional<z.ZodString>;
2094
+ use: z.ZodOptional<z.ZodString>;
2095
+ value: z.ZodOptional<z.ZodString>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ value?: string | undefined;
2098
+ system?: string | undefined;
2099
+ use?: string | undefined;
2100
+ }, {
2101
+ value?: string | undefined;
2102
+ system?: string | undefined;
2103
+ use?: string | undefined;
2104
+ }>>;
2105
+ targetReference: z.ZodOptional<z.ZodObject<{
2106
+ reference: z.ZodString;
2107
+ display: z.ZodOptional<z.ZodString>;
2108
+ type: z.ZodOptional<z.ZodString>;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ reference: string;
2111
+ type?: string | undefined;
2112
+ display?: string | undefined;
2113
+ }, {
2114
+ reference: string;
2115
+ type?: string | undefined;
2116
+ display?: string | undefined;
2117
+ }>>;
2118
+ }, "strip", z.ZodTypeAny, {
2119
+ code: "replaces" | "transforms" | "signs" | "appends";
2120
+ targetIdentifier?: {
2121
+ value?: string | undefined;
2122
+ system?: string | undefined;
2123
+ use?: string | undefined;
2124
+ } | undefined;
2125
+ targetReference?: {
2126
+ reference: string;
2127
+ type?: string | undefined;
2128
+ display?: string | undefined;
2129
+ } | undefined;
2130
+ }, {
2131
+ code: "replaces" | "transforms" | "signs" | "appends";
2132
+ targetIdentifier?: {
2133
+ value?: string | undefined;
2134
+ system?: string | undefined;
2135
+ use?: string | undefined;
2136
+ } | undefined;
2137
+ targetReference?: {
2138
+ reference: string;
2139
+ type?: string | undefined;
2140
+ display?: string | undefined;
2141
+ } | undefined;
2142
+ }>, {
2143
+ code: "replaces" | "transforms" | "signs" | "appends";
2144
+ targetIdentifier?: {
2145
+ value?: string | undefined;
2146
+ system?: string | undefined;
2147
+ use?: string | undefined;
2148
+ } | undefined;
2149
+ targetReference?: {
2150
+ reference: string;
2151
+ type?: string | undefined;
2152
+ display?: string | undefined;
2153
+ } | undefined;
2154
+ }, {
2155
+ code: "replaces" | "transforms" | "signs" | "appends";
2156
+ targetIdentifier?: {
2157
+ value?: string | undefined;
2158
+ system?: string | undefined;
2159
+ use?: string | undefined;
2160
+ } | undefined;
2161
+ targetReference?: {
2162
+ reference: string;
2163
+ type?: string | undefined;
2164
+ display?: string | undefined;
2165
+ } | undefined;
2166
+ }>, "many">>;
2167
+ event: z.ZodOptional<z.ZodArray<z.ZodObject<{
2168
+ code: z.ZodOptional<z.ZodArray<z.ZodObject<{
2169
+ coding: z.ZodOptional<z.ZodArray<z.ZodObject<{
2170
+ system: z.ZodOptional<z.ZodString>;
2171
+ code: z.ZodOptional<z.ZodString>;
2172
+ display: z.ZodOptional<z.ZodString>;
2173
+ }, "strip", z.ZodTypeAny, {
2174
+ code?: string | undefined;
2175
+ system?: string | undefined;
2176
+ display?: string | undefined;
2177
+ }, {
2178
+ code?: string | undefined;
2179
+ system?: string | undefined;
2180
+ display?: string | undefined;
2181
+ }>, "many">>;
2182
+ text: z.ZodOptional<z.ZodString>;
2183
+ }, "strip", z.ZodTypeAny, {
2184
+ coding?: {
2185
+ code?: string | undefined;
2186
+ system?: string | undefined;
2187
+ display?: string | undefined;
2188
+ }[] | undefined;
2189
+ text?: string | undefined;
2190
+ }, {
2191
+ coding?: {
2192
+ code?: string | undefined;
2193
+ system?: string | undefined;
2194
+ display?: string | undefined;
2195
+ }[] | undefined;
2196
+ text?: string | undefined;
2197
+ }>, "many">>;
2198
+ period: z.ZodOptional<z.ZodObject<{
2199
+ start: z.ZodOptional<z.ZodString>;
2200
+ end: z.ZodOptional<z.ZodString>;
2201
+ }, "strip", z.ZodTypeAny, {
2202
+ start?: string | undefined;
2203
+ end?: string | undefined;
2204
+ }, {
2205
+ start?: string | undefined;
2206
+ end?: string | undefined;
2207
+ }>>;
2208
+ detail: z.ZodOptional<z.ZodArray<z.ZodObject<{
2209
+ reference: z.ZodString;
2210
+ display: z.ZodOptional<z.ZodString>;
2211
+ type: z.ZodOptional<z.ZodString>;
2212
+ }, "strip", z.ZodTypeAny, {
2213
+ reference: string;
2214
+ type?: string | undefined;
2215
+ display?: string | undefined;
2216
+ }, {
2217
+ reference: string;
2218
+ type?: string | undefined;
2219
+ display?: string | undefined;
2220
+ }>, "many">>;
2221
+ }, "strip", z.ZodTypeAny, {
2222
+ code?: {
2223
+ coding?: {
2224
+ code?: string | undefined;
2225
+ system?: string | undefined;
2226
+ display?: string | undefined;
2227
+ }[] | undefined;
2228
+ text?: string | undefined;
2229
+ }[] | undefined;
2230
+ period?: {
2231
+ start?: string | undefined;
2232
+ end?: string | undefined;
2233
+ } | undefined;
2234
+ detail?: {
2235
+ reference: string;
2236
+ type?: string | undefined;
2237
+ display?: string | undefined;
2238
+ }[] | undefined;
2239
+ }, {
2240
+ code?: {
2241
+ coding?: {
2242
+ code?: string | undefined;
2243
+ system?: string | undefined;
2244
+ display?: string | undefined;
2245
+ }[] | undefined;
2246
+ text?: string | undefined;
2247
+ }[] | undefined;
2248
+ period?: {
2249
+ start?: string | undefined;
2250
+ end?: string | undefined;
2251
+ } | undefined;
2252
+ detail?: {
2253
+ reference: string;
2254
+ type?: string | undefined;
2255
+ display?: string | undefined;
2256
+ }[] | undefined;
2257
+ }>, "many">>;
2258
+ section: z.ZodOptional<z.ZodArray<z.ZodType<CompositionSectionShape, z.ZodTypeDef, CompositionSectionShape>, "many">>;
2259
+ } & {
2260
+ id: z.ZodString;
2261
+ meta: z.ZodOptional<z.ZodObject<{
2262
+ lastUpdated: z.ZodOptional<z.ZodString>;
2263
+ profile: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2264
+ versionId: z.ZodOptional<z.ZodString>;
2265
+ }, "strip", z.ZodTypeAny, {
2266
+ lastUpdated?: string | undefined;
2267
+ profile?: string[] | undefined;
2268
+ versionId?: string | undefined;
2269
+ }, {
2270
+ lastUpdated?: string | undefined;
2271
+ profile?: string[] | undefined;
2272
+ versionId?: string | undefined;
2273
+ }>>;
2274
+ }, "strip", z.ZodTypeAny, {
2275
+ type: {
2276
+ coding: {
2277
+ code: string;
2278
+ system: string;
2279
+ display?: string | undefined;
2280
+ }[];
2281
+ text?: string | undefined;
2282
+ };
2283
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
2284
+ title: string;
2285
+ resourceType: "Composition";
2286
+ date: string;
2287
+ id: string;
2288
+ author: {
2289
+ reference: string;
2290
+ type?: string | undefined;
2291
+ display?: string | undefined;
2292
+ }[];
2293
+ identifier?: {
2294
+ value: string;
2295
+ system?: string | undefined;
2296
+ use?: string | undefined;
2297
+ }[] | undefined;
2298
+ meta?: {
2299
+ lastUpdated?: string | undefined;
2300
+ profile?: string[] | undefined;
2301
+ versionId?: string | undefined;
2302
+ } | undefined;
2303
+ category?: {
2304
+ coding?: {
2305
+ code?: string | undefined;
2306
+ system?: string | undefined;
2307
+ display?: string | undefined;
2308
+ }[] | undefined;
2309
+ text?: string | undefined;
2310
+ }[] | undefined;
2311
+ encounter?: {
2312
+ reference: string;
2313
+ type?: string | undefined;
2314
+ display?: string | undefined;
2315
+ } | undefined;
2316
+ subject?: {
2317
+ reference: string;
2318
+ type?: string | undefined;
2319
+ display?: string | undefined;
2320
+ } | undefined;
2321
+ section?: CompositionSectionShape[] | undefined;
2322
+ confidentiality?: string | undefined;
2323
+ attester?: {
2324
+ mode: "personal" | "professional" | "legal" | "official";
2325
+ time?: string | undefined;
2326
+ party?: {
2327
+ reference: string;
2328
+ type?: string | undefined;
2329
+ display?: string | undefined;
2330
+ } | undefined;
2331
+ }[] | undefined;
2332
+ custodian?: {
2333
+ reference: string;
2334
+ type?: string | undefined;
2335
+ display?: string | undefined;
2336
+ } | undefined;
2337
+ relatesTo?: {
2338
+ code: "replaces" | "transforms" | "signs" | "appends";
2339
+ targetIdentifier?: {
2340
+ value?: string | undefined;
2341
+ system?: string | undefined;
2342
+ use?: string | undefined;
2343
+ } | undefined;
2344
+ targetReference?: {
2345
+ reference: string;
2346
+ type?: string | undefined;
2347
+ display?: string | undefined;
2348
+ } | undefined;
2349
+ }[] | undefined;
2350
+ event?: {
2351
+ code?: {
2352
+ coding?: {
2353
+ code?: string | undefined;
2354
+ system?: string | undefined;
2355
+ display?: string | undefined;
2356
+ }[] | undefined;
2357
+ text?: string | undefined;
2358
+ }[] | undefined;
2359
+ period?: {
2360
+ start?: string | undefined;
2361
+ end?: string | undefined;
2362
+ } | undefined;
2363
+ detail?: {
2364
+ reference: string;
2365
+ type?: string | undefined;
2366
+ display?: string | undefined;
2367
+ }[] | undefined;
2368
+ }[] | undefined;
2369
+ }, {
2370
+ type: {
2371
+ coding: {
2372
+ code: string;
2373
+ system: string;
2374
+ display?: string | undefined;
2375
+ }[];
2376
+ text?: string | undefined;
2377
+ };
2378
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
2379
+ title: string;
2380
+ resourceType: "Composition";
2381
+ date: string;
2382
+ id: string;
2383
+ author: {
2384
+ reference: string;
2385
+ type?: string | undefined;
2386
+ display?: string | undefined;
2387
+ }[];
2388
+ identifier?: {
2389
+ value: string;
2390
+ system?: string | undefined;
2391
+ use?: string | undefined;
2392
+ }[] | undefined;
2393
+ meta?: {
2394
+ lastUpdated?: string | undefined;
2395
+ profile?: string[] | undefined;
2396
+ versionId?: string | undefined;
2397
+ } | undefined;
2398
+ category?: {
2399
+ coding?: {
2400
+ code?: string | undefined;
2401
+ system?: string | undefined;
2402
+ display?: string | undefined;
2403
+ }[] | undefined;
2404
+ text?: string | undefined;
2405
+ }[] | undefined;
2406
+ encounter?: {
2407
+ reference: string;
2408
+ type?: string | undefined;
2409
+ display?: string | undefined;
2410
+ } | undefined;
2411
+ subject?: {
2412
+ reference: string;
2413
+ type?: string | undefined;
2414
+ display?: string | undefined;
2415
+ } | undefined;
2416
+ section?: CompositionSectionShape[] | undefined;
2417
+ confidentiality?: string | undefined;
2418
+ attester?: {
2419
+ mode: "personal" | "professional" | "legal" | "official";
2420
+ time?: string | undefined;
2421
+ party?: {
2422
+ reference: string;
2423
+ type?: string | undefined;
2424
+ display?: string | undefined;
2425
+ } | undefined;
2426
+ }[] | undefined;
2427
+ custodian?: {
2428
+ reference: string;
2429
+ type?: string | undefined;
2430
+ display?: string | undefined;
2431
+ } | undefined;
2432
+ relatesTo?: {
2433
+ code: "replaces" | "transforms" | "signs" | "appends";
2434
+ targetIdentifier?: {
2435
+ value?: string | undefined;
2436
+ system?: string | undefined;
2437
+ use?: string | undefined;
2438
+ } | undefined;
2439
+ targetReference?: {
2440
+ reference: string;
2441
+ type?: string | undefined;
2442
+ display?: string | undefined;
2443
+ } | undefined;
2444
+ }[] | undefined;
2445
+ event?: {
2446
+ code?: {
2447
+ coding?: {
2448
+ code?: string | undefined;
2449
+ system?: string | undefined;
2450
+ display?: string | undefined;
2451
+ }[] | undefined;
2452
+ text?: string | undefined;
2453
+ }[] | undefined;
2454
+ period?: {
2455
+ start?: string | undefined;
2456
+ end?: string | undefined;
2457
+ } | undefined;
2458
+ detail?: {
2459
+ reference: string;
2460
+ type?: string | undefined;
2461
+ display?: string | undefined;
2462
+ }[] | undefined;
2463
+ }[] | undefined;
2464
+ }>;
2465
+ search: z.ZodOptional<z.ZodObject<{
2466
+ mode: z.ZodOptional<z.ZodString>;
2467
+ }, "strip", z.ZodTypeAny, {
2468
+ mode?: string | undefined;
2469
+ }, {
2470
+ mode?: string | undefined;
2471
+ }>>;
2472
+ }, "strip", z.ZodTypeAny, {
2473
+ resource: {
2474
+ type: {
2475
+ coding: {
2476
+ code: string;
2477
+ system: string;
2478
+ display?: string | undefined;
2479
+ }[];
2480
+ text?: string | undefined;
2481
+ };
2482
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
2483
+ title: string;
2484
+ resourceType: "Composition";
2485
+ date: string;
2486
+ id: string;
2487
+ author: {
2488
+ reference: string;
2489
+ type?: string | undefined;
2490
+ display?: string | undefined;
2491
+ }[];
2492
+ identifier?: {
2493
+ value: string;
2494
+ system?: string | undefined;
2495
+ use?: string | undefined;
2496
+ }[] | undefined;
2497
+ meta?: {
2498
+ lastUpdated?: string | undefined;
2499
+ profile?: string[] | undefined;
2500
+ versionId?: string | undefined;
2501
+ } | undefined;
2502
+ category?: {
2503
+ coding?: {
2504
+ code?: string | undefined;
2505
+ system?: string | undefined;
2506
+ display?: string | undefined;
2507
+ }[] | undefined;
2508
+ text?: string | undefined;
2509
+ }[] | undefined;
2510
+ encounter?: {
2511
+ reference: string;
2512
+ type?: string | undefined;
2513
+ display?: string | undefined;
2514
+ } | undefined;
2515
+ subject?: {
2516
+ reference: string;
2517
+ type?: string | undefined;
2518
+ display?: string | undefined;
2519
+ } | undefined;
2520
+ section?: CompositionSectionShape[] | undefined;
2521
+ confidentiality?: string | undefined;
2522
+ attester?: {
2523
+ mode: "personal" | "professional" | "legal" | "official";
2524
+ time?: string | undefined;
2525
+ party?: {
2526
+ reference: string;
2527
+ type?: string | undefined;
2528
+ display?: string | undefined;
2529
+ } | undefined;
2530
+ }[] | undefined;
2531
+ custodian?: {
2532
+ reference: string;
2533
+ type?: string | undefined;
2534
+ display?: string | undefined;
2535
+ } | undefined;
2536
+ relatesTo?: {
2537
+ code: "replaces" | "transforms" | "signs" | "appends";
2538
+ targetIdentifier?: {
2539
+ value?: string | undefined;
2540
+ system?: string | undefined;
2541
+ use?: string | undefined;
2542
+ } | undefined;
2543
+ targetReference?: {
2544
+ reference: string;
2545
+ type?: string | undefined;
2546
+ display?: string | undefined;
2547
+ } | undefined;
2548
+ }[] | undefined;
2549
+ event?: {
2550
+ code?: {
2551
+ coding?: {
2552
+ code?: string | undefined;
2553
+ system?: string | undefined;
2554
+ display?: string | undefined;
2555
+ }[] | undefined;
2556
+ text?: string | undefined;
2557
+ }[] | undefined;
2558
+ period?: {
2559
+ start?: string | undefined;
2560
+ end?: string | undefined;
2561
+ } | undefined;
2562
+ detail?: {
2563
+ reference: string;
2564
+ type?: string | undefined;
2565
+ display?: string | undefined;
2566
+ }[] | undefined;
2567
+ }[] | undefined;
2568
+ };
2569
+ fullUrl?: string | undefined;
2570
+ search?: {
2571
+ mode?: string | undefined;
2572
+ } | undefined;
2573
+ }, {
2574
+ resource: {
2575
+ type: {
2576
+ coding: {
2577
+ code: string;
2578
+ system: string;
2579
+ display?: string | undefined;
2580
+ }[];
2581
+ text?: string | undefined;
2582
+ };
2583
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
2584
+ title: string;
2585
+ resourceType: "Composition";
2586
+ date: string;
2587
+ id: string;
2588
+ author: {
2589
+ reference: string;
2590
+ type?: string | undefined;
2591
+ display?: string | undefined;
2592
+ }[];
2593
+ identifier?: {
2594
+ value: string;
2595
+ system?: string | undefined;
2596
+ use?: string | undefined;
2597
+ }[] | undefined;
2598
+ meta?: {
2599
+ lastUpdated?: string | undefined;
2600
+ profile?: string[] | undefined;
2601
+ versionId?: string | undefined;
2602
+ } | undefined;
2603
+ category?: {
2604
+ coding?: {
2605
+ code?: string | undefined;
2606
+ system?: string | undefined;
2607
+ display?: string | undefined;
2608
+ }[] | undefined;
2609
+ text?: string | undefined;
2610
+ }[] | undefined;
2611
+ encounter?: {
2612
+ reference: string;
2613
+ type?: string | undefined;
2614
+ display?: string | undefined;
2615
+ } | undefined;
2616
+ subject?: {
2617
+ reference: string;
2618
+ type?: string | undefined;
2619
+ display?: string | undefined;
2620
+ } | undefined;
2621
+ section?: CompositionSectionShape[] | undefined;
2622
+ confidentiality?: string | undefined;
2623
+ attester?: {
2624
+ mode: "personal" | "professional" | "legal" | "official";
2625
+ time?: string | undefined;
2626
+ party?: {
2627
+ reference: string;
2628
+ type?: string | undefined;
2629
+ display?: string | undefined;
2630
+ } | undefined;
2631
+ }[] | undefined;
2632
+ custodian?: {
2633
+ reference: string;
2634
+ type?: string | undefined;
2635
+ display?: string | undefined;
2636
+ } | undefined;
2637
+ relatesTo?: {
2638
+ code: "replaces" | "transforms" | "signs" | "appends";
2639
+ targetIdentifier?: {
2640
+ value?: string | undefined;
2641
+ system?: string | undefined;
2642
+ use?: string | undefined;
2643
+ } | undefined;
2644
+ targetReference?: {
2645
+ reference: string;
2646
+ type?: string | undefined;
2647
+ display?: string | undefined;
2648
+ } | undefined;
2649
+ }[] | undefined;
2650
+ event?: {
2651
+ code?: {
2652
+ coding?: {
2653
+ code?: string | undefined;
2654
+ system?: string | undefined;
2655
+ display?: string | undefined;
2656
+ }[] | undefined;
2657
+ text?: string | undefined;
2658
+ }[] | undefined;
2659
+ period?: {
2660
+ start?: string | undefined;
2661
+ end?: string | undefined;
2662
+ } | undefined;
2663
+ detail?: {
2664
+ reference: string;
2665
+ type?: string | undefined;
2666
+ display?: string | undefined;
2667
+ }[] | undefined;
2668
+ }[] | undefined;
2669
+ };
2670
+ fullUrl?: string | undefined;
2671
+ search?: {
2672
+ mode?: string | undefined;
2673
+ } | undefined;
2674
+ }>, "many">>;
2675
+ }, "strip", z.ZodTypeAny, {
2676
+ resourceType: "Bundle";
2677
+ type?: string | undefined;
2678
+ total?: number | undefined;
2679
+ link?: {
2680
+ url?: string | undefined;
2681
+ relation?: string | undefined;
2682
+ }[] | undefined;
2683
+ entry?: {
2684
+ resource: {
2685
+ type: {
2686
+ coding: {
2687
+ code: string;
2688
+ system: string;
2689
+ display?: string | undefined;
2690
+ }[];
2691
+ text?: string | undefined;
2692
+ };
2693
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
2694
+ title: string;
2695
+ resourceType: "Composition";
2696
+ date: string;
2697
+ id: string;
2698
+ author: {
2699
+ reference: string;
2700
+ type?: string | undefined;
2701
+ display?: string | undefined;
2702
+ }[];
2703
+ identifier?: {
2704
+ value: string;
2705
+ system?: string | undefined;
2706
+ use?: string | undefined;
2707
+ }[] | undefined;
2708
+ meta?: {
2709
+ lastUpdated?: string | undefined;
2710
+ profile?: string[] | undefined;
2711
+ versionId?: string | undefined;
2712
+ } | undefined;
2713
+ category?: {
2714
+ coding?: {
2715
+ code?: string | undefined;
2716
+ system?: string | undefined;
2717
+ display?: string | undefined;
2718
+ }[] | undefined;
2719
+ text?: string | undefined;
2720
+ }[] | undefined;
2721
+ encounter?: {
2722
+ reference: string;
2723
+ type?: string | undefined;
2724
+ display?: string | undefined;
2725
+ } | undefined;
2726
+ subject?: {
2727
+ reference: string;
2728
+ type?: string | undefined;
2729
+ display?: string | undefined;
2730
+ } | undefined;
2731
+ section?: CompositionSectionShape[] | undefined;
2732
+ confidentiality?: string | undefined;
2733
+ attester?: {
2734
+ mode: "personal" | "professional" | "legal" | "official";
2735
+ time?: string | undefined;
2736
+ party?: {
2737
+ reference: string;
2738
+ type?: string | undefined;
2739
+ display?: string | undefined;
2740
+ } | undefined;
2741
+ }[] | undefined;
2742
+ custodian?: {
2743
+ reference: string;
2744
+ type?: string | undefined;
2745
+ display?: string | undefined;
2746
+ } | undefined;
2747
+ relatesTo?: {
2748
+ code: "replaces" | "transforms" | "signs" | "appends";
2749
+ targetIdentifier?: {
2750
+ value?: string | undefined;
2751
+ system?: string | undefined;
2752
+ use?: string | undefined;
2753
+ } | undefined;
2754
+ targetReference?: {
2755
+ reference: string;
2756
+ type?: string | undefined;
2757
+ display?: string | undefined;
2758
+ } | undefined;
2759
+ }[] | undefined;
2760
+ event?: {
2761
+ code?: {
2762
+ coding?: {
2763
+ code?: string | undefined;
2764
+ system?: string | undefined;
2765
+ display?: string | undefined;
2766
+ }[] | undefined;
2767
+ text?: string | undefined;
2768
+ }[] | undefined;
2769
+ period?: {
2770
+ start?: string | undefined;
2771
+ end?: string | undefined;
2772
+ } | undefined;
2773
+ detail?: {
2774
+ reference: string;
2775
+ type?: string | undefined;
2776
+ display?: string | undefined;
2777
+ }[] | undefined;
2778
+ }[] | undefined;
2779
+ };
2780
+ fullUrl?: string | undefined;
2781
+ search?: {
2782
+ mode?: string | undefined;
2783
+ } | undefined;
2784
+ }[] | undefined;
2785
+ }, {
2786
+ resourceType: "Bundle";
2787
+ type?: string | undefined;
2788
+ total?: number | undefined;
2789
+ link?: {
2790
+ url?: string | undefined;
2791
+ relation?: string | undefined;
2792
+ }[] | undefined;
2793
+ entry?: {
2794
+ resource: {
2795
+ type: {
2796
+ coding: {
2797
+ code: string;
2798
+ system: string;
2799
+ display?: string | undefined;
2800
+ }[];
2801
+ text?: string | undefined;
2802
+ };
2803
+ status: "entered-in-error" | "preliminary" | "final" | "amended";
2804
+ title: string;
2805
+ resourceType: "Composition";
2806
+ date: string;
2807
+ id: string;
2808
+ author: {
2809
+ reference: string;
2810
+ type?: string | undefined;
2811
+ display?: string | undefined;
2812
+ }[];
2813
+ identifier?: {
2814
+ value: string;
2815
+ system?: string | undefined;
2816
+ use?: string | undefined;
2817
+ }[] | undefined;
2818
+ meta?: {
2819
+ lastUpdated?: string | undefined;
2820
+ profile?: string[] | undefined;
2821
+ versionId?: string | undefined;
2822
+ } | undefined;
2823
+ category?: {
2824
+ coding?: {
2825
+ code?: string | undefined;
2826
+ system?: string | undefined;
2827
+ display?: string | undefined;
2828
+ }[] | undefined;
2829
+ text?: string | undefined;
2830
+ }[] | undefined;
2831
+ encounter?: {
2832
+ reference: string;
2833
+ type?: string | undefined;
2834
+ display?: string | undefined;
2835
+ } | undefined;
2836
+ subject?: {
2837
+ reference: string;
2838
+ type?: string | undefined;
2839
+ display?: string | undefined;
2840
+ } | undefined;
2841
+ section?: CompositionSectionShape[] | undefined;
2842
+ confidentiality?: string | undefined;
2843
+ attester?: {
2844
+ mode: "personal" | "professional" | "legal" | "official";
2845
+ time?: string | undefined;
2846
+ party?: {
2847
+ reference: string;
2848
+ type?: string | undefined;
2849
+ display?: string | undefined;
2850
+ } | undefined;
2851
+ }[] | undefined;
2852
+ custodian?: {
2853
+ reference: string;
2854
+ type?: string | undefined;
2855
+ display?: string | undefined;
2856
+ } | undefined;
2857
+ relatesTo?: {
2858
+ code: "replaces" | "transforms" | "signs" | "appends";
2859
+ targetIdentifier?: {
2860
+ value?: string | undefined;
2861
+ system?: string | undefined;
2862
+ use?: string | undefined;
2863
+ } | undefined;
2864
+ targetReference?: {
2865
+ reference: string;
2866
+ type?: string | undefined;
2867
+ display?: string | undefined;
2868
+ } | undefined;
2869
+ }[] | undefined;
2870
+ event?: {
2871
+ code?: {
2872
+ coding?: {
2873
+ code?: string | undefined;
2874
+ system?: string | undefined;
2875
+ display?: string | undefined;
2876
+ }[] | undefined;
2877
+ text?: string | undefined;
2878
+ }[] | undefined;
2879
+ period?: {
2880
+ start?: string | undefined;
2881
+ end?: string | undefined;
2882
+ } | undefined;
2883
+ detail?: {
2884
+ reference: string;
2885
+ type?: string | undefined;
2886
+ display?: string | undefined;
2887
+ }[] | undefined;
2888
+ }[] | undefined;
2889
+ };
2890
+ fullUrl?: string | undefined;
2891
+ search?: {
2892
+ mode?: string | undefined;
2893
+ } | undefined;
2894
+ }[] | undefined;
2895
+ }>;
2896
+ export type CompositionIdentifier = z.infer<typeof CompositionIdentifierSchema>;
2897
+ export type CompositionStatus = z.infer<typeof CompositionStatusSchema>;
2898
+ export type CompositionCoding = z.infer<typeof CompositionCodingSchema>;
2899
+ export type CompositionAttesterMode = z.infer<typeof CompositionAttesterModeSchema>;
2900
+ export type CompositionAttester = z.infer<typeof CompositionAttesterSchema>;
2901
+ export type CompositionRelatesToCode = z.infer<typeof CompositionRelatesToCodeSchema>;
2902
+ export type CompositionRelatesTo = z.infer<typeof CompositionRelatesToSchema>;
2903
+ export type CompositionEvent = z.infer<typeof CompositionEventSchema>;
2904
+ export type CompositionNarrativeStatus = z.infer<typeof CompositionNarrativeStatusSchema>;
2905
+ export type CompositionNarrative = z.infer<typeof CompositionNarrativeSchema>;
2906
+ export type CompositionSectionMode = z.infer<typeof CompositionSectionModeSchema>;
2907
+ export type CompositionSection = z.infer<typeof CompositionSectionSchema>;
2908
+ export type CompositionPatchOperation = z.infer<typeof CompositionPatchOperationSchema>;
2909
+ export type CompositionPatchInput = z.infer<typeof CompositionPatchSchema>;
2910
+ export type Composition = z.infer<typeof CompositionSchema>;
2911
+ export type CompositionCreateInput = z.infer<typeof CompositionCreateSchema>;
2912
+ export type CompositionSearchParams = z.infer<typeof CompositionSearchParamsSchema>;
2913
+ export type CompositionSearchResponse = z.infer<typeof CompositionBundleSchema>;
2914
+ export {};