@metriport/shared 0.19.5 → 0.20.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/common/__tests__/date.test.js +27 -0
  2. package/dist/common/__tests__/date.test.js.map +1 -1
  3. package/dist/common/date.d.ts +3 -0
  4. package/dist/common/date.d.ts.map +1 -1
  5. package/dist/common/date.js +14 -3
  6. package/dist/common/date.js.map +1 -1
  7. package/dist/domain/__tests__/dob.test.d.ts +2 -0
  8. package/dist/domain/__tests__/dob.test.d.ts.map +1 -0
  9. package/dist/domain/__tests__/dob.test.js +37 -0
  10. package/dist/domain/__tests__/dob.test.js.map +1 -0
  11. package/dist/domain/address/__tests__/normalize-zip.test.d.ts +1 -1
  12. package/dist/domain/address/__tests__/zip.test.d.ts +2 -0
  13. package/dist/domain/address/__tests__/zip.test.d.ts.map +1 -0
  14. package/dist/domain/address/__tests__/zip.test.js +83 -0
  15. package/dist/domain/address/__tests__/zip.test.js.map +1 -0
  16. package/dist/domain/address/city.d.ts +2 -0
  17. package/dist/domain/address/city.d.ts.map +1 -0
  18. package/dist/domain/address/city.js +9 -0
  19. package/dist/domain/address/city.js.map +1 -0
  20. package/dist/domain/contact/__tests__/email.test.js +41 -0
  21. package/dist/domain/contact/__tests__/email.test.js.map +1 -1
  22. package/dist/domain/contact/email.d.ts +20 -0
  23. package/dist/domain/contact/email.d.ts.map +1 -1
  24. package/dist/domain/contact/email.js +45 -1
  25. package/dist/domain/contact/email.js.map +1 -1
  26. package/dist/domain/dob.d.ts +2 -2
  27. package/dist/domain/dob.d.ts.map +1 -1
  28. package/dist/domain/dob.js +11 -15
  29. package/dist/domain/dob.js.map +1 -1
  30. package/dist/domain/jwt-token.d.ts +5 -0
  31. package/dist/domain/jwt-token.d.ts.map +1 -0
  32. package/dist/domain/jwt-token.js +3 -0
  33. package/dist/domain/jwt-token.js.map +1 -0
  34. package/dist/domain/patient/__tests__/ssn.test.d.ts +2 -0
  35. package/dist/domain/patient/__tests__/ssn.test.d.ts.map +1 -0
  36. package/dist/domain/patient/__tests__/ssn.test.js +54 -0
  37. package/dist/domain/patient/__tests__/ssn.test.js.map +1 -0
  38. package/dist/domain/patient/patient-import.js +1 -1
  39. package/dist/domain/patient/patient-import.js.map +1 -1
  40. package/dist/domain/patient/ssn.d.ts +3 -0
  41. package/dist/domain/patient/ssn.d.ts.map +1 -0
  42. package/dist/domain/patient/ssn.js +29 -0
  43. package/dist/domain/patient/ssn.js.map +1 -0
  44. package/dist/index.d.ts +4 -2
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/index.js +4 -1
  47. package/dist/index.js.map +1 -1
  48. package/dist/interface/external/athenahealth/appointment.d.ts +16 -3
  49. package/dist/interface/external/athenahealth/appointment.d.ts.map +1 -1
  50. package/dist/interface/external/athenahealth/appointment.js +5 -5
  51. package/dist/interface/external/athenahealth/appointment.js.map +1 -1
  52. package/dist/interface/external/athenahealth/department.d.ts +2 -1
  53. package/dist/interface/external/athenahealth/department.d.ts.map +1 -1
  54. package/dist/interface/external/athenahealth/department.js +2 -2
  55. package/dist/interface/external/athenahealth/department.js.map +1 -1
  56. package/dist/interface/external/athenahealth/index.d.ts +0 -1
  57. package/dist/interface/external/athenahealth/index.d.ts.map +1 -1
  58. package/dist/interface/external/athenahealth/index.js +0 -1
  59. package/dist/interface/external/athenahealth/index.js.map +1 -1
  60. package/dist/interface/external/athenahealth/jwt-token.d.ts +11 -6
  61. package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -1
  62. package/dist/interface/external/athenahealth/jwt-token.js +7 -2
  63. package/dist/interface/external/athenahealth/jwt-token.js.map +1 -1
  64. package/dist/interface/external/athenahealth/medication.d.ts +15 -3
  65. package/dist/interface/external/athenahealth/medication.d.ts.map +1 -1
  66. package/dist/interface/external/athenahealth/medication.js +8 -4
  67. package/dist/interface/external/athenahealth/medication.js.map +1 -1
  68. package/dist/interface/external/athenahealth/patient.d.ts +376 -540
  69. package/dist/interface/external/athenahealth/patient.d.ts.map +1 -1
  70. package/dist/interface/external/athenahealth/patient.js +10 -34
  71. package/dist/interface/external/athenahealth/patient.js.map +1 -1
  72. package/dist/interface/external/athenahealth/problem.d.ts +13 -2
  73. package/dist/interface/external/athenahealth/problem.d.ts.map +1 -1
  74. package/dist/interface/external/athenahealth/problem.js +6 -2
  75. package/dist/interface/external/athenahealth/problem.js.map +1 -1
  76. package/dist/interface/external/athenahealth/subscription.d.ts +10 -1
  77. package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -1
  78. package/dist/interface/external/athenahealth/subscription.js +5 -2
  79. package/dist/interface/external/athenahealth/subscription.js.map +1 -1
  80. package/dist/interface/external/athenahealth/vitals.d.ts +62 -6
  81. package/dist/interface/external/athenahealth/vitals.d.ts.map +1 -1
  82. package/dist/interface/external/athenahealth/vitals.js +8 -3
  83. package/dist/interface/external/athenahealth/vitals.js.map +1 -1
  84. package/dist/interface/external/canvas/appointment.d.ts +68 -0
  85. package/dist/interface/external/canvas/appointment.d.ts.map +1 -0
  86. package/dist/interface/external/canvas/appointment.js +15 -0
  87. package/dist/interface/external/canvas/appointment.js.map +1 -0
  88. package/dist/interface/external/canvas/index.d.ts +3 -0
  89. package/dist/interface/external/canvas/index.d.ts.map +1 -0
  90. package/dist/interface/external/canvas/index.js +19 -0
  91. package/dist/interface/external/canvas/index.js.map +1 -0
  92. package/dist/interface/external/canvas/jwt-token.d.ts +31 -0
  93. package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -0
  94. package/dist/interface/external/canvas/jwt-token.js +17 -0
  95. package/dist/interface/external/canvas/jwt-token.js.map +1 -0
  96. package/dist/interface/external/elation/appointment.d.ts +11 -3
  97. package/dist/interface/external/elation/appointment.d.ts.map +1 -1
  98. package/dist/interface/external/elation/appointment.js +8 -9
  99. package/dist/interface/external/elation/appointment.js.map +1 -1
  100. package/dist/interface/external/elation/index.d.ts +1 -1
  101. package/dist/interface/external/elation/index.d.ts.map +1 -1
  102. package/dist/interface/external/elation/index.js +1 -1
  103. package/dist/interface/external/elation/index.js.map +1 -1
  104. package/dist/interface/external/elation/jwt-token.d.ts +20 -0
  105. package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
  106. package/dist/interface/external/elation/jwt-token.js +13 -0
  107. package/dist/interface/external/elation/jwt-token.js.map +1 -0
  108. package/dist/interface/external/elation/patient.d.ts +47 -47
  109. package/dist/interface/external/elation/patient.d.ts.map +1 -1
  110. package/dist/interface/external/elation/patient.js +12 -12
  111. package/dist/interface/external/elation/patient.js.map +1 -1
  112. package/dist/interface/external/elation/subscription.d.ts +1 -1
  113. package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
  114. package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
  115. package/dist/interface/external/shared/ehr/patient.js +35 -0
  116. package/dist/interface/external/shared/ehr/patient.js.map +1 -0
  117. package/dist/medical/webhook/webhook-request.d.ts +543 -0
  118. package/dist/medical/webhook/webhook-request.d.ts.map +1 -1
  119. package/dist/medical/webhook/webhook-request.js +36 -23
  120. package/dist/medical/webhook/webhook-request.js.map +1 -1
  121. package/package.json +10 -2
@@ -1,555 +1,391 @@
1
1
  import { z } from "zod";
2
- export declare const patientResourceSchema: z.ZodObject<{
2
+ export declare const patientSchema: z.ZodObject<
3
+ {
3
4
  gender: z.ZodString;
4
- name: z.ZodArray<z.ZodObject<{
5
- use: z.ZodString;
6
- period: z.ZodObject<{
7
- start: z.ZodString;
8
- end: z.ZodOptional<z.ZodString>;
9
- }, "strip", z.ZodTypeAny, {
10
- start: string;
11
- end?: string | undefined;
12
- }, {
13
- start: string;
14
- end?: string | undefined;
15
- }>;
16
- family: z.ZodString;
17
- given: z.ZodArray<z.ZodString, "many">;
18
- }, "strip", z.ZodTypeAny, {
19
- use: string;
20
- period: {
21
- start: string;
22
- end?: string | undefined;
23
- };
24
- family: string;
25
- given: string[];
26
- }, {
27
- use: string;
28
- period: {
29
- start: string;
30
- end?: string | undefined;
31
- };
32
- family: string;
33
- given: string[];
34
- }>, "many">;
35
- address: z.ZodArray<z.ZodObject<{
36
- use: z.ZodString;
37
- country: z.ZodString;
38
- period: z.ZodObject<{
39
- start: z.ZodString;
40
- end: z.ZodOptional<z.ZodString>;
41
- }, "strip", z.ZodTypeAny, {
42
- start: string;
43
- end?: string | undefined;
44
- }, {
45
- start: string;
46
- end?: string | undefined;
47
- }>;
48
- state: z.ZodString;
49
- line: z.ZodArray<z.ZodString, "many">;
50
- city: z.ZodString;
51
- postalCode: z.ZodOptional<z.ZodString>;
52
- }, "strip", z.ZodTypeAny, {
53
- state: string;
54
- city: string;
55
- use: string;
56
- country: string;
57
- period: {
58
- start: string;
59
- end?: string | undefined;
60
- };
61
- line: string[];
62
- postalCode?: string | undefined;
63
- }, {
64
- state: string;
65
- city: string;
66
- use: string;
67
- country: string;
68
- period: {
69
- start: string;
70
- end?: string | undefined;
71
- };
72
- line: string[];
73
- postalCode?: string | undefined;
74
- }>, "many">;
5
+ name: z.ZodOptional<
6
+ z.ZodArray<
7
+ z.ZodObject<
8
+ {
9
+ family: z.ZodString;
10
+ given: z.ZodArray<z.ZodString, "many">;
11
+ },
12
+ "strip",
13
+ z.ZodTypeAny,
14
+ {
15
+ family: string;
16
+ given: string[];
17
+ },
18
+ {
19
+ family: string;
20
+ given: string[];
21
+ }
22
+ >,
23
+ "many"
24
+ >
25
+ >;
26
+ address: z.ZodOptional<
27
+ z.ZodArray<
28
+ z.ZodObject<
29
+ {
30
+ state: z.ZodOptional<z.ZodString>;
31
+ line: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
+ city: z.ZodOptional<z.ZodString>;
33
+ postalCode: z.ZodOptional<z.ZodString>;
34
+ country: z.ZodOptional<z.ZodString>;
35
+ },
36
+ "strip",
37
+ z.ZodTypeAny,
38
+ {
39
+ state?: string | undefined;
40
+ line?: string[] | undefined;
41
+ city?: string | undefined;
42
+ postalCode?: string | undefined;
43
+ country?: string | undefined;
44
+ },
45
+ {
46
+ state?: string | undefined;
47
+ line?: string[] | undefined;
48
+ city?: string | undefined;
49
+ postalCode?: string | undefined;
50
+ country?: string | undefined;
51
+ }
52
+ >,
53
+ "many"
54
+ >
55
+ >;
75
56
  birthDate: z.ZodString;
76
- telecom: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
- value: z.ZodString;
78
- system: z.ZodEnum<["phone", "email"]>;
79
- }, "strip", z.ZodTypeAny, {
80
- value: string;
81
- system: "phone" | "email";
82
- }, {
83
- value: string;
84
- system: "phone" | "email";
85
- }>, "many">>;
86
- }, "strip", z.ZodTypeAny, {
57
+ telecom: z.ZodOptional<
58
+ z.ZodArray<
59
+ z.ZodObject<
60
+ {
61
+ value: z.ZodString;
62
+ system: z.ZodEnum<["phone", "email"]>;
63
+ },
64
+ "strip",
65
+ z.ZodTypeAny,
66
+ {
67
+ value: string;
68
+ system: "phone" | "email";
69
+ },
70
+ {
71
+ value: string;
72
+ system: "phone" | "email";
73
+ }
74
+ >,
75
+ "many"
76
+ >
77
+ >;
78
+ },
79
+ "strip",
80
+ z.ZodTypeAny,
81
+ {
87
82
  gender: string;
88
- name: {
89
- use: string;
90
- period: {
91
- start: string;
92
- end?: string | undefined;
93
- };
94
- family: string;
95
- given: string[];
96
- }[];
97
- address: {
98
- state: string;
99
- city: string;
100
- use: string;
101
- country: string;
102
- period: {
103
- start: string;
104
- end?: string | undefined;
105
- };
106
- line: string[];
107
- postalCode?: string | undefined;
108
- }[];
109
- birthDate: string;
110
- telecom?: {
111
- value: string;
112
- system: "phone" | "email";
113
- }[] | undefined;
114
- }, {
115
- gender: string;
116
- name: {
117
- use: string;
118
- period: {
119
- start: string;
120
- end?: string | undefined;
121
- };
122
- family: string;
123
- given: string[];
124
- }[];
125
- address: {
126
- state: string;
127
- city: string;
128
- use: string;
129
- country: string;
130
- period: {
131
- start: string;
132
- end?: string | undefined;
133
- };
134
- line: string[];
135
- postalCode?: string | undefined;
136
- }[];
137
- birthDate: string;
138
- telecom?: {
139
- value: string;
140
- system: "phone" | "email";
141
- }[] | undefined;
142
- }>;
143
- export declare const patientResourceSchemaWithHomeAddress: z.ZodObject<{
144
- gender: z.ZodString;
145
- name: z.ZodArray<z.ZodObject<{
146
- use: z.ZodString;
147
- period: z.ZodObject<{
148
- start: z.ZodString;
149
- end: z.ZodOptional<z.ZodString>;
150
- }, "strip", z.ZodTypeAny, {
151
- start: string;
152
- end?: string | undefined;
153
- }, {
154
- start: string;
155
- end?: string | undefined;
156
- }>;
157
- family: z.ZodString;
158
- given: z.ZodArray<z.ZodString, "many">;
159
- }, "strip", z.ZodTypeAny, {
160
- use: string;
161
- period: {
162
- start: string;
163
- end?: string | undefined;
164
- };
165
- family: string;
166
- given: string[];
167
- }, {
168
- use: string;
169
- period: {
170
- start: string;
171
- end?: string | undefined;
172
- };
173
- family: string;
174
- given: string[];
175
- }>, "many">;
176
- address: z.ZodArray<z.ZodObject<{
177
- use: z.ZodLiteral<"home">;
178
- country: z.ZodString;
179
- period: z.ZodObject<{
180
- start: z.ZodString;
181
- end: z.ZodOptional<z.ZodString>;
182
- }, "strip", z.ZodTypeAny, {
183
- start: string;
184
- end?: string | undefined;
185
- }, {
186
- start: string;
187
- end?: string | undefined;
188
- }>;
189
- state: z.ZodString;
190
- line: z.ZodArray<z.ZodString, "many">;
191
- city: z.ZodString;
192
- postalCode: z.ZodString;
193
- }, "strip", z.ZodTypeAny, {
194
- state: string;
195
- city: string;
196
- use: "home";
197
- country: string;
198
- period: {
199
- start: string;
200
- end?: string | undefined;
201
- };
202
- line: string[];
203
- postalCode: string;
204
- }, {
205
- state: string;
206
- city: string;
207
- use: "home";
208
- country: string;
209
- period: {
210
- start: string;
211
- end?: string | undefined;
212
- };
213
- line: string[];
214
- postalCode: string;
215
- }>, "many">;
216
- birthDate: z.ZodString;
217
- telecom: z.ZodOptional<z.ZodArray<z.ZodObject<{
218
- value: z.ZodString;
219
- system: z.ZodEnum<["phone", "email"]>;
220
- }, "strip", z.ZodTypeAny, {
221
- value: string;
222
- system: "phone" | "email";
223
- }, {
224
- value: string;
225
- system: "phone" | "email";
226
- }>, "many">>;
227
- }, "strip", z.ZodTypeAny, {
228
- gender: string;
229
- name: {
230
- use: string;
231
- period: {
232
- start: string;
233
- end?: string | undefined;
234
- };
235
- family: string;
236
- given: string[];
237
- }[];
238
- address: {
239
- state: string;
240
- city: string;
241
- use: "home";
242
- country: string;
243
- period: {
244
- start: string;
245
- end?: string | undefined;
246
- };
247
- line: string[];
248
- postalCode: string;
249
- }[];
250
83
  birthDate: string;
251
- telecom?: {
252
- value: string;
253
- system: "phone" | "email";
254
- }[] | undefined;
255
- }, {
84
+ name?:
85
+ | {
86
+ family: string;
87
+ given: string[];
88
+ }[]
89
+ | undefined;
90
+ address?:
91
+ | {
92
+ state?: string | undefined;
93
+ line?: string[] | undefined;
94
+ city?: string | undefined;
95
+ postalCode?: string | undefined;
96
+ country?: string | undefined;
97
+ }[]
98
+ | undefined;
99
+ telecom?:
100
+ | {
101
+ value: string;
102
+ system: "phone" | "email";
103
+ }[]
104
+ | undefined;
105
+ },
106
+ {
256
107
  gender: string;
257
- name: {
258
- use: string;
259
- period: {
260
- start: string;
261
- end?: string | undefined;
262
- };
263
- family: string;
264
- given: string[];
265
- }[];
266
- address: {
267
- state: string;
268
- city: string;
269
- use: "home";
270
- country: string;
271
- period: {
272
- start: string;
273
- end?: string | undefined;
274
- };
275
- line: string[];
276
- postalCode: string;
277
- }[];
278
108
  birthDate: string;
279
- telecom?: {
280
- value: string;
281
- system: "phone" | "email";
282
- }[] | undefined;
283
- }>;
284
- export type PatientResource = z.infer<typeof patientResourceSchema>;
285
- export type PatientResourceWithHomeAddress = z.infer<typeof patientResourceSchemaWithHomeAddress>;
286
- export declare const patientSearchResourceSchema: z.ZodObject<{
287
- entry: z.ZodArray<z.ZodObject<{
288
- resource: z.ZodObject<{
289
- gender: z.ZodString;
290
- name: z.ZodArray<z.ZodObject<{
291
- use: z.ZodString;
292
- period: z.ZodObject<{
293
- start: z.ZodString;
294
- end: z.ZodOptional<z.ZodString>;
295
- }, "strip", z.ZodTypeAny, {
296
- start: string;
297
- end?: string | undefined;
298
- }, {
299
- start: string;
300
- end?: string | undefined;
301
- }>;
302
- family: z.ZodString;
303
- given: z.ZodArray<z.ZodString, "many">;
304
- }, "strip", z.ZodTypeAny, {
305
- use: string;
306
- period: {
307
- start: string;
308
- end?: string | undefined;
309
- };
310
- family: string;
311
- given: string[];
312
- }, {
313
- use: string;
314
- period: {
315
- start: string;
316
- end?: string | undefined;
317
- };
318
- family: string;
319
- given: string[];
320
- }>, "many">;
321
- address: z.ZodArray<z.ZodObject<{
322
- use: z.ZodString;
323
- country: z.ZodString;
324
- period: z.ZodObject<{
325
- start: z.ZodString;
326
- end: z.ZodOptional<z.ZodString>;
327
- }, "strip", z.ZodTypeAny, {
328
- start: string;
329
- end?: string | undefined;
330
- }, {
331
- start: string;
332
- end?: string | undefined;
333
- }>;
334
- state: z.ZodString;
335
- line: z.ZodArray<z.ZodString, "many">;
336
- city: z.ZodString;
337
- postalCode: z.ZodOptional<z.ZodString>;
338
- }, "strip", z.ZodTypeAny, {
339
- state: string;
340
- city: string;
341
- use: string;
342
- country: string;
343
- period: {
344
- start: string;
345
- end?: string | undefined;
346
- };
347
- line: string[];
348
- postalCode?: string | undefined;
349
- }, {
350
- state: string;
351
- city: string;
352
- use: string;
353
- country: string;
354
- period: {
355
- start: string;
356
- end?: string | undefined;
357
- };
358
- line: string[];
359
- postalCode?: string | undefined;
360
- }>, "many">;
361
- birthDate: z.ZodString;
362
- telecom: z.ZodOptional<z.ZodArray<z.ZodObject<{
363
- value: z.ZodString;
364
- system: z.ZodEnum<["phone", "email"]>;
365
- }, "strip", z.ZodTypeAny, {
366
- value: string;
367
- system: "phone" | "email";
368
- }, {
369
- value: string;
370
- system: "phone" | "email";
371
- }>, "many">>;
372
- }, "strip", z.ZodTypeAny, {
109
+ name?:
110
+ | {
111
+ family: string;
112
+ given: string[];
113
+ }[]
114
+ | undefined;
115
+ address?:
116
+ | {
117
+ state?: string | undefined;
118
+ line?: string[] | undefined;
119
+ city?: string | undefined;
120
+ postalCode?: string | undefined;
121
+ country?: string | undefined;
122
+ }[]
123
+ | undefined;
124
+ telecom?:
125
+ | {
126
+ value: string;
127
+ system: "phone" | "email";
128
+ }[]
129
+ | undefined;
130
+ }
131
+ >;
132
+ export type Patient = z.infer<typeof patientSchema>;
133
+ export declare const patientSearchSchema: z.ZodObject<
134
+ {
135
+ entry: z.ZodArray<
136
+ z.ZodObject<
137
+ {
138
+ resource: z.ZodObject<
139
+ {
140
+ gender: z.ZodString;
141
+ name: z.ZodOptional<
142
+ z.ZodArray<
143
+ z.ZodObject<
144
+ {
145
+ family: z.ZodString;
146
+ given: z.ZodArray<z.ZodString, "many">;
147
+ },
148
+ "strip",
149
+ z.ZodTypeAny,
150
+ {
151
+ family: string;
152
+ given: string[];
153
+ },
154
+ {
155
+ family: string;
156
+ given: string[];
157
+ }
158
+ >,
159
+ "many"
160
+ >
161
+ >;
162
+ address: z.ZodOptional<
163
+ z.ZodArray<
164
+ z.ZodObject<
165
+ {
166
+ state: z.ZodOptional<z.ZodString>;
167
+ line: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
168
+ city: z.ZodOptional<z.ZodString>;
169
+ postalCode: z.ZodOptional<z.ZodString>;
170
+ country: z.ZodOptional<z.ZodString>;
171
+ },
172
+ "strip",
173
+ z.ZodTypeAny,
174
+ {
175
+ state?: string | undefined;
176
+ line?: string[] | undefined;
177
+ city?: string | undefined;
178
+ postalCode?: string | undefined;
179
+ country?: string | undefined;
180
+ },
181
+ {
182
+ state?: string | undefined;
183
+ line?: string[] | undefined;
184
+ city?: string | undefined;
185
+ postalCode?: string | undefined;
186
+ country?: string | undefined;
187
+ }
188
+ >,
189
+ "many"
190
+ >
191
+ >;
192
+ birthDate: z.ZodString;
193
+ telecom: z.ZodOptional<
194
+ z.ZodArray<
195
+ z.ZodObject<
196
+ {
197
+ value: z.ZodString;
198
+ system: z.ZodEnum<["phone", "email"]>;
199
+ },
200
+ "strip",
201
+ z.ZodTypeAny,
202
+ {
203
+ value: string;
204
+ system: "phone" | "email";
205
+ },
206
+ {
207
+ value: string;
208
+ system: "phone" | "email";
209
+ }
210
+ >,
211
+ "many"
212
+ >
213
+ >;
214
+ },
215
+ "strip",
216
+ z.ZodTypeAny,
217
+ {
218
+ gender: string;
219
+ birthDate: string;
220
+ name?:
221
+ | {
222
+ family: string;
223
+ given: string[];
224
+ }[]
225
+ | undefined;
226
+ address?:
227
+ | {
228
+ state?: string | undefined;
229
+ line?: string[] | undefined;
230
+ city?: string | undefined;
231
+ postalCode?: string | undefined;
232
+ country?: string | undefined;
233
+ }[]
234
+ | undefined;
235
+ telecom?:
236
+ | {
237
+ value: string;
238
+ system: "phone" | "email";
239
+ }[]
240
+ | undefined;
241
+ },
242
+ {
243
+ gender: string;
244
+ birthDate: string;
245
+ name?:
246
+ | {
247
+ family: string;
248
+ given: string[];
249
+ }[]
250
+ | undefined;
251
+ address?:
252
+ | {
253
+ state?: string | undefined;
254
+ line?: string[] | undefined;
255
+ city?: string | undefined;
256
+ postalCode?: string | undefined;
257
+ country?: string | undefined;
258
+ }[]
259
+ | undefined;
260
+ telecom?:
261
+ | {
262
+ value: string;
263
+ system: "phone" | "email";
264
+ }[]
265
+ | undefined;
266
+ }
267
+ >;
268
+ },
269
+ "strip",
270
+ z.ZodTypeAny,
271
+ {
272
+ resource: {
373
273
  gender: string;
374
- name: {
375
- use: string;
376
- period: {
377
- start: string;
378
- end?: string | undefined;
379
- };
380
- family: string;
381
- given: string[];
382
- }[];
383
- address: {
384
- state: string;
385
- city: string;
386
- use: string;
387
- country: string;
388
- period: {
389
- start: string;
390
- end?: string | undefined;
391
- };
392
- line: string[];
393
- postalCode?: string | undefined;
394
- }[];
395
274
  birthDate: string;
396
- telecom?: {
397
- value: string;
398
- system: "phone" | "email";
399
- }[] | undefined;
400
- }, {
275
+ name?:
276
+ | {
277
+ family: string;
278
+ given: string[];
279
+ }[]
280
+ | undefined;
281
+ address?:
282
+ | {
283
+ state?: string | undefined;
284
+ line?: string[] | undefined;
285
+ city?: string | undefined;
286
+ postalCode?: string | undefined;
287
+ country?: string | undefined;
288
+ }[]
289
+ | undefined;
290
+ telecom?:
291
+ | {
292
+ value: string;
293
+ system: "phone" | "email";
294
+ }[]
295
+ | undefined;
296
+ };
297
+ },
298
+ {
299
+ resource: {
401
300
  gender: string;
402
- name: {
403
- use: string;
404
- period: {
405
- start: string;
406
- end?: string | undefined;
407
- };
408
- family: string;
409
- given: string[];
410
- }[];
411
- address: {
412
- state: string;
413
- city: string;
414
- use: string;
415
- country: string;
416
- period: {
417
- start: string;
418
- end?: string | undefined;
419
- };
420
- line: string[];
421
- postalCode?: string | undefined;
422
- }[];
423
301
  birthDate: string;
424
- telecom?: {
425
- value: string;
426
- system: "phone" | "email";
427
- }[] | undefined;
428
- }>;
429
- }, "strip", z.ZodTypeAny, {
430
- resource: {
431
- gender: string;
432
- name: {
433
- use: string;
434
- period: {
435
- start: string;
436
- end?: string | undefined;
437
- };
438
- family: string;
439
- given: string[];
440
- }[];
441
- address: {
442
- state: string;
443
- city: string;
444
- use: string;
445
- country: string;
446
- period: {
447
- start: string;
448
- end?: string | undefined;
449
- };
450
- line: string[];
451
- postalCode?: string | undefined;
452
- }[];
453
- birthDate: string;
454
- telecom?: {
455
- value: string;
456
- system: "phone" | "email";
457
- }[] | undefined;
458
- };
459
- }, {
460
- resource: {
461
- gender: string;
462
- name: {
463
- use: string;
464
- period: {
465
- start: string;
466
- end?: string | undefined;
467
- };
468
- family: string;
469
- given: string[];
470
- }[];
471
- address: {
472
- state: string;
473
- city: string;
474
- use: string;
475
- country: string;
476
- period: {
477
- start: string;
478
- end?: string | undefined;
479
- };
480
- line: string[];
481
- postalCode?: string | undefined;
482
- }[];
483
- birthDate: string;
484
- telecom?: {
485
- value: string;
486
- system: "phone" | "email";
487
- }[] | undefined;
488
- };
489
- }>, "many">;
490
- }, "strip", z.ZodTypeAny, {
302
+ name?:
303
+ | {
304
+ family: string;
305
+ given: string[];
306
+ }[]
307
+ | undefined;
308
+ address?:
309
+ | {
310
+ state?: string | undefined;
311
+ line?: string[] | undefined;
312
+ city?: string | undefined;
313
+ postalCode?: string | undefined;
314
+ country?: string | undefined;
315
+ }[]
316
+ | undefined;
317
+ telecom?:
318
+ | {
319
+ value: string;
320
+ system: "phone" | "email";
321
+ }[]
322
+ | undefined;
323
+ };
324
+ }
325
+ >,
326
+ "many"
327
+ >;
328
+ },
329
+ "strip",
330
+ z.ZodTypeAny,
331
+ {
491
332
  entry: {
492
- resource: {
493
- gender: string;
494
- name: {
495
- use: string;
496
- period: {
497
- start: string;
498
- end?: string | undefined;
499
- };
500
- family: string;
501
- given: string[];
502
- }[];
503
- address: {
504
- state: string;
505
- city: string;
506
- use: string;
507
- country: string;
508
- period: {
509
- start: string;
510
- end?: string | undefined;
511
- };
512
- line: string[];
513
- postalCode?: string | undefined;
514
- }[];
515
- birthDate: string;
516
- telecom?: {
517
- value: string;
518
- system: "phone" | "email";
519
- }[] | undefined;
520
- };
333
+ resource: {
334
+ gender: string;
335
+ birthDate: string;
336
+ name?:
337
+ | {
338
+ family: string;
339
+ given: string[];
340
+ }[]
341
+ | undefined;
342
+ address?:
343
+ | {
344
+ state?: string | undefined;
345
+ line?: string[] | undefined;
346
+ city?: string | undefined;
347
+ postalCode?: string | undefined;
348
+ country?: string | undefined;
349
+ }[]
350
+ | undefined;
351
+ telecom?:
352
+ | {
353
+ value: string;
354
+ system: "phone" | "email";
355
+ }[]
356
+ | undefined;
357
+ };
521
358
  }[];
522
- }, {
359
+ },
360
+ {
523
361
  entry: {
524
- resource: {
525
- gender: string;
526
- name: {
527
- use: string;
528
- period: {
529
- start: string;
530
- end?: string | undefined;
531
- };
532
- family: string;
533
- given: string[];
534
- }[];
535
- address: {
536
- state: string;
537
- city: string;
538
- use: string;
539
- country: string;
540
- period: {
541
- start: string;
542
- end?: string | undefined;
543
- };
544
- line: string[];
545
- postalCode?: string | undefined;
546
- }[];
547
- birthDate: string;
548
- telecom?: {
549
- value: string;
550
- system: "phone" | "email";
551
- }[] | undefined;
552
- };
362
+ resource: {
363
+ gender: string;
364
+ birthDate: string;
365
+ name?:
366
+ | {
367
+ family: string;
368
+ given: string[];
369
+ }[]
370
+ | undefined;
371
+ address?:
372
+ | {
373
+ state?: string | undefined;
374
+ line?: string[] | undefined;
375
+ city?: string | undefined;
376
+ postalCode?: string | undefined;
377
+ country?: string | undefined;
378
+ }[]
379
+ | undefined;
380
+ telecom?:
381
+ | {
382
+ value: string;
383
+ system: "phone" | "email";
384
+ }[]
385
+ | undefined;
386
+ };
553
387
  }[];
554
- }>;
555
- //# sourceMappingURL=patient.d.ts.map
388
+ }
389
+ >;
390
+ export type PatientSearch = z.infer<typeof patientSearchSchema>;
391
+ //# sourceMappingURL=patient.d.ts.map