@metriport/commonwell-sdk 0.30.0-alpha.1

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 (135) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +64 -0
  3. package/dist/__tests__/env-setup.d.ts +2 -0
  4. package/dist/__tests__/env-setup.d.ts.map +1 -0
  5. package/dist/__tests__/env-setup.js +35 -0
  6. package/dist/__tests__/env-setup.js.map +1 -0
  7. package/dist/client/common.d.ts +39 -0
  8. package/dist/client/common.d.ts.map +1 -0
  9. package/dist/client/common.js +15 -0
  10. package/dist/client/common.js.map +1 -0
  11. package/dist/client/commonwell-api.d.ts +103 -0
  12. package/dist/client/commonwell-api.d.ts.map +1 -0
  13. package/dist/client/commonwell-api.js +3 -0
  14. package/dist/client/commonwell-api.js.map +1 -0
  15. package/dist/client/commonwell-base.d.ts +47 -0
  16. package/dist/client/commonwell-base.d.ts.map +1 -0
  17. package/dist/client/commonwell-base.js +105 -0
  18. package/dist/client/commonwell-base.js.map +1 -0
  19. package/dist/client/commonwell-member-api.d.ts +29 -0
  20. package/dist/client/commonwell-member-api.d.ts.map +1 -0
  21. package/dist/client/commonwell-member-api.js +3 -0
  22. package/dist/client/commonwell-member-api.js.map +1 -0
  23. package/dist/client/commonwell-member.d.ts +168 -0
  24. package/dist/client/commonwell-member.d.ts.map +1 -0
  25. package/dist/client/commonwell-member.js +349 -0
  26. package/dist/client/commonwell-member.js.map +1 -0
  27. package/dist/client/commonwell.d.ts +245 -0
  28. package/dist/client/commonwell.d.ts.map +1 -0
  29. package/dist/client/commonwell.js +502 -0
  30. package/dist/client/commonwell.js.map +1 -0
  31. package/dist/common/__tests__/util.test.d.ts +2 -0
  32. package/dist/common/__tests__/util.test.d.ts.map +1 -0
  33. package/dist/common/__tests__/util.test.js +51 -0
  34. package/dist/common/__tests__/util.test.js.map +1 -0
  35. package/dist/common/__tests__/validate-npi.test.d.ts +2 -0
  36. package/dist/common/__tests__/validate-npi.test.d.ts.map +1 -0
  37. package/dist/common/__tests__/validate-npi.test.js +44 -0
  38. package/dist/common/__tests__/validate-npi.test.js.map +1 -0
  39. package/dist/common/certificate.d.ts +3 -0
  40. package/dist/common/certificate.d.ts.map +1 -0
  41. package/dist/common/certificate.js +11 -0
  42. package/dist/common/certificate.js.map +1 -0
  43. package/dist/common/commonwell-error.d.ts +23 -0
  44. package/dist/common/commonwell-error.d.ts.map +1 -0
  45. package/dist/common/commonwell-error.js +33 -0
  46. package/dist/common/commonwell-error.js.map +1 -0
  47. package/dist/common/fileDownload.d.ts +37 -0
  48. package/dist/common/fileDownload.d.ts.map +1 -0
  49. package/dist/common/fileDownload.js +53 -0
  50. package/dist/common/fileDownload.js.map +1 -0
  51. package/dist/common/make-jwt.d.ts +60 -0
  52. package/dist/common/make-jwt.d.ts.map +1 -0
  53. package/dist/common/make-jwt.js +124 -0
  54. package/dist/common/make-jwt.js.map +1 -0
  55. package/dist/common/util.d.ts +78 -0
  56. package/dist/common/util.d.ts.map +1 -0
  57. package/dist/common/util.js +104 -0
  58. package/dist/common/util.js.map +1 -0
  59. package/dist/common/validate-npi.d.ts +2 -0
  60. package/dist/common/validate-npi.d.ts.map +1 -0
  61. package/dist/common/validate-npi.js +6 -0
  62. package/dist/common/validate-npi.js.map +1 -0
  63. package/dist/common/zod.d.ts +13 -0
  64. package/dist/common/zod.d.ts.map +1 -0
  65. package/dist/common/zod.js +38 -0
  66. package/dist/common/zod.js.map +1 -0
  67. package/dist/index.d.ts +20 -0
  68. package/dist/index.d.ts.map +1 -0
  69. package/dist/index.js +45 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/models/__tests__/address.test.d.ts +2 -0
  72. package/dist/models/__tests__/address.test.d.ts.map +1 -0
  73. package/dist/models/__tests__/address.test.js +348 -0
  74. package/dist/models/__tests__/address.test.js.map +1 -0
  75. package/dist/models/__tests__/demographics.test.d.ts +2 -0
  76. package/dist/models/__tests__/demographics.test.d.ts.map +1 -0
  77. package/dist/models/__tests__/demographics.test.js +96 -0
  78. package/dist/models/__tests__/demographics.test.js.map +1 -0
  79. package/dist/models/address.d.ts +177 -0
  80. package/dist/models/address.d.ts.map +1 -0
  81. package/dist/models/address.js +94 -0
  82. package/dist/models/address.js.map +1 -0
  83. package/dist/models/certificates.d.ts +77 -0
  84. package/dist/models/certificates.d.ts.map +1 -0
  85. package/dist/models/certificates.js +27 -0
  86. package/dist/models/certificates.js.map +1 -0
  87. package/dist/models/contact.d.ts +47 -0
  88. package/dist/models/contact.d.ts.map +1 -0
  89. package/dist/models/contact.js +30 -0
  90. package/dist/models/contact.js.map +1 -0
  91. package/dist/models/date.d.ts +4 -0
  92. package/dist/models/date.d.ts.map +1 -0
  93. package/dist/models/date.js +10 -0
  94. package/dist/models/date.js.map +1 -0
  95. package/dist/models/demographics.d.ts +290 -0
  96. package/dist/models/demographics.d.ts.map +1 -0
  97. package/dist/models/demographics.js +57 -0
  98. package/dist/models/demographics.js.map +1 -0
  99. package/dist/models/document.d.ts +7823 -0
  100. package/dist/models/document.d.ts.map +1 -0
  101. package/dist/models/document.js +106 -0
  102. package/dist/models/document.js.map +1 -0
  103. package/dist/models/facility.d.ts +82 -0
  104. package/dist/models/facility.d.ts.map +1 -0
  105. package/dist/models/facility.js +11 -0
  106. package/dist/models/facility.js.map +1 -0
  107. package/dist/models/human-name.d.ts +56 -0
  108. package/dist/models/human-name.d.ts.map +1 -0
  109. package/dist/models/human-name.js +39 -0
  110. package/dist/models/human-name.js.map +1 -0
  111. package/dist/models/identifier.d.ts +110 -0
  112. package/dist/models/identifier.d.ts.map +1 -0
  113. package/dist/models/identifier.js +37 -0
  114. package/dist/models/identifier.js.map +1 -0
  115. package/dist/models/organization.d.ts +2390 -0
  116. package/dist/models/organization.d.ts.map +1 -0
  117. package/dist/models/organization.js +139 -0
  118. package/dist/models/organization.js.map +1 -0
  119. package/dist/models/patient-organization.d.ts +36 -0
  120. package/dist/models/patient-organization.d.ts.map +1 -0
  121. package/dist/models/patient-organization.js +10 -0
  122. package/dist/models/patient-organization.js.map +1 -0
  123. package/dist/models/patient.d.ts +5350 -0
  124. package/dist/models/patient.d.ts.map +1 -0
  125. package/dist/models/patient.js +94 -0
  126. package/dist/models/patient.js.map +1 -0
  127. package/dist/models/period.d.ts +13 -0
  128. package/dist/models/period.d.ts.map +1 -0
  129. package/dist/models/period.js +13 -0
  130. package/dist/models/period.js.map +1 -0
  131. package/dist/models/reference.d.ts +109 -0
  132. package/dist/models/reference.d.ts.map +1 -0
  133. package/dist/models/reference.js +12 -0
  134. package/dist/models/reference.js.map +1 -0
  135. package/package.json +82 -0
@@ -0,0 +1,2390 @@
1
+ import { z } from "zod";
2
+ declare const organizationBaseSchema: z.ZodObject<{
3
+ organizationId: z.ZodString;
4
+ homeCommunityId: z.ZodString;
5
+ name: z.ZodString;
6
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ memberName: z.ZodString;
8
+ type: z.ZodString;
9
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ patientIdAssignAuthority: z.ZodString;
12
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ namespaceId?: string | null | undefined;
18
+ universalId?: string | null | undefined;
19
+ universalIdType?: string | null | undefined;
20
+ }, {
21
+ namespaceId?: string | null | undefined;
22
+ universalId?: string | null | undefined;
23
+ universalIdType?: string | null | undefined;
24
+ }>>>;
25
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ namespaceId?: string | null | undefined;
31
+ universalId?: string | null | undefined;
32
+ universalIdType?: string | null | undefined;
33
+ }, {
34
+ namespaceId?: string | null | undefined;
35
+ universalId?: string | null | undefined;
36
+ universalIdType?: string | null | undefined;
37
+ }>>>;
38
+ isActive: z.ZodBoolean;
39
+ locations: z.ZodEffects<z.ZodArray<z.ZodObject<{
40
+ address1: z.ZodString;
41
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ city: z.ZodString;
43
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
44
+ postalCode: z.ZodString;
45
+ country: z.ZodString;
46
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ city: string;
51
+ country: string;
52
+ postalCode: string;
53
+ address1: string;
54
+ state?: string | null | undefined;
55
+ address2?: string | null | undefined;
56
+ phone?: string | null | undefined;
57
+ fax?: string | null | undefined;
58
+ email?: string | null | undefined;
59
+ }, {
60
+ city: string;
61
+ country: string;
62
+ postalCode: string;
63
+ address1: string;
64
+ state?: unknown;
65
+ address2?: string | null | undefined;
66
+ phone?: string | null | undefined;
67
+ fax?: string | null | undefined;
68
+ email?: string | null | undefined;
69
+ }>, "many">, {
70
+ city: string;
71
+ country: string;
72
+ postalCode: string;
73
+ address1: string;
74
+ state?: string | null | undefined;
75
+ address2?: string | null | undefined;
76
+ phone?: string | null | undefined;
77
+ fax?: string | null | undefined;
78
+ email?: string | null | undefined;
79
+ }[], {
80
+ city: string;
81
+ country: string;
82
+ postalCode: string;
83
+ address1: string;
84
+ state?: unknown;
85
+ address2?: string | null | undefined;
86
+ phone?: string | null | undefined;
87
+ fax?: string | null | undefined;
88
+ email?: string | null | undefined;
89
+ }[]>;
90
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
91
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
92
+ technicalContacts: z.ZodArray<z.ZodObject<{
93
+ name: z.ZodString;
94
+ title: z.ZodString;
95
+ email: z.ZodString;
96
+ phone: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ name: string;
99
+ title: string;
100
+ phone: string;
101
+ email: string;
102
+ }, {
103
+ name: string;
104
+ title: string;
105
+ phone: string;
106
+ email: string;
107
+ }>, "many">;
108
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ homeCommunityId: string;
111
+ type: string;
112
+ name: string;
113
+ organizationId: string;
114
+ memberName: string;
115
+ patientIdAssignAuthority: string;
116
+ isActive: boolean;
117
+ locations: {
118
+ city: string;
119
+ country: string;
120
+ postalCode: string;
121
+ address1: string;
122
+ state?: string | null | undefined;
123
+ address2?: string | null | undefined;
124
+ phone?: string | null | undefined;
125
+ fax?: string | null | undefined;
126
+ email?: string | null | undefined;
127
+ }[];
128
+ technicalContacts: {
129
+ name: string;
130
+ title: string;
131
+ phone: string;
132
+ email: string;
133
+ }[];
134
+ displayName?: string | null | undefined;
135
+ npiType1?: string | null | undefined;
136
+ npiType2?: string | null | undefined;
137
+ sendingFacility?: {
138
+ namespaceId?: string | null | undefined;
139
+ universalId?: string | null | undefined;
140
+ universalIdType?: string | null | undefined;
141
+ } | null | undefined;
142
+ sendingApplication?: {
143
+ namespaceId?: string | null | undefined;
144
+ universalId?: string | null | undefined;
145
+ universalIdType?: string | null | undefined;
146
+ } | null | undefined;
147
+ searchRadius?: number | null | undefined;
148
+ isLegacyBridgeEnabled?: boolean | null | undefined;
149
+ }, {
150
+ homeCommunityId: string;
151
+ type: string;
152
+ name: string;
153
+ organizationId: string;
154
+ memberName: string;
155
+ patientIdAssignAuthority: string;
156
+ isActive: boolean;
157
+ locations: {
158
+ city: string;
159
+ country: string;
160
+ postalCode: string;
161
+ address1: string;
162
+ state?: unknown;
163
+ address2?: string | null | undefined;
164
+ phone?: string | null | undefined;
165
+ fax?: string | null | undefined;
166
+ email?: string | null | undefined;
167
+ }[];
168
+ technicalContacts: {
169
+ name: string;
170
+ title: string;
171
+ phone: string;
172
+ email: string;
173
+ }[];
174
+ displayName?: string | null | undefined;
175
+ npiType1?: string | null | undefined;
176
+ npiType2?: string | null | undefined;
177
+ sendingFacility?: {
178
+ namespaceId?: string | null | undefined;
179
+ universalId?: string | null | undefined;
180
+ universalIdType?: string | null | undefined;
181
+ } | null | undefined;
182
+ sendingApplication?: {
183
+ namespaceId?: string | null | undefined;
184
+ universalId?: string | null | undefined;
185
+ universalIdType?: string | null | undefined;
186
+ } | null | undefined;
187
+ searchRadius?: number | null | undefined;
188
+ isLegacyBridgeEnabled?: boolean | null | undefined;
189
+ }>;
190
+ export type OrganizationBase = z.infer<typeof organizationBaseSchema>;
191
+ export declare const organizationSchemaWithNetworkInfo: z.ZodObject<z.objectUtil.extendShape<{
192
+ organizationId: z.ZodString;
193
+ homeCommunityId: z.ZodString;
194
+ name: z.ZodString;
195
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ memberName: z.ZodString;
197
+ type: z.ZodString;
198
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
+ patientIdAssignAuthority: z.ZodString;
201
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
202
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ namespaceId?: string | null | undefined;
207
+ universalId?: string | null | undefined;
208
+ universalIdType?: string | null | undefined;
209
+ }, {
210
+ namespaceId?: string | null | undefined;
211
+ universalId?: string | null | undefined;
212
+ universalIdType?: string | null | undefined;
213
+ }>>>;
214
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
215
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ namespaceId?: string | null | undefined;
220
+ universalId?: string | null | undefined;
221
+ universalIdType?: string | null | undefined;
222
+ }, {
223
+ namespaceId?: string | null | undefined;
224
+ universalId?: string | null | undefined;
225
+ universalIdType?: string | null | undefined;
226
+ }>>>;
227
+ isActive: z.ZodBoolean;
228
+ locations: z.ZodEffects<z.ZodArray<z.ZodObject<{
229
+ address1: z.ZodString;
230
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ city: z.ZodString;
232
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
233
+ postalCode: z.ZodString;
234
+ country: z.ZodString;
235
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
237
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ city: string;
240
+ country: string;
241
+ postalCode: string;
242
+ address1: string;
243
+ state?: string | null | undefined;
244
+ address2?: string | null | undefined;
245
+ phone?: string | null | undefined;
246
+ fax?: string | null | undefined;
247
+ email?: string | null | undefined;
248
+ }, {
249
+ city: string;
250
+ country: string;
251
+ postalCode: string;
252
+ address1: string;
253
+ state?: unknown;
254
+ address2?: string | null | undefined;
255
+ phone?: string | null | undefined;
256
+ fax?: string | null | undefined;
257
+ email?: string | null | undefined;
258
+ }>, "many">, {
259
+ city: string;
260
+ country: string;
261
+ postalCode: string;
262
+ address1: string;
263
+ state?: string | null | undefined;
264
+ address2?: string | null | undefined;
265
+ phone?: string | null | undefined;
266
+ fax?: string | null | undefined;
267
+ email?: string | null | undefined;
268
+ }[], {
269
+ city: string;
270
+ country: string;
271
+ postalCode: string;
272
+ address1: string;
273
+ state?: unknown;
274
+ address2?: string | null | undefined;
275
+ phone?: string | null | undefined;
276
+ fax?: string | null | undefined;
277
+ email?: string | null | undefined;
278
+ }[]>;
279
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
280
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
281
+ technicalContacts: z.ZodArray<z.ZodObject<{
282
+ name: z.ZodString;
283
+ title: z.ZodString;
284
+ email: z.ZodString;
285
+ phone: z.ZodString;
286
+ }, "strip", z.ZodTypeAny, {
287
+ name: string;
288
+ title: string;
289
+ phone: string;
290
+ email: string;
291
+ }, {
292
+ name: string;
293
+ title: string;
294
+ phone: string;
295
+ email: string;
296
+ }>, "many">;
297
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
298
+ }, {
299
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
+ networks: z.ZodArray<z.ZodObject<{
301
+ type: z.ZodString;
302
+ purposeOfUse: z.ZodArray<z.ZodObject<{
303
+ id: z.ZodString;
304
+ queryInitiatorOnly: z.ZodBoolean;
305
+ queryInitiator: z.ZodBoolean;
306
+ queryResponder: z.ZodBoolean;
307
+ }, "strip", z.ZodTypeAny, {
308
+ id: string;
309
+ queryInitiatorOnly: boolean;
310
+ queryInitiator: boolean;
311
+ queryResponder: boolean;
312
+ }, {
313
+ id: string;
314
+ queryInitiatorOnly: boolean;
315
+ queryInitiator: boolean;
316
+ queryResponder: boolean;
317
+ }>, "many">;
318
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
319
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
320
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ purposeOfUse: {
323
+ id: string;
324
+ queryInitiatorOnly: boolean;
325
+ queryInitiator: boolean;
326
+ queryResponder: boolean;
327
+ }[];
328
+ type: string;
329
+ includes?: string[] | null | undefined;
330
+ excludes?: string[] | null | undefined;
331
+ doa?: string[] | null | undefined;
332
+ }, {
333
+ purposeOfUse: {
334
+ id: string;
335
+ queryInitiatorOnly: boolean;
336
+ queryInitiator: boolean;
337
+ queryResponder: boolean;
338
+ }[];
339
+ type: string;
340
+ includes?: string[] | null | undefined;
341
+ excludes?: string[] | null | undefined;
342
+ doa?: string[] | null | undefined;
343
+ }>, "many">;
344
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
345
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
346
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
347
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
348
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
349
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
352
+ gatewayType: "FHIR" | "XCA";
353
+ isAsync?: boolean | null | undefined;
354
+ gatewayTimeout?: number | null | undefined;
355
+ endpointLocation?: string | null | undefined;
356
+ }, {
357
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
358
+ gatewayType: "FHIR" | "XCA";
359
+ isAsync?: boolean | null | undefined;
360
+ gatewayTimeout?: number | null | undefined;
361
+ endpointLocation?: string | null | undefined;
362
+ }>, "many">>>;
363
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
364
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ authorizationServerEndpoint?: string | null | undefined;
371
+ clientId?: string | null | undefined;
372
+ clientSecret?: string | null | undefined;
373
+ documentReferenceScope?: string | null | undefined;
374
+ binaryScope?: string | null | undefined;
375
+ }, {
376
+ authorizationServerEndpoint?: string | null | undefined;
377
+ clientId?: string | null | undefined;
378
+ clientSecret?: string | null | undefined;
379
+ documentReferenceScope?: string | null | undefined;
380
+ binaryScope?: string | null | undefined;
381
+ }>>>;
382
+ }>, "strip", z.ZodTypeAny, {
383
+ homeCommunityId: string;
384
+ type: string;
385
+ name: string;
386
+ organizationId: string;
387
+ memberName: string;
388
+ patientIdAssignAuthority: string;
389
+ isActive: boolean;
390
+ locations: {
391
+ city: string;
392
+ country: string;
393
+ postalCode: string;
394
+ address1: string;
395
+ state?: string | null | undefined;
396
+ address2?: string | null | undefined;
397
+ phone?: string | null | undefined;
398
+ fax?: string | null | undefined;
399
+ email?: string | null | undefined;
400
+ }[];
401
+ technicalContacts: {
402
+ name: string;
403
+ title: string;
404
+ phone: string;
405
+ email: string;
406
+ }[];
407
+ networks: {
408
+ purposeOfUse: {
409
+ id: string;
410
+ queryInitiatorOnly: boolean;
411
+ queryInitiator: boolean;
412
+ queryResponder: boolean;
413
+ }[];
414
+ type: string;
415
+ includes?: string[] | null | undefined;
416
+ excludes?: string[] | null | undefined;
417
+ doa?: string[] | null | undefined;
418
+ }[];
419
+ displayName?: string | null | undefined;
420
+ npiType1?: string | null | undefined;
421
+ npiType2?: string | null | undefined;
422
+ sendingFacility?: {
423
+ namespaceId?: string | null | undefined;
424
+ universalId?: string | null | undefined;
425
+ universalIdType?: string | null | undefined;
426
+ } | null | undefined;
427
+ sendingApplication?: {
428
+ namespaceId?: string | null | undefined;
429
+ universalId?: string | null | undefined;
430
+ universalIdType?: string | null | undefined;
431
+ } | null | undefined;
432
+ searchRadius?: number | null | undefined;
433
+ isLegacyBridgeEnabled?: boolean | null | undefined;
434
+ securityTokenKeyType?: string | null | undefined;
435
+ gateways?: {
436
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
437
+ gatewayType: "FHIR" | "XCA";
438
+ isAsync?: boolean | null | undefined;
439
+ gatewayTimeout?: number | null | undefined;
440
+ endpointLocation?: string | null | undefined;
441
+ }[] | null | undefined;
442
+ authorizationInformation?: {
443
+ authorizationServerEndpoint?: string | null | undefined;
444
+ clientId?: string | null | undefined;
445
+ clientSecret?: string | null | undefined;
446
+ documentReferenceScope?: string | null | undefined;
447
+ binaryScope?: string | null | undefined;
448
+ } | null | undefined;
449
+ }, {
450
+ homeCommunityId: string;
451
+ type: string;
452
+ name: string;
453
+ organizationId: string;
454
+ memberName: string;
455
+ patientIdAssignAuthority: string;
456
+ isActive: boolean;
457
+ locations: {
458
+ city: string;
459
+ country: string;
460
+ postalCode: string;
461
+ address1: string;
462
+ state?: unknown;
463
+ address2?: string | null | undefined;
464
+ phone?: string | null | undefined;
465
+ fax?: string | null | undefined;
466
+ email?: string | null | undefined;
467
+ }[];
468
+ technicalContacts: {
469
+ name: string;
470
+ title: string;
471
+ phone: string;
472
+ email: string;
473
+ }[];
474
+ networks: {
475
+ purposeOfUse: {
476
+ id: string;
477
+ queryInitiatorOnly: boolean;
478
+ queryInitiator: boolean;
479
+ queryResponder: boolean;
480
+ }[];
481
+ type: string;
482
+ includes?: string[] | null | undefined;
483
+ excludes?: string[] | null | undefined;
484
+ doa?: string[] | null | undefined;
485
+ }[];
486
+ displayName?: string | null | undefined;
487
+ npiType1?: string | null | undefined;
488
+ npiType2?: string | null | undefined;
489
+ sendingFacility?: {
490
+ namespaceId?: string | null | undefined;
491
+ universalId?: string | null | undefined;
492
+ universalIdType?: string | null | undefined;
493
+ } | null | undefined;
494
+ sendingApplication?: {
495
+ namespaceId?: string | null | undefined;
496
+ universalId?: string | null | undefined;
497
+ universalIdType?: string | null | undefined;
498
+ } | null | undefined;
499
+ searchRadius?: number | null | undefined;
500
+ isLegacyBridgeEnabled?: boolean | null | undefined;
501
+ securityTokenKeyType?: string | null | undefined;
502
+ gateways?: {
503
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
504
+ gatewayType: "FHIR" | "XCA";
505
+ isAsync?: boolean | null | undefined;
506
+ gatewayTimeout?: number | null | undefined;
507
+ endpointLocation?: string | null | undefined;
508
+ }[] | null | undefined;
509
+ authorizationInformation?: {
510
+ authorizationServerEndpoint?: string | null | undefined;
511
+ clientId?: string | null | undefined;
512
+ clientSecret?: string | null | undefined;
513
+ documentReferenceScope?: string | null | undefined;
514
+ binaryScope?: string | null | undefined;
515
+ } | null | undefined;
516
+ }>;
517
+ export type OrganizationWithNetworkInfo = z.infer<typeof organizationSchemaWithNetworkInfo>;
518
+ export declare const organizationSchemaWithoutNetworkInfo: z.ZodObject<Omit<z.objectUtil.extendShape<{
519
+ organizationId: z.ZodString;
520
+ homeCommunityId: z.ZodString;
521
+ name: z.ZodString;
522
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
523
+ memberName: z.ZodString;
524
+ type: z.ZodString;
525
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
526
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
527
+ patientIdAssignAuthority: z.ZodString;
528
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
529
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
530
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
532
+ }, "strip", z.ZodTypeAny, {
533
+ namespaceId?: string | null | undefined;
534
+ universalId?: string | null | undefined;
535
+ universalIdType?: string | null | undefined;
536
+ }, {
537
+ namespaceId?: string | null | undefined;
538
+ universalId?: string | null | undefined;
539
+ universalIdType?: string | null | undefined;
540
+ }>>>;
541
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
542
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ namespaceId?: string | null | undefined;
547
+ universalId?: string | null | undefined;
548
+ universalIdType?: string | null | undefined;
549
+ }, {
550
+ namespaceId?: string | null | undefined;
551
+ universalId?: string | null | undefined;
552
+ universalIdType?: string | null | undefined;
553
+ }>>>;
554
+ isActive: z.ZodBoolean;
555
+ locations: z.ZodEffects<z.ZodArray<z.ZodObject<{
556
+ address1: z.ZodString;
557
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
+ city: z.ZodString;
559
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
560
+ postalCode: z.ZodString;
561
+ country: z.ZodString;
562
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
563
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ city: string;
567
+ country: string;
568
+ postalCode: string;
569
+ address1: string;
570
+ state?: string | null | undefined;
571
+ address2?: string | null | undefined;
572
+ phone?: string | null | undefined;
573
+ fax?: string | null | undefined;
574
+ email?: string | null | undefined;
575
+ }, {
576
+ city: string;
577
+ country: string;
578
+ postalCode: string;
579
+ address1: string;
580
+ state?: unknown;
581
+ address2?: string | null | undefined;
582
+ phone?: string | null | undefined;
583
+ fax?: string | null | undefined;
584
+ email?: string | null | undefined;
585
+ }>, "many">, {
586
+ city: string;
587
+ country: string;
588
+ postalCode: string;
589
+ address1: string;
590
+ state?: string | null | undefined;
591
+ address2?: string | null | undefined;
592
+ phone?: string | null | undefined;
593
+ fax?: string | null | undefined;
594
+ email?: string | null | undefined;
595
+ }[], {
596
+ city: string;
597
+ country: string;
598
+ postalCode: string;
599
+ address1: string;
600
+ state?: unknown;
601
+ address2?: string | null | undefined;
602
+ phone?: string | null | undefined;
603
+ fax?: string | null | undefined;
604
+ email?: string | null | undefined;
605
+ }[]>;
606
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
607
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
608
+ technicalContacts: z.ZodArray<z.ZodObject<{
609
+ name: z.ZodString;
610
+ title: z.ZodString;
611
+ email: z.ZodString;
612
+ phone: z.ZodString;
613
+ }, "strip", z.ZodTypeAny, {
614
+ name: string;
615
+ title: string;
616
+ phone: string;
617
+ email: string;
618
+ }, {
619
+ name: string;
620
+ title: string;
621
+ phone: string;
622
+ email: string;
623
+ }>, "many">;
624
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
625
+ }, {
626
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
+ networks: z.ZodArray<z.ZodObject<{
628
+ type: z.ZodString;
629
+ purposeOfUse: z.ZodArray<z.ZodObject<{
630
+ id: z.ZodString;
631
+ queryInitiatorOnly: z.ZodBoolean;
632
+ queryInitiator: z.ZodBoolean;
633
+ queryResponder: z.ZodBoolean;
634
+ }, "strip", z.ZodTypeAny, {
635
+ id: string;
636
+ queryInitiatorOnly: boolean;
637
+ queryInitiator: boolean;
638
+ queryResponder: boolean;
639
+ }, {
640
+ id: string;
641
+ queryInitiatorOnly: boolean;
642
+ queryInitiator: boolean;
643
+ queryResponder: boolean;
644
+ }>, "many">;
645
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
646
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
647
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ purposeOfUse: {
650
+ id: string;
651
+ queryInitiatorOnly: boolean;
652
+ queryInitiator: boolean;
653
+ queryResponder: boolean;
654
+ }[];
655
+ type: string;
656
+ includes?: string[] | null | undefined;
657
+ excludes?: string[] | null | undefined;
658
+ doa?: string[] | null | undefined;
659
+ }, {
660
+ purposeOfUse: {
661
+ id: string;
662
+ queryInitiatorOnly: boolean;
663
+ queryInitiator: boolean;
664
+ queryResponder: boolean;
665
+ }[];
666
+ type: string;
667
+ includes?: string[] | null | undefined;
668
+ excludes?: string[] | null | undefined;
669
+ doa?: string[] | null | undefined;
670
+ }>, "many">;
671
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
672
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
673
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
674
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
675
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
676
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
679
+ gatewayType: "FHIR" | "XCA";
680
+ isAsync?: boolean | null | undefined;
681
+ gatewayTimeout?: number | null | undefined;
682
+ endpointLocation?: string | null | undefined;
683
+ }, {
684
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
685
+ gatewayType: "FHIR" | "XCA";
686
+ isAsync?: boolean | null | undefined;
687
+ gatewayTimeout?: number | null | undefined;
688
+ endpointLocation?: string | null | undefined;
689
+ }>, "many">>>;
690
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
691
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
694
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
695
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ }, "strip", z.ZodTypeAny, {
697
+ authorizationServerEndpoint?: string | null | undefined;
698
+ clientId?: string | null | undefined;
699
+ clientSecret?: string | null | undefined;
700
+ documentReferenceScope?: string | null | undefined;
701
+ binaryScope?: string | null | undefined;
702
+ }, {
703
+ authorizationServerEndpoint?: string | null | undefined;
704
+ clientId?: string | null | undefined;
705
+ clientSecret?: string | null | undefined;
706
+ documentReferenceScope?: string | null | undefined;
707
+ binaryScope?: string | null | undefined;
708
+ }>>>;
709
+ }>, "authorizationInformation">, "strip", z.ZodTypeAny, {
710
+ homeCommunityId: string;
711
+ type: string;
712
+ name: string;
713
+ organizationId: string;
714
+ memberName: string;
715
+ patientIdAssignAuthority: string;
716
+ isActive: boolean;
717
+ locations: {
718
+ city: string;
719
+ country: string;
720
+ postalCode: string;
721
+ address1: string;
722
+ state?: string | null | undefined;
723
+ address2?: string | null | undefined;
724
+ phone?: string | null | undefined;
725
+ fax?: string | null | undefined;
726
+ email?: string | null | undefined;
727
+ }[];
728
+ technicalContacts: {
729
+ name: string;
730
+ title: string;
731
+ phone: string;
732
+ email: string;
733
+ }[];
734
+ networks: {
735
+ purposeOfUse: {
736
+ id: string;
737
+ queryInitiatorOnly: boolean;
738
+ queryInitiator: boolean;
739
+ queryResponder: boolean;
740
+ }[];
741
+ type: string;
742
+ includes?: string[] | null | undefined;
743
+ excludes?: string[] | null | undefined;
744
+ doa?: string[] | null | undefined;
745
+ }[];
746
+ displayName?: string | null | undefined;
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
+ homeCommunityId: string;
771
+ type: string;
772
+ name: string;
773
+ organizationId: string;
774
+ memberName: string;
775
+ patientIdAssignAuthority: string;
776
+ isActive: boolean;
777
+ locations: {
778
+ city: string;
779
+ country: string;
780
+ postalCode: string;
781
+ address1: string;
782
+ state?: unknown;
783
+ address2?: string | null | undefined;
784
+ phone?: string | null | undefined;
785
+ fax?: string | null | undefined;
786
+ email?: string | null | undefined;
787
+ }[];
788
+ technicalContacts: {
789
+ name: string;
790
+ title: string;
791
+ phone: string;
792
+ email: string;
793
+ }[];
794
+ networks: {
795
+ purposeOfUse: {
796
+ id: string;
797
+ queryInitiatorOnly: boolean;
798
+ queryInitiator: boolean;
799
+ queryResponder: boolean;
800
+ }[];
801
+ type: string;
802
+ includes?: string[] | null | undefined;
803
+ excludes?: string[] | null | undefined;
804
+ doa?: string[] | null | undefined;
805
+ }[];
806
+ displayName?: string | null | undefined;
807
+ npiType1?: string | null | undefined;
808
+ npiType2?: string | null | undefined;
809
+ sendingFacility?: {
810
+ namespaceId?: string | null | undefined;
811
+ universalId?: string | null | undefined;
812
+ universalIdType?: string | null | undefined;
813
+ } | null | undefined;
814
+ sendingApplication?: {
815
+ namespaceId?: string | null | undefined;
816
+ universalId?: string | null | undefined;
817
+ universalIdType?: string | null | undefined;
818
+ } | null | undefined;
819
+ searchRadius?: number | null | undefined;
820
+ isLegacyBridgeEnabled?: boolean | null | undefined;
821
+ securityTokenKeyType?: string | null | undefined;
822
+ gateways?: {
823
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
824
+ gatewayType: "FHIR" | "XCA";
825
+ isAsync?: boolean | null | undefined;
826
+ gatewayTimeout?: number | null | undefined;
827
+ endpointLocation?: string | null | undefined;
828
+ }[] | null | undefined;
829
+ }>;
830
+ export type OrganizationWithoutNetworkInfo = z.infer<typeof organizationSchemaWithoutNetworkInfo>;
831
+ export declare const organizationSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
832
+ organizationId: z.ZodString;
833
+ homeCommunityId: z.ZodString;
834
+ name: z.ZodString;
835
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
836
+ memberName: z.ZodString;
837
+ type: z.ZodString;
838
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
839
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
+ patientIdAssignAuthority: z.ZodString;
841
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
842
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
843
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
844
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
845
+ }, "strip", z.ZodTypeAny, {
846
+ namespaceId?: string | null | undefined;
847
+ universalId?: string | null | undefined;
848
+ universalIdType?: string | null | undefined;
849
+ }, {
850
+ namespaceId?: string | null | undefined;
851
+ universalId?: string | null | undefined;
852
+ universalIdType?: string | null | undefined;
853
+ }>>>;
854
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
855
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
856
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ namespaceId?: string | null | undefined;
860
+ universalId?: string | null | undefined;
861
+ universalIdType?: string | null | undefined;
862
+ }, {
863
+ namespaceId?: string | null | undefined;
864
+ universalId?: string | null | undefined;
865
+ universalIdType?: string | null | undefined;
866
+ }>>>;
867
+ isActive: z.ZodBoolean;
868
+ locations: z.ZodEffects<z.ZodArray<z.ZodObject<{
869
+ address1: z.ZodString;
870
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
871
+ city: z.ZodString;
872
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
873
+ postalCode: z.ZodString;
874
+ country: z.ZodString;
875
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
+ }, "strip", z.ZodTypeAny, {
879
+ city: string;
880
+ country: string;
881
+ postalCode: string;
882
+ address1: string;
883
+ state?: string | null | undefined;
884
+ address2?: string | null | undefined;
885
+ phone?: string | null | undefined;
886
+ fax?: string | null | undefined;
887
+ email?: string | null | undefined;
888
+ }, {
889
+ city: string;
890
+ country: string;
891
+ postalCode: string;
892
+ address1: string;
893
+ state?: unknown;
894
+ address2?: string | null | undefined;
895
+ phone?: string | null | undefined;
896
+ fax?: string | null | undefined;
897
+ email?: string | null | undefined;
898
+ }>, "many">, {
899
+ city: string;
900
+ country: string;
901
+ postalCode: string;
902
+ address1: string;
903
+ state?: string | null | undefined;
904
+ address2?: string | null | undefined;
905
+ phone?: string | null | undefined;
906
+ fax?: string | null | undefined;
907
+ email?: string | null | undefined;
908
+ }[], {
909
+ city: string;
910
+ country: string;
911
+ postalCode: string;
912
+ address1: string;
913
+ state?: unknown;
914
+ address2?: string | null | undefined;
915
+ phone?: string | null | undefined;
916
+ fax?: string | null | undefined;
917
+ email?: string | null | undefined;
918
+ }[]>;
919
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
920
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
921
+ technicalContacts: z.ZodArray<z.ZodObject<{
922
+ name: z.ZodString;
923
+ title: z.ZodString;
924
+ email: z.ZodString;
925
+ phone: z.ZodString;
926
+ }, "strip", z.ZodTypeAny, {
927
+ name: string;
928
+ title: string;
929
+ phone: string;
930
+ email: string;
931
+ }, {
932
+ name: string;
933
+ title: string;
934
+ phone: string;
935
+ email: string;
936
+ }>, "many">;
937
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
938
+ }, {
939
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
940
+ networks: z.ZodArray<z.ZodObject<{
941
+ type: z.ZodString;
942
+ purposeOfUse: z.ZodArray<z.ZodObject<{
943
+ id: z.ZodString;
944
+ queryInitiatorOnly: z.ZodBoolean;
945
+ queryInitiator: z.ZodBoolean;
946
+ queryResponder: z.ZodBoolean;
947
+ }, "strip", z.ZodTypeAny, {
948
+ id: string;
949
+ queryInitiatorOnly: boolean;
950
+ queryInitiator: boolean;
951
+ queryResponder: boolean;
952
+ }, {
953
+ id: string;
954
+ queryInitiatorOnly: boolean;
955
+ queryInitiator: boolean;
956
+ queryResponder: boolean;
957
+ }>, "many">;
958
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
959
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
960
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ purposeOfUse: {
963
+ id: string;
964
+ queryInitiatorOnly: boolean;
965
+ queryInitiator: boolean;
966
+ queryResponder: boolean;
967
+ }[];
968
+ type: string;
969
+ includes?: string[] | null | undefined;
970
+ excludes?: string[] | null | undefined;
971
+ doa?: string[] | null | undefined;
972
+ }, {
973
+ purposeOfUse: {
974
+ id: string;
975
+ queryInitiatorOnly: boolean;
976
+ queryInitiator: boolean;
977
+ queryResponder: boolean;
978
+ }[];
979
+ type: string;
980
+ includes?: string[] | null | undefined;
981
+ excludes?: string[] | null | undefined;
982
+ doa?: string[] | null | undefined;
983
+ }>, "many">;
984
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
985
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
986
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
987
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
988
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
989
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
992
+ gatewayType: "FHIR" | "XCA";
993
+ isAsync?: boolean | null | undefined;
994
+ gatewayTimeout?: number | null | undefined;
995
+ endpointLocation?: string | null | undefined;
996
+ }, {
997
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
998
+ gatewayType: "FHIR" | "XCA";
999
+ isAsync?: boolean | null | undefined;
1000
+ gatewayTimeout?: number | null | undefined;
1001
+ endpointLocation?: string | null | undefined;
1002
+ }>, "many">>>;
1003
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1004
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1005
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ authorizationServerEndpoint?: string | null | undefined;
1011
+ clientId?: string | null | undefined;
1012
+ clientSecret?: string | null | undefined;
1013
+ documentReferenceScope?: string | null | undefined;
1014
+ binaryScope?: string | null | undefined;
1015
+ }, {
1016
+ authorizationServerEndpoint?: string | null | undefined;
1017
+ clientId?: string | null | undefined;
1018
+ clientSecret?: string | null | undefined;
1019
+ documentReferenceScope?: string | null | undefined;
1020
+ binaryScope?: string | null | undefined;
1021
+ }>>>;
1022
+ }>, "strip", z.ZodTypeAny, {
1023
+ homeCommunityId: string;
1024
+ type: string;
1025
+ name: string;
1026
+ organizationId: string;
1027
+ memberName: string;
1028
+ patientIdAssignAuthority: string;
1029
+ isActive: boolean;
1030
+ locations: {
1031
+ city: string;
1032
+ country: string;
1033
+ postalCode: string;
1034
+ address1: string;
1035
+ state?: string | null | undefined;
1036
+ address2?: string | null | undefined;
1037
+ phone?: string | null | undefined;
1038
+ fax?: string | null | undefined;
1039
+ email?: string | null | undefined;
1040
+ }[];
1041
+ technicalContacts: {
1042
+ name: string;
1043
+ title: string;
1044
+ phone: string;
1045
+ email: string;
1046
+ }[];
1047
+ networks: {
1048
+ purposeOfUse: {
1049
+ id: string;
1050
+ queryInitiatorOnly: boolean;
1051
+ queryInitiator: boolean;
1052
+ queryResponder: boolean;
1053
+ }[];
1054
+ type: string;
1055
+ includes?: string[] | null | undefined;
1056
+ excludes?: string[] | null | undefined;
1057
+ doa?: string[] | null | undefined;
1058
+ }[];
1059
+ displayName?: string | null | undefined;
1060
+ npiType1?: string | null | undefined;
1061
+ npiType2?: string | null | undefined;
1062
+ sendingFacility?: {
1063
+ namespaceId?: string | null | undefined;
1064
+ universalId?: string | null | undefined;
1065
+ universalIdType?: string | null | undefined;
1066
+ } | null | undefined;
1067
+ sendingApplication?: {
1068
+ namespaceId?: string | null | undefined;
1069
+ universalId?: string | null | undefined;
1070
+ universalIdType?: string | null | undefined;
1071
+ } | null | undefined;
1072
+ searchRadius?: number | null | undefined;
1073
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1074
+ securityTokenKeyType?: string | null | undefined;
1075
+ gateways?: {
1076
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1077
+ gatewayType: "FHIR" | "XCA";
1078
+ isAsync?: boolean | null | undefined;
1079
+ gatewayTimeout?: number | null | undefined;
1080
+ endpointLocation?: string | null | undefined;
1081
+ }[] | null | undefined;
1082
+ authorizationInformation?: {
1083
+ authorizationServerEndpoint?: string | null | undefined;
1084
+ clientId?: string | null | undefined;
1085
+ clientSecret?: string | null | undefined;
1086
+ documentReferenceScope?: string | null | undefined;
1087
+ binaryScope?: string | null | undefined;
1088
+ } | null | undefined;
1089
+ }, {
1090
+ homeCommunityId: string;
1091
+ type: string;
1092
+ name: string;
1093
+ organizationId: string;
1094
+ memberName: string;
1095
+ patientIdAssignAuthority: string;
1096
+ isActive: boolean;
1097
+ locations: {
1098
+ city: string;
1099
+ country: string;
1100
+ postalCode: string;
1101
+ address1: string;
1102
+ state?: unknown;
1103
+ address2?: string | null | undefined;
1104
+ phone?: string | null | undefined;
1105
+ fax?: string | null | undefined;
1106
+ email?: string | null | undefined;
1107
+ }[];
1108
+ technicalContacts: {
1109
+ name: string;
1110
+ title: string;
1111
+ phone: string;
1112
+ email: string;
1113
+ }[];
1114
+ networks: {
1115
+ purposeOfUse: {
1116
+ id: string;
1117
+ queryInitiatorOnly: boolean;
1118
+ queryInitiator: boolean;
1119
+ queryResponder: boolean;
1120
+ }[];
1121
+ type: string;
1122
+ includes?: string[] | null | undefined;
1123
+ excludes?: string[] | null | undefined;
1124
+ doa?: string[] | null | undefined;
1125
+ }[];
1126
+ displayName?: string | null | undefined;
1127
+ npiType1?: string | null | undefined;
1128
+ npiType2?: string | null | undefined;
1129
+ sendingFacility?: {
1130
+ namespaceId?: string | null | undefined;
1131
+ universalId?: string | null | undefined;
1132
+ universalIdType?: string | null | undefined;
1133
+ } | null | undefined;
1134
+ sendingApplication?: {
1135
+ namespaceId?: string | null | undefined;
1136
+ universalId?: string | null | undefined;
1137
+ universalIdType?: string | null | undefined;
1138
+ } | null | undefined;
1139
+ searchRadius?: number | null | undefined;
1140
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1141
+ securityTokenKeyType?: string | null | undefined;
1142
+ gateways?: {
1143
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1144
+ gatewayType: "FHIR" | "XCA";
1145
+ isAsync?: boolean | null | undefined;
1146
+ gatewayTimeout?: number | null | undefined;
1147
+ endpointLocation?: string | null | undefined;
1148
+ }[] | null | undefined;
1149
+ authorizationInformation?: {
1150
+ authorizationServerEndpoint?: string | null | undefined;
1151
+ clientId?: string | null | undefined;
1152
+ clientSecret?: string | null | undefined;
1153
+ documentReferenceScope?: string | null | undefined;
1154
+ binaryScope?: string | null | undefined;
1155
+ } | null | undefined;
1156
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
1157
+ organizationId: z.ZodString;
1158
+ homeCommunityId: z.ZodString;
1159
+ name: z.ZodString;
1160
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1161
+ memberName: z.ZodString;
1162
+ type: z.ZodString;
1163
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1164
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1165
+ patientIdAssignAuthority: z.ZodString;
1166
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1167
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1168
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1169
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ namespaceId?: string | null | undefined;
1172
+ universalId?: string | null | undefined;
1173
+ universalIdType?: string | null | undefined;
1174
+ }, {
1175
+ namespaceId?: string | null | undefined;
1176
+ universalId?: string | null | undefined;
1177
+ universalIdType?: string | null | undefined;
1178
+ }>>>;
1179
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1180
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1181
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1182
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ namespaceId?: string | null | undefined;
1185
+ universalId?: string | null | undefined;
1186
+ universalIdType?: string | null | undefined;
1187
+ }, {
1188
+ namespaceId?: string | null | undefined;
1189
+ universalId?: string | null | undefined;
1190
+ universalIdType?: string | null | undefined;
1191
+ }>>>;
1192
+ isActive: z.ZodBoolean;
1193
+ locations: z.ZodEffects<z.ZodArray<z.ZodObject<{
1194
+ address1: z.ZodString;
1195
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1196
+ city: z.ZodString;
1197
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1198
+ postalCode: z.ZodString;
1199
+ country: z.ZodString;
1200
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1201
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1202
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ city: string;
1205
+ country: string;
1206
+ postalCode: string;
1207
+ address1: string;
1208
+ state?: string | null | undefined;
1209
+ address2?: string | null | undefined;
1210
+ phone?: string | null | undefined;
1211
+ fax?: string | null | undefined;
1212
+ email?: string | null | undefined;
1213
+ }, {
1214
+ city: string;
1215
+ country: string;
1216
+ postalCode: string;
1217
+ address1: string;
1218
+ state?: unknown;
1219
+ address2?: string | null | undefined;
1220
+ phone?: string | null | undefined;
1221
+ fax?: string | null | undefined;
1222
+ email?: string | null | undefined;
1223
+ }>, "many">, {
1224
+ city: string;
1225
+ country: string;
1226
+ postalCode: string;
1227
+ address1: string;
1228
+ state?: string | null | undefined;
1229
+ address2?: string | null | undefined;
1230
+ phone?: string | null | undefined;
1231
+ fax?: string | null | undefined;
1232
+ email?: string | null | undefined;
1233
+ }[], {
1234
+ city: string;
1235
+ country: string;
1236
+ postalCode: string;
1237
+ address1: string;
1238
+ state?: unknown;
1239
+ address2?: string | null | undefined;
1240
+ phone?: string | null | undefined;
1241
+ fax?: string | null | undefined;
1242
+ email?: string | null | undefined;
1243
+ }[]>;
1244
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
1245
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1246
+ technicalContacts: z.ZodArray<z.ZodObject<{
1247
+ name: z.ZodString;
1248
+ title: z.ZodString;
1249
+ email: z.ZodString;
1250
+ phone: z.ZodString;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ name: string;
1253
+ title: string;
1254
+ phone: string;
1255
+ email: string;
1256
+ }, {
1257
+ name: string;
1258
+ title: string;
1259
+ phone: string;
1260
+ email: string;
1261
+ }>, "many">;
1262
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1263
+ }, {
1264
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1265
+ networks: z.ZodArray<z.ZodObject<{
1266
+ type: z.ZodString;
1267
+ purposeOfUse: z.ZodArray<z.ZodObject<{
1268
+ id: z.ZodString;
1269
+ queryInitiatorOnly: z.ZodBoolean;
1270
+ queryInitiator: z.ZodBoolean;
1271
+ queryResponder: z.ZodBoolean;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ id: string;
1274
+ queryInitiatorOnly: boolean;
1275
+ queryInitiator: boolean;
1276
+ queryResponder: boolean;
1277
+ }, {
1278
+ id: string;
1279
+ queryInitiatorOnly: boolean;
1280
+ queryInitiator: boolean;
1281
+ queryResponder: boolean;
1282
+ }>, "many">;
1283
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1284
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1285
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ purposeOfUse: {
1288
+ id: string;
1289
+ queryInitiatorOnly: boolean;
1290
+ queryInitiator: boolean;
1291
+ queryResponder: boolean;
1292
+ }[];
1293
+ type: string;
1294
+ includes?: string[] | null | undefined;
1295
+ excludes?: string[] | null | undefined;
1296
+ doa?: string[] | null | undefined;
1297
+ }, {
1298
+ purposeOfUse: {
1299
+ id: string;
1300
+ queryInitiatorOnly: boolean;
1301
+ queryInitiator: boolean;
1302
+ queryResponder: boolean;
1303
+ }[];
1304
+ type: string;
1305
+ includes?: string[] | null | undefined;
1306
+ excludes?: string[] | null | undefined;
1307
+ doa?: string[] | null | undefined;
1308
+ }>, "many">;
1309
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1310
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
1311
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
1312
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1313
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1314
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1317
+ gatewayType: "FHIR" | "XCA";
1318
+ isAsync?: boolean | null | undefined;
1319
+ gatewayTimeout?: number | null | undefined;
1320
+ endpointLocation?: string | null | undefined;
1321
+ }, {
1322
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1323
+ gatewayType: "FHIR" | "XCA";
1324
+ isAsync?: boolean | null | undefined;
1325
+ gatewayTimeout?: number | null | undefined;
1326
+ endpointLocation?: string | null | undefined;
1327
+ }>, "many">>>;
1328
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1329
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1330
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1331
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1332
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1333
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ authorizationServerEndpoint?: string | null | undefined;
1336
+ clientId?: string | null | undefined;
1337
+ clientSecret?: string | null | undefined;
1338
+ documentReferenceScope?: string | null | undefined;
1339
+ binaryScope?: string | null | undefined;
1340
+ }, {
1341
+ authorizationServerEndpoint?: string | null | undefined;
1342
+ clientId?: string | null | undefined;
1343
+ clientSecret?: string | null | undefined;
1344
+ documentReferenceScope?: string | null | undefined;
1345
+ binaryScope?: string | null | undefined;
1346
+ }>>>;
1347
+ }>, "authorizationInformation">, "strip", z.ZodTypeAny, {
1348
+ homeCommunityId: string;
1349
+ type: string;
1350
+ name: string;
1351
+ organizationId: string;
1352
+ memberName: string;
1353
+ patientIdAssignAuthority: string;
1354
+ isActive: boolean;
1355
+ locations: {
1356
+ city: string;
1357
+ country: string;
1358
+ postalCode: string;
1359
+ address1: string;
1360
+ state?: string | null | undefined;
1361
+ address2?: string | null | undefined;
1362
+ phone?: string | null | undefined;
1363
+ fax?: string | null | undefined;
1364
+ email?: string | null | undefined;
1365
+ }[];
1366
+ technicalContacts: {
1367
+ name: string;
1368
+ title: string;
1369
+ phone: string;
1370
+ email: string;
1371
+ }[];
1372
+ networks: {
1373
+ purposeOfUse: {
1374
+ id: string;
1375
+ queryInitiatorOnly: boolean;
1376
+ queryInitiator: boolean;
1377
+ queryResponder: boolean;
1378
+ }[];
1379
+ type: string;
1380
+ includes?: string[] | null | undefined;
1381
+ excludes?: string[] | null | undefined;
1382
+ doa?: string[] | null | undefined;
1383
+ }[];
1384
+ displayName?: string | null | undefined;
1385
+ npiType1?: string | null | undefined;
1386
+ npiType2?: string | null | undefined;
1387
+ sendingFacility?: {
1388
+ namespaceId?: string | null | undefined;
1389
+ universalId?: string | null | undefined;
1390
+ universalIdType?: string | null | undefined;
1391
+ } | null | undefined;
1392
+ sendingApplication?: {
1393
+ namespaceId?: string | null | undefined;
1394
+ universalId?: string | null | undefined;
1395
+ universalIdType?: string | null | undefined;
1396
+ } | null | undefined;
1397
+ searchRadius?: number | null | undefined;
1398
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1399
+ securityTokenKeyType?: string | null | undefined;
1400
+ gateways?: {
1401
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1402
+ gatewayType: "FHIR" | "XCA";
1403
+ isAsync?: boolean | null | undefined;
1404
+ gatewayTimeout?: number | null | undefined;
1405
+ endpointLocation?: string | null | undefined;
1406
+ }[] | null | undefined;
1407
+ }, {
1408
+ homeCommunityId: string;
1409
+ type: string;
1410
+ name: string;
1411
+ organizationId: string;
1412
+ memberName: string;
1413
+ patientIdAssignAuthority: string;
1414
+ isActive: boolean;
1415
+ locations: {
1416
+ city: string;
1417
+ country: string;
1418
+ postalCode: string;
1419
+ address1: string;
1420
+ state?: unknown;
1421
+ address2?: string | null | undefined;
1422
+ phone?: string | null | undefined;
1423
+ fax?: string | null | undefined;
1424
+ email?: string | null | undefined;
1425
+ }[];
1426
+ technicalContacts: {
1427
+ name: string;
1428
+ title: string;
1429
+ phone: string;
1430
+ email: string;
1431
+ }[];
1432
+ networks: {
1433
+ purposeOfUse: {
1434
+ id: string;
1435
+ queryInitiatorOnly: boolean;
1436
+ queryInitiator: boolean;
1437
+ queryResponder: boolean;
1438
+ }[];
1439
+ type: string;
1440
+ includes?: string[] | null | undefined;
1441
+ excludes?: string[] | null | undefined;
1442
+ doa?: string[] | null | undefined;
1443
+ }[];
1444
+ displayName?: string | null | undefined;
1445
+ npiType1?: string | null | undefined;
1446
+ npiType2?: string | null | undefined;
1447
+ sendingFacility?: {
1448
+ namespaceId?: string | null | undefined;
1449
+ universalId?: string | null | undefined;
1450
+ universalIdType?: string | null | undefined;
1451
+ } | null | undefined;
1452
+ sendingApplication?: {
1453
+ namespaceId?: string | null | undefined;
1454
+ universalId?: string | null | undefined;
1455
+ universalIdType?: string | null | undefined;
1456
+ } | null | undefined;
1457
+ searchRadius?: number | null | undefined;
1458
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1459
+ securityTokenKeyType?: string | null | undefined;
1460
+ gateways?: {
1461
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1462
+ gatewayType: "FHIR" | "XCA";
1463
+ isAsync?: boolean | null | undefined;
1464
+ gatewayTimeout?: number | null | undefined;
1465
+ endpointLocation?: string | null | undefined;
1466
+ }[] | null | undefined;
1467
+ }>]>;
1468
+ export type Organization = z.infer<typeof organizationSchema>;
1469
+ export declare const organizationListSchema: z.ZodObject<{
1470
+ count: z.ZodNumber;
1471
+ from: z.ZodNumber;
1472
+ to: z.ZodNumber;
1473
+ organizations: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1474
+ organizationId: z.ZodString;
1475
+ homeCommunityId: z.ZodString;
1476
+ name: z.ZodString;
1477
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1478
+ memberName: z.ZodString;
1479
+ type: z.ZodString;
1480
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1481
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1482
+ patientIdAssignAuthority: z.ZodString;
1483
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1484
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1485
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1486
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ namespaceId?: string | null | undefined;
1489
+ universalId?: string | null | undefined;
1490
+ universalIdType?: string | null | undefined;
1491
+ }, {
1492
+ namespaceId?: string | null | undefined;
1493
+ universalId?: string | null | undefined;
1494
+ universalIdType?: string | null | undefined;
1495
+ }>>>;
1496
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1497
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1499
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
+ }, "strip", z.ZodTypeAny, {
1501
+ namespaceId?: string | null | undefined;
1502
+ universalId?: string | null | undefined;
1503
+ universalIdType?: string | null | undefined;
1504
+ }, {
1505
+ namespaceId?: string | null | undefined;
1506
+ universalId?: string | null | undefined;
1507
+ universalIdType?: string | null | undefined;
1508
+ }>>>;
1509
+ isActive: z.ZodBoolean;
1510
+ locations: z.ZodEffects<z.ZodArray<z.ZodObject<{
1511
+ address1: z.ZodString;
1512
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1513
+ city: z.ZodString;
1514
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1515
+ postalCode: z.ZodString;
1516
+ country: z.ZodString;
1517
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1518
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1519
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ city: string;
1522
+ country: string;
1523
+ postalCode: string;
1524
+ address1: string;
1525
+ state?: string | null | undefined;
1526
+ address2?: string | null | undefined;
1527
+ phone?: string | null | undefined;
1528
+ fax?: string | null | undefined;
1529
+ email?: string | null | undefined;
1530
+ }, {
1531
+ city: string;
1532
+ country: string;
1533
+ postalCode: string;
1534
+ address1: string;
1535
+ state?: unknown;
1536
+ address2?: string | null | undefined;
1537
+ phone?: string | null | undefined;
1538
+ fax?: string | null | undefined;
1539
+ email?: string | null | undefined;
1540
+ }>, "many">, {
1541
+ city: string;
1542
+ country: string;
1543
+ postalCode: string;
1544
+ address1: string;
1545
+ state?: string | null | undefined;
1546
+ address2?: string | null | undefined;
1547
+ phone?: string | null | undefined;
1548
+ fax?: string | null | undefined;
1549
+ email?: string | null | undefined;
1550
+ }[], {
1551
+ city: string;
1552
+ country: string;
1553
+ postalCode: string;
1554
+ address1: string;
1555
+ state?: unknown;
1556
+ address2?: string | null | undefined;
1557
+ phone?: string | null | undefined;
1558
+ fax?: string | null | undefined;
1559
+ email?: string | null | undefined;
1560
+ }[]>;
1561
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
1562
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1563
+ technicalContacts: z.ZodArray<z.ZodObject<{
1564
+ name: z.ZodString;
1565
+ title: z.ZodString;
1566
+ email: z.ZodString;
1567
+ phone: z.ZodString;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ name: string;
1570
+ title: string;
1571
+ phone: string;
1572
+ email: string;
1573
+ }, {
1574
+ name: string;
1575
+ title: string;
1576
+ phone: string;
1577
+ email: string;
1578
+ }>, "many">;
1579
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1580
+ }, {
1581
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1582
+ networks: z.ZodArray<z.ZodObject<{
1583
+ type: z.ZodString;
1584
+ purposeOfUse: z.ZodArray<z.ZodObject<{
1585
+ id: z.ZodString;
1586
+ queryInitiatorOnly: z.ZodBoolean;
1587
+ queryInitiator: z.ZodBoolean;
1588
+ queryResponder: z.ZodBoolean;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ id: string;
1591
+ queryInitiatorOnly: boolean;
1592
+ queryInitiator: boolean;
1593
+ queryResponder: boolean;
1594
+ }, {
1595
+ id: string;
1596
+ queryInitiatorOnly: boolean;
1597
+ queryInitiator: boolean;
1598
+ queryResponder: boolean;
1599
+ }>, "many">;
1600
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1601
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1602
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ purposeOfUse: {
1605
+ id: string;
1606
+ queryInitiatorOnly: boolean;
1607
+ queryInitiator: boolean;
1608
+ queryResponder: boolean;
1609
+ }[];
1610
+ type: string;
1611
+ includes?: string[] | null | undefined;
1612
+ excludes?: string[] | null | undefined;
1613
+ doa?: string[] | null | undefined;
1614
+ }, {
1615
+ purposeOfUse: {
1616
+ id: string;
1617
+ queryInitiatorOnly: boolean;
1618
+ queryInitiator: boolean;
1619
+ queryResponder: boolean;
1620
+ }[];
1621
+ type: string;
1622
+ includes?: string[] | null | undefined;
1623
+ excludes?: string[] | null | undefined;
1624
+ doa?: string[] | null | undefined;
1625
+ }>, "many">;
1626
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1627
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
1628
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
1629
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1630
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1631
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1632
+ }, "strip", z.ZodTypeAny, {
1633
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1634
+ gatewayType: "FHIR" | "XCA";
1635
+ isAsync?: boolean | null | undefined;
1636
+ gatewayTimeout?: number | null | undefined;
1637
+ endpointLocation?: string | null | undefined;
1638
+ }, {
1639
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1640
+ gatewayType: "FHIR" | "XCA";
1641
+ isAsync?: boolean | null | undefined;
1642
+ gatewayTimeout?: number | null | undefined;
1643
+ endpointLocation?: string | null | undefined;
1644
+ }>, "many">>>;
1645
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1646
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1647
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1648
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1649
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1650
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ authorizationServerEndpoint?: string | null | undefined;
1653
+ clientId?: string | null | undefined;
1654
+ clientSecret?: string | null | undefined;
1655
+ documentReferenceScope?: string | null | undefined;
1656
+ binaryScope?: string | null | undefined;
1657
+ }, {
1658
+ authorizationServerEndpoint?: string | null | undefined;
1659
+ clientId?: string | null | undefined;
1660
+ clientSecret?: string | null | undefined;
1661
+ documentReferenceScope?: string | null | undefined;
1662
+ binaryScope?: string | null | undefined;
1663
+ }>>>;
1664
+ }>, "strip", z.ZodTypeAny, {
1665
+ homeCommunityId: string;
1666
+ type: string;
1667
+ name: string;
1668
+ organizationId: string;
1669
+ memberName: string;
1670
+ patientIdAssignAuthority: string;
1671
+ isActive: boolean;
1672
+ locations: {
1673
+ city: string;
1674
+ country: string;
1675
+ postalCode: string;
1676
+ address1: string;
1677
+ state?: string | null | undefined;
1678
+ address2?: string | null | undefined;
1679
+ phone?: string | null | undefined;
1680
+ fax?: string | null | undefined;
1681
+ email?: string | null | undefined;
1682
+ }[];
1683
+ technicalContacts: {
1684
+ name: string;
1685
+ title: string;
1686
+ phone: string;
1687
+ email: string;
1688
+ }[];
1689
+ networks: {
1690
+ purposeOfUse: {
1691
+ id: string;
1692
+ queryInitiatorOnly: boolean;
1693
+ queryInitiator: boolean;
1694
+ queryResponder: boolean;
1695
+ }[];
1696
+ type: string;
1697
+ includes?: string[] | null | undefined;
1698
+ excludes?: string[] | null | undefined;
1699
+ doa?: string[] | null | undefined;
1700
+ }[];
1701
+ displayName?: string | null | undefined;
1702
+ npiType1?: string | null | undefined;
1703
+ npiType2?: string | null | undefined;
1704
+ sendingFacility?: {
1705
+ namespaceId?: string | null | undefined;
1706
+ universalId?: string | null | undefined;
1707
+ universalIdType?: string | null | undefined;
1708
+ } | null | undefined;
1709
+ sendingApplication?: {
1710
+ namespaceId?: string | null | undefined;
1711
+ universalId?: string | null | undefined;
1712
+ universalIdType?: string | null | undefined;
1713
+ } | null | undefined;
1714
+ searchRadius?: number | null | undefined;
1715
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1716
+ securityTokenKeyType?: string | null | undefined;
1717
+ gateways?: {
1718
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1719
+ gatewayType: "FHIR" | "XCA";
1720
+ isAsync?: boolean | null | undefined;
1721
+ gatewayTimeout?: number | null | undefined;
1722
+ endpointLocation?: string | null | undefined;
1723
+ }[] | null | undefined;
1724
+ authorizationInformation?: {
1725
+ authorizationServerEndpoint?: string | null | undefined;
1726
+ clientId?: string | null | undefined;
1727
+ clientSecret?: string | null | undefined;
1728
+ documentReferenceScope?: string | null | undefined;
1729
+ binaryScope?: string | null | undefined;
1730
+ } | null | undefined;
1731
+ }, {
1732
+ homeCommunityId: string;
1733
+ type: string;
1734
+ name: string;
1735
+ organizationId: string;
1736
+ memberName: string;
1737
+ patientIdAssignAuthority: string;
1738
+ isActive: boolean;
1739
+ locations: {
1740
+ city: string;
1741
+ country: string;
1742
+ postalCode: string;
1743
+ address1: string;
1744
+ state?: unknown;
1745
+ address2?: string | null | undefined;
1746
+ phone?: string | null | undefined;
1747
+ fax?: string | null | undefined;
1748
+ email?: string | null | undefined;
1749
+ }[];
1750
+ technicalContacts: {
1751
+ name: string;
1752
+ title: string;
1753
+ phone: string;
1754
+ email: string;
1755
+ }[];
1756
+ networks: {
1757
+ purposeOfUse: {
1758
+ id: string;
1759
+ queryInitiatorOnly: boolean;
1760
+ queryInitiator: boolean;
1761
+ queryResponder: boolean;
1762
+ }[];
1763
+ type: string;
1764
+ includes?: string[] | null | undefined;
1765
+ excludes?: string[] | null | undefined;
1766
+ doa?: string[] | null | undefined;
1767
+ }[];
1768
+ displayName?: string | null | undefined;
1769
+ npiType1?: string | null | undefined;
1770
+ npiType2?: string | null | undefined;
1771
+ sendingFacility?: {
1772
+ namespaceId?: string | null | undefined;
1773
+ universalId?: string | null | undefined;
1774
+ universalIdType?: string | null | undefined;
1775
+ } | null | undefined;
1776
+ sendingApplication?: {
1777
+ namespaceId?: string | null | undefined;
1778
+ universalId?: string | null | undefined;
1779
+ universalIdType?: string | null | undefined;
1780
+ } | null | undefined;
1781
+ searchRadius?: number | null | undefined;
1782
+ isLegacyBridgeEnabled?: boolean | null | undefined;
1783
+ securityTokenKeyType?: string | null | undefined;
1784
+ gateways?: {
1785
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1786
+ gatewayType: "FHIR" | "XCA";
1787
+ isAsync?: boolean | null | undefined;
1788
+ gatewayTimeout?: number | null | undefined;
1789
+ endpointLocation?: string | null | undefined;
1790
+ }[] | null | undefined;
1791
+ authorizationInformation?: {
1792
+ authorizationServerEndpoint?: string | null | undefined;
1793
+ clientId?: string | null | undefined;
1794
+ clientSecret?: string | null | undefined;
1795
+ documentReferenceScope?: string | null | undefined;
1796
+ binaryScope?: string | null | undefined;
1797
+ } | null | undefined;
1798
+ }>, z.ZodObject<Omit<z.objectUtil.extendShape<{
1799
+ organizationId: z.ZodString;
1800
+ homeCommunityId: z.ZodString;
1801
+ name: z.ZodString;
1802
+ displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1803
+ memberName: z.ZodString;
1804
+ type: z.ZodString;
1805
+ npiType1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1806
+ npiType2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1807
+ patientIdAssignAuthority: z.ZodString;
1808
+ sendingFacility: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1809
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1810
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1811
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1812
+ }, "strip", z.ZodTypeAny, {
1813
+ namespaceId?: string | null | undefined;
1814
+ universalId?: string | null | undefined;
1815
+ universalIdType?: string | null | undefined;
1816
+ }, {
1817
+ namespaceId?: string | null | undefined;
1818
+ universalId?: string | null | undefined;
1819
+ universalIdType?: string | null | undefined;
1820
+ }>>>;
1821
+ sendingApplication: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1822
+ namespaceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1823
+ universalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1824
+ universalIdType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ namespaceId?: string | null | undefined;
1827
+ universalId?: string | null | undefined;
1828
+ universalIdType?: string | null | undefined;
1829
+ }, {
1830
+ namespaceId?: string | null | undefined;
1831
+ universalId?: string | null | undefined;
1832
+ universalIdType?: string | null | undefined;
1833
+ }>>>;
1834
+ isActive: z.ZodBoolean;
1835
+ locations: z.ZodEffects<z.ZodArray<z.ZodObject<{
1836
+ address1: z.ZodString;
1837
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1838
+ city: z.ZodString;
1839
+ state: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, unknown>;
1840
+ postalCode: z.ZodString;
1841
+ country: z.ZodString;
1842
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1843
+ fax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1844
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ city: string;
1847
+ country: string;
1848
+ postalCode: string;
1849
+ address1: string;
1850
+ state?: string | null | undefined;
1851
+ address2?: string | null | undefined;
1852
+ phone?: string | null | undefined;
1853
+ fax?: string | null | undefined;
1854
+ email?: string | null | undefined;
1855
+ }, {
1856
+ city: string;
1857
+ country: string;
1858
+ postalCode: string;
1859
+ address1: string;
1860
+ state?: unknown;
1861
+ address2?: string | null | undefined;
1862
+ phone?: string | null | undefined;
1863
+ fax?: string | null | undefined;
1864
+ email?: string | null | undefined;
1865
+ }>, "many">, {
1866
+ city: string;
1867
+ country: string;
1868
+ postalCode: string;
1869
+ address1: string;
1870
+ state?: string | null | undefined;
1871
+ address2?: string | null | undefined;
1872
+ phone?: string | null | undefined;
1873
+ fax?: string | null | undefined;
1874
+ email?: string | null | undefined;
1875
+ }[], {
1876
+ city: string;
1877
+ country: string;
1878
+ postalCode: string;
1879
+ address1: string;
1880
+ state?: unknown;
1881
+ address2?: string | null | undefined;
1882
+ phone?: string | null | undefined;
1883
+ fax?: string | null | undefined;
1884
+ email?: string | null | undefined;
1885
+ }[]>;
1886
+ /** Gateway search radius in miles. One of: 50, 100, 150 */
1887
+ searchRadius: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, number>>>;
1888
+ technicalContacts: z.ZodArray<z.ZodObject<{
1889
+ name: z.ZodString;
1890
+ title: z.ZodString;
1891
+ email: z.ZodString;
1892
+ phone: z.ZodString;
1893
+ }, "strip", z.ZodTypeAny, {
1894
+ name: string;
1895
+ title: string;
1896
+ phone: string;
1897
+ email: string;
1898
+ }, {
1899
+ name: string;
1900
+ title: string;
1901
+ phone: string;
1902
+ email: string;
1903
+ }>, "many">;
1904
+ isLegacyBridgeEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1905
+ }, {
1906
+ securityTokenKeyType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1907
+ networks: z.ZodArray<z.ZodObject<{
1908
+ type: z.ZodString;
1909
+ purposeOfUse: z.ZodArray<z.ZodObject<{
1910
+ id: z.ZodString;
1911
+ queryInitiatorOnly: z.ZodBoolean;
1912
+ queryInitiator: z.ZodBoolean;
1913
+ queryResponder: z.ZodBoolean;
1914
+ }, "strip", z.ZodTypeAny, {
1915
+ id: string;
1916
+ queryInitiatorOnly: boolean;
1917
+ queryInitiator: boolean;
1918
+ queryResponder: boolean;
1919
+ }, {
1920
+ id: string;
1921
+ queryInitiatorOnly: boolean;
1922
+ queryInitiator: boolean;
1923
+ queryResponder: boolean;
1924
+ }>, "many">;
1925
+ includes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1926
+ excludes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1927
+ doa: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1928
+ }, "strip", z.ZodTypeAny, {
1929
+ purposeOfUse: {
1930
+ id: string;
1931
+ queryInitiatorOnly: boolean;
1932
+ queryInitiator: boolean;
1933
+ queryResponder: boolean;
1934
+ }[];
1935
+ type: string;
1936
+ includes?: string[] | null | undefined;
1937
+ excludes?: string[] | null | undefined;
1938
+ doa?: string[] | null | undefined;
1939
+ }, {
1940
+ purposeOfUse: {
1941
+ id: string;
1942
+ queryInitiatorOnly: boolean;
1943
+ queryInitiator: boolean;
1944
+ queryResponder: boolean;
1945
+ }[];
1946
+ type: string;
1947
+ includes?: string[] | null | undefined;
1948
+ excludes?: string[] | null | undefined;
1949
+ doa?: string[] | null | undefined;
1950
+ }>, "many">;
1951
+ gateways: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1952
+ serviceType: z.ZodUnion<[z.ZodLiteral<"R4_Base">, z.ZodLiteral<"XCA-ITI-38">, z.ZodLiteral<"XCA-ITI-39">]>;
1953
+ gatewayType: z.ZodUnion<[z.ZodLiteral<"FHIR">, z.ZodLiteral<"XCA">]>;
1954
+ isAsync: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1955
+ gatewayTimeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1956
+ endpointLocation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1957
+ }, "strip", z.ZodTypeAny, {
1958
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1959
+ gatewayType: "FHIR" | "XCA";
1960
+ isAsync?: boolean | null | undefined;
1961
+ gatewayTimeout?: number | null | undefined;
1962
+ endpointLocation?: string | null | undefined;
1963
+ }, {
1964
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
1965
+ gatewayType: "FHIR" | "XCA";
1966
+ isAsync?: boolean | null | undefined;
1967
+ gatewayTimeout?: number | null | undefined;
1968
+ endpointLocation?: string | null | undefined;
1969
+ }>, "many">>>;
1970
+ authorizationInformation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1971
+ authorizationServerEndpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1972
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1973
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1974
+ documentReferenceScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1975
+ binaryScope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1976
+ }, "strip", z.ZodTypeAny, {
1977
+ authorizationServerEndpoint?: string | null | undefined;
1978
+ clientId?: string | null | undefined;
1979
+ clientSecret?: string | null | undefined;
1980
+ documentReferenceScope?: string | null | undefined;
1981
+ binaryScope?: string | null | undefined;
1982
+ }, {
1983
+ authorizationServerEndpoint?: string | null | undefined;
1984
+ clientId?: string | null | undefined;
1985
+ clientSecret?: string | null | undefined;
1986
+ documentReferenceScope?: string | null | undefined;
1987
+ binaryScope?: string | null | undefined;
1988
+ }>>>;
1989
+ }>, "authorizationInformation">, "strip", z.ZodTypeAny, {
1990
+ homeCommunityId: string;
1991
+ type: string;
1992
+ name: string;
1993
+ organizationId: string;
1994
+ memberName: string;
1995
+ patientIdAssignAuthority: string;
1996
+ isActive: boolean;
1997
+ locations: {
1998
+ city: string;
1999
+ country: string;
2000
+ postalCode: string;
2001
+ address1: string;
2002
+ state?: string | null | undefined;
2003
+ address2?: string | null | undefined;
2004
+ phone?: string | null | undefined;
2005
+ fax?: string | null | undefined;
2006
+ email?: string | null | undefined;
2007
+ }[];
2008
+ technicalContacts: {
2009
+ name: string;
2010
+ title: string;
2011
+ phone: string;
2012
+ email: string;
2013
+ }[];
2014
+ networks: {
2015
+ purposeOfUse: {
2016
+ id: string;
2017
+ queryInitiatorOnly: boolean;
2018
+ queryInitiator: boolean;
2019
+ queryResponder: boolean;
2020
+ }[];
2021
+ type: string;
2022
+ includes?: string[] | null | undefined;
2023
+ excludes?: string[] | null | undefined;
2024
+ doa?: string[] | null | undefined;
2025
+ }[];
2026
+ displayName?: string | null | undefined;
2027
+ npiType1?: string | null | undefined;
2028
+ npiType2?: string | null | undefined;
2029
+ sendingFacility?: {
2030
+ namespaceId?: string | null | undefined;
2031
+ universalId?: string | null | undefined;
2032
+ universalIdType?: string | null | undefined;
2033
+ } | null | undefined;
2034
+ sendingApplication?: {
2035
+ namespaceId?: string | null | undefined;
2036
+ universalId?: string | null | undefined;
2037
+ universalIdType?: string | null | undefined;
2038
+ } | null | undefined;
2039
+ searchRadius?: number | null | undefined;
2040
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2041
+ securityTokenKeyType?: string | null | undefined;
2042
+ gateways?: {
2043
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2044
+ gatewayType: "FHIR" | "XCA";
2045
+ isAsync?: boolean | null | undefined;
2046
+ gatewayTimeout?: number | null | undefined;
2047
+ endpointLocation?: string | null | undefined;
2048
+ }[] | null | undefined;
2049
+ }, {
2050
+ homeCommunityId: string;
2051
+ type: string;
2052
+ name: string;
2053
+ organizationId: string;
2054
+ memberName: string;
2055
+ patientIdAssignAuthority: string;
2056
+ isActive: boolean;
2057
+ locations: {
2058
+ city: string;
2059
+ country: string;
2060
+ postalCode: string;
2061
+ address1: string;
2062
+ state?: unknown;
2063
+ address2?: string | null | undefined;
2064
+ phone?: string | null | undefined;
2065
+ fax?: string | null | undefined;
2066
+ email?: string | null | undefined;
2067
+ }[];
2068
+ technicalContacts: {
2069
+ name: string;
2070
+ title: string;
2071
+ phone: string;
2072
+ email: string;
2073
+ }[];
2074
+ networks: {
2075
+ purposeOfUse: {
2076
+ id: string;
2077
+ queryInitiatorOnly: boolean;
2078
+ queryInitiator: boolean;
2079
+ queryResponder: boolean;
2080
+ }[];
2081
+ type: string;
2082
+ includes?: string[] | null | undefined;
2083
+ excludes?: string[] | null | undefined;
2084
+ doa?: string[] | null | undefined;
2085
+ }[];
2086
+ displayName?: string | null | undefined;
2087
+ npiType1?: string | null | undefined;
2088
+ npiType2?: string | null | undefined;
2089
+ sendingFacility?: {
2090
+ namespaceId?: string | null | undefined;
2091
+ universalId?: string | null | undefined;
2092
+ universalIdType?: string | null | undefined;
2093
+ } | null | undefined;
2094
+ sendingApplication?: {
2095
+ namespaceId?: string | null | undefined;
2096
+ universalId?: string | null | undefined;
2097
+ universalIdType?: string | null | undefined;
2098
+ } | null | undefined;
2099
+ searchRadius?: number | null | undefined;
2100
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2101
+ securityTokenKeyType?: string | null | undefined;
2102
+ gateways?: {
2103
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2104
+ gatewayType: "FHIR" | "XCA";
2105
+ isAsync?: boolean | null | undefined;
2106
+ gatewayTimeout?: number | null | undefined;
2107
+ endpointLocation?: string | null | undefined;
2108
+ }[] | null | undefined;
2109
+ }>]>, "many">;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ count: number;
2112
+ from: number;
2113
+ to: number;
2114
+ organizations: ({
2115
+ homeCommunityId: string;
2116
+ type: string;
2117
+ name: string;
2118
+ organizationId: string;
2119
+ memberName: string;
2120
+ patientIdAssignAuthority: string;
2121
+ isActive: boolean;
2122
+ locations: {
2123
+ city: string;
2124
+ country: string;
2125
+ postalCode: string;
2126
+ address1: string;
2127
+ state?: string | null | undefined;
2128
+ address2?: string | null | undefined;
2129
+ phone?: string | null | undefined;
2130
+ fax?: string | null | undefined;
2131
+ email?: string | null | undefined;
2132
+ }[];
2133
+ technicalContacts: {
2134
+ name: string;
2135
+ title: string;
2136
+ phone: string;
2137
+ email: string;
2138
+ }[];
2139
+ networks: {
2140
+ purposeOfUse: {
2141
+ id: string;
2142
+ queryInitiatorOnly: boolean;
2143
+ queryInitiator: boolean;
2144
+ queryResponder: boolean;
2145
+ }[];
2146
+ type: string;
2147
+ includes?: string[] | null | undefined;
2148
+ excludes?: string[] | null | undefined;
2149
+ doa?: string[] | null | undefined;
2150
+ }[];
2151
+ displayName?: string | null | undefined;
2152
+ npiType1?: string | null | undefined;
2153
+ npiType2?: string | null | undefined;
2154
+ sendingFacility?: {
2155
+ namespaceId?: string | null | undefined;
2156
+ universalId?: string | null | undefined;
2157
+ universalIdType?: string | null | undefined;
2158
+ } | null | undefined;
2159
+ sendingApplication?: {
2160
+ namespaceId?: string | null | undefined;
2161
+ universalId?: string | null | undefined;
2162
+ universalIdType?: string | null | undefined;
2163
+ } | null | undefined;
2164
+ searchRadius?: number | null | undefined;
2165
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2166
+ securityTokenKeyType?: string | null | undefined;
2167
+ gateways?: {
2168
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2169
+ gatewayType: "FHIR" | "XCA";
2170
+ isAsync?: boolean | null | undefined;
2171
+ gatewayTimeout?: number | null | undefined;
2172
+ endpointLocation?: string | null | undefined;
2173
+ }[] | null | undefined;
2174
+ authorizationInformation?: {
2175
+ authorizationServerEndpoint?: string | null | undefined;
2176
+ clientId?: string | null | undefined;
2177
+ clientSecret?: string | null | undefined;
2178
+ documentReferenceScope?: string | null | undefined;
2179
+ binaryScope?: string | null | undefined;
2180
+ } | null | undefined;
2181
+ } | {
2182
+ homeCommunityId: string;
2183
+ type: string;
2184
+ name: string;
2185
+ organizationId: string;
2186
+ memberName: string;
2187
+ patientIdAssignAuthority: string;
2188
+ isActive: boolean;
2189
+ locations: {
2190
+ city: string;
2191
+ country: string;
2192
+ postalCode: string;
2193
+ address1: string;
2194
+ state?: string | null | undefined;
2195
+ address2?: string | null | undefined;
2196
+ phone?: string | null | undefined;
2197
+ fax?: string | null | undefined;
2198
+ email?: string | null | undefined;
2199
+ }[];
2200
+ technicalContacts: {
2201
+ name: string;
2202
+ title: string;
2203
+ phone: string;
2204
+ email: string;
2205
+ }[];
2206
+ networks: {
2207
+ purposeOfUse: {
2208
+ id: string;
2209
+ queryInitiatorOnly: boolean;
2210
+ queryInitiator: boolean;
2211
+ queryResponder: boolean;
2212
+ }[];
2213
+ type: string;
2214
+ includes?: string[] | null | undefined;
2215
+ excludes?: string[] | null | undefined;
2216
+ doa?: string[] | null | undefined;
2217
+ }[];
2218
+ displayName?: string | null | undefined;
2219
+ npiType1?: string | null | undefined;
2220
+ npiType2?: string | null | undefined;
2221
+ sendingFacility?: {
2222
+ namespaceId?: string | null | undefined;
2223
+ universalId?: string | null | undefined;
2224
+ universalIdType?: string | null | undefined;
2225
+ } | null | undefined;
2226
+ sendingApplication?: {
2227
+ namespaceId?: string | null | undefined;
2228
+ universalId?: string | null | undefined;
2229
+ universalIdType?: string | null | undefined;
2230
+ } | null | undefined;
2231
+ searchRadius?: number | null | undefined;
2232
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2233
+ securityTokenKeyType?: string | null | undefined;
2234
+ gateways?: {
2235
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2236
+ gatewayType: "FHIR" | "XCA";
2237
+ isAsync?: boolean | null | undefined;
2238
+ gatewayTimeout?: number | null | undefined;
2239
+ endpointLocation?: string | null | undefined;
2240
+ }[] | null | undefined;
2241
+ })[];
2242
+ }, {
2243
+ count: number;
2244
+ from: number;
2245
+ to: number;
2246
+ organizations: ({
2247
+ homeCommunityId: string;
2248
+ type: string;
2249
+ name: string;
2250
+ organizationId: string;
2251
+ memberName: string;
2252
+ patientIdAssignAuthority: string;
2253
+ isActive: boolean;
2254
+ locations: {
2255
+ city: string;
2256
+ country: string;
2257
+ postalCode: string;
2258
+ address1: string;
2259
+ state?: unknown;
2260
+ address2?: string | null | undefined;
2261
+ phone?: string | null | undefined;
2262
+ fax?: string | null | undefined;
2263
+ email?: string | null | undefined;
2264
+ }[];
2265
+ technicalContacts: {
2266
+ name: string;
2267
+ title: string;
2268
+ phone: string;
2269
+ email: string;
2270
+ }[];
2271
+ networks: {
2272
+ purposeOfUse: {
2273
+ id: string;
2274
+ queryInitiatorOnly: boolean;
2275
+ queryInitiator: boolean;
2276
+ queryResponder: boolean;
2277
+ }[];
2278
+ type: string;
2279
+ includes?: string[] | null | undefined;
2280
+ excludes?: string[] | null | undefined;
2281
+ doa?: string[] | null | undefined;
2282
+ }[];
2283
+ displayName?: string | null | undefined;
2284
+ npiType1?: string | null | undefined;
2285
+ npiType2?: string | null | undefined;
2286
+ sendingFacility?: {
2287
+ namespaceId?: string | null | undefined;
2288
+ universalId?: string | null | undefined;
2289
+ universalIdType?: string | null | undefined;
2290
+ } | null | undefined;
2291
+ sendingApplication?: {
2292
+ namespaceId?: string | null | undefined;
2293
+ universalId?: string | null | undefined;
2294
+ universalIdType?: string | null | undefined;
2295
+ } | null | undefined;
2296
+ searchRadius?: number | null | undefined;
2297
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2298
+ securityTokenKeyType?: string | null | undefined;
2299
+ gateways?: {
2300
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2301
+ gatewayType: "FHIR" | "XCA";
2302
+ isAsync?: boolean | null | undefined;
2303
+ gatewayTimeout?: number | null | undefined;
2304
+ endpointLocation?: string | null | undefined;
2305
+ }[] | null | undefined;
2306
+ authorizationInformation?: {
2307
+ authorizationServerEndpoint?: string | null | undefined;
2308
+ clientId?: string | null | undefined;
2309
+ clientSecret?: string | null | undefined;
2310
+ documentReferenceScope?: string | null | undefined;
2311
+ binaryScope?: string | null | undefined;
2312
+ } | null | undefined;
2313
+ } | {
2314
+ homeCommunityId: string;
2315
+ type: string;
2316
+ name: string;
2317
+ organizationId: string;
2318
+ memberName: string;
2319
+ patientIdAssignAuthority: string;
2320
+ isActive: boolean;
2321
+ locations: {
2322
+ city: string;
2323
+ country: string;
2324
+ postalCode: string;
2325
+ address1: string;
2326
+ state?: unknown;
2327
+ address2?: string | null | undefined;
2328
+ phone?: string | null | undefined;
2329
+ fax?: string | null | undefined;
2330
+ email?: string | null | undefined;
2331
+ }[];
2332
+ technicalContacts: {
2333
+ name: string;
2334
+ title: string;
2335
+ phone: string;
2336
+ email: string;
2337
+ }[];
2338
+ networks: {
2339
+ purposeOfUse: {
2340
+ id: string;
2341
+ queryInitiatorOnly: boolean;
2342
+ queryInitiator: boolean;
2343
+ queryResponder: boolean;
2344
+ }[];
2345
+ type: string;
2346
+ includes?: string[] | null | undefined;
2347
+ excludes?: string[] | null | undefined;
2348
+ doa?: string[] | null | undefined;
2349
+ }[];
2350
+ displayName?: string | null | undefined;
2351
+ npiType1?: string | null | undefined;
2352
+ npiType2?: string | null | undefined;
2353
+ sendingFacility?: {
2354
+ namespaceId?: string | null | undefined;
2355
+ universalId?: string | null | undefined;
2356
+ universalIdType?: string | null | undefined;
2357
+ } | null | undefined;
2358
+ sendingApplication?: {
2359
+ namespaceId?: string | null | undefined;
2360
+ universalId?: string | null | undefined;
2361
+ universalIdType?: string | null | undefined;
2362
+ } | null | undefined;
2363
+ searchRadius?: number | null | undefined;
2364
+ isLegacyBridgeEnabled?: boolean | null | undefined;
2365
+ securityTokenKeyType?: string | null | undefined;
2366
+ gateways?: {
2367
+ serviceType: "R4_Base" | "XCA-ITI-38" | "XCA-ITI-39";
2368
+ gatewayType: "FHIR" | "XCA";
2369
+ isAsync?: boolean | null | undefined;
2370
+ gatewayTimeout?: number | null | undefined;
2371
+ endpointLocation?: string | null | undefined;
2372
+ }[] | null | undefined;
2373
+ })[];
2374
+ }>;
2375
+ /**
2376
+ * Keep these in lowercase since the code that uses it to map the CW type to the Metriport type
2377
+ * expects the keys to be lowercase.
2378
+ */
2379
+ export declare enum CwTreatmentType {
2380
+ acuteCare = "acute care",
2381
+ ambulatory = "ambulatory",
2382
+ hospital = "hospital",
2383
+ labSystems = "lab systems",
2384
+ pharmacy = "pharmacy",
2385
+ postAcuteCare = "post acute care"
2386
+ }
2387
+ export type OrganizationList = z.infer<typeof organizationListSchema>;
2388
+ export declare function isOrgInitiatorAndResponder(org: Organization): boolean;
2389
+ export {};
2390
+ //# sourceMappingURL=organization.d.ts.map