phenoml 14.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agent/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/agent/client/Client.js +2 -2
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +1 -1
- package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +1 -1
- package/dist/cjs/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.d.ts → GetChatMessagesRequest.d.ts} +3 -3
- package/dist/{esm/api/resources/agent/client/requests/AgentListRequest.d.mts → cjs/api/resources/agent/client/requests/ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/agent/types/{AgentDeleteResponse.d.ts → DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesRequestOrder.js → GetChatMessagesRequestOrder.js} +2 -2
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +7 -0
- package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesRequestRole.js → GetChatMessagesRequestRole.js} +2 -2
- package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.d.ts → GetChatMessagesResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/{AgentListResponse.d.ts → ListResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +5 -5
- package/dist/cjs/api/resources/agent/types/index.js +5 -5
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +26 -4
- package/dist/cjs/api/resources/authtoken/client/Client.js +109 -4
- package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/client/index.js +15 -0
- package/dist/cjs/api/resources/authtoken/exports.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/exports.js +0 -1
- package/dist/cjs/api/resources/authtoken/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/index.js +0 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +35 -35
- package/dist/cjs/api/resources/construe/client/Client.js +43 -43
- package/dist/cjs/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.d.ts → DeleteCodeSystemRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/DeleteConstrueCodesSystemsCodesystemRequest.d.mts → cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemCodeIdRequest.d.mts → cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.d.ts → GetCodeSystemRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.d.ts → ListCodesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.d.ts → SearchSemanticRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.mts → cjs/api/resources/construe/client/requests/SearchTextRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +7 -7
- package/dist/{esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts → cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/construe/types/index.js +1 -1
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/fhir/client/Client.js +6 -6
- package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.d.ts → CreateRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts → cjs/api/resources/fhir/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.d.ts → ExecuteBundleRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.d.ts → PatchRequest.d.ts} +2 -2
- package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.d.ts → SearchRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.d.ts → UpsertRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -6
- package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.d.ts → PatchRequestBodyItem.d.ts} +3 -3
- package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.js → PatchRequestBodyItem.js} +5 -5
- package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +2 -0
- package/dist/cjs/api/resources/fhir/types/index.d.ts +2 -2
- package/dist/cjs/api/resources/fhir/types/index.js +2 -2
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +1 -4
- package/dist/{esm/api/resources/agent/types/AgentDeleteResponse.d.mts → cjs/api/resources/fhirProvider/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.d.ts → RemoveAuthConfigResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/types/index.js +2 -2
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +4 -4
- package/dist/cjs/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.d.ts → UploadProfileResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -1
- package/dist/cjs/api/resources/summary/client/Client.d.ts +3 -88
- package/dist/cjs/api/resources/summary/client/Client.js +4 -309
- package/dist/cjs/api/resources/summary/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/summary/exports.d.ts +1 -0
- package/dist/cjs/api/resources/summary/exports.js +1 -0
- package/dist/cjs/api/resources/summary/index.d.ts +1 -0
- package/dist/cjs/api/resources/summary/index.js +1 -0
- package/dist/cjs/api/resources/summary/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/{authtoken → summary}/resources/index.js +4 -3
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +101 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +366 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/exports.js +2 -2
- package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.d.ts +1 -0
- package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.js +1 -0
- package/dist/cjs/api/resources/{workflows/types/WorkflowsDeleteResponse.d.ts → summary/resources/templates/types/TemplatesDeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.d.ts → resources/templates/types/TemplatesGetResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.d.ts → resources/templates/types/TemplatesListResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.ts → resources/templates/types/TemplatesUpdateResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/summary/resources/templates/types/index.js +20 -0
- package/dist/cjs/api/resources/summary/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/summary/types/index.js +0 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +0 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +0 -21
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +0 -68
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.js +0 -15
- package/dist/cjs/api/resources/tools/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/types/index.js +0 -1
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +7 -6
- package/dist/cjs/api/resources/workflows/client/Client.js +8 -14
- package/dist/{esm/api/resources/workflows/client/requests/WorkflowsGetRequest.d.mts → cjs/api/resources/workflows/client/requests/GetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/{WorkflowsGetRequest.d.ts → ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +54 -0
- package/dist/cjs/api/resources/workflows/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/errors/index.js +1 -0
- package/dist/{esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts → cjs/api/resources/workflows/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsGetResponse.d.ts → GetResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/index.d.ts +3 -3
- package/dist/cjs/api/resources/workflows/types/index.js +3 -3
- package/dist/cjs/auth/OAuthAuthProvider.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/agent/client/Client.mjs +2 -2
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +1 -1
- package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +1 -1
- package/dist/esm/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.d.mts → GetChatMessagesRequest.d.mts} +3 -3
- package/dist/{cjs/api/resources/agent/client/requests/AgentListRequest.d.ts → esm/api/resources/agent/client/requests/ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/agent/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesRequestOrder.mjs → GetChatMessagesRequestOrder.mjs} +1 -1
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +7 -0
- package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesRequestRole.mjs → GetChatMessagesRequestRole.mjs} +1 -1
- package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.d.mts → GetChatMessagesResponse.d.mts} +1 -1
- package/dist/esm/api/resources/agent/types/{AgentListResponse.d.mts → ListResponse.d.mts} +1 -1
- package/dist/esm/api/resources/agent/types/index.d.mts +5 -5
- package/dist/esm/api/resources/agent/types/index.mjs +5 -5
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +26 -4
- package/dist/esm/api/resources/authtoken/client/Client.mjs +76 -4
- package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/client/index.mjs +1 -1
- package/dist/esm/api/resources/authtoken/exports.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/exports.mjs +0 -1
- package/dist/esm/api/resources/authtoken/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/index.mjs +0 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +35 -35
- package/dist/esm/api/resources/construe/client/Client.mjs +43 -43
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.d.mts → DeleteCodeSystemRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.ts → esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemCodeIdRequest.d.ts → esm/api/resources/construe/client/requests/GetCodeRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.d.mts → GetCodeSystemRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.d.mts → ListCodesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.d.mts → SearchSemanticRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.ts → esm/api/resources/construe/client/requests/SearchTextRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +7 -7
- package/dist/{cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts → esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts} +1 -1
- package/dist/esm/api/resources/construe/types/index.d.mts +1 -1
- package/dist/esm/api/resources/construe/types/index.mjs +1 -1
- package/dist/esm/api/resources/fhir/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/fhir/client/Client.mjs +6 -6
- package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.d.mts → CreateRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts → esm/api/resources/fhir/client/requests/DeleteRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.d.mts → ExecuteBundleRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.d.mts → PatchRequest.d.mts} +2 -2
- package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.d.mts → SearchRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.d.mts → UpsertRequest.d.mts} +1 -1
- package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -6
- package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.d.mts → PatchRequestBodyItem.d.mts} +3 -3
- package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.mjs → PatchRequestBodyItem.mjs} +4 -4
- package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +2 -0
- package/dist/esm/api/resources/fhir/types/index.d.mts +2 -2
- package/dist/esm/api/resources/fhir/types/index.mjs +2 -2
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +1 -4
- package/dist/esm/api/resources/fhirProvider/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.d.mts → RemoveAuthConfigResponse.d.mts} +1 -1
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +2 -2
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +4 -4
- package/dist/esm/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.d.mts → UploadProfileResponse.d.mts} +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -1
- package/dist/esm/api/resources/summary/client/Client.d.mts +3 -88
- package/dist/esm/api/resources/summary/client/Client.mjs +4 -309
- package/dist/esm/api/resources/summary/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/summary/exports.d.mts +1 -0
- package/dist/esm/api/resources/summary/exports.mjs +1 -0
- package/dist/esm/api/resources/summary/index.d.mts +1 -0
- package/dist/esm/api/resources/summary/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/summary/resources/index.mjs +3 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +101 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +329 -0
- package/dist/esm/api/resources/summary/resources/templates/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/exports.d.mts +2 -0
- package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/exports.mjs +1 -1
- package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.d.mts +1 -0
- package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.d.mts +5 -0
- package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.d.mts → resources/templates/types/TemplatesListResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.mts → resources/templates/types/TemplatesUpdateResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -0
- package/dist/esm/api/resources/summary/types/index.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/index.mjs +0 -4
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +0 -21
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +0 -68
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -1
- package/dist/esm/api/resources/tools/types/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/types/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +7 -6
- package/dist/esm/api/resources/workflows/client/Client.mjs +8 -14
- package/dist/{cjs/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts → esm/api/resources/workflows/client/requests/GetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/client/requests/{WorkflowsListRequest.d.mts → ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +17 -0
- package/dist/esm/api/resources/workflows/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/errors/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/workflows/types/{WorkflowsGetResponse.d.mts → GetResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/{WorkflowsUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/index.d.mts +3 -3
- package/dist/esm/api/resources/workflows/types/index.mjs +3 -3
- package/dist/esm/auth/OAuthAuthProvider.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +11397 -0
- package/package.json +14 -12
- package/reference.md +140 -214
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +0 -5
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.ts +0 -7
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +0 -34
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +0 -121
- package/dist/cjs/api/resources/authtoken/resources/auth/exports.d.ts +0 -2
- package/dist/cjs/api/resources/authtoken/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +0 -2
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +0 -4
- package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.d.ts +0 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -12
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -10
- package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.js +0 -3
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +0 -5
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.mts +0 -7
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +0 -34
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +0 -84
- package/dist/esm/api/resources/authtoken/resources/auth/exports.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.mjs +0 -2
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +0 -2
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +0 -5
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -12
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -10
- package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +0 -2
- /package/dist/cjs/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.js → GetChatMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/agent/client/requests/{AgentListRequest.js → ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentDeleteResponse.js → DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.js → GetChatMessagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentListResponse.js → ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.js +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.js +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.js → DeleteCodeSystemRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemCodeIdRequest.js → ExportCodeSystemRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.js → GetCodeRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.js → GetCodeSystemRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchTextRequest.js → ListCodesRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.js → SearchSemanticRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.js → SearchTextRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/types/{ConstrueUploadCodeSystemResponse.js → UploadCodeSystemResponse.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.js → CreateRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirDeleteRequest.js → DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.js → ExecuteBundleRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.js → PatchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.js → SearchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.js → UpsertRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/types/{FhirSearchResponse.js → SearchResponse.js} +0 -0
- /package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderDeleteResponse.js → DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.js → RemoveAuthConfigResponse.js} +0 -0
- /package/dist/cjs/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.js → UploadProfileResponse.js} +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → summary/resources/templates}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryDeleteTemplateResponse.js → resources/templates/types/TemplatesDeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.js → resources/templates/types/TemplatesGetResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.js → resources/templates/types/TemplatesListResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.js → resources/templates/types/TemplatesUpdateResponse.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js → workflows/client/requests/GetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/types/McpServerToolCallResponse.js → workflows/client/requests/ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsGetRequest.js → types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsListRequest.js → types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/types/{WorkflowsDeleteResponse.js → UpdateResponse.js} +0 -0
- /package/dist/esm/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.mjs → GetChatMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/agent/client/requests/{AgentListRequest.mjs → ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentDeleteResponse.mjs → DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.mjs → GetChatMessagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentListResponse.mjs → ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.mts +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.mjs +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.mjs → DeleteCodeSystemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemCodeIdRequest.mjs → ExportCodeSystemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.mjs → GetCodeRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.mjs → GetCodeSystemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchTextRequest.mjs → ListCodesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.mjs → SearchSemanticRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.mjs → SearchTextRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/types/{ConstrueUploadCodeSystemResponse.mjs → UploadCodeSystemResponse.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.mjs → CreateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirDeleteRequest.mjs → DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.mjs → ExecuteBundleRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.mjs → PatchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.mjs → SearchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.mjs → UpsertRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/types/{FhirSearchResponse.mjs → SearchResponse.mjs} +0 -0
- /package/dist/esm/api/resources/fhirProvider/types/{FhirProviderDeleteResponse.mjs → DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.mjs → RemoveAuthConfigResponse.mjs} +0 -0
- /package/dist/esm/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.mjs → UploadProfileResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → summary/resources/templates}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryDeleteTemplateResponse.mjs → resources/templates/types/TemplatesDeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryGetTemplateResponse.mjs → resources/templates/types/TemplatesGetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.mjs → resources/templates/types/TemplatesListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.mjs → resources/templates/types/TemplatesUpdateResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs → workflows/client/requests/GetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/types/McpServerToolCallResponse.mjs → workflows/client/requests/ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsGetRequest.mjs → types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsListRequest.mjs → types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/types/{WorkflowsDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
|
@@ -1,12 +1,84 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
2
11
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
-
import {
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
+
import * as phenoml from "../../../index.mjs";
|
|
4
18
|
export class AuthtokenClient {
|
|
5
19
|
constructor(options = {}) {
|
|
6
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
7
21
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
22
|
+
/**
|
|
23
|
+
* OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
|
|
24
|
+
* Accepts client_id and client_secret in the request body (JSON or
|
|
25
|
+
* form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
|
|
26
|
+
* returns an access token with expiration information.
|
|
27
|
+
*
|
|
28
|
+
* @param {phenoml.authtoken.ClientCredentialsRequest} request
|
|
29
|
+
* @param {AuthtokenClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @throws {@link phenoml.authtoken.BadRequestError}
|
|
32
|
+
* @throws {@link phenoml.authtoken.UnauthorizedError}
|
|
33
|
+
* @throws {@link phenoml.authtoken.InternalServerError}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.authtoken.getToken({
|
|
37
|
+
* client_id: "your_client_id",
|
|
38
|
+
* client_secret: "your_client_secret"
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
getToken(request = {}, requestOptions) {
|
|
42
|
+
return core.HttpResponsePromise.fromPromise(this.__getToken(request, requestOptions));
|
|
43
|
+
}
|
|
44
|
+
__getToken() {
|
|
45
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
46
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
47
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
48
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
49
|
+
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, "v2/auth/token"),
|
|
50
|
+
method: "POST",
|
|
51
|
+
headers: _headers,
|
|
52
|
+
contentType: "application/json",
|
|
53
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
54
|
+
requestType: "json",
|
|
55
|
+
body: request,
|
|
56
|
+
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,
|
|
57
|
+
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,
|
|
58
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
59
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
60
|
+
logging: this._options.logging,
|
|
61
|
+
});
|
|
62
|
+
if (_response.ok) {
|
|
63
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
64
|
+
}
|
|
65
|
+
if (_response.error.reason === "status-code") {
|
|
66
|
+
switch (_response.error.statusCode) {
|
|
67
|
+
case 400:
|
|
68
|
+
throw new phenoml.authtoken.BadRequestError(_response.error.body, _response.rawResponse);
|
|
69
|
+
case 401:
|
|
70
|
+
throw new phenoml.authtoken.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
71
|
+
case 500:
|
|
72
|
+
throw new phenoml.authtoken.InternalServerError(_response.error.body, _response.rawResponse);
|
|
73
|
+
default:
|
|
74
|
+
throw new errors.phenomlError({
|
|
75
|
+
statusCode: _response.error.statusCode,
|
|
76
|
+
body: _response.error.body,
|
|
77
|
+
rawResponse: _response.rawResponse,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/auth/token");
|
|
82
|
+
});
|
|
11
83
|
}
|
|
12
84
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -50,7 +50,7 @@ export declare class ConstrueClient {
|
|
|
50
50
|
* desc_col: "description"
|
|
51
51
|
* })
|
|
52
52
|
*/
|
|
53
|
-
uploadCodeSystem(request: phenoml.construe.UploadRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.
|
|
53
|
+
uploadCodeSystem(request: phenoml.construe.UploadRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.UploadCodeSystemResponse>;
|
|
54
54
|
private __uploadCodeSystem;
|
|
55
55
|
/**
|
|
56
56
|
* Converts natural language text into structured medical codes.
|
|
@@ -142,15 +142,15 @@ export declare class ConstrueClient {
|
|
|
142
142
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
|
-
* await client.construe.
|
|
145
|
+
* await client.construe.listCodeSystems()
|
|
146
146
|
*/
|
|
147
|
-
|
|
148
|
-
private
|
|
147
|
+
listCodeSystems(requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ListCodeSystemsResponse>;
|
|
148
|
+
private __listCodeSystems;
|
|
149
149
|
/**
|
|
150
150
|
* Returns full metadata for a single code system, including timestamps and builtin status.
|
|
151
151
|
*
|
|
152
152
|
* @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
153
|
-
* @param {phenoml.construe.
|
|
153
|
+
* @param {phenoml.construe.GetCodeSystemRequest} request
|
|
154
154
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
155
|
*
|
|
156
156
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -159,18 +159,18 @@ export declare class ConstrueClient {
|
|
|
159
159
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
160
160
|
*
|
|
161
161
|
* @example
|
|
162
|
-
* await client.construe.
|
|
162
|
+
* await client.construe.getCodeSystem("ICD-10-CM", {
|
|
163
163
|
* version: "2025"
|
|
164
164
|
* })
|
|
165
165
|
*/
|
|
166
|
-
|
|
167
|
-
private
|
|
166
|
+
getCodeSystem(codesystem: string, request?: phenoml.construe.GetCodeSystemRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeSystemDetailResponse>;
|
|
167
|
+
private __getCodeSystem;
|
|
168
168
|
/**
|
|
169
169
|
* Deletes a custom (non-builtin) code system and all its codes. Builtin systems cannot be deleted.
|
|
170
170
|
* Only available on dedicated instances. Large systems may take up to a minute to delete.
|
|
171
171
|
*
|
|
172
172
|
* @param {string} codesystem - Code system name
|
|
173
|
-
* @param {phenoml.construe.
|
|
173
|
+
* @param {phenoml.construe.DeleteCodeSystemRequest} request
|
|
174
174
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
175
175
|
*
|
|
176
176
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -180,19 +180,19 @@ export declare class ConstrueClient {
|
|
|
180
180
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
181
181
|
*
|
|
182
182
|
* @example
|
|
183
|
-
* await client.construe.
|
|
183
|
+
* await client.construe.deleteCodeSystem("CUSTOM_CODES", {
|
|
184
184
|
* version: "version"
|
|
185
185
|
* })
|
|
186
186
|
*/
|
|
187
|
-
|
|
188
|
-
private
|
|
187
|
+
deleteCodeSystem(codesystem: string, request?: phenoml.construe.DeleteCodeSystemRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.DeleteCodeSystemResponse>;
|
|
188
|
+
private __deleteCodeSystem;
|
|
189
189
|
/**
|
|
190
190
|
* Exports a custom (non-builtin) code system as a JSON file compatible with the upload format.
|
|
191
191
|
* The exported file can be re-uploaded directly via POST /construe/upload with format "json".
|
|
192
192
|
* Only available on dedicated instances. Builtin systems cannot be exported.
|
|
193
193
|
*
|
|
194
194
|
* @param {string} codesystem - Code system name
|
|
195
|
-
* @param {phenoml.construe.
|
|
195
|
+
* @param {phenoml.construe.ExportCodeSystemRequest} request
|
|
196
196
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
197
|
*
|
|
198
198
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -204,19 +204,19 @@ export declare class ConstrueClient {
|
|
|
204
204
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
205
205
|
*
|
|
206
206
|
* @example
|
|
207
|
-
* await client.construe.
|
|
207
|
+
* await client.construe.exportCodeSystem("CUSTOM_CODES", {
|
|
208
208
|
* version: "version"
|
|
209
209
|
* })
|
|
210
210
|
*/
|
|
211
|
-
|
|
212
|
-
private
|
|
211
|
+
exportCodeSystem(codesystem: string, request?: phenoml.construe.ExportCodeSystemRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExportCodeSystemResponse>;
|
|
212
|
+
private __exportCodeSystem;
|
|
213
213
|
/**
|
|
214
214
|
* Returns a paginated list of all codes in the specified code system from the terminology server.
|
|
215
215
|
*
|
|
216
216
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
217
217
|
*
|
|
218
218
|
* @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
219
|
-
* @param {phenoml.construe.
|
|
219
|
+
* @param {phenoml.construe.ListCodesRequest} request
|
|
220
220
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
221
|
*
|
|
222
222
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -225,14 +225,14 @@ export declare class ConstrueClient {
|
|
|
225
225
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
226
226
|
*
|
|
227
227
|
* @example
|
|
228
|
-
* await client.construe.
|
|
228
|
+
* await client.construe.listCodes("ICD-10-CM", {
|
|
229
229
|
* version: "2025",
|
|
230
230
|
* cursor: "cursor",
|
|
231
231
|
* limit: 1
|
|
232
232
|
* })
|
|
233
233
|
*/
|
|
234
|
-
|
|
235
|
-
private
|
|
234
|
+
listCodes(codesystem: string, request?: phenoml.construe.ListCodesRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ListCodesResponse>;
|
|
235
|
+
private __listCodes;
|
|
236
236
|
/**
|
|
237
237
|
* Looks up a specific code in the terminology server and returns its details.
|
|
238
238
|
*
|
|
@@ -241,7 +241,7 @@ export declare class ConstrueClient {
|
|
|
241
241
|
* @param {string} codesystem - Code system name
|
|
242
242
|
* @param {string} codeID - The code identifier. ICD-10-CM codes are stored without their
|
|
243
243
|
* cosmetic dot (use "E1165", not "E11.65").
|
|
244
|
-
* @param {phenoml.construe.
|
|
244
|
+
* @param {phenoml.construe.GetCodeRequest} request
|
|
245
245
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
246
246
|
*
|
|
247
247
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -250,12 +250,12 @@ export declare class ConstrueClient {
|
|
|
250
250
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
251
251
|
*
|
|
252
252
|
* @example
|
|
253
|
-
* await client.construe.
|
|
253
|
+
* await client.construe.getCode("ICD-10-CM", "E1165", {
|
|
254
254
|
* version: "version"
|
|
255
255
|
* })
|
|
256
256
|
*/
|
|
257
|
-
|
|
258
|
-
private
|
|
257
|
+
getCode(codesystem: string, codeID: string, request?: phenoml.construe.GetCodeRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeResponse>;
|
|
258
|
+
private __getCode;
|
|
259
259
|
/**
|
|
260
260
|
* Performs semantic similarity search using vector embeddings.
|
|
261
261
|
*
|
|
@@ -278,7 +278,7 @@ export declare class ConstrueClient {
|
|
|
278
278
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
279
279
|
*
|
|
280
280
|
* @param {string} codesystem - Code system name
|
|
281
|
-
* @param {phenoml.construe.
|
|
281
|
+
* @param {phenoml.construe.SearchSemanticRequest} request
|
|
282
282
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
283
283
|
*
|
|
284
284
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -287,14 +287,14 @@ export declare class ConstrueClient {
|
|
|
287
287
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
288
288
|
*
|
|
289
289
|
* @example
|
|
290
|
-
* await client.construe.
|
|
290
|
+
* await client.construe.searchSemantic("ICD-10-CM", {
|
|
291
291
|
* text: "patient has trouble breathing at night and wakes up gasping",
|
|
292
292
|
* version: "version",
|
|
293
293
|
* limit: 1
|
|
294
294
|
* })
|
|
295
295
|
*/
|
|
296
|
-
|
|
297
|
-
private
|
|
296
|
+
searchSemantic(codesystem: string, request: phenoml.construe.SearchSemanticRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.SemanticSearchResponse>;
|
|
297
|
+
private __searchSemantic;
|
|
298
298
|
/**
|
|
299
299
|
* Submits user feedback on results from the Construe extraction endpoint.
|
|
300
300
|
* Feedback includes the full extraction result received and the result the user expected.
|
|
@@ -308,7 +308,7 @@ export declare class ConstrueClient {
|
|
|
308
308
|
* @throws {@link phenoml.construe.ServiceUnavailableError}
|
|
309
309
|
*
|
|
310
310
|
* @example
|
|
311
|
-
* await client.construe.
|
|
311
|
+
* await client.construe.submitFeedback({
|
|
312
312
|
* text: "Patient has type 2 diabetes with hyperglycemia",
|
|
313
313
|
* received_result: {
|
|
314
314
|
* system: {
|
|
@@ -335,8 +335,8 @@ export declare class ConstrueClient {
|
|
|
335
335
|
* detail: "Expected code E11.65 because the text mentions hyperglycemia"
|
|
336
336
|
* })
|
|
337
337
|
*/
|
|
338
|
-
|
|
339
|
-
private
|
|
338
|
+
submitFeedback(request: phenoml.construe.FeedbackRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.FeedbackResponse>;
|
|
339
|
+
private __submitFeedback;
|
|
340
340
|
/**
|
|
341
341
|
* Performs fast full-text search over code IDs and descriptions.
|
|
342
342
|
*
|
|
@@ -364,7 +364,7 @@ export declare class ConstrueClient {
|
|
|
364
364
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
365
365
|
*
|
|
366
366
|
* @param {string} codesystem - Code system name
|
|
367
|
-
* @param {phenoml.construe.
|
|
367
|
+
* @param {phenoml.construe.SearchTextRequest} request
|
|
368
368
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
369
369
|
*
|
|
370
370
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -374,12 +374,12 @@ export declare class ConstrueClient {
|
|
|
374
374
|
* @throws {@link phenoml.construe.NotImplementedError}
|
|
375
375
|
*
|
|
376
376
|
* @example
|
|
377
|
-
* await client.construe.
|
|
377
|
+
* await client.construe.searchText("ICD-10-CM", {
|
|
378
378
|
* q: "E11.65",
|
|
379
379
|
* version: "version",
|
|
380
380
|
* limit: 1
|
|
381
381
|
* })
|
|
382
382
|
*/
|
|
383
|
-
|
|
384
|
-
private
|
|
383
|
+
searchText(codesystem: string, request: phenoml.construe.SearchTextRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.TextSearchResponse>;
|
|
384
|
+
private __searchText;
|
|
385
385
|
}
|
|
@@ -250,12 +250,12 @@ export class ConstrueClient {
|
|
|
250
250
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
251
251
|
*
|
|
252
252
|
* @example
|
|
253
|
-
* await client.construe.
|
|
253
|
+
* await client.construe.listCodeSystems()
|
|
254
254
|
*/
|
|
255
|
-
|
|
256
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
255
|
+
listCodeSystems(requestOptions) {
|
|
256
|
+
return core.HttpResponsePromise.fromPromise(this.__listCodeSystems(requestOptions));
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
__listCodeSystems(requestOptions) {
|
|
259
259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
260
260
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
261
261
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -298,7 +298,7 @@ export class ConstrueClient {
|
|
|
298
298
|
* Returns full metadata for a single code system, including timestamps and builtin status.
|
|
299
299
|
*
|
|
300
300
|
* @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
301
|
-
* @param {phenoml.construe.
|
|
301
|
+
* @param {phenoml.construe.GetCodeSystemRequest} request
|
|
302
302
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
303
303
|
*
|
|
304
304
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -307,14 +307,14 @@ export class ConstrueClient {
|
|
|
307
307
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
308
308
|
*
|
|
309
309
|
* @example
|
|
310
|
-
* await client.construe.
|
|
310
|
+
* await client.construe.getCodeSystem("ICD-10-CM", {
|
|
311
311
|
* version: "2025"
|
|
312
312
|
* })
|
|
313
313
|
*/
|
|
314
|
-
|
|
315
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
314
|
+
getCodeSystem(codesystem, request = {}, requestOptions) {
|
|
315
|
+
return core.HttpResponsePromise.fromPromise(this.__getCodeSystem(codesystem, request, requestOptions));
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
__getCodeSystem(codesystem_1) {
|
|
318
318
|
return __awaiter(this, arguments, void 0, function* (codesystem, request = {}, requestOptions) {
|
|
319
319
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
320
320
|
const { version } = request;
|
|
@@ -370,7 +370,7 @@ export class ConstrueClient {
|
|
|
370
370
|
* Only available on dedicated instances. Large systems may take up to a minute to delete.
|
|
371
371
|
*
|
|
372
372
|
* @param {string} codesystem - Code system name
|
|
373
|
-
* @param {phenoml.construe.
|
|
373
|
+
* @param {phenoml.construe.DeleteCodeSystemRequest} request
|
|
374
374
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
375
375
|
*
|
|
376
376
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -380,14 +380,14 @@ export class ConstrueClient {
|
|
|
380
380
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
381
381
|
*
|
|
382
382
|
* @example
|
|
383
|
-
* await client.construe.
|
|
383
|
+
* await client.construe.deleteCodeSystem("CUSTOM_CODES", {
|
|
384
384
|
* version: "version"
|
|
385
385
|
* })
|
|
386
386
|
*/
|
|
387
|
-
|
|
388
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
387
|
+
deleteCodeSystem(codesystem, request = {}, requestOptions) {
|
|
388
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteCodeSystem(codesystem, request, requestOptions));
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
__deleteCodeSystem(codesystem_1) {
|
|
391
391
|
return __awaiter(this, arguments, void 0, function* (codesystem, request = {}, requestOptions) {
|
|
392
392
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
393
393
|
const { version } = request;
|
|
@@ -446,7 +446,7 @@ export class ConstrueClient {
|
|
|
446
446
|
* Only available on dedicated instances. Builtin systems cannot be exported.
|
|
447
447
|
*
|
|
448
448
|
* @param {string} codesystem - Code system name
|
|
449
|
-
* @param {phenoml.construe.
|
|
449
|
+
* @param {phenoml.construe.ExportCodeSystemRequest} request
|
|
450
450
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
451
451
|
*
|
|
452
452
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -458,14 +458,14 @@ export class ConstrueClient {
|
|
|
458
458
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
459
459
|
*
|
|
460
460
|
* @example
|
|
461
|
-
* await client.construe.
|
|
461
|
+
* await client.construe.exportCodeSystem("CUSTOM_CODES", {
|
|
462
462
|
* version: "version"
|
|
463
463
|
* })
|
|
464
464
|
*/
|
|
465
|
-
|
|
466
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
465
|
+
exportCodeSystem(codesystem, request = {}, requestOptions) {
|
|
466
|
+
return core.HttpResponsePromise.fromPromise(this.__exportCodeSystem(codesystem, request, requestOptions));
|
|
467
467
|
}
|
|
468
|
-
|
|
468
|
+
__exportCodeSystem(codesystem_1) {
|
|
469
469
|
return __awaiter(this, arguments, void 0, function* (codesystem, request = {}, requestOptions) {
|
|
470
470
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
471
471
|
const { version } = request;
|
|
@@ -528,7 +528,7 @@ export class ConstrueClient {
|
|
|
528
528
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
529
529
|
*
|
|
530
530
|
* @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
531
|
-
* @param {phenoml.construe.
|
|
531
|
+
* @param {phenoml.construe.ListCodesRequest} request
|
|
532
532
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
533
533
|
*
|
|
534
534
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -537,16 +537,16 @@ export class ConstrueClient {
|
|
|
537
537
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
538
538
|
*
|
|
539
539
|
* @example
|
|
540
|
-
* await client.construe.
|
|
540
|
+
* await client.construe.listCodes("ICD-10-CM", {
|
|
541
541
|
* version: "2025",
|
|
542
542
|
* cursor: "cursor",
|
|
543
543
|
* limit: 1
|
|
544
544
|
* })
|
|
545
545
|
*/
|
|
546
|
-
|
|
547
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
546
|
+
listCodes(codesystem, request = {}, requestOptions) {
|
|
547
|
+
return core.HttpResponsePromise.fromPromise(this.__listCodes(codesystem, request, requestOptions));
|
|
548
548
|
}
|
|
549
|
-
|
|
549
|
+
__listCodes(codesystem_1) {
|
|
550
550
|
return __awaiter(this, arguments, void 0, function* (codesystem, request = {}, requestOptions) {
|
|
551
551
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
552
552
|
const { version, cursor, limit } = request;
|
|
@@ -604,7 +604,7 @@ export class ConstrueClient {
|
|
|
604
604
|
* @param {string} codesystem - Code system name
|
|
605
605
|
* @param {string} codeID - The code identifier. ICD-10-CM codes are stored without their
|
|
606
606
|
* cosmetic dot (use "E1165", not "E11.65").
|
|
607
|
-
* @param {phenoml.construe.
|
|
607
|
+
* @param {phenoml.construe.GetCodeRequest} request
|
|
608
608
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
609
609
|
*
|
|
610
610
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -613,14 +613,14 @@ export class ConstrueClient {
|
|
|
613
613
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
614
614
|
*
|
|
615
615
|
* @example
|
|
616
|
-
* await client.construe.
|
|
616
|
+
* await client.construe.getCode("ICD-10-CM", "E1165", {
|
|
617
617
|
* version: "version"
|
|
618
618
|
* })
|
|
619
619
|
*/
|
|
620
|
-
|
|
621
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
620
|
+
getCode(codesystem, codeID, request = {}, requestOptions) {
|
|
621
|
+
return core.HttpResponsePromise.fromPromise(this.__getCode(codesystem, codeID, request, requestOptions));
|
|
622
622
|
}
|
|
623
|
-
|
|
623
|
+
__getCode(codesystem_1, codeID_1) {
|
|
624
624
|
return __awaiter(this, arguments, void 0, function* (codesystem, codeID, request = {}, requestOptions) {
|
|
625
625
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
626
626
|
const { version } = request;
|
|
@@ -690,7 +690,7 @@ export class ConstrueClient {
|
|
|
690
690
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
691
691
|
*
|
|
692
692
|
* @param {string} codesystem - Code system name
|
|
693
|
-
* @param {phenoml.construe.
|
|
693
|
+
* @param {phenoml.construe.SearchSemanticRequest} request
|
|
694
694
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
695
695
|
*
|
|
696
696
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -699,16 +699,16 @@ export class ConstrueClient {
|
|
|
699
699
|
* @throws {@link phenoml.construe.InternalServerError}
|
|
700
700
|
*
|
|
701
701
|
* @example
|
|
702
|
-
* await client.construe.
|
|
702
|
+
* await client.construe.searchSemantic("ICD-10-CM", {
|
|
703
703
|
* text: "patient has trouble breathing at night and wakes up gasping",
|
|
704
704
|
* version: "version",
|
|
705
705
|
* limit: 1
|
|
706
706
|
* })
|
|
707
707
|
*/
|
|
708
|
-
|
|
709
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
708
|
+
searchSemantic(codesystem, request, requestOptions) {
|
|
709
|
+
return core.HttpResponsePromise.fromPromise(this.__searchSemantic(codesystem, request, requestOptions));
|
|
710
710
|
}
|
|
711
|
-
|
|
711
|
+
__searchSemantic(codesystem, request, requestOptions) {
|
|
712
712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
713
713
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
714
714
|
const { text, version, limit } = request;
|
|
@@ -774,7 +774,7 @@ export class ConstrueClient {
|
|
|
774
774
|
* @throws {@link phenoml.construe.ServiceUnavailableError}
|
|
775
775
|
*
|
|
776
776
|
* @example
|
|
777
|
-
* await client.construe.
|
|
777
|
+
* await client.construe.submitFeedback({
|
|
778
778
|
* text: "Patient has type 2 diabetes with hyperglycemia",
|
|
779
779
|
* received_result: {
|
|
780
780
|
* system: {
|
|
@@ -801,10 +801,10 @@ export class ConstrueClient {
|
|
|
801
801
|
* detail: "Expected code E11.65 because the text mentions hyperglycemia"
|
|
802
802
|
* })
|
|
803
803
|
*/
|
|
804
|
-
|
|
805
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
804
|
+
submitFeedback(request, requestOptions) {
|
|
805
|
+
return core.HttpResponsePromise.fromPromise(this.__submitFeedback(request, requestOptions));
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
__submitFeedback(request, requestOptions) {
|
|
808
808
|
return __awaiter(this, void 0, void 0, function* () {
|
|
809
809
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
810
810
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -874,7 +874,7 @@ export class ConstrueClient {
|
|
|
874
874
|
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
875
875
|
*
|
|
876
876
|
* @param {string} codesystem - Code system name
|
|
877
|
-
* @param {phenoml.construe.
|
|
877
|
+
* @param {phenoml.construe.SearchTextRequest} request
|
|
878
878
|
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
879
879
|
*
|
|
880
880
|
* @throws {@link phenoml.construe.BadRequestError}
|
|
@@ -884,16 +884,16 @@ export class ConstrueClient {
|
|
|
884
884
|
* @throws {@link phenoml.construe.NotImplementedError}
|
|
885
885
|
*
|
|
886
886
|
* @example
|
|
887
|
-
* await client.construe.
|
|
887
|
+
* await client.construe.searchText("ICD-10-CM", {
|
|
888
888
|
* q: "E11.65",
|
|
889
889
|
* version: "version",
|
|
890
890
|
* limit: 1
|
|
891
891
|
* })
|
|
892
892
|
*/
|
|
893
|
-
|
|
894
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
893
|
+
searchText(codesystem, request, requestOptions) {
|
|
894
|
+
return core.HttpResponsePromise.fromPromise(this.__searchText(codesystem, request, requestOptions));
|
|
895
895
|
}
|
|
896
|
-
|
|
896
|
+
__searchText(codesystem, request, requestOptions) {
|
|
897
897
|
return __awaiter(this, void 0, void 0, function* () {
|
|
898
898
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
899
899
|
const { q, version, limit } = request;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* limit: 1
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface ListCodesRequest {
|
|
10
10
|
/** Specific version of the code system. Required if multiple versions exist. */
|
|
11
11
|
version?: string;
|
|
12
12
|
/** Pagination cursor from previous response */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* limit: 1
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface SearchSemanticRequest {
|
|
10
10
|
/** Natural language text to find semantically similar codes for */
|
|
11
11
|
text: string;
|
|
12
12
|
/** Specific version of the code system */
|