@awell-health/awell-extensions 2.1.95 → 2.1.97
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/extensions/index.js +2 -2
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/metriport/actions/consolidated/dataPoints.d.ts +20 -0
- package/dist/extensions/metriport/actions/consolidated/dataPoints.js +24 -0
- package/dist/extensions/metriport/actions/consolidated/dataPoints.js.map +1 -0
- package/dist/extensions/metriport/actions/consolidated/fields.d.ts +43 -0
- package/dist/extensions/metriport/actions/consolidated/fields.js +47 -0
- package/dist/extensions/metriport/actions/consolidated/fields.js.map +1 -0
- package/dist/extensions/metriport/actions/consolidated/getConsolidatedQueryStatus.d.ts +5 -0
- package/dist/extensions/metriport/actions/consolidated/getConsolidatedQueryStatus.js +40 -0
- package/dist/extensions/metriport/actions/consolidated/getConsolidatedQueryStatus.js.map +1 -0
- package/dist/extensions/metriport/actions/consolidated/startConsolidatedQuery.d.ts +5 -0
- package/dist/extensions/metriport/actions/consolidated/startConsolidatedQuery.js +54 -0
- package/dist/extensions/metriport/actions/consolidated/startConsolidatedQuery.js.map +1 -0
- package/dist/extensions/metriport/actions/document/fields.d.ts +15 -0
- package/dist/extensions/metriport/actions/document/fields.js +16 -1
- package/dist/extensions/metriport/actions/document/fields.js.map +1 -1
- package/dist/extensions/metriport/actions/document/query.d.ts +2 -2
- package/dist/extensions/metriport/actions/document/query.js +1 -1
- package/dist/extensions/metriport/actions/document/query.js.map +1 -1
- package/dist/extensions/metriport/actions/document/validation.d.ts +3 -3
- package/dist/extensions/metriport/actions/document/validation.js +1 -3
- package/dist/extensions/metriport/actions/document/validation.js.map +1 -1
- package/dist/extensions/metriport/actions/index.d.ts +102 -0
- package/dist/extensions/metriport/actions/index.js +6 -0
- package/dist/extensions/metriport/actions/index.js.map +1 -1
- package/dist/extensions/metriport/actions/network/dataPoints.d.ts +10 -0
- package/dist/extensions/metriport/actions/network/dataPoints.js +14 -0
- package/dist/extensions/metriport/actions/network/dataPoints.js.map +1 -0
- package/dist/extensions/metriport/actions/network/fields.d.ts +10 -0
- package/dist/extensions/metriport/actions/network/fields.js +14 -0
- package/dist/extensions/metriport/actions/network/fields.js.map +1 -0
- package/dist/extensions/metriport/actions/network/startNetworkQuery.d.ts +5 -0
- package/dist/extensions/metriport/actions/network/startNetworkQuery.js +43 -0
- package/dist/extensions/metriport/actions/network/startNetworkQuery.js.map +1 -0
- package/dist/extensions/metriport/actions/patient/create.d.ts +1 -2
- package/dist/extensions/metriport/actions/patient/create.js +10 -15
- package/dist/extensions/metriport/actions/patient/create.js.map +1 -1
- package/dist/extensions/metriport/actions/patient/get.js +16 -20
- package/dist/extensions/metriport/actions/patient/get.js.map +1 -1
- package/dist/extensions/metriport/actions/patient/validation.d.ts +150 -10
- package/dist/extensions/metriport/actions/patient/validation.js +11 -9
- package/dist/extensions/metriport/actions/patient/validation.js.map +1 -1
- package/dist/extensions/metriport/client.d.ts +2 -1
- package/dist/extensions/metriport/client.js +11 -6
- package/dist/extensions/metriport/client.js.map +1 -1
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/formDefinitionResponse.d.ts +30 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/formDefinitionResponse.js +38 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/formDefinitionResponse.js.map +1 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/formResponseResponse.d.ts +20 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/formResponseResponse.js +28 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/formResponseResponse.js.map +1 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/index.d.ts +3 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/index.js +20 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/index.js.map +1 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/pathwayActivitiesResponse.d.ts +13 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/pathwayActivitiesResponse.js +64 -0
- package/dist/src/lib/awell/getFormsInTrack/__testdata__/pathwayActivitiesResponse.js.map +1 -0
- package/package.json +2 -1
package/dist/extensions/index.js
CHANGED
|
@@ -74,7 +74,7 @@ const mailgun_1 = require("./mailgun");
|
|
|
74
74
|
const math_1 = require("./math");
|
|
75
75
|
const medplum_1 = require("./medplum");
|
|
76
76
|
const messagebird_1 = require("./messagebird");
|
|
77
|
-
|
|
77
|
+
const metriport_1 = require("./metriport");
|
|
78
78
|
const nexuzhealth_1 = require("./nexuzhealth");
|
|
79
79
|
const rest_1 = require("./rest");
|
|
80
80
|
const sendbird_1 = require("./sendbird");
|
|
@@ -138,7 +138,7 @@ exports.extensions = [
|
|
|
138
138
|
math_1.MathExtension,
|
|
139
139
|
messagebird_1.MessageBird,
|
|
140
140
|
medplum_1.Medplum,
|
|
141
|
-
|
|
141
|
+
metriport_1.Metriport,
|
|
142
142
|
nexuzhealth_1.nexuzhealth,
|
|
143
143
|
rest_1.rest,
|
|
144
144
|
sendbird_1.Sendbird,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,yCAAqC;AACrC,qCAAiC;AACjC,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,+CAA2C;AAC3C,6CAAyC;AACzC,qCAAiC;AACjC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,6CAAyC;AACzC,2CAAuC;AACvC,yCAAqC;AACrC,+CAA0C;AAC1C,uCAAmC;AACnC,iEAA6D;AAC7D,uCAAmC;AACnC,yCAAqC;AACrC,2CAAuC;AACvC,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,uCAAmC;AACnC,+CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,yCAAqC;AACrC,qCAAiC;AACjC,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,+CAA2C;AAC3C,6CAAyC;AACzC,qCAAiC;AACjC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,6CAAyC;AACzC,2CAAuC;AACvC,yCAAqC;AACrC,+CAA0C;AAC1C,uCAAmC;AACnC,iEAA6D;AAC7D,uCAAmC;AACnC,yCAAqC;AACrC,2CAAuC;AACvC,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,uCAAmC;AACnC,+CAA2C;AAC3C,2CAAuC;AACvC,+CAA2C;AAC3C,iCAA6B;AAC7B,yCAAqC;AACrC,6DAA+C;AAC/C,iCAA6B;AAC7B,qCAAiC;AACjC,mCAA+B;AAC/B,mCAA+B;AAC/B,qCAAiC;AACjC,yCAAqC;AACrC,yCAAqC;AACrC,+CAAyC;AACzC,2CAAuC;AACvC,qCAAiC;AACjC,uCAAmC;AACnC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,mCAA+B;AAE/B,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,aAAK;IACL,aAAK;IACL,2BAAY;IACZ,mBAAQ;IACR,eAAM;IACN,aAAK;IACL,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,6BAAa;IACb,eAAM;IACN,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,uBAAU;IACV,yBAAW;IACX,uBAAU;IACV,mBAAQ;IACR,eAAM;IACN,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,2BAAY;IACZ,gCAAc;IACd,mBAAQ;IACR,qBAAS;IACT,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,wBAAU;IACV,iBAAO;IACP,2CAAoB;IACpB,iBAAO;IACP,mBAAQ;IACR,qBAAS;IACT,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,iBAAO;IACP,qBAAS;IACT,yBAAW;IACX,WAAI;IACJ,mBAAQ;IACR,6BAAQ;IACR,WAAI;IACJ,eAAM;IACN,aAAK;IACL,aAAK;IACL,eAAM;IACN,mBAAQ;IACR,mBAAQ;IACR,uBAAS;IACT,qBAAS;IACT,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,aAAK;CACN,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const consolidatedQueryDataPoints: {
|
|
2
|
+
status: {
|
|
3
|
+
key: string;
|
|
4
|
+
valueType: "string";
|
|
5
|
+
};
|
|
6
|
+
requestId: {
|
|
7
|
+
key: string;
|
|
8
|
+
valueType: "string";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const consolidatedQueryStatusDataPoints: {
|
|
12
|
+
status: {
|
|
13
|
+
key: string;
|
|
14
|
+
valueType: "string";
|
|
15
|
+
};
|
|
16
|
+
queries: {
|
|
17
|
+
key: string;
|
|
18
|
+
valueType: "json";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.consolidatedQueryStatusDataPoints = exports.consolidatedQueryDataPoints = void 0;
|
|
4
|
+
exports.consolidatedQueryDataPoints = {
|
|
5
|
+
status: {
|
|
6
|
+
key: 'status',
|
|
7
|
+
valueType: 'string',
|
|
8
|
+
},
|
|
9
|
+
requestId: {
|
|
10
|
+
key: 'requestId',
|
|
11
|
+
valueType: 'string',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
exports.consolidatedQueryStatusDataPoints = {
|
|
15
|
+
status: {
|
|
16
|
+
key: 'status',
|
|
17
|
+
valueType: 'string',
|
|
18
|
+
},
|
|
19
|
+
queries: {
|
|
20
|
+
key: 'queries',
|
|
21
|
+
valueType: 'json',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=dataPoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/consolidated/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,2BAA2B,GAAG;IACzC,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,iCAAiC,GAAG;IAC/C,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FieldType } from '@awell-health/extensions-core';
|
|
2
|
+
export declare const startConsolidatedQueryFields: {
|
|
3
|
+
patientId: {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description: string;
|
|
7
|
+
type: FieldType.STRING;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
resources: {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
description: string;
|
|
14
|
+
type: FieldType.STRING;
|
|
15
|
+
};
|
|
16
|
+
dateFrom: {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
description: string;
|
|
20
|
+
type: FieldType.STRING;
|
|
21
|
+
};
|
|
22
|
+
dateTo: {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
description: string;
|
|
26
|
+
type: FieldType.STRING;
|
|
27
|
+
};
|
|
28
|
+
conversionType: {
|
|
29
|
+
id: string;
|
|
30
|
+
label: string;
|
|
31
|
+
description: string;
|
|
32
|
+
type: FieldType.STRING;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const getConsolidatedQueryStatusFields: {
|
|
36
|
+
patientId: {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
description: string;
|
|
40
|
+
type: FieldType.STRING;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConsolidatedQueryStatusFields = exports.startConsolidatedQueryFields = void 0;
|
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
5
|
+
exports.startConsolidatedQueryFields = {
|
|
6
|
+
patientId: {
|
|
7
|
+
id: 'patientId',
|
|
8
|
+
label: 'Patient ID',
|
|
9
|
+
description: 'The ID of the Patient whose consolidated data to query',
|
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
resources: {
|
|
14
|
+
id: 'resources',
|
|
15
|
+
label: 'Resource Types',
|
|
16
|
+
description: 'Optional comma-separated list of FHIR resource types to filter by (e.g. "Condition,Observation,MedicationRequest"). If empty, all resource types are returned.',
|
|
17
|
+
type: extensions_core_1.FieldType.STRING,
|
|
18
|
+
},
|
|
19
|
+
dateFrom: {
|
|
20
|
+
id: 'dateFrom',
|
|
21
|
+
label: 'Date From',
|
|
22
|
+
description: 'Optional start date to filter resources by (inclusive), formatted YYYY-MM-DD',
|
|
23
|
+
type: extensions_core_1.FieldType.STRING,
|
|
24
|
+
},
|
|
25
|
+
dateTo: {
|
|
26
|
+
id: 'dateTo',
|
|
27
|
+
label: 'Date To',
|
|
28
|
+
description: 'Optional end date to filter resources by (inclusive), formatted YYYY-MM-DD',
|
|
29
|
+
type: extensions_core_1.FieldType.STRING,
|
|
30
|
+
},
|
|
31
|
+
conversionType: {
|
|
32
|
+
id: 'conversionType',
|
|
33
|
+
label: 'Conversion Type',
|
|
34
|
+
description: 'How to render the medical record: "json" (default), "pdf", or "html"',
|
|
35
|
+
type: extensions_core_1.FieldType.STRING,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
exports.getConsolidatedQueryStatusFields = {
|
|
39
|
+
patientId: {
|
|
40
|
+
id: 'patientId',
|
|
41
|
+
label: 'Patient ID',
|
|
42
|
+
description: 'The ID of the Patient whose consolidated data query status to check',
|
|
43
|
+
type: extensions_core_1.FieldType.STRING,
|
|
44
|
+
required: true,
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/consolidated/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,4BAA4B,GAAG;IAC1C,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,wDAAwD;QACrE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,gBAAgB;QACvB,WAAW,EACT,gKAAgK;QAClK,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EACT,8EAA8E;QAChF,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,SAAS;QAChB,WAAW,EACT,4EAA4E;QAC9E,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;IACD,cAAc,EAAE;QACd,EAAE,EAAE,gBAAgB;QACpB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EACT,sEAAsE;QACxE,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEpB,QAAA,gCAAgC,GAAG;IAC9C,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,qEAAqE;QACvE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Action } from '@awell-health/extensions-core';
|
|
2
|
+
import { type settings } from '../../settings';
|
|
3
|
+
import { getConsolidatedQueryStatusFields } from './fields';
|
|
4
|
+
import { consolidatedQueryStatusDataPoints as dataPoints } from './dataPoints';
|
|
5
|
+
export declare const getConsolidatedQueryStatus: Action<typeof getConsolidatedQueryStatusFields, typeof settings, keyof typeof dataPoints>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConsolidatedQueryStatus = void 0;
|
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
5
|
+
const client_1 = require("../../client");
|
|
6
|
+
const errorHandler_1 = require("../../shared/errorHandler");
|
|
7
|
+
const fields_1 = require("./fields");
|
|
8
|
+
const dataPoints_1 = require("./dataPoints");
|
|
9
|
+
const zod_1 = require("zod");
|
|
10
|
+
const getConsolidatedQueryStatusSchema = zod_1.z.object({
|
|
11
|
+
patientId: zod_1.z
|
|
12
|
+
.string({ errorMap: () => ({ message: 'Missing patientId' }) })
|
|
13
|
+
.min(1),
|
|
14
|
+
});
|
|
15
|
+
exports.getConsolidatedQueryStatus = {
|
|
16
|
+
key: 'getConsolidatedQueryStatus',
|
|
17
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
|
18
|
+
title: 'Get Consolidated Data Query Status',
|
|
19
|
+
description: "Gets the status of a consolidated data query for a Patient. Use after starting a consolidated query to check if results are ready.",
|
|
20
|
+
fields: fields_1.getConsolidatedQueryStatusFields,
|
|
21
|
+
previewable: true,
|
|
22
|
+
dataPoints: dataPoints_1.consolidatedQueryStatusDataPoints,
|
|
23
|
+
onActivityCreated: async (payload, onComplete, onError) => {
|
|
24
|
+
try {
|
|
25
|
+
const { patientId } = getConsolidatedQueryStatusSchema.parse(payload.fields);
|
|
26
|
+
const api = (0, client_1.createMetriportApi)(payload.settings);
|
|
27
|
+
const resp = await api.getConsolidatedQueryStatus(patientId);
|
|
28
|
+
await onComplete({
|
|
29
|
+
data_points: {
|
|
30
|
+
status: resp.status,
|
|
31
|
+
queries: JSON.stringify(resp.queries),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
catch (err) {
|
|
36
|
+
await (0, errorHandler_1.handleErrorMessage)(err, onError);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=getConsolidatedQueryStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConsolidatedQueryStatus.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/consolidated/getConsolidatedQueryStatus.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AA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ensions-core';
|
|
2
|
+
import { type settings } from '../../settings';
|
|
3
|
+
import { startConsolidatedQueryFields } from './fields';
|
|
4
|
+
import { consolidatedQueryDataPoints as dataPoints } from './dataPoints';
|
|
5
|
+
export declare const startConsolidatedQuery: Action<typeof startConsolidatedQueryFields, typeof settings, keyof typeof dataPoints>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.startConsolidatedQuery = void 0;
|
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
5
|
+
const api_sdk_1 = require("@metriport/api-sdk");
|
|
6
|
+
const client_1 = require("../../client");
|
|
7
|
+
const errorHandler_1 = require("../../shared/errorHandler");
|
|
8
|
+
const fields_1 = require("./fields");
|
|
9
|
+
const dataPoints_1 = require("./dataPoints");
|
|
10
|
+
const zod_1 = require("zod");
|
|
11
|
+
const startConsolidatedQuerySchema = zod_1.z.object({
|
|
12
|
+
patientId: zod_1.z
|
|
13
|
+
.string({ errorMap: () => ({ message: 'Missing patientId' }) })
|
|
14
|
+
.min(1),
|
|
15
|
+
resources: zod_1.z.string().optional(),
|
|
16
|
+
dateFrom: zod_1.z.string().optional(),
|
|
17
|
+
dateTo: zod_1.z.string().optional(),
|
|
18
|
+
conversionType: zod_1.z.string().optional(),
|
|
19
|
+
});
|
|
20
|
+
exports.startConsolidatedQuery = {
|
|
21
|
+
key: 'startConsolidatedQuery',
|
|
22
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
|
23
|
+
title: 'Start Consolidated Data Query',
|
|
24
|
+
description: "Starts an asynchronous query for the Patient's consolidated FHIR data. Results are sent via webhooks.",
|
|
25
|
+
fields: fields_1.startConsolidatedQueryFields,
|
|
26
|
+
previewable: false,
|
|
27
|
+
dataPoints: dataPoints_1.consolidatedQueryDataPoints,
|
|
28
|
+
onActivityCreated: async (payload, onComplete, onError) => {
|
|
29
|
+
var _a;
|
|
30
|
+
try {
|
|
31
|
+
const { patientId, resources, dateFrom, dateTo, conversionType } = startConsolidatedQuerySchema.parse(payload.fields);
|
|
32
|
+
const api = (0, client_1.createMetriportApi)(payload.settings);
|
|
33
|
+
let resourceTypes;
|
|
34
|
+
if (resources !== undefined && resources.length > 0) {
|
|
35
|
+
const validTypes = new Set(api_sdk_1.resourceTypeForConsolidation);
|
|
36
|
+
resourceTypes = resources
|
|
37
|
+
.split(',')
|
|
38
|
+
.map((r) => r.trim())
|
|
39
|
+
.filter((r) => validTypes.has(r));
|
|
40
|
+
}
|
|
41
|
+
const resp = await api.startConsolidatedQuery(patientId, resourceTypes, dateFrom, dateTo, conversionType);
|
|
42
|
+
await onComplete({
|
|
43
|
+
data_points: {
|
|
44
|
+
status: resp.status,
|
|
45
|
+
requestId: (_a = resp.requestId) !== null && _a !== void 0 ? _a : '',
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
await (0, errorHandler_1.handleErrorMessage)(err, onError);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=startConsolidatedQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startConsolidatedQuery.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/consolidated/startConsolidatedQuery.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,gDAG2B;AAE3B,yCAAiD;AACjD,4DAA8D;AAC9D,qCAAuD;AACvD,6CAAwE;AACxE,6BAAuB;AAEvB,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAE,CAAC;SAC9D,GAAG,CAAC,CAAC,CAAC;IACT,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,Q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EACT,aAAa,EACb,QAAQ,EACR,MAAM,EACN,cAAc,CACf,CAAA;YAED,MAAM,UAAU,CAAC;gBACf,WAAW,EAAE;oBACX,MAAM,EAAE,IAAI,CAAC,MAAM;oBACnB,SAAS,EAAE,MAAA,IAAI,CAAC,SAAS,mCAAI,EAAE;iBAChC;aACF,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAA,iCAAkB,EAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QACxC,CAAC;IACH,CAAC;CACF,CAAA"}
|
|
@@ -8,6 +8,21 @@ export declare const listFields: {
|
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
export declare const queryFields: {
|
|
12
|
+
patientId: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
description: string;
|
|
16
|
+
type: FieldType.STRING;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
facilityId: {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
description: string;
|
|
23
|
+
type: FieldType.STRING;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
11
26
|
export declare const getUrlFields: {
|
|
12
27
|
fileName: {
|
|
13
28
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUrlFields = exports.listFields = void 0;
|
|
3
|
+
exports.getUrlFields = exports.queryFields = exports.listFields = void 0;
|
|
4
4
|
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
5
5
|
exports.listFields = {
|
|
6
6
|
patientId: {
|
|
@@ -11,6 +11,21 @@ exports.listFields = {
|
|
|
11
11
|
required: true,
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
|
+
exports.queryFields = {
|
|
15
|
+
patientId: {
|
|
16
|
+
id: 'patientId',
|
|
17
|
+
label: 'Patient ID',
|
|
18
|
+
description: 'The ID of the Patient for which to query Documents across HIEs',
|
|
19
|
+
type: extensions_core_1.FieldType.STRING,
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
facilityId: {
|
|
23
|
+
id: 'facilityId',
|
|
24
|
+
label: 'Facility ID',
|
|
25
|
+
description: 'The facility providing the NPI to support this operation. Optional if the patient has only one facility.',
|
|
26
|
+
type: extensions_core_1.FieldType.STRING,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
14
29
|
exports.getUrlFields = {
|
|
15
30
|
fileName: {
|
|
16
31
|
id: 'fileName',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/document/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,UAAU,GAAG;IACxB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,mEAAmE;QACrE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/document/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,UAAU,GAAG;IACxB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,mEAAmE;QACrE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EACT,gEAAgE;QAClE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EACT,0GAA0G;QAC5G,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEpB,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,WAAW;QAClB,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Action } from '@awell-health/extensions-core';
|
|
2
2
|
import { type settings } from '../../settings';
|
|
3
|
-
import {
|
|
3
|
+
import { queryFields } from './fields';
|
|
4
4
|
import { documentQueryDataPoints as dataPoints } from './dataPoints';
|
|
5
|
-
export declare const queryDocs: Action<typeof
|
|
5
|
+
export declare const queryDocs: Action<typeof queryFields, typeof settings, keyof typeof dataPoints>;
|
|
@@ -12,7 +12,7 @@ exports.queryDocs = {
|
|
|
12
12
|
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
|
13
13
|
title: 'Start Document Query',
|
|
14
14
|
description: 'Triggers a document query for the specified patient across HIEs.',
|
|
15
|
-
fields: fields_1.
|
|
15
|
+
fields: fields_1.queryFields,
|
|
16
16
|
previewable: true,
|
|
17
17
|
dataPoints: dataPoints_1.documentQueryDataPoints,
|
|
18
18
|
onActivityCreated: async (payload, onComplete, onError) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/document/query.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AAExD,yCAAiD;AACjD,4DAA8D;AAC9D,
|
|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E,OAAO,CAAC,CAAA;QACxC,CAAC;IACH,CAAC;CACF,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const startQuerySchema: z.ZodObject<{
|
|
3
3
|
patientId: z.ZodString;
|
|
4
|
-
facilityId: z.ZodString
|
|
4
|
+
facilityId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
6
|
patientId: string;
|
|
7
|
-
facilityId
|
|
7
|
+
facilityId?: string | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
patientId: string;
|
|
10
|
-
facilityId
|
|
10
|
+
facilityId?: string | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const getUrlSchema: z.ZodObject<{
|
|
13
13
|
fileName: z.ZodString;
|
|
@@ -6,9 +6,7 @@ exports.startQuerySchema = zod_1.z.object({
|
|
|
6
6
|
patientId: zod_1.z
|
|
7
7
|
.string({ errorMap: () => ({ message: 'Missing patientId' }) })
|
|
8
8
|
.min(1),
|
|
9
|
-
facilityId: zod_1.z
|
|
10
|
-
.string({ errorMap: () => ({ message: 'Missing facilityId' }) })
|
|
11
|
-
.min(1),
|
|
9
|
+
facilityId: zod_1.z.string().optional(),
|
|
12
10
|
});
|
|
13
11
|
exports.getUrlSchema = zod_1.z.object({
|
|
14
12
|
fileName: zod_1.z.string({ errorMap: () => ({ message: 'Missing fileName' }) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/document/validation.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAE,CAAC;SAC9D,GAAG,CAAC,CAAC,CAAC;IACT,UAAU,EAAE,OAAC
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/document/validation.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,SAAS,EAAE,OAAC;SACT,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,EAAE,CAAC;SAC9D,GAAG,CAAC,CAAC,CAAC;IACT,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEW,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,EAAE,CAAC;CAC1E,CAAC,CAAA"}
|
|
@@ -327,6 +327,12 @@ export declare const actions: {
|
|
|
327
327
|
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
328
328
|
required: true;
|
|
329
329
|
};
|
|
330
|
+
facilityId: {
|
|
331
|
+
id: string;
|
|
332
|
+
label: string;
|
|
333
|
+
description: string;
|
|
334
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
335
|
+
};
|
|
330
336
|
}, {
|
|
331
337
|
apiKey: {
|
|
332
338
|
key: string;
|
|
@@ -367,4 +373,100 @@ export declare const actions: {
|
|
|
367
373
|
required: false;
|
|
368
374
|
};
|
|
369
375
|
}, "url">;
|
|
376
|
+
startNetworkQuery: import("@awell-health/extensions-core").Action<{
|
|
377
|
+
patientId: {
|
|
378
|
+
id: string;
|
|
379
|
+
label: string;
|
|
380
|
+
description: string;
|
|
381
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
382
|
+
required: true;
|
|
383
|
+
};
|
|
384
|
+
}, {
|
|
385
|
+
apiKey: {
|
|
386
|
+
key: string;
|
|
387
|
+
label: string;
|
|
388
|
+
obfuscated: true;
|
|
389
|
+
description: string;
|
|
390
|
+
required: true;
|
|
391
|
+
};
|
|
392
|
+
baseUrl: {
|
|
393
|
+
key: string;
|
|
394
|
+
label: string;
|
|
395
|
+
obfuscated: false;
|
|
396
|
+
description: string;
|
|
397
|
+
required: false;
|
|
398
|
+
};
|
|
399
|
+
}, "status" | "requestId">;
|
|
400
|
+
startConsolidatedQuery: import("@awell-health/extensions-core").Action<{
|
|
401
|
+
patientId: {
|
|
402
|
+
id: string;
|
|
403
|
+
label: string;
|
|
404
|
+
description: string;
|
|
405
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
406
|
+
required: true;
|
|
407
|
+
};
|
|
408
|
+
resources: {
|
|
409
|
+
id: string;
|
|
410
|
+
label: string;
|
|
411
|
+
description: string;
|
|
412
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
413
|
+
};
|
|
414
|
+
dateFrom: {
|
|
415
|
+
id: string;
|
|
416
|
+
label: string;
|
|
417
|
+
description: string;
|
|
418
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
419
|
+
};
|
|
420
|
+
dateTo: {
|
|
421
|
+
id: string;
|
|
422
|
+
label: string;
|
|
423
|
+
description: string;
|
|
424
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
425
|
+
};
|
|
426
|
+
conversionType: {
|
|
427
|
+
id: string;
|
|
428
|
+
label: string;
|
|
429
|
+
description: string;
|
|
430
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
431
|
+
};
|
|
432
|
+
}, {
|
|
433
|
+
apiKey: {
|
|
434
|
+
key: string;
|
|
435
|
+
label: string;
|
|
436
|
+
obfuscated: true;
|
|
437
|
+
description: string;
|
|
438
|
+
required: true;
|
|
439
|
+
};
|
|
440
|
+
baseUrl: {
|
|
441
|
+
key: string;
|
|
442
|
+
label: string;
|
|
443
|
+
obfuscated: false;
|
|
444
|
+
description: string;
|
|
445
|
+
required: false;
|
|
446
|
+
};
|
|
447
|
+
}, "status" | "requestId">;
|
|
448
|
+
getConsolidatedQueryStatus: import("@awell-health/extensions-core").Action<{
|
|
449
|
+
patientId: {
|
|
450
|
+
id: string;
|
|
451
|
+
label: string;
|
|
452
|
+
description: string;
|
|
453
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
|
454
|
+
required: true;
|
|
455
|
+
};
|
|
456
|
+
}, {
|
|
457
|
+
apiKey: {
|
|
458
|
+
key: string;
|
|
459
|
+
label: string;
|
|
460
|
+
obfuscated: true;
|
|
461
|
+
description: string;
|
|
462
|
+
required: true;
|
|
463
|
+
};
|
|
464
|
+
baseUrl: {
|
|
465
|
+
key: string;
|
|
466
|
+
label: string;
|
|
467
|
+
obfuscated: false;
|
|
468
|
+
description: string;
|
|
469
|
+
required: false;
|
|
470
|
+
};
|
|
471
|
+
}, "status" | "queries">;
|
|
370
472
|
};
|
|
@@ -8,6 +8,9 @@ const delete_1 = require("./patient/delete");
|
|
|
8
8
|
const list_1 = require("./document/list");
|
|
9
9
|
const query_1 = require("./document/query");
|
|
10
10
|
const getUrl_1 = require("./document/getUrl");
|
|
11
|
+
const startNetworkQuery_1 = require("./network/startNetworkQuery");
|
|
12
|
+
const startConsolidatedQuery_1 = require("./consolidated/startConsolidatedQuery");
|
|
13
|
+
const getConsolidatedQueryStatus_1 = require("./consolidated/getConsolidatedQueryStatus");
|
|
11
14
|
exports.actions = {
|
|
12
15
|
getPatient: get_1.getPatient,
|
|
13
16
|
createPatient: create_1.createPatient,
|
|
@@ -16,5 +19,8 @@ exports.actions = {
|
|
|
16
19
|
listDocuments: list_1.listDocuments,
|
|
17
20
|
queryDocs: query_1.queryDocs,
|
|
18
21
|
getUrl: getUrl_1.getUrl,
|
|
22
|
+
startNetworkQuery: startNetworkQuery_1.startNetworkQuery,
|
|
23
|
+
startConsolidatedQuery: startConsolidatedQuery_1.startConsolidatedQuery,
|
|
24
|
+
getConsolidatedQueryStatus: getConsolidatedQueryStatus_1.getConsolidatedQueryStatus,
|
|
19
25
|
};
|
|
20
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/metriport/actions/index.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAC1C,6CAAgD;AAChD,6CAAgD;AAChD,6CAAgD;AAChD,0CAA+C;AAC/C,4CAA4C;AAC5C,8CAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/metriport/actions/index.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAC1C,6CAAgD;AAChD,6CAAgD;AAChD,6CAAgD;AAChD,0CAA+C;AAC/C,4CAA4C;AAC5C,8CAA0C;AAC1C,mEAA+D;AAC/D,kFAA8E;AAC9E,0FAAsF;AAEzE,QAAA,OAAO,GAAG;IACrB,UAAU,EAAV,gBAAU;IACV,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,sBAAa;IACb,aAAa,EAAb,oBAAa;IACb,SAAS,EAAT,iBAAS;IACT,MAAM,EAAN,eAAM;IACN,iBAAiB,EAAjB,qCAAiB;IACjB,sBAAsB,EAAtB,+CAAsB;IACtB,0BAA0B,EAA1B,uDAA0B;CAC3B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.networkQueryDataPoints = void 0;
|
|
4
|
+
exports.networkQueryDataPoints = {
|
|
5
|
+
requestId: {
|
|
6
|
+
key: 'requestId',
|
|
7
|
+
valueType: 'string',
|
|
8
|
+
},
|
|
9
|
+
status: {
|
|
10
|
+
key: 'status',
|
|
11
|
+
valueType: 'string',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=dataPoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/network/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAG;IACpC,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.startNetworkQueryFields = void 0;
|
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
|
5
|
+
exports.startNetworkQueryFields = {
|
|
6
|
+
patientId: {
|
|
7
|
+
id: 'patientId',
|
|
8
|
+
label: 'Patient ID',
|
|
9
|
+
description: 'The ID of the Patient for which to query health data',
|
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../extensions/metriport/actions/network/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AAExD,QAAA,uBAAuB,GAAG;IACrC,SAAS,EAAE;QACT,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Action } from '@awell-health/extensions-core';
|
|
2
|
+
import { type settings } from '../../settings';
|
|
3
|
+
import { startNetworkQueryFields } from './fields';
|
|
4
|
+
import { networkQueryDataPoints as dataPoints } from './dataPoints';
|
|
5
|
+
export declare const startNetworkQuery: Action<typeof startNetworkQueryFields, typeof settings, keyof typeof dataPoints>;
|