@metriport/shared 0.23.8 → 0.23.10-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/common/__tests__/date.test.js +42 -0
- package/dist/common/__tests__/date.test.js.map +1 -1
- package/dist/common/__tests__/demographics.test.d.ts +2 -0
- package/dist/common/__tests__/demographics.test.d.ts.map +1 -0
- package/dist/common/__tests__/demographics.test.js +131 -0
- package/dist/common/__tests__/demographics.test.js.map +1 -0
- package/dist/common/__tests__/html-encode.test.d.ts +2 -0
- package/dist/common/__tests__/html-encode.test.d.ts.map +1 -0
- package/dist/common/__tests__/html-encode.test.js +31 -0
- package/dist/common/__tests__/html-encode.test.js.map +1 -0
- package/dist/common/__tests__/retry.test.js +2 -2
- package/dist/common/__tests__/retry.test.js.map +1 -1
- package/dist/common/date.d.ts +23 -0
- package/dist/common/date.d.ts.map +1 -1
- package/dist/common/date.js +36 -1
- package/dist/common/date.js.map +1 -1
- package/dist/common/demographics.d.ts +24 -0
- package/dist/common/demographics.d.ts.map +1 -0
- package/dist/common/demographics.js +108 -0
- package/dist/common/demographics.js.map +1 -0
- package/dist/common/duration.d.ts +3 -0
- package/dist/common/duration.d.ts.map +1 -1
- package/dist/common/duration.js +3 -0
- package/dist/common/duration.js.map +1 -1
- package/dist/common/env-var.d.ts +4 -2
- package/dist/common/env-var.d.ts.map +1 -1
- package/dist/common/env-var.js +27 -6
- package/dist/common/env-var.js.map +1 -1
- package/dist/common/general.d.ts +1 -1
- package/dist/common/general.d.ts.map +1 -1
- package/dist/common/general.js +1 -1
- package/dist/common/general.js.map +1 -1
- package/dist/common/html.d.ts +2 -0
- package/dist/common/html.d.ts.map +1 -0
- package/dist/common/html.js +13 -0
- package/dist/common/html.js.map +1 -0
- package/dist/common/metriport-organization.d.ts +1 -1
- package/dist/common/metriport-organization.d.ts.map +1 -1
- package/dist/common/metriport-organization.js.map +1 -1
- package/dist/common/response.d.ts +5 -0
- package/dist/common/response.d.ts.map +1 -0
- package/dist/common/response.js +17 -0
- package/dist/common/response.js.map +1 -0
- package/dist/domain/__tests__/dob.test.js +1 -1
- package/dist/domain/__tests__/gender.test.d.ts +2 -0
- package/dist/domain/__tests__/gender.test.d.ts.map +1 -0
- package/dist/domain/__tests__/gender.test.js +64 -0
- package/dist/domain/__tests__/gender.test.js.map +1 -0
- package/dist/domain/customer.d.ts +39 -0
- package/dist/domain/customer.d.ts.map +1 -0
- package/dist/domain/customer.js +14 -0
- package/dist/domain/customer.js.map +1 -0
- package/dist/domain/gender.d.ts +6 -2
- package/dist/domain/gender.d.ts.map +1 -1
- package/dist/domain/gender.js +11 -6
- package/dist/domain/gender.js.map +1 -1
- package/dist/domain/job/job-status.d.ts +1 -1
- package/dist/domain/job/job-status.d.ts.map +1 -1
- package/dist/domain/job/job-status.js +9 -4
- package/dist/domain/job/job-status.js.map +1 -1
- package/dist/domain/job/patient-job.d.ts +32 -0
- package/dist/domain/job/patient-job.d.ts.map +1 -1
- package/dist/domain/job/patient-job.js +28 -0
- package/dist/domain/job/patient-job.js.map +1 -1
- package/dist/domain/job/types.d.ts +11 -0
- package/dist/domain/job/types.d.ts.map +1 -1
- package/dist/domain/job/types.js +6 -1
- package/dist/domain/job/types.js.map +1 -1
- package/dist/domain/organization.d.ts +2 -2
- package/dist/domain/patient/patient-import/types.d.ts +3 -1
- package/dist/domain/patient/patient-import/types.d.ts.map +1 -1
- package/dist/domain/patient/patient-import/types.js +6 -1
- package/dist/domain/patient/patient-import/types.js.map +1 -1
- package/dist/domain/patient.d.ts +72 -0
- package/dist/domain/patient.d.ts.map +1 -0
- package/dist/domain/patient.js +25 -0
- package/dist/domain/patient.js.map +1 -0
- package/dist/interface/external/ehr/canvas/allergen.d.ts +13 -0
- package/dist/interface/external/ehr/canvas/allergen.d.ts.map +1 -0
- package/dist/interface/external/ehr/canvas/allergen.js +9 -0
- package/dist/interface/external/ehr/canvas/allergen.js.map +1 -0
- package/dist/interface/external/ehr/canvas/appointment.d.ts +8 -8
- package/dist/interface/external/ehr/canvas/index.d.ts +1 -0
- package/dist/interface/external/ehr/canvas/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/canvas/index.js +1 -0
- package/dist/interface/external/ehr/canvas/index.js.map +1 -1
- package/dist/interface/external/ehr/elation/ccda.d.ts +13 -0
- package/dist/interface/external/ehr/elation/ccda.d.ts.map +1 -0
- package/dist/interface/external/ehr/elation/ccda.js +9 -0
- package/dist/interface/external/ehr/elation/ccda.js.map +1 -0
- package/dist/interface/external/ehr/elation/event.d.ts +4 -4
- package/dist/interface/external/ehr/elation/index.d.ts +1 -0
- package/dist/interface/external/ehr/elation/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/elation/index.js +1 -0
- package/dist/interface/external/ehr/elation/index.js.map +1 -1
- package/dist/interface/external/ehr/fhir-resource.d.ts +121 -36
- package/dist/interface/external/ehr/fhir-resource.d.ts.map +1 -1
- package/dist/interface/external/ehr/fhir-resource.js +21 -9
- package/dist/interface/external/ehr/fhir-resource.js.map +1 -1
- package/dist/interface/external/ehr/healthie/patient.d.ts +8 -8
- package/dist/interface/external/ehr/healthie/subscription.d.ts +18 -18
- package/dist/interface/external/surescripts/code-list-qualifier.d.ts +6 -0
- package/dist/interface/external/surescripts/code-list-qualifier.d.ts.map +1 -0
- package/dist/interface/external/surescripts/code-list-qualifier.js +17 -0
- package/dist/interface/external/surescripts/code-list-qualifier.js.map +1 -0
- package/dist/interface/external/surescripts/dea-schedule.d.ts +7 -0
- package/dist/interface/external/surescripts/dea-schedule.d.ts.map +1 -0
- package/dist/interface/external/surescripts/dea-schedule.js +32 -0
- package/dist/interface/external/surescripts/dea-schedule.js.map +1 -0
- package/dist/interface/external/surescripts/index.d.ts +2 -0
- package/dist/interface/external/surescripts/index.d.ts.map +1 -0
- package/dist/interface/external/surescripts/index.js +18 -0
- package/dist/interface/external/surescripts/index.js.map +1 -0
- package/dist/interface/external/surescripts/ncpdp.d.ts +12 -0
- package/dist/interface/external/surescripts/ncpdp.d.ts.map +1 -0
- package/dist/interface/external/surescripts/ncpdp.js +1472 -0
- package/dist/interface/external/surescripts/ncpdp.js.map +1 -0
- package/dist/interface/external/surescripts/payment-code.d.ts +6 -0
- package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -0
- package/dist/interface/external/surescripts/payment-code.js +25 -0
- package/dist/interface/external/surescripts/payment-code.js.map +1 -0
- package/dist/interface/external/surescripts/plan-code.d.ts +7 -0
- package/dist/interface/external/surescripts/plan-code.d.ts.map +1 -0
- package/dist/interface/external/surescripts/plan-code.js +25 -0
- package/dist/interface/external/surescripts/plan-code.js.map +1 -0
- package/dist/medical/webhook/webhook-request.d.ts +60 -60
- package/dist/util/duration.d.ts +2 -0
- package/dist/util/duration.d.ts.map +1 -1
- package/dist/util/duration.js +2 -0
- package/dist/util/duration.js.map +1 -1
- package/dist/util/uuid-v7.d.ts +4 -4
- package/dist/util/uuid-v7.d.ts.map +1 -1
- package/dist/util/uuid-v7.js +12 -5
- package/dist/util/uuid-v7.js.map +1 -1
- package/package.json +3 -2
package/dist/domain/job/types.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isValidJobEntryStatus = void 0;
|
|
3
|
+
exports.jobRunBodySchema = exports.isValidJobEntryStatus = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const failed = "failed";
|
|
5
6
|
const successful = "successful";
|
|
6
7
|
function isValidJobEntryStatus(status) {
|
|
7
8
|
return status === "failed" || status === "successful";
|
|
8
9
|
}
|
|
9
10
|
exports.isValidJobEntryStatus = isValidJobEntryStatus;
|
|
11
|
+
exports.jobRunBodySchema = zod_1.z.object({
|
|
12
|
+
cxId: zod_1.z.string(),
|
|
13
|
+
jobId: zod_1.z.string(),
|
|
14
|
+
});
|
|
10
15
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/domain/job/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/domain/job/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAKxB,MAAM,MAAM,GAAG,QAAiB,CAAC;AACjC,MAAM,UAAU,GAAG,YAAqB,CAAC;AAGzC,SAAgB,qBAAqB,CAAC,MAAc;IAClD,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,YAAY,CAAC;AACxD,CAAC;AAFD,sDAEC;AAEY,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"}
|
|
@@ -45,10 +45,10 @@ export declare const internalOrganizationDTOSchema: z.ZodObject<{
|
|
|
45
45
|
cwApproved: z.ZodBoolean;
|
|
46
46
|
cwActive: z.ZodBoolean;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
name: string;
|
|
48
49
|
type: TreatmentType;
|
|
49
50
|
cxId: string;
|
|
50
51
|
oid: string;
|
|
51
|
-
name: string;
|
|
52
52
|
location: {
|
|
53
53
|
country: string;
|
|
54
54
|
state: string;
|
|
@@ -64,10 +64,10 @@ export declare const internalOrganizationDTOSchema: z.ZodObject<{
|
|
|
64
64
|
cwActive: boolean;
|
|
65
65
|
shortcode?: string | undefined;
|
|
66
66
|
}, {
|
|
67
|
+
name: string;
|
|
67
68
|
type: TreatmentType;
|
|
68
69
|
cxId: string;
|
|
69
70
|
oid: string;
|
|
70
|
-
name: string;
|
|
71
71
|
location: {
|
|
72
72
|
country: string;
|
|
73
73
|
state: string;
|
|
@@ -35,7 +35,9 @@ declare const successful: "successful";
|
|
|
35
35
|
export type PatientImportEntryStatusFailed = typeof failed;
|
|
36
36
|
export type PatientImportEntryStatusParsed = "waiting" | "processing" | typeof successful;
|
|
37
37
|
export type PatientImportEntryStatus = PatientImportEntryStatusFailed | PatientImportEntryStatusParsed;
|
|
38
|
-
export
|
|
38
|
+
export declare const finalStatuses: ("failed" | "successful")[];
|
|
39
|
+
export type PatientImportEntryStatusFinal = (typeof finalStatuses)[number];
|
|
39
40
|
export declare function isDryRun(job: Pick<PatientImportJob, "paramsCx" | "paramsOps">): boolean;
|
|
41
|
+
export declare function isPatientImportEntryStatusFinal(status: PatientImportEntryStatus): status is PatientImportEntryStatusFinal;
|
|
40
42
|
export {};
|
|
41
43
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/domain/patient/patient-import/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,wBAAwB,EAAE,OAAO,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAGF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,8DAA8D;IAC9D,SAAS,EAAE,IAAI,CAAC;IAChB,2HAA2H;IAC3H,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,gGAAgG;IAChG,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,qBAAqB,CAAC;IAChC,SAAS,EAAE,sBAAsB,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,MAAM,UAAoB,CAAC;AACjC,QAAA,MAAM,UAAU,cAAwB,CAAC;AAEzC,MAAM,MAAM,8BAA8B,GAAG,OAAO,MAAM,CAAC;AAC3D,MAAM,MAAM,8BAA8B,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,UAAU,CAAC;AAC1F,MAAM,MAAM,wBAAwB,GAChC,8BAA8B,GAC9B,8BAA8B,CAAC;AACnC,MAAM,MAAM,6BAA6B,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/domain/patient/patient-import/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,wBAAwB,EAAE,OAAO,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAGF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,sBAAsB,CAAC;IAC/B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,8DAA8D;IAC9D,SAAS,EAAE,IAAI,CAAC;IAChB,2HAA2H;IAC3H,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,gGAAgG;IAChG,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,qBAAqB,CAAC;IAChC,SAAS,EAAE,sBAAsB,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,MAAM,UAAoB,CAAC;AACjC,QAAA,MAAM,UAAU,cAAwB,CAAC;AAEzC,MAAM,MAAM,8BAA8B,GAAG,OAAO,MAAM,CAAC;AAC3D,MAAM,MAAM,8BAA8B,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,UAAU,CAAC;AAC1F,MAAM,MAAM,wBAAwB,GAChC,8BAA8B,GAC9B,8BAA8B,CAAC;AACnC,eAAO,MAAM,aAAa,6BAAuB,CAAC;AAClD,MAAM,MAAM,6BAA6B,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3E,wBAAgB,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,GAAG,OAAO,CAEvF;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,wBAAwB,GAC/B,MAAM,IAAI,6BAA6B,CAEzC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDryRun = void 0;
|
|
3
|
+
exports.isPatientImportEntryStatusFinal = exports.isDryRun = exports.finalStatuses = void 0;
|
|
4
4
|
const failed = "failed";
|
|
5
5
|
const successful = "successful";
|
|
6
|
+
exports.finalStatuses = [failed, successful];
|
|
6
7
|
function isDryRun(job) {
|
|
7
8
|
return job.paramsOps?.dryRun ?? job.paramsCx?.dryRun ?? false;
|
|
8
9
|
}
|
|
9
10
|
exports.isDryRun = isDryRun;
|
|
11
|
+
function isPatientImportEntryStatusFinal(status) {
|
|
12
|
+
return exports.finalStatuses.includes(status);
|
|
13
|
+
}
|
|
14
|
+
exports.isPatientImportEntryStatusFinal = isPatientImportEntryStatusFinal;
|
|
10
15
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/domain/patient/patient-import/types.ts"],"names":[],"mappings":";;;AAsCA,MAAM,MAAM,GAAG,QAAiB,CAAC;AACjC,MAAM,UAAU,GAAG,YAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/domain/patient/patient-import/types.ts"],"names":[],"mappings":";;;AAsCA,MAAM,MAAM,GAAG,QAAiB,CAAC;AACjC,MAAM,UAAU,GAAG,YAAqB,CAAC;AAO5B,QAAA,aAAa,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAGlD,SAAgB,QAAQ,CAAC,GAAqD;IAC5E,OAAO,GAAG,CAAC,SAAS,EAAE,MAAM,IAAI,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,CAAC;AAChE,CAAC;AAFD,4BAEC;AAED,SAAgB,+BAA+B,CAC7C,MAAgC;IAEhC,OAAO,qBAAa,CAAC,QAAQ,CAAC,MAAuC,CAAC,CAAC;AACzE,CAAC;AAJD,0EAIC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
facilityIds: z.ZodArray<z.ZodString, "many">;
|
|
5
|
+
firstName: z.ZodString;
|
|
6
|
+
lastName: z.ZodString;
|
|
7
|
+
dob: z.ZodString;
|
|
8
|
+
genderAtBirth: z.ZodEnum<["M", "F", "O", "U"]>;
|
|
9
|
+
dateCreated: z.ZodString;
|
|
10
|
+
address: z.ZodArray<z.ZodObject<{
|
|
11
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
|
12
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
|
13
|
+
city: z.ZodOptional<z.ZodString>;
|
|
14
|
+
state: z.ZodOptional<z.ZodString>;
|
|
15
|
+
zip: z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
zip: string;
|
|
18
|
+
state?: string | undefined;
|
|
19
|
+
addressLine1?: string | undefined;
|
|
20
|
+
addressLine2?: string | undefined;
|
|
21
|
+
city?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
zip: string;
|
|
24
|
+
state?: string | undefined;
|
|
25
|
+
addressLine1?: string | undefined;
|
|
26
|
+
addressLine2?: string | undefined;
|
|
27
|
+
city?: string | undefined;
|
|
28
|
+
}>, "many">;
|
|
29
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
address: {
|
|
32
|
+
zip: string;
|
|
33
|
+
state?: string | undefined;
|
|
34
|
+
addressLine1?: string | undefined;
|
|
35
|
+
addressLine2?: string | undefined;
|
|
36
|
+
city?: string | undefined;
|
|
37
|
+
}[];
|
|
38
|
+
id: string;
|
|
39
|
+
firstName: string;
|
|
40
|
+
lastName: string;
|
|
41
|
+
facilityIds: string[];
|
|
42
|
+
dob: string;
|
|
43
|
+
genderAtBirth: "M" | "F" | "O" | "U";
|
|
44
|
+
dateCreated: string;
|
|
45
|
+
phoneNumber?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
address: {
|
|
48
|
+
zip: string;
|
|
49
|
+
state?: string | undefined;
|
|
50
|
+
addressLine1?: string | undefined;
|
|
51
|
+
addressLine2?: string | undefined;
|
|
52
|
+
city?: string | undefined;
|
|
53
|
+
}[];
|
|
54
|
+
id: string;
|
|
55
|
+
firstName: string;
|
|
56
|
+
lastName: string;
|
|
57
|
+
facilityIds: string[];
|
|
58
|
+
dob: string;
|
|
59
|
+
genderAtBirth: "M" | "F" | "O" | "U";
|
|
60
|
+
dateCreated: string;
|
|
61
|
+
phoneNumber?: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export type Patient = z.infer<typeof patientSchema>;
|
|
64
|
+
export declare const patientIdsSchema: z.ZodObject<{
|
|
65
|
+
patientIds: z.ZodArray<z.ZodString, "many">;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
patientIds: string[];
|
|
68
|
+
}, {
|
|
69
|
+
patientIds: string[];
|
|
70
|
+
}>;
|
|
71
|
+
export type PatientIdsResponse = z.infer<typeof patientIdsSchema>;
|
|
72
|
+
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBxB,CAAC;AAEH,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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientIdsSchema = exports.patientSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.patientSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
facilityIds: zod_1.z.array(zod_1.z.string()),
|
|
8
|
+
firstName: zod_1.z.string(),
|
|
9
|
+
lastName: zod_1.z.string(),
|
|
10
|
+
dob: zod_1.z.string(),
|
|
11
|
+
genderAtBirth: zod_1.z.enum(["M", "F", "O", "U"]),
|
|
12
|
+
dateCreated: zod_1.z.string(),
|
|
13
|
+
address: zod_1.z.array(zod_1.z.object({
|
|
14
|
+
addressLine1: zod_1.z.string().optional(),
|
|
15
|
+
addressLine2: zod_1.z.string().optional(),
|
|
16
|
+
city: zod_1.z.string().optional(),
|
|
17
|
+
state: zod_1.z.string().optional(),
|
|
18
|
+
zip: zod_1.z.string(),
|
|
19
|
+
})),
|
|
20
|
+
phoneNumber: zod_1.z.string().optional(),
|
|
21
|
+
});
|
|
22
|
+
exports.patientIdsSchema = zod_1.z.object({
|
|
23
|
+
patientIds: zod_1.z.array(zod_1.z.string()),
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +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,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,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAIU,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,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const allergenResourceSchema: z.ZodIntersection<z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
resourceType: z.ZodLiteral<"Allergen">;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
resourceType: "Allergen";
|
|
7
|
+
id: string;
|
|
8
|
+
}, {
|
|
9
|
+
resourceType: "Allergen";
|
|
10
|
+
id: string;
|
|
11
|
+
}>, z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
12
|
+
export type AllergenResource = z.infer<typeof allergenResourceSchema>;
|
|
13
|
+
//# sourceMappingURL=allergen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/allergen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;uCAMlC,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allergenResourceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.allergenResourceSchema = zod_1.z.intersection(zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
resourceType: zod_1.z.literal("Allergen"),
|
|
8
|
+
}), zod_1.z.record(zod_1.z.string(), zod_1.z.any()));
|
|
9
|
+
//# sourceMappingURL=allergen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allergen.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/allergen.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,sBAAsB,GAAG,OAAC,CAAC,YAAY,CAClD,OAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;CACpC,CAAC,EACF,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAC9B,CAAC"}
|
|
@@ -33,8 +33,8 @@ export declare const appointmentSchema: z.ZodObject<{
|
|
|
33
33
|
}>, "many">;
|
|
34
34
|
status: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
status: string;
|
|
37
36
|
resourceType: "Appointment";
|
|
37
|
+
status: string;
|
|
38
38
|
participant: {
|
|
39
39
|
actor: {
|
|
40
40
|
type: "Patient" | "Practitioner";
|
|
@@ -42,8 +42,8 @@ export declare const appointmentSchema: z.ZodObject<{
|
|
|
42
42
|
};
|
|
43
43
|
}[];
|
|
44
44
|
}, {
|
|
45
|
-
status: string;
|
|
46
45
|
resourceType: "Appointment";
|
|
46
|
+
status: string;
|
|
47
47
|
participant: {
|
|
48
48
|
actor: {
|
|
49
49
|
type: "Patient" | "Practitioner";
|
|
@@ -80,8 +80,8 @@ export declare const appointmentListResponseSchema: z.ZodObject<{
|
|
|
80
80
|
}>, "many">;
|
|
81
81
|
status: z.ZodString;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
status: string;
|
|
84
83
|
resourceType: "Appointment";
|
|
84
|
+
status: string;
|
|
85
85
|
participant: {
|
|
86
86
|
actor: {
|
|
87
87
|
type: "Patient" | "Practitioner";
|
|
@@ -89,8 +89,8 @@ export declare const appointmentListResponseSchema: z.ZodObject<{
|
|
|
89
89
|
};
|
|
90
90
|
}[];
|
|
91
91
|
}, {
|
|
92
|
-
status: string;
|
|
93
92
|
resourceType: "Appointment";
|
|
93
|
+
status: string;
|
|
94
94
|
participant: {
|
|
95
95
|
actor: {
|
|
96
96
|
type: "Patient" | "Practitioner";
|
|
@@ -100,8 +100,8 @@ export declare const appointmentListResponseSchema: z.ZodObject<{
|
|
|
100
100
|
}>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
resource: {
|
|
103
|
-
status: string;
|
|
104
103
|
resourceType: "Appointment";
|
|
104
|
+
status: string;
|
|
105
105
|
participant: {
|
|
106
106
|
actor: {
|
|
107
107
|
type: "Patient" | "Practitioner";
|
|
@@ -111,8 +111,8 @@ export declare const appointmentListResponseSchema: z.ZodObject<{
|
|
|
111
111
|
};
|
|
112
112
|
}, {
|
|
113
113
|
resource: {
|
|
114
|
-
status: string;
|
|
115
114
|
resourceType: "Appointment";
|
|
115
|
+
status: string;
|
|
116
116
|
participant: {
|
|
117
117
|
actor: {
|
|
118
118
|
type: "Patient" | "Practitioner";
|
|
@@ -138,8 +138,8 @@ export declare const appointmentListResponseSchema: z.ZodObject<{
|
|
|
138
138
|
}[] | undefined;
|
|
139
139
|
entry?: {
|
|
140
140
|
resource: {
|
|
141
|
-
status: string;
|
|
142
141
|
resourceType: "Appointment";
|
|
142
|
+
status: string;
|
|
143
143
|
participant: {
|
|
144
144
|
actor: {
|
|
145
145
|
type: "Patient" | "Practitioner";
|
|
@@ -155,8 +155,8 @@ export declare const appointmentListResponseSchema: z.ZodObject<{
|
|
|
155
155
|
}[] | undefined;
|
|
156
156
|
entry?: {
|
|
157
157
|
resource: {
|
|
158
|
-
status: string;
|
|
159
158
|
resourceType: "Appointment";
|
|
159
|
+
status: string;
|
|
160
160
|
participant: {
|
|
161
161
|
actor: {
|
|
162
162
|
type: "Patient" | "Practitioner";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./jwt-token"), exports);
|
|
18
18
|
__exportStar(require("./appointment"), exports);
|
|
19
19
|
__exportStar(require("./note"), exports);
|
|
20
|
+
__exportStar(require("./allergen"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B;AAC9B,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/canvas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B;AAC9B,yCAAuB;AACvB,6CAA2B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ccdaDocumentSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
base64_ccda: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
id: string;
|
|
7
|
+
base64_ccda: string;
|
|
8
|
+
}, {
|
|
9
|
+
id: string;
|
|
10
|
+
base64_ccda: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type CcdaDocument = z.infer<typeof ccdaDocumentSchema>;
|
|
13
|
+
//# sourceMappingURL=ccda.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ccda.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/ccda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ccdaDocumentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ccdaDocumentSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.coerce.string(),
|
|
7
|
+
base64_ccda: zod_1.z.string(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=ccda.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ccda.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/ccda.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC"}
|
|
@@ -17,28 +17,28 @@ export declare const elationAppointmentEventSchema: z.ZodObject<{
|
|
|
17
17
|
status: string;
|
|
18
18
|
}>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
id: string;
|
|
20
21
|
status: {
|
|
21
22
|
status: string;
|
|
22
23
|
};
|
|
23
|
-
id: string;
|
|
24
24
|
patient: string;
|
|
25
25
|
created_date: string;
|
|
26
26
|
last_modified_date: string;
|
|
27
27
|
}, {
|
|
28
|
+
id: string;
|
|
28
29
|
status: {
|
|
29
30
|
status: string;
|
|
30
31
|
};
|
|
31
|
-
id: string;
|
|
32
32
|
patient: string;
|
|
33
33
|
created_date: string;
|
|
34
34
|
last_modified_date: string;
|
|
35
35
|
}>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
data: {
|
|
38
|
+
id: string;
|
|
38
39
|
status: {
|
|
39
40
|
status: string;
|
|
40
41
|
};
|
|
41
|
-
id: string;
|
|
42
42
|
patient: string;
|
|
43
43
|
created_date: string;
|
|
44
44
|
last_modified_date: string;
|
|
@@ -49,10 +49,10 @@ export declare const elationAppointmentEventSchema: z.ZodObject<{
|
|
|
49
49
|
action: "saved" | "deleted";
|
|
50
50
|
}, {
|
|
51
51
|
data: {
|
|
52
|
+
id: string;
|
|
52
53
|
status: {
|
|
53
54
|
status: string;
|
|
54
55
|
};
|
|
55
|
-
id: string;
|
|
56
56
|
patient: string;
|
|
57
57
|
created_date: string;
|
|
58
58
|
last_modified_date: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
@@ -21,4 +21,5 @@ __exportStar(require("./problem"), exports);
|
|
|
21
21
|
__exportStar(require("./subscription"), exports);
|
|
22
22
|
__exportStar(require("./cx-mapping"), exports);
|
|
23
23
|
__exportStar(require("./event"), exports);
|
|
24
|
+
__exportStar(require("./ccda"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/elation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB"}
|