phenoml 17.0.1 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +15 -10
- package/dist/cjs/api/resources/fhir2Omop/client/Client.d.ts +123 -0
- package/dist/cjs/api/resources/fhir2Omop/client/Client.js +211 -0
- package/dist/cjs/api/resources/fhir2Omop/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/client/index.js +17 -0
- package/dist/cjs/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.ts +76 -0
- package/dist/cjs/api/resources/fhir2Omop/client/requests/CreateOmopRequest.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhir2Omop/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.js +54 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.js +54 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.js +54 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/index.d.ts +3 -0
- package/dist/cjs/api/resources/fhir2Omop/errors/index.js +19 -0
- package/dist/cjs/api/resources/fhir2Omop/exports.d.ts +2 -0
- package/dist/cjs/api/resources/fhir2Omop/exports.js +21 -0
- package/dist/cjs/api/resources/fhir2Omop/index.d.ts +3 -0
- package/dist/cjs/api/resources/fhir2Omop/index.js +19 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.ts +12 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/CreateOmopResponse.d.ts +17 -0
- package/dist/cjs/api/resources/fhir2Omop/types/CreateOmopResponse.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DroppedResource.d.ts +5 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DroppedResource.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.d.ts +13 -0
- package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/MappingReportEntry.d.ts +32 -0
- package/dist/cjs/api/resources/fhir2Omop/types/MappingReportEntry.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.d.ts +17 -0
- package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.d.ts +16 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.d.ts +13 -0
- package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.d.ts +14 -0
- package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.ts +10 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ScanSummary.d.ts +41 -0
- package/dist/cjs/api/resources/fhir2Omop/types/ScanSummary.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.ts +11 -0
- package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.js +3 -0
- package/dist/cjs/api/resources/fhir2Omop/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/fhir2Omop/types/index.js +28 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/fhir2Omop/client/Client.d.mts +123 -0
- package/dist/esm/api/resources/fhir2Omop/client/Client.mjs +174 -0
- package/dist/esm/api/resources/fhir2Omop/client/index.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/client/index.mjs +1 -0
- package/dist/esm/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.mts +76 -0
- package/dist/esm/api/resources/fhir2Omop/client/requests/CreateOmopRequest.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/fhir2Omop/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.mjs +17 -0
- package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.mjs +17 -0
- package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.mjs +17 -0
- package/dist/esm/api/resources/fhir2Omop/errors/index.d.mts +3 -0
- package/dist/esm/api/resources/fhir2Omop/errors/index.mjs +3 -0
- package/dist/esm/api/resources/fhir2Omop/exports.d.mts +2 -0
- package/dist/esm/api/resources/fhir2Omop/exports.mjs +3 -0
- package/dist/esm/api/resources/fhir2Omop/index.d.mts +3 -0
- package/dist/esm/api/resources/fhir2Omop/index.mjs +3 -0
- package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.mts +12 -0
- package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/CreateOmopResponse.d.mts +17 -0
- package/dist/esm/api/resources/fhir2Omop/types/CreateOmopResponse.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/DroppedResource.d.mts +5 -0
- package/dist/esm/api/resources/fhir2Omop/types/DroppedResource.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.d.mts +13 -0
- package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/MappingReportEntry.d.mts +32 -0
- package/dist/esm/api/resources/fhir2Omop/types/MappingReportEntry.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.d.mts +17 -0
- package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.d.mts +16 -0
- package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/OmopTables.d.mts +13 -0
- package/dist/esm/api/resources/fhir2Omop/types/OmopTables.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/PersonRow.d.mts +14 -0
- package/dist/esm/api/resources/fhir2Omop/types/PersonRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.mts +10 -0
- package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/ScanSummary.d.mts +41 -0
- package/dist/esm/api/resources/fhir2Omop/types/ScanSummary.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.mts +11 -0
- package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.mjs +2 -0
- package/dist/esm/api/resources/fhir2Omop/types/index.d.mts +12 -0
- package/dist/esm/api/resources/fhir2Omop/types/index.mjs +12 -0
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +844 -1
- package/package.json +15 -4
- package/reference.md +159 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.InternalServerError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
39
|
+
class InternalServerError extends errors.phenomlError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "InternalServerError",
|
|
43
|
+
statusCode: 500,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.InternalServerError = InternalServerError;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.UnauthorizedError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
39
|
+
class UnauthorizedError extends errors.phenomlError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "UnauthorizedError",
|
|
43
|
+
statusCode: 401,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BadRequestError.js"), exports);
|
|
18
|
+
__exportStar(require("./InternalServerError.js"), exports);
|
|
19
|
+
__exportStar(require("./UnauthorizedError.js"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Fhir2OmopClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "Fhir2OmopClient", { enumerable: true, get: function () { return Client_js_1.Fhir2OmopClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./errors/index.js"), exports);
|
|
19
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ConditionOccurrenceRow {
|
|
2
|
+
condition_occurrence_id?: number | undefined;
|
|
3
|
+
person_id?: number | undefined;
|
|
4
|
+
condition_concept_id?: number | undefined;
|
|
5
|
+
condition_start_date?: string | undefined;
|
|
6
|
+
condition_start_datetime?: string | undefined;
|
|
7
|
+
condition_end_date?: string | undefined;
|
|
8
|
+
condition_type_concept_id?: number | undefined;
|
|
9
|
+
condition_source_value?: string | undefined;
|
|
10
|
+
condition_source_concept_id?: number | undefined;
|
|
11
|
+
condition_status_source_value?: string | undefined;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as phenoml from "../../../index.js";
|
|
2
|
+
export interface CreateOmopResponse {
|
|
3
|
+
success?: boolean | undefined;
|
|
4
|
+
message?: string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Resolution mode. `resolved` (default) means clinical `concept_id`s were
|
|
7
|
+
* filled by the concept-resolver service; `structural` means no resolver
|
|
8
|
+
* was configured, so all clinical `concept_id`s are `0`. Reflects which
|
|
9
|
+
* resolver is wired, not the path an individual coding took — per-coding
|
|
10
|
+
* degradation is surfaced in `scan_summary`, not the mode.
|
|
11
|
+
*/
|
|
12
|
+
mode?: string | undefined;
|
|
13
|
+
tables?: phenoml.fhir2Omop.OmopTables | undefined;
|
|
14
|
+
/** One Usagi-shaped entry per source coding routed through concept resolution. */
|
|
15
|
+
report?: phenoml.fhir2Omop.MappingReportEntry[] | undefined;
|
|
16
|
+
scan_summary?: phenoml.fhir2Omop.ScanSummary | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DrugExposureRow {
|
|
2
|
+
drug_exposure_id?: number | undefined;
|
|
3
|
+
person_id?: number | undefined;
|
|
4
|
+
drug_concept_id?: number | undefined;
|
|
5
|
+
drug_exposure_start_date?: string | undefined;
|
|
6
|
+
drug_exposure_start_datetime?: string | undefined;
|
|
7
|
+
drug_exposure_end_date?: string | undefined;
|
|
8
|
+
drug_type_concept_id?: number | undefined;
|
|
9
|
+
stop_reason?: string | undefined;
|
|
10
|
+
sig?: string | undefined;
|
|
11
|
+
drug_source_value?: string | undefined;
|
|
12
|
+
drug_source_concept_id?: number | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One source_to_concept_map-style mapping suggestion (Usagi-shaped).
|
|
3
|
+
*/
|
|
4
|
+
export interface MappingReportEntry {
|
|
5
|
+
resource_type?: string | undefined;
|
|
6
|
+
resource_id?: string | undefined;
|
|
7
|
+
omop_table?: string | undefined;
|
|
8
|
+
source_system?: string | undefined;
|
|
9
|
+
source_code?: string | undefined;
|
|
10
|
+
source_name?: string | undefined;
|
|
11
|
+
target_vocabulary?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Standard concept code. Set when a coding is matched by the structural
|
|
14
|
+
* (construe) tier — an already-standard code taken verbatim, or a
|
|
15
|
+
* construe-suggested code — which is every match in structural mode and,
|
|
16
|
+
* in resolved mode, codings for text-only resources or ones that fell back
|
|
17
|
+
* when the resolver was unavailable. Omitted for codings resolved directly
|
|
18
|
+
* by the concept-resolver service, which returns the standard concept's
|
|
19
|
+
* id, name, and vocabulary but not its `concept_code`.
|
|
20
|
+
*/
|
|
21
|
+
target_code?: string | undefined;
|
|
22
|
+
target_name?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* ALREADY_STANDARD (source already in the target standard vocabulary),
|
|
25
|
+
* MAPPED (resolved to a standard concept via the OMOP "Maps to" crosswalk
|
|
26
|
+
* or UMLS-CUI bridge; resolved mode only), UNCHECKED (an unreviewed
|
|
27
|
+
* construe suggestion; structural / fallback only), or UNMAPPED (no
|
|
28
|
+
* candidate found).
|
|
29
|
+
*/
|
|
30
|
+
mapping_status?: string | undefined;
|
|
31
|
+
note?: string | undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface MeasurementRow {
|
|
2
|
+
measurement_id?: number | undefined;
|
|
3
|
+
person_id?: number | undefined;
|
|
4
|
+
measurement_concept_id?: number | undefined;
|
|
5
|
+
measurement_date?: string | undefined;
|
|
6
|
+
measurement_datetime?: string | undefined;
|
|
7
|
+
measurement_type_concept_id?: number | undefined;
|
|
8
|
+
value_as_number?: number | undefined;
|
|
9
|
+
value_as_concept_id?: number | undefined;
|
|
10
|
+
unit_concept_id?: number | undefined;
|
|
11
|
+
range_low?: number | undefined;
|
|
12
|
+
range_high?: number | undefined;
|
|
13
|
+
measurement_source_value?: string | undefined;
|
|
14
|
+
measurement_source_concept_id?: number | undefined;
|
|
15
|
+
unit_source_value?: string | undefined;
|
|
16
|
+
value_source_value?: string | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ObservationRow {
|
|
2
|
+
observation_id?: number | undefined;
|
|
3
|
+
person_id?: number | undefined;
|
|
4
|
+
observation_concept_id?: number | undefined;
|
|
5
|
+
observation_date?: string | undefined;
|
|
6
|
+
observation_datetime?: string | undefined;
|
|
7
|
+
observation_type_concept_id?: number | undefined;
|
|
8
|
+
value_as_number?: number | undefined;
|
|
9
|
+
value_as_string?: string | undefined;
|
|
10
|
+
value_as_concept_id?: number | undefined;
|
|
11
|
+
unit_concept_id?: number | undefined;
|
|
12
|
+
observation_source_value?: string | undefined;
|
|
13
|
+
observation_source_concept_id?: number | undefined;
|
|
14
|
+
unit_source_value?: string | undefined;
|
|
15
|
+
value_source_value?: string | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as phenoml from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* OMOP CDM v5.4 rows grouped by destination table.
|
|
4
|
+
*/
|
|
5
|
+
export interface OmopTables {
|
|
6
|
+
person?: phenoml.fhir2Omop.PersonRow[] | undefined;
|
|
7
|
+
visit_occurrence?: phenoml.fhir2Omop.VisitOccurrenceRow[] | undefined;
|
|
8
|
+
condition_occurrence?: phenoml.fhir2Omop.ConditionOccurrenceRow[] | undefined;
|
|
9
|
+
drug_exposure?: phenoml.fhir2Omop.DrugExposureRow[] | undefined;
|
|
10
|
+
procedure_occurrence?: phenoml.fhir2Omop.ProcedureOccurrenceRow[] | undefined;
|
|
11
|
+
measurement?: phenoml.fhir2Omop.MeasurementRow[] | undefined;
|
|
12
|
+
observation?: phenoml.fhir2Omop.ObservationRow[] | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PersonRow {
|
|
2
|
+
person_id?: number | undefined;
|
|
3
|
+
gender_concept_id?: number | undefined;
|
|
4
|
+
year_of_birth?: number | undefined;
|
|
5
|
+
month_of_birth?: number | undefined;
|
|
6
|
+
day_of_birth?: number | undefined;
|
|
7
|
+
birth_datetime?: string | undefined;
|
|
8
|
+
race_concept_id?: number | undefined;
|
|
9
|
+
ethnicity_concept_id?: number | undefined;
|
|
10
|
+
person_source_value?: string | undefined;
|
|
11
|
+
gender_source_value?: string | undefined;
|
|
12
|
+
race_source_value?: string | undefined;
|
|
13
|
+
ethnicity_source_value?: string | undefined;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ProcedureOccurrenceRow {
|
|
2
|
+
procedure_occurrence_id?: number | undefined;
|
|
3
|
+
person_id?: number | undefined;
|
|
4
|
+
procedure_concept_id?: number | undefined;
|
|
5
|
+
procedure_date?: string | undefined;
|
|
6
|
+
procedure_datetime?: string | undefined;
|
|
7
|
+
procedure_type_concept_id?: number | undefined;
|
|
8
|
+
procedure_source_value?: string | undefined;
|
|
9
|
+
procedure_source_concept_id?: number | undefined;
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type * as phenoml from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* White Rabbit-style aggregate profile of the mapping request.
|
|
4
|
+
*/
|
|
5
|
+
export interface ScanSummary {
|
|
6
|
+
total_resources?: number | undefined;
|
|
7
|
+
resource_counts?: Record<string, number> | undefined;
|
|
8
|
+
tables_populated?: Record<string, number> | undefined;
|
|
9
|
+
coding_systems?: Record<string, number> | undefined;
|
|
10
|
+
codes_already_standard?: number | undefined;
|
|
11
|
+
codes_normalized?: number | undefined;
|
|
12
|
+
codes_unmapped?: number | undefined;
|
|
13
|
+
off_vocab_rate?: number | undefined;
|
|
14
|
+
dropped_resources?: phenoml.fhir2Omop.DroppedResource[] | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* OMOP vocabulary release the resolver mapped against (e.g. "v20240229").
|
|
17
|
+
* Resolved mode only; empty when no coded concept reached the service.
|
|
18
|
+
*/
|
|
19
|
+
resolved_vocab_version?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Set when concept resolution was degraded — the resolver was unavailable
|
|
22
|
+
* for one or more codings, whose `concept_id`s fell back to the structural
|
|
23
|
+
* (construe) tier. Empty when resolution was clean.
|
|
24
|
+
*/
|
|
25
|
+
concept_resolver_note?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Count of `concept_id`s chosen via the lower-confidence UMLS-CUI bridge
|
|
28
|
+
* (no direct OMOP crosswalk existed). Resolved mode only.
|
|
29
|
+
*/
|
|
30
|
+
concepts_bridged?: number | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Count of codings whose candidate list the resolver capped, so the best
|
|
33
|
+
* concept may not have been among those returned.
|
|
34
|
+
*/
|
|
35
|
+
concept_candidates_truncated?: number | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Count of codings resolved via the construe ML extractor — the text-only
|
|
38
|
+
* or availability fallback path. A non-zero value bills the construe tier.
|
|
39
|
+
*/
|
|
40
|
+
construe_resolutions?: number | undefined;
|
|
41
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface VisitOccurrenceRow {
|
|
2
|
+
visit_occurrence_id?: number | undefined;
|
|
3
|
+
person_id?: number | undefined;
|
|
4
|
+
visit_concept_id?: number | undefined;
|
|
5
|
+
visit_start_date?: string | undefined;
|
|
6
|
+
visit_start_datetime?: string | undefined;
|
|
7
|
+
visit_end_date?: string | undefined;
|
|
8
|
+
visit_end_datetime?: string | undefined;
|
|
9
|
+
visit_type_concept_id?: number | undefined;
|
|
10
|
+
visit_source_value?: string | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./ConditionOccurrenceRow.js";
|
|
2
|
+
export * from "./CreateOmopResponse.js";
|
|
3
|
+
export * from "./DroppedResource.js";
|
|
4
|
+
export * from "./DrugExposureRow.js";
|
|
5
|
+
export * from "./MappingReportEntry.js";
|
|
6
|
+
export * from "./MeasurementRow.js";
|
|
7
|
+
export * from "./ObservationRow.js";
|
|
8
|
+
export * from "./OmopTables.js";
|
|
9
|
+
export * from "./PersonRow.js";
|
|
10
|
+
export * from "./ProcedureOccurrenceRow.js";
|
|
11
|
+
export * from "./ScanSummary.js";
|
|
12
|
+
export * from "./VisitOccurrenceRow.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ConditionOccurrenceRow.js"), exports);
|
|
18
|
+
__exportStar(require("./CreateOmopResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./DroppedResource.js"), exports);
|
|
20
|
+
__exportStar(require("./DrugExposureRow.js"), exports);
|
|
21
|
+
__exportStar(require("./MappingReportEntry.js"), exports);
|
|
22
|
+
__exportStar(require("./MeasurementRow.js"), exports);
|
|
23
|
+
__exportStar(require("./ObservationRow.js"), exports);
|
|
24
|
+
__exportStar(require("./OmopTables.js"), exports);
|
|
25
|
+
__exportStar(require("./PersonRow.js"), exports);
|
|
26
|
+
__exportStar(require("./ProcedureOccurrenceRow.js"), exports);
|
|
27
|
+
__exportStar(require("./ScanSummary.js"), exports);
|
|
28
|
+
__exportStar(require("./VisitOccurrenceRow.js"), exports);
|
|
@@ -3,6 +3,7 @@ export * as authtoken from "./authtoken/index.js";
|
|
|
3
3
|
export * as cohort from "./cohort/index.js";
|
|
4
4
|
export * as construe from "./construe/index.js";
|
|
5
5
|
export * as fhir from "./fhir/index.js";
|
|
6
|
+
export * as fhir2Omop from "./fhir2Omop/index.js";
|
|
6
7
|
export * as fhirProvider from "./fhirProvider/index.js";
|
|
7
8
|
export * as lang2Fhir from "./lang2Fhir/index.js";
|
|
8
9
|
export * as summary from "./summary/index.js";
|
|
@@ -33,12 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.workflows = exports.tools = exports.summary = exports.lang2Fhir = exports.fhirProvider = exports.fhir = exports.construe = exports.cohort = exports.authtoken = exports.agent = void 0;
|
|
36
|
+
exports.workflows = exports.tools = exports.summary = exports.lang2Fhir = exports.fhirProvider = exports.fhir2Omop = exports.fhir = exports.construe = exports.cohort = exports.authtoken = exports.agent = void 0;
|
|
37
37
|
exports.agent = __importStar(require("./agent/index.js"));
|
|
38
38
|
exports.authtoken = __importStar(require("./authtoken/index.js"));
|
|
39
39
|
exports.cohort = __importStar(require("./cohort/index.js"));
|
|
40
40
|
exports.construe = __importStar(require("./construe/index.js"));
|
|
41
41
|
exports.fhir = __importStar(require("./fhir/index.js"));
|
|
42
|
+
exports.fhir2Omop = __importStar(require("./fhir2Omop/index.js"));
|
|
42
43
|
exports.fhirProvider = __importStar(require("./fhirProvider/index.js"));
|
|
43
44
|
exports.lang2Fhir = __importStar(require("./lang2Fhir/index.js"));
|
|
44
45
|
exports.summary = __importStar(require("./summary/index.js"));
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "17.0
|
|
1
|
+
export declare const SDK_VERSION = "17.2.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "phenoml",
|
|
9
|
-
"X-Fern-SDK-Version": "17.0
|
|
10
|
-
"User-Agent": "phenoml/17.0
|
|
9
|
+
"X-Fern-SDK-Version": "17.2.0",
|
|
10
|
+
"User-Agent": "phenoml/17.2.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { AuthtokenClient } from "./api/resources/authtoken/client/Client.mjs";
|
|
|
3
3
|
import { CohortClient } from "./api/resources/cohort/client/Client.mjs";
|
|
4
4
|
import { ConstrueClient } from "./api/resources/construe/client/Client.mjs";
|
|
5
5
|
import { FhirClient } from "./api/resources/fhir/client/Client.mjs";
|
|
6
|
+
import { Fhir2OmopClient } from "./api/resources/fhir2Omop/client/Client.mjs";
|
|
6
7
|
import { FhirProviderClient } from "./api/resources/fhirProvider/client/Client.mjs";
|
|
7
8
|
import { Lang2FhirClient } from "./api/resources/lang2Fhir/client/Client.mjs";
|
|
8
9
|
import { SummaryClient } from "./api/resources/summary/client/Client.mjs";
|
|
@@ -23,6 +24,7 @@ export declare class phenomlClient {
|
|
|
23
24
|
protected _cohort: CohortClient | undefined;
|
|
24
25
|
protected _construe: ConstrueClient | undefined;
|
|
25
26
|
protected _fhir: FhirClient | undefined;
|
|
27
|
+
protected _fhir2Omop: Fhir2OmopClient | undefined;
|
|
26
28
|
protected _fhirProvider: FhirProviderClient | undefined;
|
|
27
29
|
protected _lang2Fhir: Lang2FhirClient | undefined;
|
|
28
30
|
protected _summary: SummaryClient | undefined;
|
|
@@ -34,6 +36,7 @@ export declare class phenomlClient {
|
|
|
34
36
|
get cohort(): CohortClient;
|
|
35
37
|
get construe(): ConstrueClient;
|
|
36
38
|
get fhir(): FhirClient;
|
|
39
|
+
get fhir2Omop(): Fhir2OmopClient;
|
|
37
40
|
get fhirProvider(): FhirProviderClient;
|
|
38
41
|
get lang2Fhir(): Lang2FhirClient;
|
|
39
42
|
get summary(): SummaryClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -13,6 +13,7 @@ import { AuthtokenClient } from "./api/resources/authtoken/client/Client.mjs";
|
|
|
13
13
|
import { CohortClient } from "./api/resources/cohort/client/Client.mjs";
|
|
14
14
|
import { ConstrueClient } from "./api/resources/construe/client/Client.mjs";
|
|
15
15
|
import { FhirClient } from "./api/resources/fhir/client/Client.mjs";
|
|
16
|
+
import { Fhir2OmopClient } from "./api/resources/fhir2Omop/client/Client.mjs";
|
|
16
17
|
import { FhirProviderClient } from "./api/resources/fhirProvider/client/Client.mjs";
|
|
17
18
|
import { Lang2FhirClient } from "./api/resources/lang2Fhir/client/Client.mjs";
|
|
18
19
|
import { SummaryClient } from "./api/resources/summary/client/Client.mjs";
|
|
@@ -44,6 +45,10 @@ export class phenomlClient {
|
|
|
44
45
|
var _a;
|
|
45
46
|
return ((_a = this._fhir) !== null && _a !== void 0 ? _a : (this._fhir = new FhirClient(this._options)));
|
|
46
47
|
}
|
|
48
|
+
get fhir2Omop() {
|
|
49
|
+
var _a;
|
|
50
|
+
return ((_a = this._fhir2Omop) !== null && _a !== void 0 ? _a : (this._fhir2Omop = new Fhir2OmopClient(this._options)));
|
|
51
|
+
}
|
|
47
52
|
get fhirProvider() {
|
|
48
53
|
var _a;
|
|
49
54
|
return ((_a = this._fhirProvider) !== null && _a !== void 0 ? _a : (this._fhirProvider = new FhirProviderClient(this._options)));
|