@metriport/shared 0.23.3 → 0.23.5-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/domain/__tests__/dob.test.js +2 -2
- package/dist/domain/__tests__/dob.test.js.map +1 -1
- package/dist/domain/dob.d.ts +7 -0
- package/dist/domain/dob.d.ts.map +1 -1
- package/dist/domain/dob.js +10 -2
- package/dist/domain/dob.js.map +1 -1
- package/dist/domain/patient/patient-import.d.ts +83 -104
- package/dist/interface/external/athenahealth/appointment.d.ts +63 -0
- package/dist/interface/external/athenahealth/appointment.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/appointment.js +18 -0
- package/dist/interface/external/athenahealth/appointment.js.map +1 -0
- package/dist/interface/external/athenahealth/cx-mapping.d.ts +10 -0
- package/dist/interface/external/athenahealth/cx-mapping.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/cx-mapping.js +8 -0
- package/dist/interface/external/athenahealth/cx-mapping.js.map +1 -0
- package/dist/interface/external/athenahealth/department.d.ts +28 -0
- package/dist/interface/external/athenahealth/department.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/department.js +11 -0
- package/dist/interface/external/athenahealth/department.js.map +1 -0
- package/dist/interface/external/athenahealth/index.d.ts +10 -0
- package/dist/interface/external/athenahealth/index.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/index.js +26 -0
- package/dist/interface/external/athenahealth/index.js.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts +25 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.js +13 -0
- package/dist/interface/external/athenahealth/jwt-token.js.map +1 -0
- package/dist/interface/external/athenahealth/medication.d.ts +50 -0
- package/dist/interface/external/athenahealth/medication.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/medication.js +19 -0
- package/dist/interface/external/athenahealth/medication.js.map +1 -0
- package/dist/interface/external/athenahealth/patient.d.ts +250 -0
- package/dist/interface/external/athenahealth/patient.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/patient.js +34 -0
- package/dist/interface/external/athenahealth/patient.js.map +1 -0
- package/dist/interface/external/athenahealth/problem.d.ts +27 -0
- package/dist/interface/external/athenahealth/problem.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/problem.js +14 -0
- package/dist/interface/external/athenahealth/problem.js.map +1 -0
- package/dist/interface/external/athenahealth/subscription.d.ts +20 -0
- package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/subscription.js +11 -0
- package/dist/interface/external/athenahealth/subscription.js.map +1 -0
- package/dist/interface/external/athenahealth/vitals.d.ts +82 -0
- package/dist/interface/external/athenahealth/vitals.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/vitals.js +15 -0
- package/dist/interface/external/athenahealth/vitals.js.map +1 -0
- package/dist/interface/external/canvas/appointment.d.ts +68 -0
- package/dist/interface/external/canvas/appointment.d.ts.map +1 -0
- package/dist/interface/external/canvas/appointment.js +15 -0
- package/dist/interface/external/canvas/appointment.js.map +1 -0
- package/dist/interface/external/canvas/index.d.ts +3 -0
- package/dist/interface/external/canvas/index.d.ts.map +1 -0
- package/dist/interface/external/canvas/index.js +19 -0
- package/dist/interface/external/canvas/index.js.map +1 -0
- package/dist/interface/external/canvas/jwt-token.d.ts +31 -0
- package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/canvas/jwt-token.js +17 -0
- package/dist/interface/external/canvas/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/fhir-resource.d.ts +29 -37
- package/dist/interface/external/ehr/fhir-resource.d.ts.map +1 -1
- package/dist/interface/external/ehr/fhir-resource.js +8 -10
- package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
- package/dist/interface/external/elation/appointment.d.ts +68 -0
- package/dist/interface/external/elation/appointment.d.ts.map +1 -0
- package/dist/interface/external/elation/appointment.js +15 -0
- package/dist/interface/external/elation/appointment.js.map +1 -0
- package/dist/interface/external/elation/index.d.ts +4 -0
- package/dist/interface/external/elation/index.d.ts.map +1 -0
- package/dist/interface/external/elation/index.js +20 -0
- package/dist/interface/external/elation/index.js.map +1 -0
- package/dist/interface/external/elation/jwt-token.d.ts +20 -0
- package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/elation/jwt-token.js +13 -0
- package/dist/interface/external/elation/jwt-token.js.map +1 -0
- package/dist/interface/external/elation/patient.d.ts +96 -0
- package/dist/interface/external/elation/patient.d.ts.map +1 -0
- package/dist/interface/external/elation/patient.js +33 -0
- package/dist/interface/external/elation/patient.js.map +1 -0
- package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
- package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
- package/dist/interface/external/shared/ehr/patient.js +35 -0
- package/dist/interface/external/shared/ehr/patient.js.map +1 -0
- package/dist/interface/internal/consolidated.d.ts +3 -3
- package/dist/interface/internal/consolidated.js +1 -1
- package/dist/interface/internal/consolidated.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientSchema: z.ZodObject<{
|
|
3
|
+
gender: z.ZodString;
|
|
4
|
+
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
+
family: z.ZodOptional<z.ZodString>;
|
|
6
|
+
given: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
family?: string | undefined;
|
|
9
|
+
given?: string[] | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
family?: string | undefined;
|
|
12
|
+
given?: string[] | undefined;
|
|
13
|
+
}>, "many">>;
|
|
14
|
+
address: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15
|
+
state: z.ZodOptional<z.ZodString>;
|
|
16
|
+
line: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
+
city: z.ZodOptional<z.ZodString>;
|
|
18
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
19
|
+
country: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
state?: string | undefined;
|
|
22
|
+
city?: string | undefined;
|
|
23
|
+
line?: string[] | undefined;
|
|
24
|
+
postalCode?: string | undefined;
|
|
25
|
+
country?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
state?: string | undefined;
|
|
28
|
+
city?: string | undefined;
|
|
29
|
+
line?: string[] | undefined;
|
|
30
|
+
postalCode?: string | undefined;
|
|
31
|
+
country?: string | undefined;
|
|
32
|
+
}>, "many">>;
|
|
33
|
+
birthDate: z.ZodString;
|
|
34
|
+
telecom: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
value: z.ZodOptional<z.ZodString>;
|
|
36
|
+
system: z.ZodOptional<z.ZodEnum<["phone", "email"]>>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
value?: string | undefined;
|
|
39
|
+
system?: "phone" | "email" | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
value?: string | undefined;
|
|
42
|
+
system?: "phone" | "email" | undefined;
|
|
43
|
+
}>, "many">>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
gender: string;
|
|
46
|
+
birthDate: string;
|
|
47
|
+
name?: {
|
|
48
|
+
family?: string | undefined;
|
|
49
|
+
given?: string[] | undefined;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
address?: {
|
|
52
|
+
state?: string | undefined;
|
|
53
|
+
city?: string | undefined;
|
|
54
|
+
line?: string[] | undefined;
|
|
55
|
+
postalCode?: string | undefined;
|
|
56
|
+
country?: string | undefined;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
telecom?: {
|
|
59
|
+
value?: string | undefined;
|
|
60
|
+
system?: "phone" | "email" | undefined;
|
|
61
|
+
}[] | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
gender: string;
|
|
64
|
+
birthDate: string;
|
|
65
|
+
name?: {
|
|
66
|
+
family?: string | undefined;
|
|
67
|
+
given?: string[] | undefined;
|
|
68
|
+
}[] | undefined;
|
|
69
|
+
address?: {
|
|
70
|
+
state?: string | undefined;
|
|
71
|
+
city?: string | undefined;
|
|
72
|
+
line?: string[] | undefined;
|
|
73
|
+
postalCode?: string | undefined;
|
|
74
|
+
country?: string | undefined;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
telecom?: {
|
|
77
|
+
value?: string | undefined;
|
|
78
|
+
system?: "phone" | "email" | undefined;
|
|
79
|
+
}[] | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
export type Patient = z.infer<typeof patientSchema>;
|
|
82
|
+
export declare const patientSearchSchema: z.ZodObject<{
|
|
83
|
+
entry: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
resource: z.ZodObject<{
|
|
85
|
+
gender: z.ZodString;
|
|
86
|
+
name: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
|
+
family: z.ZodOptional<z.ZodString>;
|
|
88
|
+
given: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
family?: string | undefined;
|
|
91
|
+
given?: string[] | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
family?: string | undefined;
|
|
94
|
+
given?: string[] | undefined;
|
|
95
|
+
}>, "many">>;
|
|
96
|
+
address: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
|
+
state: z.ZodOptional<z.ZodString>;
|
|
98
|
+
line: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
99
|
+
city: z.ZodOptional<z.ZodString>;
|
|
100
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
101
|
+
country: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
state?: string | undefined;
|
|
104
|
+
city?: string | undefined;
|
|
105
|
+
line?: string[] | undefined;
|
|
106
|
+
postalCode?: string | undefined;
|
|
107
|
+
country?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
state?: string | undefined;
|
|
110
|
+
city?: string | undefined;
|
|
111
|
+
line?: string[] | undefined;
|
|
112
|
+
postalCode?: string | undefined;
|
|
113
|
+
country?: string | undefined;
|
|
114
|
+
}>, "many">>;
|
|
115
|
+
birthDate: z.ZodString;
|
|
116
|
+
telecom: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
|
+
value: z.ZodOptional<z.ZodString>;
|
|
118
|
+
system: z.ZodOptional<z.ZodEnum<["phone", "email"]>>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
value?: string | undefined;
|
|
121
|
+
system?: "phone" | "email" | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
value?: string | undefined;
|
|
124
|
+
system?: "phone" | "email" | undefined;
|
|
125
|
+
}>, "many">>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
gender: string;
|
|
128
|
+
birthDate: string;
|
|
129
|
+
name?: {
|
|
130
|
+
family?: string | undefined;
|
|
131
|
+
given?: string[] | undefined;
|
|
132
|
+
}[] | undefined;
|
|
133
|
+
address?: {
|
|
134
|
+
state?: string | undefined;
|
|
135
|
+
city?: string | undefined;
|
|
136
|
+
line?: string[] | undefined;
|
|
137
|
+
postalCode?: string | undefined;
|
|
138
|
+
country?: string | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
telecom?: {
|
|
141
|
+
value?: string | undefined;
|
|
142
|
+
system?: "phone" | "email" | undefined;
|
|
143
|
+
}[] | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
gender: string;
|
|
146
|
+
birthDate: string;
|
|
147
|
+
name?: {
|
|
148
|
+
family?: string | undefined;
|
|
149
|
+
given?: string[] | undefined;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
address?: {
|
|
152
|
+
state?: string | undefined;
|
|
153
|
+
city?: string | undefined;
|
|
154
|
+
line?: string[] | undefined;
|
|
155
|
+
postalCode?: string | undefined;
|
|
156
|
+
country?: string | undefined;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
telecom?: {
|
|
159
|
+
value?: string | undefined;
|
|
160
|
+
system?: "phone" | "email" | undefined;
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
resource: {
|
|
165
|
+
gender: string;
|
|
166
|
+
birthDate: string;
|
|
167
|
+
name?: {
|
|
168
|
+
family?: string | undefined;
|
|
169
|
+
given?: string[] | undefined;
|
|
170
|
+
}[] | undefined;
|
|
171
|
+
address?: {
|
|
172
|
+
state?: string | undefined;
|
|
173
|
+
city?: string | undefined;
|
|
174
|
+
line?: string[] | undefined;
|
|
175
|
+
postalCode?: string | undefined;
|
|
176
|
+
country?: string | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
telecom?: {
|
|
179
|
+
value?: string | undefined;
|
|
180
|
+
system?: "phone" | "email" | undefined;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
resource: {
|
|
185
|
+
gender: string;
|
|
186
|
+
birthDate: string;
|
|
187
|
+
name?: {
|
|
188
|
+
family?: string | undefined;
|
|
189
|
+
given?: string[] | undefined;
|
|
190
|
+
}[] | undefined;
|
|
191
|
+
address?: {
|
|
192
|
+
state?: string | undefined;
|
|
193
|
+
city?: string | undefined;
|
|
194
|
+
line?: string[] | undefined;
|
|
195
|
+
postalCode?: string | undefined;
|
|
196
|
+
country?: string | undefined;
|
|
197
|
+
}[] | undefined;
|
|
198
|
+
telecom?: {
|
|
199
|
+
value?: string | undefined;
|
|
200
|
+
system?: "phone" | "email" | undefined;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
};
|
|
203
|
+
}>, "many">>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
entry?: {
|
|
206
|
+
resource: {
|
|
207
|
+
gender: string;
|
|
208
|
+
birthDate: string;
|
|
209
|
+
name?: {
|
|
210
|
+
family?: string | undefined;
|
|
211
|
+
given?: string[] | undefined;
|
|
212
|
+
}[] | undefined;
|
|
213
|
+
address?: {
|
|
214
|
+
state?: string | undefined;
|
|
215
|
+
city?: string | undefined;
|
|
216
|
+
line?: string[] | undefined;
|
|
217
|
+
postalCode?: string | undefined;
|
|
218
|
+
country?: string | undefined;
|
|
219
|
+
}[] | undefined;
|
|
220
|
+
telecom?: {
|
|
221
|
+
value?: string | undefined;
|
|
222
|
+
system?: "phone" | "email" | undefined;
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
};
|
|
225
|
+
}[] | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
entry?: {
|
|
228
|
+
resource: {
|
|
229
|
+
gender: string;
|
|
230
|
+
birthDate: string;
|
|
231
|
+
name?: {
|
|
232
|
+
family?: string | undefined;
|
|
233
|
+
given?: string[] | undefined;
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
address?: {
|
|
236
|
+
state?: string | undefined;
|
|
237
|
+
city?: string | undefined;
|
|
238
|
+
line?: string[] | undefined;
|
|
239
|
+
postalCode?: string | undefined;
|
|
240
|
+
country?: string | undefined;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
telecom?: {
|
|
243
|
+
value?: string | undefined;
|
|
244
|
+
system?: "phone" | "email" | undefined;
|
|
245
|
+
}[] | undefined;
|
|
246
|
+
};
|
|
247
|
+
}[] | undefined;
|
|
248
|
+
}>;
|
|
249
|
+
export type PatientSearch = z.infer<typeof patientSearchSchema>;
|
|
250
|
+
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/shared/ehr/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientSearchSchema = exports.patientSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const address = zod_1.z.object({
|
|
6
|
+
state: zod_1.z.string().optional(),
|
|
7
|
+
line: zod_1.z.string().array().optional(),
|
|
8
|
+
city: zod_1.z.string().optional(),
|
|
9
|
+
postalCode: zod_1.z.string().optional(),
|
|
10
|
+
country: zod_1.z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
const telecome = zod_1.z.object({
|
|
13
|
+
value: zod_1.z.string().optional(),
|
|
14
|
+
system: zod_1.z.enum(["phone", "email"]).optional(),
|
|
15
|
+
});
|
|
16
|
+
const name = zod_1.z.object({
|
|
17
|
+
family: zod_1.z.string().optional(),
|
|
18
|
+
given: zod_1.z.string().array().optional(),
|
|
19
|
+
});
|
|
20
|
+
exports.patientSchema = zod_1.z.object({
|
|
21
|
+
gender: zod_1.z.string(),
|
|
22
|
+
name: name.array().optional(),
|
|
23
|
+
address: address.array().optional(),
|
|
24
|
+
birthDate: zod_1.z.string(),
|
|
25
|
+
telecom: telecome.array().optional(),
|
|
26
|
+
});
|
|
27
|
+
exports.patientSearchSchema = zod_1.z.object({
|
|
28
|
+
entry: zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
resource: exports.patientSchema,
|
|
31
|
+
})
|
|
32
|
+
.array()
|
|
33
|
+
.optional(),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../src/interface/external/shared/ehr/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,CAAC;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IACxB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,OAAC,CAAC,MAAM,CAAC;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,OAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,qBAAa;KACxB,CAAC;SACD,KAAK,EAAE;SACP,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
|
@@ -3,7 +3,7 @@ export declare const internalSendConsolidatedSchema: z.ZodObject<{
|
|
|
3
3
|
bundleLocation: z.ZodString;
|
|
4
4
|
bundleFilename: z.ZodString;
|
|
5
5
|
requestId: z.ZodString;
|
|
6
|
-
conversionType: z.
|
|
6
|
+
conversionType: z.ZodEnum<["html", "pdf", "json"]>;
|
|
7
7
|
resources: z.ZodOptional<z.ZodArray<z.ZodEnum<["Account", "AllergyIntolerance", "Appointment", "AppointmentResponse", "AuditEvent", "Basic", "BodyStructure", "CarePlan", "CareTeam", "ChargeItem", "Claim", "ClaimResponse", "ClinicalImpression", "Communication", "CommunicationRequest", "Composition", "Condition", "Consent", "Contract", "Coverage", "CoverageEligibilityRequest", "CoverageEligibilityResponse", "DetectedIssue", "Device", "DeviceRequest", "DeviceUseStatement", "DiagnosticReport", "DocumentManifest", "DocumentReference", "Encounter", "EnrollmentRequest", "EpisodeOfCare", "ExplanationOfBenefit", "FamilyMemberHistory", "Flag", "Goal", "GuidanceResponse", "ImagingStudy", "Immunization", "ImmunizationEvaluation", "ImmunizationRecommendation", "Invoice", "List", "MeasureReport", "Media", "MedicationAdministration", "MedicationDispense", "MedicationRequest", "MedicationStatement", "MolecularSequence", "NutritionOrder", "Observation", "Person", "Procedure", "Provenance", "QuestionnaireResponse", "RelatedPerson", "RequestGroup", "ResearchSubject", "RiskAssessment", "ServiceRequest", "Specimen", "AdverseEvent", "Task", "Location", "Organization", "Patient", "Practitioner", "Binary"]>, "many">>;
|
|
8
8
|
dateFrom: z.ZodOptional<z.ZodString>;
|
|
9
9
|
dateTo: z.ZodOptional<z.ZodString>;
|
|
@@ -12,7 +12,7 @@ export declare const internalSendConsolidatedSchema: z.ZodObject<{
|
|
|
12
12
|
requestId: string;
|
|
13
13
|
bundleLocation: string;
|
|
14
14
|
bundleFilename: string;
|
|
15
|
-
conversionType
|
|
15
|
+
conversionType: "html" | "pdf" | "json";
|
|
16
16
|
resources?: ("Organization" | "Account" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Person" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "AdverseEvent" | "Task" | "Location" | "Patient" | "Practitioner" | "Binary")[] | undefined;
|
|
17
17
|
dateFrom?: string | undefined;
|
|
18
18
|
dateTo?: string | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const internalSendConsolidatedSchema: z.ZodObject<{
|
|
|
21
21
|
requestId: string;
|
|
22
22
|
bundleLocation: string;
|
|
23
23
|
bundleFilename: string;
|
|
24
|
-
conversionType
|
|
24
|
+
conversionType: "html" | "pdf" | "json";
|
|
25
25
|
resources?: ("Organization" | "Account" | "AllergyIntolerance" | "Appointment" | "AppointmentResponse" | "AuditEvent" | "Basic" | "BodyStructure" | "CarePlan" | "CareTeam" | "ChargeItem" | "Claim" | "ClaimResponse" | "ClinicalImpression" | "Communication" | "CommunicationRequest" | "Composition" | "Condition" | "Consent" | "Contract" | "Coverage" | "CoverageEligibilityRequest" | "CoverageEligibilityResponse" | "DetectedIssue" | "Device" | "DeviceRequest" | "DeviceUseStatement" | "DiagnosticReport" | "DocumentManifest" | "DocumentReference" | "Encounter" | "EnrollmentRequest" | "EpisodeOfCare" | "ExplanationOfBenefit" | "FamilyMemberHistory" | "Flag" | "Goal" | "GuidanceResponse" | "ImagingStudy" | "Immunization" | "ImmunizationEvaluation" | "ImmunizationRecommendation" | "Invoice" | "List" | "MeasureReport" | "Media" | "MedicationAdministration" | "MedicationDispense" | "MedicationRequest" | "MedicationStatement" | "MolecularSequence" | "NutritionOrder" | "Observation" | "Person" | "Procedure" | "Provenance" | "QuestionnaireResponse" | "RelatedPerson" | "RequestGroup" | "ResearchSubject" | "RiskAssessment" | "ServiceRequest" | "Specimen" | "AdverseEvent" | "Task" | "Location" | "Patient" | "Practitioner" | "Binary")[] | undefined;
|
|
26
26
|
dateFrom?: string | undefined;
|
|
27
27
|
dateTo?: string | undefined;
|
|
@@ -7,7 +7,7 @@ exports.internalSendConsolidatedSchema = zod_1.z.object({
|
|
|
7
7
|
bundleLocation: zod_1.z.string(),
|
|
8
8
|
bundleFilename: zod_1.z.string(),
|
|
9
9
|
requestId: zod_1.z.string(),
|
|
10
|
-
conversionType: zod_1.z.enum(medical_1.consolidationConversionType)
|
|
10
|
+
conversionType: zod_1.z.enum(medical_1.consolidationConversionType),
|
|
11
11
|
resources: zod_1.z.array(zod_1.z.enum(medical_1.resourceTypeForConsolidation)).optional(),
|
|
12
12
|
dateFrom: zod_1.z.string().optional(),
|
|
13
13
|
dateTo: zod_1.z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidated.js","sourceRoot":"","sources":["../../../src/interface/internal/consolidated.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA0F;AAE7E,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,OAAC,CAAC,IAAI,CAAC,qCAA2B,CAAC
|
|
1
|
+
{"version":3,"file":"consolidated.js","sourceRoot":"","sources":["../../../src/interface/internal/consolidated.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,2CAA0F;AAE7E,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,OAAC,CAAC,IAAI,CAAC,qCAA2B,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,IAAI,CAAC,sCAA4B,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,aAAa,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/shared",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.5-alpha.0",
|
|
4
4
|
"description": "Common code shared across packages - by Metriport Inc.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"ts-jest": "29.1.1",
|
|
111
111
|
"typescript": "^4.9.5"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "4e18c645363e007abff1e6d7eaeab47b0e17a3c5"
|
|
114
114
|
}
|