@metriport/shared 0.23.10 → 0.24.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/external/ehr/healthie/allergy.d.ts +144 -0
- package/dist/interface/external/ehr/healthie/allergy.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/allergy.js +24 -0
- package/dist/interface/external/ehr/healthie/allergy.js.map +1 -0
- package/dist/interface/external/ehr/healthie/condition.d.ts +140 -0
- package/dist/interface/external/ehr/healthie/condition.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/condition.js +19 -0
- package/dist/interface/external/ehr/healthie/condition.js.map +1 -0
- package/dist/interface/external/ehr/healthie/immunization.d.ts +108 -0
- package/dist/interface/external/ehr/healthie/immunization.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/immunization.js +19 -0
- package/dist/interface/external/ehr/healthie/immunization.js.map +1 -0
- package/dist/interface/external/ehr/healthie/index.d.ts +5 -0
- package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/index.js +5 -0
- package/dist/interface/external/ehr/healthie/index.js.map +1 -1
- package/dist/interface/external/ehr/healthie/lab.d.ts +492 -0
- package/dist/interface/external/ehr/healthie/lab.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/lab.js +33 -0
- package/dist/interface/external/ehr/healthie/lab.js.map +1 -0
- package/dist/interface/external/ehr/healthie/medication.d.ts +132 -0
- package/dist/interface/external/ehr/healthie/medication.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/medication.js +22 -0
- package/dist/interface/external/ehr/healthie/medication.js.map +1 -0
- package/dist/util/__tests__/base64.test.d.ts +2 -0
- package/dist/util/__tests__/base64.test.d.ts.map +1 -0
- package/dist/util/__tests__/base64.test.js +66 -0
- package/dist/util/__tests__/base64.test.js.map +1 -0
- package/dist/util/base64.d.ts +13 -0
- package/dist/util/base64.d.ts.map +1 -0
- package/dist/util/base64.js +27 -0
- package/dist/util/base64.js.map +1 -0
- package/dist/util/index.d.ts +5 -0
- package/dist/util/index.d.ts.map +1 -0
- package/dist/util/index.js +21 -0
- package/dist/util/index.js.map +1 -0
- package/dist/util/zod.d.ts +14 -0
- package/dist/util/zod.d.ts.map +1 -0
- package/dist/util/zod.js +52 -0
- package/dist/util/zod.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const labOrderObservationResultSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
interpretation: z.ZodEnum<["NORMAL", "ABNORMAL", "CRITICAL", "UNKNOWN"]>;
|
|
5
|
+
units: z.ZodNullable<z.ZodString>;
|
|
6
|
+
quantitative_result: z.ZodNullable<z.ZodString>;
|
|
7
|
+
reference_range: z.ZodNullable<z.ZodString>;
|
|
8
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
id: string;
|
|
11
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
12
|
+
units: string | null;
|
|
13
|
+
quantitative_result: string | null;
|
|
14
|
+
reference_range: string | null;
|
|
15
|
+
notes: string | null;
|
|
16
|
+
}, {
|
|
17
|
+
id: string;
|
|
18
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
19
|
+
units: string | null;
|
|
20
|
+
quantitative_result: string | null;
|
|
21
|
+
reference_range: string | null;
|
|
22
|
+
notes: string | null;
|
|
23
|
+
}>;
|
|
24
|
+
export type LabOrderObservationResult = z.infer<typeof labOrderObservationResultSchema>;
|
|
25
|
+
export declare const labOrderObservationRequestSchema: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
lab_analyte: z.ZodNullable<z.ZodString>;
|
|
28
|
+
lab_observation_results: z.ZodArray<z.ZodObject<{
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
interpretation: z.ZodEnum<["NORMAL", "ABNORMAL", "CRITICAL", "UNKNOWN"]>;
|
|
31
|
+
units: z.ZodNullable<z.ZodString>;
|
|
32
|
+
quantitative_result: z.ZodNullable<z.ZodString>;
|
|
33
|
+
reference_range: z.ZodNullable<z.ZodString>;
|
|
34
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
id: string;
|
|
37
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
38
|
+
units: string | null;
|
|
39
|
+
quantitative_result: string | null;
|
|
40
|
+
reference_range: string | null;
|
|
41
|
+
notes: string | null;
|
|
42
|
+
}, {
|
|
43
|
+
id: string;
|
|
44
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
45
|
+
units: string | null;
|
|
46
|
+
quantitative_result: string | null;
|
|
47
|
+
reference_range: string | null;
|
|
48
|
+
notes: string | null;
|
|
49
|
+
}>, "many">;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
id: string;
|
|
52
|
+
lab_analyte: string | null;
|
|
53
|
+
lab_observation_results: {
|
|
54
|
+
id: string;
|
|
55
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
56
|
+
units: string | null;
|
|
57
|
+
quantitative_result: string | null;
|
|
58
|
+
reference_range: string | null;
|
|
59
|
+
notes: string | null;
|
|
60
|
+
}[];
|
|
61
|
+
}, {
|
|
62
|
+
id: string;
|
|
63
|
+
lab_analyte: string | null;
|
|
64
|
+
lab_observation_results: {
|
|
65
|
+
id: string;
|
|
66
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
67
|
+
units: string | null;
|
|
68
|
+
quantitative_result: string | null;
|
|
69
|
+
reference_range: string | null;
|
|
70
|
+
notes: string | null;
|
|
71
|
+
}[];
|
|
72
|
+
}>;
|
|
73
|
+
export type LabOrderObservationRequest = z.infer<typeof labOrderObservationRequestSchema>;
|
|
74
|
+
export declare const labResultSchema: z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
lab_observation_requests: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
lab_analyte: z.ZodNullable<z.ZodString>;
|
|
79
|
+
lab_observation_results: z.ZodArray<z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
interpretation: z.ZodEnum<["NORMAL", "ABNORMAL", "CRITICAL", "UNKNOWN"]>;
|
|
82
|
+
units: z.ZodNullable<z.ZodString>;
|
|
83
|
+
quantitative_result: z.ZodNullable<z.ZodString>;
|
|
84
|
+
reference_range: z.ZodNullable<z.ZodString>;
|
|
85
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
id: string;
|
|
88
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
89
|
+
units: string | null;
|
|
90
|
+
quantitative_result: string | null;
|
|
91
|
+
reference_range: string | null;
|
|
92
|
+
notes: string | null;
|
|
93
|
+
}, {
|
|
94
|
+
id: string;
|
|
95
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
96
|
+
units: string | null;
|
|
97
|
+
quantitative_result: string | null;
|
|
98
|
+
reference_range: string | null;
|
|
99
|
+
notes: string | null;
|
|
100
|
+
}>, "many">;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
id: string;
|
|
103
|
+
lab_analyte: string | null;
|
|
104
|
+
lab_observation_results: {
|
|
105
|
+
id: string;
|
|
106
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
107
|
+
units: string | null;
|
|
108
|
+
quantitative_result: string | null;
|
|
109
|
+
reference_range: string | null;
|
|
110
|
+
notes: string | null;
|
|
111
|
+
}[];
|
|
112
|
+
}, {
|
|
113
|
+
id: string;
|
|
114
|
+
lab_analyte: string | null;
|
|
115
|
+
lab_observation_results: {
|
|
116
|
+
id: string;
|
|
117
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
118
|
+
units: string | null;
|
|
119
|
+
quantitative_result: string | null;
|
|
120
|
+
reference_range: string | null;
|
|
121
|
+
notes: string | null;
|
|
122
|
+
}[];
|
|
123
|
+
}>, "many">>;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
id: string;
|
|
126
|
+
lab_observation_requests: {
|
|
127
|
+
id: string;
|
|
128
|
+
lab_analyte: string | null;
|
|
129
|
+
lab_observation_results: {
|
|
130
|
+
id: string;
|
|
131
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
132
|
+
units: string | null;
|
|
133
|
+
quantitative_result: string | null;
|
|
134
|
+
reference_range: string | null;
|
|
135
|
+
notes: string | null;
|
|
136
|
+
}[];
|
|
137
|
+
}[] | null;
|
|
138
|
+
}, {
|
|
139
|
+
id: string;
|
|
140
|
+
lab_observation_requests: {
|
|
141
|
+
id: string;
|
|
142
|
+
lab_analyte: string | null;
|
|
143
|
+
lab_observation_results: {
|
|
144
|
+
id: string;
|
|
145
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
146
|
+
units: string | null;
|
|
147
|
+
quantitative_result: string | null;
|
|
148
|
+
reference_range: string | null;
|
|
149
|
+
notes: string | null;
|
|
150
|
+
}[];
|
|
151
|
+
}[] | null;
|
|
152
|
+
}>;
|
|
153
|
+
export type LabResult = z.infer<typeof labResultSchema>;
|
|
154
|
+
export declare const labOrderSchema: z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
status: z.ZodNullable<z.ZodString>;
|
|
157
|
+
test_date: z.ZodNullable<z.ZodString>;
|
|
158
|
+
lab_results: z.ZodArray<z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
lab_observation_requests: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
lab_analyte: z.ZodNullable<z.ZodString>;
|
|
163
|
+
lab_observation_results: z.ZodArray<z.ZodObject<{
|
|
164
|
+
id: z.ZodString;
|
|
165
|
+
interpretation: z.ZodEnum<["NORMAL", "ABNORMAL", "CRITICAL", "UNKNOWN"]>;
|
|
166
|
+
units: z.ZodNullable<z.ZodString>;
|
|
167
|
+
quantitative_result: z.ZodNullable<z.ZodString>;
|
|
168
|
+
reference_range: z.ZodNullable<z.ZodString>;
|
|
169
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
id: string;
|
|
172
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
173
|
+
units: string | null;
|
|
174
|
+
quantitative_result: string | null;
|
|
175
|
+
reference_range: string | null;
|
|
176
|
+
notes: string | null;
|
|
177
|
+
}, {
|
|
178
|
+
id: string;
|
|
179
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
180
|
+
units: string | null;
|
|
181
|
+
quantitative_result: string | null;
|
|
182
|
+
reference_range: string | null;
|
|
183
|
+
notes: string | null;
|
|
184
|
+
}>, "many">;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
id: string;
|
|
187
|
+
lab_analyte: string | null;
|
|
188
|
+
lab_observation_results: {
|
|
189
|
+
id: string;
|
|
190
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
191
|
+
units: string | null;
|
|
192
|
+
quantitative_result: string | null;
|
|
193
|
+
reference_range: string | null;
|
|
194
|
+
notes: string | null;
|
|
195
|
+
}[];
|
|
196
|
+
}, {
|
|
197
|
+
id: string;
|
|
198
|
+
lab_analyte: string | null;
|
|
199
|
+
lab_observation_results: {
|
|
200
|
+
id: string;
|
|
201
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
202
|
+
units: string | null;
|
|
203
|
+
quantitative_result: string | null;
|
|
204
|
+
reference_range: string | null;
|
|
205
|
+
notes: string | null;
|
|
206
|
+
}[];
|
|
207
|
+
}>, "many">>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
id: string;
|
|
210
|
+
lab_observation_requests: {
|
|
211
|
+
id: string;
|
|
212
|
+
lab_analyte: string | null;
|
|
213
|
+
lab_observation_results: {
|
|
214
|
+
id: string;
|
|
215
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
216
|
+
units: string | null;
|
|
217
|
+
quantitative_result: string | null;
|
|
218
|
+
reference_range: string | null;
|
|
219
|
+
notes: string | null;
|
|
220
|
+
}[];
|
|
221
|
+
}[] | null;
|
|
222
|
+
}, {
|
|
223
|
+
id: string;
|
|
224
|
+
lab_observation_requests: {
|
|
225
|
+
id: string;
|
|
226
|
+
lab_analyte: string | null;
|
|
227
|
+
lab_observation_results: {
|
|
228
|
+
id: string;
|
|
229
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
230
|
+
units: string | null;
|
|
231
|
+
quantitative_result: string | null;
|
|
232
|
+
reference_range: string | null;
|
|
233
|
+
notes: string | null;
|
|
234
|
+
}[];
|
|
235
|
+
}[] | null;
|
|
236
|
+
}>, "many">;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
id: string;
|
|
239
|
+
status: string | null;
|
|
240
|
+
test_date: string | null;
|
|
241
|
+
lab_results: {
|
|
242
|
+
id: string;
|
|
243
|
+
lab_observation_requests: {
|
|
244
|
+
id: string;
|
|
245
|
+
lab_analyte: string | null;
|
|
246
|
+
lab_observation_results: {
|
|
247
|
+
id: string;
|
|
248
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
249
|
+
units: string | null;
|
|
250
|
+
quantitative_result: string | null;
|
|
251
|
+
reference_range: string | null;
|
|
252
|
+
notes: string | null;
|
|
253
|
+
}[];
|
|
254
|
+
}[] | null;
|
|
255
|
+
}[];
|
|
256
|
+
}, {
|
|
257
|
+
id: string;
|
|
258
|
+
status: string | null;
|
|
259
|
+
test_date: string | null;
|
|
260
|
+
lab_results: {
|
|
261
|
+
id: string;
|
|
262
|
+
lab_observation_requests: {
|
|
263
|
+
id: string;
|
|
264
|
+
lab_analyte: string | null;
|
|
265
|
+
lab_observation_results: {
|
|
266
|
+
id: string;
|
|
267
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
268
|
+
units: string | null;
|
|
269
|
+
quantitative_result: string | null;
|
|
270
|
+
reference_range: string | null;
|
|
271
|
+
notes: string | null;
|
|
272
|
+
}[];
|
|
273
|
+
}[] | null;
|
|
274
|
+
}[];
|
|
275
|
+
}>;
|
|
276
|
+
export type LabOrder = z.infer<typeof labOrderSchema>;
|
|
277
|
+
export declare const labOrdersGraphqlSchema: z.ZodObject<{
|
|
278
|
+
data: z.ZodObject<{
|
|
279
|
+
labOrders: z.ZodArray<z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
status: z.ZodNullable<z.ZodString>;
|
|
282
|
+
test_date: z.ZodNullable<z.ZodString>;
|
|
283
|
+
lab_results: z.ZodArray<z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
lab_observation_requests: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
lab_analyte: z.ZodNullable<z.ZodString>;
|
|
288
|
+
lab_observation_results: z.ZodArray<z.ZodObject<{
|
|
289
|
+
id: z.ZodString;
|
|
290
|
+
interpretation: z.ZodEnum<["NORMAL", "ABNORMAL", "CRITICAL", "UNKNOWN"]>;
|
|
291
|
+
units: z.ZodNullable<z.ZodString>;
|
|
292
|
+
quantitative_result: z.ZodNullable<z.ZodString>;
|
|
293
|
+
reference_range: z.ZodNullable<z.ZodString>;
|
|
294
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
id: string;
|
|
297
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
298
|
+
units: string | null;
|
|
299
|
+
quantitative_result: string | null;
|
|
300
|
+
reference_range: string | null;
|
|
301
|
+
notes: string | null;
|
|
302
|
+
}, {
|
|
303
|
+
id: string;
|
|
304
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
305
|
+
units: string | null;
|
|
306
|
+
quantitative_result: string | null;
|
|
307
|
+
reference_range: string | null;
|
|
308
|
+
notes: string | null;
|
|
309
|
+
}>, "many">;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
id: string;
|
|
312
|
+
lab_analyte: string | null;
|
|
313
|
+
lab_observation_results: {
|
|
314
|
+
id: string;
|
|
315
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
316
|
+
units: string | null;
|
|
317
|
+
quantitative_result: string | null;
|
|
318
|
+
reference_range: string | null;
|
|
319
|
+
notes: string | null;
|
|
320
|
+
}[];
|
|
321
|
+
}, {
|
|
322
|
+
id: string;
|
|
323
|
+
lab_analyte: string | null;
|
|
324
|
+
lab_observation_results: {
|
|
325
|
+
id: string;
|
|
326
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
327
|
+
units: string | null;
|
|
328
|
+
quantitative_result: string | null;
|
|
329
|
+
reference_range: string | null;
|
|
330
|
+
notes: string | null;
|
|
331
|
+
}[];
|
|
332
|
+
}>, "many">>;
|
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
|
334
|
+
id: string;
|
|
335
|
+
lab_observation_requests: {
|
|
336
|
+
id: string;
|
|
337
|
+
lab_analyte: string | null;
|
|
338
|
+
lab_observation_results: {
|
|
339
|
+
id: string;
|
|
340
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
341
|
+
units: string | null;
|
|
342
|
+
quantitative_result: string | null;
|
|
343
|
+
reference_range: string | null;
|
|
344
|
+
notes: string | null;
|
|
345
|
+
}[];
|
|
346
|
+
}[] | null;
|
|
347
|
+
}, {
|
|
348
|
+
id: string;
|
|
349
|
+
lab_observation_requests: {
|
|
350
|
+
id: string;
|
|
351
|
+
lab_analyte: string | null;
|
|
352
|
+
lab_observation_results: {
|
|
353
|
+
id: string;
|
|
354
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
355
|
+
units: string | null;
|
|
356
|
+
quantitative_result: string | null;
|
|
357
|
+
reference_range: string | null;
|
|
358
|
+
notes: string | null;
|
|
359
|
+
}[];
|
|
360
|
+
}[] | null;
|
|
361
|
+
}>, "many">;
|
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
|
363
|
+
id: string;
|
|
364
|
+
status: string | null;
|
|
365
|
+
test_date: string | null;
|
|
366
|
+
lab_results: {
|
|
367
|
+
id: string;
|
|
368
|
+
lab_observation_requests: {
|
|
369
|
+
id: string;
|
|
370
|
+
lab_analyte: string | null;
|
|
371
|
+
lab_observation_results: {
|
|
372
|
+
id: string;
|
|
373
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
374
|
+
units: string | null;
|
|
375
|
+
quantitative_result: string | null;
|
|
376
|
+
reference_range: string | null;
|
|
377
|
+
notes: string | null;
|
|
378
|
+
}[];
|
|
379
|
+
}[] | null;
|
|
380
|
+
}[];
|
|
381
|
+
}, {
|
|
382
|
+
id: string;
|
|
383
|
+
status: string | null;
|
|
384
|
+
test_date: string | null;
|
|
385
|
+
lab_results: {
|
|
386
|
+
id: string;
|
|
387
|
+
lab_observation_requests: {
|
|
388
|
+
id: string;
|
|
389
|
+
lab_analyte: string | null;
|
|
390
|
+
lab_observation_results: {
|
|
391
|
+
id: string;
|
|
392
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
393
|
+
units: string | null;
|
|
394
|
+
quantitative_result: string | null;
|
|
395
|
+
reference_range: string | null;
|
|
396
|
+
notes: string | null;
|
|
397
|
+
}[];
|
|
398
|
+
}[] | null;
|
|
399
|
+
}[];
|
|
400
|
+
}>, "many">;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
402
|
+
labOrders: {
|
|
403
|
+
id: string;
|
|
404
|
+
status: string | null;
|
|
405
|
+
test_date: string | null;
|
|
406
|
+
lab_results: {
|
|
407
|
+
id: string;
|
|
408
|
+
lab_observation_requests: {
|
|
409
|
+
id: string;
|
|
410
|
+
lab_analyte: string | null;
|
|
411
|
+
lab_observation_results: {
|
|
412
|
+
id: string;
|
|
413
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
414
|
+
units: string | null;
|
|
415
|
+
quantitative_result: string | null;
|
|
416
|
+
reference_range: string | null;
|
|
417
|
+
notes: string | null;
|
|
418
|
+
}[];
|
|
419
|
+
}[] | null;
|
|
420
|
+
}[];
|
|
421
|
+
}[];
|
|
422
|
+
}, {
|
|
423
|
+
labOrders: {
|
|
424
|
+
id: string;
|
|
425
|
+
status: string | null;
|
|
426
|
+
test_date: string | null;
|
|
427
|
+
lab_results: {
|
|
428
|
+
id: string;
|
|
429
|
+
lab_observation_requests: {
|
|
430
|
+
id: string;
|
|
431
|
+
lab_analyte: string | null;
|
|
432
|
+
lab_observation_results: {
|
|
433
|
+
id: string;
|
|
434
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
435
|
+
units: string | null;
|
|
436
|
+
quantitative_result: string | null;
|
|
437
|
+
reference_range: string | null;
|
|
438
|
+
notes: string | null;
|
|
439
|
+
}[];
|
|
440
|
+
}[] | null;
|
|
441
|
+
}[];
|
|
442
|
+
}[];
|
|
443
|
+
}>;
|
|
444
|
+
}, "strip", z.ZodTypeAny, {
|
|
445
|
+
data: {
|
|
446
|
+
labOrders: {
|
|
447
|
+
id: string;
|
|
448
|
+
status: string | null;
|
|
449
|
+
test_date: string | null;
|
|
450
|
+
lab_results: {
|
|
451
|
+
id: string;
|
|
452
|
+
lab_observation_requests: {
|
|
453
|
+
id: string;
|
|
454
|
+
lab_analyte: string | null;
|
|
455
|
+
lab_observation_results: {
|
|
456
|
+
id: string;
|
|
457
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
458
|
+
units: string | null;
|
|
459
|
+
quantitative_result: string | null;
|
|
460
|
+
reference_range: string | null;
|
|
461
|
+
notes: string | null;
|
|
462
|
+
}[];
|
|
463
|
+
}[] | null;
|
|
464
|
+
}[];
|
|
465
|
+
}[];
|
|
466
|
+
};
|
|
467
|
+
}, {
|
|
468
|
+
data: {
|
|
469
|
+
labOrders: {
|
|
470
|
+
id: string;
|
|
471
|
+
status: string | null;
|
|
472
|
+
test_date: string | null;
|
|
473
|
+
lab_results: {
|
|
474
|
+
id: string;
|
|
475
|
+
lab_observation_requests: {
|
|
476
|
+
id: string;
|
|
477
|
+
lab_analyte: string | null;
|
|
478
|
+
lab_observation_results: {
|
|
479
|
+
id: string;
|
|
480
|
+
interpretation: "NORMAL" | "ABNORMAL" | "CRITICAL" | "UNKNOWN";
|
|
481
|
+
units: string | null;
|
|
482
|
+
quantitative_result: string | null;
|
|
483
|
+
reference_range: string | null;
|
|
484
|
+
notes: string | null;
|
|
485
|
+
}[];
|
|
486
|
+
}[] | null;
|
|
487
|
+
}[];
|
|
488
|
+
}[];
|
|
489
|
+
};
|
|
490
|
+
}>;
|
|
491
|
+
export type LabOrdersGraphql = z.infer<typeof labOrdersGraphqlSchema>;
|
|
492
|
+
//# sourceMappingURL=lab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lab.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/lab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;EAO1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.labOrdersGraphqlSchema = exports.labOrderSchema = exports.labResultSchema = exports.labOrderObservationRequestSchema = exports.labOrderObservationResultSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.labOrderObservationResultSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
interpretation: zod_1.z.enum(["NORMAL", "ABNORMAL", "CRITICAL", "UNKNOWN"]),
|
|
8
|
+
units: zod_1.z.string().nullable(),
|
|
9
|
+
quantitative_result: zod_1.z.string().nullable(),
|
|
10
|
+
reference_range: zod_1.z.string().nullable(),
|
|
11
|
+
notes: zod_1.z.string().nullable(),
|
|
12
|
+
});
|
|
13
|
+
exports.labOrderObservationRequestSchema = zod_1.z.object({
|
|
14
|
+
id: zod_1.z.string(),
|
|
15
|
+
lab_analyte: zod_1.z.string().nullable(),
|
|
16
|
+
lab_observation_results: exports.labOrderObservationResultSchema.array(),
|
|
17
|
+
});
|
|
18
|
+
exports.labResultSchema = zod_1.z.object({
|
|
19
|
+
id: zod_1.z.string(),
|
|
20
|
+
lab_observation_requests: exports.labOrderObservationRequestSchema.array().nullable(),
|
|
21
|
+
});
|
|
22
|
+
exports.labOrderSchema = zod_1.z.object({
|
|
23
|
+
id: zod_1.z.string(),
|
|
24
|
+
status: zod_1.z.string().nullable(),
|
|
25
|
+
test_date: zod_1.z.string().nullable(),
|
|
26
|
+
lab_results: exports.labResultSchema.array(),
|
|
27
|
+
});
|
|
28
|
+
exports.labOrdersGraphqlSchema = zod_1.z.object({
|
|
29
|
+
data: zod_1.z.object({
|
|
30
|
+
labOrders: exports.labOrderSchema.array(),
|
|
31
|
+
}),
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=lab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lab.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/lab.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,cAAc,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;IACrE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAGU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,uBAAuB,EAAE,uCAA+B,CAAC,KAAK,EAAE;CACjE,CAAC,CAAC;AAGU,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,wBAAwB,EAAE,wCAAgC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC9E,CAAC,CAAC;AAGU,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,uBAAe,CAAC,KAAK,EAAE;CACrC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,SAAS,EAAE,sBAAc,CAAC,KAAK,EAAE;KAClC,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const medicationSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
active: z.ZodNullable<z.ZodBoolean>;
|
|
5
|
+
name: z.ZodNullable<z.ZodString>;
|
|
6
|
+
code: z.ZodNullable<z.ZodString>;
|
|
7
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
8
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
9
|
+
directions: z.ZodNullable<z.ZodString>;
|
|
10
|
+
dosage: z.ZodNullable<z.ZodString>;
|
|
11
|
+
frequency: z.ZodNullable<z.ZodString>;
|
|
12
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
code: string | null;
|
|
15
|
+
name: string | null;
|
|
16
|
+
id: string;
|
|
17
|
+
active: boolean | null;
|
|
18
|
+
comment: string | null;
|
|
19
|
+
end_date: string | null;
|
|
20
|
+
start_date: string | null;
|
|
21
|
+
directions: string | null;
|
|
22
|
+
dosage: string | null;
|
|
23
|
+
frequency: string | null;
|
|
24
|
+
}, {
|
|
25
|
+
code: string | null;
|
|
26
|
+
name: string | null;
|
|
27
|
+
id: string;
|
|
28
|
+
active: boolean | null;
|
|
29
|
+
comment: string | null;
|
|
30
|
+
end_date: string | null;
|
|
31
|
+
start_date: string | null;
|
|
32
|
+
directions: string | null;
|
|
33
|
+
dosage: string | null;
|
|
34
|
+
frequency: string | null;
|
|
35
|
+
}>;
|
|
36
|
+
export type Medication = z.infer<typeof medicationSchema>;
|
|
37
|
+
export declare const medicationsGraphqlSchema: z.ZodObject<{
|
|
38
|
+
data: z.ZodObject<{
|
|
39
|
+
medications: z.ZodArray<z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
active: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
name: z.ZodNullable<z.ZodString>;
|
|
43
|
+
code: z.ZodNullable<z.ZodString>;
|
|
44
|
+
start_date: z.ZodNullable<z.ZodString>;
|
|
45
|
+
end_date: z.ZodNullable<z.ZodString>;
|
|
46
|
+
directions: z.ZodNullable<z.ZodString>;
|
|
47
|
+
dosage: z.ZodNullable<z.ZodString>;
|
|
48
|
+
frequency: z.ZodNullable<z.ZodString>;
|
|
49
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
code: string | null;
|
|
52
|
+
name: string | null;
|
|
53
|
+
id: string;
|
|
54
|
+
active: boolean | null;
|
|
55
|
+
comment: string | null;
|
|
56
|
+
end_date: string | null;
|
|
57
|
+
start_date: string | null;
|
|
58
|
+
directions: string | null;
|
|
59
|
+
dosage: string | null;
|
|
60
|
+
frequency: string | null;
|
|
61
|
+
}, {
|
|
62
|
+
code: string | null;
|
|
63
|
+
name: string | null;
|
|
64
|
+
id: string;
|
|
65
|
+
active: boolean | null;
|
|
66
|
+
comment: string | null;
|
|
67
|
+
end_date: string | null;
|
|
68
|
+
start_date: string | null;
|
|
69
|
+
directions: string | null;
|
|
70
|
+
dosage: string | null;
|
|
71
|
+
frequency: string | null;
|
|
72
|
+
}>, "many">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
medications: {
|
|
75
|
+
code: string | null;
|
|
76
|
+
name: string | null;
|
|
77
|
+
id: string;
|
|
78
|
+
active: boolean | null;
|
|
79
|
+
comment: string | null;
|
|
80
|
+
end_date: string | null;
|
|
81
|
+
start_date: string | null;
|
|
82
|
+
directions: string | null;
|
|
83
|
+
dosage: string | null;
|
|
84
|
+
frequency: string | null;
|
|
85
|
+
}[];
|
|
86
|
+
}, {
|
|
87
|
+
medications: {
|
|
88
|
+
code: string | null;
|
|
89
|
+
name: string | null;
|
|
90
|
+
id: string;
|
|
91
|
+
active: boolean | null;
|
|
92
|
+
comment: string | null;
|
|
93
|
+
end_date: string | null;
|
|
94
|
+
start_date: string | null;
|
|
95
|
+
directions: string | null;
|
|
96
|
+
dosage: string | null;
|
|
97
|
+
frequency: string | null;
|
|
98
|
+
}[];
|
|
99
|
+
}>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
data: {
|
|
102
|
+
medications: {
|
|
103
|
+
code: string | null;
|
|
104
|
+
name: string | null;
|
|
105
|
+
id: string;
|
|
106
|
+
active: boolean | null;
|
|
107
|
+
comment: string | null;
|
|
108
|
+
end_date: string | null;
|
|
109
|
+
start_date: string | null;
|
|
110
|
+
directions: string | null;
|
|
111
|
+
dosage: string | null;
|
|
112
|
+
frequency: string | null;
|
|
113
|
+
}[];
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
data: {
|
|
117
|
+
medications: {
|
|
118
|
+
code: string | null;
|
|
119
|
+
name: string | null;
|
|
120
|
+
id: string;
|
|
121
|
+
active: boolean | null;
|
|
122
|
+
comment: string | null;
|
|
123
|
+
end_date: string | null;
|
|
124
|
+
start_date: string | null;
|
|
125
|
+
directions: string | null;
|
|
126
|
+
dosage: string | null;
|
|
127
|
+
frequency: string | null;
|
|
128
|
+
}[];
|
|
129
|
+
};
|
|
130
|
+
}>;
|
|
131
|
+
export type MedicationsGraphql = z.infer<typeof medicationsGraphqlSchema>;
|
|
132
|
+
//# sourceMappingURL=medication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medication.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/medication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|