@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.
Files changed (87) hide show
  1. package/dist/domain/__tests__/dob.test.js +2 -2
  2. package/dist/domain/__tests__/dob.test.js.map +1 -1
  3. package/dist/domain/dob.d.ts +7 -0
  4. package/dist/domain/dob.d.ts.map +1 -1
  5. package/dist/domain/dob.js +10 -2
  6. package/dist/domain/dob.js.map +1 -1
  7. package/dist/domain/patient/patient-import.d.ts +83 -104
  8. package/dist/interface/external/athenahealth/appointment.d.ts +63 -0
  9. package/dist/interface/external/athenahealth/appointment.d.ts.map +1 -0
  10. package/dist/interface/external/athenahealth/appointment.js +18 -0
  11. package/dist/interface/external/athenahealth/appointment.js.map +1 -0
  12. package/dist/interface/external/athenahealth/cx-mapping.d.ts +10 -0
  13. package/dist/interface/external/athenahealth/cx-mapping.d.ts.map +1 -0
  14. package/dist/interface/external/athenahealth/cx-mapping.js +8 -0
  15. package/dist/interface/external/athenahealth/cx-mapping.js.map +1 -0
  16. package/dist/interface/external/athenahealth/department.d.ts +28 -0
  17. package/dist/interface/external/athenahealth/department.d.ts.map +1 -0
  18. package/dist/interface/external/athenahealth/department.js +11 -0
  19. package/dist/interface/external/athenahealth/department.js.map +1 -0
  20. package/dist/interface/external/athenahealth/index.d.ts +10 -0
  21. package/dist/interface/external/athenahealth/index.d.ts.map +1 -0
  22. package/dist/interface/external/athenahealth/index.js +26 -0
  23. package/dist/interface/external/athenahealth/index.js.map +1 -0
  24. package/dist/interface/external/athenahealth/jwt-token.d.ts +25 -0
  25. package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
  26. package/dist/interface/external/athenahealth/jwt-token.js +13 -0
  27. package/dist/interface/external/athenahealth/jwt-token.js.map +1 -0
  28. package/dist/interface/external/athenahealth/medication.d.ts +50 -0
  29. package/dist/interface/external/athenahealth/medication.d.ts.map +1 -0
  30. package/dist/interface/external/athenahealth/medication.js +19 -0
  31. package/dist/interface/external/athenahealth/medication.js.map +1 -0
  32. package/dist/interface/external/athenahealth/patient.d.ts +250 -0
  33. package/dist/interface/external/athenahealth/patient.d.ts.map +1 -0
  34. package/dist/interface/external/athenahealth/patient.js +34 -0
  35. package/dist/interface/external/athenahealth/patient.js.map +1 -0
  36. package/dist/interface/external/athenahealth/problem.d.ts +27 -0
  37. package/dist/interface/external/athenahealth/problem.d.ts.map +1 -0
  38. package/dist/interface/external/athenahealth/problem.js +14 -0
  39. package/dist/interface/external/athenahealth/problem.js.map +1 -0
  40. package/dist/interface/external/athenahealth/subscription.d.ts +20 -0
  41. package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -0
  42. package/dist/interface/external/athenahealth/subscription.js +11 -0
  43. package/dist/interface/external/athenahealth/subscription.js.map +1 -0
  44. package/dist/interface/external/athenahealth/vitals.d.ts +82 -0
  45. package/dist/interface/external/athenahealth/vitals.d.ts.map +1 -0
  46. package/dist/interface/external/athenahealth/vitals.js +15 -0
  47. package/dist/interface/external/athenahealth/vitals.js.map +1 -0
  48. package/dist/interface/external/canvas/appointment.d.ts +68 -0
  49. package/dist/interface/external/canvas/appointment.d.ts.map +1 -0
  50. package/dist/interface/external/canvas/appointment.js +15 -0
  51. package/dist/interface/external/canvas/appointment.js.map +1 -0
  52. package/dist/interface/external/canvas/index.d.ts +3 -0
  53. package/dist/interface/external/canvas/index.d.ts.map +1 -0
  54. package/dist/interface/external/canvas/index.js +19 -0
  55. package/dist/interface/external/canvas/index.js.map +1 -0
  56. package/dist/interface/external/canvas/jwt-token.d.ts +31 -0
  57. package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -0
  58. package/dist/interface/external/canvas/jwt-token.js +17 -0
  59. package/dist/interface/external/canvas/jwt-token.js.map +1 -0
  60. package/dist/interface/external/ehr/fhir-resource.d.ts +29 -37
  61. package/dist/interface/external/ehr/fhir-resource.d.ts.map +1 -1
  62. package/dist/interface/external/ehr/fhir-resource.js +8 -10
  63. package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
  64. package/dist/interface/external/elation/appointment.d.ts +68 -0
  65. package/dist/interface/external/elation/appointment.d.ts.map +1 -0
  66. package/dist/interface/external/elation/appointment.js +15 -0
  67. package/dist/interface/external/elation/appointment.js.map +1 -0
  68. package/dist/interface/external/elation/index.d.ts +4 -0
  69. package/dist/interface/external/elation/index.d.ts.map +1 -0
  70. package/dist/interface/external/elation/index.js +20 -0
  71. package/dist/interface/external/elation/index.js.map +1 -0
  72. package/dist/interface/external/elation/jwt-token.d.ts +20 -0
  73. package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
  74. package/dist/interface/external/elation/jwt-token.js +13 -0
  75. package/dist/interface/external/elation/jwt-token.js.map +1 -0
  76. package/dist/interface/external/elation/patient.d.ts +96 -0
  77. package/dist/interface/external/elation/patient.d.ts.map +1 -0
  78. package/dist/interface/external/elation/patient.js +33 -0
  79. package/dist/interface/external/elation/patient.js.map +1 -0
  80. package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
  81. package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
  82. package/dist/interface/external/shared/ehr/patient.js +35 -0
  83. package/dist/interface/external/shared/ehr/patient.js.map +1 -0
  84. package/dist/interface/internal/consolidated.d.ts +3 -3
  85. package/dist/interface/internal/consolidated.js +1 -1
  86. package/dist/interface/internal/consolidated.js.map +1 -1
  87. 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.ZodString;
6
+ given: z.ZodArray<z.ZodString, "many">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ family: string;
9
+ given: string[];
10
+ }, {
11
+ family: string;
12
+ given: string[];
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.ZodString;
36
+ system: z.ZodEnum<["phone", "email"]>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ value: string;
39
+ system: "phone" | "email";
40
+ }, {
41
+ value: string;
42
+ system: "phone" | "email";
43
+ }>, "many">>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ gender: string;
46
+ birthDate: string;
47
+ name?: {
48
+ family: string;
49
+ given: string[];
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;
60
+ system: "phone" | "email";
61
+ }[] | undefined;
62
+ }, {
63
+ gender: string;
64
+ birthDate: string;
65
+ name?: {
66
+ family: string;
67
+ given: string[];
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;
78
+ system: "phone" | "email";
79
+ }[] | undefined;
80
+ }>;
81
+ export type Patient = z.infer<typeof patientSchema>;
82
+ export declare const patientSearchSchema: z.ZodObject<{
83
+ entry: z.ZodArray<z.ZodObject<{
84
+ resource: z.ZodObject<{
85
+ gender: z.ZodString;
86
+ name: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
+ family: z.ZodString;
88
+ given: z.ZodArray<z.ZodString, "many">;
89
+ }, "strip", z.ZodTypeAny, {
90
+ family: string;
91
+ given: string[];
92
+ }, {
93
+ family: string;
94
+ given: string[];
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.ZodString;
118
+ system: z.ZodEnum<["phone", "email"]>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ value: string;
121
+ system: "phone" | "email";
122
+ }, {
123
+ value: string;
124
+ system: "phone" | "email";
125
+ }>, "many">>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ gender: string;
128
+ birthDate: string;
129
+ name?: {
130
+ family: string;
131
+ given: string[];
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;
142
+ system: "phone" | "email";
143
+ }[] | undefined;
144
+ }, {
145
+ gender: string;
146
+ birthDate: string;
147
+ name?: {
148
+ family: string;
149
+ given: string[];
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;
160
+ system: "phone" | "email";
161
+ }[] | undefined;
162
+ }>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ resource: {
165
+ gender: string;
166
+ birthDate: string;
167
+ name?: {
168
+ family: string;
169
+ given: string[];
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;
180
+ system: "phone" | "email";
181
+ }[] | undefined;
182
+ };
183
+ }, {
184
+ resource: {
185
+ gender: string;
186
+ birthDate: string;
187
+ name?: {
188
+ family: string;
189
+ given: string[];
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;
200
+ system: "phone" | "email";
201
+ }[] | undefined;
202
+ };
203
+ }>, "many">;
204
+ }, "strip", z.ZodTypeAny, {
205
+ entry: {
206
+ resource: {
207
+ gender: string;
208
+ birthDate: string;
209
+ name?: {
210
+ family: string;
211
+ given: string[];
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;
222
+ system: "phone" | "email";
223
+ }[] | undefined;
224
+ };
225
+ }[];
226
+ }, {
227
+ entry: {
228
+ resource: {
229
+ gender: string;
230
+ birthDate: string;
231
+ name?: {
232
+ family: string;
233
+ given: string[];
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;
244
+ system: "phone" | "email";
245
+ }[] | undefined;
246
+ };
247
+ }[];
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/athenahealth/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,34 @@
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(),
14
+ system: zod_1.z.enum(["phone", "email"]),
15
+ });
16
+ const name = zod_1.z.object({
17
+ family: zod_1.z.string(),
18
+ given: zod_1.z.string().array(),
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
+ });
34
+ //# sourceMappingURL=patient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/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;IACjB,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,OAAC,CAAC,MAAM,CAAC;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;CAC1B,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;CACX,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export declare const createdProblemSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ errormessage: z.ZodOptional<z.ZodString>;
5
+ problemid: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ success: boolean;
8
+ errormessage?: string | undefined;
9
+ problemid?: string | undefined;
10
+ }, {
11
+ success: boolean;
12
+ errormessage?: string | undefined;
13
+ problemid?: string | undefined;
14
+ }>;
15
+ export type CreatedProblem = z.infer<typeof createdProblemSchema>;
16
+ export declare const createdProblemSuccessSchema: z.ZodObject<{
17
+ success: z.ZodLiteral<true>;
18
+ problemid: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ success: true;
21
+ problemid: string;
22
+ }, {
23
+ success: true;
24
+ problemid: string;
25
+ }>;
26
+ export type CreatedProblemSuccess = z.infer<typeof createdProblemSuccessSchema>;
27
+ //# sourceMappingURL=problem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/problem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdProblemSuccessSchema = exports.createdProblemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdProblemSchema = zod_1.z.object({
6
+ success: zod_1.z.boolean(),
7
+ errormessage: zod_1.z.string().optional(),
8
+ problemid: zod_1.z.coerce.string().optional(),
9
+ });
10
+ exports.createdProblemSuccessSchema = zod_1.z.object({
11
+ success: zod_1.z.literal(true),
12
+ problemid: zod_1.z.coerce.string(),
13
+ });
14
+ //# sourceMappingURL=problem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/problem.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ export type FeedType = "appointments";
3
+ export type EventType = "ScheduleAppointment";
4
+ export declare const createdSubscriptionSchema: z.ZodObject<{
5
+ success: z.ZodBoolean;
6
+ }, "strip", z.ZodTypeAny, {
7
+ success: boolean;
8
+ }, {
9
+ success: boolean;
10
+ }>;
11
+ export type CreatedSubscription = z.infer<typeof createdSubscriptionSchema>;
12
+ export declare const createdSubscriptionSuccessSchema: z.ZodObject<{
13
+ success: z.ZodLiteral<true>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ success: true;
16
+ }, {
17
+ success: true;
18
+ }>;
19
+ export type CreatedSubscriptionSuccess = z.infer<typeof createdSubscriptionSuccessSchema>;
20
+ //# sourceMappingURL=subscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AAEtC,MAAM,MAAM,SAAS,GAAG,qBAAqB,CAAC;AAE9C,eAAO,MAAM,yBAAyB;;;;;;EAEpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,eAAO,MAAM,gCAAgC;;;;;;EAE3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdSubscriptionSuccessSchema = exports.createdSubscriptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createdSubscriptionSchema = zod_1.z.object({
6
+ success: zod_1.z.boolean(),
7
+ });
8
+ exports.createdSubscriptionSuccessSchema = zod_1.z.object({
9
+ success: zod_1.z.literal(true),
10
+ });
11
+ //# sourceMappingURL=subscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/subscription.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAMX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAEU,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CACzB,CAAC,CAAC"}
@@ -0,0 +1,82 @@
1
+ import { z } from "zod";
2
+ export declare const createdVitalsSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ errormessage: z.ZodOptional<z.ZodString>;
5
+ vitalids: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ vitalid: z.ZodString;
7
+ clinicalelementid: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ vitalid: string;
10
+ clinicalelementid: string;
11
+ }, {
12
+ vitalid: string;
13
+ clinicalelementid: string;
14
+ }>, "many">>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ success: boolean;
17
+ errormessage?: string | undefined;
18
+ vitalids?: {
19
+ vitalid: string;
20
+ clinicalelementid: string;
21
+ }[] | undefined;
22
+ }, {
23
+ success: boolean;
24
+ errormessage?: string | undefined;
25
+ vitalids?: {
26
+ vitalid: string;
27
+ clinicalelementid: string;
28
+ }[] | undefined;
29
+ }>;
30
+ export type CreatedVitals = z.infer<typeof createdVitalsSchema>;
31
+ export declare const createdVitalsSuccessSchema: z.ZodObject<z.objectUtil.extendShape<{
32
+ success: z.ZodBoolean;
33
+ errormessage: z.ZodOptional<z.ZodString>;
34
+ vitalids: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ vitalid: z.ZodString;
36
+ clinicalelementid: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ vitalid: string;
39
+ clinicalelementid: string;
40
+ }, {
41
+ vitalid: string;
42
+ clinicalelementid: string;
43
+ }>, "many">>;
44
+ }, {
45
+ success: z.ZodLiteral<true>;
46
+ vitalids: z.ZodArray<z.ZodObject<{
47
+ vitalid: z.ZodString;
48
+ clinicalelementid: z.ZodString;
49
+ }, "strip", z.ZodTypeAny, {
50
+ vitalid: string;
51
+ clinicalelementid: string;
52
+ }, {
53
+ vitalid: string;
54
+ clinicalelementid: string;
55
+ }>, "many">;
56
+ }>, "strip", z.ZodTypeAny, {
57
+ success: true;
58
+ vitalids: {
59
+ vitalid: string;
60
+ clinicalelementid: string;
61
+ }[];
62
+ errormessage?: string | undefined;
63
+ }, {
64
+ success: true;
65
+ vitalids: {
66
+ vitalid: string;
67
+ clinicalelementid: string;
68
+ }[];
69
+ errormessage?: string | undefined;
70
+ }>;
71
+ export type CreatedVitalsSuccess = z.infer<typeof createdVitalsSuccessSchema>;
72
+ export type VitalsCreateParams = {
73
+ departmentid: string;
74
+ returnvitalids: boolean;
75
+ source: string;
76
+ vitals: {
77
+ [key: string]: string | undefined;
78
+ }[][];
79
+ THIRDPARTYUSERNAME: string | undefined;
80
+ PATIENTFACINGCALL: string | undefined;
81
+ };
82
+ //# sourceMappingURL=vitals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitals.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/vitals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;KAAE,EAAE,EAAE,CAAC;IAClD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createdVitalsSuccessSchema = exports.createdVitalsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const vitalIdSchema = zod_1.z.object({ vitalid: zod_1.z.coerce.string(), clinicalelementid: zod_1.z.string() });
6
+ exports.createdVitalsSchema = zod_1.z.object({
7
+ success: zod_1.z.boolean(),
8
+ errormessage: zod_1.z.string().optional(),
9
+ vitalids: vitalIdSchema.array().optional(),
10
+ });
11
+ exports.createdVitalsSuccessSchema = exports.createdVitalsSchema.extend({
12
+ success: zod_1.z.literal(true),
13
+ vitalids: vitalIdSchema.array(),
14
+ });
15
+ //# sourceMappingURL=vitals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vitals.js","sourceRoot":"","sources":["../../../../src/interface/external/athenahealth/vitals.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEjF,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAGU,QAAA,0BAA0B,GAAG,2BAAmB,CAAC,MAAM,CAAC;IACnE,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,aAAa,CAAC,KAAK,EAAE;CAChC,CAAC,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { z } from "zod";
2
+ export declare const bookedAppointmentSchema: z.ZodObject<{
3
+ patient: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ patient: string;
6
+ }, {
7
+ patient: string;
8
+ }>;
9
+ export type BookedAppointment = z.infer<typeof bookedAppointmentSchema>;
10
+ export declare const appointmentSchema: z.ZodObject<{
11
+ patient: z.ZodNullable<z.ZodString>;
12
+ status: z.ZodNullable<z.ZodObject<{
13
+ status: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ status: string;
16
+ }, {
17
+ status: string;
18
+ }>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ status: {
21
+ status: string;
22
+ } | null;
23
+ patient: string | null;
24
+ }, {
25
+ status: {
26
+ status: string;
27
+ } | null;
28
+ patient: string | null;
29
+ }>;
30
+ export type Appointment = z.infer<typeof appointmentSchema>;
31
+ export declare const appointmentsSchema: z.ZodObject<{
32
+ results: z.ZodArray<z.ZodObject<{
33
+ patient: z.ZodNullable<z.ZodString>;
34
+ status: z.ZodNullable<z.ZodObject<{
35
+ status: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ status: string;
38
+ }, {
39
+ status: string;
40
+ }>>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ status: {
43
+ status: string;
44
+ } | null;
45
+ patient: string | null;
46
+ }, {
47
+ status: {
48
+ status: string;
49
+ } | null;
50
+ patient: string | null;
51
+ }>, "many">;
52
+ }, "strip", z.ZodTypeAny, {
53
+ results: {
54
+ status: {
55
+ status: string;
56
+ } | null;
57
+ patient: string | null;
58
+ }[];
59
+ }, {
60
+ results: {
61
+ status: {
62
+ status: string;
63
+ } | null;
64
+ patient: string | null;
65
+ }[];
66
+ }>;
67
+ export type Appointments = z.infer<typeof appointmentsSchema>;
68
+ //# sourceMappingURL=appointment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.appointmentsSchema = exports.appointmentSchema = exports.bookedAppointmentSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.bookedAppointmentSchema = zod_1.z.object({
6
+ patient: zod_1.z.coerce.string(),
7
+ });
8
+ exports.appointmentSchema = zod_1.z.object({
9
+ patient: zod_1.z.coerce.string().nullable(),
10
+ status: zod_1.z.object({ status: zod_1.z.string() }).nullable(),
11
+ });
12
+ exports.appointmentsSchema = zod_1.z.object({
13
+ results: exports.appointmentSchema.array(),
14
+ });
15
+ //# sourceMappingURL=appointment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../../../src/interface/external/canvas/appointment.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAGU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,yBAAiB,CAAC,KAAK,EAAE;CACnC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./jwt-token";
2
+ export * from "./appointment";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./jwt-token"), exports);
18
+ __exportStar(require("./appointment"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/external/canvas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B"}
@@ -0,0 +1,31 @@
1
+ import z from "zod";
2
+ export declare const canvasJwtTokenDataSchema: z.ZodObject<{
3
+ practiceId: z.ZodString;
4
+ source: z.ZodLiteral<"canvas">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ source: "canvas";
7
+ practiceId: string;
8
+ }, {
9
+ source: "canvas";
10
+ practiceId: string;
11
+ }>;
12
+ export type CanvasJwtTokenData = z.infer<typeof canvasJwtTokenDataSchema>;
13
+ export type CanvasClientJwtTokenData = {
14
+ practiceId: string;
15
+ cxId: string;
16
+ source: "canvas-client";
17
+ };
18
+ export declare const canvasClientJwtTokenResponseSchema: z.ZodObject<{
19
+ scope: z.ZodString;
20
+ access_token: z.ZodString;
21
+ expires_in: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ scope: string;
24
+ access_token: string;
25
+ expires_in: string;
26
+ }, {
27
+ scope: string;
28
+ access_token: string;
29
+ expires_in: string;
30
+ }>;
31
+ //# sourceMappingURL=jwt-token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/canvas/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,wBAAwB;;;;;;;;;EAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;EAI7C,CAAC"}