phenoml 16.0.0 → 17.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 +3 -59
- package/dist/cjs/api/resources/agent/client/Client.js +7 -232
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadGatewayError.js → agent/errors/GatewayTimeoutError.js} +5 -5
- package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/errors/index.js +1 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +305 -0
- package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.d.ts → resources/chat/client/requests/ListMessagesRequest.d.ts} +4 -4
- package/dist/cjs/api/resources/agent/resources/chat/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/chat/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.js +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/index.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/index.js +1 -1
- package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestOrder.js → resources/chat/types/ListMessagesRequestOrder.js} +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.ts +7 -0
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.d.ts → resources/chat/types/ListMessagesResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/chat/types/index.js +19 -0
- package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/index.js +4 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/index.js +0 -3
- package/dist/cjs/api/resources/construe/client/Client.d.ts +6 -330
- package/dist/cjs/api/resources/construe/client/Client.js +8 -838
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +0 -9
- package/dist/cjs/api/resources/construe/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/construe/exports.d.ts +1 -0
- package/dist/cjs/api/resources/construe/exports.js +1 -0
- package/dist/cjs/api/resources/construe/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/index.js +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.d.ts +135 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +433 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.js +17 -0
- package/dist/{esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.d.ts → resources/codeSystems/client/requests/FindRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.js +2 -3
- package/dist/cjs/api/resources/construe/resources/codeSystems/index.d.ts +2 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/index.js +18 -0
- package/dist/{esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts → cjs/api/resources/construe/resources/codeSystems/types/UploadResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.js +17 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +227 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +528 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/index.js +17 -0
- package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.d.ts → resources/codes/client/requests/CodesListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.ts +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetCodeRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/construe/resources/codes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/construe/resources/codes/exports.js +21 -0
- package/dist/cjs/api/resources/construe/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/construe/resources/index.js +44 -0
- package/dist/cjs/api/resources/construe/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/construe/types/index.js +0 -1
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +50 -75
- package/dist/cjs/api/resources/fhir/client/Client.js +75 -205
- package/dist/cjs/api/resources/fhir/client/requests/CreateRequest.d.ts +2 -3
- package/dist/cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts +19 -16
- package/dist/cjs/api/resources/fhir/client/requests/SearchRequest.d.ts +0 -8
- package/dist/cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts +3 -4
- package/dist/cjs/api/resources/fhir/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhir/index.js +0 -1
- package/dist/cjs/api/resources/fhir/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/fhir/types/index.js +0 -4
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -74
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +5 -221
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/fhirProvider/exports.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/exports.js +1 -0
- package/dist/cjs/api/resources/fhirProvider/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/index.js +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +280 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.js +18 -0
- package/dist/cjs/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.ts → resources/authConfig/types/RemoveResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → fhirProvider}/resources/index.js +7 -2
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.js +0 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +11 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +33 -3
- package/dist/cjs/api/resources/{fhir/errors/ServiceUnavailableError.d.ts → lang2Fhir/errors/ClientClosedRequestError.d.ts} +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +54 -0
- package/dist/cjs/api/resources/{fhir/errors/UnauthorizedError.d.ts → lang2Fhir/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.js → lang2Fhir/errors/GatewayTimeoutError.js} +5 -5
- package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +3 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/index.js +3 -1
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +7 -4
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +6 -12
- package/dist/{esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts → cjs/api/resources/summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.ts → GetResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.ts → ListResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -4
- package/dist/cjs/api/resources/summary/resources/templates/types/index.js +4 -4
- package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/tools/client/Client.js +8 -12
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.d.ts → tools/errors/NotFoundError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.js → tools/errors/NotFoundError.js} +5 -5
- package/dist/cjs/api/resources/tools/errors/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/index.js +1 -1
- package/dist/cjs/api/resources/tools/resources/index.d.ts +3 -2
- package/dist/cjs/api/resources/tools/resources/index.js +4 -3
- package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.ts +21 -19
- package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.js +20 -16
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/exports.js +21 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.ts +19 -17
- package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.js +22 -16
- package/dist/cjs/api/resources/tools/resources/mcpTools/client/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/exports.js +21 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/index.js +17 -0
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/workflows/client/Client.js +9 -0
- 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 +3 -59
- package/dist/esm/api/resources/agent/client/Client.mjs +6 -231
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/{fhir/errors/InternalServerError.d.mts → agent/errors/GatewayTimeoutError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/InternalServerError.mjs → agent/errors/GatewayTimeoutError.mjs} +3 -3
- package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +268 -0
- package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.d.mts → resources/chat/client/requests/ListMessagesRequest.d.mts} +4 -4
- package/dist/esm/api/resources/agent/resources/chat/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/chat/exports.d.mts +2 -0
- package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/chat/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/chat/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestOrder.mjs → resources/chat/types/ListMessagesRequestOrder.mjs} +1 -1
- package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.mts +7 -0
- package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
- package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.d.mts → resources/chat/types/ListMessagesResponse.d.mts} +2 -2
- package/dist/esm/api/resources/agent/resources/chat/types/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/chat/types/index.mjs +3 -0
- package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
- package/dist/esm/api/resources/agent/types/index.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/index.mjs +0 -3
- package/dist/esm/api/resources/construe/client/Client.d.mts +6 -330
- package/dist/esm/api/resources/construe/client/Client.mjs +8 -838
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -9
- package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/construe/exports.d.mts +1 -0
- package/dist/esm/api/resources/construe/exports.mjs +1 -0
- package/dist/esm/api/resources/construe/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.d.mts +135 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +396 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/index.mjs +1 -0
- package/dist/{cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.mts → resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.d.mts → resources/codeSystems/client/requests/FindRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/exports.d.mts +2 -0
- package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.mjs +1 -2
- package/dist/esm/api/resources/construe/resources/codeSystems/index.d.mts +2 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/index.mjs +2 -0
- package/dist/{cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts → esm/api/resources/construe/resources/codeSystems/types/UploadResponse.d.mts} +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/types/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/types/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +227 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +491 -0
- package/dist/esm/api/resources/construe/resources/codes/client/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codes/client/index.mjs +1 -0
- package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.d.mts → resources/codes/client/requests/CodesListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.mts +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/construe/resources/codes/exports.d.mts +2 -0
- package/dist/esm/api/resources/construe/resources/codes/exports.mjs +3 -0
- package/dist/esm/api/resources/construe/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/construe/resources/index.mjs +5 -0
- package/dist/esm/api/resources/construe/types/index.d.mts +0 -1
- package/dist/esm/api/resources/construe/types/index.mjs +0 -1
- package/dist/esm/api/resources/fhir/client/Client.d.mts +50 -75
- package/dist/esm/api/resources/fhir/client/Client.mjs +75 -205
- package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +2 -3
- package/dist/esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts +19 -16
- package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +0 -8
- package/dist/esm/api/resources/fhir/client/requests/UpsertRequest.d.mts +3 -4
- package/dist/esm/api/resources/fhir/index.d.mts +0 -1
- package/dist/esm/api/resources/fhir/index.mjs +0 -1
- package/dist/esm/api/resources/fhir/types/index.d.mts +0 -4
- package/dist/esm/api/resources/fhir/types/index.mjs +0 -4
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -74
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +5 -221
- package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/fhirProvider/exports.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/exports.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +243 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.mts → resources/authConfig/types/RemoveResponse.d.mts} +2 -2
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/fhirProvider/resources/index.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +0 -1
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +11 -1
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +33 -3
- package/dist/esm/api/resources/{fhir/errors/ServiceUnavailableError.d.mts → lang2Fhir/errors/ClientClosedRequestError.d.mts} +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +17 -0
- package/dist/esm/api/resources/{fhir/errors/UnauthorizedError.d.mts → lang2Fhir/errors/GatewayTimeoutError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/BadGatewayError.mjs → lang2Fhir/errors/GatewayTimeoutError.mjs} +3 -3
- package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +3 -1
- package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +3 -1
- package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +7 -4
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +6 -12
- package/dist/{cjs/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.ts → esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.mts → GetResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.mts → ListResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -4
- package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -4
- package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
- package/dist/esm/api/resources/{fhir/errors/BadRequestError.d.mts → tools/errors/NotFoundError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs} +3 -3
- package/dist/esm/api/resources/tools/errors/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/index.d.mts +3 -2
- package/dist/esm/api/resources/tools/resources/index.mjs +3 -2
- package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.mts +21 -19
- package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.mjs +18 -14
- package/dist/esm/api/resources/tools/resources/mcpServers/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/exports.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/exports.mjs +3 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.mts +19 -17
- package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.mjs +20 -14
- package/dist/esm/api/resources/tools/resources/mcpTools/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/exports.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/exports.mjs +3 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/workflows/client/Client.mjs +9 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +353 -660
- package/package.json +57 -13
- package/reference.md +235 -211
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +0 -5
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +0 -7
- package/dist/cjs/api/resources/fhir/errors/BadGatewayError.d.ts +0 -6
- package/dist/cjs/api/resources/fhir/errors/ServiceUnavailableError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.d.ts +0 -6
- package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/index.d.ts +0 -7
- package/dist/cjs/api/resources/fhir/errors/index.js +0 -23
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -11
- package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +0 -54
- package/dist/cjs/api/resources/fhir/types/FhirBundle.js +0 -23
- package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -24
- package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +0 -2
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -5
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +0 -54
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesGetResponse.js +0 -3
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesListResponse.js +0 -3
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.js +0 -3
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -5
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +0 -54
- package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +0 -2
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +0 -2
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +0 -5
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +0 -7
- package/dist/esm/api/resources/fhir/errors/BadGatewayError.d.mts +0 -6
- package/dist/esm/api/resources/fhir/errors/ServiceUnavailableError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.d.mts +0 -6
- package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/index.d.mts +0 -7
- package/dist/esm/api/resources/fhir/errors/index.mjs +0 -7
- package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -11
- package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +0 -54
- package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +0 -20
- package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -24
- package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +0 -2
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -5
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -17
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.mjs +0 -2
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesListResponse.mjs +0 -2
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.mjs +0 -2
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -5
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -17
- package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +0 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +0 -2
- 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/exports.d.mts +0 -2
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.js +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.js +0 -0
- /package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExportCodeSystemRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/FindRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.js +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetCodeRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/SearchSemanticRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/SearchTextRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/construe/{types/UploadCodeSystemResponse.js → resources/codes/client/requests/SearchTextRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.js +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.js +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.js +0 -0
- /package/dist/cjs/api/resources/{fhir/types/ErrorResponse.js → fhirProvider/resources/authConfig/types/RemoveResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.ts +0 -0
- /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.js +0 -0
- /package/dist/cjs/api/resources/{fhir/types/FhirResource.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhir/types/SearchResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.js → UpdateResponse.js} +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.js +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.mts +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.mts +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExportCodeSystemRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/FindRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.mjs +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetCodeRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/SearchSemanticRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.mts +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/SearchTextRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.mts +0 -0
- /package/dist/esm/api/resources/construe/{types/UploadCodeSystemResponse.mjs → resources/codes/client/requests/SearchTextRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.mjs +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.mjs +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/index.d.mts → fhirProvider/resources/authConfig/client/requests/index.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir/types/ErrorResponse.mjs → fhirProvider/resources/authConfig/types/RemoveResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.mts +0 -0
- /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.mjs +0 -0
- /package/dist/esm/api/resources/{fhir/types/FhirResource.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir/types/SearchResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.mjs +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.mts +0 -0
|
@@ -2,6 +2,8 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClie
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as phenoml from "../../../index.js";
|
|
5
|
+
import { CodeSystemsClient } from "../resources/codeSystems/client/Client.js";
|
|
6
|
+
import { CodesClient } from "../resources/codes/client/Client.js";
|
|
5
7
|
export declare namespace ConstrueClient {
|
|
6
8
|
type Options = BaseClientOptions;
|
|
7
9
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -9,292 +11,11 @@ export declare namespace ConstrueClient {
|
|
|
9
11
|
}
|
|
10
12
|
export declare class ConstrueClient {
|
|
11
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<ConstrueClient.Options>;
|
|
14
|
+
protected _codeSystems: CodeSystemsClient | undefined;
|
|
15
|
+
protected _codes: CodesClient | undefined;
|
|
12
16
|
constructor(options?: ConstrueClient.Options);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
* Returns 202 immediately; embedding generation runs asynchronously. Poll
|
|
16
|
-
* GET /construe/codes/systems/{codesystem}?version={version} to check when status
|
|
17
|
-
* transitions from "processing" to "ready" or "failed".
|
|
18
|
-
*
|
|
19
|
-
* @param {phenoml.construe.UploadRequest} request
|
|
20
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
|
-
*
|
|
22
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
23
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
24
|
-
* @throws {@link phenoml.construe.ForbiddenError}
|
|
25
|
-
* @throws {@link phenoml.construe.ConflictError}
|
|
26
|
-
* @throws {@link phenoml.construe.FailedDependencyError}
|
|
27
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* await client.construe.uploadCodeSystem({
|
|
31
|
-
* name: "CUSTOM_CODES",
|
|
32
|
-
* version: "1.0",
|
|
33
|
-
* format: "json",
|
|
34
|
-
* codes: [{
|
|
35
|
-
* code: "X001",
|
|
36
|
-
* description: "Example custom code 1"
|
|
37
|
-
* }, {
|
|
38
|
-
* code: "X002",
|
|
39
|
-
* description: "Example custom code 2"
|
|
40
|
-
* }]
|
|
41
|
-
* })
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* await client.construe.uploadCodeSystem({
|
|
45
|
-
* name: "CUSTOM_CODES",
|
|
46
|
-
* version: "1.0",
|
|
47
|
-
* format: "csv",
|
|
48
|
-
* file: "Y29kZSxkZXNjcmlwdGlvbgpYMDAxLEV4YW1wbGUgY3VzdG9tIGNvZGUgMQo=",
|
|
49
|
-
* code_col: "code",
|
|
50
|
-
* desc_col: "description"
|
|
51
|
-
* })
|
|
52
|
-
*/
|
|
53
|
-
uploadCodeSystem(request: phenoml.construe.UploadRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.UploadCodeSystemResponse>;
|
|
54
|
-
private __uploadCodeSystem;
|
|
55
|
-
/**
|
|
56
|
-
* Converts natural language text into structured medical codes.
|
|
57
|
-
*
|
|
58
|
-
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
59
|
-
*
|
|
60
|
-
* @param {phenoml.construe.ExtractRequest} request
|
|
61
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
-
*
|
|
63
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
64
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
65
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
66
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
67
|
-
* @throws {@link phenoml.construe.ServiceUnavailableError}
|
|
68
|
-
* @throws {@link phenoml.construe.GatewayTimeoutError}
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* await client.construe.extractCodes({
|
|
72
|
-
* text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney.",
|
|
73
|
-
* system: {
|
|
74
|
-
* name: "ICD-10-CM",
|
|
75
|
-
* version: "2025"
|
|
76
|
-
* }
|
|
77
|
-
* })
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* await client.construe.extractCodes({
|
|
81
|
-
* text: "45-year-old male presents with chest pain radiating to left arm, shortness of breath, and diaphoresis. ECG shows ST elevation in leads II, III, and aVF.",
|
|
82
|
-
* system: {
|
|
83
|
-
* name: "SNOMED_CT_US_LITE",
|
|
84
|
-
* version: "20240901"
|
|
85
|
-
* },
|
|
86
|
-
* config: {
|
|
87
|
-
* chunking_method: "sentences",
|
|
88
|
-
* validation_method: "simple",
|
|
89
|
-
* include_rationale: true,
|
|
90
|
-
* include_citations: true
|
|
91
|
-
* }
|
|
92
|
-
* })
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* await client.construe.extractCodes({
|
|
96
|
-
* text: "Start Metformin 500mg twice daily for type 2 diabetes. Continue Lisinopril 10mg daily for hypertension. Add Atorvastatin 20mg at bedtime.",
|
|
97
|
-
* system: {
|
|
98
|
-
* name: "RXNORM",
|
|
99
|
-
* version: "11042024"
|
|
100
|
-
* },
|
|
101
|
-
* config: {
|
|
102
|
-
* validation_method: "medication_search",
|
|
103
|
-
* include_rationale: true
|
|
104
|
-
* }
|
|
105
|
-
* })
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* await client.construe.extractCodes({
|
|
109
|
-
* text: "Patient diagnosed with Type 2 diabetes mellitus with diabetic chronic kidney disease, stage 3.",
|
|
110
|
-
* system: {
|
|
111
|
-
* name: "ICD-10-CM",
|
|
112
|
-
* version: "2025"
|
|
113
|
-
* },
|
|
114
|
-
* config: {
|
|
115
|
-
* validation_method: "simple",
|
|
116
|
-
* include_ancestors: true
|
|
117
|
-
* }
|
|
118
|
-
* })
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* await client.construe.extractCodes({
|
|
122
|
-
* text: "5-year-old male with seizures, severe intellectual disability, microcephaly, and hypotonia.",
|
|
123
|
-
* system: {
|
|
124
|
-
* name: "HPO",
|
|
125
|
-
* version: "2025"
|
|
126
|
-
* },
|
|
127
|
-
* config: {
|
|
128
|
-
* chunking_method: "fasthpocr",
|
|
129
|
-
* validation_method: "none",
|
|
130
|
-
* include_rationale: false
|
|
131
|
-
* }
|
|
132
|
-
* })
|
|
133
|
-
*/
|
|
134
|
-
extractCodes(request: phenoml.construe.ExtractRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExtractCodesResult>;
|
|
135
|
-
private __extractCodes;
|
|
136
|
-
/**
|
|
137
|
-
* Returns the terminology server's catalog of available code systems, including both built-in standard terminologies and custom uploaded systems.
|
|
138
|
-
*
|
|
139
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
140
|
-
*
|
|
141
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
142
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* await client.construe.listCodeSystems()
|
|
146
|
-
*/
|
|
147
|
-
listCodeSystems(requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ListCodeSystemsResponse>;
|
|
148
|
-
private __listCodeSystems;
|
|
149
|
-
/**
|
|
150
|
-
* Returns full metadata for a single code system, including timestamps and builtin status.
|
|
151
|
-
*
|
|
152
|
-
* @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
153
|
-
* @param {phenoml.construe.GetCodeSystemRequest} request
|
|
154
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
155
|
-
*
|
|
156
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
157
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
158
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
159
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
160
|
-
*
|
|
161
|
-
* @example
|
|
162
|
-
* await client.construe.getCodeSystem("ICD-10-CM", {
|
|
163
|
-
* version: "2025"
|
|
164
|
-
* })
|
|
165
|
-
*/
|
|
166
|
-
getCodeSystem(codesystem: string, request?: phenoml.construe.GetCodeSystemRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeSystemDetailResponse>;
|
|
167
|
-
private __getCodeSystem;
|
|
168
|
-
/**
|
|
169
|
-
* Deletes a custom (non-builtin) code system and all its codes. Builtin systems cannot be deleted.
|
|
170
|
-
* Only available on dedicated instances. Large systems may take up to a minute to delete.
|
|
171
|
-
*
|
|
172
|
-
* @param {string} codesystem - Code system name
|
|
173
|
-
* @param {phenoml.construe.DeleteCodeSystemRequest} request
|
|
174
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
175
|
-
*
|
|
176
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
177
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
178
|
-
* @throws {@link phenoml.construe.ForbiddenError}
|
|
179
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
180
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* await client.construe.deleteCodeSystem("CUSTOM_CODES", {
|
|
184
|
-
* version: "version"
|
|
185
|
-
* })
|
|
186
|
-
*/
|
|
187
|
-
deleteCodeSystem(codesystem: string, request?: phenoml.construe.DeleteCodeSystemRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.DeleteCodeSystemResponse>;
|
|
188
|
-
private __deleteCodeSystem;
|
|
189
|
-
/**
|
|
190
|
-
* Exports a custom (non-builtin) code system as a JSON file compatible with the upload format.
|
|
191
|
-
* The exported file can be re-uploaded directly via POST /construe/upload with format "json".
|
|
192
|
-
* Only available on dedicated instances. Builtin systems cannot be exported.
|
|
193
|
-
*
|
|
194
|
-
* @param {string} codesystem - Code system name
|
|
195
|
-
* @param {phenoml.construe.ExportCodeSystemRequest} request
|
|
196
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
-
*
|
|
198
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
199
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
200
|
-
* @throws {@link phenoml.construe.ForbiddenError}
|
|
201
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
202
|
-
* @throws {@link phenoml.construe.ConflictError}
|
|
203
|
-
* @throws {@link phenoml.construe.FailedDependencyError}
|
|
204
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
205
|
-
*
|
|
206
|
-
* @example
|
|
207
|
-
* await client.construe.exportCodeSystem("CUSTOM_CODES", {
|
|
208
|
-
* version: "version"
|
|
209
|
-
* })
|
|
210
|
-
*/
|
|
211
|
-
exportCodeSystem(codesystem: string, request?: phenoml.construe.ExportCodeSystemRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExportCodeSystemResponse>;
|
|
212
|
-
private __exportCodeSystem;
|
|
213
|
-
/**
|
|
214
|
-
* Returns a paginated list of all codes in the specified code system from the terminology server.
|
|
215
|
-
*
|
|
216
|
-
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
217
|
-
*
|
|
218
|
-
* @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
219
|
-
* @param {phenoml.construe.ListCodesRequest} request
|
|
220
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
|
-
*
|
|
222
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
223
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
224
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
225
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
226
|
-
*
|
|
227
|
-
* @example
|
|
228
|
-
* await client.construe.listCodes("ICD-10-CM", {
|
|
229
|
-
* version: "2025",
|
|
230
|
-
* cursor: "cursor",
|
|
231
|
-
* limit: 1
|
|
232
|
-
* })
|
|
233
|
-
*/
|
|
234
|
-
listCodes(codesystem: string, request?: phenoml.construe.ListCodesRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ListCodesResponse>;
|
|
235
|
-
private __listCodes;
|
|
236
|
-
/**
|
|
237
|
-
* Looks up a specific code in the terminology server and returns its details.
|
|
238
|
-
*
|
|
239
|
-
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
240
|
-
*
|
|
241
|
-
* @param {string} codesystem - Code system name
|
|
242
|
-
* @param {string} codeID - The code identifier. ICD-10-CM codes are stored without their
|
|
243
|
-
* cosmetic dot (use "E1165", not "E11.65").
|
|
244
|
-
* @param {phenoml.construe.GetCodeRequest} request
|
|
245
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
246
|
-
*
|
|
247
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
248
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
249
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
250
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
251
|
-
*
|
|
252
|
-
* @example
|
|
253
|
-
* await client.construe.getCode("ICD-10-CM", "E1165", {
|
|
254
|
-
* version: "version"
|
|
255
|
-
* })
|
|
256
|
-
*/
|
|
257
|
-
getCode(codesystem: string, codeID: string, request?: phenoml.construe.GetCodeRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeResponse>;
|
|
258
|
-
private __getCode;
|
|
259
|
-
/**
|
|
260
|
-
* Performs semantic similarity search using vector embeddings.
|
|
261
|
-
*
|
|
262
|
-
* **Availability**: This endpoint works for both **built-in and custom** code systems.
|
|
263
|
-
*
|
|
264
|
-
* **When to use**: Best for natural language queries where you want to find conceptually
|
|
265
|
-
* related codes, even when different terminology is used. The search understands meaning,
|
|
266
|
-
* not just keywords.
|
|
267
|
-
*
|
|
268
|
-
* **Examples**:
|
|
269
|
-
* - Query "trouble breathing at night" finds codes like "Sleep apnea", "Orthopnea",
|
|
270
|
-
* "Nocturnal dyspnea" — semantically related but no exact keyword matches
|
|
271
|
-
* - Query "heart problems" finds "Myocardial infarction", "Cardiac arrest", "Arrhythmia"
|
|
272
|
-
*
|
|
273
|
-
* **Trade-offs**: Slower than text search (requires embedding generation), but finds
|
|
274
|
-
* conceptually similar results that keyword search would miss.
|
|
275
|
-
*
|
|
276
|
-
* See also: `/search/text` for faster keyword-based lookup with typo tolerance.
|
|
277
|
-
*
|
|
278
|
-
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
279
|
-
*
|
|
280
|
-
* @param {string} codesystem - Code system name
|
|
281
|
-
* @param {phenoml.construe.SearchSemanticRequest} request
|
|
282
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
283
|
-
*
|
|
284
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
285
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
286
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
287
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
288
|
-
*
|
|
289
|
-
* @example
|
|
290
|
-
* await client.construe.searchSemantic("ICD-10-CM", {
|
|
291
|
-
* text: "patient has trouble breathing at night and wakes up gasping",
|
|
292
|
-
* version: "version",
|
|
293
|
-
* limit: 1
|
|
294
|
-
* })
|
|
295
|
-
*/
|
|
296
|
-
searchSemantic(codesystem: string, request: phenoml.construe.SearchSemanticRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.SemanticSearchResponse>;
|
|
297
|
-
private __searchSemantic;
|
|
17
|
+
get codeSystems(): CodeSystemsClient;
|
|
18
|
+
get codes(): CodesClient;
|
|
298
19
|
/**
|
|
299
20
|
* Submits user feedback on results from the Construe extraction endpoint.
|
|
300
21
|
* Feedback includes the full extraction result received and the result the user expected.
|
|
@@ -337,49 +58,4 @@ export declare class ConstrueClient {
|
|
|
337
58
|
*/
|
|
338
59
|
submitFeedback(request: phenoml.construe.FeedbackRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.FeedbackResponse>;
|
|
339
60
|
private __submitFeedback;
|
|
340
|
-
/**
|
|
341
|
-
* Performs fast full-text search over code IDs and descriptions.
|
|
342
|
-
*
|
|
343
|
-
* **Availability**: This endpoint is only available for **built-in code systems**.
|
|
344
|
-
* Custom code systems uploaded via `/construe/upload` are not indexed for full-text search
|
|
345
|
-
* and will return empty results. Use `/search/semantic` to search custom code systems.
|
|
346
|
-
*
|
|
347
|
-
* **When to use**: Best for autocomplete UIs, code lookup, or when users know part of
|
|
348
|
-
* the code ID or specific keywords. Fast response times suitable for typeahead interfaces.
|
|
349
|
-
*
|
|
350
|
-
* **Features**:
|
|
351
|
-
* - Substring matching on code IDs (e.g., "11.65" finds "E11.65")
|
|
352
|
-
* - Typo tolerance on descriptions (not on code IDs)
|
|
353
|
-
* - Fast response times (~10-50ms)
|
|
354
|
-
*
|
|
355
|
-
* **Examples**:
|
|
356
|
-
* - Query "E11" finds all codes starting with E11 (diabetes codes)
|
|
357
|
-
* - Query "diabtes" (typo) still finds "diabetes" codes
|
|
358
|
-
*
|
|
359
|
-
* **Trade-offs**: Faster than semantic search, but only matches keywords/substrings.
|
|
360
|
-
* Won't find conceptually related codes with different terminology.
|
|
361
|
-
*
|
|
362
|
-
* See also: `/search/semantic` for finding conceptually similar codes.
|
|
363
|
-
*
|
|
364
|
-
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
365
|
-
*
|
|
366
|
-
* @param {string} codesystem - Code system name
|
|
367
|
-
* @param {phenoml.construe.SearchTextRequest} request
|
|
368
|
-
* @param {ConstrueClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
369
|
-
*
|
|
370
|
-
* @throws {@link phenoml.construe.BadRequestError}
|
|
371
|
-
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
372
|
-
* @throws {@link phenoml.construe.NotFoundError}
|
|
373
|
-
* @throws {@link phenoml.construe.InternalServerError}
|
|
374
|
-
* @throws {@link phenoml.construe.NotImplementedError}
|
|
375
|
-
*
|
|
376
|
-
* @example
|
|
377
|
-
* await client.construe.searchText("ICD-10-CM", {
|
|
378
|
-
* q: "E11.65",
|
|
379
|
-
* version: "version",
|
|
380
|
-
* limit: 1
|
|
381
|
-
* })
|
|
382
|
-
*/
|
|
383
|
-
searchText(codesystem: string, request: phenoml.construe.SearchTextRequest, requestOptions?: ConstrueClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.TextSearchResponse>;
|
|
384
|
-
private __searchText;
|
|
385
61
|
}
|