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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./UploadResponse.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./UploadResponse.mjs";
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as phenoml from "../../../../../index.mjs";
|
|
5
|
+
export declare namespace CodesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Extract and search codes within a code system.
|
|
12
|
+
*/
|
|
13
|
+
export declare class CodesClient {
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
|
|
15
|
+
constructor(options?: CodesClient.Options);
|
|
16
|
+
/**
|
|
17
|
+
* Converts natural language text into structured medical codes.
|
|
18
|
+
*
|
|
19
|
+
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
20
|
+
*
|
|
21
|
+
* @param {phenoml.construe.ExtractRequest} request
|
|
22
|
+
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @throws {@link phenoml.construe.BadRequestError}
|
|
25
|
+
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
26
|
+
* @throws {@link phenoml.construe.NotFoundError}
|
|
27
|
+
* @throws {@link phenoml.construe.InternalServerError}
|
|
28
|
+
* @throws {@link phenoml.construe.ServiceUnavailableError}
|
|
29
|
+
* @throws {@link phenoml.construe.GatewayTimeoutError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.construe.codes.extract({
|
|
33
|
+
* text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney.",
|
|
34
|
+
* system: {
|
|
35
|
+
* name: "ICD-10-CM",
|
|
36
|
+
* version: "2025"
|
|
37
|
+
* }
|
|
38
|
+
* })
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.construe.codes.extract({
|
|
42
|
+
* 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.",
|
|
43
|
+
* system: {
|
|
44
|
+
* name: "SNOMED_CT_US_LITE",
|
|
45
|
+
* version: "20240901"
|
|
46
|
+
* },
|
|
47
|
+
* config: {
|
|
48
|
+
* chunking_method: "sentences",
|
|
49
|
+
* validation_method: "simple",
|
|
50
|
+
* include_rationale: true,
|
|
51
|
+
* include_citations: true
|
|
52
|
+
* }
|
|
53
|
+
* })
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.construe.codes.extract({
|
|
57
|
+
* text: "Start Metformin 500mg twice daily for type 2 diabetes. Continue Lisinopril 10mg daily for hypertension. Add Atorvastatin 20mg at bedtime.",
|
|
58
|
+
* system: {
|
|
59
|
+
* name: "RXNORM",
|
|
60
|
+
* version: "11042024"
|
|
61
|
+
* },
|
|
62
|
+
* config: {
|
|
63
|
+
* validation_method: "medication_search",
|
|
64
|
+
* include_rationale: true
|
|
65
|
+
* }
|
|
66
|
+
* })
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.construe.codes.extract({
|
|
70
|
+
* text: "Patient diagnosed with Type 2 diabetes mellitus with diabetic chronic kidney disease, stage 3.",
|
|
71
|
+
* system: {
|
|
72
|
+
* name: "ICD-10-CM",
|
|
73
|
+
* version: "2025"
|
|
74
|
+
* },
|
|
75
|
+
* config: {
|
|
76
|
+
* validation_method: "simple",
|
|
77
|
+
* include_ancestors: true
|
|
78
|
+
* }
|
|
79
|
+
* })
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await client.construe.codes.extract({
|
|
83
|
+
* text: "5-year-old male with seizures, severe intellectual disability, microcephaly, and hypotonia.",
|
|
84
|
+
* system: {
|
|
85
|
+
* name: "HPO",
|
|
86
|
+
* version: "2025"
|
|
87
|
+
* },
|
|
88
|
+
* config: {
|
|
89
|
+
* chunking_method: "fasthpocr",
|
|
90
|
+
* validation_method: "none",
|
|
91
|
+
* include_rationale: false
|
|
92
|
+
* }
|
|
93
|
+
* })
|
|
94
|
+
*/
|
|
95
|
+
extract(request: phenoml.construe.ExtractRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExtractCodesResult>;
|
|
96
|
+
private __extract;
|
|
97
|
+
/**
|
|
98
|
+
* Returns a paginated list of all codes in the specified code system from the terminology server.
|
|
99
|
+
*
|
|
100
|
+
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
101
|
+
*
|
|
102
|
+
* @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
103
|
+
* @param {phenoml.construe.CodesListRequest} request
|
|
104
|
+
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link phenoml.construe.BadRequestError}
|
|
107
|
+
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
108
|
+
* @throws {@link phenoml.construe.NotFoundError}
|
|
109
|
+
* @throws {@link phenoml.construe.InternalServerError}
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* await client.construe.codes.list("ICD-10-CM", {
|
|
113
|
+
* version: "2025",
|
|
114
|
+
* cursor: "cursor",
|
|
115
|
+
* limit: 1
|
|
116
|
+
* })
|
|
117
|
+
*/
|
|
118
|
+
list(codesystem: string, request?: phenoml.construe.CodesListRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ListCodesResponse>;
|
|
119
|
+
private __list;
|
|
120
|
+
/**
|
|
121
|
+
* Looks up a specific code in the terminology server and returns its details.
|
|
122
|
+
*
|
|
123
|
+
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
124
|
+
*
|
|
125
|
+
* @param {string} codesystem - Code system name
|
|
126
|
+
* @param {string} codeID - The code identifier. ICD-10-CM codes are stored without their
|
|
127
|
+
* cosmetic dot (use "E1165", not "E11.65").
|
|
128
|
+
* @param {phenoml.construe.LookupRequest} request
|
|
129
|
+
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link phenoml.construe.BadRequestError}
|
|
132
|
+
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
133
|
+
* @throws {@link phenoml.construe.NotFoundError}
|
|
134
|
+
* @throws {@link phenoml.construe.InternalServerError}
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* await client.construe.codes.lookup("ICD-10-CM", "E1165", {
|
|
138
|
+
* version: "version"
|
|
139
|
+
* })
|
|
140
|
+
*/
|
|
141
|
+
lookup(codesystem: string, codeID: string, request?: phenoml.construe.LookupRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeResponse>;
|
|
142
|
+
private __lookup;
|
|
143
|
+
/**
|
|
144
|
+
* Performs semantic similarity search using vector embeddings.
|
|
145
|
+
*
|
|
146
|
+
* **Availability**: This endpoint works for both **built-in and custom** code systems.
|
|
147
|
+
*
|
|
148
|
+
* **When to use**: Best for natural language queries where you want to find conceptually
|
|
149
|
+
* related codes, even when different terminology is used. The search understands meaning,
|
|
150
|
+
* not just keywords.
|
|
151
|
+
*
|
|
152
|
+
* **Examples**:
|
|
153
|
+
* - Query "trouble breathing at night" finds codes like "Sleep apnea", "Orthopnea",
|
|
154
|
+
* "Nocturnal dyspnea" — semantically related but no exact keyword matches
|
|
155
|
+
* - Query "heart problems" finds "Myocardial infarction", "Cardiac arrest", "Arrhythmia"
|
|
156
|
+
*
|
|
157
|
+
* **Trade-offs**: Slower than text search (requires embedding generation), but finds
|
|
158
|
+
* conceptually similar results that keyword search would miss.
|
|
159
|
+
*
|
|
160
|
+
* See also: `/search/text` for faster keyword-based lookup with typo tolerance.
|
|
161
|
+
*
|
|
162
|
+
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
163
|
+
*
|
|
164
|
+
* @param {string} codesystem - Code system name
|
|
165
|
+
* @param {phenoml.construe.SearchSemanticRequest} request
|
|
166
|
+
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
|
+
*
|
|
168
|
+
* @throws {@link phenoml.construe.BadRequestError}
|
|
169
|
+
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
170
|
+
* @throws {@link phenoml.construe.NotFoundError}
|
|
171
|
+
* @throws {@link phenoml.construe.InternalServerError}
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* await client.construe.codes.searchSemantic("ICD-10-CM", {
|
|
175
|
+
* text: "patient has trouble breathing at night and wakes up gasping",
|
|
176
|
+
* version: "version",
|
|
177
|
+
* limit: 1
|
|
178
|
+
* })
|
|
179
|
+
*/
|
|
180
|
+
searchSemantic(codesystem: string, request: phenoml.construe.SearchSemanticRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.SemanticSearchResponse>;
|
|
181
|
+
private __searchSemantic;
|
|
182
|
+
/**
|
|
183
|
+
* Performs fast full-text search over code IDs and descriptions.
|
|
184
|
+
*
|
|
185
|
+
* **Availability**: This endpoint is only available for **built-in code systems**.
|
|
186
|
+
* Custom code systems uploaded via `/construe/upload` are not indexed for full-text search
|
|
187
|
+
* and will return empty results. Use `/search/semantic` to search custom code systems.
|
|
188
|
+
*
|
|
189
|
+
* **When to use**: Best for autocomplete UIs, code lookup, or when users know part of
|
|
190
|
+
* the code ID or specific keywords. Fast response times suitable for typeahead interfaces.
|
|
191
|
+
*
|
|
192
|
+
* **Features**:
|
|
193
|
+
* - Substring matching on code IDs (e.g., "11.65" finds "E11.65")
|
|
194
|
+
* - Typo tolerance on descriptions (not on code IDs)
|
|
195
|
+
* - Fast response times (~10-50ms)
|
|
196
|
+
*
|
|
197
|
+
* **Examples**:
|
|
198
|
+
* - Query "E11" finds all codes starting with E11 (diabetes codes)
|
|
199
|
+
* - Query "diabtes" (typo) still finds "diabetes" codes
|
|
200
|
+
*
|
|
201
|
+
* **Trade-offs**: Faster than semantic search, but only matches keywords/substrings.
|
|
202
|
+
* Won't find conceptually related codes with different terminology.
|
|
203
|
+
*
|
|
204
|
+
* See also: `/search/semantic` for finding conceptually similar codes.
|
|
205
|
+
*
|
|
206
|
+
* Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
207
|
+
*
|
|
208
|
+
* @param {string} codesystem - Code system name
|
|
209
|
+
* @param {phenoml.construe.SearchTextRequest} request
|
|
210
|
+
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
211
|
+
*
|
|
212
|
+
* @throws {@link phenoml.construe.BadRequestError}
|
|
213
|
+
* @throws {@link phenoml.construe.UnauthorizedError}
|
|
214
|
+
* @throws {@link phenoml.construe.NotFoundError}
|
|
215
|
+
* @throws {@link phenoml.construe.InternalServerError}
|
|
216
|
+
* @throws {@link phenoml.construe.NotImplementedError}
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* await client.construe.codes.searchText("ICD-10-CM", {
|
|
220
|
+
* q: "E11.65",
|
|
221
|
+
* version: "version",
|
|
222
|
+
* limit: 1
|
|
223
|
+
* })
|
|
224
|
+
*/
|
|
225
|
+
searchText(codesystem: string, request: phenoml.construe.SearchTextRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.TextSearchResponse>;
|
|
226
|
+
private __searchText;
|
|
227
|
+
}
|