@metriport/shared 0.28.2-alpha.0 → 0.29.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/cql-engine/transform.d.ts +10 -0
- package/dist/domain/cql-engine/transform.d.ts.map +1 -1
- package/dist/domain/cql-engine/transform.js +5 -1
- package/dist/domain/cql-engine/transform.js.map +1 -1
- package/dist/domain/organization.d.ts +3 -0
- package/dist/domain/organization.d.ts.map +1 -1
- package/dist/domain/organization.js +1 -0
- package/dist/domain/organization.js.map +1 -1
- package/dist/domain/patient.d.ts +18 -3
- package/dist/domain/patient.d.ts.map +1 -1
- package/dist/domain/patient.js +7 -1
- package/dist/domain/patient.js.map +1 -1
- package/dist/external/ihe/constants.d.ts +6 -0
- package/dist/external/ihe/constants.d.ts.map +1 -0
- package/dist/external/ihe/constants.js +8 -0
- package/dist/external/ihe/constants.js.map +1 -0
- package/dist/interface/external/ehr/embed/cx-mapping.d.ts +4 -0
- package/dist/interface/external/ehr/embed/cx-mapping.d.ts.map +1 -0
- package/dist/interface/external/ehr/embed/cx-mapping.js +6 -0
- package/dist/interface/external/ehr/embed/cx-mapping.js.map +1 -0
- package/dist/interface/external/ehr/embed/index.d.ts +3 -0
- package/dist/interface/external/ehr/embed/index.d.ts.map +1 -0
- package/dist/interface/external/ehr/embed/index.js +19 -0
- package/dist/interface/external/ehr/embed/index.js.map +1 -0
- package/dist/interface/external/ehr/embed/jwt-token.d.ts +28 -0
- package/dist/interface/external/ehr/embed/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/ehr/embed/jwt-token.js +23 -0
- package/dist/interface/external/ehr/embed/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/practicefusion/index.d.ts +2 -0
- package/dist/interface/external/ehr/practicefusion/index.d.ts.map +1 -0
- package/dist/interface/external/ehr/practicefusion/index.js +18 -0
- package/dist/interface/external/ehr/practicefusion/index.js.map +1 -0
- package/dist/interface/external/ehr/practicefusion/jwt-token.d.ts +21 -0
- package/dist/interface/external/ehr/practicefusion/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/ehr/practicefusion/jwt-token.js +16 -0
- package/dist/interface/external/ehr/practicefusion/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/practicefusion/patient.d.ts +2 -0
- package/dist/interface/external/ehr/practicefusion/patient.d.ts.map +1 -0
- package/dist/interface/external/ehr/practicefusion/patient.js +6 -0
- package/dist/interface/external/ehr/practicefusion/patient.js.map +1 -0
- package/dist/interface/external/ehr/source.d.ts +6 -1
- package/dist/interface/external/ehr/source.d.ts.map +1 -1
- package/dist/interface/external/ehr/source.js +7 -1
- package/dist/interface/external/ehr/source.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
+
export declare const executionModeSchema: z.ZodEnum<["cli", "engine"]>;
|
|
3
|
+
export type ExecutionMode = z.infer<typeof executionModeSchema>;
|
|
4
|
+
export declare const cqlParametersSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5
|
+
export type CqlParameters = z.infer<typeof cqlParametersSchema>;
|
|
2
6
|
export declare const cqlTransformSchema: z.ZodObject<{
|
|
3
7
|
cxId: z.ZodString;
|
|
4
8
|
patientId: z.ZodString;
|
|
5
9
|
jobId: z.ZodOptional<z.ZodString>;
|
|
6
10
|
patientBundleS3Key: z.ZodOptional<z.ZodString>;
|
|
7
11
|
measuresToExecute: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
mode: z.ZodOptional<z.ZodEnum<["cli", "engine"]>>;
|
|
13
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
14
|
}, "strip", z.ZodTypeAny, {
|
|
9
15
|
cxId: string;
|
|
10
16
|
patientId: string;
|
|
11
17
|
jobId?: string | undefined;
|
|
12
18
|
patientBundleS3Key?: string | undefined;
|
|
13
19
|
measuresToExecute?: string[] | undefined;
|
|
20
|
+
mode?: "engine" | "cli" | undefined;
|
|
21
|
+
parameters?: Record<string, unknown> | undefined;
|
|
14
22
|
}, {
|
|
15
23
|
cxId: string;
|
|
16
24
|
patientId: string;
|
|
17
25
|
jobId?: string | undefined;
|
|
18
26
|
patientBundleS3Key?: string | undefined;
|
|
19
27
|
measuresToExecute?: string[] | undefined;
|
|
28
|
+
mode?: "engine" | "cli" | undefined;
|
|
29
|
+
parameters?: Record<string, unknown> | undefined;
|
|
20
30
|
}>;
|
|
21
31
|
export type CqlTransformRequest = z.infer<typeof cqlTransformSchema>;
|
|
22
32
|
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/domain/cql-engine/transform.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../src/domain/cql-engine/transform.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,mBAAmB,8BAA4B,CAAC;AAC7D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB,wCAAoC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -3,13 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.cqlTransformSchema = void 0;
|
|
6
|
+
exports.cqlTransformSchema = exports.cqlParametersSchema = exports.executionModeSchema = void 0;
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.executionModeSchema = zod_1.default.enum(["cli", "engine"]);
|
|
9
|
+
exports.cqlParametersSchema = zod_1.default.record(zod_1.default.string(), zod_1.default.unknown());
|
|
8
10
|
exports.cqlTransformSchema = zod_1.default.object({
|
|
9
11
|
cxId: zod_1.default.string(),
|
|
10
12
|
patientId: zod_1.default.string(),
|
|
11
13
|
jobId: zod_1.default.string().optional(),
|
|
12
14
|
patientBundleS3Key: zod_1.default.string().optional(),
|
|
13
15
|
measuresToExecute: zod_1.default.array(zod_1.default.string()).optional(),
|
|
16
|
+
mode: exports.executionModeSchema.optional(),
|
|
17
|
+
parameters: exports.cqlParametersSchema.optional(),
|
|
14
18
|
});
|
|
15
19
|
//# sourceMappingURL=transform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../src/domain/cql-engine/transform.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,kBAAkB,GAAG,aAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,kBAAkB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,iBAAiB,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../src/domain/cql-engine/transform.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEP,QAAA,mBAAmB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGhD,QAAA,mBAAmB,GAAG,aAAC,CAAC,MAAM,CAAC,aAAC,CAAC,MAAM,EAAE,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAGxD,QAAA,kBAAkB,GAAG,aAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,kBAAkB,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,iBAAiB,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,IAAI,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,2BAAmB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
|
|
@@ -39,6 +39,7 @@ export declare const internalOrganizationDTOSchema: z.ZodObject<{
|
|
|
39
39
|
zip: string;
|
|
40
40
|
addressLine2?: string | undefined;
|
|
41
41
|
}>;
|
|
42
|
+
principalOid: z.ZodOptional<z.ZodString>;
|
|
42
43
|
businessType: z.ZodNativeEnum<typeof OrganizationBizType>;
|
|
43
44
|
cqApproved: z.ZodBoolean;
|
|
44
45
|
cqActive: z.ZodBoolean;
|
|
@@ -63,6 +64,7 @@ export declare const internalOrganizationDTOSchema: z.ZodObject<{
|
|
|
63
64
|
cwApproved: boolean;
|
|
64
65
|
cwActive: boolean;
|
|
65
66
|
shortcode?: string | undefined;
|
|
67
|
+
principalOid?: string | undefined;
|
|
66
68
|
}, {
|
|
67
69
|
name: string;
|
|
68
70
|
type: TreatmentType;
|
|
@@ -82,6 +84,7 @@ export declare const internalOrganizationDTOSchema: z.ZodObject<{
|
|
|
82
84
|
cwApproved: boolean;
|
|
83
85
|
cwActive: boolean;
|
|
84
86
|
shortcode?: string | undefined;
|
|
87
|
+
principalOid?: string | undefined;
|
|
85
88
|
}>;
|
|
86
89
|
export type InternalOrganizationDTO = z.infer<typeof internalOrganizationDTOSchema>;
|
|
87
90
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAChC;AAGD,oBAAY,mBAAmB;IAC7B,kBAAkB,wBAAwB;IAC1C,kBAAkB,yBAAyB;CAC5C;AAED,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAChC;AAGD,oBAAY,mBAAmB;IAC7B,kBAAkB,wBAAwB;IAC1C,kBAAkB,yBAAyB;CAC5C;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -31,6 +31,7 @@ exports.internalOrganizationDTOSchema = zod_1.z.object({
|
|
|
31
31
|
zip: zod_1.z.string(),
|
|
32
32
|
country: zod_1.z.string(),
|
|
33
33
|
}),
|
|
34
|
+
principalOid: zod_1.z.string().optional(),
|
|
34
35
|
businessType: zod_1.z.nativeEnum(OrganizationBizType),
|
|
35
36
|
cqApproved: zod_1.z.boolean(),
|
|
36
37
|
cqActive: zod_1.z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gDAA+B,CAAA;AACjC,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AAED,uFAAuF;AACvF,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,iEAA0C,CAAA;IAC1C,kEAA2C,CAAA;AAC7C,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAEY,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;QACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC/C,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gDAA+B,CAAA;AACjC,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AAED,uFAAuF;AACvF,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,iEAA0C,CAAA;IAC1C,kEAA2C,CAAA;AAC7C,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAEY,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;QACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC/C,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC"}
|
package/dist/domain/patient.d.ts
CHANGED
|
@@ -27,7 +27,16 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
27
27
|
addressLine2?: string | undefined;
|
|
28
28
|
city?: string | undefined;
|
|
29
29
|
}>, "many">;
|
|
30
|
-
|
|
30
|
+
contact: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
32
|
+
email: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
phone?: string | undefined;
|
|
35
|
+
email?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
phone?: string | undefined;
|
|
38
|
+
email?: string | undefined;
|
|
39
|
+
}>, "many">>;
|
|
31
40
|
}, "strip", z.ZodTypeAny, {
|
|
32
41
|
address: {
|
|
33
42
|
zip: string;
|
|
@@ -43,8 +52,11 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
43
52
|
dob: string;
|
|
44
53
|
genderAtBirth: "M" | "F" | "O" | "U";
|
|
45
54
|
dateCreated: string;
|
|
55
|
+
contact?: {
|
|
56
|
+
phone?: string | undefined;
|
|
57
|
+
email?: string | undefined;
|
|
58
|
+
}[] | undefined;
|
|
46
59
|
externalId?: string | null | undefined;
|
|
47
|
-
phoneNumber?: string | undefined;
|
|
48
60
|
}, {
|
|
49
61
|
address: {
|
|
50
62
|
zip: string;
|
|
@@ -60,8 +72,11 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
60
72
|
dob: string;
|
|
61
73
|
genderAtBirth: "M" | "F" | "O" | "U";
|
|
62
74
|
dateCreated: string;
|
|
75
|
+
contact?: {
|
|
76
|
+
phone?: string | undefined;
|
|
77
|
+
email?: string | undefined;
|
|
78
|
+
}[] | undefined;
|
|
63
79
|
externalId?: string | null | undefined;
|
|
64
|
-
phoneNumber?: string | undefined;
|
|
65
80
|
}>;
|
|
66
81
|
export type Patient = z.infer<typeof patientSchema>;
|
|
67
82
|
export declare const patientIdsSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../src/domain/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../src/domain/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,gBAAgB;;;;;;EAE3B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/domain/patient.js
CHANGED
|
@@ -18,7 +18,13 @@ exports.patientSchema = zod_1.z.object({
|
|
|
18
18
|
state: zod_1.z.string().optional(),
|
|
19
19
|
zip: zod_1.z.string(),
|
|
20
20
|
})),
|
|
21
|
-
|
|
21
|
+
contact: zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
phone: zod_1.z.string().optional(),
|
|
24
|
+
email: zod_1.z.string().optional(),
|
|
25
|
+
})
|
|
26
|
+
.array()
|
|
27
|
+
.optional(),
|
|
22
28
|
});
|
|
23
29
|
exports.patientIdsSchema = zod_1.z.object({
|
|
24
30
|
patientIds: zod_1.z.array(zod_1.z.string()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../src/domain/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,OAAC,CAAC,KAAK,CACd,OAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC,CACH;IACD,
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../src/domain/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAChC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,OAAC,CAAC,KAAK,CACd,OAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC,CACH;IACD,OAAO,EAAE,OAAC;SACP,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC;SACD,KAAK,EAAE;SACP,QAAQ,EAAE;CACd,CAAC,CAAC;AAGU,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const XCPD_STRING: "ITI-55";
|
|
2
|
+
export declare const XCA_DQ_STRING: "ITI-38";
|
|
3
|
+
export declare const XCA_DR_STRING: "ITI-39";
|
|
4
|
+
export declare const XDR_STRING: "ITI-41";
|
|
5
|
+
export type TransactionType = typeof XCPD_STRING | typeof XCA_DQ_STRING | typeof XCA_DR_STRING;
|
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/external/ihe/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,UAAoB,CAAC;AAC7C,eAAO,MAAM,aAAa,UAAoB,CAAC;AAC/C,eAAO,MAAM,aAAa,UAAoB,CAAC;AAC/C,eAAO,MAAM,UAAU,UAAoB,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,OAAO,WAAW,GAAG,OAAO,aAAa,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XDR_STRING = exports.XCA_DR_STRING = exports.XCA_DQ_STRING = exports.XCPD_STRING = void 0;
|
|
4
|
+
exports.XCPD_STRING = "ITI-55";
|
|
5
|
+
exports.XCA_DQ_STRING = "ITI-38";
|
|
6
|
+
exports.XCA_DR_STRING = "ITI-39";
|
|
7
|
+
exports.XDR_STRING = "ITI-41";
|
|
8
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/external/ihe/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,QAAiB,CAAC;AAChC,QAAA,aAAa,GAAG,QAAiB,CAAC;AAClC,QAAA,aAAa,GAAG,QAAiB,CAAC;AAClC,QAAA,UAAU,GAAG,QAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx-mapping.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/cx-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,4BAA4B,gDAAe,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cx-mapping.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/cx-mapping.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,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("./cx-mapping"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,+CAA6B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import duration from "dayjs/plugin/duration";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { EmbedSources } from "../source";
|
|
4
|
+
export declare const embedDashSource: EmbedSources;
|
|
5
|
+
export declare const defaultTokenDuration: duration.Duration;
|
|
6
|
+
export declare const maxExpirationSeconds: number;
|
|
7
|
+
export declare const embedDashJwtTokenDataSchema: z.ZodObject<{
|
|
8
|
+
cxId: z.ZodString;
|
|
9
|
+
practiceId: z.ZodString;
|
|
10
|
+
source: z.ZodLiteral<"embed">;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
cxId: string;
|
|
13
|
+
practiceId: string;
|
|
14
|
+
source: "embed";
|
|
15
|
+
}, {
|
|
16
|
+
cxId: string;
|
|
17
|
+
practiceId: string;
|
|
18
|
+
source: "embed";
|
|
19
|
+
}>;
|
|
20
|
+
export type EmbedDashJwtTokenData = z.infer<typeof embedDashJwtTokenDataSchema>;
|
|
21
|
+
export declare const createEmbedTokenSchema: z.ZodObject<{
|
|
22
|
+
expirationInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
expirationInSeconds?: number | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
expirationInSeconds?: number | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
//# sourceMappingURL=jwt-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/jwt-token.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIzC,eAAO,MAAM,eAAe,cAA8B,CAAC;AAC3D,eAAO,MAAM,oBAAoB,mBAA8B,CAAC;AAChE,eAAO,MAAM,oBAAoB,QAAmC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAItC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,sBAAsB;;;;;;EAEjC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.createEmbedTokenSchema = exports.embedDashJwtTokenDataSchema = exports.maxExpirationSeconds = exports.defaultTokenDuration = exports.embedDashSource = void 0;
|
|
7
|
+
const dayjs_1 = __importDefault(require("dayjs"));
|
|
8
|
+
const duration_1 = __importDefault(require("dayjs/plugin/duration"));
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
const source_1 = require("../source");
|
|
11
|
+
dayjs_1.default.extend(duration_1.default);
|
|
12
|
+
exports.embedDashSource = source_1.EmbedSources.embed;
|
|
13
|
+
exports.defaultTokenDuration = dayjs_1.default.duration(10, "hours");
|
|
14
|
+
exports.maxExpirationSeconds = exports.defaultTokenDuration.asSeconds();
|
|
15
|
+
exports.embedDashJwtTokenDataSchema = zod_1.z.object({
|
|
16
|
+
cxId: zod_1.z.string(),
|
|
17
|
+
practiceId: zod_1.z.string(),
|
|
18
|
+
source: zod_1.z.literal(`${exports.embedDashSource}`),
|
|
19
|
+
});
|
|
20
|
+
exports.createEmbedTokenSchema = zod_1.z.object({
|
|
21
|
+
expirationInSeconds: zod_1.z.number().int().positive().max(exports.maxExpirationSeconds).optional(),
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=jwt-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/embed/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,6BAAwB;AACxB,sCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEV,QAAA,eAAe,GAAG,qBAAY,CAAC,KAAc,CAAC;AAC9C,QAAA,oBAAoB,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AACnD,QAAA,oBAAoB,GAAG,4BAAoB,CAAC,SAAS,EAAE,CAAC;AAExD,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,GAAG,uBAAe,EAAE,CAAC;CACxC,CAAC,CAAC;AAGU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,4BAAoB,CAAC,CAAC,QAAQ,EAAE;CACtF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/practicefusion/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/practicefusion/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { EhrSources } from "../source";
|
|
3
|
+
export declare const practicefusionDashSource: EhrSources.practicefusion;
|
|
4
|
+
export declare const practicefusionDashJwtTokenDataSchema: z.ZodObject<{
|
|
5
|
+
practiceId: z.ZodString;
|
|
6
|
+
patientId: z.ZodString;
|
|
7
|
+
instanceUrl: z.ZodString;
|
|
8
|
+
source: z.ZodLiteral<"practicefusion">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
patientId: string;
|
|
11
|
+
source: "practicefusion";
|
|
12
|
+
practiceId: string;
|
|
13
|
+
instanceUrl: string;
|
|
14
|
+
}, {
|
|
15
|
+
patientId: string;
|
|
16
|
+
source: "practicefusion";
|
|
17
|
+
practiceId: string;
|
|
18
|
+
instanceUrl: string;
|
|
19
|
+
}>;
|
|
20
|
+
export type PracticeFusionDashJwtTokenData = z.infer<typeof practicefusionDashJwtTokenDataSchema>;
|
|
21
|
+
//# sourceMappingURL=jwt-token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/practicefusion/jwt-token.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,eAAO,MAAM,wBAAwB,2BAAqC,CAAC;AAC3E,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;EAK/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
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.practicefusionDashJwtTokenDataSchema = exports.practicefusionDashSource = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const source_1 = require("../source");
|
|
9
|
+
exports.practicefusionDashSource = source_1.EhrSources.practicefusion;
|
|
10
|
+
exports.practicefusionDashJwtTokenDataSchema = zod_1.default.object({
|
|
11
|
+
practiceId: zod_1.default.string(),
|
|
12
|
+
patientId: zod_1.default.string(),
|
|
13
|
+
instanceUrl: zod_1.default.string(),
|
|
14
|
+
source: zod_1.default.literal(`${exports.practicefusionDashSource}`),
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=jwt-token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jwt-token.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/practicefusion/jwt-token.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,sCAAuC;AAE1B,QAAA,wBAAwB,GAAG,mBAAU,CAAC,cAAuB,CAAC;AAC9D,QAAA,oCAAoC,GAAG,aAAC,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;IACvB,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,GAAG,gCAAwB,EAAE,CAAC;CACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/practicefusion/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientSchema = void 0;
|
|
4
|
+
var patient_1 = require("../patient");
|
|
5
|
+
Object.defineProperty(exports, "patientSchema", { enumerable: true, get: function () { return patient_1.patientSchema; } });
|
|
6
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/practicefusion/patient.ts"],"names":[],"mappings":";;;AAAA,sCAAoD;AAA3C,wGAAA,aAAa,OAAA"}
|
|
@@ -4,9 +4,14 @@ export declare enum EhrSources {
|
|
|
4
4
|
canvas = "canvas",
|
|
5
5
|
healthie = "healthie",
|
|
6
6
|
eclinicalworks = "eclinicalworks",
|
|
7
|
-
salesforce = "salesforce"
|
|
7
|
+
salesforce = "salesforce",
|
|
8
|
+
practicefusion = "practicefusion"
|
|
9
|
+
}
|
|
10
|
+
export declare enum EmbedSources {
|
|
11
|
+
embed = "embed"
|
|
8
12
|
}
|
|
9
13
|
export declare const ehrSources: readonly EhrSources[];
|
|
14
|
+
export declare const embedSource: EmbedSources;
|
|
10
15
|
export type EhrSource = (typeof ehrSources)[number];
|
|
11
16
|
export declare function isEhrSource(source: string): source is EhrSource;
|
|
12
17
|
export declare function parseEhrSourceOrFail(source: string | undefined): EhrSource | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/source.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU;IACpB,MAAM,iBAAiB;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,UAAU,eAAe;
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/ehr/source.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU;IACpB,MAAM,iBAAiB;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,UAAU,eAAe;IACzB,cAAc,mBAAmB;CAClC;AACD,oBAAY,YAAY;IACtB,KAAK,UAAU;CAChB;AACD,eAAO,MAAM,UAAU,uBAA0C,CAAC;AAClE,eAAO,MAAM,WAAW,cAA8B,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACpD,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,SAAS,CAE/D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAQtF;AAED,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAE5D;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAE7D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeWebhookSource = exports.removeClientSource = exports.webhookSourceSuffix = exports.clientSourceSuffix = exports.parseEhrSourceOrFail = exports.isEhrSource = exports.ehrSources = exports.EhrSources = void 0;
|
|
3
|
+
exports.removeWebhookSource = exports.removeClientSource = exports.webhookSourceSuffix = exports.clientSourceSuffix = exports.parseEhrSourceOrFail = exports.isEhrSource = exports.embedSource = exports.ehrSources = exports.EmbedSources = exports.EhrSources = void 0;
|
|
4
4
|
const bad_request_1 = require("../../../error/bad-request");
|
|
5
5
|
var EhrSources;
|
|
6
6
|
(function (EhrSources) {
|
|
@@ -10,8 +10,14 @@ var EhrSources;
|
|
|
10
10
|
EhrSources["healthie"] = "healthie";
|
|
11
11
|
EhrSources["eclinicalworks"] = "eclinicalworks";
|
|
12
12
|
EhrSources["salesforce"] = "salesforce";
|
|
13
|
+
EhrSources["practicefusion"] = "practicefusion";
|
|
13
14
|
})(EhrSources = exports.EhrSources || (exports.EhrSources = {}));
|
|
15
|
+
var EmbedSources;
|
|
16
|
+
(function (EmbedSources) {
|
|
17
|
+
EmbedSources["embed"] = "embed";
|
|
18
|
+
})(EmbedSources = exports.EmbedSources || (exports.EmbedSources = {}));
|
|
14
19
|
exports.ehrSources = [...Object.values(EhrSources)];
|
|
20
|
+
exports.embedSource = EmbedSources.embed;
|
|
15
21
|
function isEhrSource(source) {
|
|
16
22
|
return exports.ehrSources.includes(source);
|
|
17
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/source.ts"],"names":[],"mappings":";;;AAAA,4DAA6D;AAE7D,IAAY,
|
|
1
|
+
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../../../src/interface/external/ehr/source.ts"],"names":[],"mappings":";;;AAAA,4DAA6D;AAE7D,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,+CAAiC,CAAA;IACjC,uCAAyB,CAAA;IACzB,+CAAiC,CAAA;AACnC,CAAC,EARW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAQrB;AACD,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,+BAAe,CAAA;AACjB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AACY,QAAA,UAAU,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAU,CAAC;AACrD,QAAA,WAAW,GAAG,YAAY,CAAC,KAAc,CAAC;AAEvD,SAAgB,WAAW,CAAC,MAAc;IACxC,OAAO,kBAAU,CAAC,QAAQ,CAAC,MAAmB,CAAC,CAAC;AAClD,CAAC;AAFD,kCAEC;AAED,SAAgB,oBAAoB,CAAC,MAA0B;IAC7D,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;QACxB,MAAM,IAAI,6BAAe,CACvB,mBAAmB,MAAM,qBAAqB,kBAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACtE,CAAC;KACH;IACD,OAAO,MAAmB,CAAC;AAC7B,CAAC;AARD,oDAQC;AAEY,QAAA,kBAAkB,GAAG,SAAS,CAAC;AAC/B,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAE9C,SAAgB,kBAAkB,CAAC,MAAc;IAC/C,OAAO,MAAM,CAAC,OAAO,CAAC,0BAAkB,EAAE,EAAE,CAAc,CAAC;AAC7D,CAAC;AAFD,gDAEC;AAED,SAAgB,mBAAmB,CAAC,MAAc;IAChD,OAAO,MAAM,CAAC,OAAO,CAAC,2BAAmB,EAAE,EAAE,CAAc,CAAC;AAC9D,CAAC;AAFD,kDAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.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/",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"ts-jest": "29.1.1",
|
|
125
125
|
"typescript": "^4.9.5"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "77ce40c6e3872beb863c52b0d561b69df9726f5a"
|
|
128
128
|
}
|