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
|
@@ -69,7 +69,11 @@ export class FhirClient {
|
|
|
69
69
|
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, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
70
70
|
method: "GET",
|
|
71
71
|
headers: _headers,
|
|
72
|
-
|
|
72
|
+
queryString: core.url
|
|
73
|
+
.queryBuilder()
|
|
74
|
+
.addMany(_queryParams)
|
|
75
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
76
|
+
.build(),
|
|
73
77
|
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,
|
|
74
78
|
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,
|
|
75
79
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -155,7 +159,7 @@ export class FhirClient {
|
|
|
155
159
|
method: "POST",
|
|
156
160
|
headers: _headers,
|
|
157
161
|
contentType: "application/fhir+json",
|
|
158
|
-
|
|
162
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
159
163
|
requestType: "json",
|
|
160
164
|
body: _body,
|
|
161
165
|
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,
|
|
@@ -242,7 +246,7 @@ export class FhirClient {
|
|
|
242
246
|
method: "PUT",
|
|
243
247
|
headers: _headers,
|
|
244
248
|
contentType: "application/fhir+json",
|
|
245
|
-
|
|
249
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
246
250
|
requestType: "json",
|
|
247
251
|
body: _body,
|
|
248
252
|
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,
|
|
@@ -325,7 +329,7 @@ export class FhirClient {
|
|
|
325
329
|
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, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
326
330
|
method: "DELETE",
|
|
327
331
|
headers: _headers,
|
|
328
|
-
|
|
332
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
329
333
|
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,
|
|
330
334
|
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,
|
|
331
335
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -470,7 +474,7 @@ export class FhirClient {
|
|
|
470
474
|
method: "PATCH",
|
|
471
475
|
headers: _headers,
|
|
472
476
|
contentType: "application/json-patch+json",
|
|
473
|
-
|
|
477
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
474
478
|
requestType: "json",
|
|
475
479
|
body: _body,
|
|
476
480
|
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,
|
|
@@ -584,7 +588,7 @@ export class FhirClient {
|
|
|
584
588
|
method: "POST",
|
|
585
589
|
headers: _headers,
|
|
586
590
|
contentType: "application/fhir+json",
|
|
587
|
-
|
|
591
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
588
592
|
requestType: "json",
|
|
589
593
|
body: _body,
|
|
590
594
|
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,
|
|
@@ -26,11 +26,13 @@ export declare class FhirProviderClient {
|
|
|
26
26
|
* @example
|
|
27
27
|
* await client.fhirProvider.create({
|
|
28
28
|
* name: "Epic Sandbox",
|
|
29
|
-
*
|
|
29
|
+
* description: "Epic sandbox environment for testing",
|
|
30
|
+
* provider: "epic",
|
|
30
31
|
* base_url: "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
|
|
31
32
|
* auth: {
|
|
32
|
-
* auth_method: "
|
|
33
|
-
* client_id: "your-client-id"
|
|
33
|
+
* auth_method: "client_secret",
|
|
34
|
+
* client_id: "your-client-id",
|
|
35
|
+
* client_secret: "your-client-secret"
|
|
34
36
|
* }
|
|
35
37
|
* })
|
|
36
38
|
*/
|
|
@@ -106,8 +108,9 @@ export declare class FhirProviderClient {
|
|
|
106
108
|
*
|
|
107
109
|
* @example
|
|
108
110
|
* await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
109
|
-
* auth_method: "
|
|
110
|
-
* client_id: "your-client-id"
|
|
111
|
+
* auth_method: "client_secret",
|
|
112
|
+
* client_id: "your-client-id",
|
|
113
|
+
* client_secret: "your-client-secret"
|
|
111
114
|
* })
|
|
112
115
|
*/
|
|
113
116
|
addAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderAddAuthConfigRequest, requestOptions?: FhirProviderClient.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
|
|
@@ -133,7 +136,7 @@ export declare class FhirProviderClient {
|
|
|
133
136
|
*
|
|
134
137
|
* @example
|
|
135
138
|
* await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
136
|
-
* auth_config_id: "auth-config-
|
|
139
|
+
* auth_config_id: "auth-config-456"
|
|
137
140
|
* })
|
|
138
141
|
*/
|
|
139
142
|
setActiveAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest, requestOptions?: FhirProviderClient.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderResponse>;
|
|
@@ -156,7 +159,7 @@ export declare class FhirProviderClient {
|
|
|
156
159
|
*
|
|
157
160
|
* @example
|
|
158
161
|
* await client.fhirProvider.removeAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
159
|
-
* auth_config_id: "auth-config-
|
|
162
|
+
* auth_config_id: "auth-config-456"
|
|
160
163
|
* })
|
|
161
164
|
*/
|
|
162
165
|
removeAuthConfig(fhir_provider_id: string, request: phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest, requestOptions?: FhirProviderClient.RequestOptions): core.HttpResponsePromise<phenoml.fhirProvider.FhirProviderRemoveAuthConfigResponse>;
|
|
@@ -35,11 +35,13 @@ export class FhirProviderClient {
|
|
|
35
35
|
* @example
|
|
36
36
|
* await client.fhirProvider.create({
|
|
37
37
|
* name: "Epic Sandbox",
|
|
38
|
-
*
|
|
38
|
+
* description: "Epic sandbox environment for testing",
|
|
39
|
+
* provider: "epic",
|
|
39
40
|
* base_url: "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
|
|
40
41
|
* auth: {
|
|
41
|
-
* auth_method: "
|
|
42
|
-
* client_id: "your-client-id"
|
|
42
|
+
* auth_method: "client_secret",
|
|
43
|
+
* client_id: "your-client-id",
|
|
44
|
+
* client_secret: "your-client-secret"
|
|
43
45
|
* }
|
|
44
46
|
* })
|
|
45
47
|
*/
|
|
@@ -56,7 +58,7 @@ export class FhirProviderClient {
|
|
|
56
58
|
method: "POST",
|
|
57
59
|
headers: _headers,
|
|
58
60
|
contentType: "application/json",
|
|
59
|
-
|
|
61
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
60
62
|
requestType: "json",
|
|
61
63
|
body: request,
|
|
62
64
|
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,
|
|
@@ -118,7 +120,7 @@ export class FhirProviderClient {
|
|
|
118
120
|
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, "fhir-provider/list"),
|
|
119
121
|
method: "GET",
|
|
120
122
|
headers: _headers,
|
|
121
|
-
|
|
123
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
122
124
|
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,
|
|
123
125
|
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,
|
|
124
126
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -176,7 +178,7 @@ export class FhirProviderClient {
|
|
|
176
178
|
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, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
|
|
177
179
|
method: "GET",
|
|
178
180
|
headers: _headers,
|
|
179
|
-
|
|
181
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
180
182
|
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,
|
|
181
183
|
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,
|
|
182
184
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -236,7 +238,7 @@ export class FhirProviderClient {
|
|
|
236
238
|
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, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}`),
|
|
237
239
|
method: "DELETE",
|
|
238
240
|
headers: _headers,
|
|
239
|
-
|
|
241
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
240
242
|
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,
|
|
241
243
|
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,
|
|
242
244
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -288,8 +290,9 @@ export class FhirProviderClient {
|
|
|
288
290
|
*
|
|
289
291
|
* @example
|
|
290
292
|
* await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
291
|
-
* auth_method: "
|
|
292
|
-
* client_id: "your-client-id"
|
|
293
|
+
* auth_method: "client_secret",
|
|
294
|
+
* client_id: "your-client-id",
|
|
295
|
+
* client_secret: "your-client-secret"
|
|
293
296
|
* })
|
|
294
297
|
*/
|
|
295
298
|
addAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
@@ -305,7 +308,7 @@ export class FhirProviderClient {
|
|
|
305
308
|
method: "PATCH",
|
|
306
309
|
headers: _headers,
|
|
307
310
|
contentType: "application/json",
|
|
308
|
-
|
|
311
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
309
312
|
requestType: "json",
|
|
310
313
|
body: request,
|
|
311
314
|
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,
|
|
@@ -364,7 +367,7 @@ export class FhirProviderClient {
|
|
|
364
367
|
*
|
|
365
368
|
* @example
|
|
366
369
|
* await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
367
|
-
* auth_config_id: "auth-config-
|
|
370
|
+
* auth_config_id: "auth-config-456"
|
|
368
371
|
* })
|
|
369
372
|
*/
|
|
370
373
|
setActiveAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
@@ -380,7 +383,7 @@ export class FhirProviderClient {
|
|
|
380
383
|
method: "PATCH",
|
|
381
384
|
headers: _headers,
|
|
382
385
|
contentType: "application/json",
|
|
383
|
-
|
|
386
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
384
387
|
requestType: "json",
|
|
385
388
|
body: request,
|
|
386
389
|
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,
|
|
@@ -436,7 +439,7 @@ export class FhirProviderClient {
|
|
|
436
439
|
*
|
|
437
440
|
* @example
|
|
438
441
|
* await client.fhirProvider.removeAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
439
|
-
* auth_config_id: "auth-config-
|
|
442
|
+
* auth_config_id: "auth-config-456"
|
|
440
443
|
* })
|
|
441
444
|
*/
|
|
442
445
|
removeAuthConfig(fhir_provider_id, request, requestOptions) {
|
|
@@ -452,7 +455,7 @@ export class FhirProviderClient {
|
|
|
452
455
|
method: "PATCH",
|
|
453
456
|
headers: _headers,
|
|
454
457
|
contentType: "application/json",
|
|
455
|
-
|
|
458
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
456
459
|
requestType: "json",
|
|
457
460
|
body: request,
|
|
458
461
|
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,
|
|
@@ -3,11 +3,13 @@ import type * as phenoml from "../../../../index.mjs";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* name: "Epic Sandbox",
|
|
6
|
-
*
|
|
6
|
+
* description: "Epic sandbox environment for testing",
|
|
7
|
+
* provider: "epic",
|
|
7
8
|
* base_url: "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
|
|
8
9
|
* auth: {
|
|
9
|
-
* auth_method: "
|
|
10
|
-
* client_id: "your-client-id"
|
|
10
|
+
* auth_method: "client_secret",
|
|
11
|
+
* client_id: "your-client-id",
|
|
12
|
+
* client_secret: "your-client-secret"
|
|
11
13
|
* }
|
|
12
14
|
* }
|
|
13
15
|
*/
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Limited information returned for sandbox FHIR providers. Sandbox
|
|
3
|
+
* responses omit `auth_configs` and `last_updated`, which is what
|
|
4
|
+
* distinguishes this shape from `FhirProviderTemplate` in `oneOf`.
|
|
3
5
|
*/
|
|
4
6
|
export interface FhirProviderSandboxInfo {
|
|
5
7
|
/** Unique identifier for the FHIR provider */
|
|
6
|
-
id
|
|
8
|
+
id: string;
|
|
7
9
|
/** Display name for the FHIR provider */
|
|
8
|
-
name
|
|
10
|
+
name: string;
|
|
9
11
|
/** Optional description of the FHIR provider */
|
|
10
12
|
description?: string | undefined;
|
|
11
13
|
/** Provider type (always "sandbox" for this schema) */
|
|
12
|
-
provider
|
|
14
|
+
provider: "sandbox";
|
|
13
15
|
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import type * as phenoml from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Full FHIR provider configuration returned for non-sandbox providers.
|
|
4
|
+
* `auth_configs` and `last_updated` are always populated, which is how
|
|
5
|
+
* list responses distinguish this shape from `FhirProviderSandboxInfo`.
|
|
6
|
+
*/
|
|
2
7
|
export interface FhirProviderTemplate {
|
|
3
8
|
/** Unique identifier for the FHIR provider */
|
|
4
|
-
id
|
|
9
|
+
id: string;
|
|
5
10
|
/** Display name for the FHIR provider */
|
|
6
|
-
name
|
|
11
|
+
name: string;
|
|
7
12
|
/** Optional description of the FHIR provider */
|
|
8
13
|
description?: string | undefined;
|
|
9
|
-
provider
|
|
14
|
+
provider: phenoml.fhirProvider.Provider;
|
|
10
15
|
/** Base URL of the FHIR server */
|
|
11
16
|
base_url?: string | undefined;
|
|
12
17
|
/** OAuth client ID. Deprecated: use client_id on FhirProviderAuthConfig instead. Retained for backward compatibility with existing providers. */
|
|
13
18
|
client_id?: string | undefined;
|
|
14
19
|
/** Map of authentication configurations (key is auth_config_id) */
|
|
15
|
-
auth_configs
|
|
20
|
+
auth_configs: Record<string, phenoml.fhirProvider.FhirProviderAuthConfig>;
|
|
16
21
|
/** Timestamp when the provider was last updated */
|
|
17
|
-
last_updated
|
|
22
|
+
last_updated: string;
|
|
18
23
|
}
|
|
@@ -25,8 +25,15 @@ export declare class Lang2FhirClient {
|
|
|
25
25
|
* @example
|
|
26
26
|
* await client.lang2Fhir.create({
|
|
27
27
|
* version: "R4",
|
|
28
|
-
* resource: "
|
|
29
|
-
* text: "Patient has severe asthma with acute exacerbation"
|
|
28
|
+
* resource: "condition-encounter-diagnosis",
|
|
29
|
+
* text: "Patient has severe persistent asthma with acute exacerbation"
|
|
30
|
+
* })
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.lang2Fhir.create({
|
|
34
|
+
* version: "R4",
|
|
35
|
+
* resource: "medicationrequest",
|
|
36
|
+
* text: "Prescribe Amoxicillin 500mg capsules, take one capsule three times daily for 10 days"
|
|
30
37
|
* })
|
|
31
38
|
*/
|
|
32
39
|
create(request: phenoml.lang2Fhir.CreateRequest, requestOptions?: Lang2FhirClient.RequestOptions): core.HttpResponsePromise<phenoml.lang2Fhir.FhirResource>;
|
|
@@ -47,7 +54,8 @@ export declare class Lang2FhirClient {
|
|
|
47
54
|
*
|
|
48
55
|
* @example
|
|
49
56
|
* await client.lang2Fhir.createMulti({
|
|
50
|
-
* text: "John Smith,
|
|
57
|
+
* text: "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily. Blood pressure 140/90.",
|
|
58
|
+
* version: "R4"
|
|
51
59
|
* })
|
|
52
60
|
*/
|
|
53
61
|
createMulti(request: phenoml.lang2Fhir.CreateMultiRequest, requestOptions?: Lang2FhirClient.RequestOptions): core.HttpResponsePromise<phenoml.lang2Fhir.CreateMultiResponse>;
|
|
@@ -99,7 +107,9 @@ export declare class Lang2FhirClient {
|
|
|
99
107
|
*
|
|
100
108
|
* @example
|
|
101
109
|
* await client.lang2Fhir.uploadProfile({
|
|
102
|
-
* profile: "
|
|
110
|
+
* profile: "eyJyZXNvdXJjZVR5cGUiOiJTdHJ1Y3R1cmVEZWZpbml0aW9uIiwiaWQiOiJjdXN0b20tcGF0aWVudCIsInVybCI6Imh0dHA6Ly9waGVub21sLmNvbS9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vY3VzdG9tLXBhdGllbnQiLCJuYW1lIjoiQ3VzdG9tUGF0aWVudCIsInN0YXR1cyI6ImFjdGl2ZSIsImZoaXJWZXJzaW9uIjoiNC4wLjEiLCJraW5kIjoicmVzb3VyY2UiLCJhYnN0cmFjdCI6ZmFsc2UsInR5cGUiOiJQYXRpZW50IiwiYmFzZURlZmluaXRpb24iOiJodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vUGF0aWVudCIsImRlcml2YXRpb24iOiJjb25zdHJhaW50Iiwic25hcHNob3QiOnsiZWxlbWVudCI6W3siaWQiOiJQYXRpZW50IiwicGF0aCI6IlBhdGllbnQiLCJtaW4iOjAsIm1heCI6IioifSx7ImlkIjoiUGF0aWVudC5uYW1lIiwicGF0aCI6IlBhdGllbnQubmFtZSIsIm1pbiI6MSwibWF4IjoiKiJ9XX19Cg==",
|
|
111
|
+
* implementation_guide: "acme-cardiology",
|
|
112
|
+
* profile_context: "When clinical text describes cardiology-specific findings, prefer this profile over the generic US Core Condition."
|
|
103
113
|
* })
|
|
104
114
|
*/
|
|
105
115
|
uploadProfile(request: phenoml.lang2Fhir.ProfileUploadRequest, requestOptions?: Lang2FhirClient.RequestOptions): core.HttpResponsePromise<phenoml.lang2Fhir.Lang2FhirUploadProfileResponse>;
|
|
@@ -120,7 +130,7 @@ export declare class Lang2FhirClient {
|
|
|
120
130
|
* await client.lang2Fhir.document({
|
|
121
131
|
* version: "R4",
|
|
122
132
|
* resource: "questionnaire",
|
|
123
|
-
* content: "
|
|
133
|
+
* content: "JVBERi0xLjQKJeLjz9MK...(base64-encoded PDF or image bytes)"
|
|
124
134
|
* })
|
|
125
135
|
*/
|
|
126
136
|
document(request: phenoml.lang2Fhir.DocumentRequest, requestOptions?: Lang2FhirClient.RequestOptions): core.HttpResponsePromise<phenoml.lang2Fhir.FhirResource>;
|
|
@@ -144,7 +154,8 @@ export declare class Lang2FhirClient {
|
|
|
144
154
|
* @example
|
|
145
155
|
* await client.lang2Fhir.extractMultipleFhirResourcesFromADocument({
|
|
146
156
|
* version: "R4",
|
|
147
|
-
* content: "
|
|
157
|
+
* content: "JVBERi0xLjQKJeLjz9MK...(base64-encoded PDF or image bytes)",
|
|
158
|
+
* provider: "medplum"
|
|
148
159
|
* })
|
|
149
160
|
*/
|
|
150
161
|
extractMultipleFhirResourcesFromADocument(request: phenoml.lang2Fhir.DocumentMultiRequest, requestOptions?: Lang2FhirClient.RequestOptions): core.HttpResponsePromise<phenoml.lang2Fhir.DocumentMultiResponse>;
|
|
@@ -34,8 +34,15 @@ export class Lang2FhirClient {
|
|
|
34
34
|
* @example
|
|
35
35
|
* await client.lang2Fhir.create({
|
|
36
36
|
* version: "R4",
|
|
37
|
-
* resource: "
|
|
38
|
-
* text: "Patient has severe asthma with acute exacerbation"
|
|
37
|
+
* resource: "condition-encounter-diagnosis",
|
|
38
|
+
* text: "Patient has severe persistent asthma with acute exacerbation"
|
|
39
|
+
* })
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.lang2Fhir.create({
|
|
43
|
+
* version: "R4",
|
|
44
|
+
* resource: "medicationrequest",
|
|
45
|
+
* text: "Prescribe Amoxicillin 500mg capsules, take one capsule three times daily for 10 days"
|
|
39
46
|
* })
|
|
40
47
|
*/
|
|
41
48
|
create(request, requestOptions) {
|
|
@@ -51,7 +58,7 @@ export class Lang2FhirClient {
|
|
|
51
58
|
method: "POST",
|
|
52
59
|
headers: _headers,
|
|
53
60
|
contentType: "application/json",
|
|
54
|
-
|
|
61
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
55
62
|
requestType: "json",
|
|
56
63
|
body: request,
|
|
57
64
|
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,
|
|
@@ -98,7 +105,8 @@ export class Lang2FhirClient {
|
|
|
98
105
|
*
|
|
99
106
|
* @example
|
|
100
107
|
* await client.lang2Fhir.createMulti({
|
|
101
|
-
* text: "John Smith,
|
|
108
|
+
* text: "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily. Blood pressure 140/90.",
|
|
109
|
+
* version: "R4"
|
|
102
110
|
* })
|
|
103
111
|
*/
|
|
104
112
|
createMulti(request, requestOptions) {
|
|
@@ -114,7 +122,7 @@ export class Lang2FhirClient {
|
|
|
114
122
|
method: "POST",
|
|
115
123
|
headers: _headers,
|
|
116
124
|
contentType: "application/json",
|
|
117
|
-
|
|
125
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
118
126
|
requestType: "json",
|
|
119
127
|
body: request,
|
|
120
128
|
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,
|
|
@@ -184,7 +192,7 @@ export class Lang2FhirClient {
|
|
|
184
192
|
method: "POST",
|
|
185
193
|
headers: _headers,
|
|
186
194
|
contentType: "application/json",
|
|
187
|
-
|
|
195
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
188
196
|
requestType: "json",
|
|
189
197
|
body: request,
|
|
190
198
|
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,
|
|
@@ -239,7 +247,9 @@ export class Lang2FhirClient {
|
|
|
239
247
|
*
|
|
240
248
|
* @example
|
|
241
249
|
* await client.lang2Fhir.uploadProfile({
|
|
242
|
-
* profile: "
|
|
250
|
+
* profile: "eyJyZXNvdXJjZVR5cGUiOiJTdHJ1Y3R1cmVEZWZpbml0aW9uIiwiaWQiOiJjdXN0b20tcGF0aWVudCIsInVybCI6Imh0dHA6Ly9waGVub21sLmNvbS9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vY3VzdG9tLXBhdGllbnQiLCJuYW1lIjoiQ3VzdG9tUGF0aWVudCIsInN0YXR1cyI6ImFjdGl2ZSIsImZoaXJWZXJzaW9uIjoiNC4wLjEiLCJraW5kIjoicmVzb3VyY2UiLCJhYnN0cmFjdCI6ZmFsc2UsInR5cGUiOiJQYXRpZW50IiwiYmFzZURlZmluaXRpb24iOiJodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vUGF0aWVudCIsImRlcml2YXRpb24iOiJjb25zdHJhaW50Iiwic25hcHNob3QiOnsiZWxlbWVudCI6W3siaWQiOiJQYXRpZW50IiwicGF0aCI6IlBhdGllbnQiLCJtaW4iOjAsIm1heCI6IioifSx7ImlkIjoiUGF0aWVudC5uYW1lIiwicGF0aCI6IlBhdGllbnQubmFtZSIsIm1pbiI6MSwibWF4IjoiKiJ9XX19Cg==",
|
|
251
|
+
* implementation_guide: "acme-cardiology",
|
|
252
|
+
* profile_context: "When clinical text describes cardiology-specific findings, prefer this profile over the generic US Core Condition."
|
|
243
253
|
* })
|
|
244
254
|
*/
|
|
245
255
|
uploadProfile(request, requestOptions) {
|
|
@@ -255,7 +265,7 @@ export class Lang2FhirClient {
|
|
|
255
265
|
method: "POST",
|
|
256
266
|
headers: _headers,
|
|
257
267
|
contentType: "application/json",
|
|
258
|
-
|
|
268
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
259
269
|
requestType: "json",
|
|
260
270
|
body: request,
|
|
261
271
|
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,
|
|
@@ -307,7 +317,7 @@ export class Lang2FhirClient {
|
|
|
307
317
|
* await client.lang2Fhir.document({
|
|
308
318
|
* version: "R4",
|
|
309
319
|
* resource: "questionnaire",
|
|
310
|
-
* content: "
|
|
320
|
+
* content: "JVBERi0xLjQKJeLjz9MK...(base64-encoded PDF or image bytes)"
|
|
311
321
|
* })
|
|
312
322
|
*/
|
|
313
323
|
document(request, requestOptions) {
|
|
@@ -323,7 +333,7 @@ export class Lang2FhirClient {
|
|
|
323
333
|
method: "POST",
|
|
324
334
|
headers: _headers,
|
|
325
335
|
contentType: "application/json",
|
|
326
|
-
|
|
336
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
327
337
|
requestType: "json",
|
|
328
338
|
body: request,
|
|
329
339
|
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,
|
|
@@ -373,7 +383,8 @@ export class Lang2FhirClient {
|
|
|
373
383
|
* @example
|
|
374
384
|
* await client.lang2Fhir.extractMultipleFhirResourcesFromADocument({
|
|
375
385
|
* version: "R4",
|
|
376
|
-
* content: "
|
|
386
|
+
* content: "JVBERi0xLjQKJeLjz9MK...(base64-encoded PDF or image bytes)",
|
|
387
|
+
* provider: "medplum"
|
|
377
388
|
* })
|
|
378
389
|
*/
|
|
379
390
|
extractMultipleFhirResourcesFromADocument(request, requestOptions) {
|
|
@@ -389,7 +400,7 @@ export class Lang2FhirClient {
|
|
|
389
400
|
method: "POST",
|
|
390
401
|
headers: _headers,
|
|
391
402
|
contentType: "application/json",
|
|
392
|
-
|
|
403
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
393
404
|
requestType: "json",
|
|
394
405
|
body: request,
|
|
395
406
|
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,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* text: "John Smith,
|
|
4
|
+
* text: "John Smith, 45-year-old male, diagnosed with Type 2 Diabetes. Prescribed Metformin 500mg twice daily. Blood pressure 140/90.",
|
|
5
|
+
* version: "R4"
|
|
5
6
|
* }
|
|
6
7
|
*/
|
|
7
8
|
export interface CreateMultiRequest {
|
|
@@ -2,8 +2,15 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* version: "R4",
|
|
5
|
-
* resource: "
|
|
6
|
-
* text: "Patient has severe asthma with acute exacerbation"
|
|
5
|
+
* resource: "condition-encounter-diagnosis",
|
|
6
|
+
* text: "Patient has severe persistent asthma with acute exacerbation"
|
|
7
|
+
* }
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* {
|
|
11
|
+
* version: "R4",
|
|
12
|
+
* resource: "medicationrequest",
|
|
13
|
+
* text: "Prescribe Amoxicillin 500mg capsules, take one capsule three times daily for 10 days"
|
|
7
14
|
* }
|
|
8
15
|
*/
|
|
9
16
|
export interface CreateRequest {
|
|
@@ -3,7 +3,8 @@ import type * as phenoml from "../../../../index.mjs";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* version: "R4",
|
|
6
|
-
* content: "
|
|
6
|
+
* content: "JVBERi0xLjQKJeLjz9MK...(base64-encoded PDF or image bytes)",
|
|
7
|
+
* provider: "medplum"
|
|
7
8
|
* }
|
|
8
9
|
*/
|
|
9
10
|
export interface DocumentMultiRequest {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* profile: "
|
|
4
|
+
* profile: "eyJyZXNvdXJjZVR5cGUiOiJTdHJ1Y3R1cmVEZWZpbml0aW9uIiwiaWQiOiJjdXN0b20tcGF0aWVudCIsInVybCI6Imh0dHA6Ly9waGVub21sLmNvbS9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vY3VzdG9tLXBhdGllbnQiLCJuYW1lIjoiQ3VzdG9tUGF0aWVudCIsInN0YXR1cyI6ImFjdGl2ZSIsImZoaXJWZXJzaW9uIjoiNC4wLjEiLCJraW5kIjoicmVzb3VyY2UiLCJhYnN0cmFjdCI6ZmFsc2UsInR5cGUiOiJQYXRpZW50IiwiYmFzZURlZmluaXRpb24iOiJodHRwOi8vaGw3Lm9yZy9maGlyL1N0cnVjdHVyZURlZmluaXRpb24vUGF0aWVudCIsImRlcml2YXRpb24iOiJjb25zdHJhaW50Iiwic25hcHNob3QiOnsiZWxlbWVudCI6W3siaWQiOiJQYXRpZW50IiwicGF0aCI6IlBhdGllbnQiLCJtaW4iOjAsIm1heCI6IioifSx7ImlkIjoiUGF0aWVudC5uYW1lIiwicGF0aCI6IlBhdGllbnQubmFtZSIsIm1pbiI6MSwibWF4IjoiKiJ9XX19Cg==",
|
|
5
|
+
* implementation_guide: "acme-cardiology",
|
|
6
|
+
* profile_context: "When clinical text describes cardiology-specific findings, prefer this profile over the generic US Core Condition."
|
|
5
7
|
* }
|
|
6
8
|
*/
|
|
7
9
|
export interface ProfileUploadRequest {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export interface SearchResponse {
|
|
2
2
|
/** The FHIR resource type identified for the search */
|
|
3
|
-
|
|
3
|
+
resource_type?: SearchResponse.ResourceType | undefined;
|
|
4
4
|
/**
|
|
5
5
|
* FHIR search parameters in standard query string format.
|
|
6
6
|
* Parameters are formatted according to the FHIR specification with appropriate operators.
|
|
7
7
|
* Code parameters are resolved to standard terminology codes (SNOMED CT, LOINC, RxNorm, ICD-10-CM).
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
search_params?: string | undefined;
|
|
10
10
|
}
|
|
11
11
|
export declare namespace SearchResponse {
|
|
12
12
|
/** The FHIR resource type identified for the search */
|