@metriport/commonwell-sdk 6.2.4 → 6.3.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 (42) hide show
  1. package/dist/client/commonwell-api.d.ts +18 -7
  2. package/dist/client/commonwell-api.d.ts.map +1 -1
  3. package/dist/client/commonwell.d.ts +22 -13
  4. package/dist/client/commonwell.d.ts.map +1 -1
  5. package/dist/client/commonwell.js +48 -18
  6. package/dist/client/commonwell.js.map +1 -1
  7. package/dist/common/util.d.ts +39 -17
  8. package/dist/common/util.d.ts.map +1 -1
  9. package/dist/common/util.js +36 -39
  10. package/dist/common/util.js.map +1 -1
  11. package/dist/common/validate-npi.d.ts +1 -10
  12. package/dist/common/validate-npi.d.ts.map +1 -1
  13. package/dist/common/validate-npi.js +2 -38
  14. package/dist/common/validate-npi.js.map +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +4 -3
  18. package/dist/index.js.map +1 -1
  19. package/dist/models/address.d.ts +12 -9
  20. package/dist/models/address.d.ts.map +1 -1
  21. package/dist/models/address.js +3 -0
  22. package/dist/models/address.js.map +1 -1
  23. package/dist/models/contact.d.ts +2 -2
  24. package/dist/models/demographics.d.ts +34 -40
  25. package/dist/models/demographics.d.ts.map +1 -1
  26. package/dist/models/demographics.js +29 -47
  27. package/dist/models/demographics.js.map +1 -1
  28. package/dist/models/document.d.ts +1924 -1575
  29. package/dist/models/document.d.ts.map +1 -1
  30. package/dist/models/document.js +24 -22
  31. package/dist/models/document.js.map +1 -1
  32. package/dist/models/facility.d.ts +16 -16
  33. package/dist/models/identifier.d.ts +15 -73
  34. package/dist/models/identifier.d.ts.map +1 -1
  35. package/dist/models/identifier.js +3 -14
  36. package/dist/models/identifier.js.map +1 -1
  37. package/dist/models/patient.d.ts +2124 -787
  38. package/dist/models/patient.d.ts.map +1 -1
  39. package/dist/models/patient.js +38 -13
  40. package/dist/models/patient.js.map +1 -1
  41. package/dist/models/reference.d.ts +24 -24
  42. package/package.json +2 -2
@@ -25,6 +25,7 @@ export declare const patientLinksSchema: z.ZodObject<{
25
25
  Delete?: string | null | undefined;
26
26
  ProbableLink?: string | null | undefined;
27
27
  }>;
28
+ export type PatientLinks = z.infer<typeof patientLinksSchema>;
28
29
  export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
29
30
  identifier: z.ZodArray<z.ZodObject<{
30
31
  value: z.ZodString;
@@ -46,22 +47,22 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
46
47
  value: string;
47
48
  system: string;
48
49
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
49
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
50
- assigner?: string | null | undefined;
50
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
51
51
  period?: {
52
52
  start?: string | null | undefined;
53
53
  end?: string | null | undefined;
54
54
  } | null | undefined;
55
+ assigner?: string | null | undefined;
55
56
  }, {
56
57
  value: string;
57
58
  system: string;
58
59
  type?: unknown;
59
60
  use?: unknown;
60
- assigner?: unknown;
61
61
  period?: {
62
62
  start?: unknown;
63
63
  end?: unknown;
64
64
  } | null | undefined;
65
+ assigner?: unknown;
65
66
  }>, "many">;
66
67
  name: z.ZodArray<z.ZodObject<{
67
68
  given: z.ZodArray<z.ZodString, "many">;
@@ -103,7 +104,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
103
104
  prefix?: unknown;
104
105
  suffix?: unknown;
105
106
  }>, "many">;
106
- gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodNativeEnum<typeof import("./demographics").GenderCodes>, z.ZodNativeEnum<typeof import("./demographics").GenderCodesBackwardsCompatible>]>, z.ZodEnum<[string, ...string[]]>]>, string, string>, string, unknown>>>;
107
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof import("./demographics").GenderCodes>>, import("./demographics").GenderCodes | undefined, unknown>>>;
107
108
  birthDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodString]>, string, string>;
108
109
  address: z.ZodArray<z.ZodObject<{
109
110
  line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
@@ -126,27 +127,27 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
126
127
  }, "strip", z.ZodTypeAny, {
127
128
  postalCode: string;
128
129
  type?: import("./address").AddressTypeCodes | null | undefined;
130
+ line?: string[] | null | undefined;
131
+ city?: string | null | undefined;
132
+ state?: string | null | undefined;
133
+ country?: string | null | undefined;
129
134
  use?: import("./address").AddressUseCodes | null | undefined;
130
135
  period?: {
131
136
  start?: string | null | undefined;
132
137
  end?: string | null | undefined;
133
138
  } | null | undefined;
134
- line?: string[] | null | undefined;
135
- city?: string | null | undefined;
136
- state?: string | null | undefined;
137
- country?: string | null | undefined;
138
139
  }, {
139
140
  postalCode: string;
140
141
  type?: unknown;
142
+ line?: string[] | null | undefined;
143
+ city?: string | null | undefined;
144
+ state?: unknown;
145
+ country?: unknown;
141
146
  use?: unknown;
142
147
  period?: {
143
148
  start?: unknown;
144
149
  end?: unknown;
145
150
  } | null | undefined;
146
- line?: string[] | null | undefined;
147
- city?: string | null | undefined;
148
- state?: unknown;
149
- country?: unknown;
150
151
  }>, "many">;
151
152
  telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
152
153
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -164,20 +165,20 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
164
165
  }>>>;
165
166
  }, "strip", z.ZodTypeAny, {
166
167
  value?: string | null | undefined;
167
- system?: import("./contact").ContactSystemCodes | null | undefined;
168
168
  use?: import("./contact").ContactUseCodes | null | undefined;
169
169
  period?: {
170
170
  start?: string | null | undefined;
171
171
  end?: string | null | undefined;
172
172
  } | null | undefined;
173
+ system?: import("./contact").ContactSystemCodes | null | undefined;
173
174
  }, {
174
175
  value?: string | null | undefined;
175
- system?: unknown;
176
176
  use?: unknown;
177
177
  period?: {
178
178
  start?: unknown;
179
179
  end?: unknown;
180
180
  } | null | undefined;
181
+ system?: unknown;
181
182
  }>, "many">>>;
182
183
  }, {
183
184
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -215,32 +216,11 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
215
216
  }[];
216
217
  name?: string | null | undefined;
217
218
  }>>>;
218
- link: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
219
- Self: z.ZodString;
220
- /**
221
- * 8.4.1 Get Patient Links
222
- * An Edge System can search and request Patient Links by a local patient identifier. The result
223
- * of the query will include local and remote patient’s links that are autolinked by the rules
224
- * engine or manually linked.
225
- * The links returned are confirmed links of LOLA 2 or higher.
226
- */
227
- PatientLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
- ResetLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
- Delete: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
- ProbableLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
- }, "strip", z.ZodTypeAny, {
232
- Self: string;
233
- PatientLink?: string | null | undefined;
234
- ResetLink?: string | null | undefined;
235
- Delete?: string | null | undefined;
236
- ProbableLink?: string | null | undefined;
237
- }, {
238
- Self: string;
239
- PatientLink?: string | null | undefined;
240
- ResetLink?: string | null | undefined;
241
- Delete?: string | null | undefined;
242
- ProbableLink?: string | null | undefined;
243
- }>, "many">>>;
219
+ /**
220
+ * Links to a Patient or RelatedPerson resource that concerns the same actual individual.
221
+ * The patient resource containing this link is the non-surviving patient.
222
+ * Disabled because couldn't validatte this in pre-production.
223
+ */
244
224
  disclosure: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
245
225
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
246
226
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -265,42 +245,42 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
265
245
  }, "strip", z.ZodTypeAny, {
266
246
  postalCode: string;
267
247
  type?: import("./address").AddressTypeCodes | null | undefined;
248
+ line?: string[] | null | undefined;
249
+ city?: string | null | undefined;
250
+ state?: string | null | undefined;
251
+ country?: string | null | undefined;
268
252
  use?: import("./address").AddressUseCodes | null | undefined;
269
253
  period?: {
270
254
  start?: string | null | undefined;
271
255
  end?: string | null | undefined;
272
256
  } | null | undefined;
273
- line?: string[] | null | undefined;
274
- city?: string | null | undefined;
275
- state?: string | null | undefined;
276
- country?: string | null | undefined;
277
257
  }, {
278
258
  postalCode: string;
279
259
  type?: unknown;
260
+ line?: string[] | null | undefined;
261
+ city?: string | null | undefined;
262
+ state?: unknown;
263
+ country?: unknown;
280
264
  use?: unknown;
281
265
  period?: {
282
266
  start?: unknown;
283
267
  end?: unknown;
284
268
  } | null | undefined;
285
- line?: string[] | null | undefined;
286
- city?: string | null | undefined;
287
- state?: unknown;
288
- country?: unknown;
289
269
  }>>>;
290
270
  }, "strip", z.ZodTypeAny, {
291
271
  name?: string | null | undefined;
292
272
  address?: {
293
273
  postalCode: string;
294
274
  type?: import("./address").AddressTypeCodes | null | undefined;
275
+ line?: string[] | null | undefined;
276
+ city?: string | null | undefined;
277
+ state?: string | null | undefined;
278
+ country?: string | null | undefined;
295
279
  use?: import("./address").AddressUseCodes | null | undefined;
296
280
  period?: {
297
281
  start?: string | null | undefined;
298
282
  end?: string | null | undefined;
299
283
  } | null | undefined;
300
- line?: string[] | null | undefined;
301
- city?: string | null | undefined;
302
- state?: string | null | undefined;
303
- country?: string | null | undefined;
304
284
  } | null | undefined;
305
285
  id?: string | null | undefined;
306
286
  }, {
@@ -308,15 +288,15 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
308
288
  address?: {
309
289
  postalCode: string;
310
290
  type?: unknown;
291
+ line?: string[] | null | undefined;
292
+ city?: string | null | undefined;
293
+ state?: unknown;
294
+ country?: unknown;
311
295
  use?: unknown;
312
296
  period?: {
313
297
  start?: unknown;
314
298
  end?: unknown;
315
299
  } | null | undefined;
316
- line?: string[] | null | undefined;
317
- city?: string | null | undefined;
318
- state?: unknown;
319
- country?: unknown;
320
300
  } | null | undefined;
321
301
  id?: string | null | undefined;
322
302
  }>, "many">>>;
@@ -325,12 +305,12 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
325
305
  value: string;
326
306
  system: string;
327
307
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
328
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
329
- assigner?: string | null | undefined;
308
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
330
309
  period?: {
331
310
  start?: string | null | undefined;
332
311
  end?: string | null | undefined;
333
312
  } | null | undefined;
313
+ assigner?: string | null | undefined;
334
314
  }[];
335
315
  name: {
336
316
  family: string[];
@@ -348,32 +328,25 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
348
328
  address: {
349
329
  postalCode: string;
350
330
  type?: import("./address").AddressTypeCodes | null | undefined;
331
+ line?: string[] | null | undefined;
332
+ city?: string | null | undefined;
333
+ state?: string | null | undefined;
334
+ country?: string | null | undefined;
351
335
  use?: import("./address").AddressUseCodes | null | undefined;
352
336
  period?: {
353
337
  start?: string | null | undefined;
354
338
  end?: string | null | undefined;
355
339
  } | null | undefined;
356
- line?: string[] | null | undefined;
357
- city?: string | null | undefined;
358
- state?: string | null | undefined;
359
- country?: string | null | undefined;
360
340
  }[];
361
- link?: {
362
- Self: string;
363
- PatientLink?: string | null | undefined;
364
- ResetLink?: string | null | undefined;
365
- Delete?: string | null | undefined;
366
- ProbableLink?: string | null | undefined;
367
- }[] | null | undefined;
368
- gender?: string | null | undefined;
341
+ gender?: import("./demographics").GenderCodes | null | undefined;
369
342
  telecom?: {
370
343
  value?: string | null | undefined;
371
- system?: import("./contact").ContactSystemCodes | null | undefined;
372
344
  use?: import("./contact").ContactUseCodes | null | undefined;
373
345
  period?: {
374
346
  start?: string | null | undefined;
375
347
  end?: string | null | undefined;
376
348
  } | null | undefined;
349
+ system?: import("./contact").ContactSystemCodes | null | undefined;
377
350
  }[] | null | undefined;
378
351
  active?: boolean | null | undefined;
379
352
  managingOrganization?: {
@@ -387,15 +360,15 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
387
360
  address?: {
388
361
  postalCode: string;
389
362
  type?: import("./address").AddressTypeCodes | null | undefined;
363
+ line?: string[] | null | undefined;
364
+ city?: string | null | undefined;
365
+ state?: string | null | undefined;
366
+ country?: string | null | undefined;
390
367
  use?: import("./address").AddressUseCodes | null | undefined;
391
368
  period?: {
392
369
  start?: string | null | undefined;
393
370
  end?: string | null | undefined;
394
371
  } | null | undefined;
395
- line?: string[] | null | undefined;
396
- city?: string | null | undefined;
397
- state?: string | null | undefined;
398
- country?: string | null | undefined;
399
372
  } | null | undefined;
400
373
  id?: string | null | undefined;
401
374
  }[] | null | undefined;
@@ -405,11 +378,11 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
405
378
  system: string;
406
379
  type?: unknown;
407
380
  use?: unknown;
408
- assigner?: unknown;
409
381
  period?: {
410
382
  start?: unknown;
411
383
  end?: unknown;
412
384
  } | null | undefined;
385
+ assigner?: unknown;
413
386
  }[];
414
387
  name: {
415
388
  family: string[];
@@ -427,32 +400,25 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
427
400
  address: {
428
401
  postalCode: string;
429
402
  type?: unknown;
403
+ line?: string[] | null | undefined;
404
+ city?: string | null | undefined;
405
+ state?: unknown;
406
+ country?: unknown;
430
407
  use?: unknown;
431
408
  period?: {
432
409
  start?: unknown;
433
410
  end?: unknown;
434
411
  } | null | undefined;
435
- line?: string[] | null | undefined;
436
- city?: string | null | undefined;
437
- state?: unknown;
438
- country?: unknown;
439
412
  }[];
440
- link?: {
441
- Self: string;
442
- PatientLink?: string | null | undefined;
443
- ResetLink?: string | null | undefined;
444
- Delete?: string | null | undefined;
445
- ProbableLink?: string | null | undefined;
446
- }[] | null | undefined;
447
413
  gender?: unknown;
448
414
  telecom?: {
449
415
  value?: string | null | undefined;
450
- system?: unknown;
451
416
  use?: unknown;
452
417
  period?: {
453
418
  start?: unknown;
454
419
  end?: unknown;
455
420
  } | null | undefined;
421
+ system?: unknown;
456
422
  }[] | null | undefined;
457
423
  active?: boolean | null | undefined;
458
424
  managingOrganization?: {
@@ -466,21 +432,44 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<{
466
432
  address?: {
467
433
  postalCode: string;
468
434
  type?: unknown;
435
+ line?: string[] | null | undefined;
436
+ city?: string | null | undefined;
437
+ state?: unknown;
438
+ country?: unknown;
469
439
  use?: unknown;
470
440
  period?: {
471
441
  start?: unknown;
472
442
  end?: unknown;
473
443
  } | null | undefined;
474
- line?: string[] | null | undefined;
475
- city?: string | null | undefined;
476
- state?: unknown;
477
- country?: unknown;
478
444
  } | null | undefined;
479
445
  id?: string | null | undefined;
480
446
  }[] | null | undefined;
481
447
  }>;
482
448
  export type Patient = z.infer<typeof patientSchema>;
483
- export declare const patientCollectionItemSchema: z.ZodObject<{
449
+ export declare const statusResponseSchema: z.ZodObject<{
450
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
451
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
+ code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ code?: number | null | undefined;
455
+ message?: string | null | undefined;
456
+ }, {
457
+ code?: number | null | undefined;
458
+ message?: string | null | undefined;
459
+ }>>>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ status?: {
462
+ code?: number | null | undefined;
463
+ message?: string | null | undefined;
464
+ } | null | undefined;
465
+ }, {
466
+ status?: {
467
+ code?: number | null | undefined;
468
+ message?: string | null | undefined;
469
+ } | null | undefined;
470
+ }>;
471
+ export type StatusResponse = z.infer<typeof statusResponseSchema>;
472
+ export declare const patientResponseItemSchema: z.ZodObject<{
484
473
  Patient: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
485
474
  identifier: z.ZodArray<z.ZodObject<{
486
475
  value: z.ZodString;
@@ -502,22 +491,22 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
502
491
  value: string;
503
492
  system: string;
504
493
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
505
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
506
- assigner?: string | null | undefined;
494
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
507
495
  period?: {
508
496
  start?: string | null | undefined;
509
497
  end?: string | null | undefined;
510
498
  } | null | undefined;
499
+ assigner?: string | null | undefined;
511
500
  }, {
512
501
  value: string;
513
502
  system: string;
514
503
  type?: unknown;
515
504
  use?: unknown;
516
- assigner?: unknown;
517
505
  period?: {
518
506
  start?: unknown;
519
507
  end?: unknown;
520
508
  } | null | undefined;
509
+ assigner?: unknown;
521
510
  }>, "many">;
522
511
  name: z.ZodArray<z.ZodObject<{
523
512
  given: z.ZodArray<z.ZodString, "many">;
@@ -559,7 +548,7 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
559
548
  prefix?: unknown;
560
549
  suffix?: unknown;
561
550
  }>, "many">;
562
- gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodNativeEnum<typeof import("./demographics").GenderCodes>, z.ZodNativeEnum<typeof import("./demographics").GenderCodesBackwardsCompatible>]>, z.ZodEnum<[string, ...string[]]>]>, string, string>, string, unknown>>>;
551
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof import("./demographics").GenderCodes>>, import("./demographics").GenderCodes | undefined, unknown>>>;
563
552
  birthDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodString]>, string, string>;
564
553
  address: z.ZodArray<z.ZodObject<{
565
554
  line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
@@ -582,27 +571,27 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
582
571
  }, "strip", z.ZodTypeAny, {
583
572
  postalCode: string;
584
573
  type?: import("./address").AddressTypeCodes | null | undefined;
574
+ line?: string[] | null | undefined;
575
+ city?: string | null | undefined;
576
+ state?: string | null | undefined;
577
+ country?: string | null | undefined;
585
578
  use?: import("./address").AddressUseCodes | null | undefined;
586
579
  period?: {
587
580
  start?: string | null | undefined;
588
581
  end?: string | null | undefined;
589
582
  } | null | undefined;
590
- line?: string[] | null | undefined;
591
- city?: string | null | undefined;
592
- state?: string | null | undefined;
593
- country?: string | null | undefined;
594
583
  }, {
595
584
  postalCode: string;
596
585
  type?: unknown;
586
+ line?: string[] | null | undefined;
587
+ city?: string | null | undefined;
588
+ state?: unknown;
589
+ country?: unknown;
597
590
  use?: unknown;
598
591
  period?: {
599
592
  start?: unknown;
600
593
  end?: unknown;
601
594
  } | null | undefined;
602
- line?: string[] | null | undefined;
603
- city?: string | null | undefined;
604
- state?: unknown;
605
- country?: unknown;
606
595
  }>, "many">;
607
596
  telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
608
597
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -620,20 +609,20 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
620
609
  }>>>;
621
610
  }, "strip", z.ZodTypeAny, {
622
611
  value?: string | null | undefined;
623
- system?: import("./contact").ContactSystemCodes | null | undefined;
624
612
  use?: import("./contact").ContactUseCodes | null | undefined;
625
613
  period?: {
626
614
  start?: string | null | undefined;
627
615
  end?: string | null | undefined;
628
616
  } | null | undefined;
617
+ system?: import("./contact").ContactSystemCodes | null | undefined;
629
618
  }, {
630
619
  value?: string | null | undefined;
631
- system?: unknown;
632
620
  use?: unknown;
633
621
  period?: {
634
622
  start?: unknown;
635
623
  end?: unknown;
636
624
  } | null | undefined;
625
+ system?: unknown;
637
626
  }>, "many">>>;
638
627
  }, {
639
628
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -671,32 +660,11 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
671
660
  }[];
672
661
  name?: string | null | undefined;
673
662
  }>>>;
674
- link: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
675
- Self: z.ZodString;
676
- /**
677
- * 8.4.1 Get Patient Links
678
- * An Edge System can search and request Patient Links by a local patient identifier. The result
679
- * of the query will include local and remote patient’s links that are autolinked by the rules
680
- * engine or manually linked.
681
- * The links returned are confirmed links of LOLA 2 or higher.
682
- */
683
- PatientLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
684
- ResetLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
- Delete: z.ZodOptional<z.ZodNullable<z.ZodString>>;
686
- ProbableLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
- }, "strip", z.ZodTypeAny, {
688
- Self: string;
689
- PatientLink?: string | null | undefined;
690
- ResetLink?: string | null | undefined;
691
- Delete?: string | null | undefined;
692
- ProbableLink?: string | null | undefined;
693
- }, {
694
- Self: string;
695
- PatientLink?: string | null | undefined;
696
- ResetLink?: string | null | undefined;
697
- Delete?: string | null | undefined;
698
- ProbableLink?: string | null | undefined;
699
- }>, "many">>>;
663
+ /**
664
+ * Links to a Patient or RelatedPerson resource that concerns the same actual individual.
665
+ * The patient resource containing this link is the non-surviving patient.
666
+ * Disabled because couldn't validatte this in pre-production.
667
+ */
700
668
  disclosure: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
701
669
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
702
670
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -721,42 +689,42 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
721
689
  }, "strip", z.ZodTypeAny, {
722
690
  postalCode: string;
723
691
  type?: import("./address").AddressTypeCodes | null | undefined;
692
+ line?: string[] | null | undefined;
693
+ city?: string | null | undefined;
694
+ state?: string | null | undefined;
695
+ country?: string | null | undefined;
724
696
  use?: import("./address").AddressUseCodes | null | undefined;
725
697
  period?: {
726
698
  start?: string | null | undefined;
727
699
  end?: string | null | undefined;
728
700
  } | null | undefined;
729
- line?: string[] | null | undefined;
730
- city?: string | null | undefined;
731
- state?: string | null | undefined;
732
- country?: string | null | undefined;
733
701
  }, {
734
702
  postalCode: string;
735
703
  type?: unknown;
704
+ line?: string[] | null | undefined;
705
+ city?: string | null | undefined;
706
+ state?: unknown;
707
+ country?: unknown;
736
708
  use?: unknown;
737
709
  period?: {
738
710
  start?: unknown;
739
711
  end?: unknown;
740
712
  } | null | undefined;
741
- line?: string[] | null | undefined;
742
- city?: string | null | undefined;
743
- state?: unknown;
744
- country?: unknown;
745
713
  }>>>;
746
714
  }, "strip", z.ZodTypeAny, {
747
715
  name?: string | null | undefined;
748
716
  address?: {
749
717
  postalCode: string;
750
718
  type?: import("./address").AddressTypeCodes | null | undefined;
719
+ line?: string[] | null | undefined;
720
+ city?: string | null | undefined;
721
+ state?: string | null | undefined;
722
+ country?: string | null | undefined;
751
723
  use?: import("./address").AddressUseCodes | null | undefined;
752
724
  period?: {
753
725
  start?: string | null | undefined;
754
726
  end?: string | null | undefined;
755
727
  } | null | undefined;
756
- line?: string[] | null | undefined;
757
- city?: string | null | undefined;
758
- state?: string | null | undefined;
759
- country?: string | null | undefined;
760
728
  } | null | undefined;
761
729
  id?: string | null | undefined;
762
730
  }, {
@@ -764,15 +732,15 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
764
732
  address?: {
765
733
  postalCode: string;
766
734
  type?: unknown;
735
+ line?: string[] | null | undefined;
736
+ city?: string | null | undefined;
737
+ state?: unknown;
738
+ country?: unknown;
767
739
  use?: unknown;
768
740
  period?: {
769
741
  start?: unknown;
770
742
  end?: unknown;
771
743
  } | null | undefined;
772
- line?: string[] | null | undefined;
773
- city?: string | null | undefined;
774
- state?: unknown;
775
- country?: unknown;
776
744
  } | null | undefined;
777
745
  id?: string | null | undefined;
778
746
  }>, "many">>>;
@@ -781,12 +749,12 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
781
749
  value: string;
782
750
  system: string;
783
751
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
784
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
785
- assigner?: string | null | undefined;
752
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
786
753
  period?: {
787
754
  start?: string | null | undefined;
788
755
  end?: string | null | undefined;
789
756
  } | null | undefined;
757
+ assigner?: string | null | undefined;
790
758
  }[];
791
759
  name: {
792
760
  family: string[];
@@ -804,32 +772,25 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
804
772
  address: {
805
773
  postalCode: string;
806
774
  type?: import("./address").AddressTypeCodes | null | undefined;
775
+ line?: string[] | null | undefined;
776
+ city?: string | null | undefined;
777
+ state?: string | null | undefined;
778
+ country?: string | null | undefined;
807
779
  use?: import("./address").AddressUseCodes | null | undefined;
808
780
  period?: {
809
781
  start?: string | null | undefined;
810
782
  end?: string | null | undefined;
811
783
  } | null | undefined;
812
- line?: string[] | null | undefined;
813
- city?: string | null | undefined;
814
- state?: string | null | undefined;
815
- country?: string | null | undefined;
816
784
  }[];
817
- link?: {
818
- Self: string;
819
- PatientLink?: string | null | undefined;
820
- ResetLink?: string | null | undefined;
821
- Delete?: string | null | undefined;
822
- ProbableLink?: string | null | undefined;
823
- }[] | null | undefined;
824
- gender?: string | null | undefined;
785
+ gender?: import("./demographics").GenderCodes | null | undefined;
825
786
  telecom?: {
826
787
  value?: string | null | undefined;
827
- system?: import("./contact").ContactSystemCodes | null | undefined;
828
788
  use?: import("./contact").ContactUseCodes | null | undefined;
829
789
  period?: {
830
790
  start?: string | null | undefined;
831
791
  end?: string | null | undefined;
832
792
  } | null | undefined;
793
+ system?: import("./contact").ContactSystemCodes | null | undefined;
833
794
  }[] | null | undefined;
834
795
  active?: boolean | null | undefined;
835
796
  managingOrganization?: {
@@ -843,15 +804,15 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
843
804
  address?: {
844
805
  postalCode: string;
845
806
  type?: import("./address").AddressTypeCodes | null | undefined;
807
+ line?: string[] | null | undefined;
808
+ city?: string | null | undefined;
809
+ state?: string | null | undefined;
810
+ country?: string | null | undefined;
846
811
  use?: import("./address").AddressUseCodes | null | undefined;
847
812
  period?: {
848
813
  start?: string | null | undefined;
849
814
  end?: string | null | undefined;
850
815
  } | null | undefined;
851
- line?: string[] | null | undefined;
852
- city?: string | null | undefined;
853
- state?: string | null | undefined;
854
- country?: string | null | undefined;
855
816
  } | null | undefined;
856
817
  id?: string | null | undefined;
857
818
  }[] | null | undefined;
@@ -861,11 +822,11 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
861
822
  system: string;
862
823
  type?: unknown;
863
824
  use?: unknown;
864
- assigner?: unknown;
865
825
  period?: {
866
826
  start?: unknown;
867
827
  end?: unknown;
868
828
  } | null | undefined;
829
+ assigner?: unknown;
869
830
  }[];
870
831
  name: {
871
832
  family: string[];
@@ -883,32 +844,25 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
883
844
  address: {
884
845
  postalCode: string;
885
846
  type?: unknown;
847
+ line?: string[] | null | undefined;
848
+ city?: string | null | undefined;
849
+ state?: unknown;
850
+ country?: unknown;
886
851
  use?: unknown;
887
852
  period?: {
888
853
  start?: unknown;
889
854
  end?: unknown;
890
855
  } | null | undefined;
891
- line?: string[] | null | undefined;
892
- city?: string | null | undefined;
893
- state?: unknown;
894
- country?: unknown;
895
856
  }[];
896
- link?: {
897
- Self: string;
898
- PatientLink?: string | null | undefined;
899
- ResetLink?: string | null | undefined;
900
- Delete?: string | null | undefined;
901
- ProbableLink?: string | null | undefined;
902
- }[] | null | undefined;
903
857
  gender?: unknown;
904
858
  telecom?: {
905
859
  value?: string | null | undefined;
906
- system?: unknown;
907
860
  use?: unknown;
908
861
  period?: {
909
862
  start?: unknown;
910
863
  end?: unknown;
911
864
  } | null | undefined;
865
+ system?: unknown;
912
866
  }[] | null | undefined;
913
867
  active?: boolean | null | undefined;
914
868
  managingOrganization?: {
@@ -922,20 +876,20 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
922
876
  address?: {
923
877
  postalCode: string;
924
878
  type?: unknown;
879
+ line?: string[] | null | undefined;
880
+ city?: string | null | undefined;
881
+ state?: unknown;
882
+ country?: unknown;
925
883
  use?: unknown;
926
884
  period?: {
927
885
  start?: unknown;
928
886
  end?: unknown;
929
887
  } | null | undefined;
930
- line?: string[] | null | undefined;
931
- city?: string | null | undefined;
932
- state?: unknown;
933
- country?: unknown;
934
888
  } | null | undefined;
935
889
  id?: string | null | undefined;
936
890
  }[] | null | undefined;
937
891
  }>>>;
938
- Links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
892
+ Links: z.ZodObject<{
939
893
  Self: z.ZodString;
940
894
  /**
941
895
  * 8.4.1 Get Patient Links
@@ -960,19 +914,26 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
960
914
  ResetLink?: string | null | undefined;
961
915
  Delete?: string | null | undefined;
962
916
  ProbableLink?: string | null | undefined;
963
- }>>>;
917
+ }>;
964
918
  }, "strip", z.ZodTypeAny, {
919
+ Links: {
920
+ Self: string;
921
+ PatientLink?: string | null | undefined;
922
+ ResetLink?: string | null | undefined;
923
+ Delete?: string | null | undefined;
924
+ ProbableLink?: string | null | undefined;
925
+ };
965
926
  Patient?: {
966
927
  identifier: {
967
928
  value: string;
968
929
  system: string;
969
930
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
970
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
971
- assigner?: string | null | undefined;
931
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
972
932
  period?: {
973
933
  start?: string | null | undefined;
974
934
  end?: string | null | undefined;
975
935
  } | null | undefined;
936
+ assigner?: string | null | undefined;
976
937
  }[];
977
938
  name: {
978
939
  family: string[];
@@ -990,32 +951,25 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
990
951
  address: {
991
952
  postalCode: string;
992
953
  type?: import("./address").AddressTypeCodes | null | undefined;
954
+ line?: string[] | null | undefined;
955
+ city?: string | null | undefined;
956
+ state?: string | null | undefined;
957
+ country?: string | null | undefined;
993
958
  use?: import("./address").AddressUseCodes | null | undefined;
994
959
  period?: {
995
960
  start?: string | null | undefined;
996
961
  end?: string | null | undefined;
997
962
  } | null | undefined;
998
- line?: string[] | null | undefined;
999
- city?: string | null | undefined;
1000
- state?: string | null | undefined;
1001
- country?: string | null | undefined;
1002
963
  }[];
1003
- link?: {
1004
- Self: string;
1005
- PatientLink?: string | null | undefined;
1006
- ResetLink?: string | null | undefined;
1007
- Delete?: string | null | undefined;
1008
- ProbableLink?: string | null | undefined;
1009
- }[] | null | undefined;
1010
- gender?: string | null | undefined;
964
+ gender?: import("./demographics").GenderCodes | null | undefined;
1011
965
  telecom?: {
1012
966
  value?: string | null | undefined;
1013
- system?: import("./contact").ContactSystemCodes | null | undefined;
1014
967
  use?: import("./contact").ContactUseCodes | null | undefined;
1015
968
  period?: {
1016
969
  start?: string | null | undefined;
1017
970
  end?: string | null | undefined;
1018
971
  } | null | undefined;
972
+ system?: import("./contact").ContactSystemCodes | null | undefined;
1019
973
  }[] | null | undefined;
1020
974
  active?: boolean | null | undefined;
1021
975
  managingOrganization?: {
@@ -1029,38 +983,38 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
1029
983
  address?: {
1030
984
  postalCode: string;
1031
985
  type?: import("./address").AddressTypeCodes | null | undefined;
986
+ line?: string[] | null | undefined;
987
+ city?: string | null | undefined;
988
+ state?: string | null | undefined;
989
+ country?: string | null | undefined;
1032
990
  use?: import("./address").AddressUseCodes | null | undefined;
1033
991
  period?: {
1034
992
  start?: string | null | undefined;
1035
993
  end?: string | null | undefined;
1036
994
  } | null | undefined;
1037
- line?: string[] | null | undefined;
1038
- city?: string | null | undefined;
1039
- state?: string | null | undefined;
1040
- country?: string | null | undefined;
1041
995
  } | null | undefined;
1042
996
  id?: string | null | undefined;
1043
997
  }[] | null | undefined;
1044
998
  } | null | undefined;
1045
- Links?: {
999
+ }, {
1000
+ Links: {
1046
1001
  Self: string;
1047
1002
  PatientLink?: string | null | undefined;
1048
1003
  ResetLink?: string | null | undefined;
1049
1004
  Delete?: string | null | undefined;
1050
1005
  ProbableLink?: string | null | undefined;
1051
- } | null | undefined;
1052
- }, {
1006
+ };
1053
1007
  Patient?: {
1054
1008
  identifier: {
1055
1009
  value: string;
1056
1010
  system: string;
1057
1011
  type?: unknown;
1058
1012
  use?: unknown;
1059
- assigner?: unknown;
1060
1013
  period?: {
1061
1014
  start?: unknown;
1062
1015
  end?: unknown;
1063
1016
  } | null | undefined;
1017
+ assigner?: unknown;
1064
1018
  }[];
1065
1019
  name: {
1066
1020
  family: string[];
@@ -1078,32 +1032,25 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
1078
1032
  address: {
1079
1033
  postalCode: string;
1080
1034
  type?: unknown;
1035
+ line?: string[] | null | undefined;
1036
+ city?: string | null | undefined;
1037
+ state?: unknown;
1038
+ country?: unknown;
1081
1039
  use?: unknown;
1082
1040
  period?: {
1083
1041
  start?: unknown;
1084
1042
  end?: unknown;
1085
1043
  } | null | undefined;
1086
- line?: string[] | null | undefined;
1087
- city?: string | null | undefined;
1088
- state?: unknown;
1089
- country?: unknown;
1090
1044
  }[];
1091
- link?: {
1092
- Self: string;
1093
- PatientLink?: string | null | undefined;
1094
- ResetLink?: string | null | undefined;
1095
- Delete?: string | null | undefined;
1096
- ProbableLink?: string | null | undefined;
1097
- }[] | null | undefined;
1098
1045
  gender?: unknown;
1099
1046
  telecom?: {
1100
1047
  value?: string | null | undefined;
1101
- system?: unknown;
1102
1048
  use?: unknown;
1103
1049
  period?: {
1104
1050
  start?: unknown;
1105
1051
  end?: unknown;
1106
1052
  } | null | undefined;
1053
+ system?: unknown;
1107
1054
  }[] | null | undefined;
1108
1055
  active?: boolean | null | undefined;
1109
1056
  managingOrganization?: {
@@ -1117,29 +1064,22 @@ export declare const patientCollectionItemSchema: z.ZodObject<{
1117
1064
  address?: {
1118
1065
  postalCode: string;
1119
1066
  type?: unknown;
1067
+ line?: string[] | null | undefined;
1068
+ city?: string | null | undefined;
1069
+ state?: unknown;
1070
+ country?: unknown;
1120
1071
  use?: unknown;
1121
1072
  period?: {
1122
1073
  start?: unknown;
1123
1074
  end?: unknown;
1124
1075
  } | null | undefined;
1125
- line?: string[] | null | undefined;
1126
- city?: string | null | undefined;
1127
- state?: unknown;
1128
- country?: unknown;
1129
1076
  } | null | undefined;
1130
1077
  id?: string | null | undefined;
1131
1078
  }[] | null | undefined;
1132
1079
  } | null | undefined;
1133
- Links?: {
1134
- Self: string;
1135
- PatientLink?: string | null | undefined;
1136
- ResetLink?: string | null | undefined;
1137
- Delete?: string | null | undefined;
1138
- ProbableLink?: string | null | undefined;
1139
- } | null | undefined;
1140
1080
  }>;
1141
- export type PatientCollectionItem = z.infer<typeof patientCollectionItemSchema>;
1142
- export declare const patientCollectionSchema: z.ZodObject<{
1081
+ export type PatientResponseItem = z.infer<typeof patientResponseItemSchema>;
1082
+ export declare const patientResponseSchema: z.ZodObject<{
1143
1083
  Patients: z.ZodArray<z.ZodObject<{
1144
1084
  Patient: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
1145
1085
  identifier: z.ZodArray<z.ZodObject<{
@@ -1162,22 +1102,22 @@ export declare const patientCollectionSchema: z.ZodObject<{
1162
1102
  value: string;
1163
1103
  system: string;
1164
1104
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
1165
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
1166
- assigner?: string | null | undefined;
1105
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
1167
1106
  period?: {
1168
1107
  start?: string | null | undefined;
1169
1108
  end?: string | null | undefined;
1170
1109
  } | null | undefined;
1110
+ assigner?: string | null | undefined;
1171
1111
  }, {
1172
1112
  value: string;
1173
1113
  system: string;
1174
1114
  type?: unknown;
1175
1115
  use?: unknown;
1176
- assigner?: unknown;
1177
1116
  period?: {
1178
1117
  start?: unknown;
1179
1118
  end?: unknown;
1180
1119
  } | null | undefined;
1120
+ assigner?: unknown;
1181
1121
  }>, "many">;
1182
1122
  name: z.ZodArray<z.ZodObject<{
1183
1123
  given: z.ZodArray<z.ZodString, "many">;
@@ -1219,7 +1159,7 @@ export declare const patientCollectionSchema: z.ZodObject<{
1219
1159
  prefix?: unknown;
1220
1160
  suffix?: unknown;
1221
1161
  }>, "many">;
1222
- gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodNativeEnum<typeof import("./demographics").GenderCodes>, z.ZodNativeEnum<typeof import("./demographics").GenderCodesBackwardsCompatible>]>, z.ZodEnum<[string, ...string[]]>]>, string, string>, string, unknown>>>;
1162
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof import("./demographics").GenderCodes>>, import("./demographics").GenderCodes | undefined, unknown>>>;
1223
1163
  birthDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodString]>, string, string>;
1224
1164
  address: z.ZodArray<z.ZodObject<{
1225
1165
  line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
@@ -1242,27 +1182,27 @@ export declare const patientCollectionSchema: z.ZodObject<{
1242
1182
  }, "strip", z.ZodTypeAny, {
1243
1183
  postalCode: string;
1244
1184
  type?: import("./address").AddressTypeCodes | null | undefined;
1185
+ line?: string[] | null | undefined;
1186
+ city?: string | null | undefined;
1187
+ state?: string | null | undefined;
1188
+ country?: string | null | undefined;
1245
1189
  use?: import("./address").AddressUseCodes | null | undefined;
1246
1190
  period?: {
1247
1191
  start?: string | null | undefined;
1248
1192
  end?: string | null | undefined;
1249
1193
  } | null | undefined;
1250
- line?: string[] | null | undefined;
1251
- city?: string | null | undefined;
1252
- state?: string | null | undefined;
1253
- country?: string | null | undefined;
1254
1194
  }, {
1255
1195
  postalCode: string;
1256
1196
  type?: unknown;
1197
+ line?: string[] | null | undefined;
1198
+ city?: string | null | undefined;
1199
+ state?: unknown;
1200
+ country?: unknown;
1257
1201
  use?: unknown;
1258
1202
  period?: {
1259
1203
  start?: unknown;
1260
1204
  end?: unknown;
1261
1205
  } | null | undefined;
1262
- line?: string[] | null | undefined;
1263
- city?: string | null | undefined;
1264
- state?: unknown;
1265
- country?: unknown;
1266
1206
  }>, "many">;
1267
1207
  telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1268
1208
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1280,20 +1220,20 @@ export declare const patientCollectionSchema: z.ZodObject<{
1280
1220
  }>>>;
1281
1221
  }, "strip", z.ZodTypeAny, {
1282
1222
  value?: string | null | undefined;
1283
- system?: import("./contact").ContactSystemCodes | null | undefined;
1284
1223
  use?: import("./contact").ContactUseCodes | null | undefined;
1285
1224
  period?: {
1286
1225
  start?: string | null | undefined;
1287
1226
  end?: string | null | undefined;
1288
1227
  } | null | undefined;
1228
+ system?: import("./contact").ContactSystemCodes | null | undefined;
1289
1229
  }, {
1290
1230
  value?: string | null | undefined;
1291
- system?: unknown;
1292
1231
  use?: unknown;
1293
1232
  period?: {
1294
1233
  start?: unknown;
1295
1234
  end?: unknown;
1296
1235
  } | null | undefined;
1236
+ system?: unknown;
1297
1237
  }>, "many">>>;
1298
1238
  }, {
1299
1239
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -1331,32 +1271,11 @@ export declare const patientCollectionSchema: z.ZodObject<{
1331
1271
  }[];
1332
1272
  name?: string | null | undefined;
1333
1273
  }>>>;
1334
- link: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1335
- Self: z.ZodString;
1336
- /**
1337
- * 8.4.1 Get Patient Links
1338
- * An Edge System can search and request Patient Links by a local patient identifier. The result
1339
- * of the query will include local and remote patient’s links that are autolinked by the rules
1340
- * engine or manually linked.
1341
- * The links returned are confirmed links of LOLA 2 or higher.
1342
- */
1343
- PatientLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1344
- ResetLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1345
- Delete: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1346
- ProbableLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1347
- }, "strip", z.ZodTypeAny, {
1348
- Self: string;
1349
- PatientLink?: string | null | undefined;
1350
- ResetLink?: string | null | undefined;
1351
- Delete?: string | null | undefined;
1352
- ProbableLink?: string | null | undefined;
1353
- }, {
1354
- Self: string;
1355
- PatientLink?: string | null | undefined;
1356
- ResetLink?: string | null | undefined;
1357
- Delete?: string | null | undefined;
1358
- ProbableLink?: string | null | undefined;
1359
- }>, "many">>>;
1274
+ /**
1275
+ * Links to a Patient or RelatedPerson resource that concerns the same actual individual.
1276
+ * The patient resource containing this link is the non-surviving patient.
1277
+ * Disabled because couldn't validatte this in pre-production.
1278
+ */
1360
1279
  disclosure: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1361
1280
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1362
1281
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1381,42 +1300,42 @@ export declare const patientCollectionSchema: z.ZodObject<{
1381
1300
  }, "strip", z.ZodTypeAny, {
1382
1301
  postalCode: string;
1383
1302
  type?: import("./address").AddressTypeCodes | null | undefined;
1303
+ line?: string[] | null | undefined;
1304
+ city?: string | null | undefined;
1305
+ state?: string | null | undefined;
1306
+ country?: string | null | undefined;
1384
1307
  use?: import("./address").AddressUseCodes | null | undefined;
1385
1308
  period?: {
1386
1309
  start?: string | null | undefined;
1387
1310
  end?: string | null | undefined;
1388
1311
  } | null | undefined;
1389
- line?: string[] | null | undefined;
1390
- city?: string | null | undefined;
1391
- state?: string | null | undefined;
1392
- country?: string | null | undefined;
1393
1312
  }, {
1394
1313
  postalCode: string;
1395
1314
  type?: unknown;
1315
+ line?: string[] | null | undefined;
1316
+ city?: string | null | undefined;
1317
+ state?: unknown;
1318
+ country?: unknown;
1396
1319
  use?: unknown;
1397
1320
  period?: {
1398
1321
  start?: unknown;
1399
1322
  end?: unknown;
1400
1323
  } | null | undefined;
1401
- line?: string[] | null | undefined;
1402
- city?: string | null | undefined;
1403
- state?: unknown;
1404
- country?: unknown;
1405
1324
  }>>>;
1406
1325
  }, "strip", z.ZodTypeAny, {
1407
1326
  name?: string | null | undefined;
1408
1327
  address?: {
1409
1328
  postalCode: string;
1410
1329
  type?: import("./address").AddressTypeCodes | null | undefined;
1330
+ line?: string[] | null | undefined;
1331
+ city?: string | null | undefined;
1332
+ state?: string | null | undefined;
1333
+ country?: string | null | undefined;
1411
1334
  use?: import("./address").AddressUseCodes | null | undefined;
1412
1335
  period?: {
1413
1336
  start?: string | null | undefined;
1414
1337
  end?: string | null | undefined;
1415
1338
  } | null | undefined;
1416
- line?: string[] | null | undefined;
1417
- city?: string | null | undefined;
1418
- state?: string | null | undefined;
1419
- country?: string | null | undefined;
1420
1339
  } | null | undefined;
1421
1340
  id?: string | null | undefined;
1422
1341
  }, {
@@ -1424,15 +1343,15 @@ export declare const patientCollectionSchema: z.ZodObject<{
1424
1343
  address?: {
1425
1344
  postalCode: string;
1426
1345
  type?: unknown;
1346
+ line?: string[] | null | undefined;
1347
+ city?: string | null | undefined;
1348
+ state?: unknown;
1349
+ country?: unknown;
1427
1350
  use?: unknown;
1428
1351
  period?: {
1429
1352
  start?: unknown;
1430
1353
  end?: unknown;
1431
1354
  } | null | undefined;
1432
- line?: string[] | null | undefined;
1433
- city?: string | null | undefined;
1434
- state?: unknown;
1435
- country?: unknown;
1436
1355
  } | null | undefined;
1437
1356
  id?: string | null | undefined;
1438
1357
  }>, "many">>>;
@@ -1441,12 +1360,12 @@ export declare const patientCollectionSchema: z.ZodObject<{
1441
1360
  value: string;
1442
1361
  system: string;
1443
1362
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
1444
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
1445
- assigner?: string | null | undefined;
1363
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
1446
1364
  period?: {
1447
1365
  start?: string | null | undefined;
1448
1366
  end?: string | null | undefined;
1449
1367
  } | null | undefined;
1368
+ assigner?: string | null | undefined;
1450
1369
  }[];
1451
1370
  name: {
1452
1371
  family: string[];
@@ -1464,32 +1383,25 @@ export declare const patientCollectionSchema: z.ZodObject<{
1464
1383
  address: {
1465
1384
  postalCode: string;
1466
1385
  type?: import("./address").AddressTypeCodes | null | undefined;
1386
+ line?: string[] | null | undefined;
1387
+ city?: string | null | undefined;
1388
+ state?: string | null | undefined;
1389
+ country?: string | null | undefined;
1467
1390
  use?: import("./address").AddressUseCodes | null | undefined;
1468
1391
  period?: {
1469
1392
  start?: string | null | undefined;
1470
1393
  end?: string | null | undefined;
1471
1394
  } | null | undefined;
1472
- line?: string[] | null | undefined;
1473
- city?: string | null | undefined;
1474
- state?: string | null | undefined;
1475
- country?: string | null | undefined;
1476
1395
  }[];
1477
- link?: {
1478
- Self: string;
1479
- PatientLink?: string | null | undefined;
1480
- ResetLink?: string | null | undefined;
1481
- Delete?: string | null | undefined;
1482
- ProbableLink?: string | null | undefined;
1483
- }[] | null | undefined;
1484
- gender?: string | null | undefined;
1396
+ gender?: import("./demographics").GenderCodes | null | undefined;
1485
1397
  telecom?: {
1486
1398
  value?: string | null | undefined;
1487
- system?: import("./contact").ContactSystemCodes | null | undefined;
1488
1399
  use?: import("./contact").ContactUseCodes | null | undefined;
1489
1400
  period?: {
1490
1401
  start?: string | null | undefined;
1491
1402
  end?: string | null | undefined;
1492
1403
  } | null | undefined;
1404
+ system?: import("./contact").ContactSystemCodes | null | undefined;
1493
1405
  }[] | null | undefined;
1494
1406
  active?: boolean | null | undefined;
1495
1407
  managingOrganization?: {
@@ -1503,15 +1415,15 @@ export declare const patientCollectionSchema: z.ZodObject<{
1503
1415
  address?: {
1504
1416
  postalCode: string;
1505
1417
  type?: import("./address").AddressTypeCodes | null | undefined;
1418
+ line?: string[] | null | undefined;
1419
+ city?: string | null | undefined;
1420
+ state?: string | null | undefined;
1421
+ country?: string | null | undefined;
1506
1422
  use?: import("./address").AddressUseCodes | null | undefined;
1507
1423
  period?: {
1508
1424
  start?: string | null | undefined;
1509
1425
  end?: string | null | undefined;
1510
1426
  } | null | undefined;
1511
- line?: string[] | null | undefined;
1512
- city?: string | null | undefined;
1513
- state?: string | null | undefined;
1514
- country?: string | null | undefined;
1515
1427
  } | null | undefined;
1516
1428
  id?: string | null | undefined;
1517
1429
  }[] | null | undefined;
@@ -1521,11 +1433,11 @@ export declare const patientCollectionSchema: z.ZodObject<{
1521
1433
  system: string;
1522
1434
  type?: unknown;
1523
1435
  use?: unknown;
1524
- assigner?: unknown;
1525
1436
  period?: {
1526
1437
  start?: unknown;
1527
1438
  end?: unknown;
1528
1439
  } | null | undefined;
1440
+ assigner?: unknown;
1529
1441
  }[];
1530
1442
  name: {
1531
1443
  family: string[];
@@ -1543,32 +1455,25 @@ export declare const patientCollectionSchema: z.ZodObject<{
1543
1455
  address: {
1544
1456
  postalCode: string;
1545
1457
  type?: unknown;
1458
+ line?: string[] | null | undefined;
1459
+ city?: string | null | undefined;
1460
+ state?: unknown;
1461
+ country?: unknown;
1546
1462
  use?: unknown;
1547
1463
  period?: {
1548
1464
  start?: unknown;
1549
1465
  end?: unknown;
1550
1466
  } | null | undefined;
1551
- line?: string[] | null | undefined;
1552
- city?: string | null | undefined;
1553
- state?: unknown;
1554
- country?: unknown;
1555
1467
  }[];
1556
- link?: {
1557
- Self: string;
1558
- PatientLink?: string | null | undefined;
1559
- ResetLink?: string | null | undefined;
1560
- Delete?: string | null | undefined;
1561
- ProbableLink?: string | null | undefined;
1562
- }[] | null | undefined;
1563
1468
  gender?: unknown;
1564
1469
  telecom?: {
1565
1470
  value?: string | null | undefined;
1566
- system?: unknown;
1567
1471
  use?: unknown;
1568
1472
  period?: {
1569
1473
  start?: unknown;
1570
1474
  end?: unknown;
1571
1475
  } | null | undefined;
1476
+ system?: unknown;
1572
1477
  }[] | null | undefined;
1573
1478
  active?: boolean | null | undefined;
1574
1479
  managingOrganization?: {
@@ -1582,20 +1487,20 @@ export declare const patientCollectionSchema: z.ZodObject<{
1582
1487
  address?: {
1583
1488
  postalCode: string;
1584
1489
  type?: unknown;
1490
+ line?: string[] | null | undefined;
1491
+ city?: string | null | undefined;
1492
+ state?: unknown;
1493
+ country?: unknown;
1585
1494
  use?: unknown;
1586
1495
  period?: {
1587
1496
  start?: unknown;
1588
1497
  end?: unknown;
1589
1498
  } | null | undefined;
1590
- line?: string[] | null | undefined;
1591
- city?: string | null | undefined;
1592
- state?: unknown;
1593
- country?: unknown;
1594
1499
  } | null | undefined;
1595
1500
  id?: string | null | undefined;
1596
1501
  }[] | null | undefined;
1597
1502
  }>>>;
1598
- Links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1503
+ Links: z.ZodObject<{
1599
1504
  Self: z.ZodString;
1600
1505
  /**
1601
1506
  * 8.4.1 Get Patient Links
@@ -1620,19 +1525,26 @@ export declare const patientCollectionSchema: z.ZodObject<{
1620
1525
  ResetLink?: string | null | undefined;
1621
1526
  Delete?: string | null | undefined;
1622
1527
  ProbableLink?: string | null | undefined;
1623
- }>>>;
1528
+ }>;
1624
1529
  }, "strip", z.ZodTypeAny, {
1530
+ Links: {
1531
+ Self: string;
1532
+ PatientLink?: string | null | undefined;
1533
+ ResetLink?: string | null | undefined;
1534
+ Delete?: string | null | undefined;
1535
+ ProbableLink?: string | null | undefined;
1536
+ };
1625
1537
  Patient?: {
1626
1538
  identifier: {
1627
1539
  value: string;
1628
1540
  system: string;
1629
1541
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
1630
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
1631
- assigner?: string | null | undefined;
1542
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
1632
1543
  period?: {
1633
1544
  start?: string | null | undefined;
1634
1545
  end?: string | null | undefined;
1635
1546
  } | null | undefined;
1547
+ assigner?: string | null | undefined;
1636
1548
  }[];
1637
1549
  name: {
1638
1550
  family: string[];
@@ -1650,32 +1562,25 @@ export declare const patientCollectionSchema: z.ZodObject<{
1650
1562
  address: {
1651
1563
  postalCode: string;
1652
1564
  type?: import("./address").AddressTypeCodes | null | undefined;
1565
+ line?: string[] | null | undefined;
1566
+ city?: string | null | undefined;
1567
+ state?: string | null | undefined;
1568
+ country?: string | null | undefined;
1653
1569
  use?: import("./address").AddressUseCodes | null | undefined;
1654
1570
  period?: {
1655
1571
  start?: string | null | undefined;
1656
1572
  end?: string | null | undefined;
1657
1573
  } | null | undefined;
1658
- line?: string[] | null | undefined;
1659
- city?: string | null | undefined;
1660
- state?: string | null | undefined;
1661
- country?: string | null | undefined;
1662
1574
  }[];
1663
- link?: {
1664
- Self: string;
1665
- PatientLink?: string | null | undefined;
1666
- ResetLink?: string | null | undefined;
1667
- Delete?: string | null | undefined;
1668
- ProbableLink?: string | null | undefined;
1669
- }[] | null | undefined;
1670
- gender?: string | null | undefined;
1575
+ gender?: import("./demographics").GenderCodes | null | undefined;
1671
1576
  telecom?: {
1672
1577
  value?: string | null | undefined;
1673
- system?: import("./contact").ContactSystemCodes | null | undefined;
1674
1578
  use?: import("./contact").ContactUseCodes | null | undefined;
1675
1579
  period?: {
1676
1580
  start?: string | null | undefined;
1677
1581
  end?: string | null | undefined;
1678
1582
  } | null | undefined;
1583
+ system?: import("./contact").ContactSystemCodes | null | undefined;
1679
1584
  }[] | null | undefined;
1680
1585
  active?: boolean | null | undefined;
1681
1586
  managingOrganization?: {
@@ -1689,38 +1594,38 @@ export declare const patientCollectionSchema: z.ZodObject<{
1689
1594
  address?: {
1690
1595
  postalCode: string;
1691
1596
  type?: import("./address").AddressTypeCodes | null | undefined;
1597
+ line?: string[] | null | undefined;
1598
+ city?: string | null | undefined;
1599
+ state?: string | null | undefined;
1600
+ country?: string | null | undefined;
1692
1601
  use?: import("./address").AddressUseCodes | null | undefined;
1693
1602
  period?: {
1694
1603
  start?: string | null | undefined;
1695
1604
  end?: string | null | undefined;
1696
1605
  } | null | undefined;
1697
- line?: string[] | null | undefined;
1698
- city?: string | null | undefined;
1699
- state?: string | null | undefined;
1700
- country?: string | null | undefined;
1701
1606
  } | null | undefined;
1702
1607
  id?: string | null | undefined;
1703
1608
  }[] | null | undefined;
1704
1609
  } | null | undefined;
1705
- Links?: {
1610
+ }, {
1611
+ Links: {
1706
1612
  Self: string;
1707
1613
  PatientLink?: string | null | undefined;
1708
1614
  ResetLink?: string | null | undefined;
1709
1615
  Delete?: string | null | undefined;
1710
1616
  ProbableLink?: string | null | undefined;
1711
- } | null | undefined;
1712
- }, {
1617
+ };
1713
1618
  Patient?: {
1714
1619
  identifier: {
1715
1620
  value: string;
1716
1621
  system: string;
1717
1622
  type?: unknown;
1718
1623
  use?: unknown;
1719
- assigner?: unknown;
1720
1624
  period?: {
1721
1625
  start?: unknown;
1722
1626
  end?: unknown;
1723
1627
  } | null | undefined;
1628
+ assigner?: unknown;
1724
1629
  }[];
1725
1630
  name: {
1726
1631
  family: string[];
@@ -1738,32 +1643,1457 @@ export declare const patientCollectionSchema: z.ZodObject<{
1738
1643
  address: {
1739
1644
  postalCode: string;
1740
1645
  type?: unknown;
1646
+ line?: string[] | null | undefined;
1647
+ city?: string | null | undefined;
1648
+ state?: unknown;
1649
+ country?: unknown;
1741
1650
  use?: unknown;
1742
1651
  period?: {
1743
1652
  start?: unknown;
1744
1653
  end?: unknown;
1745
1654
  } | null | undefined;
1746
- line?: string[] | null | undefined;
1655
+ }[];
1656
+ gender?: unknown;
1657
+ telecom?: {
1658
+ value?: string | null | undefined;
1659
+ use?: unknown;
1660
+ period?: {
1661
+ start?: unknown;
1662
+ end?: unknown;
1663
+ } | null | undefined;
1664
+ system?: unknown;
1665
+ }[] | null | undefined;
1666
+ active?: boolean | null | undefined;
1667
+ managingOrganization?: {
1668
+ identifier: {
1669
+ system: string;
1670
+ }[];
1671
+ name?: string | null | undefined;
1672
+ } | null | undefined;
1673
+ disclosure?: {
1674
+ name?: string | null | undefined;
1675
+ address?: {
1676
+ postalCode: string;
1677
+ type?: unknown;
1678
+ line?: string[] | null | undefined;
1679
+ city?: string | null | undefined;
1680
+ state?: unknown;
1681
+ country?: unknown;
1682
+ use?: unknown;
1683
+ period?: {
1684
+ start?: unknown;
1685
+ end?: unknown;
1686
+ } | null | undefined;
1687
+ } | null | undefined;
1688
+ id?: string | null | undefined;
1689
+ }[] | null | undefined;
1690
+ } | null | undefined;
1691
+ }>, "atleastone">;
1692
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1693
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1694
+ code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ code?: number | null | undefined;
1697
+ message?: string | null | undefined;
1698
+ }, {
1699
+ code?: number | null | undefined;
1700
+ message?: string | null | undefined;
1701
+ }>>>;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ Patients: [{
1704
+ Links: {
1705
+ Self: string;
1706
+ PatientLink?: string | null | undefined;
1707
+ ResetLink?: string | null | undefined;
1708
+ Delete?: string | null | undefined;
1709
+ ProbableLink?: string | null | undefined;
1710
+ };
1711
+ Patient?: {
1712
+ identifier: {
1713
+ value: string;
1714
+ system: string;
1715
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
1716
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
1717
+ period?: {
1718
+ start?: string | null | undefined;
1719
+ end?: string | null | undefined;
1720
+ } | null | undefined;
1721
+ assigner?: string | null | undefined;
1722
+ }[];
1723
+ name: {
1724
+ family: string[];
1725
+ given: string[];
1726
+ text?: string | null | undefined;
1727
+ use?: import("./human-name").NameUseCodes | null | undefined;
1728
+ period?: {
1729
+ start?: string | null | undefined;
1730
+ end?: string | null | undefined;
1731
+ } | null | undefined;
1732
+ prefix?: string | (string | null | undefined)[] | null | undefined;
1733
+ suffix?: string | (string | null | undefined)[] | null | undefined;
1734
+ }[];
1735
+ birthDate: string;
1736
+ address: {
1737
+ postalCode: string;
1738
+ type?: import("./address").AddressTypeCodes | null | undefined;
1739
+ line?: string[] | null | undefined;
1740
+ city?: string | null | undefined;
1741
+ state?: string | null | undefined;
1742
+ country?: string | null | undefined;
1743
+ use?: import("./address").AddressUseCodes | null | undefined;
1744
+ period?: {
1745
+ start?: string | null | undefined;
1746
+ end?: string | null | undefined;
1747
+ } | null | undefined;
1748
+ }[];
1749
+ gender?: import("./demographics").GenderCodes | null | undefined;
1750
+ telecom?: {
1751
+ value?: string | null | undefined;
1752
+ use?: import("./contact").ContactUseCodes | null | undefined;
1753
+ period?: {
1754
+ start?: string | null | undefined;
1755
+ end?: string | null | undefined;
1756
+ } | null | undefined;
1757
+ system?: import("./contact").ContactSystemCodes | null | undefined;
1758
+ }[] | null | undefined;
1759
+ active?: boolean | null | undefined;
1760
+ managingOrganization?: {
1761
+ identifier: {
1762
+ system: string;
1763
+ }[];
1764
+ name?: string | null | undefined;
1765
+ } | null | undefined;
1766
+ disclosure?: {
1767
+ name?: string | null | undefined;
1768
+ address?: {
1769
+ postalCode: string;
1770
+ type?: import("./address").AddressTypeCodes | null | undefined;
1771
+ line?: string[] | null | undefined;
1772
+ city?: string | null | undefined;
1773
+ state?: string | null | undefined;
1774
+ country?: string | null | undefined;
1775
+ use?: import("./address").AddressUseCodes | null | undefined;
1776
+ period?: {
1777
+ start?: string | null | undefined;
1778
+ end?: string | null | undefined;
1779
+ } | null | undefined;
1780
+ } | null | undefined;
1781
+ id?: string | null | undefined;
1782
+ }[] | null | undefined;
1783
+ } | null | undefined;
1784
+ }, ...{
1785
+ Links: {
1786
+ Self: string;
1787
+ PatientLink?: string | null | undefined;
1788
+ ResetLink?: string | null | undefined;
1789
+ Delete?: string | null | undefined;
1790
+ ProbableLink?: string | null | undefined;
1791
+ };
1792
+ Patient?: {
1793
+ identifier: {
1794
+ value: string;
1795
+ system: string;
1796
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
1797
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
1798
+ period?: {
1799
+ start?: string | null | undefined;
1800
+ end?: string | null | undefined;
1801
+ } | null | undefined;
1802
+ assigner?: string | null | undefined;
1803
+ }[];
1804
+ name: {
1805
+ family: string[];
1806
+ given: string[];
1807
+ text?: string | null | undefined;
1808
+ use?: import("./human-name").NameUseCodes | null | undefined;
1809
+ period?: {
1810
+ start?: string | null | undefined;
1811
+ end?: string | null | undefined;
1812
+ } | null | undefined;
1813
+ prefix?: string | (string | null | undefined)[] | null | undefined;
1814
+ suffix?: string | (string | null | undefined)[] | null | undefined;
1815
+ }[];
1816
+ birthDate: string;
1817
+ address: {
1818
+ postalCode: string;
1819
+ type?: import("./address").AddressTypeCodes | null | undefined;
1820
+ line?: string[] | null | undefined;
1821
+ city?: string | null | undefined;
1822
+ state?: string | null | undefined;
1823
+ country?: string | null | undefined;
1824
+ use?: import("./address").AddressUseCodes | null | undefined;
1825
+ period?: {
1826
+ start?: string | null | undefined;
1827
+ end?: string | null | undefined;
1828
+ } | null | undefined;
1829
+ }[];
1830
+ gender?: import("./demographics").GenderCodes | null | undefined;
1831
+ telecom?: {
1832
+ value?: string | null | undefined;
1833
+ use?: import("./contact").ContactUseCodes | null | undefined;
1834
+ period?: {
1835
+ start?: string | null | undefined;
1836
+ end?: string | null | undefined;
1837
+ } | null | undefined;
1838
+ system?: import("./contact").ContactSystemCodes | null | undefined;
1839
+ }[] | null | undefined;
1840
+ active?: boolean | null | undefined;
1841
+ managingOrganization?: {
1842
+ identifier: {
1843
+ system: string;
1844
+ }[];
1845
+ name?: string | null | undefined;
1846
+ } | null | undefined;
1847
+ disclosure?: {
1848
+ name?: string | null | undefined;
1849
+ address?: {
1850
+ postalCode: string;
1851
+ type?: import("./address").AddressTypeCodes | null | undefined;
1852
+ line?: string[] | null | undefined;
1853
+ city?: string | null | undefined;
1854
+ state?: string | null | undefined;
1855
+ country?: string | null | undefined;
1856
+ use?: import("./address").AddressUseCodes | null | undefined;
1857
+ period?: {
1858
+ start?: string | null | undefined;
1859
+ end?: string | null | undefined;
1860
+ } | null | undefined;
1861
+ } | null | undefined;
1862
+ id?: string | null | undefined;
1863
+ }[] | null | undefined;
1864
+ } | null | undefined;
1865
+ }[]];
1866
+ status?: {
1867
+ code?: number | null | undefined;
1868
+ message?: string | null | undefined;
1869
+ } | null | undefined;
1870
+ }, {
1871
+ Patients: [{
1872
+ Links: {
1873
+ Self: string;
1874
+ PatientLink?: string | null | undefined;
1875
+ ResetLink?: string | null | undefined;
1876
+ Delete?: string | null | undefined;
1877
+ ProbableLink?: string | null | undefined;
1878
+ };
1879
+ Patient?: {
1880
+ identifier: {
1881
+ value: string;
1882
+ system: string;
1883
+ type?: unknown;
1884
+ use?: unknown;
1885
+ period?: {
1886
+ start?: unknown;
1887
+ end?: unknown;
1888
+ } | null | undefined;
1889
+ assigner?: unknown;
1890
+ }[];
1891
+ name: {
1892
+ family: string[];
1893
+ given: string[];
1894
+ text?: string | null | undefined;
1895
+ use?: unknown;
1896
+ period?: {
1897
+ start?: unknown;
1898
+ end?: unknown;
1899
+ } | null | undefined;
1900
+ prefix?: unknown;
1901
+ suffix?: unknown;
1902
+ }[];
1903
+ birthDate: string;
1904
+ address: {
1905
+ postalCode: string;
1906
+ type?: unknown;
1907
+ line?: string[] | null | undefined;
1908
+ city?: string | null | undefined;
1909
+ state?: unknown;
1910
+ country?: unknown;
1911
+ use?: unknown;
1912
+ period?: {
1913
+ start?: unknown;
1914
+ end?: unknown;
1915
+ } | null | undefined;
1916
+ }[];
1917
+ gender?: unknown;
1918
+ telecom?: {
1919
+ value?: string | null | undefined;
1920
+ use?: unknown;
1921
+ period?: {
1922
+ start?: unknown;
1923
+ end?: unknown;
1924
+ } | null | undefined;
1925
+ system?: unknown;
1926
+ }[] | null | undefined;
1927
+ active?: boolean | null | undefined;
1928
+ managingOrganization?: {
1929
+ identifier: {
1930
+ system: string;
1931
+ }[];
1932
+ name?: string | null | undefined;
1933
+ } | null | undefined;
1934
+ disclosure?: {
1935
+ name?: string | null | undefined;
1936
+ address?: {
1937
+ postalCode: string;
1938
+ type?: unknown;
1939
+ line?: string[] | null | undefined;
1940
+ city?: string | null | undefined;
1941
+ state?: unknown;
1942
+ country?: unknown;
1943
+ use?: unknown;
1944
+ period?: {
1945
+ start?: unknown;
1946
+ end?: unknown;
1947
+ } | null | undefined;
1948
+ } | null | undefined;
1949
+ id?: string | null | undefined;
1950
+ }[] | null | undefined;
1951
+ } | null | undefined;
1952
+ }, ...{
1953
+ Links: {
1954
+ Self: string;
1955
+ PatientLink?: string | null | undefined;
1956
+ ResetLink?: string | null | undefined;
1957
+ Delete?: string | null | undefined;
1958
+ ProbableLink?: string | null | undefined;
1959
+ };
1960
+ Patient?: {
1961
+ identifier: {
1962
+ value: string;
1963
+ system: string;
1964
+ type?: unknown;
1965
+ use?: unknown;
1966
+ period?: {
1967
+ start?: unknown;
1968
+ end?: unknown;
1969
+ } | null | undefined;
1970
+ assigner?: unknown;
1971
+ }[];
1972
+ name: {
1973
+ family: string[];
1974
+ given: string[];
1975
+ text?: string | null | undefined;
1976
+ use?: unknown;
1977
+ period?: {
1978
+ start?: unknown;
1979
+ end?: unknown;
1980
+ } | null | undefined;
1981
+ prefix?: unknown;
1982
+ suffix?: unknown;
1983
+ }[];
1984
+ birthDate: string;
1985
+ address: {
1986
+ postalCode: string;
1987
+ type?: unknown;
1988
+ line?: string[] | null | undefined;
1989
+ city?: string | null | undefined;
1990
+ state?: unknown;
1991
+ country?: unknown;
1992
+ use?: unknown;
1993
+ period?: {
1994
+ start?: unknown;
1995
+ end?: unknown;
1996
+ } | null | undefined;
1997
+ }[];
1998
+ gender?: unknown;
1999
+ telecom?: {
2000
+ value?: string | null | undefined;
2001
+ use?: unknown;
2002
+ period?: {
2003
+ start?: unknown;
2004
+ end?: unknown;
2005
+ } | null | undefined;
2006
+ system?: unknown;
2007
+ }[] | null | undefined;
2008
+ active?: boolean | null | undefined;
2009
+ managingOrganization?: {
2010
+ identifier: {
2011
+ system: string;
2012
+ }[];
2013
+ name?: string | null | undefined;
2014
+ } | null | undefined;
2015
+ disclosure?: {
2016
+ name?: string | null | undefined;
2017
+ address?: {
2018
+ postalCode: string;
2019
+ type?: unknown;
2020
+ line?: string[] | null | undefined;
2021
+ city?: string | null | undefined;
2022
+ state?: unknown;
2023
+ country?: unknown;
2024
+ use?: unknown;
2025
+ period?: {
2026
+ start?: unknown;
2027
+ end?: unknown;
2028
+ } | null | undefined;
2029
+ } | null | undefined;
2030
+ id?: string | null | undefined;
2031
+ }[] | null | undefined;
2032
+ } | null | undefined;
2033
+ }[]];
2034
+ status?: {
2035
+ code?: number | null | undefined;
2036
+ message?: string | null | undefined;
2037
+ } | null | undefined;
2038
+ }>;
2039
+ export type PatientResponse = z.infer<typeof patientResponseSchema>;
2040
+ export declare const patientCreateOrUpdateRespSchema: z.ZodObject<{
2041
+ Links: z.ZodObject<{
2042
+ Self: z.ZodString;
2043
+ /**
2044
+ * 8.4.1 Get Patient Links
2045
+ * An Edge System can search and request Patient Links by a local patient identifier. The result
2046
+ * of the query will include local and remote patient’s links that are autolinked by the rules
2047
+ * engine or manually linked.
2048
+ * The links returned are confirmed links of LOLA 2 or higher.
2049
+ */
2050
+ PatientLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2051
+ ResetLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2052
+ Delete: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2053
+ ProbableLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2054
+ }, "strip", z.ZodTypeAny, {
2055
+ Self: string;
2056
+ PatientLink?: string | null | undefined;
2057
+ ResetLink?: string | null | undefined;
2058
+ Delete?: string | null | undefined;
2059
+ ProbableLink?: string | null | undefined;
2060
+ }, {
2061
+ Self: string;
2062
+ PatientLink?: string | null | undefined;
2063
+ ResetLink?: string | null | undefined;
2064
+ Delete?: string | null | undefined;
2065
+ ProbableLink?: string | null | undefined;
2066
+ }>;
2067
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2068
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2069
+ code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2070
+ }, "strip", z.ZodTypeAny, {
2071
+ code?: number | null | undefined;
2072
+ message?: string | null | undefined;
2073
+ }, {
2074
+ code?: number | null | undefined;
2075
+ message?: string | null | undefined;
2076
+ }>>>;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ Links: {
2079
+ Self: string;
2080
+ PatientLink?: string | null | undefined;
2081
+ ResetLink?: string | null | undefined;
2082
+ Delete?: string | null | undefined;
2083
+ ProbableLink?: string | null | undefined;
2084
+ };
2085
+ status?: {
2086
+ code?: number | null | undefined;
2087
+ message?: string | null | undefined;
2088
+ } | null | undefined;
2089
+ }, {
2090
+ Links: {
2091
+ Self: string;
2092
+ PatientLink?: string | null | undefined;
2093
+ ResetLink?: string | null | undefined;
2094
+ Delete?: string | null | undefined;
2095
+ ProbableLink?: string | null | undefined;
2096
+ };
2097
+ status?: {
2098
+ code?: number | null | undefined;
2099
+ message?: string | null | undefined;
2100
+ } | null | undefined;
2101
+ }>;
2102
+ export type PatientCreateOrUpdateResp = z.infer<typeof patientCreateOrUpdateRespSchema>;
2103
+ export declare const linksForPatientExistingLinksSchema: z.ZodObject<{
2104
+ Self: z.ZodString;
2105
+ Unlink: z.ZodString;
2106
+ }, "strip", z.ZodTypeAny, {
2107
+ Self: string;
2108
+ Unlink: string;
2109
+ }, {
2110
+ Self: string;
2111
+ Unlink: string;
2112
+ }>;
2113
+ export type LinksForPatientGetLinks = z.infer<typeof linksForPatientExistingLinksSchema>;
2114
+ export declare const patientExistingLinksItemSchema: z.ZodObject<{
2115
+ Patient: z.ZodObject<z.objectUtil.extendShape<{
2116
+ identifier: z.ZodArray<z.ZodObject<{
2117
+ value: z.ZodString;
2118
+ system: z.ZodString;
2119
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["usual", "official", "temp", "secondary", "old"]>>>>;
2120
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["SS", "DL", "PPN", "BRN", "MR", "MCN", "EN", "TAX", "NIIP", "PRN", "MD", "DR", "ACSN", "UDI", "SNO", "SB", "PLAC", "FILL", "IAL2", "IAL3"]>>>>;
2121
+ assigner: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2122
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2123
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2124
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2125
+ }, "strip", z.ZodTypeAny, {
2126
+ start?: string | null | undefined;
2127
+ end?: string | null | undefined;
2128
+ }, {
2129
+ start?: unknown;
2130
+ end?: unknown;
2131
+ }>>>;
2132
+ }, "strip", z.ZodTypeAny, {
2133
+ value: string;
2134
+ system: string;
2135
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2136
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2137
+ period?: {
2138
+ start?: string | null | undefined;
2139
+ end?: string | null | undefined;
2140
+ } | null | undefined;
2141
+ assigner?: string | null | undefined;
2142
+ }, {
2143
+ value: string;
2144
+ system: string;
2145
+ type?: unknown;
2146
+ use?: unknown;
2147
+ period?: {
2148
+ start?: unknown;
2149
+ end?: unknown;
2150
+ } | null | undefined;
2151
+ assigner?: unknown;
2152
+ }>, "many">;
2153
+ name: z.ZodArray<z.ZodObject<{
2154
+ given: z.ZodArray<z.ZodString, "many">;
2155
+ family: z.ZodArray<z.ZodString, "many">;
2156
+ prefix: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">]>>>, string | (string | null | undefined)[] | null | undefined, unknown>;
2157
+ suffix: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">]>>>, string | (string | null | undefined)[] | null | undefined, unknown>;
2158
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./human-name").NameUseCodes>, import("./human-name").NameUseCodes, unknown>>>, import("./human-name").NameUseCodes | null | undefined, unknown>>;
2159
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2160
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2161
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ start?: string | null | undefined;
2164
+ end?: string | null | undefined;
2165
+ }, {
2166
+ start?: unknown;
2167
+ end?: unknown;
2168
+ }>>>;
2169
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ family: string[];
2172
+ given: string[];
2173
+ text?: string | null | undefined;
2174
+ use?: import("./human-name").NameUseCodes | null | undefined;
2175
+ period?: {
2176
+ start?: string | null | undefined;
2177
+ end?: string | null | undefined;
2178
+ } | null | undefined;
2179
+ prefix?: string | (string | null | undefined)[] | null | undefined;
2180
+ suffix?: string | (string | null | undefined)[] | null | undefined;
2181
+ }, {
2182
+ family: string[];
2183
+ given: string[];
2184
+ text?: string | null | undefined;
2185
+ use?: unknown;
2186
+ period?: {
2187
+ start?: unknown;
2188
+ end?: unknown;
2189
+ } | null | undefined;
2190
+ prefix?: unknown;
2191
+ suffix?: unknown;
2192
+ }>, "many">;
2193
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof import("./demographics").GenderCodes>>, import("./demographics").GenderCodes | undefined, unknown>>>;
2194
+ birthDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodString]>, string, string>;
2195
+ address: z.ZodArray<z.ZodObject<{
2196
+ line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2197
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2198
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2199
+ country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2200
+ postalCode: z.ZodString;
2201
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
2202
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressTypeCodes>, import("./address").AddressTypeCodes, unknown>>>>;
2203
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2204
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2205
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ start?: string | null | undefined;
2208
+ end?: string | null | undefined;
2209
+ }, {
2210
+ start?: unknown;
2211
+ end?: unknown;
2212
+ }>>>;
2213
+ }, "strip", z.ZodTypeAny, {
2214
+ postalCode: string;
2215
+ type?: import("./address").AddressTypeCodes | null | undefined;
2216
+ line?: string[] | null | undefined;
2217
+ city?: string | null | undefined;
2218
+ state?: string | null | undefined;
2219
+ country?: string | null | undefined;
2220
+ use?: import("./address").AddressUseCodes | null | undefined;
2221
+ period?: {
2222
+ start?: string | null | undefined;
2223
+ end?: string | null | undefined;
2224
+ } | null | undefined;
2225
+ }, {
2226
+ postalCode: string;
2227
+ type?: unknown;
2228
+ line?: string[] | null | undefined;
2229
+ city?: string | null | undefined;
2230
+ state?: unknown;
2231
+ country?: unknown;
2232
+ use?: unknown;
2233
+ period?: {
2234
+ start?: unknown;
2235
+ end?: unknown;
2236
+ } | null | undefined;
2237
+ }>, "many">;
2238
+ telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2239
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2240
+ system: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, unknown, string>, unknown, string>, z.ZodNativeEnum<typeof import("./contact").ContactSystemCodes>>>>>;
2241
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, unknown, string>, unknown, string>, z.ZodNativeEnum<typeof import("./contact").ContactUseCodes>>>>>;
2242
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2243
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2244
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ start?: string | null | undefined;
2247
+ end?: string | null | undefined;
2248
+ }, {
2249
+ start?: unknown;
2250
+ end?: unknown;
2251
+ }>>>;
2252
+ }, "strip", z.ZodTypeAny, {
2253
+ value?: string | null | undefined;
2254
+ use?: import("./contact").ContactUseCodes | null | undefined;
2255
+ period?: {
2256
+ start?: string | null | undefined;
2257
+ end?: string | null | undefined;
2258
+ } | null | undefined;
2259
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2260
+ }, {
2261
+ value?: string | null | undefined;
2262
+ use?: unknown;
2263
+ period?: {
2264
+ start?: unknown;
2265
+ end?: unknown;
2266
+ } | null | undefined;
2267
+ system?: unknown;
2268
+ }>, "many">>>;
2269
+ }, {
2270
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2271
+ managingOrganization: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2272
+ identifier: z.ZodArray<z.ZodObject<Pick<{
2273
+ value: z.ZodString;
2274
+ system: z.ZodString;
2275
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["usual", "official", "temp", "secondary", "old"]>>>>;
2276
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["SS", "DL", "PPN", "BRN", "MR", "MCN", "EN", "TAX", "NIIP", "PRN", "MD", "DR", "ACSN", "UDI", "SNO", "SB", "PLAC", "FILL", "IAL2", "IAL3"]>>>>;
2277
+ assigner: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2278
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2279
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2280
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2281
+ }, "strip", z.ZodTypeAny, {
2282
+ start?: string | null | undefined;
2283
+ end?: string | null | undefined;
2284
+ }, {
2285
+ start?: unknown;
2286
+ end?: unknown;
2287
+ }>>>;
2288
+ }, "system">, "strip", z.ZodTypeAny, {
2289
+ system: string;
2290
+ }, {
2291
+ system: string;
2292
+ }>, "many">;
2293
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2294
+ }, "strip", z.ZodTypeAny, {
2295
+ identifier: {
2296
+ system: string;
2297
+ }[];
2298
+ name?: string | null | undefined;
2299
+ }, {
2300
+ identifier: {
2301
+ system: string;
2302
+ }[];
2303
+ name?: string | null | undefined;
2304
+ }>>>;
2305
+ /**
2306
+ * Links to a Patient or RelatedPerson resource that concerns the same actual individual.
2307
+ * The patient resource containing this link is the non-surviving patient.
2308
+ * Disabled because couldn't validatte this in pre-production.
2309
+ */
2310
+ disclosure: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2311
+ id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2312
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2313
+ address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2314
+ line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2315
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2316
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2317
+ country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2318
+ postalCode: z.ZodString;
2319
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
2320
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressTypeCodes>, import("./address").AddressTypeCodes, unknown>>>>;
2321
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2322
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2323
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2324
+ }, "strip", z.ZodTypeAny, {
2325
+ start?: string | null | undefined;
2326
+ end?: string | null | undefined;
2327
+ }, {
2328
+ start?: unknown;
2329
+ end?: unknown;
2330
+ }>>>;
2331
+ }, "strip", z.ZodTypeAny, {
2332
+ postalCode: string;
2333
+ type?: import("./address").AddressTypeCodes | null | undefined;
2334
+ line?: string[] | null | undefined;
2335
+ city?: string | null | undefined;
2336
+ state?: string | null | undefined;
2337
+ country?: string | null | undefined;
2338
+ use?: import("./address").AddressUseCodes | null | undefined;
2339
+ period?: {
2340
+ start?: string | null | undefined;
2341
+ end?: string | null | undefined;
2342
+ } | null | undefined;
2343
+ }, {
2344
+ postalCode: string;
2345
+ type?: unknown;
2346
+ line?: string[] | null | undefined;
2347
+ city?: string | null | undefined;
2348
+ state?: unknown;
2349
+ country?: unknown;
2350
+ use?: unknown;
2351
+ period?: {
2352
+ start?: unknown;
2353
+ end?: unknown;
2354
+ } | null | undefined;
2355
+ }>>>;
2356
+ }, "strip", z.ZodTypeAny, {
2357
+ name?: string | null | undefined;
2358
+ address?: {
2359
+ postalCode: string;
2360
+ type?: import("./address").AddressTypeCodes | null | undefined;
2361
+ line?: string[] | null | undefined;
2362
+ city?: string | null | undefined;
2363
+ state?: string | null | undefined;
2364
+ country?: string | null | undefined;
2365
+ use?: import("./address").AddressUseCodes | null | undefined;
2366
+ period?: {
2367
+ start?: string | null | undefined;
2368
+ end?: string | null | undefined;
2369
+ } | null | undefined;
2370
+ } | null | undefined;
2371
+ id?: string | null | undefined;
2372
+ }, {
2373
+ name?: string | null | undefined;
2374
+ address?: {
2375
+ postalCode: string;
2376
+ type?: unknown;
2377
+ line?: string[] | null | undefined;
2378
+ city?: string | null | undefined;
2379
+ state?: unknown;
2380
+ country?: unknown;
2381
+ use?: unknown;
2382
+ period?: {
2383
+ start?: unknown;
2384
+ end?: unknown;
2385
+ } | null | undefined;
2386
+ } | null | undefined;
2387
+ id?: string | null | undefined;
2388
+ }>, "many">>>;
2389
+ }>, "strip", z.ZodTypeAny, {
2390
+ identifier: {
2391
+ value: string;
2392
+ system: string;
2393
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2394
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2395
+ period?: {
2396
+ start?: string | null | undefined;
2397
+ end?: string | null | undefined;
2398
+ } | null | undefined;
2399
+ assigner?: string | null | undefined;
2400
+ }[];
2401
+ name: {
2402
+ family: string[];
2403
+ given: string[];
2404
+ text?: string | null | undefined;
2405
+ use?: import("./human-name").NameUseCodes | null | undefined;
2406
+ period?: {
2407
+ start?: string | null | undefined;
2408
+ end?: string | null | undefined;
2409
+ } | null | undefined;
2410
+ prefix?: string | (string | null | undefined)[] | null | undefined;
2411
+ suffix?: string | (string | null | undefined)[] | null | undefined;
2412
+ }[];
2413
+ birthDate: string;
2414
+ address: {
2415
+ postalCode: string;
2416
+ type?: import("./address").AddressTypeCodes | null | undefined;
2417
+ line?: string[] | null | undefined;
2418
+ city?: string | null | undefined;
2419
+ state?: string | null | undefined;
2420
+ country?: string | null | undefined;
2421
+ use?: import("./address").AddressUseCodes | null | undefined;
2422
+ period?: {
2423
+ start?: string | null | undefined;
2424
+ end?: string | null | undefined;
2425
+ } | null | undefined;
2426
+ }[];
2427
+ gender?: import("./demographics").GenderCodes | null | undefined;
2428
+ telecom?: {
2429
+ value?: string | null | undefined;
2430
+ use?: import("./contact").ContactUseCodes | null | undefined;
2431
+ period?: {
2432
+ start?: string | null | undefined;
2433
+ end?: string | null | undefined;
2434
+ } | null | undefined;
2435
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2436
+ }[] | null | undefined;
2437
+ active?: boolean | null | undefined;
2438
+ managingOrganization?: {
2439
+ identifier: {
2440
+ system: string;
2441
+ }[];
2442
+ name?: string | null | undefined;
2443
+ } | null | undefined;
2444
+ disclosure?: {
2445
+ name?: string | null | undefined;
2446
+ address?: {
2447
+ postalCode: string;
2448
+ type?: import("./address").AddressTypeCodes | null | undefined;
2449
+ line?: string[] | null | undefined;
2450
+ city?: string | null | undefined;
2451
+ state?: string | null | undefined;
2452
+ country?: string | null | undefined;
2453
+ use?: import("./address").AddressUseCodes | null | undefined;
2454
+ period?: {
2455
+ start?: string | null | undefined;
2456
+ end?: string | null | undefined;
2457
+ } | null | undefined;
2458
+ } | null | undefined;
2459
+ id?: string | null | undefined;
2460
+ }[] | null | undefined;
2461
+ }, {
2462
+ identifier: {
2463
+ value: string;
2464
+ system: string;
2465
+ type?: unknown;
2466
+ use?: unknown;
2467
+ period?: {
2468
+ start?: unknown;
2469
+ end?: unknown;
2470
+ } | null | undefined;
2471
+ assigner?: unknown;
2472
+ }[];
2473
+ name: {
2474
+ family: string[];
2475
+ given: string[];
2476
+ text?: string | null | undefined;
2477
+ use?: unknown;
2478
+ period?: {
2479
+ start?: unknown;
2480
+ end?: unknown;
2481
+ } | null | undefined;
2482
+ prefix?: unknown;
2483
+ suffix?: unknown;
2484
+ }[];
2485
+ birthDate: string;
2486
+ address: {
2487
+ postalCode: string;
2488
+ type?: unknown;
2489
+ line?: string[] | null | undefined;
2490
+ city?: string | null | undefined;
2491
+ state?: unknown;
2492
+ country?: unknown;
2493
+ use?: unknown;
2494
+ period?: {
2495
+ start?: unknown;
2496
+ end?: unknown;
2497
+ } | null | undefined;
2498
+ }[];
2499
+ gender?: unknown;
2500
+ telecom?: {
2501
+ value?: string | null | undefined;
2502
+ use?: unknown;
2503
+ period?: {
2504
+ start?: unknown;
2505
+ end?: unknown;
2506
+ } | null | undefined;
2507
+ system?: unknown;
2508
+ }[] | null | undefined;
2509
+ active?: boolean | null | undefined;
2510
+ managingOrganization?: {
2511
+ identifier: {
2512
+ system: string;
2513
+ }[];
2514
+ name?: string | null | undefined;
2515
+ } | null | undefined;
2516
+ disclosure?: {
2517
+ name?: string | null | undefined;
2518
+ address?: {
2519
+ postalCode: string;
2520
+ type?: unknown;
2521
+ line?: string[] | null | undefined;
2522
+ city?: string | null | undefined;
2523
+ state?: unknown;
2524
+ country?: unknown;
2525
+ use?: unknown;
2526
+ period?: {
2527
+ start?: unknown;
2528
+ end?: unknown;
2529
+ } | null | undefined;
2530
+ } | null | undefined;
2531
+ id?: string | null | undefined;
2532
+ }[] | null | undefined;
2533
+ }>;
2534
+ Links: z.ZodObject<{
2535
+ Self: z.ZodString;
2536
+ Unlink: z.ZodString;
2537
+ }, "strip", z.ZodTypeAny, {
2538
+ Self: string;
2539
+ Unlink: string;
2540
+ }, {
2541
+ Self: string;
2542
+ Unlink: string;
2543
+ }>;
2544
+ }, "strip", z.ZodTypeAny, {
2545
+ Patient: {
2546
+ identifier: {
2547
+ value: string;
2548
+ system: string;
2549
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2550
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2551
+ period?: {
2552
+ start?: string | null | undefined;
2553
+ end?: string | null | undefined;
2554
+ } | null | undefined;
2555
+ assigner?: string | null | undefined;
2556
+ }[];
2557
+ name: {
2558
+ family: string[];
2559
+ given: string[];
2560
+ text?: string | null | undefined;
2561
+ use?: import("./human-name").NameUseCodes | null | undefined;
2562
+ period?: {
2563
+ start?: string | null | undefined;
2564
+ end?: string | null | undefined;
2565
+ } | null | undefined;
2566
+ prefix?: string | (string | null | undefined)[] | null | undefined;
2567
+ suffix?: string | (string | null | undefined)[] | null | undefined;
2568
+ }[];
2569
+ birthDate: string;
2570
+ address: {
2571
+ postalCode: string;
2572
+ type?: import("./address").AddressTypeCodes | null | undefined;
2573
+ line?: string[] | null | undefined;
2574
+ city?: string | null | undefined;
2575
+ state?: string | null | undefined;
2576
+ country?: string | null | undefined;
2577
+ use?: import("./address").AddressUseCodes | null | undefined;
2578
+ period?: {
2579
+ start?: string | null | undefined;
2580
+ end?: string | null | undefined;
2581
+ } | null | undefined;
2582
+ }[];
2583
+ gender?: import("./demographics").GenderCodes | null | undefined;
2584
+ telecom?: {
2585
+ value?: string | null | undefined;
2586
+ use?: import("./contact").ContactUseCodes | null | undefined;
2587
+ period?: {
2588
+ start?: string | null | undefined;
2589
+ end?: string | null | undefined;
2590
+ } | null | undefined;
2591
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2592
+ }[] | null | undefined;
2593
+ active?: boolean | null | undefined;
2594
+ managingOrganization?: {
2595
+ identifier: {
2596
+ system: string;
2597
+ }[];
2598
+ name?: string | null | undefined;
2599
+ } | null | undefined;
2600
+ disclosure?: {
2601
+ name?: string | null | undefined;
2602
+ address?: {
2603
+ postalCode: string;
2604
+ type?: import("./address").AddressTypeCodes | null | undefined;
2605
+ line?: string[] | null | undefined;
2606
+ city?: string | null | undefined;
2607
+ state?: string | null | undefined;
2608
+ country?: string | null | undefined;
2609
+ use?: import("./address").AddressUseCodes | null | undefined;
2610
+ period?: {
2611
+ start?: string | null | undefined;
2612
+ end?: string | null | undefined;
2613
+ } | null | undefined;
2614
+ } | null | undefined;
2615
+ id?: string | null | undefined;
2616
+ }[] | null | undefined;
2617
+ };
2618
+ Links: {
2619
+ Self: string;
2620
+ Unlink: string;
2621
+ };
2622
+ }, {
2623
+ Patient: {
2624
+ identifier: {
2625
+ value: string;
2626
+ system: string;
2627
+ type?: unknown;
2628
+ use?: unknown;
2629
+ period?: {
2630
+ start?: unknown;
2631
+ end?: unknown;
2632
+ } | null | undefined;
2633
+ assigner?: unknown;
2634
+ }[];
2635
+ name: {
2636
+ family: string[];
2637
+ given: string[];
2638
+ text?: string | null | undefined;
2639
+ use?: unknown;
2640
+ period?: {
2641
+ start?: unknown;
2642
+ end?: unknown;
2643
+ } | null | undefined;
2644
+ prefix?: unknown;
2645
+ suffix?: unknown;
2646
+ }[];
2647
+ birthDate: string;
2648
+ address: {
2649
+ postalCode: string;
2650
+ type?: unknown;
2651
+ line?: string[] | null | undefined;
2652
+ city?: string | null | undefined;
2653
+ state?: unknown;
2654
+ country?: unknown;
2655
+ use?: unknown;
2656
+ period?: {
2657
+ start?: unknown;
2658
+ end?: unknown;
2659
+ } | null | undefined;
2660
+ }[];
2661
+ gender?: unknown;
2662
+ telecom?: {
2663
+ value?: string | null | undefined;
2664
+ use?: unknown;
2665
+ period?: {
2666
+ start?: unknown;
2667
+ end?: unknown;
2668
+ } | null | undefined;
2669
+ system?: unknown;
2670
+ }[] | null | undefined;
2671
+ active?: boolean | null | undefined;
2672
+ managingOrganization?: {
2673
+ identifier: {
2674
+ system: string;
2675
+ }[];
2676
+ name?: string | null | undefined;
2677
+ } | null | undefined;
2678
+ disclosure?: {
2679
+ name?: string | null | undefined;
2680
+ address?: {
2681
+ postalCode: string;
2682
+ type?: unknown;
2683
+ line?: string[] | null | undefined;
2684
+ city?: string | null | undefined;
2685
+ state?: unknown;
2686
+ country?: unknown;
2687
+ use?: unknown;
2688
+ period?: {
2689
+ start?: unknown;
2690
+ end?: unknown;
2691
+ } | null | undefined;
2692
+ } | null | undefined;
2693
+ id?: string | null | undefined;
2694
+ }[] | null | undefined;
2695
+ };
2696
+ Links: {
2697
+ Self: string;
2698
+ Unlink: string;
2699
+ };
2700
+ }>;
2701
+ export type PatientExistingLink = z.infer<typeof patientExistingLinksItemSchema>;
2702
+ export declare const patientExistingLinksSchema: z.ZodObject<{
2703
+ Patients: z.ZodArray<z.ZodObject<{
2704
+ Patient: z.ZodObject<z.objectUtil.extendShape<{
2705
+ identifier: z.ZodArray<z.ZodObject<{
2706
+ value: z.ZodString;
2707
+ system: z.ZodString;
2708
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["usual", "official", "temp", "secondary", "old"]>>>>;
2709
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["SS", "DL", "PPN", "BRN", "MR", "MCN", "EN", "TAX", "NIIP", "PRN", "MD", "DR", "ACSN", "UDI", "SNO", "SB", "PLAC", "FILL", "IAL2", "IAL3"]>>>>;
2710
+ assigner: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2711
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2712
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2713
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2714
+ }, "strip", z.ZodTypeAny, {
2715
+ start?: string | null | undefined;
2716
+ end?: string | null | undefined;
2717
+ }, {
2718
+ start?: unknown;
2719
+ end?: unknown;
2720
+ }>>>;
2721
+ }, "strip", z.ZodTypeAny, {
2722
+ value: string;
2723
+ system: string;
2724
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2725
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2726
+ period?: {
2727
+ start?: string | null | undefined;
2728
+ end?: string | null | undefined;
2729
+ } | null | undefined;
2730
+ assigner?: string | null | undefined;
2731
+ }, {
2732
+ value: string;
2733
+ system: string;
2734
+ type?: unknown;
2735
+ use?: unknown;
2736
+ period?: {
2737
+ start?: unknown;
2738
+ end?: unknown;
2739
+ } | null | undefined;
2740
+ assigner?: unknown;
2741
+ }>, "many">;
2742
+ name: z.ZodArray<z.ZodObject<{
2743
+ given: z.ZodArray<z.ZodString, "many">;
2744
+ family: z.ZodArray<z.ZodString, "many">;
2745
+ prefix: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">]>>>, string | (string | null | undefined)[] | null | undefined, unknown>;
2746
+ suffix: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">]>>>, string | (string | null | undefined)[] | null | undefined, unknown>;
2747
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./human-name").NameUseCodes>, import("./human-name").NameUseCodes, unknown>>>, import("./human-name").NameUseCodes | null | undefined, unknown>>;
2748
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2749
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2750
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2751
+ }, "strip", z.ZodTypeAny, {
2752
+ start?: string | null | undefined;
2753
+ end?: string | null | undefined;
2754
+ }, {
2755
+ start?: unknown;
2756
+ end?: unknown;
2757
+ }>>>;
2758
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2759
+ }, "strip", z.ZodTypeAny, {
2760
+ family: string[];
2761
+ given: string[];
2762
+ text?: string | null | undefined;
2763
+ use?: import("./human-name").NameUseCodes | null | undefined;
2764
+ period?: {
2765
+ start?: string | null | undefined;
2766
+ end?: string | null | undefined;
2767
+ } | null | undefined;
2768
+ prefix?: string | (string | null | undefined)[] | null | undefined;
2769
+ suffix?: string | (string | null | undefined)[] | null | undefined;
2770
+ }, {
2771
+ family: string[];
2772
+ given: string[];
2773
+ text?: string | null | undefined;
2774
+ use?: unknown;
2775
+ period?: {
2776
+ start?: unknown;
2777
+ end?: unknown;
2778
+ } | null | undefined;
2779
+ prefix?: unknown;
2780
+ suffix?: unknown;
2781
+ }>, "many">;
2782
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof import("./demographics").GenderCodes>>, import("./demographics").GenderCodes | undefined, unknown>>>;
2783
+ birthDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodString]>, string, string>;
2784
+ address: z.ZodArray<z.ZodObject<{
2785
+ line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2786
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2787
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2788
+ country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2789
+ postalCode: z.ZodString;
2790
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
2791
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressTypeCodes>, import("./address").AddressTypeCodes, unknown>>>>;
2792
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2793
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2794
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2795
+ }, "strip", z.ZodTypeAny, {
2796
+ start?: string | null | undefined;
2797
+ end?: string | null | undefined;
2798
+ }, {
2799
+ start?: unknown;
2800
+ end?: unknown;
2801
+ }>>>;
2802
+ }, "strip", z.ZodTypeAny, {
2803
+ postalCode: string;
2804
+ type?: import("./address").AddressTypeCodes | null | undefined;
2805
+ line?: string[] | null | undefined;
2806
+ city?: string | null | undefined;
2807
+ state?: string | null | undefined;
2808
+ country?: string | null | undefined;
2809
+ use?: import("./address").AddressUseCodes | null | undefined;
2810
+ period?: {
2811
+ start?: string | null | undefined;
2812
+ end?: string | null | undefined;
2813
+ } | null | undefined;
2814
+ }, {
2815
+ postalCode: string;
2816
+ type?: unknown;
2817
+ line?: string[] | null | undefined;
2818
+ city?: string | null | undefined;
2819
+ state?: unknown;
2820
+ country?: unknown;
2821
+ use?: unknown;
2822
+ period?: {
2823
+ start?: unknown;
2824
+ end?: unknown;
2825
+ } | null | undefined;
2826
+ }>, "many">;
2827
+ telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2828
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2829
+ system: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, unknown, string>, unknown, string>, z.ZodNativeEnum<typeof import("./contact").ContactSystemCodes>>>>>;
2830
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodPipeline<z.ZodEffects<z.ZodEffects<z.ZodString, unknown, string>, unknown, string>, z.ZodNativeEnum<typeof import("./contact").ContactUseCodes>>>>>;
2831
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2832
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2833
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2834
+ }, "strip", z.ZodTypeAny, {
2835
+ start?: string | null | undefined;
2836
+ end?: string | null | undefined;
2837
+ }, {
2838
+ start?: unknown;
2839
+ end?: unknown;
2840
+ }>>>;
2841
+ }, "strip", z.ZodTypeAny, {
2842
+ value?: string | null | undefined;
2843
+ use?: import("./contact").ContactUseCodes | null | undefined;
2844
+ period?: {
2845
+ start?: string | null | undefined;
2846
+ end?: string | null | undefined;
2847
+ } | null | undefined;
2848
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2849
+ }, {
2850
+ value?: string | null | undefined;
2851
+ use?: unknown;
2852
+ period?: {
2853
+ start?: unknown;
2854
+ end?: unknown;
2855
+ } | null | undefined;
2856
+ system?: unknown;
2857
+ }>, "many">>>;
2858
+ }, {
2859
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2860
+ managingOrganization: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2861
+ identifier: z.ZodArray<z.ZodObject<Pick<{
2862
+ value: z.ZodString;
2863
+ system: z.ZodString;
2864
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["usual", "official", "temp", "secondary", "old"]>>>>;
2865
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEnum<["SS", "DL", "PPN", "BRN", "MR", "MCN", "EN", "TAX", "NIIP", "PRN", "MD", "DR", "ACSN", "UDI", "SNO", "SB", "PLAC", "FILL", "IAL2", "IAL3"]>>>>;
2866
+ assigner: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2867
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2868
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2869
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2870
+ }, "strip", z.ZodTypeAny, {
2871
+ start?: string | null | undefined;
2872
+ end?: string | null | undefined;
2873
+ }, {
2874
+ start?: unknown;
2875
+ end?: unknown;
2876
+ }>>>;
2877
+ }, "system">, "strip", z.ZodTypeAny, {
2878
+ system: string;
2879
+ }, {
2880
+ system: string;
2881
+ }>, "many">;
2882
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2883
+ }, "strip", z.ZodTypeAny, {
2884
+ identifier: {
2885
+ system: string;
2886
+ }[];
2887
+ name?: string | null | undefined;
2888
+ }, {
2889
+ identifier: {
2890
+ system: string;
2891
+ }[];
2892
+ name?: string | null | undefined;
2893
+ }>>>;
2894
+ /**
2895
+ * Links to a Patient or RelatedPerson resource that concerns the same actual individual.
2896
+ * The patient resource containing this link is the non-surviving patient.
2897
+ * Disabled because couldn't validatte this in pre-production.
2898
+ */
2899
+ disclosure: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2900
+ id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2901
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2902
+ address: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2903
+ line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2904
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2905
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2906
+ country: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
2907
+ postalCode: z.ZodString;
2908
+ use: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressUseCodes>, import("./address").AddressUseCodes, unknown>>>>;
2909
+ type: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNativeEnum<typeof import("./address").AddressTypeCodes>, import("./address").AddressTypeCodes, unknown>>>>;
2910
+ period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2911
+ start: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2912
+ end: z.ZodPipeline<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>, z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>>;
2913
+ }, "strip", z.ZodTypeAny, {
2914
+ start?: string | null | undefined;
2915
+ end?: string | null | undefined;
2916
+ }, {
2917
+ start?: unknown;
2918
+ end?: unknown;
2919
+ }>>>;
2920
+ }, "strip", z.ZodTypeAny, {
2921
+ postalCode: string;
2922
+ type?: import("./address").AddressTypeCodes | null | undefined;
2923
+ line?: string[] | null | undefined;
2924
+ city?: string | null | undefined;
2925
+ state?: string | null | undefined;
2926
+ country?: string | null | undefined;
2927
+ use?: import("./address").AddressUseCodes | null | undefined;
2928
+ period?: {
2929
+ start?: string | null | undefined;
2930
+ end?: string | null | undefined;
2931
+ } | null | undefined;
2932
+ }, {
2933
+ postalCode: string;
2934
+ type?: unknown;
2935
+ line?: string[] | null | undefined;
2936
+ city?: string | null | undefined;
2937
+ state?: unknown;
2938
+ country?: unknown;
2939
+ use?: unknown;
2940
+ period?: {
2941
+ start?: unknown;
2942
+ end?: unknown;
2943
+ } | null | undefined;
2944
+ }>>>;
2945
+ }, "strip", z.ZodTypeAny, {
2946
+ name?: string | null | undefined;
2947
+ address?: {
2948
+ postalCode: string;
2949
+ type?: import("./address").AddressTypeCodes | null | undefined;
2950
+ line?: string[] | null | undefined;
2951
+ city?: string | null | undefined;
2952
+ state?: string | null | undefined;
2953
+ country?: string | null | undefined;
2954
+ use?: import("./address").AddressUseCodes | null | undefined;
2955
+ period?: {
2956
+ start?: string | null | undefined;
2957
+ end?: string | null | undefined;
2958
+ } | null | undefined;
2959
+ } | null | undefined;
2960
+ id?: string | null | undefined;
2961
+ }, {
2962
+ name?: string | null | undefined;
2963
+ address?: {
2964
+ postalCode: string;
2965
+ type?: unknown;
2966
+ line?: string[] | null | undefined;
2967
+ city?: string | null | undefined;
2968
+ state?: unknown;
2969
+ country?: unknown;
2970
+ use?: unknown;
2971
+ period?: {
2972
+ start?: unknown;
2973
+ end?: unknown;
2974
+ } | null | undefined;
2975
+ } | null | undefined;
2976
+ id?: string | null | undefined;
2977
+ }>, "many">>>;
2978
+ }>, "strip", z.ZodTypeAny, {
2979
+ identifier: {
2980
+ value: string;
2981
+ system: string;
2982
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2983
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2984
+ period?: {
2985
+ start?: string | null | undefined;
2986
+ end?: string | null | undefined;
2987
+ } | null | undefined;
2988
+ assigner?: string | null | undefined;
2989
+ }[];
2990
+ name: {
2991
+ family: string[];
2992
+ given: string[];
2993
+ text?: string | null | undefined;
2994
+ use?: import("./human-name").NameUseCodes | null | undefined;
2995
+ period?: {
2996
+ start?: string | null | undefined;
2997
+ end?: string | null | undefined;
2998
+ } | null | undefined;
2999
+ prefix?: string | (string | null | undefined)[] | null | undefined;
3000
+ suffix?: string | (string | null | undefined)[] | null | undefined;
3001
+ }[];
3002
+ birthDate: string;
3003
+ address: {
3004
+ postalCode: string;
3005
+ type?: import("./address").AddressTypeCodes | null | undefined;
3006
+ line?: string[] | null | undefined;
3007
+ city?: string | null | undefined;
3008
+ state?: string | null | undefined;
3009
+ country?: string | null | undefined;
3010
+ use?: import("./address").AddressUseCodes | null | undefined;
3011
+ period?: {
3012
+ start?: string | null | undefined;
3013
+ end?: string | null | undefined;
3014
+ } | null | undefined;
3015
+ }[];
3016
+ gender?: import("./demographics").GenderCodes | null | undefined;
3017
+ telecom?: {
3018
+ value?: string | null | undefined;
3019
+ use?: import("./contact").ContactUseCodes | null | undefined;
3020
+ period?: {
3021
+ start?: string | null | undefined;
3022
+ end?: string | null | undefined;
3023
+ } | null | undefined;
3024
+ system?: import("./contact").ContactSystemCodes | null | undefined;
3025
+ }[] | null | undefined;
3026
+ active?: boolean | null | undefined;
3027
+ managingOrganization?: {
3028
+ identifier: {
3029
+ system: string;
3030
+ }[];
3031
+ name?: string | null | undefined;
3032
+ } | null | undefined;
3033
+ disclosure?: {
3034
+ name?: string | null | undefined;
3035
+ address?: {
3036
+ postalCode: string;
3037
+ type?: import("./address").AddressTypeCodes | null | undefined;
3038
+ line?: string[] | null | undefined;
3039
+ city?: string | null | undefined;
3040
+ state?: string | null | undefined;
3041
+ country?: string | null | undefined;
3042
+ use?: import("./address").AddressUseCodes | null | undefined;
3043
+ period?: {
3044
+ start?: string | null | undefined;
3045
+ end?: string | null | undefined;
3046
+ } | null | undefined;
3047
+ } | null | undefined;
3048
+ id?: string | null | undefined;
3049
+ }[] | null | undefined;
3050
+ }, {
3051
+ identifier: {
3052
+ value: string;
3053
+ system: string;
3054
+ type?: unknown;
3055
+ use?: unknown;
3056
+ period?: {
3057
+ start?: unknown;
3058
+ end?: unknown;
3059
+ } | null | undefined;
3060
+ assigner?: unknown;
3061
+ }[];
3062
+ name: {
3063
+ family: string[];
3064
+ given: string[];
3065
+ text?: string | null | undefined;
3066
+ use?: unknown;
3067
+ period?: {
3068
+ start?: unknown;
3069
+ end?: unknown;
3070
+ } | null | undefined;
3071
+ prefix?: unknown;
3072
+ suffix?: unknown;
3073
+ }[];
3074
+ birthDate: string;
3075
+ address: {
3076
+ postalCode: string;
3077
+ type?: unknown;
3078
+ line?: string[] | null | undefined;
1747
3079
  city?: string | null | undefined;
1748
3080
  state?: unknown;
1749
3081
  country?: unknown;
3082
+ use?: unknown;
3083
+ period?: {
3084
+ start?: unknown;
3085
+ end?: unknown;
3086
+ } | null | undefined;
1750
3087
  }[];
1751
- link?: {
1752
- Self: string;
1753
- PatientLink?: string | null | undefined;
1754
- ResetLink?: string | null | undefined;
1755
- Delete?: string | null | undefined;
1756
- ProbableLink?: string | null | undefined;
1757
- }[] | null | undefined;
1758
3088
  gender?: unknown;
1759
3089
  telecom?: {
1760
3090
  value?: string | null | undefined;
1761
- system?: unknown;
1762
3091
  use?: unknown;
1763
3092
  period?: {
1764
3093
  start?: unknown;
1765
3094
  end?: unknown;
1766
3095
  } | null | undefined;
3096
+ system?: unknown;
1767
3097
  }[] | null | undefined;
1768
3098
  active?: boolean | null | undefined;
1769
3099
  managingOrganization?: {
@@ -1777,26 +3107,185 @@ export declare const patientCollectionSchema: z.ZodObject<{
1777
3107
  address?: {
1778
3108
  postalCode: string;
1779
3109
  type?: unknown;
3110
+ line?: string[] | null | undefined;
3111
+ city?: string | null | undefined;
3112
+ state?: unknown;
3113
+ country?: unknown;
1780
3114
  use?: unknown;
1781
3115
  period?: {
1782
3116
  start?: unknown;
1783
3117
  end?: unknown;
1784
3118
  } | null | undefined;
3119
+ } | null | undefined;
3120
+ id?: string | null | undefined;
3121
+ }[] | null | undefined;
3122
+ }>;
3123
+ Links: z.ZodObject<{
3124
+ Self: z.ZodString;
3125
+ Unlink: z.ZodString;
3126
+ }, "strip", z.ZodTypeAny, {
3127
+ Self: string;
3128
+ Unlink: string;
3129
+ }, {
3130
+ Self: string;
3131
+ Unlink: string;
3132
+ }>;
3133
+ }, "strip", z.ZodTypeAny, {
3134
+ Patient: {
3135
+ identifier: {
3136
+ value: string;
3137
+ system: string;
3138
+ type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
3139
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
3140
+ period?: {
3141
+ start?: string | null | undefined;
3142
+ end?: string | null | undefined;
3143
+ } | null | undefined;
3144
+ assigner?: string | null | undefined;
3145
+ }[];
3146
+ name: {
3147
+ family: string[];
3148
+ given: string[];
3149
+ text?: string | null | undefined;
3150
+ use?: import("./human-name").NameUseCodes | null | undefined;
3151
+ period?: {
3152
+ start?: string | null | undefined;
3153
+ end?: string | null | undefined;
3154
+ } | null | undefined;
3155
+ prefix?: string | (string | null | undefined)[] | null | undefined;
3156
+ suffix?: string | (string | null | undefined)[] | null | undefined;
3157
+ }[];
3158
+ birthDate: string;
3159
+ address: {
3160
+ postalCode: string;
3161
+ type?: import("./address").AddressTypeCodes | null | undefined;
3162
+ line?: string[] | null | undefined;
3163
+ city?: string | null | undefined;
3164
+ state?: string | null | undefined;
3165
+ country?: string | null | undefined;
3166
+ use?: import("./address").AddressUseCodes | null | undefined;
3167
+ period?: {
3168
+ start?: string | null | undefined;
3169
+ end?: string | null | undefined;
3170
+ } | null | undefined;
3171
+ }[];
3172
+ gender?: import("./demographics").GenderCodes | null | undefined;
3173
+ telecom?: {
3174
+ value?: string | null | undefined;
3175
+ use?: import("./contact").ContactUseCodes | null | undefined;
3176
+ period?: {
3177
+ start?: string | null | undefined;
3178
+ end?: string | null | undefined;
3179
+ } | null | undefined;
3180
+ system?: import("./contact").ContactSystemCodes | null | undefined;
3181
+ }[] | null | undefined;
3182
+ active?: boolean | null | undefined;
3183
+ managingOrganization?: {
3184
+ identifier: {
3185
+ system: string;
3186
+ }[];
3187
+ name?: string | null | undefined;
3188
+ } | null | undefined;
3189
+ disclosure?: {
3190
+ name?: string | null | undefined;
3191
+ address?: {
3192
+ postalCode: string;
3193
+ type?: import("./address").AddressTypeCodes | null | undefined;
3194
+ line?: string[] | null | undefined;
3195
+ city?: string | null | undefined;
3196
+ state?: string | null | undefined;
3197
+ country?: string | null | undefined;
3198
+ use?: import("./address").AddressUseCodes | null | undefined;
3199
+ period?: {
3200
+ start?: string | null | undefined;
3201
+ end?: string | null | undefined;
3202
+ } | null | undefined;
3203
+ } | null | undefined;
3204
+ id?: string | null | undefined;
3205
+ }[] | null | undefined;
3206
+ };
3207
+ Links: {
3208
+ Self: string;
3209
+ Unlink: string;
3210
+ };
3211
+ }, {
3212
+ Patient: {
3213
+ identifier: {
3214
+ value: string;
3215
+ system: string;
3216
+ type?: unknown;
3217
+ use?: unknown;
3218
+ period?: {
3219
+ start?: unknown;
3220
+ end?: unknown;
3221
+ } | null | undefined;
3222
+ assigner?: unknown;
3223
+ }[];
3224
+ name: {
3225
+ family: string[];
3226
+ given: string[];
3227
+ text?: string | null | undefined;
3228
+ use?: unknown;
3229
+ period?: {
3230
+ start?: unknown;
3231
+ end?: unknown;
3232
+ } | null | undefined;
3233
+ prefix?: unknown;
3234
+ suffix?: unknown;
3235
+ }[];
3236
+ birthDate: string;
3237
+ address: {
3238
+ postalCode: string;
3239
+ type?: unknown;
3240
+ line?: string[] | null | undefined;
3241
+ city?: string | null | undefined;
3242
+ state?: unknown;
3243
+ country?: unknown;
3244
+ use?: unknown;
3245
+ period?: {
3246
+ start?: unknown;
3247
+ end?: unknown;
3248
+ } | null | undefined;
3249
+ }[];
3250
+ gender?: unknown;
3251
+ telecom?: {
3252
+ value?: string | null | undefined;
3253
+ use?: unknown;
3254
+ period?: {
3255
+ start?: unknown;
3256
+ end?: unknown;
3257
+ } | null | undefined;
3258
+ system?: unknown;
3259
+ }[] | null | undefined;
3260
+ active?: boolean | null | undefined;
3261
+ managingOrganization?: {
3262
+ identifier: {
3263
+ system: string;
3264
+ }[];
3265
+ name?: string | null | undefined;
3266
+ } | null | undefined;
3267
+ disclosure?: {
3268
+ name?: string | null | undefined;
3269
+ address?: {
3270
+ postalCode: string;
3271
+ type?: unknown;
1785
3272
  line?: string[] | null | undefined;
1786
3273
  city?: string | null | undefined;
1787
3274
  state?: unknown;
1788
3275
  country?: unknown;
3276
+ use?: unknown;
3277
+ period?: {
3278
+ start?: unknown;
3279
+ end?: unknown;
3280
+ } | null | undefined;
1789
3281
  } | null | undefined;
1790
3282
  id?: string | null | undefined;
1791
3283
  }[] | null | undefined;
1792
- } | null | undefined;
1793
- Links?: {
3284
+ };
3285
+ Links: {
1794
3286
  Self: string;
1795
- PatientLink?: string | null | undefined;
1796
- ResetLink?: string | null | undefined;
1797
- Delete?: string | null | undefined;
1798
- ProbableLink?: string | null | undefined;
1799
- } | null | undefined;
3287
+ Unlink: string;
3288
+ };
1800
3289
  }>, "many">;
1801
3290
  status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1802
3291
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1810,17 +3299,17 @@ export declare const patientCollectionSchema: z.ZodObject<{
1810
3299
  }>>>;
1811
3300
  }, "strip", z.ZodTypeAny, {
1812
3301
  Patients: {
1813
- Patient?: {
3302
+ Patient: {
1814
3303
  identifier: {
1815
3304
  value: string;
1816
3305
  system: string;
1817
3306
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
1818
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
1819
- assigner?: string | null | undefined;
3307
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
1820
3308
  period?: {
1821
3309
  start?: string | null | undefined;
1822
3310
  end?: string | null | undefined;
1823
3311
  } | null | undefined;
3312
+ assigner?: string | null | undefined;
1824
3313
  }[];
1825
3314
  name: {
1826
3315
  family: string[];
@@ -1838,32 +3327,25 @@ export declare const patientCollectionSchema: z.ZodObject<{
1838
3327
  address: {
1839
3328
  postalCode: string;
1840
3329
  type?: import("./address").AddressTypeCodes | null | undefined;
3330
+ line?: string[] | null | undefined;
3331
+ city?: string | null | undefined;
3332
+ state?: string | null | undefined;
3333
+ country?: string | null | undefined;
1841
3334
  use?: import("./address").AddressUseCodes | null | undefined;
1842
3335
  period?: {
1843
3336
  start?: string | null | undefined;
1844
3337
  end?: string | null | undefined;
1845
3338
  } | null | undefined;
1846
- line?: string[] | null | undefined;
1847
- city?: string | null | undefined;
1848
- state?: string | null | undefined;
1849
- country?: string | null | undefined;
1850
3339
  }[];
1851
- link?: {
1852
- Self: string;
1853
- PatientLink?: string | null | undefined;
1854
- ResetLink?: string | null | undefined;
1855
- Delete?: string | null | undefined;
1856
- ProbableLink?: string | null | undefined;
1857
- }[] | null | undefined;
1858
- gender?: string | null | undefined;
3340
+ gender?: import("./demographics").GenderCodes | null | undefined;
1859
3341
  telecom?: {
1860
3342
  value?: string | null | undefined;
1861
- system?: import("./contact").ContactSystemCodes | null | undefined;
1862
3343
  use?: import("./contact").ContactUseCodes | null | undefined;
1863
3344
  period?: {
1864
3345
  start?: string | null | undefined;
1865
3346
  end?: string | null | undefined;
1866
3347
  } | null | undefined;
3348
+ system?: import("./contact").ContactSystemCodes | null | undefined;
1867
3349
  }[] | null | undefined;
1868
3350
  active?: boolean | null | undefined;
1869
3351
  managingOrganization?: {
@@ -1877,26 +3359,23 @@ export declare const patientCollectionSchema: z.ZodObject<{
1877
3359
  address?: {
1878
3360
  postalCode: string;
1879
3361
  type?: import("./address").AddressTypeCodes | null | undefined;
3362
+ line?: string[] | null | undefined;
3363
+ city?: string | null | undefined;
3364
+ state?: string | null | undefined;
3365
+ country?: string | null | undefined;
1880
3366
  use?: import("./address").AddressUseCodes | null | undefined;
1881
3367
  period?: {
1882
3368
  start?: string | null | undefined;
1883
3369
  end?: string | null | undefined;
1884
3370
  } | null | undefined;
1885
- line?: string[] | null | undefined;
1886
- city?: string | null | undefined;
1887
- state?: string | null | undefined;
1888
- country?: string | null | undefined;
1889
3371
  } | null | undefined;
1890
3372
  id?: string | null | undefined;
1891
3373
  }[] | null | undefined;
1892
- } | null | undefined;
1893
- Links?: {
3374
+ };
3375
+ Links: {
1894
3376
  Self: string;
1895
- PatientLink?: string | null | undefined;
1896
- ResetLink?: string | null | undefined;
1897
- Delete?: string | null | undefined;
1898
- ProbableLink?: string | null | undefined;
1899
- } | null | undefined;
3377
+ Unlink: string;
3378
+ };
1900
3379
  }[];
1901
3380
  status?: {
1902
3381
  code?: number | null | undefined;
@@ -1904,17 +3383,17 @@ export declare const patientCollectionSchema: z.ZodObject<{
1904
3383
  } | null | undefined;
1905
3384
  }, {
1906
3385
  Patients: {
1907
- Patient?: {
3386
+ Patient: {
1908
3387
  identifier: {
1909
3388
  value: string;
1910
3389
  system: string;
1911
3390
  type?: unknown;
1912
3391
  use?: unknown;
1913
- assigner?: unknown;
1914
3392
  period?: {
1915
3393
  start?: unknown;
1916
3394
  end?: unknown;
1917
3395
  } | null | undefined;
3396
+ assigner?: unknown;
1918
3397
  }[];
1919
3398
  name: {
1920
3399
  family: string[];
@@ -1932,32 +3411,25 @@ export declare const patientCollectionSchema: z.ZodObject<{
1932
3411
  address: {
1933
3412
  postalCode: string;
1934
3413
  type?: unknown;
3414
+ line?: string[] | null | undefined;
3415
+ city?: string | null | undefined;
3416
+ state?: unknown;
3417
+ country?: unknown;
1935
3418
  use?: unknown;
1936
3419
  period?: {
1937
3420
  start?: unknown;
1938
3421
  end?: unknown;
1939
3422
  } | null | undefined;
1940
- line?: string[] | null | undefined;
1941
- city?: string | null | undefined;
1942
- state?: unknown;
1943
- country?: unknown;
1944
3423
  }[];
1945
- link?: {
1946
- Self: string;
1947
- PatientLink?: string | null | undefined;
1948
- ResetLink?: string | null | undefined;
1949
- Delete?: string | null | undefined;
1950
- ProbableLink?: string | null | undefined;
1951
- }[] | null | undefined;
1952
3424
  gender?: unknown;
1953
3425
  telecom?: {
1954
3426
  value?: string | null | undefined;
1955
- system?: unknown;
1956
3427
  use?: unknown;
1957
3428
  period?: {
1958
3429
  start?: unknown;
1959
3430
  end?: unknown;
1960
3431
  } | null | undefined;
3432
+ system?: unknown;
1961
3433
  }[] | null | undefined;
1962
3434
  active?: boolean | null | undefined;
1963
3435
  managingOrganization?: {
@@ -1971,71 +3443,45 @@ export declare const patientCollectionSchema: z.ZodObject<{
1971
3443
  address?: {
1972
3444
  postalCode: string;
1973
3445
  type?: unknown;
3446
+ line?: string[] | null | undefined;
3447
+ city?: string | null | undefined;
3448
+ state?: unknown;
3449
+ country?: unknown;
1974
3450
  use?: unknown;
1975
3451
  period?: {
1976
3452
  start?: unknown;
1977
3453
  end?: unknown;
1978
3454
  } | null | undefined;
1979
- line?: string[] | null | undefined;
1980
- city?: string | null | undefined;
1981
- state?: unknown;
1982
- country?: unknown;
1983
3455
  } | null | undefined;
1984
3456
  id?: string | null | undefined;
1985
3457
  }[] | null | undefined;
1986
- } | null | undefined;
1987
- Links?: {
3458
+ };
3459
+ Links: {
1988
3460
  Self: string;
1989
- PatientLink?: string | null | undefined;
1990
- ResetLink?: string | null | undefined;
1991
- Delete?: string | null | undefined;
1992
- ProbableLink?: string | null | undefined;
1993
- } | null | undefined;
3461
+ Unlink: string;
3462
+ };
1994
3463
  }[];
1995
3464
  status?: {
1996
3465
  code?: number | null | undefined;
1997
3466
  message?: string | null | undefined;
1998
3467
  } | null | undefined;
1999
3468
  }>;
2000
- export type PatientCollection = z.infer<typeof patientCollectionSchema>;
2001
- export declare const statusResponseSchema: z.ZodObject<{
2002
- status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2003
- message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2004
- code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2005
- }, "strip", z.ZodTypeAny, {
2006
- code?: number | null | undefined;
2007
- message?: string | null | undefined;
2008
- }, {
2009
- code?: number | null | undefined;
2010
- message?: string | null | undefined;
2011
- }>>>;
2012
- }, "strip", z.ZodTypeAny, {
2013
- status?: {
2014
- code?: number | null | undefined;
2015
- message?: string | null | undefined;
2016
- } | null | undefined;
2017
- }, {
2018
- status?: {
2019
- code?: number | null | undefined;
2020
- message?: string | null | undefined;
2021
- } | null | undefined;
2022
- }>;
2023
- export type StatusResponse = z.infer<typeof statusResponseSchema>;
2024
- export declare const patientProbableLinksSchema: z.ZodObject<{
3469
+ export type PatientExistingLinks = z.infer<typeof patientExistingLinksSchema>;
3470
+ export declare const linksForPatientProbableLinksSchema: z.ZodObject<{
2025
3471
  Self: z.ZodString;
2026
3472
  Link: z.ZodString;
2027
3473
  Unlink: z.ZodString;
2028
3474
  }, "strip", z.ZodTypeAny, {
2029
3475
  Self: string;
2030
- Link: string;
2031
3476
  Unlink: string;
3477
+ Link: string;
2032
3478
  }, {
2033
3479
  Self: string;
2034
- Link: string;
2035
3480
  Unlink: string;
3481
+ Link: string;
2036
3482
  }>;
2037
- export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2038
- Patient: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
3483
+ export declare const patientProbableLinksItemRespSchema: z.ZodObject<{
3484
+ Patient: z.ZodObject<z.objectUtil.extendShape<{
2039
3485
  identifier: z.ZodArray<z.ZodObject<{
2040
3486
  value: z.ZodString;
2041
3487
  system: z.ZodString;
@@ -2056,22 +3502,22 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2056
3502
  value: string;
2057
3503
  system: string;
2058
3504
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2059
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
2060
- assigner?: string | null | undefined;
3505
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2061
3506
  period?: {
2062
3507
  start?: string | null | undefined;
2063
3508
  end?: string | null | undefined;
2064
3509
  } | null | undefined;
3510
+ assigner?: string | null | undefined;
2065
3511
  }, {
2066
3512
  value: string;
2067
3513
  system: string;
2068
3514
  type?: unknown;
2069
3515
  use?: unknown;
2070
- assigner?: unknown;
2071
3516
  period?: {
2072
3517
  start?: unknown;
2073
3518
  end?: unknown;
2074
3519
  } | null | undefined;
3520
+ assigner?: unknown;
2075
3521
  }>, "many">;
2076
3522
  name: z.ZodArray<z.ZodObject<{
2077
3523
  given: z.ZodArray<z.ZodString, "many">;
@@ -2113,7 +3559,7 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2113
3559
  prefix?: unknown;
2114
3560
  suffix?: unknown;
2115
3561
  }>, "many">;
2116
- gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodNativeEnum<typeof import("./demographics").GenderCodes>, z.ZodNativeEnum<typeof import("./demographics").GenderCodesBackwardsCompatible>]>, z.ZodEnum<[string, ...string[]]>]>, string, string>, string, unknown>>>;
3562
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof import("./demographics").GenderCodes>>, import("./demographics").GenderCodes | undefined, unknown>>>;
2117
3563
  birthDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodString]>, string, string>;
2118
3564
  address: z.ZodArray<z.ZodObject<{
2119
3565
  line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
@@ -2136,27 +3582,27 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2136
3582
  }, "strip", z.ZodTypeAny, {
2137
3583
  postalCode: string;
2138
3584
  type?: import("./address").AddressTypeCodes | null | undefined;
3585
+ line?: string[] | null | undefined;
3586
+ city?: string | null | undefined;
3587
+ state?: string | null | undefined;
3588
+ country?: string | null | undefined;
2139
3589
  use?: import("./address").AddressUseCodes | null | undefined;
2140
3590
  period?: {
2141
3591
  start?: string | null | undefined;
2142
3592
  end?: string | null | undefined;
2143
3593
  } | null | undefined;
2144
- line?: string[] | null | undefined;
2145
- city?: string | null | undefined;
2146
- state?: string | null | undefined;
2147
- country?: string | null | undefined;
2148
3594
  }, {
2149
3595
  postalCode: string;
2150
3596
  type?: unknown;
3597
+ line?: string[] | null | undefined;
3598
+ city?: string | null | undefined;
3599
+ state?: unknown;
3600
+ country?: unknown;
2151
3601
  use?: unknown;
2152
3602
  period?: {
2153
3603
  start?: unknown;
2154
3604
  end?: unknown;
2155
3605
  } | null | undefined;
2156
- line?: string[] | null | undefined;
2157
- city?: string | null | undefined;
2158
- state?: unknown;
2159
- country?: unknown;
2160
3606
  }>, "many">;
2161
3607
  telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2162
3608
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2174,20 +3620,20 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2174
3620
  }>>>;
2175
3621
  }, "strip", z.ZodTypeAny, {
2176
3622
  value?: string | null | undefined;
2177
- system?: import("./contact").ContactSystemCodes | null | undefined;
2178
3623
  use?: import("./contact").ContactUseCodes | null | undefined;
2179
3624
  period?: {
2180
3625
  start?: string | null | undefined;
2181
3626
  end?: string | null | undefined;
2182
3627
  } | null | undefined;
3628
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2183
3629
  }, {
2184
3630
  value?: string | null | undefined;
2185
- system?: unknown;
2186
3631
  use?: unknown;
2187
3632
  period?: {
2188
3633
  start?: unknown;
2189
3634
  end?: unknown;
2190
3635
  } | null | undefined;
3636
+ system?: unknown;
2191
3637
  }>, "many">>>;
2192
3638
  }, {
2193
3639
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -2225,32 +3671,11 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2225
3671
  }[];
2226
3672
  name?: string | null | undefined;
2227
3673
  }>>>;
2228
- link: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2229
- Self: z.ZodString;
2230
- /**
2231
- * 8.4.1 Get Patient Links
2232
- * An Edge System can search and request Patient Links by a local patient identifier. The result
2233
- * of the query will include local and remote patient’s links that are autolinked by the rules
2234
- * engine or manually linked.
2235
- * The links returned are confirmed links of LOLA 2 or higher.
2236
- */
2237
- PatientLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2238
- ResetLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2239
- Delete: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2240
- ProbableLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2241
- }, "strip", z.ZodTypeAny, {
2242
- Self: string;
2243
- PatientLink?: string | null | undefined;
2244
- ResetLink?: string | null | undefined;
2245
- Delete?: string | null | undefined;
2246
- ProbableLink?: string | null | undefined;
2247
- }, {
2248
- Self: string;
2249
- PatientLink?: string | null | undefined;
2250
- ResetLink?: string | null | undefined;
2251
- Delete?: string | null | undefined;
2252
- ProbableLink?: string | null | undefined;
2253
- }>, "many">>>;
3674
+ /**
3675
+ * Links to a Patient or RelatedPerson resource that concerns the same actual individual.
3676
+ * The patient resource containing this link is the non-surviving patient.
3677
+ * Disabled because couldn't validatte this in pre-production.
3678
+ */
2254
3679
  disclosure: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2255
3680
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2256
3681
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -2275,42 +3700,42 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2275
3700
  }, "strip", z.ZodTypeAny, {
2276
3701
  postalCode: string;
2277
3702
  type?: import("./address").AddressTypeCodes | null | undefined;
3703
+ line?: string[] | null | undefined;
3704
+ city?: string | null | undefined;
3705
+ state?: string | null | undefined;
3706
+ country?: string | null | undefined;
2278
3707
  use?: import("./address").AddressUseCodes | null | undefined;
2279
3708
  period?: {
2280
3709
  start?: string | null | undefined;
2281
3710
  end?: string | null | undefined;
2282
3711
  } | null | undefined;
2283
- line?: string[] | null | undefined;
2284
- city?: string | null | undefined;
2285
- state?: string | null | undefined;
2286
- country?: string | null | undefined;
2287
3712
  }, {
2288
3713
  postalCode: string;
2289
3714
  type?: unknown;
3715
+ line?: string[] | null | undefined;
3716
+ city?: string | null | undefined;
3717
+ state?: unknown;
3718
+ country?: unknown;
2290
3719
  use?: unknown;
2291
3720
  period?: {
2292
3721
  start?: unknown;
2293
3722
  end?: unknown;
2294
3723
  } | null | undefined;
2295
- line?: string[] | null | undefined;
2296
- city?: string | null | undefined;
2297
- state?: unknown;
2298
- country?: unknown;
2299
3724
  }>>>;
2300
3725
  }, "strip", z.ZodTypeAny, {
2301
3726
  name?: string | null | undefined;
2302
3727
  address?: {
2303
3728
  postalCode: string;
2304
3729
  type?: import("./address").AddressTypeCodes | null | undefined;
3730
+ line?: string[] | null | undefined;
3731
+ city?: string | null | undefined;
3732
+ state?: string | null | undefined;
3733
+ country?: string | null | undefined;
2305
3734
  use?: import("./address").AddressUseCodes | null | undefined;
2306
3735
  period?: {
2307
3736
  start?: string | null | undefined;
2308
3737
  end?: string | null | undefined;
2309
3738
  } | null | undefined;
2310
- line?: string[] | null | undefined;
2311
- city?: string | null | undefined;
2312
- state?: string | null | undefined;
2313
- country?: string | null | undefined;
2314
3739
  } | null | undefined;
2315
3740
  id?: string | null | undefined;
2316
3741
  }, {
@@ -2318,15 +3743,15 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2318
3743
  address?: {
2319
3744
  postalCode: string;
2320
3745
  type?: unknown;
3746
+ line?: string[] | null | undefined;
3747
+ city?: string | null | undefined;
3748
+ state?: unknown;
3749
+ country?: unknown;
2321
3750
  use?: unknown;
2322
3751
  period?: {
2323
3752
  start?: unknown;
2324
3753
  end?: unknown;
2325
3754
  } | null | undefined;
2326
- line?: string[] | null | undefined;
2327
- city?: string | null | undefined;
2328
- state?: unknown;
2329
- country?: unknown;
2330
3755
  } | null | undefined;
2331
3756
  id?: string | null | undefined;
2332
3757
  }>, "many">>>;
@@ -2335,12 +3760,12 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2335
3760
  value: string;
2336
3761
  system: string;
2337
3762
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2338
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
2339
- assigner?: string | null | undefined;
3763
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2340
3764
  period?: {
2341
3765
  start?: string | null | undefined;
2342
3766
  end?: string | null | undefined;
2343
3767
  } | null | undefined;
3768
+ assigner?: string | null | undefined;
2344
3769
  }[];
2345
3770
  name: {
2346
3771
  family: string[];
@@ -2358,32 +3783,25 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2358
3783
  address: {
2359
3784
  postalCode: string;
2360
3785
  type?: import("./address").AddressTypeCodes | null | undefined;
3786
+ line?: string[] | null | undefined;
3787
+ city?: string | null | undefined;
3788
+ state?: string | null | undefined;
3789
+ country?: string | null | undefined;
2361
3790
  use?: import("./address").AddressUseCodes | null | undefined;
2362
3791
  period?: {
2363
3792
  start?: string | null | undefined;
2364
3793
  end?: string | null | undefined;
2365
3794
  } | null | undefined;
2366
- line?: string[] | null | undefined;
2367
- city?: string | null | undefined;
2368
- state?: string | null | undefined;
2369
- country?: string | null | undefined;
2370
3795
  }[];
2371
- link?: {
2372
- Self: string;
2373
- PatientLink?: string | null | undefined;
2374
- ResetLink?: string | null | undefined;
2375
- Delete?: string | null | undefined;
2376
- ProbableLink?: string | null | undefined;
2377
- }[] | null | undefined;
2378
- gender?: string | null | undefined;
3796
+ gender?: import("./demographics").GenderCodes | null | undefined;
2379
3797
  telecom?: {
2380
3798
  value?: string | null | undefined;
2381
- system?: import("./contact").ContactSystemCodes | null | undefined;
2382
3799
  use?: import("./contact").ContactUseCodes | null | undefined;
2383
3800
  period?: {
2384
3801
  start?: string | null | undefined;
2385
3802
  end?: string | null | undefined;
2386
3803
  } | null | undefined;
3804
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2387
3805
  }[] | null | undefined;
2388
3806
  active?: boolean | null | undefined;
2389
3807
  managingOrganization?: {
@@ -2397,15 +3815,15 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2397
3815
  address?: {
2398
3816
  postalCode: string;
2399
3817
  type?: import("./address").AddressTypeCodes | null | undefined;
3818
+ line?: string[] | null | undefined;
3819
+ city?: string | null | undefined;
3820
+ state?: string | null | undefined;
3821
+ country?: string | null | undefined;
2400
3822
  use?: import("./address").AddressUseCodes | null | undefined;
2401
3823
  period?: {
2402
3824
  start?: string | null | undefined;
2403
3825
  end?: string | null | undefined;
2404
3826
  } | null | undefined;
2405
- line?: string[] | null | undefined;
2406
- city?: string | null | undefined;
2407
- state?: string | null | undefined;
2408
- country?: string | null | undefined;
2409
3827
  } | null | undefined;
2410
3828
  id?: string | null | undefined;
2411
3829
  }[] | null | undefined;
@@ -2415,11 +3833,11 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2415
3833
  system: string;
2416
3834
  type?: unknown;
2417
3835
  use?: unknown;
2418
- assigner?: unknown;
2419
3836
  period?: {
2420
3837
  start?: unknown;
2421
3838
  end?: unknown;
2422
3839
  } | null | undefined;
3840
+ assigner?: unknown;
2423
3841
  }[];
2424
3842
  name: {
2425
3843
  family: string[];
@@ -2437,32 +3855,25 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2437
3855
  address: {
2438
3856
  postalCode: string;
2439
3857
  type?: unknown;
3858
+ line?: string[] | null | undefined;
3859
+ city?: string | null | undefined;
3860
+ state?: unknown;
3861
+ country?: unknown;
2440
3862
  use?: unknown;
2441
3863
  period?: {
2442
3864
  start?: unknown;
2443
3865
  end?: unknown;
2444
3866
  } | null | undefined;
2445
- line?: string[] | null | undefined;
2446
- city?: string | null | undefined;
2447
- state?: unknown;
2448
- country?: unknown;
2449
3867
  }[];
2450
- link?: {
2451
- Self: string;
2452
- PatientLink?: string | null | undefined;
2453
- ResetLink?: string | null | undefined;
2454
- Delete?: string | null | undefined;
2455
- ProbableLink?: string | null | undefined;
2456
- }[] | null | undefined;
2457
3868
  gender?: unknown;
2458
3869
  telecom?: {
2459
3870
  value?: string | null | undefined;
2460
- system?: unknown;
2461
3871
  use?: unknown;
2462
3872
  period?: {
2463
3873
  start?: unknown;
2464
3874
  end?: unknown;
2465
3875
  } | null | undefined;
3876
+ system?: unknown;
2466
3877
  }[] | null | undefined;
2467
3878
  active?: boolean | null | undefined;
2468
3879
  managingOrganization?: {
@@ -2476,49 +3887,44 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2476
3887
  address?: {
2477
3888
  postalCode: string;
2478
3889
  type?: unknown;
3890
+ line?: string[] | null | undefined;
3891
+ city?: string | null | undefined;
3892
+ state?: unknown;
3893
+ country?: unknown;
2479
3894
  use?: unknown;
2480
3895
  period?: {
2481
3896
  start?: unknown;
2482
3897
  end?: unknown;
2483
3898
  } | null | undefined;
2484
- line?: string[] | null | undefined;
2485
- city?: string | null | undefined;
2486
- state?: unknown;
2487
- country?: unknown;
2488
3899
  } | null | undefined;
2489
3900
  id?: string | null | undefined;
2490
3901
  }[] | null | undefined;
2491
- }>>>;
3902
+ }>;
2492
3903
  Links: z.ZodObject<{
2493
3904
  Self: z.ZodString;
2494
3905
  Link: z.ZodString;
2495
3906
  Unlink: z.ZodString;
2496
3907
  }, "strip", z.ZodTypeAny, {
2497
3908
  Self: string;
2498
- Link: string;
2499
3909
  Unlink: string;
3910
+ Link: string;
2500
3911
  }, {
2501
3912
  Self: string;
2502
- Link: string;
2503
3913
  Unlink: string;
3914
+ Link: string;
2504
3915
  }>;
2505
3916
  }, "strip", z.ZodTypeAny, {
2506
- Links: {
2507
- Self: string;
2508
- Link: string;
2509
- Unlink: string;
2510
- };
2511
- Patient?: {
3917
+ Patient: {
2512
3918
  identifier: {
2513
3919
  value: string;
2514
3920
  system: string;
2515
3921
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2516
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
2517
- assigner?: string | null | undefined;
3922
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2518
3923
  period?: {
2519
3924
  start?: string | null | undefined;
2520
3925
  end?: string | null | undefined;
2521
3926
  } | null | undefined;
3927
+ assigner?: string | null | undefined;
2522
3928
  }[];
2523
3929
  name: {
2524
3930
  family: string[];
@@ -2536,32 +3942,25 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2536
3942
  address: {
2537
3943
  postalCode: string;
2538
3944
  type?: import("./address").AddressTypeCodes | null | undefined;
3945
+ line?: string[] | null | undefined;
3946
+ city?: string | null | undefined;
3947
+ state?: string | null | undefined;
3948
+ country?: string | null | undefined;
2539
3949
  use?: import("./address").AddressUseCodes | null | undefined;
2540
3950
  period?: {
2541
3951
  start?: string | null | undefined;
2542
3952
  end?: string | null | undefined;
2543
3953
  } | null | undefined;
2544
- line?: string[] | null | undefined;
2545
- city?: string | null | undefined;
2546
- state?: string | null | undefined;
2547
- country?: string | null | undefined;
2548
3954
  }[];
2549
- link?: {
2550
- Self: string;
2551
- PatientLink?: string | null | undefined;
2552
- ResetLink?: string | null | undefined;
2553
- Delete?: string | null | undefined;
2554
- ProbableLink?: string | null | undefined;
2555
- }[] | null | undefined;
2556
- gender?: string | null | undefined;
3955
+ gender?: import("./demographics").GenderCodes | null | undefined;
2557
3956
  telecom?: {
2558
3957
  value?: string | null | undefined;
2559
- system?: import("./contact").ContactSystemCodes | null | undefined;
2560
3958
  use?: import("./contact").ContactUseCodes | null | undefined;
2561
3959
  period?: {
2562
3960
  start?: string | null | undefined;
2563
3961
  end?: string | null | undefined;
2564
3962
  } | null | undefined;
3963
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2565
3964
  }[] | null | undefined;
2566
3965
  active?: boolean | null | undefined;
2567
3966
  managingOrganization?: {
@@ -2575,36 +3974,36 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2575
3974
  address?: {
2576
3975
  postalCode: string;
2577
3976
  type?: import("./address").AddressTypeCodes | null | undefined;
3977
+ line?: string[] | null | undefined;
3978
+ city?: string | null | undefined;
3979
+ state?: string | null | undefined;
3980
+ country?: string | null | undefined;
2578
3981
  use?: import("./address").AddressUseCodes | null | undefined;
2579
3982
  period?: {
2580
3983
  start?: string | null | undefined;
2581
3984
  end?: string | null | undefined;
2582
3985
  } | null | undefined;
2583
- line?: string[] | null | undefined;
2584
- city?: string | null | undefined;
2585
- state?: string | null | undefined;
2586
- country?: string | null | undefined;
2587
3986
  } | null | undefined;
2588
3987
  id?: string | null | undefined;
2589
3988
  }[] | null | undefined;
2590
- } | null | undefined;
2591
- }, {
3989
+ };
2592
3990
  Links: {
2593
3991
  Self: string;
2594
- Link: string;
2595
3992
  Unlink: string;
3993
+ Link: string;
2596
3994
  };
2597
- Patient?: {
3995
+ }, {
3996
+ Patient: {
2598
3997
  identifier: {
2599
3998
  value: string;
2600
3999
  system: string;
2601
4000
  type?: unknown;
2602
4001
  use?: unknown;
2603
- assigner?: unknown;
2604
4002
  period?: {
2605
4003
  start?: unknown;
2606
4004
  end?: unknown;
2607
4005
  } | null | undefined;
4006
+ assigner?: unknown;
2608
4007
  }[];
2609
4008
  name: {
2610
4009
  family: string[];
@@ -2622,32 +4021,25 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2622
4021
  address: {
2623
4022
  postalCode: string;
2624
4023
  type?: unknown;
4024
+ line?: string[] | null | undefined;
4025
+ city?: string | null | undefined;
4026
+ state?: unknown;
4027
+ country?: unknown;
2625
4028
  use?: unknown;
2626
4029
  period?: {
2627
4030
  start?: unknown;
2628
4031
  end?: unknown;
2629
4032
  } | null | undefined;
2630
- line?: string[] | null | undefined;
2631
- city?: string | null | undefined;
2632
- state?: unknown;
2633
- country?: unknown;
2634
4033
  }[];
2635
- link?: {
2636
- Self: string;
2637
- PatientLink?: string | null | undefined;
2638
- ResetLink?: string | null | undefined;
2639
- Delete?: string | null | undefined;
2640
- ProbableLink?: string | null | undefined;
2641
- }[] | null | undefined;
2642
4034
  gender?: unknown;
2643
4035
  telecom?: {
2644
4036
  value?: string | null | undefined;
2645
- system?: unknown;
2646
4037
  use?: unknown;
2647
4038
  period?: {
2648
4039
  start?: unknown;
2649
4040
  end?: unknown;
2650
4041
  } | null | undefined;
4042
+ system?: unknown;
2651
4043
  }[] | null | undefined;
2652
4044
  active?: boolean | null | undefined;
2653
4045
  managingOrganization?: {
@@ -2661,24 +4053,29 @@ export declare const patientProbableLinkItemRespSchema: z.ZodObject<{
2661
4053
  address?: {
2662
4054
  postalCode: string;
2663
4055
  type?: unknown;
4056
+ line?: string[] | null | undefined;
4057
+ city?: string | null | undefined;
4058
+ state?: unknown;
4059
+ country?: unknown;
2664
4060
  use?: unknown;
2665
4061
  period?: {
2666
4062
  start?: unknown;
2667
4063
  end?: unknown;
2668
4064
  } | null | undefined;
2669
- line?: string[] | null | undefined;
2670
- city?: string | null | undefined;
2671
- state?: unknown;
2672
- country?: unknown;
2673
4065
  } | null | undefined;
2674
4066
  id?: string | null | undefined;
2675
4067
  }[] | null | undefined;
2676
- } | null | undefined;
4068
+ };
4069
+ Links: {
4070
+ Self: string;
4071
+ Unlink: string;
4072
+ Link: string;
4073
+ };
2677
4074
  }>;
2678
- export type PatientProbableLinkItem = z.infer<typeof patientProbableLinkItemRespSchema>;
2679
- export declare const patientProbableLinkRespSchema: z.ZodObject<{
4075
+ export type PatientProbableLink = z.infer<typeof patientProbableLinksItemRespSchema>;
4076
+ export declare const patientProbableLinksRespSchema: z.ZodObject<{
2680
4077
  Patients: z.ZodArray<z.ZodObject<{
2681
- Patient: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
4078
+ Patient: z.ZodObject<z.objectUtil.extendShape<{
2682
4079
  identifier: z.ZodArray<z.ZodObject<{
2683
4080
  value: z.ZodString;
2684
4081
  system: z.ZodString;
@@ -2699,22 +4096,22 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2699
4096
  value: string;
2700
4097
  system: string;
2701
4098
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2702
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
2703
- assigner?: string | null | undefined;
4099
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2704
4100
  period?: {
2705
4101
  start?: string | null | undefined;
2706
4102
  end?: string | null | undefined;
2707
4103
  } | null | undefined;
4104
+ assigner?: string | null | undefined;
2708
4105
  }, {
2709
4106
  value: string;
2710
4107
  system: string;
2711
4108
  type?: unknown;
2712
4109
  use?: unknown;
2713
- assigner?: unknown;
2714
4110
  period?: {
2715
4111
  start?: unknown;
2716
4112
  end?: unknown;
2717
4113
  } | null | undefined;
4114
+ assigner?: unknown;
2718
4115
  }>, "many">;
2719
4116
  name: z.ZodArray<z.ZodObject<{
2720
4117
  given: z.ZodArray<z.ZodString, "many">;
@@ -2756,7 +4153,7 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2756
4153
  prefix?: unknown;
2757
4154
  suffix?: unknown;
2758
4155
  }>, "many">;
2759
- gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodNativeEnum<typeof import("./demographics").GenderCodes>, z.ZodNativeEnum<typeof import("./demographics").GenderCodesBackwardsCompatible>]>, z.ZodEnum<[string, ...string[]]>]>, string, string>, string, unknown>>>;
4156
+ gender: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<typeof import("./demographics").GenderCodes>>, import("./demographics").GenderCodes | undefined, unknown>>>;
2760
4157
  birthDate: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodString]>, string, string>;
2761
4158
  address: z.ZodArray<z.ZodObject<{
2762
4159
  line: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
@@ -2779,27 +4176,27 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2779
4176
  }, "strip", z.ZodTypeAny, {
2780
4177
  postalCode: string;
2781
4178
  type?: import("./address").AddressTypeCodes | null | undefined;
4179
+ line?: string[] | null | undefined;
4180
+ city?: string | null | undefined;
4181
+ state?: string | null | undefined;
4182
+ country?: string | null | undefined;
2782
4183
  use?: import("./address").AddressUseCodes | null | undefined;
2783
4184
  period?: {
2784
4185
  start?: string | null | undefined;
2785
4186
  end?: string | null | undefined;
2786
4187
  } | null | undefined;
2787
- line?: string[] | null | undefined;
2788
- city?: string | null | undefined;
2789
- state?: string | null | undefined;
2790
- country?: string | null | undefined;
2791
4188
  }, {
2792
4189
  postalCode: string;
2793
4190
  type?: unknown;
4191
+ line?: string[] | null | undefined;
4192
+ city?: string | null | undefined;
4193
+ state?: unknown;
4194
+ country?: unknown;
2794
4195
  use?: unknown;
2795
4196
  period?: {
2796
4197
  start?: unknown;
2797
4198
  end?: unknown;
2798
4199
  } | null | undefined;
2799
- line?: string[] | null | undefined;
2800
- city?: string | null | undefined;
2801
- state?: unknown;
2802
- country?: unknown;
2803
4200
  }>, "many">;
2804
4201
  telecom: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2805
4202
  value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2817,20 +4214,20 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2817
4214
  }>>>;
2818
4215
  }, "strip", z.ZodTypeAny, {
2819
4216
  value?: string | null | undefined;
2820
- system?: import("./contact").ContactSystemCodes | null | undefined;
2821
4217
  use?: import("./contact").ContactUseCodes | null | undefined;
2822
4218
  period?: {
2823
4219
  start?: string | null | undefined;
2824
4220
  end?: string | null | undefined;
2825
4221
  } | null | undefined;
4222
+ system?: import("./contact").ContactSystemCodes | null | undefined;
2826
4223
  }, {
2827
4224
  value?: string | null | undefined;
2828
- system?: unknown;
2829
4225
  use?: unknown;
2830
4226
  period?: {
2831
4227
  start?: unknown;
2832
4228
  end?: unknown;
2833
4229
  } | null | undefined;
4230
+ system?: unknown;
2834
4231
  }>, "many">>>;
2835
4232
  }, {
2836
4233
  active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
@@ -2868,32 +4265,11 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2868
4265
  }[];
2869
4266
  name?: string | null | undefined;
2870
4267
  }>>>;
2871
- link: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2872
- Self: z.ZodString;
2873
- /**
2874
- * 8.4.1 Get Patient Links
2875
- * An Edge System can search and request Patient Links by a local patient identifier. The result
2876
- * of the query will include local and remote patient’s links that are autolinked by the rules
2877
- * engine or manually linked.
2878
- * The links returned are confirmed links of LOLA 2 or higher.
2879
- */
2880
- PatientLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2881
- ResetLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2882
- Delete: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2883
- ProbableLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2884
- }, "strip", z.ZodTypeAny, {
2885
- Self: string;
2886
- PatientLink?: string | null | undefined;
2887
- ResetLink?: string | null | undefined;
2888
- Delete?: string | null | undefined;
2889
- ProbableLink?: string | null | undefined;
2890
- }, {
2891
- Self: string;
2892
- PatientLink?: string | null | undefined;
2893
- ResetLink?: string | null | undefined;
2894
- Delete?: string | null | undefined;
2895
- ProbableLink?: string | null | undefined;
2896
- }>, "many">>>;
4268
+ /**
4269
+ * Links to a Patient or RelatedPerson resource that concerns the same actual individual.
4270
+ * The patient resource containing this link is the non-surviving patient.
4271
+ * Disabled because couldn't validatte this in pre-production.
4272
+ */
2897
4273
  disclosure: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2898
4274
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2899
4275
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -2918,42 +4294,42 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2918
4294
  }, "strip", z.ZodTypeAny, {
2919
4295
  postalCode: string;
2920
4296
  type?: import("./address").AddressTypeCodes | null | undefined;
4297
+ line?: string[] | null | undefined;
4298
+ city?: string | null | undefined;
4299
+ state?: string | null | undefined;
4300
+ country?: string | null | undefined;
2921
4301
  use?: import("./address").AddressUseCodes | null | undefined;
2922
4302
  period?: {
2923
4303
  start?: string | null | undefined;
2924
4304
  end?: string | null | undefined;
2925
4305
  } | null | undefined;
2926
- line?: string[] | null | undefined;
2927
- city?: string | null | undefined;
2928
- state?: string | null | undefined;
2929
- country?: string | null | undefined;
2930
4306
  }, {
2931
4307
  postalCode: string;
2932
4308
  type?: unknown;
4309
+ line?: string[] | null | undefined;
4310
+ city?: string | null | undefined;
4311
+ state?: unknown;
4312
+ country?: unknown;
2933
4313
  use?: unknown;
2934
4314
  period?: {
2935
4315
  start?: unknown;
2936
4316
  end?: unknown;
2937
4317
  } | null | undefined;
2938
- line?: string[] | null | undefined;
2939
- city?: string | null | undefined;
2940
- state?: unknown;
2941
- country?: unknown;
2942
4318
  }>>>;
2943
4319
  }, "strip", z.ZodTypeAny, {
2944
4320
  name?: string | null | undefined;
2945
4321
  address?: {
2946
4322
  postalCode: string;
2947
4323
  type?: import("./address").AddressTypeCodes | null | undefined;
4324
+ line?: string[] | null | undefined;
4325
+ city?: string | null | undefined;
4326
+ state?: string | null | undefined;
4327
+ country?: string | null | undefined;
2948
4328
  use?: import("./address").AddressUseCodes | null | undefined;
2949
4329
  period?: {
2950
4330
  start?: string | null | undefined;
2951
4331
  end?: string | null | undefined;
2952
4332
  } | null | undefined;
2953
- line?: string[] | null | undefined;
2954
- city?: string | null | undefined;
2955
- state?: string | null | undefined;
2956
- country?: string | null | undefined;
2957
4333
  } | null | undefined;
2958
4334
  id?: string | null | undefined;
2959
4335
  }, {
@@ -2961,15 +4337,15 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2961
4337
  address?: {
2962
4338
  postalCode: string;
2963
4339
  type?: unknown;
4340
+ line?: string[] | null | undefined;
4341
+ city?: string | null | undefined;
4342
+ state?: unknown;
4343
+ country?: unknown;
2964
4344
  use?: unknown;
2965
4345
  period?: {
2966
4346
  start?: unknown;
2967
4347
  end?: unknown;
2968
4348
  } | null | undefined;
2969
- line?: string[] | null | undefined;
2970
- city?: string | null | undefined;
2971
- state?: unknown;
2972
- country?: unknown;
2973
4349
  } | null | undefined;
2974
4350
  id?: string | null | undefined;
2975
4351
  }>, "many">>>;
@@ -2978,12 +4354,12 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
2978
4354
  value: string;
2979
4355
  system: string;
2980
4356
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
2981
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
2982
- assigner?: string | null | undefined;
4357
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
2983
4358
  period?: {
2984
4359
  start?: string | null | undefined;
2985
4360
  end?: string | null | undefined;
2986
4361
  } | null | undefined;
4362
+ assigner?: string | null | undefined;
2987
4363
  }[];
2988
4364
  name: {
2989
4365
  family: string[];
@@ -3001,32 +4377,25 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3001
4377
  address: {
3002
4378
  postalCode: string;
3003
4379
  type?: import("./address").AddressTypeCodes | null | undefined;
4380
+ line?: string[] | null | undefined;
4381
+ city?: string | null | undefined;
4382
+ state?: string | null | undefined;
4383
+ country?: string | null | undefined;
3004
4384
  use?: import("./address").AddressUseCodes | null | undefined;
3005
4385
  period?: {
3006
4386
  start?: string | null | undefined;
3007
4387
  end?: string | null | undefined;
3008
4388
  } | null | undefined;
3009
- line?: string[] | null | undefined;
3010
- city?: string | null | undefined;
3011
- state?: string | null | undefined;
3012
- country?: string | null | undefined;
3013
4389
  }[];
3014
- link?: {
3015
- Self: string;
3016
- PatientLink?: string | null | undefined;
3017
- ResetLink?: string | null | undefined;
3018
- Delete?: string | null | undefined;
3019
- ProbableLink?: string | null | undefined;
3020
- }[] | null | undefined;
3021
- gender?: string | null | undefined;
4390
+ gender?: import("./demographics").GenderCodes | null | undefined;
3022
4391
  telecom?: {
3023
4392
  value?: string | null | undefined;
3024
- system?: import("./contact").ContactSystemCodes | null | undefined;
3025
4393
  use?: import("./contact").ContactUseCodes | null | undefined;
3026
4394
  period?: {
3027
4395
  start?: string | null | undefined;
3028
4396
  end?: string | null | undefined;
3029
4397
  } | null | undefined;
4398
+ system?: import("./contact").ContactSystemCodes | null | undefined;
3030
4399
  }[] | null | undefined;
3031
4400
  active?: boolean | null | undefined;
3032
4401
  managingOrganization?: {
@@ -3040,15 +4409,15 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3040
4409
  address?: {
3041
4410
  postalCode: string;
3042
4411
  type?: import("./address").AddressTypeCodes | null | undefined;
4412
+ line?: string[] | null | undefined;
4413
+ city?: string | null | undefined;
4414
+ state?: string | null | undefined;
4415
+ country?: string | null | undefined;
3043
4416
  use?: import("./address").AddressUseCodes | null | undefined;
3044
4417
  period?: {
3045
4418
  start?: string | null | undefined;
3046
4419
  end?: string | null | undefined;
3047
4420
  } | null | undefined;
3048
- line?: string[] | null | undefined;
3049
- city?: string | null | undefined;
3050
- state?: string | null | undefined;
3051
- country?: string | null | undefined;
3052
4421
  } | null | undefined;
3053
4422
  id?: string | null | undefined;
3054
4423
  }[] | null | undefined;
@@ -3058,11 +4427,11 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3058
4427
  system: string;
3059
4428
  type?: unknown;
3060
4429
  use?: unknown;
3061
- assigner?: unknown;
3062
4430
  period?: {
3063
4431
  start?: unknown;
3064
4432
  end?: unknown;
3065
4433
  } | null | undefined;
4434
+ assigner?: unknown;
3066
4435
  }[];
3067
4436
  name: {
3068
4437
  family: string[];
@@ -3080,32 +4449,25 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3080
4449
  address: {
3081
4450
  postalCode: string;
3082
4451
  type?: unknown;
4452
+ line?: string[] | null | undefined;
4453
+ city?: string | null | undefined;
4454
+ state?: unknown;
4455
+ country?: unknown;
3083
4456
  use?: unknown;
3084
4457
  period?: {
3085
4458
  start?: unknown;
3086
4459
  end?: unknown;
3087
4460
  } | null | undefined;
3088
- line?: string[] | null | undefined;
3089
- city?: string | null | undefined;
3090
- state?: unknown;
3091
- country?: unknown;
3092
4461
  }[];
3093
- link?: {
3094
- Self: string;
3095
- PatientLink?: string | null | undefined;
3096
- ResetLink?: string | null | undefined;
3097
- Delete?: string | null | undefined;
3098
- ProbableLink?: string | null | undefined;
3099
- }[] | null | undefined;
3100
4462
  gender?: unknown;
3101
4463
  telecom?: {
3102
4464
  value?: string | null | undefined;
3103
- system?: unknown;
3104
4465
  use?: unknown;
3105
4466
  period?: {
3106
4467
  start?: unknown;
3107
4468
  end?: unknown;
3108
4469
  } | null | undefined;
4470
+ system?: unknown;
3109
4471
  }[] | null | undefined;
3110
4472
  active?: boolean | null | undefined;
3111
4473
  managingOrganization?: {
@@ -3119,49 +4481,44 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3119
4481
  address?: {
3120
4482
  postalCode: string;
3121
4483
  type?: unknown;
4484
+ line?: string[] | null | undefined;
4485
+ city?: string | null | undefined;
4486
+ state?: unknown;
4487
+ country?: unknown;
3122
4488
  use?: unknown;
3123
4489
  period?: {
3124
4490
  start?: unknown;
3125
4491
  end?: unknown;
3126
4492
  } | null | undefined;
3127
- line?: string[] | null | undefined;
3128
- city?: string | null | undefined;
3129
- state?: unknown;
3130
- country?: unknown;
3131
4493
  } | null | undefined;
3132
4494
  id?: string | null | undefined;
3133
4495
  }[] | null | undefined;
3134
- }>>>;
4496
+ }>;
3135
4497
  Links: z.ZodObject<{
3136
4498
  Self: z.ZodString;
3137
4499
  Link: z.ZodString;
3138
4500
  Unlink: z.ZodString;
3139
4501
  }, "strip", z.ZodTypeAny, {
3140
4502
  Self: string;
3141
- Link: string;
3142
4503
  Unlink: string;
4504
+ Link: string;
3143
4505
  }, {
3144
4506
  Self: string;
3145
- Link: string;
3146
4507
  Unlink: string;
4508
+ Link: string;
3147
4509
  }>;
3148
4510
  }, "strip", z.ZodTypeAny, {
3149
- Links: {
3150
- Self: string;
3151
- Link: string;
3152
- Unlink: string;
3153
- };
3154
- Patient?: {
4511
+ Patient: {
3155
4512
  identifier: {
3156
4513
  value: string;
3157
4514
  system: string;
3158
4515
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
3159
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
3160
- assigner?: string | null | undefined;
4516
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
3161
4517
  period?: {
3162
4518
  start?: string | null | undefined;
3163
4519
  end?: string | null | undefined;
3164
4520
  } | null | undefined;
4521
+ assigner?: string | null | undefined;
3165
4522
  }[];
3166
4523
  name: {
3167
4524
  family: string[];
@@ -3179,32 +4536,25 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3179
4536
  address: {
3180
4537
  postalCode: string;
3181
4538
  type?: import("./address").AddressTypeCodes | null | undefined;
4539
+ line?: string[] | null | undefined;
4540
+ city?: string | null | undefined;
4541
+ state?: string | null | undefined;
4542
+ country?: string | null | undefined;
3182
4543
  use?: import("./address").AddressUseCodes | null | undefined;
3183
4544
  period?: {
3184
4545
  start?: string | null | undefined;
3185
4546
  end?: string | null | undefined;
3186
4547
  } | null | undefined;
3187
- line?: string[] | null | undefined;
3188
- city?: string | null | undefined;
3189
- state?: string | null | undefined;
3190
- country?: string | null | undefined;
3191
4548
  }[];
3192
- link?: {
3193
- Self: string;
3194
- PatientLink?: string | null | undefined;
3195
- ResetLink?: string | null | undefined;
3196
- Delete?: string | null | undefined;
3197
- ProbableLink?: string | null | undefined;
3198
- }[] | null | undefined;
3199
- gender?: string | null | undefined;
4549
+ gender?: import("./demographics").GenderCodes | null | undefined;
3200
4550
  telecom?: {
3201
4551
  value?: string | null | undefined;
3202
- system?: import("./contact").ContactSystemCodes | null | undefined;
3203
4552
  use?: import("./contact").ContactUseCodes | null | undefined;
3204
4553
  period?: {
3205
4554
  start?: string | null | undefined;
3206
4555
  end?: string | null | undefined;
3207
4556
  } | null | undefined;
4557
+ system?: import("./contact").ContactSystemCodes | null | undefined;
3208
4558
  }[] | null | undefined;
3209
4559
  active?: boolean | null | undefined;
3210
4560
  managingOrganization?: {
@@ -3218,36 +4568,36 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3218
4568
  address?: {
3219
4569
  postalCode: string;
3220
4570
  type?: import("./address").AddressTypeCodes | null | undefined;
4571
+ line?: string[] | null | undefined;
4572
+ city?: string | null | undefined;
4573
+ state?: string | null | undefined;
4574
+ country?: string | null | undefined;
3221
4575
  use?: import("./address").AddressUseCodes | null | undefined;
3222
4576
  period?: {
3223
4577
  start?: string | null | undefined;
3224
4578
  end?: string | null | undefined;
3225
4579
  } | null | undefined;
3226
- line?: string[] | null | undefined;
3227
- city?: string | null | undefined;
3228
- state?: string | null | undefined;
3229
- country?: string | null | undefined;
3230
4580
  } | null | undefined;
3231
4581
  id?: string | null | undefined;
3232
4582
  }[] | null | undefined;
3233
- } | null | undefined;
3234
- }, {
4583
+ };
3235
4584
  Links: {
3236
4585
  Self: string;
3237
- Link: string;
3238
4586
  Unlink: string;
4587
+ Link: string;
3239
4588
  };
3240
- Patient?: {
4589
+ }, {
4590
+ Patient: {
3241
4591
  identifier: {
3242
4592
  value: string;
3243
4593
  system: string;
3244
4594
  type?: unknown;
3245
4595
  use?: unknown;
3246
- assigner?: unknown;
3247
4596
  period?: {
3248
4597
  start?: unknown;
3249
4598
  end?: unknown;
3250
4599
  } | null | undefined;
4600
+ assigner?: unknown;
3251
4601
  }[];
3252
4602
  name: {
3253
4603
  family: string[];
@@ -3265,32 +4615,25 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3265
4615
  address: {
3266
4616
  postalCode: string;
3267
4617
  type?: unknown;
4618
+ line?: string[] | null | undefined;
4619
+ city?: string | null | undefined;
4620
+ state?: unknown;
4621
+ country?: unknown;
3268
4622
  use?: unknown;
3269
4623
  period?: {
3270
4624
  start?: unknown;
3271
4625
  end?: unknown;
3272
4626
  } | null | undefined;
3273
- line?: string[] | null | undefined;
3274
- city?: string | null | undefined;
3275
- state?: unknown;
3276
- country?: unknown;
3277
4627
  }[];
3278
- link?: {
3279
- Self: string;
3280
- PatientLink?: string | null | undefined;
3281
- ResetLink?: string | null | undefined;
3282
- Delete?: string | null | undefined;
3283
- ProbableLink?: string | null | undefined;
3284
- }[] | null | undefined;
3285
4628
  gender?: unknown;
3286
4629
  telecom?: {
3287
4630
  value?: string | null | undefined;
3288
- system?: unknown;
3289
4631
  use?: unknown;
3290
4632
  period?: {
3291
4633
  start?: unknown;
3292
4634
  end?: unknown;
3293
4635
  } | null | undefined;
4636
+ system?: unknown;
3294
4637
  }[] | null | undefined;
3295
4638
  active?: boolean | null | undefined;
3296
4639
  managingOrganization?: {
@@ -3304,19 +4647,24 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3304
4647
  address?: {
3305
4648
  postalCode: string;
3306
4649
  type?: unknown;
4650
+ line?: string[] | null | undefined;
4651
+ city?: string | null | undefined;
4652
+ state?: unknown;
4653
+ country?: unknown;
3307
4654
  use?: unknown;
3308
4655
  period?: {
3309
4656
  start?: unknown;
3310
4657
  end?: unknown;
3311
4658
  } | null | undefined;
3312
- line?: string[] | null | undefined;
3313
- city?: string | null | undefined;
3314
- state?: unknown;
3315
- country?: unknown;
3316
4659
  } | null | undefined;
3317
4660
  id?: string | null | undefined;
3318
4661
  }[] | null | undefined;
3319
- } | null | undefined;
4662
+ };
4663
+ Links: {
4664
+ Self: string;
4665
+ Unlink: string;
4666
+ Link: string;
4667
+ };
3320
4668
  }>, "many">;
3321
4669
  status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3322
4670
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3330,22 +4678,17 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3330
4678
  }>>>;
3331
4679
  }, "strip", z.ZodTypeAny, {
3332
4680
  Patients: {
3333
- Links: {
3334
- Self: string;
3335
- Link: string;
3336
- Unlink: string;
3337
- };
3338
- Patient?: {
4681
+ Patient: {
3339
4682
  identifier: {
3340
4683
  value: string;
3341
4684
  system: string;
3342
4685
  type?: "SS" | "DL" | "PPN" | "BRN" | "MR" | "MCN" | "EN" | "TAX" | "NIIP" | "PRN" | "MD" | "DR" | "ACSN" | "UDI" | "SNO" | "SB" | "PLAC" | "FILL" | "IAL2" | "IAL3" | null | undefined;
3343
- use?: "usual" | "official" | "temp" | "secondary" | "old" | null | undefined;
3344
- assigner?: string | null | undefined;
4686
+ use?: "temp" | "old" | "usual" | "official" | "secondary" | null | undefined;
3345
4687
  period?: {
3346
4688
  start?: string | null | undefined;
3347
4689
  end?: string | null | undefined;
3348
4690
  } | null | undefined;
4691
+ assigner?: string | null | undefined;
3349
4692
  }[];
3350
4693
  name: {
3351
4694
  family: string[];
@@ -3363,32 +4706,25 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3363
4706
  address: {
3364
4707
  postalCode: string;
3365
4708
  type?: import("./address").AddressTypeCodes | null | undefined;
4709
+ line?: string[] | null | undefined;
4710
+ city?: string | null | undefined;
4711
+ state?: string | null | undefined;
4712
+ country?: string | null | undefined;
3366
4713
  use?: import("./address").AddressUseCodes | null | undefined;
3367
4714
  period?: {
3368
4715
  start?: string | null | undefined;
3369
4716
  end?: string | null | undefined;
3370
4717
  } | null | undefined;
3371
- line?: string[] | null | undefined;
3372
- city?: string | null | undefined;
3373
- state?: string | null | undefined;
3374
- country?: string | null | undefined;
3375
4718
  }[];
3376
- link?: {
3377
- Self: string;
3378
- PatientLink?: string | null | undefined;
3379
- ResetLink?: string | null | undefined;
3380
- Delete?: string | null | undefined;
3381
- ProbableLink?: string | null | undefined;
3382
- }[] | null | undefined;
3383
- gender?: string | null | undefined;
4719
+ gender?: import("./demographics").GenderCodes | null | undefined;
3384
4720
  telecom?: {
3385
4721
  value?: string | null | undefined;
3386
- system?: import("./contact").ContactSystemCodes | null | undefined;
3387
4722
  use?: import("./contact").ContactUseCodes | null | undefined;
3388
4723
  period?: {
3389
4724
  start?: string | null | undefined;
3390
4725
  end?: string | null | undefined;
3391
4726
  } | null | undefined;
4727
+ system?: import("./contact").ContactSystemCodes | null | undefined;
3392
4728
  }[] | null | undefined;
3393
4729
  active?: boolean | null | undefined;
3394
4730
  managingOrganization?: {
@@ -3402,19 +4738,24 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3402
4738
  address?: {
3403
4739
  postalCode: string;
3404
4740
  type?: import("./address").AddressTypeCodes | null | undefined;
4741
+ line?: string[] | null | undefined;
4742
+ city?: string | null | undefined;
4743
+ state?: string | null | undefined;
4744
+ country?: string | null | undefined;
3405
4745
  use?: import("./address").AddressUseCodes | null | undefined;
3406
4746
  period?: {
3407
4747
  start?: string | null | undefined;
3408
4748
  end?: string | null | undefined;
3409
4749
  } | null | undefined;
3410
- line?: string[] | null | undefined;
3411
- city?: string | null | undefined;
3412
- state?: string | null | undefined;
3413
- country?: string | null | undefined;
3414
4750
  } | null | undefined;
3415
4751
  id?: string | null | undefined;
3416
4752
  }[] | null | undefined;
3417
- } | null | undefined;
4753
+ };
4754
+ Links: {
4755
+ Self: string;
4756
+ Unlink: string;
4757
+ Link: string;
4758
+ };
3418
4759
  }[];
3419
4760
  status?: {
3420
4761
  code?: number | null | undefined;
@@ -3422,22 +4763,17 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3422
4763
  } | null | undefined;
3423
4764
  }, {
3424
4765
  Patients: {
3425
- Links: {
3426
- Self: string;
3427
- Link: string;
3428
- Unlink: string;
3429
- };
3430
- Patient?: {
4766
+ Patient: {
3431
4767
  identifier: {
3432
4768
  value: string;
3433
4769
  system: string;
3434
4770
  type?: unknown;
3435
4771
  use?: unknown;
3436
- assigner?: unknown;
3437
4772
  period?: {
3438
4773
  start?: unknown;
3439
4774
  end?: unknown;
3440
4775
  } | null | undefined;
4776
+ assigner?: unknown;
3441
4777
  }[];
3442
4778
  name: {
3443
4779
  family: string[];
@@ -3455,32 +4791,25 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3455
4791
  address: {
3456
4792
  postalCode: string;
3457
4793
  type?: unknown;
4794
+ line?: string[] | null | undefined;
4795
+ city?: string | null | undefined;
4796
+ state?: unknown;
4797
+ country?: unknown;
3458
4798
  use?: unknown;
3459
4799
  period?: {
3460
4800
  start?: unknown;
3461
4801
  end?: unknown;
3462
4802
  } | null | undefined;
3463
- line?: string[] | null | undefined;
3464
- city?: string | null | undefined;
3465
- state?: unknown;
3466
- country?: unknown;
3467
4803
  }[];
3468
- link?: {
3469
- Self: string;
3470
- PatientLink?: string | null | undefined;
3471
- ResetLink?: string | null | undefined;
3472
- Delete?: string | null | undefined;
3473
- ProbableLink?: string | null | undefined;
3474
- }[] | null | undefined;
3475
4804
  gender?: unknown;
3476
4805
  telecom?: {
3477
4806
  value?: string | null | undefined;
3478
- system?: unknown;
3479
4807
  use?: unknown;
3480
4808
  period?: {
3481
4809
  start?: unknown;
3482
4810
  end?: unknown;
3483
4811
  } | null | undefined;
4812
+ system?: unknown;
3484
4813
  }[] | null | undefined;
3485
4814
  active?: boolean | null | undefined;
3486
4815
  managingOrganization?: {
@@ -3494,24 +4823,32 @@ export declare const patientProbableLinkRespSchema: z.ZodObject<{
3494
4823
  address?: {
3495
4824
  postalCode: string;
3496
4825
  type?: unknown;
4826
+ line?: string[] | null | undefined;
4827
+ city?: string | null | undefined;
4828
+ state?: unknown;
4829
+ country?: unknown;
3497
4830
  use?: unknown;
3498
4831
  period?: {
3499
4832
  start?: unknown;
3500
4833
  end?: unknown;
3501
4834
  } | null | undefined;
3502
- line?: string[] | null | undefined;
3503
- city?: string | null | undefined;
3504
- state?: unknown;
3505
- country?: unknown;
3506
4835
  } | null | undefined;
3507
4836
  id?: string | null | undefined;
3508
4837
  }[] | null | undefined;
3509
- } | null | undefined;
4838
+ };
4839
+ Links: {
4840
+ Self: string;
4841
+ Unlink: string;
4842
+ Link: string;
4843
+ };
3510
4844
  }[];
3511
4845
  status?: {
3512
4846
  code?: number | null | undefined;
3513
4847
  message?: string | null | undefined;
3514
4848
  } | null | undefined;
3515
4849
  }>;
3516
- export type PatientProbableLinkResp = z.infer<typeof patientProbableLinkRespSchema>;
4850
+ export type PatientProbableLinks = z.infer<typeof patientProbableLinksRespSchema>;
4851
+ export type CwLinkV2 = (PatientProbableLink | PatientExistingLink) & {
4852
+ version: 2;
4853
+ };
3517
4854
  //# sourceMappingURL=patient.d.ts.map