phenoml 13.0.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.d.ts +3 -0
- package/dist/cjs/BaseClient.js +17 -2
- package/dist/cjs/api/resources/agent/client/Client.d.ts +24 -12
- package/dist/cjs/api/resources/agent/client/Client.js +41 -21
- 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 +19 -70
- 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 +5 -2
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.ts +4 -1
- package/dist/cjs/api/resources/cohort/client/Client.js +1 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +95 -11
- package/dist/cjs/api/resources/construe/client/Client.js +134 -22
- 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/fhir/client/Client.js +10 -6
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +10 -7
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +17 -14
- 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 +23 -12
- 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 +80 -15
- 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 +11 -7
- 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/client/Client.js +4 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +4 -4
- 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 +43 -15
- 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/core/auth/AuthProvider.d.ts +1 -0
- package/dist/cjs/core/auth/AuthProvider.js +7 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +2 -2
- package/dist/cjs/core/auth/BasicAuth.js +7 -1
- package/dist/cjs/core/auth/index.d.ts +1 -1
- package/dist/cjs/core/auth/index.js +3 -1
- package/dist/cjs/core/fetcher/Fetcher.d.ts +8 -0
- package/dist/cjs/core/fetcher/Fetcher.js +13 -8
- package/dist/cjs/core/fetcher/requestWithRetries.js +4 -1
- package/dist/cjs/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/cjs/core/url/QueryStringBuilder.js +83 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/qs.d.ts +2 -1
- package/dist/cjs/core/url/qs.js +24 -12
- package/dist/cjs/errors/handleNonStatusCodeError.js +4 -1
- package/dist/cjs/errors/phenomlError.d.ts +3 -1
- package/dist/cjs/errors/phenomlError.js +4 -1
- package/dist/cjs/errors/phenomlTimeoutError.d.ts +4 -1
- package/dist/cjs/errors/phenomlTimeoutError.js +4 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +3 -0
- package/dist/esm/BaseClient.mjs +17 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +24 -12
- package/dist/esm/api/resources/agent/client/Client.mjs +41 -21
- 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 +19 -70
- 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 +5 -2
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.mts +4 -1
- package/dist/esm/api/resources/cohort/client/Client.mjs +1 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +95 -11
- package/dist/esm/api/resources/construe/client/Client.mjs +134 -22
- 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/fhir/client/Client.mjs +10 -6
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +10 -7
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +17 -14
- 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 +23 -12
- 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 +80 -15
- 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 +11 -7
- 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/client/Client.mjs +4 -4
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +4 -4
- 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 +43 -15
- 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/core/auth/AuthProvider.d.mts +1 -0
- package/dist/esm/core/auth/AuthProvider.mjs +6 -1
- package/dist/esm/core/auth/BasicAuth.d.mts +2 -2
- package/dist/esm/core/auth/BasicAuth.mjs +7 -1
- package/dist/esm/core/auth/index.d.mts +1 -1
- package/dist/esm/core/auth/index.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +8 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +13 -8
- package/dist/esm/core/fetcher/requestWithRetries.mjs +4 -1
- package/dist/esm/core/url/QueryStringBuilder.d.mts +47 -0
- package/dist/esm/core/url/QueryStringBuilder.mjs +80 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/qs.d.mts +2 -1
- package/dist/esm/core/url/qs.mjs +24 -12
- package/dist/esm/errors/handleNonStatusCodeError.mjs +4 -1
- package/dist/esm/errors/phenomlError.d.mts +3 -1
- package/dist/esm/errors/phenomlError.mjs +4 -1
- package/dist/esm/errors/phenomlTimeoutError.d.mts +4 -1
- package/dist/esm/errors/phenomlTimeoutError.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- 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
|
*/
|
|
@@ -42,7 +42,7 @@ export class SummaryClient {
|
|
|
42
42
|
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, "fhir2summary/templates"),
|
|
43
43
|
method: "GET",
|
|
44
44
|
headers: _headers,
|
|
45
|
-
|
|
45
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
46
46
|
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,
|
|
47
47
|
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,
|
|
48
48
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -84,10 +84,10 @@ export class SummaryClient {
|
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
86
|
* await client.summary.createTemplate({
|
|
87
|
-
* name: "
|
|
88
|
-
* example_summary: "Patient John Doe, age 45,
|
|
89
|
-
* target_resources: ["Patient", "Condition", "
|
|
90
|
-
* mode: "
|
|
87
|
+
* name: "Discharge Summary",
|
|
88
|
+
* 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.",
|
|
89
|
+
* target_resources: ["Patient", "Condition", "MedicationRequest"],
|
|
90
|
+
* mode: "narrative"
|
|
91
91
|
* })
|
|
92
92
|
*/
|
|
93
93
|
createTemplate(request, requestOptions) {
|
|
@@ -103,7 +103,7 @@ export class SummaryClient {
|
|
|
103
103
|
method: "POST",
|
|
104
104
|
headers: _headers,
|
|
105
105
|
contentType: "application/json",
|
|
106
|
-
|
|
106
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
107
107
|
requestType: "json",
|
|
108
108
|
body: request,
|
|
109
109
|
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,
|
|
@@ -163,7 +163,7 @@ export class SummaryClient {
|
|
|
163
163
|
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, `fhir2summary/template/${core.url.encodePathParam(id)}`),
|
|
164
164
|
method: "GET",
|
|
165
165
|
headers: _headers,
|
|
166
|
-
|
|
166
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
167
167
|
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,
|
|
168
168
|
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,
|
|
169
169
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -212,10 +212,10 @@ export class SummaryClient {
|
|
|
212
212
|
*
|
|
213
213
|
* @example
|
|
214
214
|
* await client.summary.updateTemplate("id", {
|
|
215
|
-
* name: "
|
|
216
|
-
* template: "
|
|
217
|
-
* target_resources: ["
|
|
218
|
-
* mode: "
|
|
215
|
+
* name: "Discharge Summary",
|
|
216
|
+
* 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}}.",
|
|
217
|
+
* target_resources: ["Patient", "Encounter", "MedicationRequest"],
|
|
218
|
+
* mode: "narrative"
|
|
219
219
|
* })
|
|
220
220
|
*/
|
|
221
221
|
updateTemplate(id, request, requestOptions) {
|
|
@@ -231,7 +231,7 @@ export class SummaryClient {
|
|
|
231
231
|
method: "PUT",
|
|
232
232
|
headers: _headers,
|
|
233
233
|
contentType: "application/json",
|
|
234
|
-
|
|
234
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
235
235
|
requestType: "json",
|
|
236
236
|
body: request,
|
|
237
237
|
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,
|
|
@@ -295,7 +295,7 @@ export class SummaryClient {
|
|
|
295
295
|
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, `fhir2summary/template/${core.url.encodePathParam(id)}`),
|
|
296
296
|
method: "DELETE",
|
|
297
297
|
headers: _headers,
|
|
298
|
-
|
|
298
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
299
299
|
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,
|
|
300
300
|
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,
|
|
301
301
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -346,8 +346,73 @@ export class SummaryClient {
|
|
|
346
346
|
*
|
|
347
347
|
* @example
|
|
348
348
|
* await client.summary.create({
|
|
349
|
+
* mode: "narrative",
|
|
350
|
+
* template_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
349
351
|
* fhir_resources: {
|
|
350
|
-
* resourceType: "
|
|
352
|
+
* "resourceType": "Bundle",
|
|
353
|
+
* "type": "collection",
|
|
354
|
+
* "entry": [
|
|
355
|
+
* {
|
|
356
|
+
* "resource": {
|
|
357
|
+
* "resourceType": "Patient",
|
|
358
|
+
* "name": [
|
|
359
|
+
* {
|
|
360
|
+
* "given": [
|
|
361
|
+
* "John"
|
|
362
|
+
* ],
|
|
363
|
+
* "family": "Doe"
|
|
364
|
+
* }
|
|
365
|
+
* ],
|
|
366
|
+
* "gender": "male",
|
|
367
|
+
* "birthDate": "1979-03-15"
|
|
368
|
+
* }
|
|
369
|
+
* },
|
|
370
|
+
* {
|
|
371
|
+
* "resource": {
|
|
372
|
+
* "resourceType": "Condition",
|
|
373
|
+
* "code": {
|
|
374
|
+
* "text": "Type 2 Diabetes Mellitus"
|
|
375
|
+
* },
|
|
376
|
+
* "onsetDateTime": "2024-01-15"
|
|
377
|
+
* }
|
|
378
|
+
* }
|
|
379
|
+
* ]
|
|
380
|
+
* }
|
|
381
|
+
* })
|
|
382
|
+
*
|
|
383
|
+
* @example
|
|
384
|
+
* await client.summary.create({
|
|
385
|
+
* mode: "ips",
|
|
386
|
+
* fhir_resources: {
|
|
387
|
+
* "resourceType": "Bundle",
|
|
388
|
+
* "type": "collection",
|
|
389
|
+
* "entry": [
|
|
390
|
+
* {
|
|
391
|
+
* "resource": {
|
|
392
|
+
* "resourceType": "Patient",
|
|
393
|
+
* "id": "maria-garcia-001",
|
|
394
|
+
* "name": [
|
|
395
|
+
* {
|
|
396
|
+
* "given": [
|
|
397
|
+
* "Maria"
|
|
398
|
+
* ],
|
|
399
|
+
* "family": "Garcia"
|
|
400
|
+
* }
|
|
401
|
+
* ],
|
|
402
|
+
* "gender": "female",
|
|
403
|
+
* "birthDate": "1985-07-22"
|
|
404
|
+
* }
|
|
405
|
+
* },
|
|
406
|
+
* {
|
|
407
|
+
* "resource": {
|
|
408
|
+
* "resourceType": "AllergyIntolerance",
|
|
409
|
+
* "code": {
|
|
410
|
+
* "text": "Penicillin"
|
|
411
|
+
* },
|
|
412
|
+
* "criticality": "high"
|
|
413
|
+
* }
|
|
414
|
+
* }
|
|
415
|
+
* ]
|
|
351
416
|
* }
|
|
352
417
|
* })
|
|
353
418
|
*/
|
|
@@ -364,7 +429,7 @@ export class SummaryClient {
|
|
|
364
429
|
method: "POST",
|
|
365
430
|
headers: _headers,
|
|
366
431
|
contentType: "application/json",
|
|
367
|
-
|
|
432
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
368
433
|
requestType: "json",
|
|
369
434
|
body: request,
|
|
370
435
|
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,
|
|
@@ -1,9 +1,73 @@
|
|
|
1
|
-
import type * as phenoml from "../../../../index.mjs";
|
|
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.mjs";
|
|
2
2
|
export * from "./CreateSummaryTemplateResponse.mjs";
|
|
3
|
-
export * from "./FhirBundle.mjs";
|
|
4
|
-
export * from "./FhirResource.mjs";
|
|
5
3
|
export * from "./SummaryDeleteTemplateResponse.mjs";
|
|
6
4
|
export * from "./SummaryGetTemplateResponse.mjs";
|
|
7
5
|
export * from "./SummaryListTemplatesResponse.mjs";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from "./CreateSummaryResponse.mjs";
|
|
2
2
|
export * from "./CreateSummaryTemplateResponse.mjs";
|
|
3
|
-
export * from "./FhirBundle.mjs";
|
|
4
|
-
export * from "./FhirResource.mjs";
|
|
5
3
|
export * from "./SummaryDeleteTemplateResponse.mjs";
|
|
6
4
|
export * from "./SummaryGetTemplateResponse.mjs";
|
|
7
5
|
export * from "./SummaryListTemplatesResponse.mjs";
|
|
@@ -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>;
|
|
@@ -51,8 +51,9 @@ export class ToolsClient {
|
|
|
51
51
|
* await client.tools.createFhirResource({
|
|
52
52
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
53
53
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
54
|
-
* resource: "
|
|
55
|
-
* text: "Patient
|
|
54
|
+
* resource: "condition-encounter-diagnosis",
|
|
55
|
+
* text: "Patient has severe persistent asthma with acute exacerbation",
|
|
56
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
56
57
|
* })
|
|
57
58
|
*/
|
|
58
59
|
createFhirResource(request, requestOptions) {
|
|
@@ -72,7 +73,7 @@ export class ToolsClient {
|
|
|
72
73
|
method: "POST",
|
|
73
74
|
headers: _headers,
|
|
74
75
|
contentType: "application/json",
|
|
75
|
-
|
|
76
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
76
77
|
requestType: "json",
|
|
77
78
|
body: _body,
|
|
78
79
|
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,
|
|
@@ -131,6 +132,7 @@ export class ToolsClient {
|
|
|
131
132
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
132
133
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
133
134
|
* text: "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily.",
|
|
135
|
+
* version: "R4",
|
|
134
136
|
* provider: "medplum"
|
|
135
137
|
* })
|
|
136
138
|
*/
|
|
@@ -151,7 +153,7 @@ export class ToolsClient {
|
|
|
151
153
|
method: "POST",
|
|
152
154
|
headers: _headers,
|
|
153
155
|
contentType: "application/json",
|
|
154
|
-
|
|
156
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
155
157
|
requestType: "json",
|
|
156
158
|
body: _body,
|
|
157
159
|
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,
|
|
@@ -205,7 +207,9 @@ export class ToolsClient {
|
|
|
205
207
|
* await client.tools.searchFhirResources({
|
|
206
208
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
207
209
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
208
|
-
* text: "Find all appointments for patient John Doe next week"
|
|
210
|
+
* text: "Find all appointments for patient John Doe next week",
|
|
211
|
+
* count: 10,
|
|
212
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
209
213
|
* })
|
|
210
214
|
*/
|
|
211
215
|
searchFhirResources(request, requestOptions) {
|
|
@@ -225,7 +229,7 @@ export class ToolsClient {
|
|
|
225
229
|
method: "POST",
|
|
226
230
|
headers: _headers,
|
|
227
231
|
contentType: "application/json",
|
|
228
|
-
|
|
232
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
229
233
|
requestType: "json",
|
|
230
234
|
body: _body,
|
|
231
235
|
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,
|
|
@@ -299,7 +303,7 @@ export class ToolsClient {
|
|
|
299
303
|
method: "POST",
|
|
300
304
|
headers: _headers,
|
|
301
305
|
contentType: "application/json",
|
|
302
|
-
|
|
306
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
303
307
|
requestType: "json",
|
|
304
308
|
body: _body,
|
|
305
309
|
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,
|
|
@@ -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 {
|
|
@@ -54,7 +54,7 @@ export class McpServerClient {
|
|
|
54
54
|
method: "POST",
|
|
55
55
|
headers: _headers,
|
|
56
56
|
contentType: "application/json",
|
|
57
|
-
|
|
57
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
58
58
|
requestType: "json",
|
|
59
59
|
body: request,
|
|
60
60
|
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,
|
|
@@ -111,7 +111,7 @@ export class McpServerClient {
|
|
|
111
111
|
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, "tools/mcp-server/list"),
|
|
112
112
|
method: "GET",
|
|
113
113
|
headers: _headers,
|
|
114
|
-
|
|
114
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
115
115
|
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,
|
|
116
116
|
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,
|
|
117
117
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -165,7 +165,7 @@ export class McpServerClient {
|
|
|
165
165
|
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, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
|
|
166
166
|
method: "GET",
|
|
167
167
|
headers: _headers,
|
|
168
|
-
|
|
168
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
169
169
|
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,
|
|
170
170
|
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,
|
|
171
171
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -219,7 +219,7 @@ export class McpServerClient {
|
|
|
219
219
|
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, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}`),
|
|
220
220
|
method: "DELETE",
|
|
221
221
|
headers: _headers,
|
|
222
|
-
|
|
222
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
223
223
|
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,
|
|
224
224
|
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,
|
|
225
225
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -44,7 +44,7 @@ export class ToolsClient {
|
|
|
44
44
|
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, `tools/mcp-server/${core.url.encodePathParam(mcp_server_id)}/list`),
|
|
45
45
|
method: "GET",
|
|
46
46
|
headers: _headers,
|
|
47
|
-
|
|
47
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
48
48
|
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,
|
|
49
49
|
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,
|
|
50
50
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -98,7 +98,7 @@ export class ToolsClient {
|
|
|
98
98
|
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, `tools/mcp-server/tool/${core.url.encodePathParam(mcp_server_tool_id)}`),
|
|
99
99
|
method: "GET",
|
|
100
100
|
headers: _headers,
|
|
101
|
-
|
|
101
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
102
102
|
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,
|
|
103
103
|
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,
|
|
104
104
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -152,7 +152,7 @@ export class ToolsClient {
|
|
|
152
152
|
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, `tools/mcp-server/tool/${core.url.encodePathParam(mcp_server_tool_id)}`),
|
|
153
153
|
method: "DELETE",
|
|
154
154
|
headers: _headers,
|
|
155
|
-
|
|
155
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
156
156
|
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,
|
|
157
157
|
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,
|
|
158
158
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -213,7 +213,7 @@ export class ToolsClient {
|
|
|
213
213
|
method: "POST",
|
|
214
214
|
headers: _headers,
|
|
215
215
|
contentType: "application/json",
|
|
216
|
-
|
|
216
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
217
217
|
requestType: "json",
|
|
218
218
|
body: request,
|
|
219
219
|
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,
|