@metriport/commonwell-sdk 6.0.2-alpha.1 → 6.2.1-alpha.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 (41) hide show
  1. package/dist/client/commonwell-member-api.d.ts +1 -1
  2. package/dist/client/commonwell-member-api.d.ts.map +1 -1
  3. package/dist/client/commonwell-member.d.ts.map +1 -1
  4. package/dist/client/commonwell-member.js +51 -9
  5. package/dist/client/commonwell-member.js.map +1 -1
  6. package/dist/client/commonwell.d.ts.map +1 -1
  7. package/dist/client/commonwell.js +0 -1
  8. package/dist/client/commonwell.js.map +1 -1
  9. package/dist/client/document.d.ts +8 -0
  10. package/dist/client/document.d.ts.map +1 -0
  11. package/dist/client/document.js +60 -0
  12. package/dist/client/document.js.map +1 -0
  13. package/dist/models/__tests__/document.d.ts +29 -0
  14. package/dist/models/__tests__/document.d.ts.map +1 -0
  15. package/dist/models/__tests__/document.js +131 -0
  16. package/dist/models/__tests__/document.js.map +1 -0
  17. package/dist/models/enrollment-summary.d.ts +19 -0
  18. package/dist/models/enrollment-summary.d.ts.map +1 -0
  19. package/dist/models/enrollment-summary.js +15 -0
  20. package/dist/models/enrollment-summary.js.map +1 -0
  21. package/dist/models/iso-date.d.ts +4 -0
  22. package/dist/models/iso-date.d.ts.map +1 -0
  23. package/dist/models/iso-date.js +7 -0
  24. package/dist/models/iso-date.js.map +1 -0
  25. package/dist/models/iso-datetime.d.ts +4 -0
  26. package/dist/models/iso-datetime.d.ts.map +1 -0
  27. package/dist/models/iso-datetime.js +9 -0
  28. package/dist/models/iso-datetime.js.map +1 -0
  29. package/dist/models/link.d.ts +1219 -0
  30. package/dist/models/link.d.ts.map +1 -0
  31. package/dist/models/link.js +53 -0
  32. package/dist/models/link.js.map +1 -0
  33. package/dist/models/organization.d.ts +1571 -92
  34. package/dist/models/organization.d.ts.map +1 -1
  35. package/dist/models/organization.js +14 -12
  36. package/dist/models/organization.js.map +1 -1
  37. package/dist/models/person.d.ts +2443 -0
  38. package/dist/models/person.d.ts.map +1 -0
  39. package/dist/models/person.js +44 -0
  40. package/dist/models/person.js.map +1 -0
  41. package/package.json +3 -3
@@ -1,12 +1,11 @@
1
- import { TreatmentType } from "@metriport/shared";
2
1
  import { z } from "zod";
3
- export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ declare const organizationBaseSchema: z.ZodObject<{
4
3
  organizationId: z.ZodString;
5
4
  homeCommunityId: z.ZodString;
6
5
  name: z.ZodString;
7
6
  displayName: z.ZodString;
8
7
  memberName: z.ZodString;
9
- type: z.ZodEffects<z.ZodNativeEnum<typeof TreatmentType>, TreatmentType, unknown>;
8
+ type: z.ZodString;
10
9
  npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
10
  npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
11
  patientIdAssignAuthority: z.ZodString;
@@ -41,7 +40,7 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
41
40
  address1: z.ZodString;
42
41
  address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
42
  city: z.ZodString;
44
- state: z.ZodEffects<z.ZodString, string, unknown>;
43
+ state: z.ZodString;
45
44
  postalCode: z.ZodString;
46
45
  country: z.ZodString;
47
46
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -59,10 +58,179 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
59
58
  address2?: string | null | undefined;
60
59
  }, {
61
60
  city: string;
61
+ state: string;
62
+ country: string;
63
+ postalCode: string;
64
+ address1: string;
65
+ phone?: string | null | undefined;
66
+ fax?: string | null | undefined;
67
+ email?: string | null | undefined;
68
+ address2?: string | null | undefined;
69
+ }>, "many">;
70
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
71
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
72
+ technicalContacts: z.ZodArray<z.ZodObject<{
73
+ name: z.ZodString;
74
+ title: z.ZodString;
75
+ email: z.ZodString;
76
+ phone: z.ZodString;
77
+ }, "strip", z.ZodTypeAny, {
78
+ phone: string;
79
+ email: string;
80
+ name: string;
81
+ title: string;
82
+ }, {
83
+ phone: string;
84
+ email: string;
85
+ name: string;
86
+ title: string;
87
+ }>, "many">;
88
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ homeCommunityId: string;
91
+ type: string;
92
+ name: string;
93
+ organizationId: string;
94
+ displayName: string;
95
+ memberName: string;
96
+ patientIdAssignAuthority: string;
97
+ isActive: boolean;
98
+ locations: {
99
+ city: string;
100
+ state: string;
101
+ country: string;
102
+ postalCode: string;
103
+ address1: string;
104
+ phone?: string | null | undefined;
105
+ fax?: string | null | undefined;
106
+ email?: string | null | undefined;
107
+ address2?: string | null | undefined;
108
+ }[];
109
+ technicalContacts: {
110
+ phone: string;
111
+ email: string;
112
+ name: string;
113
+ title: string;
114
+ }[];
115
+ npiType1?: string | null | undefined;
116
+ npiType2?: string | null | undefined;
117
+ sendingFacility?: {
118
+ namespaceId?: string | null | undefined;
119
+ universalId?: string | null | undefined;
120
+ universalIdType?: string | null | undefined;
121
+ } | null | undefined;
122
+ sendingApplication?: {
123
+ namespaceId?: string | null | undefined;
124
+ universalId?: string | null | undefined;
125
+ universalIdType?: string | null | undefined;
126
+ } | null | undefined;
127
+ searchRadius?: number | null | undefined;
128
+ isLegacyBridgeEnabled?: boolean | null | undefined;
129
+ }, {
130
+ homeCommunityId: string;
131
+ type: string;
132
+ name: string;
133
+ organizationId: string;
134
+ displayName: string;
135
+ memberName: string;
136
+ patientIdAssignAuthority: string;
137
+ isActive: boolean;
138
+ locations: {
139
+ city: string;
140
+ state: string;
141
+ country: string;
142
+ postalCode: string;
143
+ address1: string;
144
+ phone?: string | null | undefined;
145
+ fax?: string | null | undefined;
146
+ email?: string | null | undefined;
147
+ address2?: string | null | undefined;
148
+ }[];
149
+ technicalContacts: {
150
+ phone: string;
151
+ email: string;
152
+ name: string;
153
+ title: string;
154
+ }[];
155
+ npiType1?: string | null | undefined;
156
+ npiType2?: string | null | undefined;
157
+ sendingFacility?: {
158
+ namespaceId?: string | null | undefined;
159
+ universalId?: string | null | undefined;
160
+ universalIdType?: string | null | undefined;
161
+ } | null | undefined;
162
+ sendingApplication?: {
163
+ namespaceId?: string | null | undefined;
164
+ universalId?: string | null | undefined;
165
+ universalIdType?: string | null | undefined;
166
+ } | null | undefined;
167
+ searchRadius?: number | null | undefined;
168
+ isLegacyBridgeEnabled?: boolean | null | undefined;
169
+ }>;
170
+ export type OrganizationBase = z.infer<typeof organizationBaseSchema>;
171
+ export declare const organizationSchemaWithNetworkInfo: z.ZodObject<z.objectUtil.extendShape<{
172
+ organizationId: z.ZodString;
173
+ homeCommunityId: z.ZodString;
174
+ name: z.ZodString;
175
+ displayName: z.ZodString;
176
+ memberName: z.ZodString;
177
+ type: z.ZodString;
178
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ patientIdAssignAuthority: z.ZodString;
181
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
182
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ }, "strip", z.ZodTypeAny, {
186
+ namespaceId?: string | null | undefined;
187
+ universalId?: string | null | undefined;
188
+ universalIdType?: string | null | undefined;
189
+ }, {
190
+ namespaceId?: string | null | undefined;
191
+ universalId?: string | null | undefined;
192
+ universalIdType?: string | null | undefined;
193
+ }>>>;
194
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
195
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ namespaceId?: string | null | undefined;
200
+ universalId?: string | null | undefined;
201
+ universalIdType?: string | null | undefined;
202
+ }, {
203
+ namespaceId?: string | null | undefined;
204
+ universalId?: string | null | undefined;
205
+ universalIdType?: string | null | undefined;
206
+ }>>>;
207
+ isActive: z.ZodBoolean;
208
+ locations: z.ZodArray<z.ZodObject<{
209
+ address1: z.ZodString;
210
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
+ city: z.ZodString;
212
+ state: z.ZodString;
213
+ postalCode: z.ZodString;
214
+ country: z.ZodString;
215
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ city: string;
220
+ state: string;
221
+ country: string;
222
+ postalCode: string;
223
+ address1: string;
224
+ phone?: string | null | undefined;
225
+ fax?: string | null | undefined;
226
+ email?: string | null | undefined;
227
+ address2?: string | null | undefined;
228
+ }, {
229
+ city: string;
230
+ state: string;
62
231
  country: string;
63
232
  postalCode: string;
64
233
  address1: string;
65
- state?: unknown;
66
234
  phone?: string | null | undefined;
67
235
  fax?: string | null | undefined;
68
236
  email?: string | null | undefined;
@@ -86,8 +254,9 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
86
254
  name: string;
87
255
  title: string;
88
256
  }>, "many">;
257
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
89
258
  }, {
90
- securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"JWT">, z.ZodLiteral<"BEARER">, z.ZodLiteral<"HOLDER-OF-KEY">]>>>;
259
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
260
  networks: z.ZodArray<z.ZodObject<{
92
261
  type: z.ZodString;
93
262
  purposeOfUse: z.ZodArray<z.ZodObject<{
@@ -172,7 +341,7 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
172
341
  }>>>;
173
342
  }>, "strip", z.ZodTypeAny, {
174
343
  homeCommunityId: string;
175
- type: TreatmentType;
344
+ type: string;
176
345
  name: string;
177
346
  organizationId: string;
178
347
  displayName: string;
@@ -221,7 +390,8 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
221
390
  universalIdType?: string | null | undefined;
222
391
  } | null | undefined;
223
392
  searchRadius?: number | null | undefined;
224
- securityTokenKeyType?: "JWT" | "BEARER" | "HOLDER-OF-KEY" | null | undefined;
393
+ isLegacyBridgeEnabled?: boolean | null | undefined;
394
+ securityTokenKeyType?: string | null | undefined;
225
395
  gateways?: {
226
396
  serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
227
397
  gatewayType: "FHIR" | "XCA";
@@ -238,6 +408,7 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
238
408
  } | null | undefined;
239
409
  }, {
240
410
  homeCommunityId: string;
411
+ type: string;
241
412
  name: string;
242
413
  organizationId: string;
243
414
  displayName: string;
@@ -246,10 +417,10 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
246
417
  isActive: boolean;
247
418
  locations: {
248
419
  city: string;
420
+ state: string;
249
421
  country: string;
250
422
  postalCode: string;
251
423
  address1: string;
252
- state?: unknown;
253
424
  phone?: string | null | undefined;
254
425
  fax?: string | null | undefined;
255
426
  email?: string | null | undefined;
@@ -259,62 +430,1258 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<{
259
430
  phone: string;
260
431
  email: string;
261
432
  name: string;
262
- title: string;
263
- }[];
264
- networks: {
265
- purposeOfUse: {
266
- id: string;
267
- queryInitiatorOnly: boolean;
268
- queryInitiator: boolean;
269
- queryResponder: boolean;
433
+ title: string;
434
+ }[];
435
+ networks: {
436
+ purposeOfUse: {
437
+ id: string;
438
+ queryInitiatorOnly: boolean;
439
+ queryInitiator: boolean;
440
+ queryResponder: boolean;
441
+ }[];
442
+ type: string;
443
+ includes?: string[] | null | undefined;
444
+ excludes?: string[] | null | undefined;
445
+ doa?: string[] | null | undefined;
446
+ }[];
447
+ npiType1?: string | null | undefined;
448
+ npiType2?: string | null | undefined;
449
+ sendingFacility?: {
450
+ namespaceId?: string | null | undefined;
451
+ universalId?: string | null | undefined;
452
+ universalIdType?: string | null | undefined;
453
+ } | null | undefined;
454
+ sendingApplication?: {
455
+ namespaceId?: string | null | undefined;
456
+ universalId?: string | null | undefined;
457
+ universalIdType?: string | null | undefined;
458
+ } | null | undefined;
459
+ searchRadius?: number | null | undefined;
460
+ isLegacyBridgeEnabled?: boolean | null | undefined;
461
+ securityTokenKeyType?: string | null | undefined;
462
+ gateways?: {
463
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
464
+ gatewayType: "FHIR" | "XCA";
465
+ isAsync?: boolean | null | undefined;
466
+ gatewayTimeout?: number | null | undefined;
467
+ endpointLocation?: string | null | undefined;
468
+ }[] | null | undefined;
469
+ authorizationInformation?: {
470
+ authorizationServerEndpoint?: string | null | undefined;
471
+ clientId?: string | null | undefined;
472
+ clientSecret?: string | null | undefined;
473
+ documentReferenceScope?: string | null | undefined;
474
+ binaryScope?: string | null | undefined;
475
+ } | null | undefined;
476
+ }>;
477
+ export type OrganizationWithNetworkInfo = z.infer<typeof organizationSchemaWithNetworkInfo>;
478
+ export declare const organizationSchemaWithoutNetworkInfo: z.ZodObject<Omit<z.objectUtil.extendShape<{
479
+ organizationId: z.ZodString;
480
+ homeCommunityId: z.ZodString;
481
+ name: z.ZodString;
482
+ displayName: z.ZodString;
483
+ memberName: z.ZodString;
484
+ type: z.ZodString;
485
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
+ patientIdAssignAuthority: z.ZodString;
488
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
489
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
491
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ namespaceId?: string | null | undefined;
494
+ universalId?: string | null | undefined;
495
+ universalIdType?: string | null | undefined;
496
+ }, {
497
+ namespaceId?: string | null | undefined;
498
+ universalId?: string | null | undefined;
499
+ universalIdType?: string | null | undefined;
500
+ }>>>;
501
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
502
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ namespaceId?: string | null | undefined;
507
+ universalId?: string | null | undefined;
508
+ universalIdType?: string | null | undefined;
509
+ }, {
510
+ namespaceId?: string | null | undefined;
511
+ universalId?: string | null | undefined;
512
+ universalIdType?: string | null | undefined;
513
+ }>>>;
514
+ isActive: z.ZodBoolean;
515
+ locations: z.ZodArray<z.ZodObject<{
516
+ address1: z.ZodString;
517
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ city: z.ZodString;
519
+ state: z.ZodString;
520
+ postalCode: z.ZodString;
521
+ country: z.ZodString;
522
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
523
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ city: string;
527
+ state: string;
528
+ country: string;
529
+ postalCode: string;
530
+ address1: string;
531
+ phone?: string | null | undefined;
532
+ fax?: string | null | undefined;
533
+ email?: string | null | undefined;
534
+ address2?: string | null | undefined;
535
+ }, {
536
+ city: string;
537
+ state: string;
538
+ country: string;
539
+ postalCode: string;
540
+ address1: string;
541
+ phone?: string | null | undefined;
542
+ fax?: string | null | undefined;
543
+ email?: string | null | undefined;
544
+ address2?: string | null | undefined;
545
+ }>, "many">;
546
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
547
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
548
+ technicalContacts: z.ZodArray<z.ZodObject<{
549
+ name: z.ZodString;
550
+ title: z.ZodString;
551
+ email: z.ZodString;
552
+ phone: z.ZodString;
553
+ }, "strip", z.ZodTypeAny, {
554
+ phone: string;
555
+ email: string;
556
+ name: string;
557
+ title: string;
558
+ }, {
559
+ phone: string;
560
+ email: string;
561
+ name: string;
562
+ title: string;
563
+ }>, "many">;
564
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
565
+ }, {
566
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ networks: z.ZodArray<z.ZodObject<{
568
+ type: z.ZodString;
569
+ purposeOfUse: z.ZodArray<z.ZodObject<{
570
+ id: z.ZodString;
571
+ queryInitiatorOnly: z.ZodBoolean;
572
+ queryInitiator: z.ZodBoolean;
573
+ queryResponder: z.ZodBoolean;
574
+ }, "strip", z.ZodTypeAny, {
575
+ id: string;
576
+ queryInitiatorOnly: boolean;
577
+ queryInitiator: boolean;
578
+ queryResponder: boolean;
579
+ }, {
580
+ id: string;
581
+ queryInitiatorOnly: boolean;
582
+ queryInitiator: boolean;
583
+ queryResponder: boolean;
584
+ }>, "many">;
585
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
586
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
587
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
588
+ }, "strip", z.ZodTypeAny, {
589
+ purposeOfUse: {
590
+ id: string;
591
+ queryInitiatorOnly: boolean;
592
+ queryInitiator: boolean;
593
+ queryResponder: boolean;
594
+ }[];
595
+ type: string;
596
+ includes?: string[] | null | undefined;
597
+ excludes?: string[] | null | undefined;
598
+ doa?: string[] | null | undefined;
599
+ }, {
600
+ purposeOfUse: {
601
+ id: string;
602
+ queryInitiatorOnly: boolean;
603
+ queryInitiator: boolean;
604
+ queryResponder: boolean;
605
+ }[];
606
+ type: string;
607
+ includes?: string[] | null | undefined;
608
+ excludes?: string[] | null | undefined;
609
+ doa?: string[] | null | undefined;
610
+ }>, "many">;
611
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
612
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
613
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
614
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
615
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
616
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
619
+ gatewayType: "FHIR" | "XCA";
620
+ isAsync?: boolean | null | undefined;
621
+ gatewayTimeout?: number | null | undefined;
622
+ endpointLocation?: string | null | undefined;
623
+ }, {
624
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
625
+ gatewayType: "FHIR" | "XCA";
626
+ isAsync?: boolean | null | undefined;
627
+ gatewayTimeout?: number | null | undefined;
628
+ endpointLocation?: string | null | undefined;
629
+ }>, "many">>>;
630
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
631
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ authorizationServerEndpoint?: string | null | undefined;
638
+ clientId?: string | null | undefined;
639
+ clientSecret?: string | null | undefined;
640
+ documentReferenceScope?: string | null | undefined;
641
+ binaryScope?: string | null | undefined;
642
+ }, {
643
+ authorizationServerEndpoint?: string | null | undefined;
644
+ clientId?: string | null | undefined;
645
+ clientSecret?: string | null | undefined;
646
+ documentReferenceScope?: string | null | undefined;
647
+ binaryScope?: string | null | undefined;
648
+ }>>>;
649
+ }>, "authorizationInformation">, "strip", z.ZodTypeAny, {
650
+ homeCommunityId: string;
651
+ type: string;
652
+ name: string;
653
+ organizationId: string;
654
+ displayName: string;
655
+ memberName: string;
656
+ patientIdAssignAuthority: string;
657
+ isActive: boolean;
658
+ locations: {
659
+ city: string;
660
+ state: string;
661
+ country: string;
662
+ postalCode: string;
663
+ address1: string;
664
+ phone?: string | null | undefined;
665
+ fax?: string | null | undefined;
666
+ email?: string | null | undefined;
667
+ address2?: string | null | undefined;
668
+ }[];
669
+ technicalContacts: {
670
+ phone: string;
671
+ email: string;
672
+ name: string;
673
+ title: string;
674
+ }[];
675
+ networks: {
676
+ purposeOfUse: {
677
+ id: string;
678
+ queryInitiatorOnly: boolean;
679
+ queryInitiator: boolean;
680
+ queryResponder: boolean;
681
+ }[];
682
+ type: string;
683
+ includes?: string[] | null | undefined;
684
+ excludes?: string[] | null | undefined;
685
+ doa?: string[] | null | undefined;
686
+ }[];
687
+ npiType1?: string | null | undefined;
688
+ npiType2?: string | null | undefined;
689
+ sendingFacility?: {
690
+ namespaceId?: string | null | undefined;
691
+ universalId?: string | null | undefined;
692
+ universalIdType?: string | null | undefined;
693
+ } | null | undefined;
694
+ sendingApplication?: {
695
+ namespaceId?: string | null | undefined;
696
+ universalId?: string | null | undefined;
697
+ universalIdType?: string | null | undefined;
698
+ } | null | undefined;
699
+ searchRadius?: number | null | undefined;
700
+ isLegacyBridgeEnabled?: boolean | null | undefined;
701
+ securityTokenKeyType?: string | null | undefined;
702
+ gateways?: {
703
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
704
+ gatewayType: "FHIR" | "XCA";
705
+ isAsync?: boolean | null | undefined;
706
+ gatewayTimeout?: number | null | undefined;
707
+ endpointLocation?: string | null | undefined;
708
+ }[] | null | undefined;
709
+ }, {
710
+ homeCommunityId: string;
711
+ type: string;
712
+ name: string;
713
+ organizationId: string;
714
+ displayName: string;
715
+ memberName: string;
716
+ patientIdAssignAuthority: string;
717
+ isActive: boolean;
718
+ locations: {
719
+ city: string;
720
+ state: string;
721
+ country: string;
722
+ postalCode: string;
723
+ address1: string;
724
+ phone?: string | null | undefined;
725
+ fax?: string | null | undefined;
726
+ email?: string | null | undefined;
727
+ address2?: string | null | undefined;
728
+ }[];
729
+ technicalContacts: {
730
+ phone: string;
731
+ email: string;
732
+ name: string;
733
+ title: string;
734
+ }[];
735
+ networks: {
736
+ purposeOfUse: {
737
+ id: string;
738
+ queryInitiatorOnly: boolean;
739
+ queryInitiator: boolean;
740
+ queryResponder: boolean;
741
+ }[];
742
+ type: string;
743
+ includes?: string[] | null | undefined;
744
+ excludes?: string[] | null | undefined;
745
+ doa?: string[] | null | undefined;
746
+ }[];
747
+ npiType1?: string | null | undefined;
748
+ npiType2?: string | null | undefined;
749
+ sendingFacility?: {
750
+ namespaceId?: string | null | undefined;
751
+ universalId?: string | null | undefined;
752
+ universalIdType?: string | null | undefined;
753
+ } | null | undefined;
754
+ sendingApplication?: {
755
+ namespaceId?: string | null | undefined;
756
+ universalId?: string | null | undefined;
757
+ universalIdType?: string | null | undefined;
758
+ } | null | undefined;
759
+ searchRadius?: number | null | undefined;
760
+ isLegacyBridgeEnabled?: boolean | null | undefined;
761
+ securityTokenKeyType?: string | null | undefined;
762
+ gateways?: {
763
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
764
+ gatewayType: "FHIR" | "XCA";
765
+ isAsync?: boolean | null | undefined;
766
+ gatewayTimeout?: number | null | undefined;
767
+ endpointLocation?: string | null | undefined;
768
+ }[] | null | undefined;
769
+ }>;
770
+ export type OrganizationWithoutNetworkInfo = z.infer<typeof organizationSchemaWithoutNetworkInfo>;
771
+ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
772
+ organizationId: z.ZodString;
773
+ homeCommunityId: z.ZodString;
774
+ name: z.ZodString;
775
+ displayName: z.ZodString;
776
+ memberName: z.ZodString;
777
+ type: z.ZodString;
778
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
+ patientIdAssignAuthority: z.ZodString;
781
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
782
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
783
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ namespaceId?: string | null | undefined;
787
+ universalId?: string | null | undefined;
788
+ universalIdType?: string | null | undefined;
789
+ }, {
790
+ namespaceId?: string | null | undefined;
791
+ universalId?: string | null | undefined;
792
+ universalIdType?: string | null | undefined;
793
+ }>>>;
794
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
795
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ namespaceId?: string | null | undefined;
800
+ universalId?: string | null | undefined;
801
+ universalIdType?: string | null | undefined;
802
+ }, {
803
+ namespaceId?: string | null | undefined;
804
+ universalId?: string | null | undefined;
805
+ universalIdType?: string | null | undefined;
806
+ }>>>;
807
+ isActive: z.ZodBoolean;
808
+ locations: z.ZodArray<z.ZodObject<{
809
+ address1: z.ZodString;
810
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
811
+ city: z.ZodString;
812
+ state: z.ZodString;
813
+ postalCode: z.ZodString;
814
+ country: z.ZodString;
815
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
816
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
817
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ city: string;
820
+ state: string;
821
+ country: string;
822
+ postalCode: string;
823
+ address1: string;
824
+ phone?: string | null | undefined;
825
+ fax?: string | null | undefined;
826
+ email?: string | null | undefined;
827
+ address2?: string | null | undefined;
828
+ }, {
829
+ city: string;
830
+ state: string;
831
+ country: string;
832
+ postalCode: string;
833
+ address1: string;
834
+ phone?: string | null | undefined;
835
+ fax?: string | null | undefined;
836
+ email?: string | null | undefined;
837
+ address2?: string | null | undefined;
838
+ }>, "many">;
839
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
840
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
841
+ technicalContacts: z.ZodArray<z.ZodObject<{
842
+ name: z.ZodString;
843
+ title: z.ZodString;
844
+ email: z.ZodString;
845
+ phone: z.ZodString;
846
+ }, "strip", z.ZodTypeAny, {
847
+ phone: string;
848
+ email: string;
849
+ name: string;
850
+ title: string;
851
+ }, {
852
+ phone: string;
853
+ email: string;
854
+ name: string;
855
+ title: string;
856
+ }>, "many">;
857
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
858
+ }, {
859
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
860
+ networks: z.ZodArray<z.ZodObject<{
861
+ type: z.ZodString;
862
+ purposeOfUse: z.ZodArray<z.ZodObject<{
863
+ id: z.ZodString;
864
+ queryInitiatorOnly: z.ZodBoolean;
865
+ queryInitiator: z.ZodBoolean;
866
+ queryResponder: z.ZodBoolean;
867
+ }, "strip", z.ZodTypeAny, {
868
+ id: string;
869
+ queryInitiatorOnly: boolean;
870
+ queryInitiator: boolean;
871
+ queryResponder: boolean;
872
+ }, {
873
+ id: string;
874
+ queryInitiatorOnly: boolean;
875
+ queryInitiator: boolean;
876
+ queryResponder: boolean;
877
+ }>, "many">;
878
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
879
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
880
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ purposeOfUse: {
883
+ id: string;
884
+ queryInitiatorOnly: boolean;
885
+ queryInitiator: boolean;
886
+ queryResponder: boolean;
887
+ }[];
888
+ type: string;
889
+ includes?: string[] | null | undefined;
890
+ excludes?: string[] | null | undefined;
891
+ doa?: string[] | null | undefined;
892
+ }, {
893
+ purposeOfUse: {
894
+ id: string;
895
+ queryInitiatorOnly: boolean;
896
+ queryInitiator: boolean;
897
+ queryResponder: boolean;
898
+ }[];
899
+ type: string;
900
+ includes?: string[] | null | undefined;
901
+ excludes?: string[] | null | undefined;
902
+ doa?: string[] | null | undefined;
903
+ }>, "many">;
904
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
905
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
906
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
907
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
908
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
909
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
+ }, "strip", z.ZodTypeAny, {
911
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
912
+ gatewayType: "FHIR" | "XCA";
913
+ isAsync?: boolean | null | undefined;
914
+ gatewayTimeout?: number | null | undefined;
915
+ endpointLocation?: string | null | undefined;
916
+ }, {
917
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
918
+ gatewayType: "FHIR" | "XCA";
919
+ isAsync?: boolean | null | undefined;
920
+ gatewayTimeout?: number | null | undefined;
921
+ endpointLocation?: string | null | undefined;
922
+ }>, "many">>>;
923
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
924
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
927
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
928
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ authorizationServerEndpoint?: string | null | undefined;
931
+ clientId?: string | null | undefined;
932
+ clientSecret?: string | null | undefined;
933
+ documentReferenceScope?: string | null | undefined;
934
+ binaryScope?: string | null | undefined;
935
+ }, {
936
+ authorizationServerEndpoint?: string | null | undefined;
937
+ clientId?: string | null | undefined;
938
+ clientSecret?: string | null | undefined;
939
+ documentReferenceScope?: string | null | undefined;
940
+ binaryScope?: string | null | undefined;
941
+ }>>>;
942
+ }>, "strip", z.ZodTypeAny, {
943
+ homeCommunityId: string;
944
+ type: string;
945
+ name: string;
946
+ organizationId: string;
947
+ displayName: string;
948
+ memberName: string;
949
+ patientIdAssignAuthority: string;
950
+ isActive: boolean;
951
+ locations: {
952
+ city: string;
953
+ state: string;
954
+ country: string;
955
+ postalCode: string;
956
+ address1: string;
957
+ phone?: string | null | undefined;
958
+ fax?: string | null | undefined;
959
+ email?: string | null | undefined;
960
+ address2?: string | null | undefined;
961
+ }[];
962
+ technicalContacts: {
963
+ phone: string;
964
+ email: string;
965
+ name: string;
966
+ title: string;
967
+ }[];
968
+ networks: {
969
+ purposeOfUse: {
970
+ id: string;
971
+ queryInitiatorOnly: boolean;
972
+ queryInitiator: boolean;
973
+ queryResponder: boolean;
974
+ }[];
975
+ type: string;
976
+ includes?: string[] | null | undefined;
977
+ excludes?: string[] | null | undefined;
978
+ doa?: string[] | null | undefined;
979
+ }[];
980
+ npiType1?: string | null | undefined;
981
+ npiType2?: string | null | undefined;
982
+ sendingFacility?: {
983
+ namespaceId?: string | null | undefined;
984
+ universalId?: string | null | undefined;
985
+ universalIdType?: string | null | undefined;
986
+ } | null | undefined;
987
+ sendingApplication?: {
988
+ namespaceId?: string | null | undefined;
989
+ universalId?: string | null | undefined;
990
+ universalIdType?: string | null | undefined;
991
+ } | null | undefined;
992
+ searchRadius?: number | null | undefined;
993
+ isLegacyBridgeEnabled?: boolean | null | undefined;
994
+ securityTokenKeyType?: string | null | undefined;
995
+ gateways?: {
996
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
997
+ gatewayType: "FHIR" | "XCA";
998
+ isAsync?: boolean | null | undefined;
999
+ gatewayTimeout?: number | null | undefined;
1000
+ endpointLocation?: string | null | undefined;
1001
+ }[] | null | undefined;
1002
+ authorizationInformation?: {
1003
+ authorizationServerEndpoint?: string | null | undefined;
1004
+ clientId?: string | null | undefined;
1005
+ clientSecret?: string | null | undefined;
1006
+ documentReferenceScope?: string | null | undefined;
1007
+ binaryScope?: string | null | undefined;
1008
+ } | null | undefined;
1009
+ }, {
1010
+ homeCommunityId: string;
1011
+ type: string;
1012
+ name: string;
1013
+ organizationId: string;
1014
+ displayName: string;
1015
+ memberName: string;
1016
+ patientIdAssignAuthority: string;
1017
+ isActive: boolean;
1018
+ locations: {
1019
+ city: string;
1020
+ state: string;
1021
+ country: string;
1022
+ postalCode: string;
1023
+ address1: string;
1024
+ phone?: string | null | undefined;
1025
+ fax?: string | null | undefined;
1026
+ email?: string | null | undefined;
1027
+ address2?: string | null | undefined;
1028
+ }[];
1029
+ technicalContacts: {
1030
+ phone: string;
1031
+ email: string;
1032
+ name: string;
1033
+ title: string;
1034
+ }[];
1035
+ networks: {
1036
+ purposeOfUse: {
1037
+ id: string;
1038
+ queryInitiatorOnly: boolean;
1039
+ queryInitiator: boolean;
1040
+ queryResponder: boolean;
1041
+ }[];
1042
+ type: string;
1043
+ includes?: string[] | null | undefined;
1044
+ excludes?: string[] | null | undefined;
1045
+ doa?: string[] | null | undefined;
1046
+ }[];
1047
+ npiType1?: string | null | undefined;
1048
+ npiType2?: string | null | undefined;
1049
+ sendingFacility?: {
1050
+ namespaceId?: string | null | undefined;
1051
+ universalId?: string | null | undefined;
1052
+ universalIdType?: string | null | undefined;
1053
+ } | null | undefined;
1054
+ sendingApplication?: {
1055
+ namespaceId?: string | null | undefined;
1056
+ universalId?: string | null | undefined;
1057
+ universalIdType?: string | null | undefined;
1058
+ } | null | undefined;
1059
+ searchRadius?: number | null | undefined;
1060
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1061
+ securityTokenKeyType?: string | null | undefined;
1062
+ gateways?: {
1063
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1064
+ gatewayType: "FHIR" | "XCA";
1065
+ isAsync?: boolean | null | undefined;
1066
+ gatewayTimeout?: number | null | undefined;
1067
+ endpointLocation?: string | null | undefined;
1068
+ }[] | null | undefined;
1069
+ authorizationInformation?: {
1070
+ authorizationServerEndpoint?: string | null | undefined;
1071
+ clientId?: string | null | undefined;
1072
+ clientSecret?: string | null | undefined;
1073
+ documentReferenceScope?: string | null | undefined;
1074
+ binaryScope?: string | null | undefined;
1075
+ } | null | undefined;
1076
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
1077
+ organizationId: z.ZodString;
1078
+ homeCommunityId: z.ZodString;
1079
+ name: z.ZodString;
1080
+ displayName: z.ZodString;
1081
+ memberName: z.ZodString;
1082
+ type: z.ZodString;
1083
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1084
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1085
+ patientIdAssignAuthority: z.ZodString;
1086
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1087
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1088
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1089
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1090
+ }, "strip", z.ZodTypeAny, {
1091
+ namespaceId?: string | null | undefined;
1092
+ universalId?: string | null | undefined;
1093
+ universalIdType?: string | null | undefined;
1094
+ }, {
1095
+ namespaceId?: string | null | undefined;
1096
+ universalId?: string | null | undefined;
1097
+ universalIdType?: string | null | undefined;
1098
+ }>>>;
1099
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1100
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1101
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1102
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ namespaceId?: string | null | undefined;
1105
+ universalId?: string | null | undefined;
1106
+ universalIdType?: string | null | undefined;
1107
+ }, {
1108
+ namespaceId?: string | null | undefined;
1109
+ universalId?: string | null | undefined;
1110
+ universalIdType?: string | null | undefined;
1111
+ }>>>;
1112
+ isActive: z.ZodBoolean;
1113
+ locations: z.ZodArray<z.ZodObject<{
1114
+ address1: z.ZodString;
1115
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1116
+ city: z.ZodString;
1117
+ state: z.ZodString;
1118
+ postalCode: z.ZodString;
1119
+ country: z.ZodString;
1120
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ city: string;
1125
+ state: string;
1126
+ country: string;
1127
+ postalCode: string;
1128
+ address1: string;
1129
+ phone?: string | null | undefined;
1130
+ fax?: string | null | undefined;
1131
+ email?: string | null | undefined;
1132
+ address2?: string | null | undefined;
1133
+ }, {
1134
+ city: string;
1135
+ state: string;
1136
+ country: string;
1137
+ postalCode: string;
1138
+ address1: string;
1139
+ phone?: string | null | undefined;
1140
+ fax?: string | null | undefined;
1141
+ email?: string | null | undefined;
1142
+ address2?: string | null | undefined;
1143
+ }>, "many">;
1144
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
1145
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1146
+ technicalContacts: z.ZodArray<z.ZodObject<{
1147
+ name: z.ZodString;
1148
+ title: z.ZodString;
1149
+ email: z.ZodString;
1150
+ phone: z.ZodString;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ phone: string;
1153
+ email: string;
1154
+ name: string;
1155
+ title: string;
1156
+ }, {
1157
+ phone: string;
1158
+ email: string;
1159
+ name: string;
1160
+ title: string;
1161
+ }>, "many">;
1162
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1163
+ }, {
1164
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1165
+ networks: z.ZodArray<z.ZodObject<{
1166
+ type: z.ZodString;
1167
+ purposeOfUse: z.ZodArray<z.ZodObject<{
1168
+ id: z.ZodString;
1169
+ queryInitiatorOnly: z.ZodBoolean;
1170
+ queryInitiator: z.ZodBoolean;
1171
+ queryResponder: z.ZodBoolean;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ id: string;
1174
+ queryInitiatorOnly: boolean;
1175
+ queryInitiator: boolean;
1176
+ queryResponder: boolean;
1177
+ }, {
1178
+ id: string;
1179
+ queryInitiatorOnly: boolean;
1180
+ queryInitiator: boolean;
1181
+ queryResponder: boolean;
1182
+ }>, "many">;
1183
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1184
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1185
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ purposeOfUse: {
1188
+ id: string;
1189
+ queryInitiatorOnly: boolean;
1190
+ queryInitiator: boolean;
1191
+ queryResponder: boolean;
1192
+ }[];
1193
+ type: string;
1194
+ includes?: string[] | null | undefined;
1195
+ excludes?: string[] | null | undefined;
1196
+ doa?: string[] | null | undefined;
1197
+ }, {
1198
+ purposeOfUse: {
1199
+ id: string;
1200
+ queryInitiatorOnly: boolean;
1201
+ queryInitiator: boolean;
1202
+ queryResponder: boolean;
1203
+ }[];
1204
+ type: string;
1205
+ includes?: string[] | null | undefined;
1206
+ excludes?: string[] | null | undefined;
1207
+ doa?: string[] | null | undefined;
1208
+ }>, "many">;
1209
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1210
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
1211
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
1212
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1213
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1214
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1217
+ gatewayType: "FHIR" | "XCA";
1218
+ isAsync?: boolean | null | undefined;
1219
+ gatewayTimeout?: number | null | undefined;
1220
+ endpointLocation?: string | null | undefined;
1221
+ }, {
1222
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1223
+ gatewayType: "FHIR" | "XCA";
1224
+ isAsync?: boolean | null | undefined;
1225
+ gatewayTimeout?: number | null | undefined;
1226
+ endpointLocation?: string | null | undefined;
1227
+ }>, "many">>>;
1228
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1229
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1232
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1233
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ authorizationServerEndpoint?: string | null | undefined;
1236
+ clientId?: string | null | undefined;
1237
+ clientSecret?: string | null | undefined;
1238
+ documentReferenceScope?: string | null | undefined;
1239
+ binaryScope?: string | null | undefined;
1240
+ }, {
1241
+ authorizationServerEndpoint?: string | null | undefined;
1242
+ clientId?: string | null | undefined;
1243
+ clientSecret?: string | null | undefined;
1244
+ documentReferenceScope?: string | null | undefined;
1245
+ binaryScope?: string | null | undefined;
1246
+ }>>>;
1247
+ }>, "authorizationInformation">, "strip", z.ZodTypeAny, {
1248
+ homeCommunityId: string;
1249
+ type: string;
1250
+ name: string;
1251
+ organizationId: string;
1252
+ displayName: string;
1253
+ memberName: string;
1254
+ patientIdAssignAuthority: string;
1255
+ isActive: boolean;
1256
+ locations: {
1257
+ city: string;
1258
+ state: string;
1259
+ country: string;
1260
+ postalCode: string;
1261
+ address1: string;
1262
+ phone?: string | null | undefined;
1263
+ fax?: string | null | undefined;
1264
+ email?: string | null | undefined;
1265
+ address2?: string | null | undefined;
1266
+ }[];
1267
+ technicalContacts: {
1268
+ phone: string;
1269
+ email: string;
1270
+ name: string;
1271
+ title: string;
1272
+ }[];
1273
+ networks: {
1274
+ purposeOfUse: {
1275
+ id: string;
1276
+ queryInitiatorOnly: boolean;
1277
+ queryInitiator: boolean;
1278
+ queryResponder: boolean;
1279
+ }[];
1280
+ type: string;
1281
+ includes?: string[] | null | undefined;
1282
+ excludes?: string[] | null | undefined;
1283
+ doa?: string[] | null | undefined;
1284
+ }[];
1285
+ npiType1?: string | null | undefined;
1286
+ npiType2?: string | null | undefined;
1287
+ sendingFacility?: {
1288
+ namespaceId?: string | null | undefined;
1289
+ universalId?: string | null | undefined;
1290
+ universalIdType?: string | null | undefined;
1291
+ } | null | undefined;
1292
+ sendingApplication?: {
1293
+ namespaceId?: string | null | undefined;
1294
+ universalId?: string | null | undefined;
1295
+ universalIdType?: string | null | undefined;
1296
+ } | null | undefined;
1297
+ searchRadius?: number | null | undefined;
1298
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1299
+ securityTokenKeyType?: string | null | undefined;
1300
+ gateways?: {
1301
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1302
+ gatewayType: "FHIR" | "XCA";
1303
+ isAsync?: boolean | null | undefined;
1304
+ gatewayTimeout?: number | null | undefined;
1305
+ endpointLocation?: string | null | undefined;
1306
+ }[] | null | undefined;
1307
+ }, {
1308
+ homeCommunityId: string;
1309
+ type: string;
1310
+ name: string;
1311
+ organizationId: string;
1312
+ displayName: string;
1313
+ memberName: string;
1314
+ patientIdAssignAuthority: string;
1315
+ isActive: boolean;
1316
+ locations: {
1317
+ city: string;
1318
+ state: string;
1319
+ country: string;
1320
+ postalCode: string;
1321
+ address1: string;
1322
+ phone?: string | null | undefined;
1323
+ fax?: string | null | undefined;
1324
+ email?: string | null | undefined;
1325
+ address2?: string | null | undefined;
1326
+ }[];
1327
+ technicalContacts: {
1328
+ phone: string;
1329
+ email: string;
1330
+ name: string;
1331
+ title: string;
1332
+ }[];
1333
+ networks: {
1334
+ purposeOfUse: {
1335
+ id: string;
1336
+ queryInitiatorOnly: boolean;
1337
+ queryInitiator: boolean;
1338
+ queryResponder: boolean;
1339
+ }[];
1340
+ type: string;
1341
+ includes?: string[] | null | undefined;
1342
+ excludes?: string[] | null | undefined;
1343
+ doa?: string[] | null | undefined;
1344
+ }[];
1345
+ npiType1?: string | null | undefined;
1346
+ npiType2?: string | null | undefined;
1347
+ sendingFacility?: {
1348
+ namespaceId?: string | null | undefined;
1349
+ universalId?: string | null | undefined;
1350
+ universalIdType?: string | null | undefined;
1351
+ } | null | undefined;
1352
+ sendingApplication?: {
1353
+ namespaceId?: string | null | undefined;
1354
+ universalId?: string | null | undefined;
1355
+ universalIdType?: string | null | undefined;
1356
+ } | null | undefined;
1357
+ searchRadius?: number | null | undefined;
1358
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1359
+ securityTokenKeyType?: string | null | undefined;
1360
+ gateways?: {
1361
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1362
+ gatewayType: "FHIR" | "XCA";
1363
+ isAsync?: boolean | null | undefined;
1364
+ gatewayTimeout?: number | null | undefined;
1365
+ endpointLocation?: string | null | undefined;
1366
+ }[] | null | undefined;
1367
+ }>]>;
1368
+ export type Organization = z.infer<typeof organizationSchema>;
1369
+ export declare const organizationListSchema: z.ZodObject<{
1370
+ count: z.ZodNumber;
1371
+ from: z.ZodNumber;
1372
+ to: z.ZodNumber;
1373
+ organizations: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1374
+ organizationId: z.ZodString;
1375
+ homeCommunityId: z.ZodString;
1376
+ name: z.ZodString;
1377
+ displayName: z.ZodString;
1378
+ memberName: z.ZodString;
1379
+ type: z.ZodString;
1380
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1381
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1382
+ patientIdAssignAuthority: z.ZodString;
1383
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1384
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1385
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1386
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ namespaceId?: string | null | undefined;
1389
+ universalId?: string | null | undefined;
1390
+ universalIdType?: string | null | undefined;
1391
+ }, {
1392
+ namespaceId?: string | null | undefined;
1393
+ universalId?: string | null | undefined;
1394
+ universalIdType?: string | null | undefined;
1395
+ }>>>;
1396
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1397
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1398
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1399
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ namespaceId?: string | null | undefined;
1402
+ universalId?: string | null | undefined;
1403
+ universalIdType?: string | null | undefined;
1404
+ }, {
1405
+ namespaceId?: string | null | undefined;
1406
+ universalId?: string | null | undefined;
1407
+ universalIdType?: string | null | undefined;
1408
+ }>>>;
1409
+ isActive: z.ZodBoolean;
1410
+ locations: z.ZodArray<z.ZodObject<{
1411
+ address1: z.ZodString;
1412
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1413
+ city: z.ZodString;
1414
+ state: z.ZodString;
1415
+ postalCode: z.ZodString;
1416
+ country: z.ZodString;
1417
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1418
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1419
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ city: string;
1422
+ state: string;
1423
+ country: string;
1424
+ postalCode: string;
1425
+ address1: string;
1426
+ phone?: string | null | undefined;
1427
+ fax?: string | null | undefined;
1428
+ email?: string | null | undefined;
1429
+ address2?: string | null | undefined;
1430
+ }, {
1431
+ city: string;
1432
+ state: string;
1433
+ country: string;
1434
+ postalCode: string;
1435
+ address1: string;
1436
+ phone?: string | null | undefined;
1437
+ fax?: string | null | undefined;
1438
+ email?: string | null | undefined;
1439
+ address2?: string | null | undefined;
1440
+ }>, "many">;
1441
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
1442
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1443
+ technicalContacts: z.ZodArray<z.ZodObject<{
1444
+ name: z.ZodString;
1445
+ title: z.ZodString;
1446
+ email: z.ZodString;
1447
+ phone: z.ZodString;
1448
+ }, "strip", z.ZodTypeAny, {
1449
+ phone: string;
1450
+ email: string;
1451
+ name: string;
1452
+ title: string;
1453
+ }, {
1454
+ phone: string;
1455
+ email: string;
1456
+ name: string;
1457
+ title: string;
1458
+ }>, "many">;
1459
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1460
+ }, {
1461
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1462
+ networks: z.ZodArray<z.ZodObject<{
1463
+ type: z.ZodString;
1464
+ purposeOfUse: z.ZodArray<z.ZodObject<{
1465
+ id: z.ZodString;
1466
+ queryInitiatorOnly: z.ZodBoolean;
1467
+ queryInitiator: z.ZodBoolean;
1468
+ queryResponder: z.ZodBoolean;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ id: string;
1471
+ queryInitiatorOnly: boolean;
1472
+ queryInitiator: boolean;
1473
+ queryResponder: boolean;
1474
+ }, {
1475
+ id: string;
1476
+ queryInitiatorOnly: boolean;
1477
+ queryInitiator: boolean;
1478
+ queryResponder: boolean;
1479
+ }>, "many">;
1480
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1481
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1482
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ purposeOfUse: {
1485
+ id: string;
1486
+ queryInitiatorOnly: boolean;
1487
+ queryInitiator: boolean;
1488
+ queryResponder: boolean;
1489
+ }[];
1490
+ type: string;
1491
+ includes?: string[] | null | undefined;
1492
+ excludes?: string[] | null | undefined;
1493
+ doa?: string[] | null | undefined;
1494
+ }, {
1495
+ purposeOfUse: {
1496
+ id: string;
1497
+ queryInitiatorOnly: boolean;
1498
+ queryInitiator: boolean;
1499
+ queryResponder: boolean;
1500
+ }[];
1501
+ type: string;
1502
+ includes?: string[] | null | undefined;
1503
+ excludes?: string[] | null | undefined;
1504
+ doa?: string[] | null | undefined;
1505
+ }>, "many">;
1506
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1507
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
1508
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
1509
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1510
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1511
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1512
+ }, "strip", z.ZodTypeAny, {
1513
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1514
+ gatewayType: "FHIR" | "XCA";
1515
+ isAsync?: boolean | null | undefined;
1516
+ gatewayTimeout?: number | null | undefined;
1517
+ endpointLocation?: string | null | undefined;
1518
+ }, {
1519
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1520
+ gatewayType: "FHIR" | "XCA";
1521
+ isAsync?: boolean | null | undefined;
1522
+ gatewayTimeout?: number | null | undefined;
1523
+ endpointLocation?: string | null | undefined;
1524
+ }>, "many">>>;
1525
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1526
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1527
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1528
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1529
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1530
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1531
+ }, "strip", z.ZodTypeAny, {
1532
+ authorizationServerEndpoint?: string | null | undefined;
1533
+ clientId?: string | null | undefined;
1534
+ clientSecret?: string | null | undefined;
1535
+ documentReferenceScope?: string | null | undefined;
1536
+ binaryScope?: string | null | undefined;
1537
+ }, {
1538
+ authorizationServerEndpoint?: string | null | undefined;
1539
+ clientId?: string | null | undefined;
1540
+ clientSecret?: string | null | undefined;
1541
+ documentReferenceScope?: string | null | undefined;
1542
+ binaryScope?: string | null | undefined;
1543
+ }>>>;
1544
+ }>, "strip", z.ZodTypeAny, {
1545
+ homeCommunityId: string;
1546
+ type: string;
1547
+ name: string;
1548
+ organizationId: string;
1549
+ displayName: string;
1550
+ memberName: string;
1551
+ patientIdAssignAuthority: string;
1552
+ isActive: boolean;
1553
+ locations: {
1554
+ city: string;
1555
+ state: string;
1556
+ country: string;
1557
+ postalCode: string;
1558
+ address1: string;
1559
+ phone?: string | null | undefined;
1560
+ fax?: string | null | undefined;
1561
+ email?: string | null | undefined;
1562
+ address2?: string | null | undefined;
1563
+ }[];
1564
+ technicalContacts: {
1565
+ phone: string;
1566
+ email: string;
1567
+ name: string;
1568
+ title: string;
1569
+ }[];
1570
+ networks: {
1571
+ purposeOfUse: {
1572
+ id: string;
1573
+ queryInitiatorOnly: boolean;
1574
+ queryInitiator: boolean;
1575
+ queryResponder: boolean;
1576
+ }[];
1577
+ type: string;
1578
+ includes?: string[] | null | undefined;
1579
+ excludes?: string[] | null | undefined;
1580
+ doa?: string[] | null | undefined;
1581
+ }[];
1582
+ npiType1?: string | null | undefined;
1583
+ npiType2?: string | null | undefined;
1584
+ sendingFacility?: {
1585
+ namespaceId?: string | null | undefined;
1586
+ universalId?: string | null | undefined;
1587
+ universalIdType?: string | null | undefined;
1588
+ } | null | undefined;
1589
+ sendingApplication?: {
1590
+ namespaceId?: string | null | undefined;
1591
+ universalId?: string | null | undefined;
1592
+ universalIdType?: string | null | undefined;
1593
+ } | null | undefined;
1594
+ searchRadius?: number | null | undefined;
1595
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1596
+ securityTokenKeyType?: string | null | undefined;
1597
+ gateways?: {
1598
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1599
+ gatewayType: "FHIR" | "XCA";
1600
+ isAsync?: boolean | null | undefined;
1601
+ gatewayTimeout?: number | null | undefined;
1602
+ endpointLocation?: string | null | undefined;
1603
+ }[] | null | undefined;
1604
+ authorizationInformation?: {
1605
+ authorizationServerEndpoint?: string | null | undefined;
1606
+ clientId?: string | null | undefined;
1607
+ clientSecret?: string | null | undefined;
1608
+ documentReferenceScope?: string | null | undefined;
1609
+ binaryScope?: string | null | undefined;
1610
+ } | null | undefined;
1611
+ }, {
1612
+ homeCommunityId: string;
1613
+ type: string;
1614
+ name: string;
1615
+ organizationId: string;
1616
+ displayName: string;
1617
+ memberName: string;
1618
+ patientIdAssignAuthority: string;
1619
+ isActive: boolean;
1620
+ locations: {
1621
+ city: string;
1622
+ state: string;
1623
+ country: string;
1624
+ postalCode: string;
1625
+ address1: string;
1626
+ phone?: string | null | undefined;
1627
+ fax?: string | null | undefined;
1628
+ email?: string | null | undefined;
1629
+ address2?: string | null | undefined;
270
1630
  }[];
271
- type: string;
272
- includes?: string[] | null | undefined;
273
- excludes?: string[] | null | undefined;
274
- doa?: string[] | null | undefined;
275
- }[];
276
- type?: unknown;
277
- npiType1?: string | null | undefined;
278
- npiType2?: string | null | undefined;
279
- sendingFacility?: {
280
- namespaceId?: string | null | undefined;
281
- universalId?: string | null | undefined;
282
- universalIdType?: string | null | undefined;
283
- } | null | undefined;
284
- sendingApplication?: {
285
- namespaceId?: string | null | undefined;
286
- universalId?: string | null | undefined;
287
- universalIdType?: string | null | undefined;
288
- } | null | undefined;
289
- searchRadius?: number | null | undefined;
290
- securityTokenKeyType?: "JWT" | "BEARER" | "HOLDER-OF-KEY" | null | undefined;
291
- gateways?: {
292
- serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
293
- gatewayType: "FHIR" | "XCA";
294
- isAsync?: boolean | null | undefined;
295
- gatewayTimeout?: number | null | undefined;
296
- endpointLocation?: string | null | undefined;
297
- }[] | null | undefined;
298
- authorizationInformation?: {
299
- authorizationServerEndpoint?: string | null | undefined;
300
- clientId?: string | null | undefined;
301
- clientSecret?: string | null | undefined;
302
- documentReferenceScope?: string | null | undefined;
303
- binaryScope?: string | null | undefined;
304
- } | null | undefined;
305
- }>;
306
- export type Organization = z.infer<typeof organizationSchema>;
307
- export declare const organizationListSchema: z.ZodObject<{
308
- count: z.ZodNumber;
309
- from: z.ZodNumber;
310
- to: z.ZodNumber;
311
- organizations: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1631
+ technicalContacts: {
1632
+ phone: string;
1633
+ email: string;
1634
+ name: string;
1635
+ title: string;
1636
+ }[];
1637
+ networks: {
1638
+ purposeOfUse: {
1639
+ id: string;
1640
+ queryInitiatorOnly: boolean;
1641
+ queryInitiator: boolean;
1642
+ queryResponder: boolean;
1643
+ }[];
1644
+ type: string;
1645
+ includes?: string[] | null | undefined;
1646
+ excludes?: string[] | null | undefined;
1647
+ doa?: string[] | null | undefined;
1648
+ }[];
1649
+ npiType1?: string | null | undefined;
1650
+ npiType2?: string | null | undefined;
1651
+ sendingFacility?: {
1652
+ namespaceId?: string | null | undefined;
1653
+ universalId?: string | null | undefined;
1654
+ universalIdType?: string | null | undefined;
1655
+ } | null | undefined;
1656
+ sendingApplication?: {
1657
+ namespaceId?: string | null | undefined;
1658
+ universalId?: string | null | undefined;
1659
+ universalIdType?: string | null | undefined;
1660
+ } | null | undefined;
1661
+ searchRadius?: number | null | undefined;
1662
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1663
+ securityTokenKeyType?: string | null | undefined;
1664
+ gateways?: {
1665
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1666
+ gatewayType: "FHIR" | "XCA";
1667
+ isAsync?: boolean | null | undefined;
1668
+ gatewayTimeout?: number | null | undefined;
1669
+ endpointLocation?: string | null | undefined;
1670
+ }[] | null | undefined;
1671
+ authorizationInformation?: {
1672
+ authorizationServerEndpoint?: string | null | undefined;
1673
+ clientId?: string | null | undefined;
1674
+ clientSecret?: string | null | undefined;
1675
+ documentReferenceScope?: string | null | undefined;
1676
+ binaryScope?: string | null | undefined;
1677
+ } | null | undefined;
1678
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
312
1679
  organizationId: z.ZodString;
313
1680
  homeCommunityId: z.ZodString;
314
1681
  name: z.ZodString;
315
1682
  displayName: z.ZodString;
316
1683
  memberName: z.ZodString;
317
- type: z.ZodEffects<z.ZodNativeEnum<typeof TreatmentType>, TreatmentType, unknown>;
1684
+ type: z.ZodString;
318
1685
  npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
1686
  npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
1687
  patientIdAssignAuthority: z.ZodString;
@@ -349,7 +1716,7 @@ export declare const organizationListSchema: z.ZodObject<{
349
1716
  address1: z.ZodString;
350
1717
  address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
1718
  city: z.ZodString;
352
- state: z.ZodEffects<z.ZodString, string, unknown>;
1719
+ state: z.ZodString;
353
1720
  postalCode: z.ZodString;
354
1721
  country: z.ZodString;
355
1722
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -367,10 +1734,10 @@ export declare const organizationListSchema: z.ZodObject<{
367
1734
  address2?: string | null | undefined;
368
1735
  }, {
369
1736
  city: string;
1737
+ state: string;
370
1738
  country: string;
371
1739
  postalCode: string;
372
1740
  address1: string;
373
- state?: unknown;
374
1741
  phone?: string | null | undefined;
375
1742
  fax?: string | null | undefined;
376
1743
  email?: string | null | undefined;
@@ -394,8 +1761,9 @@ export declare const organizationListSchema: z.ZodObject<{
394
1761
  name: string;
395
1762
  title: string;
396
1763
  }>, "many">;
1764
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
397
1765
  }, {
398
- securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"JWT">, z.ZodLiteral<"BEARER">, z.ZodLiteral<"HOLDER-OF-KEY">]>>>;
1766
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
1767
  networks: z.ZodArray<z.ZodObject<{
400
1768
  type: z.ZodString;
401
1769
  purposeOfUse: z.ZodArray<z.ZodObject<{
@@ -478,9 +1846,9 @@ export declare const organizationListSchema: z.ZodObject<{
478
1846
  documentReferenceScope?: string | null | undefined;
479
1847
  binaryScope?: string | null | undefined;
480
1848
  }>>>;
481
- }>, "strip", z.ZodTypeAny, {
1849
+ }>, "authorizationInformation">, "strip", z.ZodTypeAny, {
482
1850
  homeCommunityId: string;
483
- type: TreatmentType;
1851
+ type: string;
484
1852
  name: string;
485
1853
  organizationId: string;
486
1854
  displayName: string;
@@ -529,7 +1897,8 @@ export declare const organizationListSchema: z.ZodObject<{
529
1897
  universalIdType?: string | null | undefined;
530
1898
  } | null | undefined;
531
1899
  searchRadius?: number | null | undefined;
532
- securityTokenKeyType?: "JWT" | "BEARER" | "HOLDER-OF-KEY" | null | undefined;
1900
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1901
+ securityTokenKeyType?: string | null | undefined;
533
1902
  gateways?: {
534
1903
  serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
535
1904
  gatewayType: "FHIR" | "XCA";
@@ -537,15 +1906,9 @@ export declare const organizationListSchema: z.ZodObject<{
537
1906
  gatewayTimeout?: number | null | undefined;
538
1907
  endpointLocation?: string | null | undefined;
539
1908
  }[] | null | undefined;
540
- authorizationInformation?: {
541
- authorizationServerEndpoint?: string | null | undefined;
542
- clientId?: string | null | undefined;
543
- clientSecret?: string | null | undefined;
544
- documentReferenceScope?: string | null | undefined;
545
- binaryScope?: string | null | undefined;
546
- } | null | undefined;
547
1909
  }, {
548
1910
  homeCommunityId: string;
1911
+ type: string;
549
1912
  name: string;
550
1913
  organizationId: string;
551
1914
  displayName: string;
@@ -554,10 +1917,10 @@ export declare const organizationListSchema: z.ZodObject<{
554
1917
  isActive: boolean;
555
1918
  locations: {
556
1919
  city: string;
1920
+ state: string;
557
1921
  country: string;
558
1922
  postalCode: string;
559
1923
  address1: string;
560
- state?: unknown;
561
1924
  phone?: string | null | undefined;
562
1925
  fax?: string | null | undefined;
563
1926
  email?: string | null | undefined;
@@ -581,7 +1944,6 @@ export declare const organizationListSchema: z.ZodObject<{
581
1944
  excludes?: string[] | null | undefined;
582
1945
  doa?: string[] | null | undefined;
583
1946
  }[];
584
- type?: unknown;
585
1947
  npiType1?: string | null | undefined;
586
1948
  npiType2?: string | null | undefined;
587
1949
  sendingFacility?: {
@@ -595,7 +1957,8 @@ export declare const organizationListSchema: z.ZodObject<{
595
1957
  universalIdType?: string | null | undefined;
596
1958
  } | null | undefined;
597
1959
  searchRadius?: number | null | undefined;
598
- securityTokenKeyType?: "JWT" | "BEARER" | "HOLDER-OF-KEY" | null | undefined;
1960
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1961
+ securityTokenKeyType?: string | null | undefined;
599
1962
  gateways?: {
600
1963
  serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
601
1964
  gatewayType: "FHIR" | "XCA";
@@ -603,21 +1966,14 @@ export declare const organizationListSchema: z.ZodObject<{
603
1966
  gatewayTimeout?: number | null | undefined;
604
1967
  endpointLocation?: string | null | undefined;
605
1968
  }[] | null | undefined;
606
- authorizationInformation?: {
607
- authorizationServerEndpoint?: string | null | undefined;
608
- clientId?: string | null | undefined;
609
- clientSecret?: string | null | undefined;
610
- documentReferenceScope?: string | null | undefined;
611
- binaryScope?: string | null | undefined;
612
- } | null | undefined;
613
- }>, "many">;
1969
+ }>]>, "many">;
614
1970
  }, "strip", z.ZodTypeAny, {
615
1971
  count: number;
616
1972
  from: number;
617
1973
  to: number;
618
- organizations: {
1974
+ organizations: ({
619
1975
  homeCommunityId: string;
620
- type: TreatmentType;
1976
+ type: string;
621
1977
  name: string;
622
1978
  organizationId: string;
623
1979
  displayName: string;
@@ -666,7 +2022,8 @@ export declare const organizationListSchema: z.ZodObject<{
666
2022
  universalIdType?: string | null | undefined;
667
2023
  } | null | undefined;
668
2024
  searchRadius?: number | null | undefined;
669
- securityTokenKeyType?: "JWT" | "BEARER" | "HOLDER-OF-KEY" | null | undefined;
2025
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2026
+ securityTokenKeyType?: string | null | undefined;
670
2027
  gateways?: {
671
2028
  serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
672
2029
  gatewayType: "FHIR" | "XCA";
@@ -681,13 +2038,74 @@ export declare const organizationListSchema: z.ZodObject<{
681
2038
  documentReferenceScope?: string | null | undefined;
682
2039
  binaryScope?: string | null | undefined;
683
2040
  } | null | undefined;
684
- }[];
2041
+ } | {
2042
+ homeCommunityId: string;
2043
+ type: string;
2044
+ name: string;
2045
+ organizationId: string;
2046
+ displayName: string;
2047
+ memberName: string;
2048
+ patientIdAssignAuthority: string;
2049
+ isActive: boolean;
2050
+ locations: {
2051
+ city: string;
2052
+ state: string;
2053
+ country: string;
2054
+ postalCode: string;
2055
+ address1: string;
2056
+ phone?: string | null | undefined;
2057
+ fax?: string | null | undefined;
2058
+ email?: string | null | undefined;
2059
+ address2?: string | null | undefined;
2060
+ }[];
2061
+ technicalContacts: {
2062
+ phone: string;
2063
+ email: string;
2064
+ name: string;
2065
+ title: string;
2066
+ }[];
2067
+ networks: {
2068
+ purposeOfUse: {
2069
+ id: string;
2070
+ queryInitiatorOnly: boolean;
2071
+ queryInitiator: boolean;
2072
+ queryResponder: boolean;
2073
+ }[];
2074
+ type: string;
2075
+ includes?: string[] | null | undefined;
2076
+ excludes?: string[] | null | undefined;
2077
+ doa?: string[] | null | undefined;
2078
+ }[];
2079
+ npiType1?: string | null | undefined;
2080
+ npiType2?: string | null | undefined;
2081
+ sendingFacility?: {
2082
+ namespaceId?: string | null | undefined;
2083
+ universalId?: string | null | undefined;
2084
+ universalIdType?: string | null | undefined;
2085
+ } | null | undefined;
2086
+ sendingApplication?: {
2087
+ namespaceId?: string | null | undefined;
2088
+ universalId?: string | null | undefined;
2089
+ universalIdType?: string | null | undefined;
2090
+ } | null | undefined;
2091
+ searchRadius?: number | null | undefined;
2092
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2093
+ securityTokenKeyType?: string | null | undefined;
2094
+ gateways?: {
2095
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2096
+ gatewayType: "FHIR" | "XCA";
2097
+ isAsync?: boolean | null | undefined;
2098
+ gatewayTimeout?: number | null | undefined;
2099
+ endpointLocation?: string | null | undefined;
2100
+ }[] | null | undefined;
2101
+ })[];
685
2102
  }, {
686
2103
  count: number;
687
2104
  from: number;
688
2105
  to: number;
689
- organizations: {
2106
+ organizations: ({
690
2107
  homeCommunityId: string;
2108
+ type: string;
691
2109
  name: string;
692
2110
  organizationId: string;
693
2111
  displayName: string;
@@ -696,10 +2114,10 @@ export declare const organizationListSchema: z.ZodObject<{
696
2114
  isActive: boolean;
697
2115
  locations: {
698
2116
  city: string;
2117
+ state: string;
699
2118
  country: string;
700
2119
  postalCode: string;
701
2120
  address1: string;
702
- state?: unknown;
703
2121
  phone?: string | null | undefined;
704
2122
  fax?: string | null | undefined;
705
2123
  email?: string | null | undefined;
@@ -723,7 +2141,6 @@ export declare const organizationListSchema: z.ZodObject<{
723
2141
  excludes?: string[] | null | undefined;
724
2142
  doa?: string[] | null | undefined;
725
2143
  }[];
726
- type?: unknown;
727
2144
  npiType1?: string | null | undefined;
728
2145
  npiType2?: string | null | undefined;
729
2146
  sendingFacility?: {
@@ -737,7 +2154,8 @@ export declare const organizationListSchema: z.ZodObject<{
737
2154
  universalIdType?: string | null | undefined;
738
2155
  } | null | undefined;
739
2156
  searchRadius?: number | null | undefined;
740
- securityTokenKeyType?: "JWT" | "BEARER" | "HOLDER-OF-KEY" | null | undefined;
2157
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2158
+ securityTokenKeyType?: string | null | undefined;
741
2159
  gateways?: {
742
2160
  serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
743
2161
  gatewayType: "FHIR" | "XCA";
@@ -752,8 +2170,69 @@ export declare const organizationListSchema: z.ZodObject<{
752
2170
  documentReferenceScope?: string | null | undefined;
753
2171
  binaryScope?: string | null | undefined;
754
2172
  } | null | undefined;
755
- }[];
2173
+ } | {
2174
+ homeCommunityId: string;
2175
+ type: string;
2176
+ name: string;
2177
+ organizationId: string;
2178
+ displayName: string;
2179
+ memberName: string;
2180
+ patientIdAssignAuthority: string;
2181
+ isActive: boolean;
2182
+ locations: {
2183
+ city: string;
2184
+ state: string;
2185
+ country: string;
2186
+ postalCode: string;
2187
+ address1: string;
2188
+ phone?: string | null | undefined;
2189
+ fax?: string | null | undefined;
2190
+ email?: string | null | undefined;
2191
+ address2?: string | null | undefined;
2192
+ }[];
2193
+ technicalContacts: {
2194
+ phone: string;
2195
+ email: string;
2196
+ name: string;
2197
+ title: string;
2198
+ }[];
2199
+ networks: {
2200
+ purposeOfUse: {
2201
+ id: string;
2202
+ queryInitiatorOnly: boolean;
2203
+ queryInitiator: boolean;
2204
+ queryResponder: boolean;
2205
+ }[];
2206
+ type: string;
2207
+ includes?: string[] | null | undefined;
2208
+ excludes?: string[] | null | undefined;
2209
+ doa?: string[] | null | undefined;
2210
+ }[];
2211
+ npiType1?: string | null | undefined;
2212
+ npiType2?: string | null | undefined;
2213
+ sendingFacility?: {
2214
+ namespaceId?: string | null | undefined;
2215
+ universalId?: string | null | undefined;
2216
+ universalIdType?: string | null | undefined;
2217
+ } | null | undefined;
2218
+ sendingApplication?: {
2219
+ namespaceId?: string | null | undefined;
2220
+ universalId?: string | null | undefined;
2221
+ universalIdType?: string | null | undefined;
2222
+ } | null | undefined;
2223
+ searchRadius?: number | null | undefined;
2224
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2225
+ securityTokenKeyType?: string | null | undefined;
2226
+ gateways?: {
2227
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2228
+ gatewayType: "FHIR" | "XCA";
2229
+ isAsync?: boolean | null | undefined;
2230
+ gatewayTimeout?: number | null | undefined;
2231
+ endpointLocation?: string | null | undefined;
2232
+ }[] | null | undefined;
2233
+ })[];
756
2234
  }>;
757
2235
  export type OrganizationList = z.infer<typeof organizationListSchema>;
758
2236
  export declare function isOrgInitiatorAndResponder(org: Organization): boolean;
2237
+ export {};
759
2238
  //# sourceMappingURL=organization.d.ts.map