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
|
@@ -35,10 +35,10 @@ export declare class SummaryClient {
|
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* await client.summary.createTemplate({
|
|
38
|
-
* name: "
|
|
39
|
-
* example_summary: "Patient John Doe, age 45,
|
|
40
|
-
* target_resources: ["Patient", "Condition", "
|
|
41
|
-
* mode: "
|
|
38
|
+
* name: "Discharge Summary",
|
|
39
|
+
* example_summary: "Patient John Doe, age 45, was admitted on 2024-01-10 with Type 2 Diabetes. Discharged on 2024-01-15 with Metformin 500mg BID.",
|
|
40
|
+
* target_resources: ["Patient", "Condition", "MedicationRequest"],
|
|
41
|
+
* mode: "narrative"
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
44
|
createTemplate(request: phenoml.summary.CreateSummaryTemplateRequest, requestOptions?: SummaryClient.RequestOptions): core.HttpResponsePromise<phenoml.summary.CreateSummaryTemplateResponse>;
|
|
@@ -74,10 +74,10 @@ export declare class SummaryClient {
|
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* await client.summary.updateTemplate("id", {
|
|
77
|
-
* name: "
|
|
78
|
-
* template: "
|
|
79
|
-
* target_resources: ["
|
|
80
|
-
* mode: "
|
|
77
|
+
* name: "Discharge Summary",
|
|
78
|
+
* template: "Patient {{Patient.name[0].text}} was discharged on {{Encounter[0].period.end}} with {{MedicationRequest[0].medicationCodeableConcept.coding[0].display}} {{MedicationRequest[0].dosageInstruction[0].text}}.",
|
|
79
|
+
* target_resources: ["Patient", "Encounter", "MedicationRequest"],
|
|
80
|
+
* mode: "narrative"
|
|
81
81
|
* })
|
|
82
82
|
*/
|
|
83
83
|
updateTemplate(id: string, request: phenoml.summary.UpdateSummaryTemplateRequest, requestOptions?: SummaryClient.RequestOptions): core.HttpResponsePromise<phenoml.summary.SummaryUpdateTemplateResponse>;
|
|
@@ -115,8 +115,73 @@ export declare class SummaryClient {
|
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
117
|
* await client.summary.create({
|
|
118
|
+
* mode: "narrative",
|
|
119
|
+
* template_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
118
120
|
* fhir_resources: {
|
|
119
|
-
* resourceType: "
|
|
121
|
+
* "resourceType": "Bundle",
|
|
122
|
+
* "type": "collection",
|
|
123
|
+
* "entry": [
|
|
124
|
+
* {
|
|
125
|
+
* "resource": {
|
|
126
|
+
* "resourceType": "Patient",
|
|
127
|
+
* "name": [
|
|
128
|
+
* {
|
|
129
|
+
* "given": [
|
|
130
|
+
* "John"
|
|
131
|
+
* ],
|
|
132
|
+
* "family": "Doe"
|
|
133
|
+
* }
|
|
134
|
+
* ],
|
|
135
|
+
* "gender": "male",
|
|
136
|
+
* "birthDate": "1979-03-15"
|
|
137
|
+
* }
|
|
138
|
+
* },
|
|
139
|
+
* {
|
|
140
|
+
* "resource": {
|
|
141
|
+
* "resourceType": "Condition",
|
|
142
|
+
* "code": {
|
|
143
|
+
* "text": "Type 2 Diabetes Mellitus"
|
|
144
|
+
* },
|
|
145
|
+
* "onsetDateTime": "2024-01-15"
|
|
146
|
+
* }
|
|
147
|
+
* }
|
|
148
|
+
* ]
|
|
149
|
+
* }
|
|
150
|
+
* })
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await client.summary.create({
|
|
154
|
+
* mode: "ips",
|
|
155
|
+
* fhir_resources: {
|
|
156
|
+
* "resourceType": "Bundle",
|
|
157
|
+
* "type": "collection",
|
|
158
|
+
* "entry": [
|
|
159
|
+
* {
|
|
160
|
+
* "resource": {
|
|
161
|
+
* "resourceType": "Patient",
|
|
162
|
+
* "id": "maria-garcia-001",
|
|
163
|
+
* "name": [
|
|
164
|
+
* {
|
|
165
|
+
* "given": [
|
|
166
|
+
* "Maria"
|
|
167
|
+
* ],
|
|
168
|
+
* "family": "Garcia"
|
|
169
|
+
* }
|
|
170
|
+
* ],
|
|
171
|
+
* "gender": "female",
|
|
172
|
+
* "birthDate": "1985-07-22"
|
|
173
|
+
* }
|
|
174
|
+
* },
|
|
175
|
+
* {
|
|
176
|
+
* "resource": {
|
|
177
|
+
* "resourceType": "AllergyIntolerance",
|
|
178
|
+
* "code": {
|
|
179
|
+
* "text": "Penicillin"
|
|
180
|
+
* },
|
|
181
|
+
* "criticality": "high"
|
|
182
|
+
* }
|
|
183
|
+
* }
|
|
184
|
+
* ]
|
|
120
185
|
* }
|
|
121
186
|
* })
|
|
122
187
|
*/
|
|
@@ -120,10 +120,10 @@ class SummaryClient {
|
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
122
122
|
* await client.summary.createTemplate({
|
|
123
|
-
* name: "
|
|
124
|
-
* example_summary: "Patient John Doe, age 45,
|
|
125
|
-
* target_resources: ["Patient", "Condition", "
|
|
126
|
-
* mode: "
|
|
123
|
+
* name: "Discharge Summary",
|
|
124
|
+
* example_summary: "Patient John Doe, age 45, was admitted on 2024-01-10 with Type 2 Diabetes. Discharged on 2024-01-15 with Metformin 500mg BID.",
|
|
125
|
+
* target_resources: ["Patient", "Condition", "MedicationRequest"],
|
|
126
|
+
* mode: "narrative"
|
|
127
127
|
* })
|
|
128
128
|
*/
|
|
129
129
|
createTemplate(request, requestOptions) {
|
|
@@ -248,10 +248,10 @@ class SummaryClient {
|
|
|
248
248
|
*
|
|
249
249
|
* @example
|
|
250
250
|
* await client.summary.updateTemplate("id", {
|
|
251
|
-
* name: "
|
|
252
|
-
* template: "
|
|
253
|
-
* target_resources: ["
|
|
254
|
-
* mode: "
|
|
251
|
+
* name: "Discharge Summary",
|
|
252
|
+
* template: "Patient {{Patient.name[0].text}} was discharged on {{Encounter[0].period.end}} with {{MedicationRequest[0].medicationCodeableConcept.coding[0].display}} {{MedicationRequest[0].dosageInstruction[0].text}}.",
|
|
253
|
+
* target_resources: ["Patient", "Encounter", "MedicationRequest"],
|
|
254
|
+
* mode: "narrative"
|
|
255
255
|
* })
|
|
256
256
|
*/
|
|
257
257
|
updateTemplate(id, request, requestOptions) {
|
|
@@ -382,8 +382,73 @@ class SummaryClient {
|
|
|
382
382
|
*
|
|
383
383
|
* @example
|
|
384
384
|
* await client.summary.create({
|
|
385
|
+
* mode: "narrative",
|
|
386
|
+
* template_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
385
387
|
* fhir_resources: {
|
|
386
|
-
* resourceType: "
|
|
388
|
+
* "resourceType": "Bundle",
|
|
389
|
+
* "type": "collection",
|
|
390
|
+
* "entry": [
|
|
391
|
+
* {
|
|
392
|
+
* "resource": {
|
|
393
|
+
* "resourceType": "Patient",
|
|
394
|
+
* "name": [
|
|
395
|
+
* {
|
|
396
|
+
* "given": [
|
|
397
|
+
* "John"
|
|
398
|
+
* ],
|
|
399
|
+
* "family": "Doe"
|
|
400
|
+
* }
|
|
401
|
+
* ],
|
|
402
|
+
* "gender": "male",
|
|
403
|
+
* "birthDate": "1979-03-15"
|
|
404
|
+
* }
|
|
405
|
+
* },
|
|
406
|
+
* {
|
|
407
|
+
* "resource": {
|
|
408
|
+
* "resourceType": "Condition",
|
|
409
|
+
* "code": {
|
|
410
|
+
* "text": "Type 2 Diabetes Mellitus"
|
|
411
|
+
* },
|
|
412
|
+
* "onsetDateTime": "2024-01-15"
|
|
413
|
+
* }
|
|
414
|
+
* }
|
|
415
|
+
* ]
|
|
416
|
+
* }
|
|
417
|
+
* })
|
|
418
|
+
*
|
|
419
|
+
* @example
|
|
420
|
+
* await client.summary.create({
|
|
421
|
+
* mode: "ips",
|
|
422
|
+
* fhir_resources: {
|
|
423
|
+
* "resourceType": "Bundle",
|
|
424
|
+
* "type": "collection",
|
|
425
|
+
* "entry": [
|
|
426
|
+
* {
|
|
427
|
+
* "resource": {
|
|
428
|
+
* "resourceType": "Patient",
|
|
429
|
+
* "id": "maria-garcia-001",
|
|
430
|
+
* "name": [
|
|
431
|
+
* {
|
|
432
|
+
* "given": [
|
|
433
|
+
* "Maria"
|
|
434
|
+
* ],
|
|
435
|
+
* "family": "Garcia"
|
|
436
|
+
* }
|
|
437
|
+
* ],
|
|
438
|
+
* "gender": "female",
|
|
439
|
+
* "birthDate": "1985-07-22"
|
|
440
|
+
* }
|
|
441
|
+
* },
|
|
442
|
+
* {
|
|
443
|
+
* "resource": {
|
|
444
|
+
* "resourceType": "AllergyIntolerance",
|
|
445
|
+
* "code": {
|
|
446
|
+
* "text": "Penicillin"
|
|
447
|
+
* },
|
|
448
|
+
* "criticality": "high"
|
|
449
|
+
* }
|
|
450
|
+
* }
|
|
451
|
+
* ]
|
|
387
452
|
* }
|
|
388
453
|
* })
|
|
389
454
|
*/
|
|
@@ -1,9 +1,73 @@
|
|
|
1
|
-
import type * as phenoml from "../../../../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* @example
|
|
4
3
|
* {
|
|
4
|
+
* mode: "narrative",
|
|
5
|
+
* template_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
5
6
|
* fhir_resources: {
|
|
6
|
-
* resourceType: "
|
|
7
|
+
* "resourceType": "Bundle",
|
|
8
|
+
* "type": "collection",
|
|
9
|
+
* "entry": [
|
|
10
|
+
* {
|
|
11
|
+
* "resource": {
|
|
12
|
+
* "resourceType": "Patient",
|
|
13
|
+
* "name": [
|
|
14
|
+
* {
|
|
15
|
+
* "given": [
|
|
16
|
+
* "John"
|
|
17
|
+
* ],
|
|
18
|
+
* "family": "Doe"
|
|
19
|
+
* }
|
|
20
|
+
* ],
|
|
21
|
+
* "gender": "male",
|
|
22
|
+
* "birthDate": "1979-03-15"
|
|
23
|
+
* }
|
|
24
|
+
* },
|
|
25
|
+
* {
|
|
26
|
+
* "resource": {
|
|
27
|
+
* "resourceType": "Condition",
|
|
28
|
+
* "code": {
|
|
29
|
+
* "text": "Type 2 Diabetes Mellitus"
|
|
30
|
+
* },
|
|
31
|
+
* "onsetDateTime": "2024-01-15"
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* ]
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* {
|
|
40
|
+
* mode: "ips",
|
|
41
|
+
* fhir_resources: {
|
|
42
|
+
* "resourceType": "Bundle",
|
|
43
|
+
* "type": "collection",
|
|
44
|
+
* "entry": [
|
|
45
|
+
* {
|
|
46
|
+
* "resource": {
|
|
47
|
+
* "resourceType": "Patient",
|
|
48
|
+
* "id": "maria-garcia-001",
|
|
49
|
+
* "name": [
|
|
50
|
+
* {
|
|
51
|
+
* "given": [
|
|
52
|
+
* "Maria"
|
|
53
|
+
* ],
|
|
54
|
+
* "family": "Garcia"
|
|
55
|
+
* }
|
|
56
|
+
* ],
|
|
57
|
+
* "gender": "female",
|
|
58
|
+
* "birthDate": "1985-07-22"
|
|
59
|
+
* }
|
|
60
|
+
* },
|
|
61
|
+
* {
|
|
62
|
+
* "resource": {
|
|
63
|
+
* "resourceType": "AllergyIntolerance",
|
|
64
|
+
* "code": {
|
|
65
|
+
* "text": "Penicillin"
|
|
66
|
+
* },
|
|
67
|
+
* "criticality": "high"
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* ]
|
|
7
71
|
* }
|
|
8
72
|
* }
|
|
9
73
|
*/
|
|
@@ -24,7 +88,7 @@ export interface CreateSummaryRequest {
|
|
|
24
88
|
* if multiple Patients are present, or if the Patient has no identifiers. Resources are
|
|
25
89
|
* automatically filtered to only include those referencing the patient.
|
|
26
90
|
*/
|
|
27
|
-
fhir_resources:
|
|
91
|
+
fhir_resources: Record<string, unknown>;
|
|
28
92
|
}
|
|
29
93
|
export declare namespace CreateSummaryRequest {
|
|
30
94
|
/**
|
|
@@ -39,12 +103,4 @@ export declare namespace CreateSummaryRequest {
|
|
|
39
103
|
readonly Ips: "ips";
|
|
40
104
|
};
|
|
41
105
|
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
42
|
-
/**
|
|
43
|
-
* FHIR resources (single resource or Bundle).
|
|
44
|
-
* For IPS mode, must be a Bundle containing exactly one Patient resource with at least one
|
|
45
|
-
* identifier (id, fullUrl, or identifier field). Returns an error if no Patient is found,
|
|
46
|
-
* if multiple Patients are present, or if the Patient has no identifiers. Resources are
|
|
47
|
-
* automatically filtered to only include those referencing the patient.
|
|
48
|
-
*/
|
|
49
|
-
type FhirResources = phenoml.summary.FhirResource | phenoml.summary.FhirBundle;
|
|
50
106
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* name: "
|
|
5
|
-
* example_summary: "Patient John Doe, age 45,
|
|
6
|
-
* target_resources: ["Patient", "Condition", "
|
|
7
|
-
* mode: "
|
|
4
|
+
* name: "Discharge Summary",
|
|
5
|
+
* example_summary: "Patient John Doe, age 45, was admitted on 2024-01-10 with Type 2 Diabetes. Discharged on 2024-01-15 with Metformin 500mg BID.",
|
|
6
|
+
* target_resources: ["Patient", "Condition", "MedicationRequest"],
|
|
7
|
+
* mode: "narrative"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface CreateSummaryTemplateRequest {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* name: "
|
|
5
|
-
* template: "
|
|
6
|
-
* target_resources: ["
|
|
7
|
-
* mode: "
|
|
4
|
+
* name: "Discharge Summary",
|
|
5
|
+
* template: "Patient {{Patient.name[0].text}} was discharged on {{Encounter[0].period.end}} with {{MedicationRequest[0].medicationCodeableConcept.coding[0].display}} {{MedicationRequest[0].dosageInstruction[0].text}}.",
|
|
6
|
+
* target_resources: ["Patient", "Encounter", "MedicationRequest"],
|
|
7
|
+
* mode: "narrative"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface UpdateSummaryTemplateRequest {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from "./CreateSummaryResponse.js";
|
|
2
2
|
export * from "./CreateSummaryTemplateResponse.js";
|
|
3
|
-
export * from "./FhirBundle.js";
|
|
4
|
-
export * from "./FhirResource.js";
|
|
5
3
|
export * from "./SummaryDeleteTemplateResponse.js";
|
|
6
4
|
export * from "./SummaryGetTemplateResponse.js";
|
|
7
5
|
export * from "./SummaryListTemplatesResponse.js";
|
|
@@ -16,8 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateSummaryResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateSummaryTemplateResponse.js"), exports);
|
|
19
|
-
__exportStar(require("./FhirBundle.js"), exports);
|
|
20
|
-
__exportStar(require("./FhirResource.js"), exports);
|
|
21
19
|
__exportStar(require("./SummaryDeleteTemplateResponse.js"), exports);
|
|
22
20
|
__exportStar(require("./SummaryGetTemplateResponse.js"), exports);
|
|
23
21
|
__exportStar(require("./SummaryListTemplatesResponse.js"), exports);
|
|
@@ -29,8 +29,9 @@ export declare class ToolsClient {
|
|
|
29
29
|
* await client.tools.createFhirResource({
|
|
30
30
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
31
31
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
32
|
-
* resource: "
|
|
33
|
-
* text: "Patient
|
|
32
|
+
* resource: "condition-encounter-diagnosis",
|
|
33
|
+
* text: "Patient has severe persistent asthma with acute exacerbation",
|
|
34
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
34
35
|
* })
|
|
35
36
|
*/
|
|
36
37
|
createFhirResource(request: phenoml.tools.Lang2FhirAndCreateRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.Lang2FhirAndCreateResponse>;
|
|
@@ -56,6 +57,7 @@ export declare class ToolsClient {
|
|
|
56
57
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
57
58
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
58
59
|
* text: "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily.",
|
|
60
|
+
* version: "R4",
|
|
59
61
|
* provider: "medplum"
|
|
60
62
|
* })
|
|
61
63
|
*/
|
|
@@ -77,7 +79,9 @@ export declare class ToolsClient {
|
|
|
77
79
|
* await client.tools.searchFhirResources({
|
|
78
80
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
79
81
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
80
|
-
* text: "Find all appointments for patient John Doe next week"
|
|
82
|
+
* text: "Find all appointments for patient John Doe next week",
|
|
83
|
+
* count: 10,
|
|
84
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
81
85
|
* })
|
|
82
86
|
*/
|
|
83
87
|
searchFhirResources(request: phenoml.tools.Lang2FhirAndSearchRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<phenoml.tools.Lang2FhirAndSearchResponse>;
|
|
@@ -87,8 +87,9 @@ class ToolsClient {
|
|
|
87
87
|
* await client.tools.createFhirResource({
|
|
88
88
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
89
89
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
90
|
-
* resource: "
|
|
91
|
-
* text: "Patient
|
|
90
|
+
* resource: "condition-encounter-diagnosis",
|
|
91
|
+
* text: "Patient has severe persistent asthma with acute exacerbation",
|
|
92
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
92
93
|
* })
|
|
93
94
|
*/
|
|
94
95
|
createFhirResource(request, requestOptions) {
|
|
@@ -167,6 +168,7 @@ class ToolsClient {
|
|
|
167
168
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
168
169
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
169
170
|
* text: "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily.",
|
|
171
|
+
* version: "R4",
|
|
170
172
|
* provider: "medplum"
|
|
171
173
|
* })
|
|
172
174
|
*/
|
|
@@ -241,7 +243,9 @@ class ToolsClient {
|
|
|
241
243
|
* await client.tools.searchFhirResources({
|
|
242
244
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
243
245
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
244
|
-
* text: "Find all appointments for patient John Doe next week"
|
|
246
|
+
* text: "Find all appointments for patient John Doe next week",
|
|
247
|
+
* count: 10,
|
|
248
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
245
249
|
* })
|
|
246
250
|
*/
|
|
247
251
|
searchFhirResources(request, requestOptions) {
|
|
@@ -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
|
* text: "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily.",
|
|
7
|
+
* version: "R4",
|
|
7
8
|
* provider: "medplum"
|
|
8
9
|
* }
|
|
9
10
|
*/
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* {
|
|
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
|
-
* resource: "
|
|
7
|
-
* text: "Patient
|
|
6
|
+
* resource: "condition-encounter-diagnosis",
|
|
7
|
+
* text: "Patient has severe persistent asthma with acute exacerbation",
|
|
8
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
8
9
|
* }
|
|
9
10
|
*/
|
|
10
11
|
export interface Lang2FhirAndCreateRequest {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
* {
|
|
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
|
-
* text: "Find all appointments for patient John Doe next week"
|
|
6
|
+
* text: "Find all appointments for patient John Doe next week",
|
|
7
|
+
* count: 10,
|
|
8
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
7
9
|
* }
|
|
8
10
|
*/
|
|
9
11
|
export interface Lang2FhirAndSearchRequest {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface McpServer {
|
|
2
|
+
/** ID of the MCP server */
|
|
3
|
+
id?: string | undefined;
|
|
4
|
+
/** Name of the MCP server */
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
/** Description of the MCP server */
|
|
7
|
+
description?: string | undefined;
|
|
8
|
+
/** URL of the MCP server */
|
|
9
|
+
mcp_server_url?: string | undefined;
|
|
10
|
+
}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
+
import type * as phenoml from "../../../index.js";
|
|
1
2
|
export interface McpServerResponse {
|
|
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
|
|
7
|
-
data?:
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
/** Single MCP server (returned by GET /tools/mcp-server/{mcp_server_id}). */
|
|
8
|
+
data?: phenoml.tools.McpServer | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* List of MCP servers. Returned by /tools/mcp-server/create (the
|
|
11
|
+
* newly created server) and /tools/mcp-server/list (all servers).
|
|
12
|
+
*/
|
|
13
|
+
mcp_servers?: phenoml.tools.McpServer[] | undefined;
|
|
10
14
|
/**
|
|
11
|
-
* MCP server
|
|
15
|
+
* Tools loaded from the MCP server. Returned by /tools/mcp-server/create
|
|
16
|
+
* alongside the server record, since tool discovery happens at create time.
|
|
12
17
|
*/
|
|
13
|
-
|
|
14
|
-
/** ID of the MCP server */
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
/** Name of the MCP server */
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
/** Description of the MCP server */
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
/** URL of the MCP server */
|
|
21
|
-
mcp_server_url?: string | undefined;
|
|
22
|
-
}
|
|
18
|
+
mcp_server_tools?: phenoml.tools.McpServerTool[] | undefined;
|
|
23
19
|
}
|
|
@@ -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.js";
|
|
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.js";
|
|
|
2
2
|
export * from "./Lang2FhirAndCreateMultiResponse.js";
|
|
3
3
|
export * from "./Lang2FhirAndCreateResponse.js";
|
|
4
4
|
export * from "./Lang2FhirAndSearchResponse.js";
|
|
5
|
+
export * from "./McpServer.js";
|
|
5
6
|
export * from "./McpServerResponse.js";
|
|
7
|
+
export * from "./McpServerTool.js";
|
|
6
8
|
export * from "./McpServerToolCallResponse.js";
|
|
7
9
|
export * from "./McpServerToolResponse.js";
|
|
8
10
|
export * from "./SearchConcept.js";
|
|
@@ -18,7 +18,9 @@ __exportStar(require("./CohortResponse.js"), exports);
|
|
|
18
18
|
__exportStar(require("./Lang2FhirAndCreateMultiResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./Lang2FhirAndCreateResponse.js"), exports);
|
|
20
20
|
__exportStar(require("./Lang2FhirAndSearchResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./McpServer.js"), exports);
|
|
21
22
|
__exportStar(require("./McpServerResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./McpServerTool.js"), exports);
|
|
22
24
|
__exportStar(require("./McpServerToolCallResponse.js"), exports);
|
|
23
25
|
__exportStar(require("./McpServerToolResponse.js"), exports);
|
|
24
26
|
__exportStar(require("./SearchConcept.js"), exports);
|
|
@@ -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;
|