@metriport/shared 0.27.0-alpha.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/domain/patient/patient-import.d.ts +131 -0
- package/dist/domain/patient/patient-import.d.ts.map +1 -0
- package/dist/domain/patient/patient-import.js +32 -0
- package/dist/domain/patient/patient-import.js.map +1 -0
- package/dist/external/hl7v2/constants.d.ts +9 -0
- package/dist/external/hl7v2/constants.d.ts.map +1 -0
- package/dist/external/hl7v2/constants.js +12 -0
- package/dist/external/hl7v2/constants.js.map +1 -0
- package/dist/external/index.d.ts +1 -0
- package/dist/external/index.d.ts.map +1 -1
- package/dist/external/index.js +1 -0
- package/dist/external/index.js.map +1 -1
- package/dist/interface/external/athenahealth/appointment.d.ts +63 -0
- package/dist/interface/external/athenahealth/appointment.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/appointment.js +18 -0
- package/dist/interface/external/athenahealth/appointment.js.map +1 -0
- package/dist/interface/external/athenahealth/cx-mapping.d.ts +10 -0
- package/dist/interface/external/athenahealth/cx-mapping.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/cx-mapping.js +8 -0
- package/dist/interface/external/athenahealth/cx-mapping.js.map +1 -0
- package/dist/interface/external/athenahealth/department.d.ts +28 -0
- package/dist/interface/external/athenahealth/department.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/department.js +11 -0
- package/dist/interface/external/athenahealth/department.js.map +1 -0
- package/dist/interface/external/athenahealth/index.d.ts +9 -0
- package/dist/interface/external/athenahealth/index.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/index.js +25 -0
- package/dist/interface/external/athenahealth/index.js.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts +34 -0
- package/dist/interface/external/athenahealth/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/jwt-token.js +18 -0
- package/dist/interface/external/athenahealth/jwt-token.js.map +1 -0
- package/dist/interface/external/athenahealth/medication.d.ts +50 -0
- package/dist/interface/external/athenahealth/medication.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/medication.js +19 -0
- package/dist/interface/external/athenahealth/medication.js.map +1 -0
- package/dist/interface/external/athenahealth/problem.d.ts +27 -0
- package/dist/interface/external/athenahealth/problem.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/problem.js +14 -0
- package/dist/interface/external/athenahealth/problem.js.map +1 -0
- package/dist/interface/external/athenahealth/subscription.d.ts +20 -0
- package/dist/interface/external/athenahealth/subscription.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/subscription.js +11 -0
- package/dist/interface/external/athenahealth/subscription.js.map +1 -0
- package/dist/interface/external/athenahealth/vitals.d.ts +82 -0
- package/dist/interface/external/athenahealth/vitals.d.ts.map +1 -0
- package/dist/interface/external/athenahealth/vitals.js +15 -0
- package/dist/interface/external/athenahealth/vitals.js.map +1 -0
- package/dist/interface/external/canvas/appointment.d.ts +68 -0
- package/dist/interface/external/canvas/appointment.d.ts.map +1 -0
- package/dist/interface/external/canvas/appointment.js +15 -0
- package/dist/interface/external/canvas/appointment.js.map +1 -0
- package/dist/interface/external/canvas/index.d.ts +3 -0
- package/dist/interface/external/canvas/index.d.ts.map +1 -0
- package/dist/interface/external/canvas/index.js +19 -0
- package/dist/interface/external/canvas/index.js.map +1 -0
- package/dist/interface/external/canvas/jwt-token.d.ts +31 -0
- package/dist/interface/external/canvas/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/canvas/jwt-token.js +17 -0
- package/dist/interface/external/canvas/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/family-history.d.ts +302 -0
- package/dist/interface/external/ehr/athenahealth/family-history.d.ts.map +1 -0
- package/dist/interface/external/ehr/athenahealth/family-history.js +46 -0
- package/dist/interface/external/ehr/athenahealth/family-history.js.map +1 -0
- package/dist/interface/external/ehr/athenahealth/index.d.ts +1 -0
- package/dist/interface/external/ehr/athenahealth/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/athenahealth/index.js +1 -0
- package/dist/interface/external/ehr/athenahealth/index.js.map +1 -1
- package/dist/interface/external/elation/appointment.d.ts +68 -0
- package/dist/interface/external/elation/appointment.d.ts.map +1 -0
- package/dist/interface/external/elation/appointment.js +15 -0
- package/dist/interface/external/elation/appointment.js.map +1 -0
- package/dist/interface/external/elation/index.d.ts +4 -0
- package/dist/interface/external/elation/index.d.ts.map +1 -0
- package/dist/interface/external/elation/index.js +20 -0
- package/dist/interface/external/elation/index.js.map +1 -0
- package/dist/interface/external/elation/jwt-token.d.ts +20 -0
- package/dist/interface/external/elation/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/elation/jwt-token.js +13 -0
- package/dist/interface/external/elation/jwt-token.js.map +1 -0
- package/dist/interface/external/elation/patient.d.ts +96 -0
- package/dist/interface/external/elation/patient.d.ts.map +1 -0
- package/dist/interface/external/elation/patient.js +33 -0
- package/dist/interface/external/elation/patient.js.map +1 -0
- package/dist/interface/external/shared/ehr/patient.d.ts +250 -0
- package/dist/interface/external/shared/ehr/patient.d.ts.map +1 -0
- package/dist/interface/external/shared/ehr/patient.js +35 -0
- package/dist/interface/external/shared/ehr/patient.js.map +1 -0
- package/package.json +9 -2
- package/dist/core/src/domain/document-query.d.ts +0 -25
- package/dist/core/src/domain/document-query.d.ts.map +0 -1
- package/dist/core/src/domain/document-query.js +0 -27
- package/dist/core/src/domain/document-query.js.map +0 -1
- package/dist/domain/network/network-query.d.ts +0 -30
- package/dist/domain/network/network-query.d.ts.map +0 -1
- package/dist/domain/network/network-query.js +0 -8
- package/dist/domain/network/network-query.js.map +0 -1
- package/dist/domain/network-query/network-query.d.ts +0 -31
- package/dist/domain/network-query/network-query.d.ts.map +0 -1
- package/dist/domain/network-query/network-query.js +0 -9
- package/dist/domain/network-query/network-query.js.map +0 -1
- package/dist/domain/network-query/source.d.ts +0 -31
- package/dist/domain/network-query/source.d.ts.map +0 -1
- package/dist/domain/network-query/source.js +0 -9
- package/dist/domain/network-query/source.js.map +0 -1
- package/dist/domain/network-qyert/network-query.d.ts +0 -31
- package/dist/domain/network-qyert/network-query.d.ts.map +0 -1
- package/dist/domain/network-qyert/network-query.js +0 -9
- package/dist/domain/network-qyert/network-query.js.map +0 -1
- package/dist/domain/roster/patient-roster.d.ts +0 -27
- package/dist/domain/roster/patient-roster.d.ts.map +0 -1
- package/dist/domain/roster/patient-roster.js +0 -3
- package/dist/domain/roster/patient-roster.js.map +0 -1
- package/dist/domain/roster/roster-status.d.ts +0 -16
- package/dist/domain/roster/roster-status.d.ts.map +0 -1
- package/dist/domain/roster/roster-status.js +0 -46
- package/dist/domain/roster/roster-status.js.map +0 -1
- package/dist/domain/roster/roster.d.ts +0 -32
- package/dist/domain/roster/roster.d.ts.map +0 -1
- package/dist/domain/roster/roster.js +0 -3
- package/dist/domain/roster/roster.js.map +0 -1
- package/dist/interface/external/quest/fhir.d.ts +0 -22
- package/dist/interface/external/quest/fhir.d.ts.map +0 -1
- package/dist/interface/external/quest/fhir.js +0 -9
- package/dist/interface/external/quest/fhir.js.map +0 -1
- package/dist/interface/external/quest/file.d.ts +0 -15
- package/dist/interface/external/quest/file.d.ts.map +0 -1
- package/dist/interface/external/quest/file.js +0 -3
- package/dist/interface/external/quest/file.js.map +0 -1
- package/dist/interface/external/quest/roster.d.ts +0 -167
- package/dist/interface/external/quest/roster.d.ts.map +0 -1
- package/dist/interface/external/quest/roster.js +0 -40
- package/dist/interface/external/quest/roster.js.map +0 -1
- package/dist/interface/external/surescripts/roster.d.ts +0 -12
- package/dist/interface/external/surescripts/roster.d.ts.map +0 -1
- package/dist/interface/external/surescripts/roster.js +0 -29
- package/dist/interface/external/surescripts/roster.js.map +0 -1
- package/dist/interface/external/surescripts/source.d.ts +0 -2
- package/dist/interface/external/surescripts/source.d.ts.map +0 -1
- package/dist/interface/external/surescripts/source.js +0 -5
- package/dist/interface/external/surescripts/source.js.map +0 -1
- package/dist/shared/src/domain/network/network-query.d.ts +0 -30
- package/dist/shared/src/domain/network/network-query.d.ts.map +0 -1
- package/dist/shared/src/domain/network/network-query.js +0 -8
- package/dist/shared/src/domain/network/network-query.js.map +0 -1
- package/dist/shared/src/domain/network-query/network-query.d.ts +0 -30
- package/dist/shared/src/domain/network-query/network-query.d.ts.map +0 -1
- package/dist/shared/src/domain/network-query/network-query.js +0 -8
- package/dist/shared/src/domain/network-query/network-query.js.map +0 -1
- package/dist/shared/src/domain/network-qyert/network-query.d.ts +0 -30
- package/dist/shared/src/domain/network-qyert/network-query.d.ts.map +0 -1
- package/dist/shared/src/domain/network-qyert/network-query.js +0 -8
- package/dist/shared/src/domain/network-qyert/network-query.js.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientSearchSchema = exports.patientSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const address = zod_1.z.object({
|
|
6
|
+
state: zod_1.z.string().optional(),
|
|
7
|
+
line: zod_1.z.string().array().optional(),
|
|
8
|
+
city: zod_1.z.string().optional(),
|
|
9
|
+
postalCode: zod_1.z.string().optional(),
|
|
10
|
+
country: zod_1.z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
const telecome = zod_1.z.object({
|
|
13
|
+
value: zod_1.z.string().optional(),
|
|
14
|
+
system: zod_1.z.enum(["phone", "email"]).optional(),
|
|
15
|
+
});
|
|
16
|
+
const name = zod_1.z.object({
|
|
17
|
+
family: zod_1.z.string().optional(),
|
|
18
|
+
given: zod_1.z.string().array().optional(),
|
|
19
|
+
});
|
|
20
|
+
exports.patientSchema = zod_1.z.object({
|
|
21
|
+
gender: zod_1.z.string(),
|
|
22
|
+
name: name.array().optional(),
|
|
23
|
+
address: address.array().optional(),
|
|
24
|
+
birthDate: zod_1.z.string(),
|
|
25
|
+
telecom: telecome.array().optional(),
|
|
26
|
+
});
|
|
27
|
+
exports.patientSearchSchema = zod_1.z.object({
|
|
28
|
+
entry: zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
resource: exports.patientSchema,
|
|
31
|
+
})
|
|
32
|
+
.array()
|
|
33
|
+
.optional(),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../src/interface/external/shared/ehr/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,CAAC;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IACxB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,OAAC,CAAC,MAAM,CAAC;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,OAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,qBAAa;KACxB,CAAC;SACD,KAAK,EAAE;SACP,QAAQ,EAAE;CACd,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/shared",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.1",
|
|
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/",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"./common/*": "./dist/common/*.js",
|
|
23
23
|
"./domain": "./dist/domain/index.js",
|
|
24
24
|
"./domain/*": "./dist/domain/*.js",
|
|
25
|
+
"./external/*": "./dist/external/*.js",
|
|
25
26
|
"./interface/*": "./dist/interface/*.js",
|
|
26
27
|
"./medical": "./dist/medical/index.js",
|
|
27
28
|
"./medical/*": "./dist/medical/*.js",
|
|
@@ -48,6 +49,12 @@
|
|
|
48
49
|
"domain/*": [
|
|
49
50
|
"dist/domain/*"
|
|
50
51
|
],
|
|
52
|
+
"external": [
|
|
53
|
+
"dist/external/index.d.ts"
|
|
54
|
+
],
|
|
55
|
+
"external/*": [
|
|
56
|
+
"dist/external/*"
|
|
57
|
+
],
|
|
51
58
|
"interface": [
|
|
52
59
|
"dist/interface/index.d.ts"
|
|
53
60
|
],
|
|
@@ -116,5 +123,5 @@
|
|
|
116
123
|
"ts-jest": "29.1.1",
|
|
117
124
|
"typescript": "^4.9.5"
|
|
118
125
|
},
|
|
119
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "51e463ea027f83f97a0ca23a5f372539f6a59803"
|
|
120
127
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const documentQueryStatus: readonly ["processing", "completed", "failed"];
|
|
2
|
-
export type DocumentQueryStatus = (typeof documentQueryStatus)[number];
|
|
3
|
-
export type Progress = {
|
|
4
|
-
status: DocumentQueryStatus;
|
|
5
|
-
total?: number;
|
|
6
|
-
successful?: number;
|
|
7
|
-
errors?: number;
|
|
8
|
-
webhookSent?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type ProgressIntKeys = keyof Omit<Progress, "status">;
|
|
11
|
-
export declare const progressTypes: readonly ["convert", "download"];
|
|
12
|
-
export type ProgressType = (typeof progressTypes)[number];
|
|
13
|
-
export type DocumentQueryProgress = Partial<Record<ProgressType, Progress> & {
|
|
14
|
-
requestId: string;
|
|
15
|
-
startedAt: Date;
|
|
16
|
-
triggerConsolidated: boolean;
|
|
17
|
-
forceDownload: boolean;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const convertResult: readonly ["success", "failed"];
|
|
20
|
-
export type ConvertResult = (typeof convertResult)[number];
|
|
21
|
-
export declare function getStatusFromProgress(progress: Pick<Progress, "errors" | "successful" | "total">): DocumentQueryStatus;
|
|
22
|
-
export declare function isProcessingStatus(status?: DocumentQueryStatus | undefined): boolean;
|
|
23
|
-
export declare function isFinalStatus(status?: DocumentQueryStatus | undefined): boolean;
|
|
24
|
-
export declare function isProcessing(progress?: Progress | undefined): boolean;
|
|
25
|
-
//# sourceMappingURL=document-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-query.d.ts","sourceRoot":"","sources":["../../../../../core/src/domain/document-query.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,gDAAiD,CAAC;AAClF,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAE7D,eAAO,MAAM,aAAa,kCAAmC,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;CACxB,CACF,CAAC;AAEF,eAAO,MAAM,aAAa,gCAAiC,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,GAAG,OAAO,CAAC,GAC1D,mBAAmB,CAIrB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS,WAG1E;AACD,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS,WAErE;AAED,wBAAgB,YAAY,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,WAE3D"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isProcessing = exports.isFinalStatus = exports.isProcessingStatus = exports.getStatusFromProgress = exports.convertResult = exports.progressTypes = exports.documentQueryStatus = void 0;
|
|
4
|
-
exports.documentQueryStatus = ["processing", "completed", "failed"];
|
|
5
|
-
exports.progressTypes = ["convert", "download"];
|
|
6
|
-
exports.convertResult = ["success", "failed"];
|
|
7
|
-
function getStatusFromProgress(progress) {
|
|
8
|
-
const { successful, errors, total } = progress;
|
|
9
|
-
const isConversionCompleted = (successful ?? 0) + (errors ?? 0) >= (total ?? 0);
|
|
10
|
-
return isConversionCompleted ? "completed" : "processing";
|
|
11
|
-
}
|
|
12
|
-
exports.getStatusFromProgress = getStatusFromProgress;
|
|
13
|
-
function isProcessingStatus(status) {
|
|
14
|
-
if (!status)
|
|
15
|
-
return false;
|
|
16
|
-
return status === "processing";
|
|
17
|
-
}
|
|
18
|
-
exports.isProcessingStatus = isProcessingStatus;
|
|
19
|
-
function isFinalStatus(status) {
|
|
20
|
-
return !isProcessingStatus(status);
|
|
21
|
-
}
|
|
22
|
-
exports.isFinalStatus = isFinalStatus;
|
|
23
|
-
function isProcessing(progress) {
|
|
24
|
-
return isProcessingStatus(progress?.status);
|
|
25
|
-
}
|
|
26
|
-
exports.isProcessing = isProcessing;
|
|
27
|
-
//# sourceMappingURL=document-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"document-query.js","sourceRoot":"","sources":["../../../../../core/src/domain/document-query.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAarE,QAAA,aAAa,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAYjD,QAAA,aAAa,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAU,CAAC;AAG5D,SAAgB,qBAAqB,CACnC,QAA2D;IAE3D,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC;IAC/C,MAAM,qBAAqB,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC;IAChF,OAAO,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC;AAC5D,CAAC;AAND,sDAMC;AAED,SAAgB,kBAAkB,CAAC,MAAwC;IACzE,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1B,OAAO,MAAM,KAAK,YAAY,CAAC;AACjC,CAAC;AAHD,gDAGC;AACD,SAAgB,aAAa,CAAC,MAAwC;IACpE,OAAO,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC;AAFD,sCAEC;AAED,SAAgB,YAAY,CAAC,QAA+B;IAC1D,OAAO,kBAAkB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC;AAFD,oCAEC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DocumentQueryStatus } from "./document-query";
|
|
2
|
-
export type NetworkQueryParams = {
|
|
3
|
-
cxId: string;
|
|
4
|
-
facilityId: string;
|
|
5
|
-
patientId: string;
|
|
6
|
-
requestId?: string;
|
|
7
|
-
};
|
|
8
|
-
export type NetworkQueryProgress = {
|
|
9
|
-
networks: SourceQueryProgress[];
|
|
10
|
-
};
|
|
11
|
-
export declare const hieSource = "hie";
|
|
12
|
-
export declare const pharmacySource = "pharmacy";
|
|
13
|
-
export declare const laboratorySource = "laboratory";
|
|
14
|
-
export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
|
|
15
|
-
export type NetworkSource = (typeof networkSources)[number];
|
|
16
|
-
export type SourceQueryProgress = {
|
|
17
|
-
type: NetworkSource;
|
|
18
|
-
source?: string;
|
|
19
|
-
status: DocumentQueryStatus;
|
|
20
|
-
startedAt?: Date;
|
|
21
|
-
requestId?: string;
|
|
22
|
-
documents?: {
|
|
23
|
-
downloadInProgress: number;
|
|
24
|
-
downloaded: number;
|
|
25
|
-
converted: number;
|
|
26
|
-
failed: number;
|
|
27
|
-
total: number;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=network-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../src/domain/network/network-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,mBAAmB,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = void 0;
|
|
4
|
-
exports.hieSource = "hie";
|
|
5
|
-
exports.pharmacySource = "pharmacy";
|
|
6
|
-
exports.laboratorySource = "laboratory";
|
|
7
|
-
exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
|
|
8
|
-
//# sourceMappingURL=network-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../src/domain/network/network-query.ts"],"names":[],"mappings":";;;AAaa,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const sourceQueryStatus: readonly ["processing", "completed", "failed"];
|
|
2
|
-
export type SourceQueryStatus = (typeof sourceQueryStatus)[number];
|
|
3
|
-
export type NetworkQueryParams = {
|
|
4
|
-
cxId: string;
|
|
5
|
-
facilityId: string;
|
|
6
|
-
patientId: string;
|
|
7
|
-
requestId?: string;
|
|
8
|
-
};
|
|
9
|
-
export type NetworkQueryProgress = {
|
|
10
|
-
networks: SourceQueryStatus[];
|
|
11
|
-
};
|
|
12
|
-
export declare const hieSource = "hie";
|
|
13
|
-
export declare const pharmacySource = "pharmacy";
|
|
14
|
-
export declare const laboratorySource = "laboratory";
|
|
15
|
-
export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
|
|
16
|
-
export type NetworkSource = (typeof networkSources)[number];
|
|
17
|
-
export type SourceQueryProgress = {
|
|
18
|
-
type: NetworkSource;
|
|
19
|
-
source?: string;
|
|
20
|
-
status: SourceQueryStatus;
|
|
21
|
-
startedAt?: Date;
|
|
22
|
-
requestId?: string;
|
|
23
|
-
documents?: {
|
|
24
|
-
downloadInProgress: number;
|
|
25
|
-
downloaded: number;
|
|
26
|
-
converted: number;
|
|
27
|
-
failed: number;
|
|
28
|
-
total: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=network-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../src/domain/network-query/network-query.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,gDAAiD,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = exports.sourceQueryStatus = void 0;
|
|
4
|
-
exports.sourceQueryStatus = ["processing", "completed", "failed"];
|
|
5
|
-
exports.hieSource = "hie";
|
|
6
|
-
exports.pharmacySource = "pharmacy";
|
|
7
|
-
exports.laboratorySource = "laboratory";
|
|
8
|
-
exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
|
|
9
|
-
//# sourceMappingURL=network-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../src/domain/network-query/network-query.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAcnE,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const sourceQueryStatus: readonly ["processing", "completed", "failed"];
|
|
2
|
-
export type SourceQueryStatus = (typeof sourceQueryStatus)[number];
|
|
3
|
-
export type NetworkQueryParams = {
|
|
4
|
-
cxId: string;
|
|
5
|
-
facilityId: string;
|
|
6
|
-
patientId: string;
|
|
7
|
-
requestId?: string;
|
|
8
|
-
};
|
|
9
|
-
export type NetworkQueryProgress = {
|
|
10
|
-
networks: SourceQueryStatus[];
|
|
11
|
-
};
|
|
12
|
-
export declare const hieSource = "hie";
|
|
13
|
-
export declare const pharmacySource = "pharmacy";
|
|
14
|
-
export declare const laboratorySource = "laboratory";
|
|
15
|
-
export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
|
|
16
|
-
export type NetworkSource = (typeof networkSources)[number];
|
|
17
|
-
export type SourceQueryProgress = {
|
|
18
|
-
type: NetworkSource;
|
|
19
|
-
source?: string;
|
|
20
|
-
status: SourceQueryStatus;
|
|
21
|
-
startedAt?: Date;
|
|
22
|
-
requestId?: string;
|
|
23
|
-
documents?: {
|
|
24
|
-
downloadInProgress: number;
|
|
25
|
-
downloaded: number;
|
|
26
|
-
converted: number;
|
|
27
|
-
failed: number;
|
|
28
|
-
total: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../src/domain/network-query/source.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,gDAAiD,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = exports.sourceQueryStatus = void 0;
|
|
4
|
-
exports.sourceQueryStatus = ["processing", "completed", "failed"];
|
|
5
|
-
exports.hieSource = "hie";
|
|
6
|
-
exports.pharmacySource = "pharmacy";
|
|
7
|
-
exports.laboratorySource = "laboratory";
|
|
8
|
-
exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
|
|
9
|
-
//# sourceMappingURL=source.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source.js","sourceRoot":"","sources":["../../../src/domain/network-query/source.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAcnE,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const sourceQueryStatus: readonly ["processing", "completed", "failed"];
|
|
2
|
-
export type SourceQueryStatus = (typeof sourceQueryStatus)[number];
|
|
3
|
-
export type NetworkQueryParams = {
|
|
4
|
-
cxId: string;
|
|
5
|
-
facilityId: string;
|
|
6
|
-
patientId: string;
|
|
7
|
-
requestId?: string;
|
|
8
|
-
};
|
|
9
|
-
export type NetworkQueryProgress = {
|
|
10
|
-
networks: SourceQueryStatus[];
|
|
11
|
-
};
|
|
12
|
-
export declare const hieSource = "hie";
|
|
13
|
-
export declare const pharmacySource = "pharmacy";
|
|
14
|
-
export declare const laboratorySource = "laboratory";
|
|
15
|
-
export declare const networkSources: readonly ["hie", "pharmacy", "laboratory"];
|
|
16
|
-
export type NetworkSource = (typeof networkSources)[number];
|
|
17
|
-
export type SourceQueryProgress = {
|
|
18
|
-
type: NetworkSource;
|
|
19
|
-
source?: string;
|
|
20
|
-
status: SourceQueryStatus;
|
|
21
|
-
startedAt?: Date;
|
|
22
|
-
requestId?: string;
|
|
23
|
-
documents?: {
|
|
24
|
-
downloadInProgress: number;
|
|
25
|
-
downloaded: number;
|
|
26
|
-
converted: number;
|
|
27
|
-
failed: number;
|
|
28
|
-
total: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=network-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.d.ts","sourceRoot":"","sources":["../../../src/domain/network-qyert/network-query.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,gDAAiD,CAAC;AAChF,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,SAAS,QAAQ,CAAC;AAC/B,eAAO,MAAM,cAAc,aAAa,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,cAAc,4CAAyD,CAAC;AACrF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.networkSources = exports.laboratorySource = exports.pharmacySource = exports.hieSource = exports.sourceQueryStatus = void 0;
|
|
4
|
-
exports.sourceQueryStatus = ["processing", "completed", "failed"];
|
|
5
|
-
exports.hieSource = "hie";
|
|
6
|
-
exports.pharmacySource = "pharmacy";
|
|
7
|
-
exports.laboratorySource = "laboratory";
|
|
8
|
-
exports.networkSources = [exports.hieSource, exports.pharmacySource, exports.laboratorySource];
|
|
9
|
-
//# sourceMappingURL=network-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-query.js","sourceRoot":"","sources":["../../../src/domain/network-qyert/network-query.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAcnE,QAAA,SAAS,GAAG,KAAK,CAAC;AAClB,QAAA,cAAc,GAAG,UAAU,CAAC;AAC5B,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,cAAc,GAAG,CAAC,iBAAS,EAAE,sBAAc,EAAE,wBAAgB,CAAU,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CreateRosterCmd, GetRosterCmd, ListRostersCmd } from "./roster";
|
|
2
|
-
export type PatientRoster = {
|
|
3
|
-
id: string;
|
|
4
|
-
cxId: string;
|
|
5
|
-
patientId: string;
|
|
6
|
-
rosterId: string;
|
|
7
|
-
};
|
|
8
|
-
export type DeletePatientRosterCmd = Pick<PatientRoster, "cxId" | "patientId">;
|
|
9
|
-
export type AssignPatientsToRosterCmd = Pick<GetRosterCmd, "rosterId" | "cxId"> & {
|
|
10
|
-
patientIds?: string[];
|
|
11
|
-
isAssignAll?: boolean;
|
|
12
|
-
overrideClose?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type RemovePatientsFromRosterCmd = Pick<GetRosterCmd, "rosterId" | "cxId"> & {
|
|
15
|
-
patientIds?: string[];
|
|
16
|
-
isRemoveAll?: boolean;
|
|
17
|
-
overrideClose?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export type AssignPatientsAndCreateRosterCmd = Pick<CreateRosterCmd, "cxId" | "source" | "rosterType" | "data"> & {
|
|
20
|
-
patientIds?: string[];
|
|
21
|
-
isAssignAll?: boolean;
|
|
22
|
-
closeOnCreate?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export type ListRostersForPatientCmd = ListRostersCmd & {
|
|
25
|
-
patientId: string;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=patient-roster.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patient-roster.d.ts","sourceRoot":"","sources":["../../../src/domain/roster/patient-roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEzE,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC;AAE/E,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;IAChF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;IAClF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,IAAI,CACjD,eAAe,EACf,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,CAC1C,GAAG;IACF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,GAAG;IACtD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patient-roster.js","sourceRoot":"","sources":["../../../src/domain/roster/patient-roster.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const rosterStatus: readonly ["open", "closed"];
|
|
2
|
-
export type RosterStatus = (typeof rosterStatus)[number];
|
|
3
|
-
export declare function isValidRosterStatus(status: string): status is RosterStatus;
|
|
4
|
-
export declare const rosterInitialStatus: RosterStatus;
|
|
5
|
-
export declare function isRosterOpen(status: RosterStatus): boolean;
|
|
6
|
-
export declare function isRosterClosed(status: RosterStatus): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Validates that a new status is valid based on the current status.
|
|
9
|
-
*
|
|
10
|
-
* @param currentStatus - The current status of the roster.
|
|
11
|
-
* @param newStatus - The new status to validate.
|
|
12
|
-
* @returns The validated new status.
|
|
13
|
-
* @throws BadRequestError if the new status is not valid.
|
|
14
|
-
*/
|
|
15
|
-
export declare function validateNewRosterStatus(currentStatus: RosterStatus, newStatus: RosterStatus): RosterStatus;
|
|
16
|
-
//# sourceMappingURL=roster-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roster-status.d.ts","sourceRoot":"","sources":["../../../src/domain/roster/roster-status.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,6BAA8B,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,YAAY,CAE1E;AAED,eAAO,MAAM,mBAAmB,EAAE,YAAqB,CAAC;AAExD,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAE1D;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,YAAY,EAC3B,SAAS,EAAE,YAAY,GACtB,YAAY,CAyBd"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateNewRosterStatus = exports.isRosterClosed = exports.isRosterOpen = exports.rosterInitialStatus = exports.isValidRosterStatus = exports.rosterStatus = void 0;
|
|
4
|
-
const bad_request_1 = require("../../error/bad-request");
|
|
5
|
-
exports.rosterStatus = ["open", "closed"];
|
|
6
|
-
function isValidRosterStatus(status) {
|
|
7
|
-
return exports.rosterStatus.includes(status);
|
|
8
|
-
}
|
|
9
|
-
exports.isValidRosterStatus = isValidRosterStatus;
|
|
10
|
-
exports.rosterInitialStatus = "open";
|
|
11
|
-
function isRosterOpen(status) {
|
|
12
|
-
return status === "open";
|
|
13
|
-
}
|
|
14
|
-
exports.isRosterOpen = isRosterOpen;
|
|
15
|
-
function isRosterClosed(status) {
|
|
16
|
-
return status === "closed";
|
|
17
|
-
}
|
|
18
|
-
exports.isRosterClosed = isRosterClosed;
|
|
19
|
-
/**
|
|
20
|
-
* Validates that a new status is valid based on the current status.
|
|
21
|
-
*
|
|
22
|
-
* @param currentStatus - The current status of the roster.
|
|
23
|
-
* @param newStatus - The new status to validate.
|
|
24
|
-
* @returns The validated new status.
|
|
25
|
-
* @throws BadRequestError if the new status is not valid.
|
|
26
|
-
*/
|
|
27
|
-
function validateNewRosterStatus(currentStatus, newStatus) {
|
|
28
|
-
const additionalInfo = {
|
|
29
|
-
currentStatus,
|
|
30
|
-
newStatus,
|
|
31
|
-
};
|
|
32
|
-
switch (newStatus) {
|
|
33
|
-
case "open":
|
|
34
|
-
throw new bad_request_1.BadRequestError(`Open is not a valid status to update to`, undefined, additionalInfo);
|
|
35
|
-
case "closed":
|
|
36
|
-
if (currentStatus !== "open") {
|
|
37
|
-
throw new bad_request_1.BadRequestError(`Roster is not in a valid state to update to closed`, undefined, additionalInfo);
|
|
38
|
-
}
|
|
39
|
-
break;
|
|
40
|
-
default:
|
|
41
|
-
throw new bad_request_1.BadRequestError(`Invalid roster status`, undefined, additionalInfo);
|
|
42
|
-
}
|
|
43
|
-
return newStatus;
|
|
44
|
-
}
|
|
45
|
-
exports.validateNewRosterStatus = validateNewRosterStatus;
|
|
46
|
-
//# sourceMappingURL=roster-status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roster-status.js","sourceRoot":"","sources":["../../../src/domain/roster/roster-status.ts"],"names":[],"mappings":";;;AAAA,yDAA0D;AAE7C,QAAA,YAAY,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAU,CAAC;AAGxD,SAAgB,mBAAmB,CAAC,MAAc;IAChD,OAAO,oBAAY,CAAC,QAAQ,CAAC,MAAsB,CAAC,CAAC;AACvD,CAAC;AAFD,kDAEC;AAEY,QAAA,mBAAmB,GAAiB,MAAM,CAAC;AAExD,SAAgB,YAAY,CAAC,MAAoB;IAC/C,OAAO,MAAM,KAAK,MAAM,CAAC;AAC3B,CAAC;AAFD,oCAEC;AAED,SAAgB,cAAc,CAAC,MAAoB;IACjD,OAAO,MAAM,KAAK,QAAQ,CAAC;AAC7B,CAAC;AAFD,wCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,uBAAuB,CACrC,aAA2B,EAC3B,SAAuB;IAEvB,MAAM,cAAc,GAAG;QACrB,aAAa;QACb,SAAS;KACV,CAAC;IACF,QAAQ,SAAS,EAAE;QACjB,KAAK,MAAM;YACT,MAAM,IAAI,6BAAe,CACvB,yCAAyC,EACzC,SAAS,EACT,cAAc,CACf,CAAC;QACJ,KAAK,QAAQ;YACX,IAAI,aAAa,KAAK,MAAM,EAAE;gBAC5B,MAAM,IAAI,6BAAe,CACvB,oDAAoD,EACpD,SAAS,EACT,cAAc,CACf,CAAC;aACH;YACD,MAAM;QACR;YACE,MAAM,IAAI,6BAAe,CAAC,uBAAuB,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;KACjF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AA5BD,0DA4BC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { RosterStatus } from "./roster-status";
|
|
2
|
-
export type Roster = {
|
|
3
|
-
id: string;
|
|
4
|
-
cxId: string;
|
|
5
|
-
source: string;
|
|
6
|
-
rosterType: string;
|
|
7
|
-
status: RosterStatus;
|
|
8
|
-
statusReason?: string;
|
|
9
|
-
closedAt?: Date;
|
|
10
|
-
data?: unknown;
|
|
11
|
-
};
|
|
12
|
-
export type RosterWithSize = Roster & {
|
|
13
|
-
size: number;
|
|
14
|
-
};
|
|
15
|
-
export type CreateRosterCmd = Pick<Roster, "cxId" | "source" | "rosterType" | "data"> & Partial<Pick<Roster, "status">>;
|
|
16
|
-
export type UpdateRosterCmd = Pick<Roster, "cxId" | "id" | "data">;
|
|
17
|
-
export type GetRosterCmd = Pick<Roster, "cxId"> & {
|
|
18
|
-
rosterId: string;
|
|
19
|
-
};
|
|
20
|
-
export type DeleteRosterCmd = GetRosterCmd;
|
|
21
|
-
export type CloseRosterCmd = GetRosterCmd & {
|
|
22
|
-
reason: string;
|
|
23
|
-
forceStatusUpdate?: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type ListRostersCmd = Pick<Roster, "cxId"> & Partial<Pick<Roster, "source" | "rosterType" | "status">> & {
|
|
26
|
-
sortBy?: {
|
|
27
|
-
column: "createdAt";
|
|
28
|
-
order: "ASC" | "DESC";
|
|
29
|
-
};
|
|
30
|
-
limit?: number;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=roster.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../../src/domain/roster/roster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,CAAC,GACnF,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAElC,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5F,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/C,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,GAAG,YAAY,GAAG,QAAQ,CAAC,CAAC,GAAG;IAC1D,MAAM,CAAC,EAAE;QACP,MAAM,EAAE,WAAW,CAAC;QACpB,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;KACvB,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roster.js","sourceRoot":"","sources":["../../../src/domain/roster/roster.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Bundle } from "@medplum/fhirtypes";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { QuestRosterType } from "./roster";
|
|
4
|
-
export declare const questFhirConversionRequestSchema: z.ZodObject<{
|
|
5
|
-
externalId: z.ZodString;
|
|
6
|
-
sourceDocumentKey: z.ZodString;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
externalId: string;
|
|
9
|
-
sourceDocumentKey: string;
|
|
10
|
-
}, {
|
|
11
|
-
externalId: string;
|
|
12
|
-
sourceDocumentKey: string;
|
|
13
|
-
}>;
|
|
14
|
-
export type QuestFhirConversionRequest = z.infer<typeof questFhirConversionRequestSchema>;
|
|
15
|
-
export interface QuestFhirConversionResponse {
|
|
16
|
-
bundle: Bundle;
|
|
17
|
-
rosterType?: QuestRosterType | undefined;
|
|
18
|
-
cxId: string;
|
|
19
|
-
patientId: string;
|
|
20
|
-
dateId: string;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=fhir.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fhir.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/quest/fhir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,gCAAgC;;;;;;;;;EAG3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.questFhirConversionRequestSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.questFhirConversionRequestSchema = zod_1.z.object({
|
|
6
|
-
externalId: zod_1.z.string(),
|
|
7
|
-
sourceDocumentKey: zod_1.z.string(),
|
|
8
|
-
});
|
|
9
|
-
//# sourceMappingURL=fhir.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fhir.js","sourceRoot":"","sources":["../../../../src/interface/external/quest/fhir.ts"],"names":[],"mappings":";;;AACA,6BAAwB;AAGX,QAAA,gCAAgC,GAAG,OAAC,CAAC,MAAM,CAAC;IACvD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/**
|
|
4
|
-
* A Quest response file may be prefixed with "Sweep_" or ""
|
|
5
|
-
*/
|
|
6
|
-
export type QuestResponseType = "notification" | "sweep" | "backfill";
|
|
7
|
-
export interface QuestResponseFile {
|
|
8
|
-
fileName: string;
|
|
9
|
-
fileContent: Buffer;
|
|
10
|
-
}
|
|
11
|
-
export interface QuestSourceDocument extends QuestResponseFile {
|
|
12
|
-
externalId: string;
|
|
13
|
-
sourceDocumentKey: string;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/interface/external/quest/file.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,OAAO,GAAG,UAAU,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../src/interface/external/quest/file.ts"],"names":[],"mappings":""}
|