@metriport/shared 0.21.0-alpha.0 → 0.21.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/patient/patient-import.d.ts +6 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/appointment.d.ts +26 -4
- package/dist/interface/external/ehr/athenahealth/appointment.d.ts.map +1 -1
- package/dist/interface/external/ehr/athenahealth/appointment.js +7 -3
- package/dist/interface/external/ehr/athenahealth/appointment.js.map +1 -1
- package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts +6 -0
- package/dist/interface/external/ehr/athenahealth/cx-mapping.d.ts.map +1 -1
- package/dist/interface/external/ehr/athenahealth/cx-mapping.js +2 -0
- package/dist/interface/external/ehr/athenahealth/cx-mapping.js.map +1 -1
- package/dist/interface/external/ehr/canvas/appointment.d.ts +38 -20
- package/dist/interface/external/ehr/canvas/appointment.d.ts.map +1 -1
- package/dist/interface/external/ehr/canvas/appointment.js +6 -5
- package/dist/interface/external/ehr/canvas/appointment.js.map +1 -1
- package/dist/interface/external/ehr/elation/appointment.d.ts +5 -2
- package/dist/interface/external/ehr/elation/appointment.d.ts.map +1 -1
- package/dist/interface/external/ehr/elation/appointment.js +3 -2
- package/dist/interface/external/ehr/elation/appointment.js.map +1 -1
- package/dist/interface/external/ehr/elation/cx-mapping.d.ts +3 -3
- package/dist/interface/external/ehr/elation/cx-mapping.js +1 -1
- package/dist/interface/external/ehr/elation/cx-mapping.js.map +1 -1
- package/dist/interface/external/ehr/elation/patient.d.ts +6 -6
- package/dist/interface/external/ehr/patient.d.ts +12 -12
- package/dist/medical/webhook/webhook-request.d.ts +59 -72
- package/dist/medical/webhook/webhook-request.d.ts.map +1 -1
- package/dist/medical/webhook/webhook-request.js +2 -11
- package/dist/medical/webhook/webhook-request.js.map +1 -1
- package/package.json +2 -2
- package/dist/domain/patient/patient-import/schemas.d.ts +0 -19
- package/dist/domain/patient/patient-import/schemas.d.ts.map +0 -1
- package/dist/domain/patient/patient-import/schemas.js +0 -35
- package/dist/domain/patient/patient-import/schemas.js.map +0 -1
- package/dist/domain/patient/patient-import/status.d.ts +0 -11
- package/dist/domain/patient/patient-import/status.d.ts.map +0 -1
- package/dist/domain/patient/patient-import/status.js +0 -48
- package/dist/domain/patient/patient-import/status.js.map +0 -1
- package/dist/domain/patient/patient-import/types.d.ts +0 -48
- package/dist/domain/patient/patient-import/types.d.ts.map +0 -1
- package/dist/domain/patient/patient-import/types.js +0 -24
- package/dist/domain/patient/patient-import/types.js.map +0 -1
|
@@ -12,14 +12,14 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
12
12
|
zip: z.ZodNullable<z.ZodString>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
state: string | null;
|
|
15
|
-
city: string | null;
|
|
16
15
|
zip: string | null;
|
|
16
|
+
city: string | null;
|
|
17
17
|
address_line1: string | null;
|
|
18
18
|
address_line2: string | null;
|
|
19
19
|
}, {
|
|
20
20
|
state: string | null;
|
|
21
|
-
city: string | null;
|
|
22
21
|
zip: string | null;
|
|
22
|
+
city: string | null;
|
|
23
23
|
address_line1: string | null;
|
|
24
24
|
address_line2: string | null;
|
|
25
25
|
}>>;
|
|
@@ -40,14 +40,14 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
40
40
|
}>, "many">>;
|
|
41
41
|
ssn: z.ZodNullable<z.ZodString>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
dob: string;
|
|
43
44
|
address: {
|
|
44
45
|
state: string | null;
|
|
45
|
-
city: string | null;
|
|
46
46
|
zip: string | null;
|
|
47
|
+
city: string | null;
|
|
47
48
|
address_line1: string | null;
|
|
48
49
|
address_line2: string | null;
|
|
49
50
|
} | null;
|
|
50
|
-
dob: string;
|
|
51
51
|
ssn: string | null;
|
|
52
52
|
first_name: string | null;
|
|
53
53
|
last_name: string | null;
|
|
@@ -60,14 +60,14 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
60
60
|
email: string;
|
|
61
61
|
}[] | null;
|
|
62
62
|
}, {
|
|
63
|
+
dob: string;
|
|
63
64
|
address: {
|
|
64
65
|
state: string | null;
|
|
65
|
-
city: string | null;
|
|
66
66
|
zip: string | null;
|
|
67
|
+
city: string | null;
|
|
67
68
|
address_line1: string | null;
|
|
68
69
|
address_line2: string | null;
|
|
69
70
|
} | null;
|
|
70
|
-
dob: string;
|
|
71
71
|
ssn: string | null;
|
|
72
72
|
first_name: string | null;
|
|
73
73
|
last_name: string | null;
|
|
@@ -20,14 +20,14 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
country?: string | undefined;
|
|
22
22
|
state?: string | undefined;
|
|
23
|
-
line?: string[] | undefined;
|
|
24
23
|
city?: string | undefined;
|
|
24
|
+
line?: string[] | undefined;
|
|
25
25
|
postalCode?: string | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
country?: string | undefined;
|
|
28
28
|
state?: string | undefined;
|
|
29
|
-
line?: string[] | undefined;
|
|
30
29
|
city?: string | undefined;
|
|
30
|
+
line?: string[] | undefined;
|
|
31
31
|
postalCode?: string | undefined;
|
|
32
32
|
}>, "many">>;
|
|
33
33
|
birthDate: z.ZodString;
|
|
@@ -51,8 +51,8 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
51
51
|
address?: {
|
|
52
52
|
country?: string | undefined;
|
|
53
53
|
state?: string | undefined;
|
|
54
|
-
line?: string[] | undefined;
|
|
55
54
|
city?: string | undefined;
|
|
55
|
+
line?: string[] | undefined;
|
|
56
56
|
postalCode?: string | undefined;
|
|
57
57
|
}[] | undefined;
|
|
58
58
|
telecom?: {
|
|
@@ -69,8 +69,8 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
69
69
|
address?: {
|
|
70
70
|
country?: string | undefined;
|
|
71
71
|
state?: string | undefined;
|
|
72
|
-
line?: string[] | undefined;
|
|
73
72
|
city?: string | undefined;
|
|
73
|
+
line?: string[] | undefined;
|
|
74
74
|
postalCode?: string | undefined;
|
|
75
75
|
}[] | undefined;
|
|
76
76
|
telecom?: {
|
|
@@ -102,14 +102,14 @@ export declare const patientSearchSchema: z.ZodObject<{
|
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
country?: string | undefined;
|
|
104
104
|
state?: string | undefined;
|
|
105
|
-
line?: string[] | undefined;
|
|
106
105
|
city?: string | undefined;
|
|
106
|
+
line?: string[] | undefined;
|
|
107
107
|
postalCode?: string | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
country?: string | undefined;
|
|
110
110
|
state?: string | undefined;
|
|
111
|
-
line?: string[] | undefined;
|
|
112
111
|
city?: string | undefined;
|
|
112
|
+
line?: string[] | undefined;
|
|
113
113
|
postalCode?: string | undefined;
|
|
114
114
|
}>, "many">>;
|
|
115
115
|
birthDate: z.ZodString;
|
|
@@ -133,8 +133,8 @@ export declare const patientSearchSchema: z.ZodObject<{
|
|
|
133
133
|
address?: {
|
|
134
134
|
country?: string | undefined;
|
|
135
135
|
state?: string | undefined;
|
|
136
|
-
line?: string[] | undefined;
|
|
137
136
|
city?: string | undefined;
|
|
137
|
+
line?: string[] | undefined;
|
|
138
138
|
postalCode?: string | undefined;
|
|
139
139
|
}[] | undefined;
|
|
140
140
|
telecom?: {
|
|
@@ -151,8 +151,8 @@ export declare const patientSearchSchema: z.ZodObject<{
|
|
|
151
151
|
address?: {
|
|
152
152
|
country?: string | undefined;
|
|
153
153
|
state?: string | undefined;
|
|
154
|
-
line?: string[] | undefined;
|
|
155
154
|
city?: string | undefined;
|
|
155
|
+
line?: string[] | undefined;
|
|
156
156
|
postalCode?: string | undefined;
|
|
157
157
|
}[] | undefined;
|
|
158
158
|
telecom?: {
|
|
@@ -171,8 +171,8 @@ export declare const patientSearchSchema: z.ZodObject<{
|
|
|
171
171
|
address?: {
|
|
172
172
|
country?: string | undefined;
|
|
173
173
|
state?: string | undefined;
|
|
174
|
-
line?: string[] | undefined;
|
|
175
174
|
city?: string | undefined;
|
|
175
|
+
line?: string[] | undefined;
|
|
176
176
|
postalCode?: string | undefined;
|
|
177
177
|
}[] | undefined;
|
|
178
178
|
telecom?: {
|
|
@@ -191,8 +191,8 @@ export declare const patientSearchSchema: z.ZodObject<{
|
|
|
191
191
|
address?: {
|
|
192
192
|
country?: string | undefined;
|
|
193
193
|
state?: string | undefined;
|
|
194
|
-
line?: string[] | undefined;
|
|
195
194
|
city?: string | undefined;
|
|
195
|
+
line?: string[] | undefined;
|
|
196
196
|
postalCode?: string | undefined;
|
|
197
197
|
}[] | undefined;
|
|
198
198
|
telecom?: {
|
|
@@ -213,8 +213,8 @@ export declare const patientSearchSchema: z.ZodObject<{
|
|
|
213
213
|
address?: {
|
|
214
214
|
country?: string | undefined;
|
|
215
215
|
state?: string | undefined;
|
|
216
|
-
line?: string[] | undefined;
|
|
217
216
|
city?: string | undefined;
|
|
217
|
+
line?: string[] | undefined;
|
|
218
218
|
postalCode?: string | undefined;
|
|
219
219
|
}[] | undefined;
|
|
220
220
|
telecom?: {
|
|
@@ -235,8 +235,8 @@ export declare const patientSearchSchema: z.ZodObject<{
|
|
|
235
235
|
address?: {
|
|
236
236
|
country?: string | undefined;
|
|
237
237
|
state?: string | undefined;
|
|
238
|
-
line?: string[] | undefined;
|
|
239
238
|
city?: string | undefined;
|
|
239
|
+
line?: string[] | undefined;
|
|
240
240
|
postalCode?: string | undefined;
|
|
241
241
|
}[] | undefined;
|
|
242
242
|
telecom?: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z, ZodError, ZodFormattedError } from "zod";
|
|
2
|
-
import { PatientImportStatus } from "../../domain/patient/patient-import/types";
|
|
3
2
|
import { SearchSetBundle } from "../fhir/bundle";
|
|
4
3
|
export declare const pingWebhookTypeSchema: z.ZodLiteral<"ping">;
|
|
5
4
|
export type PingWebhookType = z.infer<typeof pingWebhookTypeSchema>;
|
|
@@ -11,11 +10,9 @@ export declare const docConversionWebhookTypeSchema: z.ZodLiteral<"medical.docum
|
|
|
11
10
|
export type DocumentConversionWebhookType = z.infer<typeof docConversionWebhookTypeSchema>;
|
|
12
11
|
export declare const docBulkDownloadWebhookTypeSchema: z.ZodLiteral<"medical.document-bulk-download-urls">;
|
|
13
12
|
export type DocumentBulkDownloadWebhookType = z.infer<typeof docBulkDownloadWebhookTypeSchema>;
|
|
14
|
-
export declare const
|
|
15
|
-
export type BulkPatientImportWebhookType = z.infer<typeof bulkPatientImportWebhookTypeSchema>;
|
|
16
|
-
export declare const mapiWebhookTypeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"medical.consolidated-data">, z.ZodLiteral<"medical.consolidated-data">]>, z.ZodLiteral<"medical.document-download">]>, z.ZodLiteral<"medical.document-conversion">]>, z.ZodLiteral<"medical.document-bulk-download-urls">]>, z.ZodLiteral<"medical.bulk-patient-create">]>;
|
|
13
|
+
export declare const mapiWebhookTypeSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"medical.consolidated-data">, z.ZodLiteral<"medical.consolidated-data">]>, z.ZodLiteral<"medical.document-download">]>, z.ZodLiteral<"medical.document-conversion">]>, z.ZodLiteral<"medical.document-bulk-download-urls">]>;
|
|
17
14
|
export type MAPIWebhookType = z.infer<typeof mapiWebhookTypeSchema>;
|
|
18
|
-
export declare const webhookTypeSchema: z.ZodUnion<[z.ZodLiteral<"ping">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.
|
|
15
|
+
export declare const webhookTypeSchema: z.ZodUnion<[z.ZodLiteral<"ping">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"medical.consolidated-data">, z.ZodLiteral<"medical.consolidated-data">]>, z.ZodLiteral<"medical.document-download">]>, z.ZodLiteral<"medical.document-conversion">]>, z.ZodLiteral<"medical.document-bulk-download-urls">]>]>;
|
|
19
16
|
export type WebhookType = z.infer<typeof webhookTypeSchema>;
|
|
20
17
|
export declare const webhookRequestStatus: readonly ["processing", "success", "failure"];
|
|
21
18
|
export type WebhookRequestStatus = (typeof webhookRequestStatus)[number];
|
|
@@ -164,12 +161,6 @@ export declare const consolidatedWebhookRequestSchema: z.ZodObject<{
|
|
|
164
161
|
filters?: Record<string, string | boolean | null | undefined> | null | undefined;
|
|
165
162
|
}>, "many">;
|
|
166
163
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
meta: {
|
|
168
|
-
type: "medical.consolidated-data";
|
|
169
|
-
messageId: string;
|
|
170
|
-
when: string;
|
|
171
|
-
data?: unknown;
|
|
172
|
-
};
|
|
173
164
|
patients: {
|
|
174
165
|
status: "completed" | "failed";
|
|
175
166
|
patientId: string;
|
|
@@ -178,13 +169,13 @@ export declare const consolidatedWebhookRequestSchema: z.ZodObject<{
|
|
|
178
169
|
bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
|
|
179
170
|
filters?: Record<string, string | boolean | null | undefined> | null | undefined;
|
|
180
171
|
}[];
|
|
181
|
-
}, {
|
|
182
172
|
meta: {
|
|
183
173
|
type: "medical.consolidated-data";
|
|
184
174
|
messageId: string;
|
|
185
175
|
when: string;
|
|
186
176
|
data?: unknown;
|
|
187
177
|
};
|
|
178
|
+
}, {
|
|
188
179
|
patients: {
|
|
189
180
|
status: "completed" | "failed";
|
|
190
181
|
patientId: string;
|
|
@@ -193,6 +184,12 @@ export declare const consolidatedWebhookRequestSchema: z.ZodObject<{
|
|
|
193
184
|
bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
|
|
194
185
|
filters?: Record<string, string | boolean | null | undefined> | null | undefined;
|
|
195
186
|
}[];
|
|
187
|
+
meta: {
|
|
188
|
+
type: "medical.consolidated-data";
|
|
189
|
+
messageId: string;
|
|
190
|
+
when: string;
|
|
191
|
+
data?: unknown;
|
|
192
|
+
};
|
|
196
193
|
}>;
|
|
197
194
|
export type ConsolidatedWebhookRequest = z.infer<typeof consolidatedWebhookRequestSchema>;
|
|
198
195
|
export declare const documentDownloadWebhookPatientSchema: z.ZodObject<{
|
|
@@ -460,12 +457,6 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
|
|
|
460
457
|
additionalIds?: Record<string, string[]> | undefined;
|
|
461
458
|
}>, "many">;
|
|
462
459
|
}, "strip", z.ZodTypeAny, {
|
|
463
|
-
meta: {
|
|
464
|
-
type: "medical.document-download";
|
|
465
|
-
messageId: string;
|
|
466
|
-
when: string;
|
|
467
|
-
data?: unknown;
|
|
468
|
-
};
|
|
469
460
|
patients: {
|
|
470
461
|
status: "completed" | "failed";
|
|
471
462
|
patientId: string;
|
|
@@ -489,13 +480,13 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
|
|
|
489
480
|
externalId?: string | undefined;
|
|
490
481
|
additionalIds?: Record<string, string[]> | undefined;
|
|
491
482
|
}[];
|
|
492
|
-
}, {
|
|
493
483
|
meta: {
|
|
494
484
|
type: "medical.document-download";
|
|
495
485
|
messageId: string;
|
|
496
486
|
when: string;
|
|
497
487
|
data?: unknown;
|
|
498
488
|
};
|
|
489
|
+
}, {
|
|
499
490
|
patients: {
|
|
500
491
|
status: "completed" | "failed";
|
|
501
492
|
patientId: string;
|
|
@@ -519,6 +510,12 @@ export declare const documentDownloadWebhookRequestSchema: z.ZodObject<{
|
|
|
519
510
|
externalId?: string | undefined;
|
|
520
511
|
additionalIds?: Record<string, string[]> | undefined;
|
|
521
512
|
}[];
|
|
513
|
+
meta: {
|
|
514
|
+
type: "medical.document-download";
|
|
515
|
+
messageId: string;
|
|
516
|
+
when: string;
|
|
517
|
+
data?: unknown;
|
|
518
|
+
};
|
|
522
519
|
}>;
|
|
523
520
|
export type DocumentDownloadWebhookRequest = z.infer<typeof documentDownloadWebhookRequestSchema>;
|
|
524
521
|
export declare const documentConversionWebhookPatientSchema: z.ZodObject<{
|
|
@@ -576,31 +573,31 @@ export declare const documentConversionWebhookRequestSchema: z.ZodObject<{
|
|
|
576
573
|
additionalIds?: Record<string, string[]> | undefined;
|
|
577
574
|
}>, "many">;
|
|
578
575
|
}, "strip", z.ZodTypeAny, {
|
|
579
|
-
meta: {
|
|
580
|
-
type: "medical.document-conversion";
|
|
581
|
-
messageId: string;
|
|
582
|
-
when: string;
|
|
583
|
-
data?: unknown;
|
|
584
|
-
};
|
|
585
576
|
patients: {
|
|
586
577
|
status: "completed" | "failed";
|
|
587
578
|
patientId: string;
|
|
588
579
|
externalId?: string | undefined;
|
|
589
580
|
additionalIds?: Record<string, string[]> | undefined;
|
|
590
581
|
}[];
|
|
591
|
-
}, {
|
|
592
582
|
meta: {
|
|
593
583
|
type: "medical.document-conversion";
|
|
594
584
|
messageId: string;
|
|
595
585
|
when: string;
|
|
596
586
|
data?: unknown;
|
|
597
587
|
};
|
|
588
|
+
}, {
|
|
598
589
|
patients: {
|
|
599
590
|
status: "completed" | "failed";
|
|
600
591
|
patientId: string;
|
|
601
592
|
externalId?: string | undefined;
|
|
602
593
|
additionalIds?: Record<string, string[]> | undefined;
|
|
603
594
|
}[];
|
|
595
|
+
meta: {
|
|
596
|
+
type: "medical.document-conversion";
|
|
597
|
+
messageId: string;
|
|
598
|
+
when: string;
|
|
599
|
+
data?: unknown;
|
|
600
|
+
};
|
|
604
601
|
}>;
|
|
605
602
|
export type DocumentConversionWebhookRequest = z.infer<typeof documentConversionWebhookRequestSchema>;
|
|
606
603
|
export declare const documentBulkDownloadWebhookPatientSchema: z.ZodObject<{
|
|
@@ -880,12 +877,6 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
|
|
|
880
877
|
additionalIds?: Record<string, string[]> | undefined;
|
|
881
878
|
}>, "many">;
|
|
882
879
|
}, "strip", z.ZodTypeAny, {
|
|
883
|
-
meta: {
|
|
884
|
-
type: "medical.document-bulk-download-urls";
|
|
885
|
-
messageId: string;
|
|
886
|
-
when: string;
|
|
887
|
-
data?: unknown;
|
|
888
|
-
};
|
|
889
880
|
patients: {
|
|
890
881
|
status: "completed" | "failed";
|
|
891
882
|
patientId: string;
|
|
@@ -910,13 +901,13 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
|
|
|
910
901
|
externalId?: string | undefined;
|
|
911
902
|
additionalIds?: Record<string, string[]> | undefined;
|
|
912
903
|
}[];
|
|
913
|
-
}, {
|
|
914
904
|
meta: {
|
|
915
905
|
type: "medical.document-bulk-download-urls";
|
|
916
906
|
messageId: string;
|
|
917
907
|
when: string;
|
|
918
908
|
data?: unknown;
|
|
919
909
|
};
|
|
910
|
+
}, {
|
|
920
911
|
patients: {
|
|
921
912
|
status: "completed" | "failed";
|
|
922
913
|
patientId: string;
|
|
@@ -941,17 +932,14 @@ export declare const documentBulkDownloadWebhookRequestSchema: z.ZodObject<{
|
|
|
941
932
|
externalId?: string | undefined;
|
|
942
933
|
additionalIds?: Record<string, string[]> | undefined;
|
|
943
934
|
}[];
|
|
935
|
+
meta: {
|
|
936
|
+
type: "medical.document-bulk-download-urls";
|
|
937
|
+
messageId: string;
|
|
938
|
+
when: string;
|
|
939
|
+
data?: unknown;
|
|
940
|
+
};
|
|
944
941
|
}>;
|
|
945
942
|
export type DocumentBulkDownloadWebhookRequest = z.infer<typeof documentBulkDownloadWebhookRequestSchema>;
|
|
946
|
-
export type WebhookBulkPatientImportPayload = {
|
|
947
|
-
meta: WebhookMetadata;
|
|
948
|
-
bulkPatientCreate: WebhookBulkPatientImportEntry;
|
|
949
|
-
};
|
|
950
|
-
export type WebhookBulkPatientImportEntry = {
|
|
951
|
-
requestId: string;
|
|
952
|
-
status: PatientImportStatus;
|
|
953
|
-
result?: string | undefined;
|
|
954
|
-
};
|
|
955
943
|
export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
956
944
|
meta: z.ZodObject<z.objectUtil.extendShape<{
|
|
957
945
|
messageId: z.ZodString;
|
|
@@ -1034,12 +1022,6 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1034
1022
|
filters?: Record<string, string | boolean | null | undefined> | null | undefined;
|
|
1035
1023
|
}>, "many">;
|
|
1036
1024
|
}, "strip", z.ZodTypeAny, {
|
|
1037
|
-
meta: {
|
|
1038
|
-
type: "medical.consolidated-data";
|
|
1039
|
-
messageId: string;
|
|
1040
|
-
when: string;
|
|
1041
|
-
data?: unknown;
|
|
1042
|
-
};
|
|
1043
1025
|
patients: {
|
|
1044
1026
|
status: "completed" | "failed";
|
|
1045
1027
|
patientId: string;
|
|
@@ -1048,13 +1030,13 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1048
1030
|
bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
|
|
1049
1031
|
filters?: Record<string, string | boolean | null | undefined> | null | undefined;
|
|
1050
1032
|
}[];
|
|
1051
|
-
}, {
|
|
1052
1033
|
meta: {
|
|
1053
1034
|
type: "medical.consolidated-data";
|
|
1054
1035
|
messageId: string;
|
|
1055
1036
|
when: string;
|
|
1056
1037
|
data?: unknown;
|
|
1057
1038
|
};
|
|
1039
|
+
}, {
|
|
1058
1040
|
patients: {
|
|
1059
1041
|
status: "completed" | "failed";
|
|
1060
1042
|
patientId: string;
|
|
@@ -1063,6 +1045,12 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1063
1045
|
bundle?: SearchSetBundle<import("@medplum/fhirtypes").Resource> | undefined;
|
|
1064
1046
|
filters?: Record<string, string | boolean | null | undefined> | null | undefined;
|
|
1065
1047
|
}[];
|
|
1048
|
+
meta: {
|
|
1049
|
+
type: "medical.consolidated-data";
|
|
1050
|
+
messageId: string;
|
|
1051
|
+
when: string;
|
|
1052
|
+
data?: unknown;
|
|
1053
|
+
};
|
|
1066
1054
|
}>, z.ZodObject<{
|
|
1067
1055
|
meta: z.ZodObject<z.objectUtil.extendShape<{
|
|
1068
1056
|
messageId: z.ZodString;
|
|
@@ -1206,12 +1194,6 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1206
1194
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1207
1195
|
}>, "many">;
|
|
1208
1196
|
}, "strip", z.ZodTypeAny, {
|
|
1209
|
-
meta: {
|
|
1210
|
-
type: "medical.document-download";
|
|
1211
|
-
messageId: string;
|
|
1212
|
-
when: string;
|
|
1213
|
-
data?: unknown;
|
|
1214
|
-
};
|
|
1215
1197
|
patients: {
|
|
1216
1198
|
status: "completed" | "failed";
|
|
1217
1199
|
patientId: string;
|
|
@@ -1235,13 +1217,13 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1235
1217
|
externalId?: string | undefined;
|
|
1236
1218
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1237
1219
|
}[];
|
|
1238
|
-
}, {
|
|
1239
1220
|
meta: {
|
|
1240
1221
|
type: "medical.document-download";
|
|
1241
1222
|
messageId: string;
|
|
1242
1223
|
when: string;
|
|
1243
1224
|
data?: unknown;
|
|
1244
1225
|
};
|
|
1226
|
+
}, {
|
|
1245
1227
|
patients: {
|
|
1246
1228
|
status: "completed" | "failed";
|
|
1247
1229
|
patientId: string;
|
|
@@ -1265,6 +1247,12 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1265
1247
|
externalId?: string | undefined;
|
|
1266
1248
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1267
1249
|
}[];
|
|
1250
|
+
meta: {
|
|
1251
|
+
type: "medical.document-download";
|
|
1252
|
+
messageId: string;
|
|
1253
|
+
when: string;
|
|
1254
|
+
data?: unknown;
|
|
1255
|
+
};
|
|
1268
1256
|
}>, z.ZodObject<{
|
|
1269
1257
|
meta: z.ZodObject<z.objectUtil.extendShape<{
|
|
1270
1258
|
messageId: z.ZodString;
|
|
@@ -1303,31 +1291,31 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1303
1291
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1304
1292
|
}>, "many">;
|
|
1305
1293
|
}, "strip", z.ZodTypeAny, {
|
|
1306
|
-
meta: {
|
|
1307
|
-
type: "medical.document-conversion";
|
|
1308
|
-
messageId: string;
|
|
1309
|
-
when: string;
|
|
1310
|
-
data?: unknown;
|
|
1311
|
-
};
|
|
1312
1294
|
patients: {
|
|
1313
1295
|
status: "completed" | "failed";
|
|
1314
1296
|
patientId: string;
|
|
1315
1297
|
externalId?: string | undefined;
|
|
1316
1298
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1317
1299
|
}[];
|
|
1318
|
-
}, {
|
|
1319
1300
|
meta: {
|
|
1320
1301
|
type: "medical.document-conversion";
|
|
1321
1302
|
messageId: string;
|
|
1322
1303
|
when: string;
|
|
1323
1304
|
data?: unknown;
|
|
1324
1305
|
};
|
|
1306
|
+
}, {
|
|
1325
1307
|
patients: {
|
|
1326
1308
|
status: "completed" | "failed";
|
|
1327
1309
|
patientId: string;
|
|
1328
1310
|
externalId?: string | undefined;
|
|
1329
1311
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1330
1312
|
}[];
|
|
1313
|
+
meta: {
|
|
1314
|
+
type: "medical.document-conversion";
|
|
1315
|
+
messageId: string;
|
|
1316
|
+
when: string;
|
|
1317
|
+
data?: unknown;
|
|
1318
|
+
};
|
|
1331
1319
|
}>, z.ZodObject<{
|
|
1332
1320
|
meta: z.ZodObject<z.objectUtil.extendShape<{
|
|
1333
1321
|
messageId: z.ZodString;
|
|
@@ -1477,12 +1465,6 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1477
1465
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1478
1466
|
}>, "many">;
|
|
1479
1467
|
}, "strip", z.ZodTypeAny, {
|
|
1480
|
-
meta: {
|
|
1481
|
-
type: "medical.document-bulk-download-urls";
|
|
1482
|
-
messageId: string;
|
|
1483
|
-
when: string;
|
|
1484
|
-
data?: unknown;
|
|
1485
|
-
};
|
|
1486
1468
|
patients: {
|
|
1487
1469
|
status: "completed" | "failed";
|
|
1488
1470
|
patientId: string;
|
|
@@ -1507,13 +1489,13 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1507
1489
|
externalId?: string | undefined;
|
|
1508
1490
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1509
1491
|
}[];
|
|
1510
|
-
}, {
|
|
1511
1492
|
meta: {
|
|
1512
1493
|
type: "medical.document-bulk-download-urls";
|
|
1513
1494
|
messageId: string;
|
|
1514
1495
|
when: string;
|
|
1515
1496
|
data?: unknown;
|
|
1516
1497
|
};
|
|
1498
|
+
}, {
|
|
1517
1499
|
patients: {
|
|
1518
1500
|
status: "completed" | "failed";
|
|
1519
1501
|
patientId: string;
|
|
@@ -1538,8 +1520,14 @@ export declare const webhookRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1538
1520
|
externalId?: string | undefined;
|
|
1539
1521
|
additionalIds?: Record<string, string[]> | undefined;
|
|
1540
1522
|
}[];
|
|
1523
|
+
meta: {
|
|
1524
|
+
type: "medical.document-bulk-download-urls";
|
|
1525
|
+
messageId: string;
|
|
1526
|
+
when: string;
|
|
1527
|
+
data?: unknown;
|
|
1528
|
+
};
|
|
1541
1529
|
}>]>;
|
|
1542
|
-
export type WebhookRequest = z.infer<typeof webhookRequestSchema
|
|
1530
|
+
export type WebhookRequest = z.infer<typeof webhookRequestSchema>;
|
|
1543
1531
|
export declare class WebhookRequestParsingFailure {
|
|
1544
1532
|
readonly errors: ZodError<WebhookRequest>;
|
|
1545
1533
|
readonly flattened: ZodFormattedError<WebhookRequest>;
|
|
@@ -1550,5 +1538,4 @@ export declare function isConsolidatedWebhookRequest(whRequest: WebhookRequest):
|
|
|
1550
1538
|
export declare function isDocumentDownloadWebhookRequest(whRequest: WebhookRequest): whRequest is DocumentDownloadWebhookRequest;
|
|
1551
1539
|
export declare function isDocumentConversionWebhookRequest(whRequest: WebhookRequest): whRequest is DocumentConversionWebhookRequest;
|
|
1552
1540
|
export declare function isDocumentBulkDownloadWebhookRequest(whRequest: WebhookRequest): whRequest is DocumentBulkDownloadWebhookRequest;
|
|
1553
|
-
export declare function isBulkPatientImportWebhookRequest(whRequest: WebhookRequest): whRequest is WebhookBulkPatientImportPayload;
|
|
1554
1541
|
//# sourceMappingURL=webhook-request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-request.d.ts","sourceRoot":"","sources":["../../../src/medical/webhook/webhook-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,KAAK,CAAC;AAErD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"webhook-request.d.ts","sourceRoot":"","sources":["../../../src/medical/webhook/webhook-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,KAAK,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,eAAO,MAAM,qBAAqB,sBAAoB,CAAC;AACvD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,6BAA6B,2CAAyC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,4BAA4B,2CAAyC,CAAC;AACnF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEvF,eAAO,MAAM,8BAA8B,6CAA2C,CAAC;AACvF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE3F,eAAO,MAAM,gCAA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;;;;IA4HH,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,qBAAa,4BAA4B;IAErC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC,cAAc,CAAC;gBAD5C,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,EAChC,SAAS,EAAE,iBAAiB,CAAC,cAAc,CAAC;CAExD;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,cAAc,GAAG,SAAS,IAAI,kBAAkB,CAG/F;AAED,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,cAAc,GACxB,SAAS,IAAI,0BAA0B,CAKzC;AAED,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,cAAc,GACxB,SAAS,IAAI,8BAA8B,CAK7C;AAED,wBAAgB,kCAAkC,CAChD,SAAS,EAAE,cAAc,GACxB,SAAS,IAAI,gCAAgC,CAK/C;AAED,wBAAgB,oCAAoC,CAClD,SAAS,EAAE,cAAc,GACxB,SAAS,IAAI,kCAAkC,CAKjD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isDocumentBulkDownloadWebhookRequest = exports.isDocumentConversionWebhookRequest = exports.isDocumentDownloadWebhookRequest = exports.isConsolidatedWebhookRequest = exports.isPingWebhookRequest = exports.WebhookRequestParsingFailure = exports.webhookRequestSchema = exports.documentBulkDownloadWebhookRequestSchema = exports.documentBulkDownloadWebhookPatientSchema = exports.documentConversionWebhookRequestSchema = exports.documentConversionWebhookPatientSchema = exports.documentDownloadWebhookRequestSchema = exports.documentDownloadWebhookPatientSchema = exports.consolidatedWebhookRequestSchema = exports.consolidatedWebhookPatientSchema = exports.filtersSchema = exports.pingWebhookRequestDataSchema = exports.webhookMetadataSchema = exports.baseWebhookMetadataSchema = exports.webhookRequestStatus = exports.webhookTypeSchema = exports.mapiWebhookTypeSchema = exports.docBulkDownloadWebhookTypeSchema = exports.docConversionWebhookTypeSchema = exports.docDownloadWebhookTypeSchema = exports.consolidatedWebhookTypeSchema = exports.pingWebhookTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const date_1 = require("../../common/date");
|
|
6
6
|
exports.pingWebhookTypeSchema = zod_1.z.literal(`ping`);
|
|
@@ -8,13 +8,11 @@ exports.consolidatedWebhookTypeSchema = zod_1.z.literal(`medical.consolidated-da
|
|
|
8
8
|
exports.docDownloadWebhookTypeSchema = zod_1.z.literal(`medical.document-download`);
|
|
9
9
|
exports.docConversionWebhookTypeSchema = zod_1.z.literal(`medical.document-conversion`);
|
|
10
10
|
exports.docBulkDownloadWebhookTypeSchema = zod_1.z.literal(`medical.document-bulk-download-urls`);
|
|
11
|
-
exports.bulkPatientImportWebhookTypeSchema = zod_1.z.literal(`medical.bulk-patient-create`);
|
|
12
11
|
exports.mapiWebhookTypeSchema = exports.consolidatedWebhookTypeSchema
|
|
13
12
|
.or(exports.consolidatedWebhookTypeSchema)
|
|
14
13
|
.or(exports.docDownloadWebhookTypeSchema)
|
|
15
14
|
.or(exports.docConversionWebhookTypeSchema)
|
|
16
|
-
.or(exports.docBulkDownloadWebhookTypeSchema)
|
|
17
|
-
.or(exports.bulkPatientImportWebhookTypeSchema);
|
|
15
|
+
.or(exports.docBulkDownloadWebhookTypeSchema);
|
|
18
16
|
exports.webhookTypeSchema = exports.pingWebhookTypeSchema.or(exports.mapiWebhookTypeSchema);
|
|
19
17
|
exports.webhookRequestStatus = ["processing", "success", "failure"];
|
|
20
18
|
exports.baseWebhookMetadataSchema = zod_1.z.object({
|
|
@@ -151,11 +149,4 @@ function isDocumentBulkDownloadWebhookRequest(whRequest) {
|
|
|
151
149
|
return false;
|
|
152
150
|
}
|
|
153
151
|
exports.isDocumentBulkDownloadWebhookRequest = isDocumentBulkDownloadWebhookRequest;
|
|
154
|
-
function isBulkPatientImportWebhookRequest(whRequest) {
|
|
155
|
-
if (whRequest.meta.type === "medical.bulk-patient-create") {
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
return false;
|
|
159
|
-
}
|
|
160
|
-
exports.isBulkPatientImportWebhookRequest = isBulkPatientImportWebhookRequest;
|
|
161
152
|
//# sourceMappingURL=webhook-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-request.js","sourceRoot":"","sources":["../../../src/medical/webhook/webhook-request.ts"],"names":[],"mappings":";;;AAAA,6BAAqD;AACrD,4CAA+C;
|
|
1
|
+
{"version":3,"file":"webhook-request.js","sourceRoot":"","sources":["../../../src/medical/webhook/webhook-request.ts"],"names":[],"mappings":";;;AAAA,6BAAqD;AACrD,4CAA+C;AAGlC,QAAA,qBAAqB,GAAG,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAG1C,QAAA,6BAA6B,GAAG,OAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAGvE,QAAA,4BAA4B,GAAG,OAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAGtE,QAAA,8BAA8B,GAAG,OAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAG1E,QAAA,gCAAgC,GAAG,OAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC,CAAC;AAGpF,QAAA,qBAAqB,GAAG,qCAA6B;KAC/D,EAAE,CAAC,qCAA6B,CAAC;KACjC,EAAE,CAAC,oCAA4B,CAAC;KAChC,EAAE,CAAC,sCAA8B,CAAC;KAClC,EAAE,CAAC,wCAAgC,CAAC,CAAC;AAG3B,QAAA,iBAAiB,GAAG,6BAAqB,CAAC,EAAE,CAAC,6BAAqB,CAAC,CAAC;AAGpE,QAAA,oBAAoB,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAGrE,QAAA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EzB,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,2BAA2B,EAAE;QACvD,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,4EAOC;AAED,SAAgB,kCAAkC,CAChD,SAAyB;IAEzB,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,6BAA6B,EAAE;QACzD,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,gFAOC;AAED,SAAgB,oCAAoC,CAClD,SAAyB;IAEzB,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,qCAAqC,EAAE;QACjE,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,oFAOC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/shared",
|
|
3
|
-
"version": "0.21.0
|
|
3
|
+
"version": "0.21.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/",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"ts-jest": "29.1.1",
|
|
102
102
|
"typescript": "^4.9.5"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "dc97533da7870ea46157ce741688a0399965ccfe"
|
|
105
105
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const updateJobSchema: z.ZodObject<{
|
|
3
|
-
status: z.ZodEnum<["waiting", "processing", "completed", "failed"]>;
|
|
4
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
failed: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
forceStatusUpdate: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
status: "waiting" | "processing" | "completed" | "failed";
|
|
9
|
-
failed?: number | undefined;
|
|
10
|
-
total?: number | undefined;
|
|
11
|
-
forceStatusUpdate?: boolean | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
status: "waiting" | "processing" | "completed" | "failed";
|
|
14
|
-
failed?: number | undefined;
|
|
15
|
-
total?: number | undefined;
|
|
16
|
-
forceStatusUpdate?: boolean | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export type UpdateJobSchema = z.infer<typeof updateJobSchema>;
|
|
19
|
-
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/domain/patient/patient-import/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAK1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|