@metriport/shared 0.23.8 → 0.23.10
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 +12 -1
- 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/patient-monitoring/__tests__/utils.test.d.ts +2 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js +66 -0
- package/dist/domain/patient/patient-monitoring/__tests__/utils.test.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts +47 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.js +32 -0
- package/dist/domain/patient/patient-monitoring/discharge-requery.js.map +1 -0
- package/dist/domain/patient/patient-monitoring/utils.d.ts +11 -0
- package/dist/domain/patient/patient-monitoring/utils.d.ts.map +1 -0
- package/dist/domain/patient/patient-monitoring/utils.js +43 -0
- package/dist/domain/patient/patient-monitoring/utils.js.map +1 -0
- 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 +14 -0
- package/dist/interface/external/surescripts/payment-code.d.ts.map +1 -0
- package/dist/interface/external/surescripts/payment-code.js +78 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../src/common/duration.ts"],"names":[],"mappings":"AAMA,wBAAsB,WAAW,CAAC,CAAC,EACjC,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,OAAO,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5D,OAAO,CAAC,CAAC,CAAC,CAiBZ"}
|
|
1
|
+
{"version":3,"file":"duration.d.ts","sourceRoot":"","sources":["../../src/common/duration.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,wBAAsB,WAAW,CAAC,CAAC,EACjC,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,OAAO,CAAC,EAAE;IAAE,GAAG,CAAC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5D,OAAO,CAAC,CAAC,CAAC,CAiBZ"}
|
package/dist/common/duration.js
CHANGED
|
@@ -8,6 +8,9 @@ const dayjs_1 = __importDefault(require("dayjs"));
|
|
|
8
8
|
const duration_1 = __importDefault(require("dayjs/plugin/duration"));
|
|
9
9
|
const numbers_1 = require("./numbers");
|
|
10
10
|
dayjs_1.default.extend(duration_1.default);
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Unify with timed(), choose one to keep around.
|
|
13
|
+
*/
|
|
11
14
|
async function logDuration(fn, options) {
|
|
12
15
|
const { log = console.log, withMinutes = true } = options ?? {};
|
|
13
16
|
const startedAt = Date.now();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/common/duration.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,uCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"duration.js","sourceRoot":"","sources":["../../src/common/duration.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,qEAA6C;AAC7C,uCAAyC;AAEzC,eAAK,CAAC,MAAM,CAAC,kBAAQ,CAAC,CAAC;AAEvB;;GAEG;AACI,KAAK,UAAU,WAAW,CAC/B,EAAoB,EACpB,OAA6D;IAE7D,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAChE,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,EAAE,EAAE,CAAC;QACvB,OAAO,GAAG,IAAI,CAAC;QACf,OAAO,GAAG,CAAC;KACZ;YAAS;QACR,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;QACxC,MAAM,WAAW,GAAG,WAAW;YAC7B,CAAC,CAAC,MAAM,IAAA,sBAAY,EAAC,eAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,CAAC,MAAM;YAChE,CAAC,CAAC,EAAE,CAAC;QACP,MAAM,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;QACnD,GAAG,CAAC,WAAW,QAAQ,MAAM,WAAW,cAAc,UAAU,EAAE,CAAC,CAAC;KACrE;AACH,CAAC;AApBD,kCAoBC"}
|
package/dist/common/env-var.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export declare enum EnvType {
|
|
|
4
4
|
staging = "staging",
|
|
5
5
|
development = "dev"
|
|
6
6
|
}
|
|
7
|
-
export declare
|
|
8
|
-
export declare
|
|
7
|
+
export declare function getEnvVar(varName: string): string | undefined;
|
|
8
|
+
export declare function getEnvVarOrFail(varName: string): string;
|
|
9
|
+
export declare function getEnvAsIntOrFail(varName: string): number;
|
|
10
|
+
export declare function getEnvVarAsRecordOrFail(varName: string): Record<string, string>;
|
|
9
11
|
export declare function getEnvType(): EnvType;
|
|
10
12
|
//# sourceMappingURL=env-var.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-var.d.ts","sourceRoot":"","sources":["../../src/common/env-var.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO;IACjB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,QAAQ;CACpB;AAED,
|
|
1
|
+
{"version":3,"file":"env-var.d.ts","sourceRoot":"","sources":["../../src/common/env-var.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO;IACjB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,QAAQ;CACpB;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE7D;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMvD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAOzD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAO/E;AAED,wBAAgB,UAAU,IAAI,OAAO,CAOpC"}
|
package/dist/common/env-var.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEnvType = exports.getEnvVarOrFail = exports.getEnvVar = exports.EnvType = void 0;
|
|
3
|
+
exports.getEnvType = exports.getEnvVarAsRecordOrFail = exports.getEnvAsIntOrFail = exports.getEnvVarOrFail = exports.getEnvVar = exports.EnvType = void 0;
|
|
4
4
|
const metriport_error_1 = require("../error/metriport-error");
|
|
5
5
|
var EnvType;
|
|
6
6
|
(function (EnvType) {
|
|
@@ -9,18 +9,39 @@ var EnvType;
|
|
|
9
9
|
EnvType["staging"] = "staging";
|
|
10
10
|
EnvType["development"] = "dev";
|
|
11
11
|
})(EnvType = exports.EnvType || (exports.EnvType = {}));
|
|
12
|
-
|
|
12
|
+
function getEnvVar(varName) {
|
|
13
|
+
return process.env[varName];
|
|
14
|
+
}
|
|
13
15
|
exports.getEnvVar = getEnvVar;
|
|
14
|
-
|
|
15
|
-
const value =
|
|
16
|
+
function getEnvVarOrFail(varName) {
|
|
17
|
+
const value = getEnvVar(varName);
|
|
16
18
|
if (!value || value.trim().length < 1) {
|
|
17
19
|
throw new Error(`Missing ${varName} env var`);
|
|
18
20
|
}
|
|
19
21
|
return value;
|
|
20
|
-
}
|
|
22
|
+
}
|
|
21
23
|
exports.getEnvVarOrFail = getEnvVarOrFail;
|
|
24
|
+
function getEnvAsIntOrFail(varName) {
|
|
25
|
+
const value = getEnvVarOrFail(varName);
|
|
26
|
+
const int = parseInt(value);
|
|
27
|
+
if (isNaN(int)) {
|
|
28
|
+
throw new Error(`${varName} env var is not a number`);
|
|
29
|
+
}
|
|
30
|
+
return int;
|
|
31
|
+
}
|
|
32
|
+
exports.getEnvAsIntOrFail = getEnvAsIntOrFail;
|
|
33
|
+
function getEnvVarAsRecordOrFail(varName) {
|
|
34
|
+
const value = getEnvVarOrFail(varName);
|
|
35
|
+
try {
|
|
36
|
+
return JSON.parse(value);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
throw new Error(`Failed to parse ${varName} env var`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.getEnvVarAsRecordOrFail = getEnvVarAsRecordOrFail;
|
|
22
43
|
function getEnvType() {
|
|
23
|
-
const envType =
|
|
44
|
+
const envType = getEnvVarOrFail("ENV_TYPE");
|
|
24
45
|
const envTypeValues = Object.values(EnvType).map(v => v.toString());
|
|
25
46
|
if (!envTypeValues.includes(envType)) {
|
|
26
47
|
throw new metriport_error_1.MetriportError(`Invalid ENV_TYPE`, undefined, { envType });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-var.js","sourceRoot":"","sources":["../../src/common/env-var.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAE1D,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,oCAAyB,CAAA;IACzB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;AACrB,CAAC,EALW,OAAO,GAAP,eAAO,KAAP,eAAO,QAKlB;
|
|
1
|
+
{"version":3,"file":"env-var.js","sourceRoot":"","sources":["../../src/common/env-var.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAE1D,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,oCAAyB,CAAA;IACzB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;AACrB,CAAC,EALW,OAAO,GAAP,eAAO,KAAP,eAAO,QAKlB;AAED,SAAgB,SAAS,CAAC,OAAe;IACvC,OAAO,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC;AAFD,8BAEC;AAED,SAAgB,eAAe,CAAC,OAAe;IAC7C,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,WAAW,OAAO,UAAU,CAAC,CAAC;KAC/C;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAND,0CAMC;AAED,SAAgB,iBAAiB,CAAC,OAAe;IAC/C,MAAM,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IACvC,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5B,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE;QACd,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,0BAA0B,CAAC,CAAC;KACvD;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAPD,8CAOC;AAED,SAAgB,uBAAuB,CAAC,OAAe;IACrD,MAAM,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IACvC,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAA2B,CAAC;KACpD;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,UAAU,CAAC,CAAC;KACvD;AACH,CAAC;AAPD,0DAOC;AAED,SAAgB,UAAU;IACxB,MAAM,OAAO,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;IACpE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QACpC,MAAM,IAAI,gCAAc,CAAC,kBAAkB,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;KACtE;IACD,OAAO,OAAkB,CAAC;AAC5B,CAAC;AAPD,gCAOC"}
|
package/dist/common/general.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare function emptyFunction(): void;
|
|
2
2
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../src/common/general.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../src/common/general.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa,SAAK"}
|
package/dist/common/general.js
CHANGED
|
@@ -4,6 +4,6 @@ exports.emptyFunction = void 0;
|
|
|
4
4
|
// Useful as catch handler for asynchonous promises so we don't get an unhandled promise rejection,
|
|
5
5
|
// or just to have a function that does nothing without having the warning below on the code.
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7
|
-
|
|
7
|
+
function emptyFunction() { }
|
|
8
8
|
exports.emptyFunction = emptyFunction;
|
|
9
9
|
//# sourceMappingURL=general.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.js","sourceRoot":"","sources":["../../src/common/general.ts"],"names":[],"mappings":";;;AAAA,mGAAmG;AACnG,6FAA6F;AAC7F,gEAAgE;
|
|
1
|
+
{"version":3,"file":"general.js","sourceRoot":"","sources":["../../src/common/general.ts"],"names":[],"mappings":";;;AAAA,mGAAmG;AACnG,6FAA6F;AAC7F,gEAAgE;AAChE,SAAgB,aAAa,KAAI,CAAC;AAAlC,sCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/common/html.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOhD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.encodeToHtml = void 0;
|
|
4
|
+
function encodeToHtml(str) {
|
|
5
|
+
return str
|
|
6
|
+
.replace(/&(?!(?:amp|lt|gt|quot|#39);)/g, "&")
|
|
7
|
+
.replace(/</g, "<")
|
|
8
|
+
.replace(/>/g, ">")
|
|
9
|
+
.replace(/"/g, """)
|
|
10
|
+
.replace(/'/g, "'");
|
|
11
|
+
}
|
|
12
|
+
exports.encodeToHtml = encodeToHtml;
|
|
13
|
+
//# sourceMappingURL=html.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/common/html.ts"],"names":[],"mappings":";;;AAAA,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,GAAG;SACP,OAAO,CAAC,+BAA+B,EAAE,OAAO,CAAC;SACjD,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC;SACvB,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5B,CAAC;AAPD,oCAOC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Organization } from "@medplum/fhirtypes";
|
|
2
|
-
export declare const metriportOrganization: Organization
|
|
2
|
+
export declare const metriportOrganization: Omit<Organization, "name" | "address" | "telecom"> & Required<Pick<Organization, "name" | "address" | "telecom">>;
|
|
3
3
|
//# sourceMappingURL=metriport-organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metriport-organization.d.ts","sourceRoot":"","sources":["../../src/common/metriport-organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"metriport-organization.d.ts","sourceRoot":"","sources":["../../src/common/metriport-organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,eAAO,MAAM,qBAAqB,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,GACpF,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,CAmB5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metriport-organization.js","sourceRoot":"","sources":["../../src/common/metriport-organization.ts"],"names":[],"mappings":";;;AAEA,8CAA8C;AACjC,QAAA,qBAAqB,
|
|
1
|
+
{"version":3,"file":"metriport-organization.js","sourceRoot":"","sources":["../../src/common/metriport-organization.ts"],"names":[],"mappings":";;;AAEA,8CAA8C;AACjC,QAAA,qBAAqB,GAC+B;IAC/D,YAAY,EAAE,cAAc;IAC5B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE;QACP;YACE,IAAI,EAAE,CAAC,uBAAuB,CAAC;YAC/B,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,IAAI;YACX,UAAU,EAAE,OAAO;YACnB,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP;YACE,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,iBAAiB;YACxB,GAAG,EAAE,MAAM;SACZ;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AxiosResponse } from "axios";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare function parseAndLogAxiosResponse<T>(url: string, response: AxiosResponse, schema: z.ZodSchema<T>, debug: typeof console.log): T;
|
|
4
|
+
export declare function logAxiosResponse(url: string, response: AxiosResponse, debug: typeof console.log): void;
|
|
5
|
+
//# sourceMappingURL=response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/common/response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,wBAAgB,wBAAwB,CAAC,CAAC,EACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,KAAK,EAAE,OAAO,OAAO,CAAC,GAAG,GACxB,CAAC,CAKH;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,OAAO,OAAO,CAAC,GAAG,GACxB,IAAI,CAEN"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logAxiosResponse = exports.parseAndLogAxiosResponse = void 0;
|
|
4
|
+
const metriport_error_1 = require("../error/metriport-error");
|
|
5
|
+
function parseAndLogAxiosResponse(url, response, schema, debug) {
|
|
6
|
+
if (!response.data)
|
|
7
|
+
throw new metriport_error_1.MetriportError(`No body returned from ${url}`);
|
|
8
|
+
debug(`${url} resp: `, () => JSON.stringify(response.data));
|
|
9
|
+
const parsed = schema.parse(response.data);
|
|
10
|
+
return parsed;
|
|
11
|
+
}
|
|
12
|
+
exports.parseAndLogAxiosResponse = parseAndLogAxiosResponse;
|
|
13
|
+
function logAxiosResponse(url, response, debug) {
|
|
14
|
+
debug(`${url} resp: `, () => JSON.stringify(response.data));
|
|
15
|
+
}
|
|
16
|
+
exports.logAxiosResponse = logAxiosResponse;
|
|
17
|
+
//# sourceMappingURL=response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/common/response.ts"],"names":[],"mappings":";;;AAEA,8DAA0D;AAE1D,SAAgB,wBAAwB,CACtC,GAAW,EACX,QAAuB,EACvB,MAAsB,EACtB,KAAyB;IAEzB,IAAI,CAAC,QAAQ,CAAC,IAAI;QAAE,MAAM,IAAI,gCAAc,CAAC,yBAAyB,GAAG,EAAE,CAAC,CAAC;IAC7E,KAAK,CAAC,GAAG,GAAG,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC;AAChB,CAAC;AAVD,4DAUC;AAED,SAAgB,gBAAgB,CAC9B,GAAW,EACX,QAAuB,EACvB,KAAyB;IAEzB,KAAK,CAAC,GAAG,GAAG,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9D,CAAC;AAND,4CAMC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const dob_1 = require("../dob");
|
|
4
4
|
describe("dob", () => {
|
|
5
5
|
describe("normalizeDob", () => {
|
|
6
|
-
it("should throw an error if
|
|
6
|
+
it("should throw an error if dob is an empty string", () => {
|
|
7
7
|
expect(() => (0, dob_1.normalizeDob)("")).toThrow();
|
|
8
8
|
});
|
|
9
9
|
it("should work when gets valid dob", () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gender.test.d.ts","sourceRoot":"","sources":["../../../src/domain/__tests__/gender.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const gender_1 = require("../gender");
|
|
4
|
+
const tests = [
|
|
5
|
+
// male
|
|
6
|
+
{ input: "male", expectedOutput: gender_1.maleGender },
|
|
7
|
+
{ input: "Male", expectedOutput: gender_1.maleGender },
|
|
8
|
+
{ input: "m", expectedOutput: gender_1.maleGender },
|
|
9
|
+
{ input: "M", expectedOutput: gender_1.maleGender },
|
|
10
|
+
// female
|
|
11
|
+
{ input: "female", expectedOutput: gender_1.femaleGender },
|
|
12
|
+
{ input: "Female", expectedOutput: gender_1.femaleGender },
|
|
13
|
+
{ input: "f", expectedOutput: gender_1.femaleGender },
|
|
14
|
+
{ input: "F", expectedOutput: gender_1.femaleGender },
|
|
15
|
+
// other
|
|
16
|
+
{ input: "other", expectedOutput: gender_1.otherGender },
|
|
17
|
+
{ input: "Other", expectedOutput: gender_1.otherGender },
|
|
18
|
+
{ input: "o", expectedOutput: gender_1.otherGender },
|
|
19
|
+
{ input: "O", expectedOutput: gender_1.otherGender },
|
|
20
|
+
{ input: "un", expectedOutput: gender_1.otherGender },
|
|
21
|
+
{ input: "Un", expectedOutput: gender_1.otherGender },
|
|
22
|
+
// unknown
|
|
23
|
+
{ input: "unknown", expectedOutput: gender_1.unknownGender },
|
|
24
|
+
{ input: "Unknown", expectedOutput: gender_1.unknownGender },
|
|
25
|
+
{ input: "u", expectedOutput: gender_1.unknownGender },
|
|
26
|
+
{ input: "U", expectedOutput: gender_1.unknownGender },
|
|
27
|
+
{ input: "unk", expectedOutput: gender_1.unknownGender },
|
|
28
|
+
{ input: "Unk", expectedOutput: gender_1.unknownGender },
|
|
29
|
+
];
|
|
30
|
+
describe("gender", () => {
|
|
31
|
+
describe("normalizeGender", () => {
|
|
32
|
+
it("should throw an error if gender is an empty string", () => {
|
|
33
|
+
expect(() => (0, gender_1.normalizeGender)("")).toThrow();
|
|
34
|
+
});
|
|
35
|
+
it("should throw an error when gets invalid gender", () => {
|
|
36
|
+
expect(() => (0, gender_1.normalizeGender)("something thats not a gender")).toThrow();
|
|
37
|
+
});
|
|
38
|
+
describe("valid inputs", () => {
|
|
39
|
+
for (const { input, expectedOutput } of tests) {
|
|
40
|
+
it(`should return ${expectedOutput} when input is ${input}`, () => {
|
|
41
|
+
expect((0, gender_1.normalizeGender)(input)).toBe(expectedOutput);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
describe("safe normalizeGenderSafe", () => {
|
|
47
|
+
it("should return undefined when it gets empty string", () => {
|
|
48
|
+
const input = "";
|
|
49
|
+
const expectedOutput = undefined;
|
|
50
|
+
expect((0, gender_1.normalizeGenderSafe)(input)).toBe(expectedOutput);
|
|
51
|
+
});
|
|
52
|
+
it("should return undefined when gets invalid gender", () => {
|
|
53
|
+
expect((0, gender_1.normalizeGenderSafe)("something thats not a gender")).toBeUndefined();
|
|
54
|
+
});
|
|
55
|
+
describe("valid inputs", () => {
|
|
56
|
+
for (const { input, expectedOutput } of tests) {
|
|
57
|
+
it(`should return ${expectedOutput} when input is ${input}`, () => {
|
|
58
|
+
expect((0, gender_1.normalizeGenderSafe)(input)).toBe(expectedOutput);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=gender.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gender.test.js","sourceRoot":"","sources":["../../../src/domain/__tests__/gender.test.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const customerDataSchema: z.ZodObject<{
|
|
3
|
+
cxId: z.ZodString;
|
|
4
|
+
facilities: z.ZodArray<z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
oid: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
npi: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
name: string;
|
|
11
|
+
id: string;
|
|
12
|
+
oid: string;
|
|
13
|
+
npi: string;
|
|
14
|
+
}, {
|
|
15
|
+
name: string;
|
|
16
|
+
id: string;
|
|
17
|
+
oid: string;
|
|
18
|
+
npi: string;
|
|
19
|
+
}>, "many">;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
cxId: string;
|
|
22
|
+
facilities: {
|
|
23
|
+
name: string;
|
|
24
|
+
id: string;
|
|
25
|
+
oid: string;
|
|
26
|
+
npi: string;
|
|
27
|
+
}[];
|
|
28
|
+
}, {
|
|
29
|
+
cxId: string;
|
|
30
|
+
facilities: {
|
|
31
|
+
name: string;
|
|
32
|
+
id: string;
|
|
33
|
+
oid: string;
|
|
34
|
+
npi: string;
|
|
35
|
+
}[];
|
|
36
|
+
}>;
|
|
37
|
+
export type CustomerData = z.infer<typeof customerDataSchema>;
|
|
38
|
+
export type FacilityData = CustomerData["facilities"][number];
|
|
39
|
+
//# sourceMappingURL=customer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/domain/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customerDataSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.customerDataSchema = zod_1.z.object({
|
|
6
|
+
cxId: zod_1.z.string(),
|
|
7
|
+
facilities: zod_1.z.array(zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
oid: zod_1.z.string(),
|
|
10
|
+
name: zod_1.z.string(),
|
|
11
|
+
npi: zod_1.z.string(),
|
|
12
|
+
})),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=customer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/domain/customer.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,OAAC,CAAC,KAAK,CACjB,OAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC,CACH;CACF,CAAC,CAAC"}
|
package/dist/domain/gender.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare
|
|
1
|
+
export declare const maleGender = "M";
|
|
2
|
+
export declare const femaleGender = "F";
|
|
3
|
+
export declare const otherGender = "O";
|
|
4
|
+
export declare const unknownGender = "U";
|
|
5
|
+
export type GenderAtBirth = typeof maleGender | typeof femaleGender | typeof otherGender | typeof unknownGender;
|
|
6
|
+
export declare function normalizeGenderSafe(gender: string): GenderAtBirth | undefined;
|
|
3
7
|
export declare function normalizeGender(gender: string): GenderAtBirth;
|
|
4
8
|
//# sourceMappingURL=gender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gender.d.ts","sourceRoot":"","sources":["../../src/domain/gender.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gender.d.ts","sourceRoot":"","sources":["../../src/domain/gender.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,YAAY,MAAM,CAAC;AAChC,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,MAAM,MAAM,aAAa,GACrB,OAAO,UAAU,GACjB,OAAO,YAAY,GACnB,OAAO,WAAW,GAClB,OAAO,aAAa,CAAC;AAEzB,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAY7E;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAI7D"}
|
package/dist/domain/gender.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeGender = exports.normalizeGenderSafe = void 0;
|
|
3
|
+
exports.normalizeGender = exports.normalizeGenderSafe = exports.unknownGender = exports.otherGender = exports.femaleGender = exports.maleGender = void 0;
|
|
4
|
+
const bad_request_1 = require("../error/bad-request");
|
|
5
|
+
exports.maleGender = "M";
|
|
6
|
+
exports.femaleGender = "F";
|
|
7
|
+
exports.otherGender = "O";
|
|
8
|
+
exports.unknownGender = "U";
|
|
4
9
|
function normalizeGenderSafe(gender) {
|
|
5
10
|
const lowerGender = gender.toLowerCase().trim();
|
|
6
11
|
if (lowerGender === "male" || lowerGender === "m") {
|
|
7
|
-
return
|
|
12
|
+
return exports.maleGender;
|
|
8
13
|
}
|
|
9
14
|
else if (lowerGender === "female" || lowerGender === "f") {
|
|
10
|
-
return
|
|
15
|
+
return exports.femaleGender;
|
|
11
16
|
}
|
|
12
17
|
else if (lowerGender === "other" || lowerGender === "un" || lowerGender === "o") {
|
|
13
|
-
return
|
|
18
|
+
return exports.otherGender;
|
|
14
19
|
}
|
|
15
20
|
else if (lowerGender === "unknown" || lowerGender === "unk" || lowerGender === "u") {
|
|
16
|
-
return
|
|
21
|
+
return exports.unknownGender;
|
|
17
22
|
}
|
|
18
23
|
return undefined;
|
|
19
24
|
}
|
|
@@ -21,7 +26,7 @@ exports.normalizeGenderSafe = normalizeGenderSafe;
|
|
|
21
26
|
function normalizeGender(gender) {
|
|
22
27
|
const genderOrUndefined = normalizeGenderSafe(gender);
|
|
23
28
|
if (!genderOrUndefined)
|
|
24
|
-
throw new
|
|
29
|
+
throw new bad_request_1.BadRequestError("Invalid gender", undefined, { gender });
|
|
25
30
|
return genderOrUndefined;
|
|
26
31
|
}
|
|
27
32
|
exports.normalizeGender = normalizeGender;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gender.js","sourceRoot":"","sources":["../../src/domain/gender.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"gender.js","sourceRoot":"","sources":["../../src/domain/gender.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AAE1C,QAAA,UAAU,GAAG,GAAG,CAAC;AACjB,QAAA,YAAY,GAAG,GAAG,CAAC;AACnB,QAAA,WAAW,GAAG,GAAG,CAAC;AAClB,QAAA,aAAa,GAAG,GAAG,CAAC;AAQjC,SAAgB,mBAAmB,CAAC,MAAc;IAChD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAChD,IAAI,WAAW,KAAK,MAAM,IAAI,WAAW,KAAK,GAAG,EAAE;QACjD,OAAO,kBAAU,CAAC;KACnB;SAAM,IAAI,WAAW,KAAK,QAAQ,IAAI,WAAW,KAAK,GAAG,EAAE;QAC1D,OAAO,oBAAY,CAAC;KACrB;SAAM,IAAI,WAAW,KAAK,OAAO,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,GAAG,EAAE;QACjF,OAAO,mBAAW,CAAC;KACpB;SAAM,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,KAAK,IAAI,WAAW,KAAK,GAAG,EAAE;QACpF,OAAO,qBAAa,CAAC;KACtB;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAZD,kDAYC;AAED,SAAgB,eAAe,CAAC,MAAc;IAC5C,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,IAAI,CAAC,iBAAiB;QAAE,MAAM,IAAI,6BAAe,CAAC,gBAAgB,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3F,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAJD,0CAIC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const jobStatus: readonly ["waiting", "processing", "completed", "failed"];
|
|
1
|
+
export declare const jobStatus: readonly ["waiting", "processing", "completed", "failed", "cancelled"];
|
|
2
2
|
export type JobStatus = (typeof jobStatus)[number];
|
|
3
3
|
export declare function isValidJobStatus(status: string): status is JobStatus;
|
|
4
4
|
export declare const jobInitialStatus: JobStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-status.d.ts","sourceRoot":"","sources":["../../../src/domain/job/job-status.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"job-status.d.ts","sourceRoot":"","sources":["../../../src/domain/job/job-status.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,wEAAyE,CAAC;AAChG,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,SAAS,CAEpE;AAED,eAAO,MAAM,gBAAgB,EAAE,SAAqB,CAAC;AAErD,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAEpD;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,SAAS,CAoD9F"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validateNewJobStatus = exports.isJobDone = exports.jobInitialStatus = exports.isValidJobStatus = exports.jobStatus = void 0;
|
|
4
4
|
const bad_request_1 = require("../../error/bad-request");
|
|
5
|
-
exports.jobStatus = ["waiting", "processing", "completed", "failed"];
|
|
5
|
+
exports.jobStatus = ["waiting", "processing", "completed", "failed", "cancelled"];
|
|
6
6
|
function isValidJobStatus(status) {
|
|
7
|
-
return (status
|
|
7
|
+
return exports.jobStatus.includes(status);
|
|
8
8
|
}
|
|
9
9
|
exports.isValidJobStatus = isValidJobStatus;
|
|
10
10
|
exports.jobInitialStatus = "waiting";
|
|
@@ -39,8 +39,13 @@ function validateNewJobStatus(currentStatus, newStatus) {
|
|
|
39
39
|
}
|
|
40
40
|
break;
|
|
41
41
|
case "failed":
|
|
42
|
-
if (currentStatus
|
|
43
|
-
throw new bad_request_1.BadRequestError(`Job is
|
|
42
|
+
if (currentStatus !== "processing") {
|
|
43
|
+
throw new bad_request_1.BadRequestError(`Job is not processing, cannot update to failed`, undefined, additionalInfo);
|
|
44
|
+
}
|
|
45
|
+
break;
|
|
46
|
+
case "cancelled":
|
|
47
|
+
if (currentStatus !== "waiting") {
|
|
48
|
+
throw new bad_request_1.BadRequestError(`Job is not waiting, cannot update to cancelled`, undefined, additionalInfo);
|
|
44
49
|
}
|
|
45
50
|
break;
|
|
46
51
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-status.js","sourceRoot":"","sources":["../../../src/domain/job/job-status.ts"],"names":[],"mappings":";;;AAAA,yDAA0D;AAE7C,QAAA,SAAS,GAAG,CAAC,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"job-status.js","sourceRoot":"","sources":["../../../src/domain/job/job-status.ts"],"names":[],"mappings":";;;AAAA,yDAA0D;AAE7C,QAAA,SAAS,GAAG,CAAC,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAGhG,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,OAAO,iBAAS,CAAC,QAAQ,CAAC,MAAmB,CAAC,CAAC;AACjD,CAAC;AAFD,4CAEC;AAEY,QAAA,gBAAgB,GAAc,SAAS,CAAC;AAErD,SAAgB,SAAS,CAAC,MAAiB;IACzC,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,QAAQ,CAAC;AACvD,CAAC;AAFD,8BAEC;AAED;;;;;;;GAOG;AACH,SAAgB,oBAAoB,CAAC,aAAwB,EAAE,SAAoB;IACjF,MAAM,cAAc,GAAG;QACrB,aAAa;QACb,SAAS;KACV,CAAC;IACF,QAAQ,SAAS,EAAE;QACjB,KAAK,SAAS;YACZ,MAAM,IAAI,6BAAe,CACvB,4CAA4C,EAC5C,SAAS,EACT,cAAc,CACf,CAAC;QACJ,KAAK,YAAY;YACf,IAAI,aAAa,KAAK,SAAS,IAAI,aAAa,KAAK,YAAY,EAAE;gBACjE,MAAM,IAAI,6BAAe,CACvB,qDAAqD,EACrD,SAAS,EACT,cAAc,CACf,CAAC;aACH;YACD,MAAM;QACR,KAAK,WAAW;YACd,IAAI,aAAa,KAAK,YAAY,EAAE;gBAClC,MAAM,IAAI,6BAAe,CACvB,mDAAmD,EACnD,SAAS,EACT,cAAc,CACf,CAAC;aACH;YACD,MAAM;QACR,KAAK,QAAQ;YACX,IAAI,aAAa,KAAK,YAAY,EAAE;gBAClC,MAAM,IAAI,6BAAe,CACvB,gDAAgD,EAChD,SAAS,EACT,cAAc,CACf,CAAC;aACH;YACD,MAAM;QACR,KAAK,WAAW;YACd,IAAI,aAAa,KAAK,SAAS,EAAE;gBAC/B,MAAM,IAAI,6BAAe,CACvB,gDAAgD,EAChD,SAAS,EACT,cAAc,CACf,CAAC;aACH;YACD,MAAM;QACR;YACE,MAAM,IAAI,6BAAe,CAAC,oBAAoB,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;KAC9E;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AApDD,oDAoDC"}
|
|
@@ -9,14 +9,46 @@ export type PatientJob = {
|
|
|
9
9
|
requestId?: string;
|
|
10
10
|
status: JobStatus;
|
|
11
11
|
statusReason: string | undefined;
|
|
12
|
+
runUrl: string | undefined;
|
|
13
|
+
scheduledAt: Date | undefined;
|
|
12
14
|
startedAt: Date | undefined;
|
|
13
15
|
finishedAt: Date | undefined;
|
|
16
|
+
cancelledAt: Date | undefined;
|
|
17
|
+
failedAt: Date | undefined;
|
|
14
18
|
total: number;
|
|
15
19
|
successful: number;
|
|
16
20
|
failed: number;
|
|
17
21
|
paramsCx: JobParamsCx | undefined;
|
|
18
22
|
paramsOps: JobParamsOps | undefined;
|
|
19
23
|
data: unknown;
|
|
24
|
+
runtimeData: unknown;
|
|
20
25
|
createdAt: Date;
|
|
21
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Used by code that needs to access the raw data from the database.
|
|
29
|
+
* @see updatePatientJobTotals()
|
|
30
|
+
*/
|
|
31
|
+
export declare const patientJobRawColumnNames: {
|
|
32
|
+
id: string;
|
|
33
|
+
cxId: string;
|
|
34
|
+
patientId: string;
|
|
35
|
+
jobType: string;
|
|
36
|
+
jobGroupId: string;
|
|
37
|
+
requestId: string;
|
|
38
|
+
status: string;
|
|
39
|
+
statusReason: string;
|
|
40
|
+
runUrl: string;
|
|
41
|
+
scheduledAt: string;
|
|
42
|
+
startedAt: string;
|
|
43
|
+
finishedAt: string;
|
|
44
|
+
cancelledAt: string;
|
|
45
|
+
failedAt: string;
|
|
46
|
+
total: string;
|
|
47
|
+
successful: string;
|
|
48
|
+
failed: string;
|
|
49
|
+
paramsCx: string;
|
|
50
|
+
paramsOps: string;
|
|
51
|
+
data: string;
|
|
52
|
+
runtimeData: string;
|
|
53
|
+
};
|
|
22
54
|
//# sourceMappingURL=patient-job.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-job.d.ts","sourceRoot":"","sources":["../../../src/domain/job/patient-job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC;IAClC,SAAS,EAAE,YAAY,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"patient-job.d.ts","sourceRoot":"","sources":["../../../src/domain/job/patient-job.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9B,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC;IAClC,SAAS,EAAE,YAAY,GAAG,SAAS,CAAC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;CAsBpC,CAAC"}
|
|
@@ -1,3 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientJobRawColumnNames = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Used by code that needs to access the raw data from the database.
|
|
6
|
+
* @see updatePatientJobTotals()
|
|
7
|
+
*/
|
|
8
|
+
exports.patientJobRawColumnNames = {
|
|
9
|
+
id: "id",
|
|
10
|
+
cxId: "cx_id",
|
|
11
|
+
patientId: "patient_id",
|
|
12
|
+
jobType: "job_type",
|
|
13
|
+
jobGroupId: "job_group_id",
|
|
14
|
+
requestId: "request_id",
|
|
15
|
+
status: "status",
|
|
16
|
+
statusReason: "status_reason",
|
|
17
|
+
runUrl: "run_url",
|
|
18
|
+
scheduledAt: "scheduled_at",
|
|
19
|
+
startedAt: "started_at",
|
|
20
|
+
finishedAt: "finished_at",
|
|
21
|
+
cancelledAt: "cancelled_at",
|
|
22
|
+
failedAt: "failed_at",
|
|
23
|
+
total: "total",
|
|
24
|
+
successful: "successful",
|
|
25
|
+
failed: "failed",
|
|
26
|
+
paramsCx: "params_cx",
|
|
27
|
+
paramsOps: "params_ops",
|
|
28
|
+
data: "data",
|
|
29
|
+
runtimeData: "runtime_data",
|
|
30
|
+
};
|
|
3
31
|
//# sourceMappingURL=patient-job.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-job.js","sourceRoot":"","sources":["../../../src/domain/job/patient-job.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"patient-job.js","sourceRoot":"","sources":["../../../src/domain/job/patient-job.ts"],"names":[],"mappings":";;;AA4BA;;;GAGG;AACU,QAAA,wBAAwB,GAAG;IACtC,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,UAAU;IACnB,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,eAAe;IAC7B,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,WAAW;IACrB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,cAAc;CAC5B,CAAC"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
export type JobParamsCx = Record<string, string | boolean>;
|
|
2
|
-
export type JobParamsOps = Record<string, string | boolean>;
|
|
3
|
+
export type JobParamsOps = Record<string, string | boolean | number>;
|
|
3
4
|
declare const failed: "failed";
|
|
4
5
|
declare const successful: "successful";
|
|
5
6
|
export type JobEntryStatus = typeof failed | typeof successful;
|
|
6
7
|
export declare function isValidJobEntryStatus(status: string): status is JobEntryStatus;
|
|
8
|
+
export declare const jobRunBodySchema: z.ZodObject<{
|
|
9
|
+
cxId: z.ZodString;
|
|
10
|
+
jobId: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
cxId: string;
|
|
13
|
+
jobId: string;
|
|
14
|
+
}, {
|
|
15
|
+
cxId: string;
|
|
16
|
+
jobId: string;
|
|
17
|
+
}>;
|
|
7
18
|
export {};
|
|
8
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/job/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domain/job/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;AAErE,QAAA,MAAM,MAAM,UAAoB,CAAC;AACjC,QAAA,MAAM,UAAU,cAAwB,CAAC;AACzC,MAAM,MAAM,cAAc,GAAG,OAAO,MAAM,GAAG,OAAO,UAAU,CAAC;AAE/D,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,cAAc,CAE9E;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC"}
|