phenoml 5.2.0 → 6.0.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/Client.js +2 -2
- package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +0 -2
- package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +0 -2
- package/dist/cjs/api/resources/construe/client/Client.d.ts +31 -8
- package/dist/cjs/api/resources/construe/client/Client.js +103 -12
- package/dist/cjs/api/resources/construe/client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.ts +10 -0
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +55 -0
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +12 -0
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +50 -0
- package/dist/cjs/api/resources/construe/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/errors/index.js +1 -0
- package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +2 -0
- package/dist/cjs/api/resources/construe/types/ExportCodeSystemResponse.d.ts +11 -0
- package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +1 -3
- package/dist/cjs/api/resources/construe/types/GetCodeSystemDetailResponse.d.ts +4 -4
- package/dist/cjs/api/resources/construe/types/GetCodeSystemDetailResponse.js +2 -2
- package/dist/cjs/api/resources/construe/types/index.d.ts +1 -3
- package/dist/cjs/api/resources/construe/types/index.js +1 -3
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +0 -3
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +0 -2
- package/dist/cjs/api/resources/summary/types/SummaryTemplate.d.ts +0 -1
- package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +0 -2
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +0 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +0 -2
- package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +0 -2
- package/dist/esm/api/resources/construe/client/Client.d.mts +31 -8
- package/dist/esm/api/resources/construe/client/Client.mjs +103 -12
- package/dist/esm/api/resources/construe/client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.mts +10 -0
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +55 -0
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +9 -0
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +13 -0
- package/dist/esm/api/resources/construe/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/errors/index.mjs +1 -0
- package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +2 -0
- package/dist/esm/api/resources/construe/types/ExportCodeSystemResponse.d.mts +11 -0
- package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +1 -3
- package/dist/esm/api/resources/construe/types/GetCodeSystemDetailResponse.d.mts +4 -4
- package/dist/esm/api/resources/construe/types/GetCodeSystemDetailResponse.mjs +2 -2
- package/dist/esm/api/resources/construe/types/index.d.mts +1 -3
- package/dist/esm/api/resources/construe/types/index.mjs +1 -3
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +0 -3
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +0 -2
- package/dist/esm/api/resources/summary/types/SummaryTemplate.d.mts +0 -1
- package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +0 -2
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +0 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +80 -7
- package/dist/cjs/api/resources/construe/types/UploadRequest.d.ts +0 -10
- package/dist/cjs/api/resources/construe/types/UploadRequestCsv.d.ts +0 -32
- package/dist/cjs/api/resources/construe/types/UploadRequestJson.d.ts +0 -40
- package/dist/cjs/api/resources/construe/types/UploadRequestJson.js +0 -3
- package/dist/esm/api/resources/construe/types/UploadRequest.d.mts +0 -10
- package/dist/esm/api/resources/construe/types/UploadRequestCsv.d.mts +0 -32
- package/dist/esm/api/resources/construe/types/UploadRequestJson.d.mts +0 -40
- package/dist/esm/api/resources/construe/types/UploadRequestJson.mjs +0 -2
- /package/dist/cjs/api/resources/construe/{types/UploadRequest.js → client/requests/GetConstrueCodesSystemsCodesystemExportRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/types/{UploadRequestCsv.js → ExportCodeSystemResponse.js} +0 -0
- /package/dist/esm/api/resources/construe/{types/UploadRequest.mjs → client/requests/GetConstrueCodesSystemsCodesystemExportRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/types/{UploadRequestCsv.mjs → ExportCodeSystemResponse.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -1154,8 +1154,9 @@ await client.cohort.analyze({
|
|
|
1154
1154
|
<dd>
|
|
1155
1155
|
|
|
1156
1156
|
Upload a custom medical code system with codes and descriptions for use in code extraction. Requires a paid plan.
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
Returns 202 immediately; embedding generation runs asynchronously. Poll
|
|
1158
|
+
GET /construe/codes/systems/{codesystem}?version={version} to check when status
|
|
1159
|
+
transitions from "processing" to "ready" or "failed".
|
|
1159
1160
|
</dd>
|
|
1160
1161
|
</dl>
|
|
1161
1162
|
</dd>
|
|
@@ -1171,12 +1172,9 @@ subsequently use the code system for construe/extract and lang2fhir/create (comi
|
|
|
1171
1172
|
|
|
1172
1173
|
```typescript
|
|
1173
1174
|
await client.construe.uploadCodeSystem({
|
|
1174
|
-
format: "csv",
|
|
1175
1175
|
name: "CUSTOM_CODES",
|
|
1176
1176
|
version: "1.0",
|
|
1177
|
-
|
|
1178
|
-
code_col: "code",
|
|
1179
|
-
desc_col: "description"
|
|
1177
|
+
format: "csv"
|
|
1180
1178
|
});
|
|
1181
1179
|
|
|
1182
1180
|
```
|
|
@@ -1193,7 +1191,7 @@ await client.construe.uploadCodeSystem({
|
|
|
1193
1191
|
<dl>
|
|
1194
1192
|
<dd>
|
|
1195
1193
|
|
|
1196
|
-
**request:** `phenoml.UploadRequest`
|
|
1194
|
+
**request:** `phenoml.construe.UploadRequest`
|
|
1197
1195
|
|
|
1198
1196
|
</dd>
|
|
1199
1197
|
</dl>
|
|
@@ -1478,6 +1476,81 @@ await client.construe.deleteCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1478
1476
|
</dl>
|
|
1479
1477
|
|
|
1480
1478
|
|
|
1479
|
+
</dd>
|
|
1480
|
+
</dl>
|
|
1481
|
+
</details>
|
|
1482
|
+
|
|
1483
|
+
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">exportCustomCodeSystem</a>(codesystem, { ...params }) -> phenoml.ExportCodeSystemResponse</code></summary>
|
|
1484
|
+
<dl>
|
|
1485
|
+
<dd>
|
|
1486
|
+
|
|
1487
|
+
#### 📝 Description
|
|
1488
|
+
|
|
1489
|
+
<dl>
|
|
1490
|
+
<dd>
|
|
1491
|
+
|
|
1492
|
+
<dl>
|
|
1493
|
+
<dd>
|
|
1494
|
+
|
|
1495
|
+
Exports a custom (non-builtin) code system as a JSON file compatible with the upload format.
|
|
1496
|
+
The exported file can be re-uploaded directly via POST /construe/upload with format "json".
|
|
1497
|
+
Only available on dedicated instances. Builtin systems cannot be exported.
|
|
1498
|
+
</dd>
|
|
1499
|
+
</dl>
|
|
1500
|
+
</dd>
|
|
1501
|
+
</dl>
|
|
1502
|
+
|
|
1503
|
+
#### 🔌 Usage
|
|
1504
|
+
|
|
1505
|
+
<dl>
|
|
1506
|
+
<dd>
|
|
1507
|
+
|
|
1508
|
+
<dl>
|
|
1509
|
+
<dd>
|
|
1510
|
+
|
|
1511
|
+
```typescript
|
|
1512
|
+
await client.construe.exportCustomCodeSystem("CUSTOM_CODES", {
|
|
1513
|
+
version: "version"
|
|
1514
|
+
});
|
|
1515
|
+
|
|
1516
|
+
```
|
|
1517
|
+
</dd>
|
|
1518
|
+
</dl>
|
|
1519
|
+
</dd>
|
|
1520
|
+
</dl>
|
|
1521
|
+
|
|
1522
|
+
#### ⚙️ Parameters
|
|
1523
|
+
|
|
1524
|
+
<dl>
|
|
1525
|
+
<dd>
|
|
1526
|
+
|
|
1527
|
+
<dl>
|
|
1528
|
+
<dd>
|
|
1529
|
+
|
|
1530
|
+
**codesystem:** `string` — Code system name
|
|
1531
|
+
|
|
1532
|
+
</dd>
|
|
1533
|
+
</dl>
|
|
1534
|
+
|
|
1535
|
+
<dl>
|
|
1536
|
+
<dd>
|
|
1537
|
+
|
|
1538
|
+
**request:** `phenoml.construe.GetConstrueCodesSystemsCodesystemExportRequest`
|
|
1539
|
+
|
|
1540
|
+
</dd>
|
|
1541
|
+
</dl>
|
|
1542
|
+
|
|
1543
|
+
<dl>
|
|
1544
|
+
<dd>
|
|
1545
|
+
|
|
1546
|
+
**requestOptions:** `Construe.RequestOptions`
|
|
1547
|
+
|
|
1548
|
+
</dd>
|
|
1549
|
+
</dl>
|
|
1550
|
+
</dd>
|
|
1551
|
+
</dl>
|
|
1552
|
+
|
|
1553
|
+
|
|
1481
1554
|
</dd>
|
|
1482
1555
|
</dl>
|
|
1483
1556
|
</details>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as phenoml from "../../../index.js";
|
|
2
|
-
export type UploadRequest = phenoml.construe.UploadRequest.Csv | phenoml.construe.UploadRequest.Json;
|
|
3
|
-
export declare namespace UploadRequest {
|
|
4
|
-
interface Csv extends phenoml.construe.UploadRequestCsv {
|
|
5
|
-
format: "csv";
|
|
6
|
-
}
|
|
7
|
-
interface Json extends phenoml.construe.UploadRequestJson {
|
|
8
|
-
format: "json";
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface UploadRequestCsv {
|
|
2
|
-
/**
|
|
3
|
-
* Name of the code system. Names are case-insensitive and stored uppercase.
|
|
4
|
-
* Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
|
|
5
|
-
* reserved and cannot be used for custom uploads; attempts return HTTP 403 Forbidden.
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/** Version of the code system */
|
|
9
|
-
version: string;
|
|
10
|
-
/** Optional revision number */
|
|
11
|
-
revision?: number;
|
|
12
|
-
/** The CSV file contents as a base64-encoded string. */
|
|
13
|
-
file: string;
|
|
14
|
-
/** Column name containing codes */
|
|
15
|
-
code_col: string;
|
|
16
|
-
/** Column name containing descriptions */
|
|
17
|
-
desc_col: string;
|
|
18
|
-
/** Optional column name containing long definitions */
|
|
19
|
-
defn_col?: string;
|
|
20
|
-
/**
|
|
21
|
-
* If true, replaces an existing code system with the same name and version.
|
|
22
|
-
* Builtin systems cannot be replaced; attempts to do so return HTTP 403 Forbidden.
|
|
23
|
-
* When false (default), uploading a duplicate returns 409 Conflict.
|
|
24
|
-
*/
|
|
25
|
-
replace?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* If true, returns 202 Accepted immediately after validation and starts processing
|
|
28
|
-
* in the background. Poll GET /construe/codes/systems/{name}?version={version} to
|
|
29
|
-
* check when status transitions from "processing" to "ready" or "failed".
|
|
30
|
-
*/
|
|
31
|
-
async?: boolean;
|
|
32
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type * as phenoml from "../../../index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Upload codes in JSON format. Either 'file' or 'codes' must be provided.
|
|
4
|
-
* If both are provided, 'codes' takes precedence.
|
|
5
|
-
*/
|
|
6
|
-
export interface UploadRequestJson {
|
|
7
|
-
/**
|
|
8
|
-
* Name of the code system. Names are case-insensitive and stored uppercase.
|
|
9
|
-
* Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
|
|
10
|
-
* reserved and cannot be used for custom uploads; attempts return HTTP 403 Forbidden.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
/** Version of the code system */
|
|
14
|
-
version: string;
|
|
15
|
-
/** Optional revision number */
|
|
16
|
-
revision?: number;
|
|
17
|
-
/**
|
|
18
|
-
* The file contents as a base64-encoded JSON array string.
|
|
19
|
-
* Prefer using 'codes' instead to pass the array directly without base64 encoding.
|
|
20
|
-
*/
|
|
21
|
-
file?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The codes to upload as a JSON array.
|
|
24
|
-
* This is the preferred way to upload JSON codes, as it avoids unnecessary base64 encoding.
|
|
25
|
-
* If both 'codes' and 'file' are provided, 'codes' takes precedence.
|
|
26
|
-
*/
|
|
27
|
-
codes?: phenoml.construe.CodeResponse[];
|
|
28
|
-
/**
|
|
29
|
-
* If true, replaces an existing code system with the same name and version.
|
|
30
|
-
* Builtin systems cannot be replaced; attempts to do so return HTTP 403 Forbidden.
|
|
31
|
-
* When false (default), uploading a duplicate returns 409 Conflict.
|
|
32
|
-
*/
|
|
33
|
-
replace?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If true, returns 202 Accepted immediately after validation and starts processing
|
|
36
|
-
* in the background. Poll GET /construe/codes/systems/{name}?version={version} to
|
|
37
|
-
* check when status transitions from "processing" to "ready" or "failed".
|
|
38
|
-
*/
|
|
39
|
-
async?: boolean;
|
|
40
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type * as phenoml from "../../../index.mjs";
|
|
2
|
-
export type UploadRequest = phenoml.construe.UploadRequest.Csv | phenoml.construe.UploadRequest.Json;
|
|
3
|
-
export declare namespace UploadRequest {
|
|
4
|
-
interface Csv extends phenoml.construe.UploadRequestCsv {
|
|
5
|
-
format: "csv";
|
|
6
|
-
}
|
|
7
|
-
interface Json extends phenoml.construe.UploadRequestJson {
|
|
8
|
-
format: "json";
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export interface UploadRequestCsv {
|
|
2
|
-
/**
|
|
3
|
-
* Name of the code system. Names are case-insensitive and stored uppercase.
|
|
4
|
-
* Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
|
|
5
|
-
* reserved and cannot be used for custom uploads; attempts return HTTP 403 Forbidden.
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/** Version of the code system */
|
|
9
|
-
version: string;
|
|
10
|
-
/** Optional revision number */
|
|
11
|
-
revision?: number;
|
|
12
|
-
/** The CSV file contents as a base64-encoded string. */
|
|
13
|
-
file: string;
|
|
14
|
-
/** Column name containing codes */
|
|
15
|
-
code_col: string;
|
|
16
|
-
/** Column name containing descriptions */
|
|
17
|
-
desc_col: string;
|
|
18
|
-
/** Optional column name containing long definitions */
|
|
19
|
-
defn_col?: string;
|
|
20
|
-
/**
|
|
21
|
-
* If true, replaces an existing code system with the same name and version.
|
|
22
|
-
* Builtin systems cannot be replaced; attempts to do so return HTTP 403 Forbidden.
|
|
23
|
-
* When false (default), uploading a duplicate returns 409 Conflict.
|
|
24
|
-
*/
|
|
25
|
-
replace?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* If true, returns 202 Accepted immediately after validation and starts processing
|
|
28
|
-
* in the background. Poll GET /construe/codes/systems/{name}?version={version} to
|
|
29
|
-
* check when status transitions from "processing" to "ready" or "failed".
|
|
30
|
-
*/
|
|
31
|
-
async?: boolean;
|
|
32
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type * as phenoml from "../../../index.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* Upload codes in JSON format. Either 'file' or 'codes' must be provided.
|
|
4
|
-
* If both are provided, 'codes' takes precedence.
|
|
5
|
-
*/
|
|
6
|
-
export interface UploadRequestJson {
|
|
7
|
-
/**
|
|
8
|
-
* Name of the code system. Names are case-insensitive and stored uppercase.
|
|
9
|
-
* Builtin system names (e.g. ICD-10-CM, SNOMED_CT_US_LITE, LOINC, CPT, etc.) are
|
|
10
|
-
* reserved and cannot be used for custom uploads; attempts return HTTP 403 Forbidden.
|
|
11
|
-
*/
|
|
12
|
-
name: string;
|
|
13
|
-
/** Version of the code system */
|
|
14
|
-
version: string;
|
|
15
|
-
/** Optional revision number */
|
|
16
|
-
revision?: number;
|
|
17
|
-
/**
|
|
18
|
-
* The file contents as a base64-encoded JSON array string.
|
|
19
|
-
* Prefer using 'codes' instead to pass the array directly without base64 encoding.
|
|
20
|
-
*/
|
|
21
|
-
file?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The codes to upload as a JSON array.
|
|
24
|
-
* This is the preferred way to upload JSON codes, as it avoids unnecessary base64 encoding.
|
|
25
|
-
* If both 'codes' and 'file' are provided, 'codes' takes precedence.
|
|
26
|
-
*/
|
|
27
|
-
codes?: phenoml.construe.CodeResponse[];
|
|
28
|
-
/**
|
|
29
|
-
* If true, replaces an existing code system with the same name and version.
|
|
30
|
-
* Builtin systems cannot be replaced; attempts to do so return HTTP 403 Forbidden.
|
|
31
|
-
* When false (default), uploading a duplicate returns 409 Conflict.
|
|
32
|
-
*/
|
|
33
|
-
replace?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* If true, returns 202 Accepted immediately after validation and starts processing
|
|
36
|
-
* in the background. Poll GET /construe/codes/systems/{name}?version={version} to
|
|
37
|
-
* check when status transitions from "processing" to "ready" or "failed".
|
|
38
|
-
*/
|
|
39
|
-
async?: boolean;
|
|
40
|
-
}
|
|
File without changes
|
/package/dist/cjs/api/resources/construe/types/{UploadRequestCsv.js → ExportCodeSystemResponse.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/esm/api/resources/construe/types/{UploadRequestCsv.mjs → ExportCodeSystemResponse.mjs}
RENAMED
|
File without changes
|