@metriport/shared 0.28.0 → 0.28.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/domain/address/zip.d.ts +1 -0
- package/dist/domain/address/zip.d.ts.map +1 -1
- package/dist/domain/address/zip.js +8 -1
- package/dist/domain/address/zip.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/error/bad-request.d.ts +2 -2
- package/dist/error/bad-request.d.ts.map +1 -1
- package/dist/error/bad-request.js.map +1 -1
- package/dist/error/too-many-requests.d.ts +2 -2
- package/dist/error/too-many-requests.d.ts.map +1 -1
- package/dist/error/too-many-requests.js.map +1 -1
- 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 +9 -0
- package/dist/interface/external/athenahealth/index.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/index.js +25 -0
- package/dist/interface/external/athenahealth/index.js.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts +34 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.js +18 -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/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/condition.d.ts +12 -0
- package/dist/interface/external/ehr/healthie/condition.d.ts.map +1 -1
- package/dist/interface/external/ehr/healthie/condition.js +1 -0
- package/dist/interface/external/ehr/healthie/condition.js.map +1 -1
- package/dist/interface/external/elation/appointment.d.ts +68 -0
- package/dist/interface/external/elation/appointment.d.ts.map +1 -0
- package/dist/interface/external/elation/appointment.js +15 -0
- package/dist/interface/external/elation/appointment.js.map +1 -0
- package/dist/interface/external/elation/index.d.ts +4 -0
- package/dist/interface/external/elation/index.d.ts.map +1 -0
- package/dist/interface/external/elation/index.js +20 -0
- package/dist/interface/external/elation/index.js.map +1 -0
- package/dist/interface/external/elation/jwt-token.d.ts +20 -0
- package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/elation/jwt-token.js +13 -0
- package/dist/interface/external/elation/jwt-token.js.map +1 -0
- package/dist/interface/external/elation/patient.d.ts +96 -0
- package/dist/interface/external/elation/patient.d.ts.map +1 -0
- package/dist/interface/external/elation/patient.js +33 -0
- package/dist/interface/external/elation/patient.js.map +1 -0
- package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
- package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
- package/dist/interface/external/shared/ehr/patient.js +35 -0
- package/dist/interface/external/shared/ehr/patient.js.map +1 -0
- package/package.json +2 -2
- package/dist/core/src/domain/document-query.d.ts +0 -25
- package/dist/core/src/domain/document-query.d.ts.map +0 -1
- package/dist/core/src/domain/document-query.js +0 -27
- package/dist/core/src/domain/document-query.js.map +0 -1
- package/dist/domain/network/network-query.d.ts +0 -30
- package/dist/domain/network/network-query.d.ts.map +0 -1
- package/dist/domain/network/network-query.js +0 -8
- package/dist/domain/network/network-query.js.map +0 -1
- package/dist/domain/network-query/network-query.d.ts +0 -31
- package/dist/domain/network-query/network-query.d.ts.map +0 -1
- package/dist/domain/network-query/network-query.js +0 -9
- package/dist/domain/network-query/network-query.js.map +0 -1
- package/dist/domain/network-query/query.d.ts +0 -52
- package/dist/domain/network-query/query.d.ts.map +0 -1
- package/dist/domain/network-query/query.js +0 -19
- package/dist/domain/network-query/query.js.map +0 -1
- package/dist/domain/network-query/source.d.ts +0 -35
- package/dist/domain/network-query/source.d.ts.map +0 -1
- package/dist/domain/network-query/source.js +0 -15
- package/dist/domain/network-query/source.js.map +0 -1
- package/dist/domain/network-qyert/network-query.d.ts +0 -31
- package/dist/domain/network-qyert/network-query.d.ts.map +0 -1
- package/dist/domain/network-qyert/network-query.js +0 -9
- package/dist/domain/network-qyert/network-query.js.map +0 -1
- package/dist/domain/roster/patient-roster.d.ts +0 -16
- package/dist/domain/roster/patient-roster.d.ts.map +0 -1
- package/dist/domain/roster/patient-roster.js +0 -3
- package/dist/domain/roster/patient-roster.js.map +0 -1
- package/dist/domain/roster/roster-status.d.ts +0 -16
- package/dist/domain/roster/roster-status.d.ts.map +0 -1
- package/dist/domain/roster/roster-status.js +0 -49
- package/dist/domain/roster/roster-status.js.map +0 -1
- package/dist/domain/roster/roster.d.ts +0 -39
- package/dist/domain/roster/roster.d.ts.map +0 -1
- package/dist/domain/roster/roster.js +0 -3
- package/dist/domain/roster/roster.js.map +0 -1
- package/dist/interface/external/quest/fhir.d.ts +0 -22
- package/dist/interface/external/quest/fhir.d.ts.map +0 -1
- package/dist/interface/external/quest/fhir.js +0 -9
- package/dist/interface/external/quest/fhir.js.map +0 -1
- package/dist/interface/external/quest/file.d.ts +0 -7
- package/dist/interface/external/quest/file.d.ts.map +0 -1
- package/dist/interface/external/quest/file.js +0 -3
- package/dist/interface/external/quest/file.js.map +0 -1
- package/dist/interface/external/quest/roster.d.ts +0 -21
- package/dist/interface/external/quest/roster.d.ts.map +0 -1
- package/dist/interface/external/quest/roster.js +0 -39
- package/dist/interface/external/quest/roster.js.map +0 -1
- package/dist/interface/external/surescripts/roster.d.ts +0 -12
- package/dist/interface/external/surescripts/roster.d.ts.map +0 -1
- package/dist/interface/external/surescripts/roster.js +0 -29
- package/dist/interface/external/surescripts/roster.js.map +0 -1
- package/dist/interface/external/surescripts/source.d.ts +0 -2
- package/dist/interface/external/surescripts/source.d.ts.map +0 -1
- package/dist/interface/external/surescripts/source.js +0 -5
- package/dist/interface/external/surescripts/source.js.map +0 -1
- package/dist/shared/src/domain/network/network-query.d.ts +0 -30
- package/dist/shared/src/domain/network/network-query.d.ts.map +0 -1
- package/dist/shared/src/domain/network/network-query.js +0 -8
- package/dist/shared/src/domain/network/network-query.js.map +0 -1
- package/dist/shared/src/domain/network-query/network-query.d.ts +0 -30
- package/dist/shared/src/domain/network-query/network-query.d.ts.map +0 -1
- package/dist/shared/src/domain/network-query/network-query.js +0 -8
- package/dist/shared/src/domain/network-query/network-query.js.map +0 -1
- package/dist/shared/src/domain/network-qyert/network-query.d.ts +0 -30
- package/dist/shared/src/domain/network-qyert/network-query.d.ts.map +0 -1
- package/dist/shared/src/domain/network-qyert/network-query.js +0 -8
- package/dist/shared/src/domain/network-qyert/network-query.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export type ElationClientJwtTokenData = {
|
|
3
|
+
practiceId: string;
|
|
4
|
+
cxId: string;
|
|
5
|
+
source: "elation-client";
|
|
6
|
+
};
|
|
7
|
+
export declare const elationClientJwtTokenResponseSchema: z.ZodObject<{
|
|
8
|
+
scope: z.ZodString;
|
|
9
|
+
access_token: z.ZodString;
|
|
10
|
+
expires_in: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
scope: string;
|
|
13
|
+
access_token: string;
|
|
14
|
+
expires_in: string;
|
|
15
|
+
}, {
|
|
16
|
+
scope: string;
|
|
17
|
+
access_token: string;
|
|
18
|
+
expires_in: string;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=jwt-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/elation/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.elationClientJwtTokenResponseSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.elationClientJwtTokenResponseSchema = zod_1.default.object({
|
|
9
|
+
scope: zod_1.default.string(),
|
|
10
|
+
access_token: zod_1.default.string(),
|
|
11
|
+
expires_in: zod_1.default.coerce.string(),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=jwt-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../src/interface/external/elation/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAQP,QAAA,mCAAmC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientSchema: z.ZodObject<{
|
|
3
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
4
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
middle_name: z.ZodNullable<z.ZodString>;
|
|
6
|
+
sex: z.ZodString;
|
|
7
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
8
|
+
state: z.ZodNullable<z.ZodString>;
|
|
9
|
+
address_line1: z.ZodNullable<z.ZodString>;
|
|
10
|
+
address_line2: z.ZodNullable<z.ZodString>;
|
|
11
|
+
city: z.ZodNullable<z.ZodString>;
|
|
12
|
+
zip: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
zip: string | null;
|
|
15
|
+
city: string | null;
|
|
16
|
+
state: string | null;
|
|
17
|
+
address_line1: string | null;
|
|
18
|
+
address_line2: string | null;
|
|
19
|
+
}, {
|
|
20
|
+
zip: string | null;
|
|
21
|
+
city: string | null;
|
|
22
|
+
state: string | null;
|
|
23
|
+
address_line1: string | null;
|
|
24
|
+
address_line2: string | null;
|
|
25
|
+
}>>;
|
|
26
|
+
dob: z.ZodString;
|
|
27
|
+
phones: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
28
|
+
phone: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
phone: string;
|
|
31
|
+
}, {
|
|
32
|
+
phone: string;
|
|
33
|
+
}>, "many">>;
|
|
34
|
+
emails: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
|
+
email: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
email: string;
|
|
38
|
+
}, {
|
|
39
|
+
email: string;
|
|
40
|
+
}>, "many">>;
|
|
41
|
+
ssn: z.ZodNullable<z.ZodString>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
dob: string;
|
|
44
|
+
ssn: string | null;
|
|
45
|
+
first_name: string | null;
|
|
46
|
+
last_name: string | null;
|
|
47
|
+
middle_name: string | null;
|
|
48
|
+
sex: string;
|
|
49
|
+
address: {
|
|
50
|
+
zip: string | null;
|
|
51
|
+
city: string | null;
|
|
52
|
+
state: string | null;
|
|
53
|
+
address_line1: string | null;
|
|
54
|
+
address_line2: string | null;
|
|
55
|
+
} | null;
|
|
56
|
+
phones: {
|
|
57
|
+
phone: string;
|
|
58
|
+
}[] | null;
|
|
59
|
+
emails: {
|
|
60
|
+
email: string;
|
|
61
|
+
}[] | null;
|
|
62
|
+
}, {
|
|
63
|
+
dob: string;
|
|
64
|
+
ssn: string | null;
|
|
65
|
+
first_name: string | null;
|
|
66
|
+
last_name: string | null;
|
|
67
|
+
middle_name: string | null;
|
|
68
|
+
sex: string;
|
|
69
|
+
address: {
|
|
70
|
+
zip: string | null;
|
|
71
|
+
city: string | null;
|
|
72
|
+
state: string | null;
|
|
73
|
+
address_line1: string | null;
|
|
74
|
+
address_line2: string | null;
|
|
75
|
+
} | null;
|
|
76
|
+
phones: {
|
|
77
|
+
phone: string;
|
|
78
|
+
}[] | null;
|
|
79
|
+
emails: {
|
|
80
|
+
email: string;
|
|
81
|
+
}[] | null;
|
|
82
|
+
}>;
|
|
83
|
+
export type Patient = z.infer<typeof patientSchema>;
|
|
84
|
+
declare const metadata: z.ZodObject<{
|
|
85
|
+
object_id: z.ZodString;
|
|
86
|
+
object_web_link: z.ZodString;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
object_id: string;
|
|
89
|
+
object_web_link: string;
|
|
90
|
+
}, {
|
|
91
|
+
object_id: string;
|
|
92
|
+
object_web_link: string;
|
|
93
|
+
}>;
|
|
94
|
+
export type Metadata = z.infer<typeof metadata>;
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/elation/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,QAAA,MAAM,QAAQ;;;;;;;;;EAGZ,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const address = zod_1.z.object({
|
|
6
|
+
state: zod_1.z.string().nullable(),
|
|
7
|
+
address_line1: zod_1.z.string().nullable(),
|
|
8
|
+
address_line2: zod_1.z.string().nullable(),
|
|
9
|
+
city: zod_1.z.string().nullable(),
|
|
10
|
+
zip: zod_1.z.string().nullable(),
|
|
11
|
+
});
|
|
12
|
+
const phone = zod_1.z.object({
|
|
13
|
+
phone: zod_1.z.string(),
|
|
14
|
+
});
|
|
15
|
+
const email = zod_1.z.object({
|
|
16
|
+
email: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
exports.patientSchema = zod_1.z.object({
|
|
19
|
+
first_name: zod_1.z.string().nullable(),
|
|
20
|
+
last_name: zod_1.z.string().nullable(),
|
|
21
|
+
middle_name: zod_1.z.string().nullable(),
|
|
22
|
+
sex: zod_1.z.string(),
|
|
23
|
+
address: address.nullable(),
|
|
24
|
+
dob: zod_1.z.string(),
|
|
25
|
+
phones: phone.array().nullable(),
|
|
26
|
+
emails: email.array().nullable(),
|
|
27
|
+
ssn: zod_1.z.string().nullable(),
|
|
28
|
+
});
|
|
29
|
+
const metadata = zod_1.z.object({
|
|
30
|
+
object_id: zod_1.z.string(),
|
|
31
|
+
object_web_link: zod_1.z.string(),
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../src/interface/external/elation/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,CAAC;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM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@@ -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
|
+
city?: string | undefined;
|
|
22
|
+
state?: string | undefined;
|
|
23
|
+
line?: string[] | undefined;
|
|
24
|
+
postalCode?: string | undefined;
|
|
25
|
+
country?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
city?: string | undefined;
|
|
28
|
+
state?: 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
|
+
address?: {
|
|
48
|
+
city?: string | undefined;
|
|
49
|
+
state?: string | undefined;
|
|
50
|
+
line?: string[] | undefined;
|
|
51
|
+
postalCode?: string | undefined;
|
|
52
|
+
country?: string | undefined;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
name?: {
|
|
55
|
+
family?: string | undefined;
|
|
56
|
+
given?: 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
|
+
address?: {
|
|
66
|
+
city?: string | undefined;
|
|
67
|
+
state?: string | undefined;
|
|
68
|
+
line?: string[] | undefined;
|
|
69
|
+
postalCode?: string | undefined;
|
|
70
|
+
country?: string | undefined;
|
|
71
|
+
}[] | undefined;
|
|
72
|
+
name?: {
|
|
73
|
+
family?: string | undefined;
|
|
74
|
+
given?: 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
|
+
city?: string | undefined;
|
|
104
|
+
state?: string | undefined;
|
|
105
|
+
line?: string[] | undefined;
|
|
106
|
+
postalCode?: string | undefined;
|
|
107
|
+
country?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
city?: string | undefined;
|
|
110
|
+
state?: 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
|
+
address?: {
|
|
130
|
+
city?: string | undefined;
|
|
131
|
+
state?: string | undefined;
|
|
132
|
+
line?: string[] | undefined;
|
|
133
|
+
postalCode?: string | undefined;
|
|
134
|
+
country?: string | undefined;
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
name?: {
|
|
137
|
+
family?: string | undefined;
|
|
138
|
+
given?: 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
|
+
address?: {
|
|
148
|
+
city?: string | undefined;
|
|
149
|
+
state?: string | undefined;
|
|
150
|
+
line?: string[] | undefined;
|
|
151
|
+
postalCode?: string | undefined;
|
|
152
|
+
country?: string | undefined;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
name?: {
|
|
155
|
+
family?: string | undefined;
|
|
156
|
+
given?: 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
|
+
address?: {
|
|
168
|
+
city?: string | undefined;
|
|
169
|
+
state?: string | undefined;
|
|
170
|
+
line?: string[] | undefined;
|
|
171
|
+
postalCode?: string | undefined;
|
|
172
|
+
country?: string | undefined;
|
|
173
|
+
}[] | undefined;
|
|
174
|
+
name?: {
|
|
175
|
+
family?: string | undefined;
|
|
176
|
+
given?: 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
|
+
address?: {
|
|
188
|
+
city?: string | undefined;
|
|
189
|
+
state?: string | undefined;
|
|
190
|
+
line?: string[] | undefined;
|
|
191
|
+
postalCode?: string | undefined;
|
|
192
|
+
country?: string | undefined;
|
|
193
|
+
}[] | undefined;
|
|
194
|
+
name?: {
|
|
195
|
+
family?: string | undefined;
|
|
196
|
+
given?: 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
|
+
address?: {
|
|
210
|
+
city?: string | undefined;
|
|
211
|
+
state?: string | undefined;
|
|
212
|
+
line?: string[] | undefined;
|
|
213
|
+
postalCode?: string | undefined;
|
|
214
|
+
country?: string | undefined;
|
|
215
|
+
}[] | undefined;
|
|
216
|
+
name?: {
|
|
217
|
+
family?: string | undefined;
|
|
218
|
+
given?: 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
|
+
address?: {
|
|
232
|
+
city?: string | undefined;
|
|
233
|
+
state?: string | undefined;
|
|
234
|
+
line?: string[] | undefined;
|
|
235
|
+
postalCode?: string | undefined;
|
|
236
|
+
country?: string | undefined;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
name?: {
|
|
239
|
+
family?: string | undefined;
|
|
240
|
+
given?: 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,MAA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ages - by Metriport Inc.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"ts-jest": "29.1.1",
|
|
125
125
|
"typescript": "^4.9.5"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "89a227b939859173f4209393479f4a1b1e0d8a67"
|
|
128
128
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const documentQueryStatus: readonly ["processing", "completed", "failed"];
|
|
2
|
-
export type DocumentQueryStatus = (typeof documentQueryStatus)[number];
|
|
3
|
-
export type Progress = {
|
|
4
|
-
status: DocumentQueryStatus;
|
|
5
|
-
total?: number;
|
|
6
|
-
successful?: number;
|
|
7
|
-
errors?: number;
|
|
8
|
-
webhookSent?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type ProgressIntKeys = keyof Omit<Progress, "status">;
|
|
11
|
-
export declare const progressTypes: readonly ["convert", "download"];
|
|
12
|
-
export type ProgressType = (typeof progressTypes)[number];
|
|
13
|
-
export type DocumentQueryProgress = Partial<Record<ProgressType, Progress> & {
|
|
14
|
-
requestId: string;
|
|
15
|
-
startedAt: Date;
|
|
16
|
-
triggerConsolidated: boolean;
|
|
17
|
-
forceDownload: boolean;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const convertResult: readonly ["success", "failed"];
|
|
20
|
-
export type ConvertResult = (typeof convertResult)[number];
|
|
21
|
-
export declare function getStatusFromProgress(progress: Pick<Progress, "errors" | "successful" | "total">): DocumentQueryStatus;
|
|
22
|
-
export declare function isProcessingStatus(status?: DocumentQueryStatus | undefined): boolean;
|
|
23
|
-
export declare function isFinalStatus(status?: DocumentQueryStatus | undefined): boolean;
|
|
24
|
-
export declare function isProcessing(progress?: Progress | undefined): boolean;
|
|
25
|
-
//# sourceMappingURL=document-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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ED,wBAAgB,YAAY,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,WAE3D"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isProcessing = exports.isFinalStatus = exports.isProcessingStatus = exports.getStatusFromProgress = exports.convertResult = exports.progressTypes = exports.documentQueryStatus = void 0;
|
|
4
|
-
exports.documentQueryStatus = ["processing", "completed", "failed"];
|
|
5
|
-
exports.progressTypes = ["convert", "download"];
|
|
6
|
-
exports.convertResult = ["success", "failed"];
|
|
7
|
-
function getStatusFromProgress(progress) {
|
|
8
|
-
const { successful, errors, total } = progress;
|
|
9
|
-
const isConversionCompleted = (successful ?? 0) + (errors ?? 0) >= (total ?? 0);
|
|
10
|
-
return isConversionCompleted ? "completed" : "processing";
|
|
11
|
-
}
|
|
12
|
-
exports.getStatusFromProgress = getStatusFromProgress;
|
|
13
|
-
function isProcessingStatus(status) {
|
|
14
|
-
if (!status)
|
|
15
|
-
return false;
|
|
16
|
-
return status === "processing";
|
|
17
|
-
}
|
|
18
|
-
exports.isProcessingStatus = isProcessingStatus;
|
|
19
|
-
function isFinalStatus(status) {
|
|
20
|
-
return !isProcessingStatus(status);
|
|
21
|
-
}
|
|
22
|
-
exports.isFinalStatus = isFinalStatus;
|
|
23
|
-
function isProcessing(progress) {
|
|
24
|
-
return isProcessingStatus(progress?.status);
|
|
25
|
-
}
|
|
26
|
-
exports.isProcessing = isProcessing;
|
|
27
|
-
//# sourceMappingURL=document-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-query.js","sourceRoot":"","sources":["../../../../../core/src/domain/document-query.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAarE,QAAA,aAAa,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAYjD,QAAA,aAAa,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU,CAAC;AAG5D,SAAgB,qBAAqB,CACnC,QAA2D;IAE3D,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAC/C,MAAM,qBAAqB,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IAChF,OAAO,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC;AAC5D,CAAC;AAND,sDAMC;AAED,SAAgB,kBAAkB,CAAC,MAAwC;IACzE,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1B,OAAO,MAAM,KAAK,YAAY,CAAC;AACjC,CAAC;AAHD,gDAGC;AACD,SAAgB,aAAa,CAAC,MAAwC;IACpE,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC;AAFD,sCAEC;AAED,SAAgB,YAAY,CAAC,QAA+B;IAC1D,OAAO,kBAAkB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC;AAFD,oCAEC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DocumentQueryStatus } from "./document-query";
|
|
2
|
-
export type NetworkQueryParams = {
|
|
3
|
-
cxId: string;
|
|
4
|
-
facilityId: string;
|
|
5
|
-
patientId: string;
|
|
6
|
-
requestId?: string;
|
|
7
|
-
};
|
|
8
|
-
export type NetworkQueryProgress = {
|
|
9
|
-
networks: SourceQueryProgress[];
|
|
10
|
-
};
|
|
11
|
-
export declare const hieSource = "hie";
|
|
12
|
-
export declare const pharmacySource = "pharmacy";
|
|
13
|
-
export declare const laboratorySource = "laboratory";
|
|
14
|
-
export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
|
|
15
|
-
export type NetworkSource = (typeof networkSources)[number];
|
|
16
|
-
export type SourceQueryProgress = {
|
|
17
|
-
type: NetworkSource;
|
|
18
|
-
source?: string;
|
|
19
|
-
status: DocumentQueryStatus;
|
|
20
|
-
startedAt?: Date;
|
|
21
|
-
requestId?: string;
|
|
22
|
-
documents?: {
|
|
23
|
-
downloadInProgress: number;
|
|
24
|
-
downloaded: number;
|
|
25
|
-
converted: number;
|
|
26
|
-
failed: number;
|
|
27
|
-
total: number;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=network-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../src/domain/network/network-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = void 0;
|
|
4
|
-
exports.hieSource = "hie";
|
|
5
|
-
exports.pharmacySource = "pharmacy";
|
|
6
|
-
exports.laboratorySource = "laboratory";
|
|
7
|
-
exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
|
|
8
|
-
//# sourceMappingURL=network-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../src/domain/network/network-query.ts"],"names":[],"mappings":";;;AAaa,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const sourceQueryStatus: readonly ["processing", "completed", "failed"];
|
|
2
|
-
export type SourceQueryStatus = (typeof sourceQueryStatus)[number];
|
|
3
|
-
export type NetworkQueryParams = {
|
|
4
|
-
cxId: string;
|
|
5
|
-
facilityId: string;
|
|
6
|
-
patientId: string;
|
|
7
|
-
requestId?: string;
|
|
8
|
-
};
|
|
9
|
-
export type NetworkQueryProgress = {
|
|
10
|
-
networks: SourceQueryStatus[];
|
|
11
|
-
};
|
|
12
|
-
export declare const hieSource = "hie";
|
|
13
|
-
export declare const pharmacySource = "pharmacy";
|
|
14
|
-
export declare const laboratorySource = "laboratory";
|
|
15
|
-
export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
|
|
16
|
-
export type NetworkSource = (typeof networkSources)[number];
|
|
17
|
-
export type SourceQueryProgress = {
|
|
18
|
-
type: NetworkSource;
|
|
19
|
-
source?: string;
|
|
20
|
-
status: SourceQueryStatus;
|
|
21
|
-
startedAt?: Date;
|
|
22
|
-
requestId?: string;
|
|
23
|
-
documents?: {
|
|
24
|
-
downloadInProgress: number;
|
|
25
|
-
downloaded: number;
|
|
26
|
-
converted: number;
|
|
27
|
-
failed: number;
|
|
28
|
-
total: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=network-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../src/domain/network-query/network-query.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,gDAAiD,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = exports.sourceQueryStatus = void 0;
|
|
4
|
-
exports.sourceQueryStatus = ["processing", "completed", "failed"];
|
|
5
|
-
exports.hieSource = "hie";
|
|
6
|
-
exports.pharmacySource = "pharmacy";
|
|
7
|
-
exports.laboratorySource = "laboratory";
|
|
8
|
-
exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
|
|
9
|
-
//# sourceMappingURL=network-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../src/domain/network-query/network-query.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAcnE,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
|