@metriport/shared 0.23.10-alpha.0 → 0.23.11
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/job/types.d.ts +1 -1
- package/dist/domain/job/types.d.ts.map +1 -1
- package/dist/domain/organization.d.ts.map +1 -1
- package/dist/domain/organization.js +2 -0
- package/dist/domain/organization.js.map +1 -1
- package/dist/domain/patient/patient-import.d.ts +131 -0
- package/dist/domain/patient/patient-import.d.ts.map +1 -0
- package/dist/domain/patient/patient-import.js +32 -0
- package/dist/domain/patient/patient-import.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.d.ts +2 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js +66 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +47 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.js +32 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/utils.d.ts +11 -0
- package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/utils.js +43 -0
- package/dist/domain/patient/patient-monitoring/utils.js.map +1 -0
- 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/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/interface/external/ehr/resource-diff.d.ts +7 -0
- package/dist/interface/external/ehr/resource-diff.d.ts.map +1 -0
- package/dist/interface/external/ehr/resource-diff.js +12 -0
- package/dist/interface/external/ehr/resource-diff.js.map +1 -0
- 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/external/surescripts/payment-code.d.ts +8 -0
- package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -1
- package/dist/interface/external/surescripts/payment-code.js +54 -1
- package/dist/interface/external/surescripts/payment-code.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"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
export declare function getPaymentCodeName(paymentCode: string): PaymentCodeName | undefined;
|
|
1
2
|
export declare const PaymentCodes: readonly ["01", "02", "03", "04", "05", "06", "07", "99"];
|
|
2
3
|
export declare const PaymentCodeNames: readonly ["Private Pay", "Medicaid", "Medicare", "Commercial Insurance", "Military Installations and VA", "Workers' Compensation", "Indian Nations", "Other"];
|
|
3
4
|
export type PaymentCode = (typeof PaymentCodes)[number];
|
|
4
5
|
export type PaymentCodeName = (typeof PaymentCodeNames)[number];
|
|
5
6
|
export declare const PaymentCodeName: Record<PaymentCode, PaymentCodeName>;
|
|
7
|
+
export declare function getSourceOfPaymentCode(paymentCode: string): SourceOfPaymentCode | undefined;
|
|
8
|
+
export declare function getSourceOfPaymentName(sourceOfPaymentCode: string): string | undefined;
|
|
9
|
+
declare const SourceOfPaymentCodes: readonly ["1", "2", "3", "312", "33", "4", "5", "6", "7", "8", "89", "95", "99"];
|
|
10
|
+
export type SourceOfPaymentCode = (typeof SourceOfPaymentCodes)[number];
|
|
11
|
+
export declare const SourceOfPaymentName: Record<SourceOfPaymentCode, string>;
|
|
12
|
+
export declare const PaymentCodeToSourceOfPaymentCode: Record<PaymentCode, SourceOfPaymentCode>;
|
|
13
|
+
export {};
|
|
6
14
|
//# sourceMappingURL=payment-code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-code.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/payment-code.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,2DAA4D,CAAC;AACtF,eAAO,MAAM,gBAAgB,+JASnB,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,WAAW,EAAE,eAAe,CAShE,CAAC"}
|
|
1
|
+
{"version":3,"file":"payment-code.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/payment-code.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAEnF;AAED,eAAO,MAAM,YAAY,2DAA4D,CAAC;AACtF,eAAO,MAAM,gBAAgB,+JASnB,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,WAAW,EAAE,eAAe,CAShE,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE3F;AAED,wBAAgB,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEtF;AAGD,QAAA,MAAM,oBAAoB,kFAchB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAcnE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,WAAW,EAAE,mBAAmB,CASrF,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentCodeName = exports.PaymentCodeNames = exports.PaymentCodes = void 0;
|
|
3
|
+
exports.PaymentCodeToSourceOfPaymentCode = exports.SourceOfPaymentName = exports.getSourceOfPaymentName = exports.getSourceOfPaymentCode = exports.PaymentCodeName = exports.PaymentCodeNames = exports.PaymentCodes = exports.getPaymentCodeName = void 0;
|
|
4
|
+
function getPaymentCodeName(paymentCode) {
|
|
5
|
+
return exports.PaymentCodeName[paymentCode];
|
|
6
|
+
}
|
|
7
|
+
exports.getPaymentCodeName = getPaymentCodeName;
|
|
4
8
|
exports.PaymentCodes = ["01", "02", "03", "04", "05", "06", "07", "99"];
|
|
5
9
|
exports.PaymentCodeNames = [
|
|
6
10
|
"Private Pay",
|
|
@@ -22,4 +26,53 @@ exports.PaymentCodeName = {
|
|
|
22
26
|
"07": "Indian Nations",
|
|
23
27
|
"99": "Other",
|
|
24
28
|
};
|
|
29
|
+
function getSourceOfPaymentCode(paymentCode) {
|
|
30
|
+
return exports.PaymentCodeToSourceOfPaymentCode[paymentCode];
|
|
31
|
+
}
|
|
32
|
+
exports.getSourceOfPaymentCode = getSourceOfPaymentCode;
|
|
33
|
+
function getSourceOfPaymentName(sourceOfPaymentCode) {
|
|
34
|
+
return exports.SourceOfPaymentName[sourceOfPaymentCode];
|
|
35
|
+
}
|
|
36
|
+
exports.getSourceOfPaymentName = getSourceOfPaymentName;
|
|
37
|
+
// https://www.nahdo.org/sopt
|
|
38
|
+
const SourceOfPaymentCodes = [
|
|
39
|
+
"1",
|
|
40
|
+
"2",
|
|
41
|
+
"3",
|
|
42
|
+
"312",
|
|
43
|
+
"33",
|
|
44
|
+
"4",
|
|
45
|
+
"5",
|
|
46
|
+
"6",
|
|
47
|
+
"7",
|
|
48
|
+
"8",
|
|
49
|
+
"89",
|
|
50
|
+
"95",
|
|
51
|
+
"99",
|
|
52
|
+
];
|
|
53
|
+
exports.SourceOfPaymentName = {
|
|
54
|
+
"1": "Medicare",
|
|
55
|
+
"2": "Medicaid",
|
|
56
|
+
"3": "Government",
|
|
57
|
+
"4": "Department of Corrections",
|
|
58
|
+
"5": "Private Health Insurance",
|
|
59
|
+
"6": "Blue Cross/Blue Shield",
|
|
60
|
+
"7": "Managed Care",
|
|
61
|
+
"8": "Private Pay",
|
|
62
|
+
"89": "No Payment",
|
|
63
|
+
"95": "Worker's Compensation",
|
|
64
|
+
"99": "No code available",
|
|
65
|
+
"33": "Indian Health Service",
|
|
66
|
+
"312": "Military Treatment Facility",
|
|
67
|
+
};
|
|
68
|
+
exports.PaymentCodeToSourceOfPaymentCode = {
|
|
69
|
+
"01": "5",
|
|
70
|
+
"02": "2",
|
|
71
|
+
"03": "1",
|
|
72
|
+
"04": "5",
|
|
73
|
+
"05": "312",
|
|
74
|
+
"06": "95",
|
|
75
|
+
"07": "33",
|
|
76
|
+
"99": "99", // other
|
|
77
|
+
};
|
|
25
78
|
//# sourceMappingURL=payment-code.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-code.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/payment-code.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"payment-code.js","sourceRoot":"","sources":["../../../../src/interface/external/surescripts/payment-code.ts"],"names":[],"mappings":";;;AAAA,SAAgB,kBAAkB,CAAC,WAAmB;IACpD,OAAO,uBAAe,CAAC,WAA0B,CAAC,CAAC;AACrD,CAAC;AAFD,gDAEC;AAEY,QAAA,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACzE,QAAA,gBAAgB,GAAG;IAC9B,aAAa;IACb,UAAU;IACV,UAAU;IACV,sBAAsB;IACtB,+BAA+B;IAC/B,uBAAuB;IACvB,gBAAgB;IAChB,OAAO;CACC,CAAC;AAIE,QAAA,eAAe,GAAyC;IACnE,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,OAAO;CACd,CAAC;AAEF,SAAgB,sBAAsB,CAAC,WAAmB;IACxD,OAAO,wCAAgC,CAAC,WAA0B,CAAC,CAAC;AACtE,CAAC;AAFD,wDAEC;AAED,SAAgB,sBAAsB,CAAC,mBAA2B;IAChE,OAAO,2BAAmB,CAAC,mBAA0C,CAAC,CAAC;AACzE,CAAC;AAFD,wDAEC;AAED,6BAA6B;AAC7B,MAAM,oBAAoB,GAAG;IAC3B,GAAG;IACH,GAAG;IACH,GAAG;IACH,KAAK;IACL,IAAI;IACJ,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;CACI,CAAC;AAGE,QAAA,mBAAmB,GAAwC;IACtE,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,2BAA2B;IAChC,GAAG,EAAE,0BAA0B;IAC/B,GAAG,EAAE,wBAAwB;IAC7B,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,aAAa;IAClB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEW,QAAA,gCAAgC,GAA6C;IACxF,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI,EAAE,QAAQ;CACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/shared",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.11",
|
|
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/",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"ts-jest": "29.1.1",
|
|
116
116
|
"typescript": "^4.9.5"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "784974b0cba70286abc7ffa5d0314c767c66f406"
|
|
119
119
|
}
|