phenoml 13.1.0 → 14.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 +11 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +1 -0
- 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/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 -0
- package/dist/cjs/api/resources/tools/types/index.js +2 -0
- 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 +11 -0
- package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +1 -0
- 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/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 -0
- package/dist/esm/api/resources/tools/types/index.mjs +2 -0
- 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 -124
- 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/esm/api/resources/summary/types/FhirBundle.d.mts +0 -13
- package/dist/esm/api/resources/summary/types/FhirResource.d.mts +0 -6
- /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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface McpServerTool {
|
|
2
|
+
/** ID of the MCP server tool */
|
|
3
|
+
id?: string | undefined;
|
|
4
|
+
/** Name of the MCP server tool */
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
/** Description of the MCP server tool */
|
|
7
|
+
description?: string | undefined;
|
|
8
|
+
/** Input schema of the MCP server tool */
|
|
9
|
+
input_schema?: Record<string, unknown> | undefined;
|
|
10
|
+
/** ID of the MCP server that the tool belongs to */
|
|
11
|
+
mcp_server_id?: string | undefined;
|
|
12
|
+
/** URL of the MCP server */
|
|
13
|
+
mcp_server_url?: string | undefined;
|
|
14
|
+
}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
+
import type * as phenoml from "../../../index.mjs";
|
|
1
2
|
export interface McpServerToolResponse {
|
|
2
|
-
/** Whether the
|
|
3
|
+
/** Whether the operation succeeded */
|
|
3
4
|
success?: boolean | undefined;
|
|
4
5
|
/** Status message */
|
|
5
6
|
message?: string | undefined;
|
|
6
|
-
/** MCP server tool
|
|
7
|
-
data?:
|
|
8
|
-
}
|
|
9
|
-
export declare namespace McpServerToolResponse {
|
|
7
|
+
/** Single MCP server tool (returned by GET /tools/mcp-server/tool/{mcp_server_tool_id}). */
|
|
8
|
+
data?: phenoml.tools.McpServerTool | undefined;
|
|
10
9
|
/**
|
|
11
|
-
* MCP server
|
|
10
|
+
* List of MCP server tools. Returned by
|
|
11
|
+
* /tools/mcp-server/{mcp_server_id}/list.
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
/** ID of the MCP server tool */
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
/** Name of the MCP server tool */
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
/** Description of the MCP server tool */
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
/** Input schema of the MCP server tool */
|
|
21
|
-
input_schema?: Record<string, unknown> | undefined;
|
|
22
|
-
/** ID of the MCP server that the tool belongs to */
|
|
23
|
-
mcp_server_id?: string | undefined;
|
|
24
|
-
/** URL of the MCP server */
|
|
25
|
-
mcp_server_url?: string | undefined;
|
|
26
|
-
}
|
|
13
|
+
mcp_server_tools?: phenoml.tools.McpServerTool[] | undefined;
|
|
27
14
|
}
|
|
@@ -2,7 +2,9 @@ export * from "./CohortResponse.mjs";
|
|
|
2
2
|
export * from "./Lang2FhirAndCreateMultiResponse.mjs";
|
|
3
3
|
export * from "./Lang2FhirAndCreateResponse.mjs";
|
|
4
4
|
export * from "./Lang2FhirAndSearchResponse.mjs";
|
|
5
|
+
export * from "./McpServer.mjs";
|
|
5
6
|
export * from "./McpServerResponse.mjs";
|
|
7
|
+
export * from "./McpServerTool.mjs";
|
|
6
8
|
export * from "./McpServerToolCallResponse.mjs";
|
|
7
9
|
export * from "./McpServerToolResponse.mjs";
|
|
8
10
|
export * from "./SearchConcept.mjs";
|
|
@@ -2,7 +2,9 @@ export * from "./CohortResponse.mjs";
|
|
|
2
2
|
export * from "./Lang2FhirAndCreateMultiResponse.mjs";
|
|
3
3
|
export * from "./Lang2FhirAndCreateResponse.mjs";
|
|
4
4
|
export * from "./Lang2FhirAndSearchResponse.mjs";
|
|
5
|
+
export * from "./McpServer.mjs";
|
|
5
6
|
export * from "./McpServerResponse.mjs";
|
|
7
|
+
export * from "./McpServerTool.mjs";
|
|
6
8
|
export * from "./McpServerToolCallResponse.mjs";
|
|
7
9
|
export * from "./McpServerToolResponse.mjs";
|
|
8
10
|
export * from "./SearchConcept.mjs";
|
|
@@ -42,11 +42,12 @@ export declare class WorkflowsClient {
|
|
|
42
42
|
* await client.workflows.create({
|
|
43
43
|
* verbose: true,
|
|
44
44
|
* name: "Patient Data Mapping Workflow",
|
|
45
|
-
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
45
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create a condition record linked to their encounter",
|
|
46
46
|
* sample_data: {
|
|
47
47
|
* "patient_last_name": "Rippin",
|
|
48
48
|
* "patient_first_name": "Clay",
|
|
49
|
-
* "diagnosis_code": "I10"
|
|
49
|
+
* "diagnosis_code": "I10",
|
|
50
|
+
* "encounter_date": "2024-01-15"
|
|
50
51
|
* },
|
|
51
52
|
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
52
53
|
* })
|
|
@@ -88,12 +89,13 @@ export declare class WorkflowsClient {
|
|
|
88
89
|
* @example
|
|
89
90
|
* await client.workflows.update("id", {
|
|
90
91
|
* verbose: true,
|
|
91
|
-
* name: "
|
|
92
|
-
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
92
|
+
* name: "Patient Data Mapping Workflow (v2)",
|
|
93
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create a condition record linked to their encounter",
|
|
93
94
|
* sample_data: {
|
|
94
|
-
* "patient_last_name": "
|
|
95
|
-
* "patient_first_name": "
|
|
96
|
-
* "diagnosis_code": "
|
|
95
|
+
* "patient_last_name": "Rippin",
|
|
96
|
+
* "patient_first_name": "Clay",
|
|
97
|
+
* "diagnosis_code": "I10",
|
|
98
|
+
* "encounter_date": "2024-01-15"
|
|
97
99
|
* },
|
|
98
100
|
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
99
101
|
* })
|
|
@@ -130,14 +132,24 @@ export declare class WorkflowsClient {
|
|
|
130
132
|
* @throws {@link phenoml.workflows.InternalServerError}
|
|
131
133
|
*
|
|
132
134
|
* @example
|
|
133
|
-
* await client.workflows.execute("
|
|
135
|
+
* await client.workflows.execute("7a8b9c0d-1234-5678-abcd-ef9876543210", {
|
|
134
136
|
* input_data: {
|
|
135
137
|
* "patient_last_name": "Johnson",
|
|
136
138
|
* "patient_first_name": "Mary",
|
|
137
139
|
* "diagnosis_code": "M79.3",
|
|
138
|
-
* "encounter_date": "2024-
|
|
140
|
+
* "encounter_date": "2024-03-20"
|
|
139
141
|
* }
|
|
140
142
|
* })
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await client.workflows.execute("7a8b9c0d-1234-5678-abcd-ef9876543210", {
|
|
146
|
+
* input_data: {
|
|
147
|
+
* "patient_last_name": "Johnson",
|
|
148
|
+
* "patient_first_name": "Mary",
|
|
149
|
+
* "diagnosis_code": "M79.3"
|
|
150
|
+
* },
|
|
151
|
+
* preview: true
|
|
152
|
+
* })
|
|
141
153
|
*/
|
|
142
154
|
execute(id: string, request: phenoml.workflows.ExecuteWorkflowRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.ExecuteWorkflowResponse>;
|
|
143
155
|
private __execute;
|
|
@@ -112,11 +112,12 @@ export class WorkflowsClient {
|
|
|
112
112
|
* await client.workflows.create({
|
|
113
113
|
* verbose: true,
|
|
114
114
|
* name: "Patient Data Mapping Workflow",
|
|
115
|
-
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
115
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create a condition record linked to their encounter",
|
|
116
116
|
* sample_data: {
|
|
117
117
|
* "patient_last_name": "Rippin",
|
|
118
118
|
* "patient_first_name": "Clay",
|
|
119
|
-
* "diagnosis_code": "I10"
|
|
119
|
+
* "diagnosis_code": "I10",
|
|
120
|
+
* "encounter_date": "2024-01-15"
|
|
120
121
|
* },
|
|
121
122
|
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
122
123
|
* })
|
|
@@ -265,12 +266,13 @@ export class WorkflowsClient {
|
|
|
265
266
|
* @example
|
|
266
267
|
* await client.workflows.update("id", {
|
|
267
268
|
* verbose: true,
|
|
268
|
-
* name: "
|
|
269
|
-
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
269
|
+
* name: "Patient Data Mapping Workflow (v2)",
|
|
270
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create a condition record linked to their encounter",
|
|
270
271
|
* sample_data: {
|
|
271
|
-
* "patient_last_name": "
|
|
272
|
-
* "patient_first_name": "
|
|
273
|
-
* "diagnosis_code": "
|
|
272
|
+
* "patient_last_name": "Rippin",
|
|
273
|
+
* "patient_first_name": "Clay",
|
|
274
|
+
* "diagnosis_code": "I10",
|
|
275
|
+
* "encounter_date": "2024-01-15"
|
|
274
276
|
* },
|
|
275
277
|
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
276
278
|
* })
|
|
@@ -408,14 +410,24 @@ export class WorkflowsClient {
|
|
|
408
410
|
* @throws {@link phenoml.workflows.InternalServerError}
|
|
409
411
|
*
|
|
410
412
|
* @example
|
|
411
|
-
* await client.workflows.execute("
|
|
413
|
+
* await client.workflows.execute("7a8b9c0d-1234-5678-abcd-ef9876543210", {
|
|
412
414
|
* input_data: {
|
|
413
415
|
* "patient_last_name": "Johnson",
|
|
414
416
|
* "patient_first_name": "Mary",
|
|
415
417
|
* "diagnosis_code": "M79.3",
|
|
416
|
-
* "encounter_date": "2024-
|
|
418
|
+
* "encounter_date": "2024-03-20"
|
|
417
419
|
* }
|
|
418
420
|
* })
|
|
421
|
+
*
|
|
422
|
+
* @example
|
|
423
|
+
* await client.workflows.execute("7a8b9c0d-1234-5678-abcd-ef9876543210", {
|
|
424
|
+
* input_data: {
|
|
425
|
+
* "patient_last_name": "Johnson",
|
|
426
|
+
* "patient_first_name": "Mary",
|
|
427
|
+
* "diagnosis_code": "M79.3"
|
|
428
|
+
* },
|
|
429
|
+
* preview: true
|
|
430
|
+
* })
|
|
419
431
|
*/
|
|
420
432
|
execute(id, request, requestOptions) {
|
|
421
433
|
return core.HttpResponsePromise.fromPromise(this.__execute(id, request, requestOptions));
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* {
|
|
4
4
|
* verbose: true,
|
|
5
5
|
* name: "Patient Data Mapping Workflow",
|
|
6
|
-
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
6
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create a condition record linked to their encounter",
|
|
7
7
|
* sample_data: {
|
|
8
8
|
* "patient_last_name": "Rippin",
|
|
9
9
|
* "patient_first_name": "Clay",
|
|
10
|
-
* "diagnosis_code": "I10"
|
|
10
|
+
* "diagnosis_code": "I10",
|
|
11
|
+
* "encounter_date": "2024-01-15"
|
|
11
12
|
* },
|
|
12
13
|
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
13
14
|
* }
|
|
@@ -5,9 +5,19 @@
|
|
|
5
5
|
* "patient_last_name": "Johnson",
|
|
6
6
|
* "patient_first_name": "Mary",
|
|
7
7
|
* "diagnosis_code": "M79.3",
|
|
8
|
-
* "encounter_date": "2024-
|
|
8
|
+
* "encounter_date": "2024-03-20"
|
|
9
9
|
* }
|
|
10
10
|
* }
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* {
|
|
14
|
+
* input_data: {
|
|
15
|
+
* "patient_last_name": "Johnson",
|
|
16
|
+
* "patient_first_name": "Mary",
|
|
17
|
+
* "diagnosis_code": "M79.3"
|
|
18
|
+
* },
|
|
19
|
+
* preview: true
|
|
20
|
+
* }
|
|
11
21
|
*/
|
|
12
22
|
export interface ExecuteWorkflowRequest {
|
|
13
23
|
/** Input data for workflow execution */
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* verbose: true,
|
|
5
|
-
* name: "
|
|
6
|
-
* workflow_instructions: "Given diagnosis data, find the patient and create condition record",
|
|
5
|
+
* name: "Patient Data Mapping Workflow (v2)",
|
|
6
|
+
* workflow_instructions: "Given diagnosis data, find the patient and create a condition record linked to their encounter",
|
|
7
7
|
* sample_data: {
|
|
8
|
-
* "patient_last_name": "
|
|
9
|
-
* "patient_first_name": "
|
|
10
|
-
* "diagnosis_code": "
|
|
8
|
+
* "patient_last_name": "Rippin",
|
|
9
|
+
* "patient_first_name": "Clay",
|
|
10
|
+
* "diagnosis_code": "I10",
|
|
11
|
+
* "encounter_date": "2024-01-15"
|
|
11
12
|
* },
|
|
12
13
|
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
13
14
|
* }
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "14.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "14.0.0";
|