phenoml 13.1.0 → 15.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/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agent/client/Client.d.ts +24 -12
- package/dist/cjs/api/resources/agent/client/Client.js +24 -12
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +12 -1
- package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +2 -1
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +13 -25
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +13 -64
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +4 -1
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +7 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +4 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.ts +4 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +95 -11
- package/dist/cjs/api/resources/construe/client/Client.js +95 -11
- package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +60 -1
- package/dist/cjs/api/resources/construe/client/requests/FeedbackRequest.d.ts +14 -7
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +18 -1
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +10 -7
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +10 -7
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +5 -3
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSandboxInfo.d.ts +6 -4
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +10 -5
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +17 -6
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +17 -6
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateMultiRequest.d.ts +2 -1
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +9 -2
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.d.ts +2 -1
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +3 -1
- package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +2 -2
- package/dist/cjs/api/resources/summary/client/Client.d.ts +74 -9
- package/dist/cjs/api/resources/summary/client/Client.js +74 -9
- package/dist/cjs/api/resources/summary/client/requests/CreateSummaryRequest.d.ts +67 -11
- package/dist/cjs/api/resources/summary/client/requests/CreateSummaryTemplateRequest.d.ts +4 -4
- package/dist/cjs/api/resources/summary/client/requests/UpdateSummaryTemplateRequest.d.ts +4 -4
- package/dist/cjs/api/resources/summary/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/summary/types/index.js +0 -2
- package/dist/cjs/api/resources/tools/client/Client.d.ts +7 -3
- package/dist/cjs/api/resources/tools/client/Client.js +7 -3
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateMultiRequest.d.ts +1 -0
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +3 -2
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +3 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +0 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +0 -21
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +0 -68
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.js +0 -15
- package/dist/cjs/api/resources/tools/types/McpServer.d.ts +10 -0
- package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +12 -16
- package/dist/cjs/api/resources/tools/types/McpServerTool.d.ts +14 -0
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +7 -20
- package/dist/cjs/api/resources/tools/types/index.d.ts +2 -1
- package/dist/cjs/api/resources/tools/types/index.js +2 -1
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +21 -9
- package/dist/cjs/api/resources/workflows/client/Client.js +21 -9
- package/dist/cjs/api/resources/workflows/client/requests/CreateWorkflowRequest.d.ts +3 -2
- package/dist/cjs/api/resources/workflows/client/requests/ExecuteWorkflowRequest.d.ts +11 -1
- package/dist/cjs/api/resources/workflows/client/requests/UpdateWorkflowRequest.d.ts +6 -5
- 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/api/resources/agent/client/Client.d.mts +24 -12
- package/dist/esm/api/resources/agent/client/Client.mjs +24 -12
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +12 -1
- package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +2 -1
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +13 -25
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +13 -64
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +4 -1
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +7 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +4 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.mts +4 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +95 -11
- package/dist/esm/api/resources/construe/client/Client.mjs +95 -11
- package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +60 -1
- package/dist/esm/api/resources/construe/client/requests/FeedbackRequest.d.mts +14 -7
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +18 -1
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +10 -7
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +10 -7
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +5 -3
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSandboxInfo.d.mts +6 -4
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +10 -5
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +17 -6
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +17 -6
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateMultiRequest.d.mts +2 -1
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +9 -2
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentMultiRequest.d.mts +2 -1
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +3 -1
- package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +2 -2
- package/dist/esm/api/resources/summary/client/Client.d.mts +74 -9
- package/dist/esm/api/resources/summary/client/Client.mjs +74 -9
- package/dist/esm/api/resources/summary/client/requests/CreateSummaryRequest.d.mts +67 -11
- package/dist/esm/api/resources/summary/client/requests/CreateSummaryTemplateRequest.d.mts +4 -4
- package/dist/esm/api/resources/summary/client/requests/UpdateSummaryTemplateRequest.d.mts +4 -4
- package/dist/esm/api/resources/summary/types/index.d.mts +0 -2
- package/dist/esm/api/resources/summary/types/index.mjs +0 -2
- package/dist/esm/api/resources/tools/client/Client.d.mts +7 -3
- package/dist/esm/api/resources/tools/client/Client.mjs +7 -3
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateMultiRequest.d.mts +1 -0
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +3 -2
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +3 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +0 -21
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +0 -68
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -1
- package/dist/esm/api/resources/tools/types/McpServer.d.mts +10 -0
- package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +12 -16
- package/dist/esm/api/resources/tools/types/McpServerTool.d.mts +14 -0
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +7 -20
- package/dist/esm/api/resources/tools/types/index.d.mts +2 -1
- package/dist/esm/api/resources/tools/types/index.mjs +2 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +21 -9
- package/dist/esm/api/resources/workflows/client/Client.mjs +21 -9
- package/dist/esm/api/resources/workflows/client/requests/CreateWorkflowRequest.d.mts +3 -2
- package/dist/esm/api/resources/workflows/client/requests/ExecuteWorkflowRequest.d.mts +11 -1
- package/dist/esm/api/resources/workflows/client/requests/UpdateWorkflowRequest.d.mts +6 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +140 -199
- package/dist/cjs/api/resources/summary/types/FhirBundle.d.ts +0 -13
- package/dist/cjs/api/resources/summary/types/FhirResource.d.ts +0 -6
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +0 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -10
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +0 -3
- package/dist/esm/api/resources/summary/types/FhirBundle.d.mts +0 -13
- package/dist/esm/api/resources/summary/types/FhirResource.d.mts +0 -6
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -12
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +0 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -10
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +0 -2
- /package/dist/cjs/api/resources/{summary/types/FhirBundle.js → tools/types/McpServer.js} +0 -0
- /package/dist/cjs/api/resources/{summary/types/FhirResource.js → tools/types/McpServerTool.js} +0 -0
- /package/dist/esm/api/resources/{summary/types/FhirBundle.mjs → tools/types/McpServer.mjs} +0 -0
- /package/dist/esm/api/resources/{summary/types/FhirResource.mjs → tools/types/McpServerTool.mjs} +0 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "phenoml",
|
|
46
|
-
"X-Fern-SDK-Version": "
|
|
47
|
-
"User-Agent": "phenoml/
|
|
46
|
+
"X-Fern-SDK-Version": "15.0.0",
|
|
47
|
+
"User-Agent": "phenoml/15.0.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -26,9 +26,11 @@ export declare class AgentClient {
|
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* await client.agent.create({
|
|
29
|
-
* name: "
|
|
30
|
-
*
|
|
31
|
-
*
|
|
29
|
+
* name: "Medical Assistant",
|
|
30
|
+
* description: "An AI assistant for medical information processing",
|
|
31
|
+
* prompts: ["prompt_123"],
|
|
32
|
+
* tags: ["medical", "fhir"],
|
|
33
|
+
* provider: "7002b0b4-8d09-445a-bf65-0fafdaf26c35"
|
|
32
34
|
* })
|
|
33
35
|
*/
|
|
34
36
|
create(request: phenoml.agent.AgentCreateRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
|
|
@@ -81,9 +83,11 @@ export declare class AgentClient {
|
|
|
81
83
|
*
|
|
82
84
|
* @example
|
|
83
85
|
* await client.agent.update("id", {
|
|
84
|
-
* name: "
|
|
85
|
-
*
|
|
86
|
-
*
|
|
86
|
+
* name: "Medical Assistant",
|
|
87
|
+
* description: "Updated description for the medical assistant",
|
|
88
|
+
* prompts: ["prompt_123"],
|
|
89
|
+
* tags: ["medical", "fhir", "updated"],
|
|
90
|
+
* provider: "7002b0b4-8d09-445a-bf65-0fafdaf26c35"
|
|
87
91
|
* })
|
|
88
92
|
*/
|
|
89
93
|
update(id: string, request: phenoml.agent.AgentCreateRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
|
|
@@ -120,15 +124,12 @@ export declare class AgentClient {
|
|
|
120
124
|
* @example
|
|
121
125
|
* await client.agent.patch("id", [{
|
|
122
126
|
* op: "replace",
|
|
123
|
-
* path: "/
|
|
124
|
-
* value: "
|
|
127
|
+
* path: "/description",
|
|
128
|
+
* value: "patched description"
|
|
125
129
|
* }, {
|
|
126
130
|
* op: "add",
|
|
127
131
|
* path: "/tags/-",
|
|
128
|
-
* value: "
|
|
129
|
-
* }, {
|
|
130
|
-
* op: "remove",
|
|
131
|
-
* path: "/description"
|
|
132
|
+
* value: "updated"
|
|
132
133
|
* }])
|
|
133
134
|
*/
|
|
134
135
|
patch(id: string, request: phenoml.agent.JsonPatch, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
|
|
@@ -149,8 +150,19 @@ export declare class AgentClient {
|
|
|
149
150
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
150
151
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
151
152
|
* message: "What is the patient's current condition?",
|
|
153
|
+
* session_id: "session-abc123",
|
|
152
154
|
* agent_id: "agent-123"
|
|
153
155
|
* })
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* await client.agent.chat({
|
|
159
|
+
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
160
|
+
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
161
|
+
* message: "Create a patient record for Jane Doe, 32F, diagnosed with iron deficiency anemia. Prescribe ferrous sulfate 325mg daily.",
|
|
162
|
+
* session_id: "session-def456",
|
|
163
|
+
* agent_id: "agent-123",
|
|
164
|
+
* enhanced_reasoning: true
|
|
165
|
+
* })
|
|
154
166
|
*/
|
|
155
167
|
chat(request: phenoml.agent.AgentChatRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentChatResponse>;
|
|
156
168
|
private __chat;
|
|
@@ -84,9 +84,11 @@ class AgentClient {
|
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
86
|
* await client.agent.create({
|
|
87
|
-
* name: "
|
|
88
|
-
*
|
|
89
|
-
*
|
|
87
|
+
* name: "Medical Assistant",
|
|
88
|
+
* description: "An AI assistant for medical information processing",
|
|
89
|
+
* prompts: ["prompt_123"],
|
|
90
|
+
* tags: ["medical", "fhir"],
|
|
91
|
+
* provider: "7002b0b4-8d09-445a-bf65-0fafdaf26c35"
|
|
90
92
|
* })
|
|
91
93
|
*/
|
|
92
94
|
create(request, requestOptions) {
|
|
@@ -271,9 +273,11 @@ class AgentClient {
|
|
|
271
273
|
*
|
|
272
274
|
* @example
|
|
273
275
|
* await client.agent.update("id", {
|
|
274
|
-
* name: "
|
|
275
|
-
*
|
|
276
|
-
*
|
|
276
|
+
* name: "Medical Assistant",
|
|
277
|
+
* description: "Updated description for the medical assistant",
|
|
278
|
+
* prompts: ["prompt_123"],
|
|
279
|
+
* tags: ["medical", "fhir", "updated"],
|
|
280
|
+
* provider: "7002b0b4-8d09-445a-bf65-0fafdaf26c35"
|
|
277
281
|
* })
|
|
278
282
|
*/
|
|
279
283
|
update(id, request, requestOptions) {
|
|
@@ -397,15 +401,12 @@ class AgentClient {
|
|
|
397
401
|
* @example
|
|
398
402
|
* await client.agent.patch("id", [{
|
|
399
403
|
* op: "replace",
|
|
400
|
-
* path: "/
|
|
401
|
-
* value: "
|
|
404
|
+
* path: "/description",
|
|
405
|
+
* value: "patched description"
|
|
402
406
|
* }, {
|
|
403
407
|
* op: "add",
|
|
404
408
|
* path: "/tags/-",
|
|
405
|
-
* value: "
|
|
406
|
-
* }, {
|
|
407
|
-
* op: "remove",
|
|
408
|
-
* path: "/description"
|
|
409
|
+
* value: "updated"
|
|
409
410
|
* }])
|
|
410
411
|
*/
|
|
411
412
|
patch(id, request, requestOptions) {
|
|
@@ -472,8 +473,19 @@ class AgentClient {
|
|
|
472
473
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
473
474
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
474
475
|
* message: "What is the patient's current condition?",
|
|
476
|
+
* session_id: "session-abc123",
|
|
475
477
|
* agent_id: "agent-123"
|
|
476
478
|
* })
|
|
479
|
+
*
|
|
480
|
+
* @example
|
|
481
|
+
* await client.agent.chat({
|
|
482
|
+
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
483
|
+
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
484
|
+
* message: "Create a patient record for Jane Doe, 32F, diagnosed with iron deficiency anemia. Prescribe ferrous sulfate 325mg daily.",
|
|
485
|
+
* session_id: "session-def456",
|
|
486
|
+
* agent_id: "agent-123",
|
|
487
|
+
* enhanced_reasoning: true
|
|
488
|
+
* })
|
|
477
489
|
*/
|
|
478
490
|
chat(request, requestOptions) {
|
|
479
491
|
return core.HttpResponsePromise.fromPromise(this.__chat(request, requestOptions));
|
|
@@ -4,8 +4,19 @@
|
|
|
4
4
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
5
5
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
6
6
|
* message: "What is the patient's current condition?",
|
|
7
|
+
* session_id: "session-abc123",
|
|
7
8
|
* agent_id: "agent-123"
|
|
8
9
|
* }
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* {
|
|
13
|
+
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
14
|
+
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
15
|
+
* message: "Create a patient record for Jane Doe, 32F, diagnosed with iron deficiency anemia. Prescribe ferrous sulfate 325mg daily.",
|
|
16
|
+
* session_id: "session-def456",
|
|
17
|
+
* agent_id: "agent-123",
|
|
18
|
+
* enhanced_reasoning: true
|
|
19
|
+
* }
|
|
9
20
|
*/
|
|
10
21
|
export interface AgentChatRequest {
|
|
11
22
|
/**
|
|
@@ -26,6 +37,6 @@ export interface AgentChatRequest {
|
|
|
26
37
|
session_id?: string;
|
|
27
38
|
/** The ID of the agent to chat with */
|
|
28
39
|
agent_id: string;
|
|
29
|
-
/** Enable enhanced reasoning capabilities
|
|
40
|
+
/** Enable enhanced reasoning capabilities. Increases latency but improves response quality and reliability. */
|
|
30
41
|
enhanced_reasoning?: boolean;
|
|
31
42
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
5
5
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
6
6
|
* message: "What is the patient's current condition?",
|
|
7
|
+
* session_id: "session-abc123",
|
|
7
8
|
* agent_id: "agent-123"
|
|
8
9
|
* }
|
|
9
10
|
*/
|
|
@@ -26,6 +27,6 @@ export interface AgentStreamChatRequest {
|
|
|
26
27
|
session_id?: string;
|
|
27
28
|
/** The ID of the agent to chat with */
|
|
28
29
|
agent_id: string;
|
|
29
|
-
/** Enable enhanced reasoning capabilities
|
|
30
|
+
/** Enable enhanced reasoning capabilities. Increases latency but improves response quality and reliability. */
|
|
30
31
|
enhanced_reasoning?: boolean;
|
|
31
32
|
}
|
|
@@ -24,7 +24,10 @@ export declare class PromptsClient {
|
|
|
24
24
|
* @example
|
|
25
25
|
* await client.agent.prompts.create({
|
|
26
26
|
* name: "Medical Assistant System Prompt",
|
|
27
|
-
*
|
|
27
|
+
* description: "System prompt for medical assistant agent",
|
|
28
|
+
* content: "You are a helpful medical assistant specialized in FHIR data processing.",
|
|
29
|
+
* is_default: false,
|
|
30
|
+
* tags: ["medical", "system"]
|
|
28
31
|
* })
|
|
29
32
|
*/
|
|
30
33
|
create(request: phenoml.agent.AgentPromptsCreateRequest, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentPromptsResponse>;
|
|
@@ -73,7 +76,13 @@ export declare class PromptsClient {
|
|
|
73
76
|
* @throws {@link phenoml.agent.InternalServerError}
|
|
74
77
|
*
|
|
75
78
|
* @example
|
|
76
|
-
* await client.agent.prompts.update("id"
|
|
79
|
+
* await client.agent.prompts.update("id", {
|
|
80
|
+
* name: "Medical Assistant System Prompt",
|
|
81
|
+
* description: "Updated system prompt",
|
|
82
|
+
* content: "You are a helpful medical assistant. Always cite ICD-10 codes when discussing diagnoses.",
|
|
83
|
+
* is_default: false,
|
|
84
|
+
* tags: ["medical", "system", "updated"]
|
|
85
|
+
* })
|
|
77
86
|
*/
|
|
78
87
|
update(id: string, request?: phenoml.agent.AgentPromptsUpdateRequest, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentPromptsResponse>;
|
|
79
88
|
private __update;
|
|
@@ -109,31 +118,10 @@ export declare class PromptsClient {
|
|
|
109
118
|
* @example
|
|
110
119
|
* await client.agent.prompts.patch("id", [{
|
|
111
120
|
* op: "replace",
|
|
112
|
-
* path: "/
|
|
113
|
-
* value: "Updated
|
|
114
|
-
* }, {
|
|
115
|
-
* op: "add",
|
|
116
|
-
* path: "/tags/-",
|
|
117
|
-
* value: "new-tag"
|
|
118
|
-
* }, {
|
|
119
|
-
* op: "remove",
|
|
120
|
-
* path: "/description"
|
|
121
|
+
* path: "/content",
|
|
122
|
+
* value: "Updated prompt content."
|
|
121
123
|
* }])
|
|
122
124
|
*/
|
|
123
125
|
patch(id: string, request: phenoml.agent.JsonPatch, requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentPromptsResponse>;
|
|
124
126
|
private __patch;
|
|
125
|
-
/**
|
|
126
|
-
* Loads default agent prompts for the authenticated user
|
|
127
|
-
*
|
|
128
|
-
* @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
-
*
|
|
130
|
-
* @throws {@link phenoml.agent.UnauthorizedError}
|
|
131
|
-
* @throws {@link phenoml.agent.ForbiddenError}
|
|
132
|
-
* @throws {@link phenoml.agent.InternalServerError}
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* await client.agent.prompts.loadDefaults()
|
|
136
|
-
*/
|
|
137
|
-
loadDefaults(requestOptions?: PromptsClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.SuccessResponse>;
|
|
138
|
-
private __loadDefaults;
|
|
139
127
|
}
|
|
@@ -69,7 +69,10 @@ class PromptsClient {
|
|
|
69
69
|
* @example
|
|
70
70
|
* await client.agent.prompts.create({
|
|
71
71
|
* name: "Medical Assistant System Prompt",
|
|
72
|
-
*
|
|
72
|
+
* description: "System prompt for medical assistant agent",
|
|
73
|
+
* content: "You are a helpful medical assistant specialized in FHIR data processing.",
|
|
74
|
+
* is_default: false,
|
|
75
|
+
* tags: ["medical", "system"]
|
|
73
76
|
* })
|
|
74
77
|
*/
|
|
75
78
|
create(request, requestOptions) {
|
|
@@ -242,7 +245,13 @@ class PromptsClient {
|
|
|
242
245
|
* @throws {@link phenoml.agent.InternalServerError}
|
|
243
246
|
*
|
|
244
247
|
* @example
|
|
245
|
-
* await client.agent.prompts.update("id"
|
|
248
|
+
* await client.agent.prompts.update("id", {
|
|
249
|
+
* name: "Medical Assistant System Prompt",
|
|
250
|
+
* description: "Updated system prompt",
|
|
251
|
+
* content: "You are a helpful medical assistant. Always cite ICD-10 codes when discussing diagnoses.",
|
|
252
|
+
* is_default: false,
|
|
253
|
+
* tags: ["medical", "system", "updated"]
|
|
254
|
+
* })
|
|
246
255
|
*/
|
|
247
256
|
update(id, request = {}, requestOptions) {
|
|
248
257
|
return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
|
|
@@ -365,15 +374,8 @@ class PromptsClient {
|
|
|
365
374
|
* @example
|
|
366
375
|
* await client.agent.prompts.patch("id", [{
|
|
367
376
|
* op: "replace",
|
|
368
|
-
* path: "/
|
|
369
|
-
* value: "Updated
|
|
370
|
-
* }, {
|
|
371
|
-
* op: "add",
|
|
372
|
-
* path: "/tags/-",
|
|
373
|
-
* value: "new-tag"
|
|
374
|
-
* }, {
|
|
375
|
-
* op: "remove",
|
|
376
|
-
* path: "/description"
|
|
377
|
+
* path: "/content",
|
|
378
|
+
* value: "Updated prompt content."
|
|
377
379
|
* }])
|
|
378
380
|
*/
|
|
379
381
|
patch(id, request, requestOptions) {
|
|
@@ -424,58 +426,5 @@ class PromptsClient {
|
|
|
424
426
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/agent/prompts/{id}");
|
|
425
427
|
});
|
|
426
428
|
}
|
|
427
|
-
/**
|
|
428
|
-
* Loads default agent prompts for the authenticated user
|
|
429
|
-
*
|
|
430
|
-
* @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
431
|
-
*
|
|
432
|
-
* @throws {@link phenoml.agent.UnauthorizedError}
|
|
433
|
-
* @throws {@link phenoml.agent.ForbiddenError}
|
|
434
|
-
* @throws {@link phenoml.agent.InternalServerError}
|
|
435
|
-
*
|
|
436
|
-
* @example
|
|
437
|
-
* await client.agent.prompts.loadDefaults()
|
|
438
|
-
*/
|
|
439
|
-
loadDefaults(requestOptions) {
|
|
440
|
-
return core.HttpResponsePromise.fromPromise(this.__loadDefaults(requestOptions));
|
|
441
|
-
}
|
|
442
|
-
__loadDefaults(requestOptions) {
|
|
443
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
444
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
445
|
-
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
446
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
447
|
-
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
448
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "agent/prompts/load-defaults"),
|
|
449
|
-
method: "POST",
|
|
450
|
-
headers: _headers,
|
|
451
|
-
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
452
|
-
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
453
|
-
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
454
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
455
|
-
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
456
|
-
logging: this._options.logging,
|
|
457
|
-
});
|
|
458
|
-
if (_response.ok) {
|
|
459
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
460
|
-
}
|
|
461
|
-
if (_response.error.reason === "status-code") {
|
|
462
|
-
switch (_response.error.statusCode) {
|
|
463
|
-
case 401:
|
|
464
|
-
throw new phenoml.agent.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
465
|
-
case 403:
|
|
466
|
-
throw new phenoml.agent.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
467
|
-
case 500:
|
|
468
|
-
throw new phenoml.agent.InternalServerError(_response.error.body, _response.rawResponse);
|
|
469
|
-
default:
|
|
470
|
-
throw new errors.phenomlError({
|
|
471
|
-
statusCode: _response.error.statusCode,
|
|
472
|
-
body: _response.error.body,
|
|
473
|
-
rawResponse: _response.rawResponse,
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/agent/prompts/load-defaults");
|
|
478
|
-
});
|
|
479
|
-
}
|
|
480
429
|
}
|
|
481
430
|
exports.PromptsClient = PromptsClient;
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* name: "Medical Assistant System Prompt",
|
|
5
|
-
*
|
|
5
|
+
* description: "System prompt for medical assistant agent",
|
|
6
|
+
* content: "You are a helpful medical assistant specialized in FHIR data processing.",
|
|
7
|
+
* is_default: false,
|
|
8
|
+
* tags: ["medical", "system"]
|
|
6
9
|
* }
|
|
7
10
|
*/
|
|
8
11
|
export interface AgentPromptsCreateRequest {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
|
-
* {
|
|
3
|
+
* {
|
|
4
|
+
* name: "Medical Assistant System Prompt",
|
|
5
|
+
* description: "Updated system prompt",
|
|
6
|
+
* content: "You are a helpful medical assistant. Always cite ICD-10 codes when discussing diagnoses.",
|
|
7
|
+
* is_default: false,
|
|
8
|
+
* tags: ["medical", "system", "updated"]
|
|
9
|
+
* }
|
|
4
10
|
*/
|
|
5
11
|
export interface AgentPromptsUpdateRequest {
|
|
6
12
|
/** Prompt name */
|
|
@@ -24,7 +24,10 @@ export declare class AuthClient {
|
|
|
24
24
|
* @throws {@link phenoml.authtoken.InternalServerError}
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.authtoken.auth.getToken(
|
|
27
|
+
* await client.authtoken.auth.getToken({
|
|
28
|
+
* client_id: "your_client_id",
|
|
29
|
+
* client_secret: "your_client_secret"
|
|
30
|
+
* })
|
|
28
31
|
*/
|
|
29
32
|
getToken(request?: phenoml.authtoken.ClientCredentialsRequest, requestOptions?: AuthClient.RequestOptions): core.HttpResponsePromise<phenoml.authtoken.TokenResponse>;
|
|
30
33
|
private __getToken;
|
|
@@ -69,7 +69,10 @@ class AuthClient {
|
|
|
69
69
|
* @throws {@link phenoml.authtoken.InternalServerError}
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
|
-
* await client.authtoken.auth.getToken(
|
|
72
|
+
* await client.authtoken.auth.getToken({
|
|
73
|
+
* client_id: "your_client_id",
|
|
74
|
+
* client_secret: "your_client_secret"
|
|
75
|
+
* })
|
|
73
76
|
*/
|
|
74
77
|
getToken(request = {}, requestOptions) {
|
|
75
78
|
return core.HttpResponsePromise.fromPromise(this.__getToken(request, requestOptions));
|
|
@@ -30,7 +30,24 @@ export declare class ConstrueClient {
|
|
|
30
30
|
* await client.construe.uploadCodeSystem({
|
|
31
31
|
* name: "CUSTOM_CODES",
|
|
32
32
|
* version: "1.0",
|
|
33
|
-
* format: "
|
|
33
|
+
* format: "json",
|
|
34
|
+
* codes: [{
|
|
35
|
+
* code: "X001",
|
|
36
|
+
* description: "Example custom code 1"
|
|
37
|
+
* }, {
|
|
38
|
+
* code: "X002",
|
|
39
|
+
* description: "Example custom code 2"
|
|
40
|
+
* }]
|
|
41
|
+
* })
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.construe.uploadCodeSystem({
|
|
45
|
+
* name: "CUSTOM_CODES",
|
|
46
|
+
* version: "1.0",
|
|
47
|
+
* format: "csv",
|
|
48
|
+
* file: "Y29kZSxkZXNjcmlwdGlvbgpYMDAxLEV4YW1wbGUgY3VzdG9tIGNvZGUgMQo=",
|
|
49
|
+
* code_col: "code",
|
|
50
|
+
* desc_col: "description"
|
|
34
51
|
* })
|
|
35
52
|
*/
|
|
36
53
|
uploadCodeSystem(request: phenoml.construe.UploadRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ConstrueUploadCodeSystemResponse>;
|
|
@@ -52,7 +69,66 @@ export declare class ConstrueClient {
|
|
|
52
69
|
*
|
|
53
70
|
* @example
|
|
54
71
|
* await client.construe.extractCodes({
|
|
55
|
-
* text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney"
|
|
72
|
+
* text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney.",
|
|
73
|
+
* system: {
|
|
74
|
+
* name: "ICD-10-CM",
|
|
75
|
+
* version: "2025"
|
|
76
|
+
* }
|
|
77
|
+
* })
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* await client.construe.extractCodes({
|
|
81
|
+
* text: "45-year-old male presents with chest pain radiating to left arm, shortness of breath, and diaphoresis. ECG shows ST elevation in leads II, III, and aVF.",
|
|
82
|
+
* system: {
|
|
83
|
+
* name: "SNOMED_CT_US_LITE",
|
|
84
|
+
* version: "20240901"
|
|
85
|
+
* },
|
|
86
|
+
* config: {
|
|
87
|
+
* chunking_method: "sentences",
|
|
88
|
+
* validation_method: "simple",
|
|
89
|
+
* include_rationale: true,
|
|
90
|
+
* include_citations: true
|
|
91
|
+
* }
|
|
92
|
+
* })
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await client.construe.extractCodes({
|
|
96
|
+
* text: "Start Metformin 500mg twice daily for type 2 diabetes. Continue Lisinopril 10mg daily for hypertension. Add Atorvastatin 20mg at bedtime.",
|
|
97
|
+
* system: {
|
|
98
|
+
* name: "RXNORM",
|
|
99
|
+
* version: "11042024"
|
|
100
|
+
* },
|
|
101
|
+
* config: {
|
|
102
|
+
* validation_method: "medication_search",
|
|
103
|
+
* include_rationale: true
|
|
104
|
+
* }
|
|
105
|
+
* })
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* await client.construe.extractCodes({
|
|
109
|
+
* text: "Patient diagnosed with Type 2 diabetes mellitus with diabetic chronic kidney disease, stage 3.",
|
|
110
|
+
* system: {
|
|
111
|
+
* name: "ICD-10-CM",
|
|
112
|
+
* version: "2025"
|
|
113
|
+
* },
|
|
114
|
+
* config: {
|
|
115
|
+
* validation_method: "simple",
|
|
116
|
+
* include_ancestors: true
|
|
117
|
+
* }
|
|
118
|
+
* })
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* await client.construe.extractCodes({
|
|
122
|
+
* text: "5-year-old male with seizures, severe intellectual disability, microcephaly, and hypotonia.",
|
|
123
|
+
* system: {
|
|
124
|
+
* name: "HPO",
|
|
125
|
+
* version: "2025"
|
|
126
|
+
* },
|
|
127
|
+
* config: {
|
|
128
|
+
* chunking_method: "fasthpocr",
|
|
129
|
+
* validation_method: "none",
|
|
130
|
+
* include_rationale: false
|
|
131
|
+
* }
|
|
56
132
|
* })
|
|
57
133
|
*/
|
|
58
134
|
extractCodes(request: phenoml.construe.ExtractRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExtractCodesResult>;
|
|
@@ -163,7 +239,8 @@ export declare class ConstrueClient {
|
|
|
163
239
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
164
240
|
*
|
|
165
241
|
* @param {string} codesystem - Code system name
|
|
166
|
-
* @param {string} codeID - The code identifier
|
|
242
|
+
* @param {string} codeID - The code identifier. ICD-10-CM codes are stored without their
|
|
243
|
+
* cosmetic dot (use "E1165", not "E11.65").
|
|
167
244
|
* @param {phenoml.construe.GetConstrueCodesCodesystemCodeIdRequest} request
|
|
168
245
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
169
246
|
*
|
|
@@ -173,7 +250,7 @@ export declare class ConstrueClient {
|
|
|
173
250
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
174
251
|
*
|
|
175
252
|
* @example
|
|
176
|
-
* await client.construe.getASpecificCode("ICD-10-CM", "
|
|
253
|
+
* await client.construe.getASpecificCode("ICD-10-CM", "E1165", {
|
|
177
254
|
* version: "version"
|
|
178
255
|
* })
|
|
179
256
|
*/
|
|
@@ -234,21 +311,28 @@ export declare class ConstrueClient {
|
|
|
234
311
|
* await client.construe.submitFeedbackOnExtractionResults({
|
|
235
312
|
* text: "Patient has type 2 diabetes with hyperglycemia",
|
|
236
313
|
* received_result: {
|
|
237
|
-
* system: {
|
|
314
|
+
* system: {
|
|
315
|
+
* name: "ICD-10-CM",
|
|
316
|
+
* version: "2025"
|
|
317
|
+
* },
|
|
238
318
|
* codes: [{
|
|
239
|
-
* code: "
|
|
240
|
-
* description: "
|
|
319
|
+
* code: "E11.9",
|
|
320
|
+
* description: "Type 2 diabetes mellitus without complications",
|
|
241
321
|
* valid: true
|
|
242
322
|
* }]
|
|
243
323
|
* },
|
|
244
324
|
* expected_result: {
|
|
245
|
-
* system: {
|
|
325
|
+
* system: {
|
|
326
|
+
* name: "ICD-10-CM",
|
|
327
|
+
* version: "2025"
|
|
328
|
+
* },
|
|
246
329
|
* codes: [{
|
|
247
|
-
* code: "
|
|
248
|
-
* description: "
|
|
330
|
+
* code: "E11.65",
|
|
331
|
+
* description: "Type 2 diabetes mellitus with hyperglycemia",
|
|
249
332
|
* valid: true
|
|
250
333
|
* }]
|
|
251
|
-
* }
|
|
334
|
+
* },
|
|
335
|
+
* detail: "Expected code E11.65 because the text mentions hyperglycemia"
|
|
252
336
|
* })
|
|
253
337
|
*/
|
|
254
338
|
submitFeedbackOnExtractionResults(request: phenoml.construe.FeedbackRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.FeedbackResponse>;
|