phenoml 15.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 +6 -62
- package/dist/cjs/api/resources/agent/client/Client.js +8 -233
- package/dist/cjs/api/resources/agent/client/requests/{AgentListRequest.d.ts → ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +1 -4
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.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/AgentGetChatMessagesRequest.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/{authtoken/resources/auth → 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/AgentGetChatMessagesRequestOrder.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/AgentGetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
- package/dist/cjs/api/resources/agent/{types/AgentGetChatMessagesResponse.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/{AgentDeleteResponse.d.ts → DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/{AgentListResponse.d.ts → ListResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +2 -5
- package/dist/cjs/api/resources/agent/types/index.js +2 -5
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +26 -4
- package/dist/cjs/api/resources/authtoken/client/Client.js +109 -4
- package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/client/index.js +15 -0
- package/dist/cjs/api/resources/authtoken/exports.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/exports.js +0 -1
- package/dist/cjs/api/resources/authtoken/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/index.js +0 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +9 -333
- package/dist/cjs/api/resources/construe/client/Client.js +12 -842
- 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/{esm/api/resources/construe/client/requests/DeleteConstrueCodesSystemsCodesystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/DeleteConstrueCodesSystemsCodesystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.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/construe/resources/codeSystems/exports.js +21 -0
- 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/ConstrueUploadCodeSystemResponse.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/GetConstrueCodesCodesystemRequest.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/GetConstrueCodesCodesystemCodeIdRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.d.ts → resources/codes/client/requests/SearchSemanticRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/SearchTextRequest.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/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/exports.js +2 -2
- 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 +56 -81
- package/dist/cjs/api/resources/fhir/client/Client.js +81 -211
- package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.d.ts → CreateRequest.d.ts} +3 -4
- package/dist/{esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts → cjs/api/resources/fhir/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts → cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts} +20 -17
- package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.d.ts → PatchRequest.d.ts} +2 -2
- package/dist/cjs/api/resources/fhir/client/requests/{FhirDeleteRequest.d.ts → SearchRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts → cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts} +4 -4
- package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -6
- 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/{FhirPatchRequestBodyItem.d.ts → PatchRequestBodyItem.d.ts} +3 -3
- package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.js → PatchRequestBodyItem.js} +5 -5
- package/dist/cjs/api/resources/fhir/types/index.d.ts +1 -5
- package/dist/cjs/api/resources/fhir/types/index.js +1 -5
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +4 -75
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +6 -225
- 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/FhirProviderRemoveAuthConfigResponse.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/{esm/api/resources/agent/types/AgentDeleteResponse.d.mts → cjs/api/resources/fhirProvider/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +1 -2
- package/dist/cjs/api/resources/fhirProvider/types/index.js +1 -2
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +15 -5
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +37 -7
- 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/{esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts → cjs/api/resources/lang2Fhir/types/UploadProfileResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -1
- package/dist/cjs/api/resources/summary/client/Client.d.ts +3 -88
- package/dist/cjs/api/resources/summary/client/Client.js +4 -309
- package/dist/cjs/api/resources/summary/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/summary/exports.d.ts +1 -0
- package/dist/cjs/api/resources/summary/exports.js +1 -0
- package/dist/cjs/api/resources/summary/index.d.ts +1 -0
- package/dist/cjs/api/resources/summary/index.js +1 -0
- package/dist/cjs/api/resources/summary/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/{authtoken → summary}/resources/index.js +4 -3
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +104 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +360 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/index.js +17 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → summary/resources/templates}/exports.js +2 -3
- package/dist/cjs/api/resources/summary/resources/templates/index.d.ts +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/index.js +18 -0
- package/dist/cjs/api/resources/{workflows/types/WorkflowsDeleteResponse.d.ts → summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.d.ts → resources/templates/types/GetResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.d.ts → resources/templates/types/ListResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.ts → resources/templates/types/UpdateResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/summary/resources/templates/types/index.js +20 -0
- package/dist/cjs/api/resources/summary/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/summary/types/index.js +0 -4
- package/dist/cjs/api/resources/tools/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/BadGatewayError.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/{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 +10 -6
- package/dist/cjs/api/resources/workflows/client/Client.js +17 -14
- package/dist/{esm/api/resources/workflows/client/requests/WorkflowsGetRequest.d.mts → cjs/api/resources/workflows/client/requests/GetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/{WorkflowsGetRequest.d.ts → ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +54 -0
- package/dist/cjs/api/resources/workflows/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/errors/index.js +1 -0
- package/dist/{esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts → cjs/api/resources/workflows/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsGetResponse.d.ts → GetResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/index.d.ts +3 -3
- package/dist/cjs/api/resources/workflows/types/index.js +3 -3
- package/dist/cjs/auth/OAuthAuthProvider.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +6 -62
- package/dist/esm/api/resources/agent/client/Client.mjs +7 -232
- package/dist/esm/api/resources/agent/client/requests/{AgentListRequest.d.mts → ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +1 -4
- 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/AgentGetChatMessagesRequest.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/{authtoken/resources/auth → 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/AgentGetChatMessagesRequestOrder.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/AgentGetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
- package/dist/esm/api/resources/agent/{types/AgentGetChatMessagesResponse.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/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/agent/types/{AgentListResponse.d.mts → ListResponse.d.mts} +1 -1
- package/dist/esm/api/resources/agent/types/index.d.mts +2 -5
- package/dist/esm/api/resources/agent/types/index.mjs +2 -5
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +26 -4
- package/dist/esm/api/resources/authtoken/client/Client.mjs +76 -4
- package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/client/index.mjs +1 -1
- package/dist/esm/api/resources/authtoken/exports.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/exports.mjs +0 -1
- package/dist/esm/api/resources/authtoken/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/index.mjs +0 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +9 -333
- package/dist/esm/api/resources/construe/client/Client.mjs +12 -842
- 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/{client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.mts → resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.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/ConstrueUploadCodeSystemResponse.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/GetConstrueCodesCodesystemRequest.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/GetConstrueCodesCodesystemCodeIdRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.d.mts → resources/codes/client/requests/SearchSemanticRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/SearchTextRequest.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/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/exports.mjs +1 -1
- 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 +56 -81
- package/dist/esm/api/resources/fhir/client/Client.mjs +81 -211
- package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +23 -0
- package/dist/esm/api/resources/fhir/client/requests/DeleteRequest.d.mts +19 -0
- package/dist/{cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts → esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts} +20 -17
- package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.d.mts → PatchRequest.d.mts} +2 -2
- package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +19 -0
- package/dist/{cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts → esm/api/resources/fhir/client/requests/UpsertRequest.d.mts} +4 -5
- package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -6
- 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/{FhirPatchRequestBodyItem.d.mts → PatchRequestBodyItem.d.mts} +3 -3
- package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.mjs → PatchRequestBodyItem.mjs} +4 -4
- package/dist/esm/api/resources/fhir/types/index.d.mts +1 -5
- package/dist/esm/api/resources/fhir/types/index.mjs +1 -5
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +4 -75
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +6 -225
- 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/FhirProviderRemoveAuthConfigResponse.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/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +1 -2
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +1 -2
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +15 -5
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +37 -7
- 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/{cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts → esm/api/resources/lang2Fhir/types/UploadProfileResponse.d.mts} +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -1
- package/dist/esm/api/resources/summary/client/Client.d.mts +3 -88
- package/dist/esm/api/resources/summary/client/Client.mjs +4 -309
- package/dist/esm/api/resources/summary/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/summary/exports.d.mts +1 -0
- package/dist/esm/api/resources/summary/exports.mjs +1 -0
- package/dist/esm/api/resources/summary/index.d.mts +1 -0
- package/dist/esm/api/resources/summary/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/summary/resources/index.mjs +3 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +104 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +323 -0
- package/dist/esm/api/resources/summary/resources/templates/client/index.d.mts +1 -0
- package/dist/esm/api/resources/summary/resources/templates/client/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/templates/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/templates/exports.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/exports.mjs +3 -0
- package/dist/esm/api/resources/summary/resources/templates/index.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/index.mjs +2 -0
- package/dist/esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/GetResponse.d.mts +5 -0
- package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.d.mts → resources/templates/types/ListResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.mts → resources/templates/types/UpdateResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -0
- package/dist/esm/api/resources/summary/types/index.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/index.mjs +0 -4
- package/dist/esm/api/resources/tools/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/{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 +10 -6
- package/dist/esm/api/resources/workflows/client/Client.mjs +17 -14
- package/dist/esm/api/resources/workflows/client/requests/{WorkflowsListRequest.d.mts → GetRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts → esm/api/resources/workflows/client/requests/ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +17 -0
- package/dist/esm/api/resources/workflows/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/errors/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/workflows/types/{WorkflowsGetResponse.d.mts → GetResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/{WorkflowsUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/index.d.mts +3 -3
- package/dist/esm/api/resources/workflows/types/index.mjs +3 -3
- package/dist/esm/auth/OAuthAuthProvider.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +11090 -0
- package/package.json +70 -24
- package/reference.md +341 -316
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +0 -5
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.ts +0 -7
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +0 -34
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +0 -121
- package/dist/cjs/api/resources/authtoken/resources/auth/exports.d.ts +0 -2
- package/dist/cjs/api/resources/authtoken/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +0 -27
- 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/FhirSearchResponse.d.ts +0 -2
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +0 -4
- 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/types/SummaryDeleteTemplateResponse.d.ts +0 -4
- 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/cjs/api/resources/workflows/types/WorkflowsDeleteResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.js +0 -3
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +0 -5
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.mts +0 -7
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +0 -34
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +0 -84
- package/dist/esm/api/resources/authtoken/resources/auth/exports.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.mjs +0 -2
- package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +0 -27
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +0 -25
- 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/FhirSearchResponse.d.mts +0 -2
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +0 -4
- 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/types/SummaryDeleteTemplateResponse.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +0 -5
- 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/esm/api/resources/workflows/types/WorkflowsDeleteResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +0 -2
- /package/dist/cjs/api/resources/agent/client/requests/{AgentChatRequest.js → ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → 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/requests/AgentGetChatMessagesRequest.js → 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/AgentListRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{types/AgentDeleteResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.js → DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentListResponse.js → ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.js +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → authtoken}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/DeleteConstrueCodesSystemsCodesystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemCodeIdRequest.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/GetConstrueCodesCodesystemRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchTextRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemExportRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{types/ConstrueUploadCodeSystemResponse.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/{authtoken/resources/auth → construe/resources/codes}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → construe/resources/codes}/index.js +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.js → CreateRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirDeleteRequest.js → DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.js → ExecuteBundleRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.js → PatchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.js → SearchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.js → UpsertRequest.js} +0 -0
- /package/dist/cjs/api/resources/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/types/FhirResource.js → fhirProvider/types/DeleteResponse.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/FhirSearchResponse.js → lang2Fhir/types/UploadProfileResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/{fhirProvider/types/FhirProviderDeleteResponse.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/{lang2Fhir/types/Lang2FhirUploadProfileResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryDeleteTemplateResponse.js → resources/templates/types/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 → mcpServers}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpServers}/index.js +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{summary/types/SummaryGetTemplateResponse.js → workflows/client/requests/GetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{summary/types/SummaryListTemplatesResponse.js → workflows/client/requests/ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/{summary/types/SummaryUpdateTemplateResponse.js → workflows/types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsGetRequest.js → types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsListRequest.js → types/UpdateResponse.js} +0 -0
- /package/dist/esm/api/resources/agent/client/requests/{AgentChatRequest.mjs → ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → 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/requests/AgentGetChatMessagesRequest.mjs → 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/AgentListRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{types/AgentDeleteResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.mjs → DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentListResponse.mjs → ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.mts +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.mjs +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → authtoken}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/DeleteConstrueCodesSystemsCodesystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemCodeIdRequest.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/GetConstrueCodesCodesystemRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchTextRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemExportRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{types/ConstrueUploadCodeSystemResponse.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/{authtoken/resources/auth → construe/resources/codes}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → construe/resources/codes}/index.mjs +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.mjs → CreateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirDeleteRequest.mjs → DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.mjs → ExecuteBundleRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.mjs → PatchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.mjs → SearchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.mjs → UpsertRequest.mjs} +0 -0
- /package/dist/esm/api/resources/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/types/FhirResource.mjs → fhirProvider/types/DeleteResponse.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/FhirSearchResponse.mjs → lang2Fhir/types/UploadProfileResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{fhirProvider/types/FhirProviderDeleteResponse.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryDeleteTemplateResponse.mjs → resources/templates/types/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
- /package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpServers}/index.d.mts +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpServers}/index.mjs +0 -0
- /package/dist/esm/api/resources/{summary/types/SummaryGetTemplateResponse.mjs → workflows/client/requests/GetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{summary/types/SummaryListTemplatesResponse.mjs → workflows/client/requests/ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{summary/types/SummaryUpdateTemplateResponse.mjs → workflows/types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsGetRequest.mjs → types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsListRequest.mjs → types/UpdateResponse.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -69,7 +69,7 @@ await client.agent.create({
|
|
|
69
69
|
</dl>
|
|
70
70
|
</details>
|
|
71
71
|
|
|
72
|
-
<details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">list</a>({ ...params }) -> phenoml.
|
|
72
|
+
<details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">list</a>({ ...params }) -> phenoml.ListResponse</code></summary>
|
|
73
73
|
<dl>
|
|
74
74
|
<dd>
|
|
75
75
|
|
|
@@ -114,7 +114,7 @@ await client.agent.list({
|
|
|
114
114
|
<dl>
|
|
115
115
|
<dd>
|
|
116
116
|
|
|
117
|
-
**request:** `phenoml.agent.
|
|
117
|
+
**request:** `phenoml.agent.ListRequest`
|
|
118
118
|
|
|
119
119
|
</dd>
|
|
120
120
|
</dl>
|
|
@@ -274,7 +274,7 @@ await client.agent.update("id", {
|
|
|
274
274
|
</dl>
|
|
275
275
|
</details>
|
|
276
276
|
|
|
277
|
-
<details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">delete</a>(id) -> phenoml.
|
|
277
|
+
<details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">delete</a>(id) -> phenoml.DeleteResponse</code></summary>
|
|
278
278
|
<dl>
|
|
279
279
|
<dd>
|
|
280
280
|
|
|
@@ -416,7 +416,8 @@ await client.agent.patch("id", [{
|
|
|
416
416
|
</dl>
|
|
417
417
|
</details>
|
|
418
418
|
|
|
419
|
-
|
|
419
|
+
## Chat
|
|
420
|
+
<details><summary><code>client.agent.chat.<a href="/src/api/resources/agent/resources/chat/client/Client.ts">send</a>({ ...params }) -> phenoml.AgentChatResponse</code></summary>
|
|
420
421
|
<dl>
|
|
421
422
|
<dd>
|
|
422
423
|
|
|
@@ -443,7 +444,7 @@ Send a message to an agent and receive a JSON response.
|
|
|
443
444
|
<dd>
|
|
444
445
|
|
|
445
446
|
```typescript
|
|
446
|
-
await client.agent.chat({
|
|
447
|
+
await client.agent.chat.send({
|
|
447
448
|
"X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
448
449
|
"X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
449
450
|
message: "What is the patient's current condition?",
|
|
@@ -473,7 +474,7 @@ await client.agent.chat({
|
|
|
473
474
|
<dl>
|
|
474
475
|
<dd>
|
|
475
476
|
|
|
476
|
-
**requestOptions:** `
|
|
477
|
+
**requestOptions:** `ChatClient.RequestOptions`
|
|
477
478
|
|
|
478
479
|
</dd>
|
|
479
480
|
</dl>
|
|
@@ -485,7 +486,7 @@ await client.agent.chat({
|
|
|
485
486
|
</dl>
|
|
486
487
|
</details>
|
|
487
488
|
|
|
488
|
-
<details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">
|
|
489
|
+
<details><summary><code>client.agent.chat.<a href="/src/api/resources/agent/resources/chat/client/Client.ts">stream</a>({ ...params }) -> core.Stream<phenoml.AgentChatStreamEvent></code></summary>
|
|
489
490
|
<dl>
|
|
490
491
|
<dd>
|
|
491
492
|
|
|
@@ -514,7 +515,7 @@ tool_result, message_end, and error.
|
|
|
514
515
|
<dd>
|
|
515
516
|
|
|
516
517
|
```typescript
|
|
517
|
-
const response = await client.agent.
|
|
518
|
+
const response = await client.agent.chat.stream({
|
|
518
519
|
"X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
519
520
|
"X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
520
521
|
message: "What is the patient's current condition?",
|
|
@@ -547,7 +548,7 @@ for await (const item of response) {
|
|
|
547
548
|
<dl>
|
|
548
549
|
<dd>
|
|
549
550
|
|
|
550
|
-
**requestOptions:** `
|
|
551
|
+
**requestOptions:** `ChatClient.RequestOptions`
|
|
551
552
|
|
|
552
553
|
</dd>
|
|
553
554
|
</dl>
|
|
@@ -559,7 +560,7 @@ for await (const item of response) {
|
|
|
559
560
|
</dl>
|
|
560
561
|
</details>
|
|
561
562
|
|
|
562
|
-
<details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">
|
|
563
|
+
<details><summary><code>client.agent.chat.<a href="/src/api/resources/agent/resources/chat/client/Client.ts">listMessages</a>({ ...params }) -> phenoml.ListMessagesResponse</code></summary>
|
|
563
564
|
<dl>
|
|
564
565
|
<dd>
|
|
565
566
|
|
|
@@ -586,7 +587,7 @@ Retrieves a list of chat messages for a given chat session
|
|
|
586
587
|
<dd>
|
|
587
588
|
|
|
588
589
|
```typescript
|
|
589
|
-
await client.agent.
|
|
590
|
+
await client.agent.chat.listMessages({
|
|
590
591
|
chat_session_id: "chat_session_id",
|
|
591
592
|
num_messages: 1,
|
|
592
593
|
role: "user",
|
|
@@ -607,7 +608,7 @@ await client.agent.getChatMessages({
|
|
|
607
608
|
<dl>
|
|
608
609
|
<dd>
|
|
609
610
|
|
|
610
|
-
**request:** `phenoml.agent.
|
|
611
|
+
**request:** `phenoml.agent.ListMessagesRequest`
|
|
611
612
|
|
|
612
613
|
</dd>
|
|
613
614
|
</dl>
|
|
@@ -615,7 +616,7 @@ await client.agent.getChatMessages({
|
|
|
615
616
|
<dl>
|
|
616
617
|
<dd>
|
|
617
618
|
|
|
618
|
-
**requestOptions:** `
|
|
619
|
+
**requestOptions:** `ChatClient.RequestOptions`
|
|
619
620
|
|
|
620
621
|
</dd>
|
|
621
622
|
</dl>
|
|
@@ -1030,8 +1031,8 @@ await client.agent.prompts.patch("id", [{
|
|
|
1030
1031
|
</dl>
|
|
1031
1032
|
</details>
|
|
1032
1033
|
|
|
1033
|
-
## Authtoken
|
|
1034
|
-
<details><summary><code>client.authtoken
|
|
1034
|
+
## Authtoken
|
|
1035
|
+
<details><summary><code>client.authtoken.<a href="/src/api/resources/authtoken/client/Client.ts">getToken</a>({ ...params }) -> phenoml.TokenResponse</code></summary>
|
|
1035
1036
|
<dl>
|
|
1036
1037
|
<dd>
|
|
1037
1038
|
|
|
@@ -1061,7 +1062,7 @@ returns an access token with expiration information.
|
|
|
1061
1062
|
<dd>
|
|
1062
1063
|
|
|
1063
1064
|
```typescript
|
|
1064
|
-
await client.authtoken.
|
|
1065
|
+
await client.authtoken.getToken({
|
|
1065
1066
|
client_id: "your_client_id",
|
|
1066
1067
|
client_secret: "your_client_secret"
|
|
1067
1068
|
});
|
|
@@ -1088,7 +1089,7 @@ await client.authtoken.auth.getToken({
|
|
|
1088
1089
|
<dl>
|
|
1089
1090
|
<dd>
|
|
1090
1091
|
|
|
1091
|
-
**requestOptions:** `
|
|
1092
|
+
**requestOptions:** `AuthtokenClient.RequestOptions`
|
|
1092
1093
|
|
|
1093
1094
|
</dd>
|
|
1094
1095
|
</dl>
|
|
@@ -1167,7 +1168,7 @@ await client.cohort.analyze({
|
|
|
1167
1168
|
</details>
|
|
1168
1169
|
|
|
1169
1170
|
## Construe
|
|
1170
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1171
|
+
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">submitFeedback</a>({ ...params }) -> phenoml.FeedbackResponse</code></summary>
|
|
1171
1172
|
<dl>
|
|
1172
1173
|
<dd>
|
|
1173
1174
|
|
|
@@ -1179,10 +1180,8 @@ await client.cohort.analyze({
|
|
|
1179
1180
|
<dl>
|
|
1180
1181
|
<dd>
|
|
1181
1182
|
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
GET /construe/codes/systems/{codesystem}?version={version} to check when status
|
|
1185
|
-
transitions from "processing" to "ready" or "failed".
|
|
1183
|
+
Submits user feedback on results from the Construe extraction endpoint.
|
|
1184
|
+
Feedback includes the full extraction result received and the result the user expected.
|
|
1186
1185
|
</dd>
|
|
1187
1186
|
</dl>
|
|
1188
1187
|
</dd>
|
|
@@ -1197,17 +1196,31 @@ transitions from "processing" to "ready" or "failed".
|
|
|
1197
1196
|
<dd>
|
|
1198
1197
|
|
|
1199
1198
|
```typescript
|
|
1200
|
-
await client.construe.
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1199
|
+
await client.construe.submitFeedback({
|
|
1200
|
+
text: "Patient has type 2 diabetes with hyperglycemia",
|
|
1201
|
+
received_result: {
|
|
1202
|
+
system: {
|
|
1203
|
+
name: "ICD-10-CM",
|
|
1204
|
+
version: "2025"
|
|
1205
|
+
},
|
|
1206
|
+
codes: [{
|
|
1207
|
+
code: "E11.9",
|
|
1208
|
+
description: "Type 2 diabetes mellitus without complications",
|
|
1209
|
+
valid: true
|
|
1210
|
+
}]
|
|
1211
|
+
},
|
|
1212
|
+
expected_result: {
|
|
1213
|
+
system: {
|
|
1214
|
+
name: "ICD-10-CM",
|
|
1215
|
+
version: "2025"
|
|
1216
|
+
},
|
|
1217
|
+
codes: [{
|
|
1218
|
+
code: "E11.65",
|
|
1219
|
+
description: "Type 2 diabetes mellitus with hyperglycemia",
|
|
1220
|
+
valid: true
|
|
1221
|
+
}]
|
|
1222
|
+
},
|
|
1223
|
+
detail: "Expected code E11.65 because the text mentions hyperglycemia"
|
|
1211
1224
|
});
|
|
1212
1225
|
|
|
1213
1226
|
```
|
|
@@ -1224,7 +1237,7 @@ await client.construe.uploadCodeSystem({
|
|
|
1224
1237
|
<dl>
|
|
1225
1238
|
<dd>
|
|
1226
1239
|
|
|
1227
|
-
**request:** `phenoml.construe.
|
|
1240
|
+
**request:** `phenoml.construe.FeedbackRequest`
|
|
1228
1241
|
|
|
1229
1242
|
</dd>
|
|
1230
1243
|
</dl>
|
|
@@ -1244,7 +1257,8 @@ await client.construe.uploadCodeSystem({
|
|
|
1244
1257
|
</dl>
|
|
1245
1258
|
</details>
|
|
1246
1259
|
|
|
1247
|
-
|
|
1260
|
+
## Code Systems
|
|
1261
|
+
<details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">upload</a>({ ...params }) -> phenoml.UploadResponse</code></summary>
|
|
1248
1262
|
<dl>
|
|
1249
1263
|
<dd>
|
|
1250
1264
|
|
|
@@ -1256,9 +1270,10 @@ await client.construe.uploadCodeSystem({
|
|
|
1256
1270
|
<dl>
|
|
1257
1271
|
<dd>
|
|
1258
1272
|
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1273
|
+
Upload a custom medical code system with codes and descriptions for use in code extraction. Requires a paid plan.
|
|
1274
|
+
Returns 202 immediately; embedding generation runs asynchronously. Poll
|
|
1275
|
+
GET /construe/codes/systems/{codesystem}?version={version} to check when status
|
|
1276
|
+
transitions from "processing" to "ready" or "failed".
|
|
1262
1277
|
</dd>
|
|
1263
1278
|
</dl>
|
|
1264
1279
|
</dd>
|
|
@@ -1273,12 +1288,17 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
|
1273
1288
|
<dd>
|
|
1274
1289
|
|
|
1275
1290
|
```typescript
|
|
1276
|
-
await client.construe.
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1291
|
+
await client.construe.codeSystems.upload({
|
|
1292
|
+
name: "CUSTOM_CODES",
|
|
1293
|
+
version: "1.0",
|
|
1294
|
+
format: "json",
|
|
1295
|
+
codes: [{
|
|
1296
|
+
code: "X001",
|
|
1297
|
+
description: "Example custom code 1"
|
|
1298
|
+
}, {
|
|
1299
|
+
code: "X002",
|
|
1300
|
+
description: "Example custom code 2"
|
|
1301
|
+
}]
|
|
1282
1302
|
});
|
|
1283
1303
|
|
|
1284
1304
|
```
|
|
@@ -1295,7 +1315,7 @@ await client.construe.extractCodes({
|
|
|
1295
1315
|
<dl>
|
|
1296
1316
|
<dd>
|
|
1297
1317
|
|
|
1298
|
-
**request:** `phenoml.construe.
|
|
1318
|
+
**request:** `phenoml.construe.UploadRequest`
|
|
1299
1319
|
|
|
1300
1320
|
</dd>
|
|
1301
1321
|
</dl>
|
|
@@ -1303,7 +1323,7 @@ await client.construe.extractCodes({
|
|
|
1303
1323
|
<dl>
|
|
1304
1324
|
<dd>
|
|
1305
1325
|
|
|
1306
|
-
**requestOptions:** `
|
|
1326
|
+
**requestOptions:** `CodeSystemsClient.RequestOptions`
|
|
1307
1327
|
|
|
1308
1328
|
</dd>
|
|
1309
1329
|
</dl>
|
|
@@ -1315,7 +1335,7 @@ await client.construe.extractCodes({
|
|
|
1315
1335
|
</dl>
|
|
1316
1336
|
</details>
|
|
1317
1337
|
|
|
1318
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1338
|
+
<details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">list</a>() -> phenoml.ListCodeSystemsResponse</code></summary>
|
|
1319
1339
|
<dl>
|
|
1320
1340
|
<dd>
|
|
1321
1341
|
|
|
@@ -1342,7 +1362,7 @@ Returns the terminology server's catalog of available code systems, including bo
|
|
|
1342
1362
|
<dd>
|
|
1343
1363
|
|
|
1344
1364
|
```typescript
|
|
1345
|
-
await client.construe.
|
|
1365
|
+
await client.construe.codeSystems.list();
|
|
1346
1366
|
|
|
1347
1367
|
```
|
|
1348
1368
|
</dd>
|
|
@@ -1358,7 +1378,7 @@ await client.construe.listAvailableCodeSystems();
|
|
|
1358
1378
|
<dl>
|
|
1359
1379
|
<dd>
|
|
1360
1380
|
|
|
1361
|
-
**requestOptions:** `
|
|
1381
|
+
**requestOptions:** `CodeSystemsClient.RequestOptions`
|
|
1362
1382
|
|
|
1363
1383
|
</dd>
|
|
1364
1384
|
</dl>
|
|
@@ -1370,7 +1390,7 @@ await client.construe.listAvailableCodeSystems();
|
|
|
1370
1390
|
</dl>
|
|
1371
1391
|
</details>
|
|
1372
1392
|
|
|
1373
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1393
|
+
<details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">find</a>(codesystem, { ...params }) -> phenoml.GetCodeSystemDetailResponse</code></summary>
|
|
1374
1394
|
<dl>
|
|
1375
1395
|
<dd>
|
|
1376
1396
|
|
|
@@ -1397,7 +1417,7 @@ Returns full metadata for a single code system, including timestamps and builtin
|
|
|
1397
1417
|
<dd>
|
|
1398
1418
|
|
|
1399
1419
|
```typescript
|
|
1400
|
-
await client.construe.
|
|
1420
|
+
await client.construe.codeSystems.find("ICD-10-CM", {
|
|
1401
1421
|
version: "2025"
|
|
1402
1422
|
});
|
|
1403
1423
|
|
|
@@ -1423,7 +1443,7 @@ await client.construe.getCodeSystemDetail("ICD-10-CM", {
|
|
|
1423
1443
|
<dl>
|
|
1424
1444
|
<dd>
|
|
1425
1445
|
|
|
1426
|
-
**request:** `phenoml.construe.
|
|
1446
|
+
**request:** `phenoml.construe.FindRequest`
|
|
1427
1447
|
|
|
1428
1448
|
</dd>
|
|
1429
1449
|
</dl>
|
|
@@ -1431,7 +1451,7 @@ await client.construe.getCodeSystemDetail("ICD-10-CM", {
|
|
|
1431
1451
|
<dl>
|
|
1432
1452
|
<dd>
|
|
1433
1453
|
|
|
1434
|
-
**requestOptions:** `
|
|
1454
|
+
**requestOptions:** `CodeSystemsClient.RequestOptions`
|
|
1435
1455
|
|
|
1436
1456
|
</dd>
|
|
1437
1457
|
</dl>
|
|
@@ -1443,7 +1463,7 @@ await client.construe.getCodeSystemDetail("ICD-10-CM", {
|
|
|
1443
1463
|
</dl>
|
|
1444
1464
|
</details>
|
|
1445
1465
|
|
|
1446
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1466
|
+
<details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">delete</a>(codesystem, { ...params }) -> phenoml.DeleteCodeSystemResponse</code></summary>
|
|
1447
1467
|
<dl>
|
|
1448
1468
|
<dd>
|
|
1449
1469
|
|
|
@@ -1471,7 +1491,7 @@ Only available on dedicated instances. Large systems may take up to a minute to
|
|
|
1471
1491
|
<dd>
|
|
1472
1492
|
|
|
1473
1493
|
```typescript
|
|
1474
|
-
await client.construe.
|
|
1494
|
+
await client.construe.codeSystems.delete("CUSTOM_CODES", {
|
|
1475
1495
|
version: "version"
|
|
1476
1496
|
});
|
|
1477
1497
|
|
|
@@ -1497,7 +1517,7 @@ await client.construe.deleteCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1497
1517
|
<dl>
|
|
1498
1518
|
<dd>
|
|
1499
1519
|
|
|
1500
|
-
**request:** `phenoml.construe.
|
|
1520
|
+
**request:** `phenoml.construe.DeleteRequest`
|
|
1501
1521
|
|
|
1502
1522
|
</dd>
|
|
1503
1523
|
</dl>
|
|
@@ -1505,7 +1525,7 @@ await client.construe.deleteCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1505
1525
|
<dl>
|
|
1506
1526
|
<dd>
|
|
1507
1527
|
|
|
1508
|
-
**requestOptions:** `
|
|
1528
|
+
**requestOptions:** `CodeSystemsClient.RequestOptions`
|
|
1509
1529
|
|
|
1510
1530
|
</dd>
|
|
1511
1531
|
</dl>
|
|
@@ -1517,7 +1537,7 @@ await client.construe.deleteCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1517
1537
|
</dl>
|
|
1518
1538
|
</details>
|
|
1519
1539
|
|
|
1520
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1540
|
+
<details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">export</a>(codesystem, { ...params }) -> phenoml.ExportCodeSystemResponse</code></summary>
|
|
1521
1541
|
<dl>
|
|
1522
1542
|
<dd>
|
|
1523
1543
|
|
|
@@ -1546,7 +1566,7 @@ Only available on dedicated instances. Builtin systems cannot be exported.
|
|
|
1546
1566
|
<dd>
|
|
1547
1567
|
|
|
1548
1568
|
```typescript
|
|
1549
|
-
await client.construe.
|
|
1569
|
+
await client.construe.codeSystems.export("CUSTOM_CODES", {
|
|
1550
1570
|
version: "version"
|
|
1551
1571
|
});
|
|
1552
1572
|
|
|
@@ -1572,7 +1592,7 @@ await client.construe.exportCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1572
1592
|
<dl>
|
|
1573
1593
|
<dd>
|
|
1574
1594
|
|
|
1575
|
-
**request:** `phenoml.construe.
|
|
1595
|
+
**request:** `phenoml.construe.ExportRequest`
|
|
1576
1596
|
|
|
1577
1597
|
</dd>
|
|
1578
1598
|
</dl>
|
|
@@ -1580,7 +1600,7 @@ await client.construe.exportCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1580
1600
|
<dl>
|
|
1581
1601
|
<dd>
|
|
1582
1602
|
|
|
1583
|
-
**requestOptions:** `
|
|
1603
|
+
**requestOptions:** `CodeSystemsClient.RequestOptions`
|
|
1584
1604
|
|
|
1585
1605
|
</dd>
|
|
1586
1606
|
</dl>
|
|
@@ -1592,7 +1612,8 @@ await client.construe.exportCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1592
1612
|
</dl>
|
|
1593
1613
|
</details>
|
|
1594
1614
|
|
|
1595
|
-
|
|
1615
|
+
## Codes
|
|
1616
|
+
<details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">extract</a>({ ...params }) -> phenoml.ExtractCodesResult</code></summary>
|
|
1596
1617
|
<dl>
|
|
1597
1618
|
<dd>
|
|
1598
1619
|
|
|
@@ -1604,7 +1625,7 @@ await client.construe.exportCustomCodeSystem("CUSTOM_CODES", {
|
|
|
1604
1625
|
<dl>
|
|
1605
1626
|
<dd>
|
|
1606
1627
|
|
|
1607
|
-
|
|
1628
|
+
Converts natural language text into structured medical codes.
|
|
1608
1629
|
|
|
1609
1630
|
Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
1610
1631
|
</dd>
|
|
@@ -1621,10 +1642,12 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
|
1621
1642
|
<dd>
|
|
1622
1643
|
|
|
1623
1644
|
```typescript
|
|
1624
|
-
await client.construe.
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1645
|
+
await client.construe.codes.extract({
|
|
1646
|
+
text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney.",
|
|
1647
|
+
system: {
|
|
1648
|
+
name: "ICD-10-CM",
|
|
1649
|
+
version: "2025"
|
|
1650
|
+
}
|
|
1628
1651
|
});
|
|
1629
1652
|
|
|
1630
1653
|
```
|
|
@@ -1641,15 +1664,7 @@ await client.construe.listCodesInACodeSystem("ICD-10-CM", {
|
|
|
1641
1664
|
<dl>
|
|
1642
1665
|
<dd>
|
|
1643
1666
|
|
|
1644
|
-
**
|
|
1645
|
-
|
|
1646
|
-
</dd>
|
|
1647
|
-
</dl>
|
|
1648
|
-
|
|
1649
|
-
<dl>
|
|
1650
|
-
<dd>
|
|
1651
|
-
|
|
1652
|
-
**request:** `phenoml.construe.GetConstrueCodesCodesystemRequest`
|
|
1667
|
+
**request:** `phenoml.construe.ExtractRequest`
|
|
1653
1668
|
|
|
1654
1669
|
</dd>
|
|
1655
1670
|
</dl>
|
|
@@ -1657,7 +1672,7 @@ await client.construe.listCodesInACodeSystem("ICD-10-CM", {
|
|
|
1657
1672
|
<dl>
|
|
1658
1673
|
<dd>
|
|
1659
1674
|
|
|
1660
|
-
**requestOptions:** `
|
|
1675
|
+
**requestOptions:** `CodesClient.RequestOptions`
|
|
1661
1676
|
|
|
1662
1677
|
</dd>
|
|
1663
1678
|
</dl>
|
|
@@ -1669,7 +1684,7 @@ await client.construe.listCodesInACodeSystem("ICD-10-CM", {
|
|
|
1669
1684
|
</dl>
|
|
1670
1685
|
</details>
|
|
1671
1686
|
|
|
1672
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1687
|
+
<details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">list</a>(codesystem, { ...params }) -> phenoml.ListCodesResponse</code></summary>
|
|
1673
1688
|
<dl>
|
|
1674
1689
|
<dd>
|
|
1675
1690
|
|
|
@@ -1681,7 +1696,7 @@ await client.construe.listCodesInACodeSystem("ICD-10-CM", {
|
|
|
1681
1696
|
<dl>
|
|
1682
1697
|
<dd>
|
|
1683
1698
|
|
|
1684
|
-
|
|
1699
|
+
Returns a paginated list of all codes in the specified code system from the terminology server.
|
|
1685
1700
|
|
|
1686
1701
|
Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
1687
1702
|
</dd>
|
|
@@ -1698,8 +1713,10 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
|
1698
1713
|
<dd>
|
|
1699
1714
|
|
|
1700
1715
|
```typescript
|
|
1701
|
-
await client.construe.
|
|
1702
|
-
version: "
|
|
1716
|
+
await client.construe.codes.list("ICD-10-CM", {
|
|
1717
|
+
version: "2025",
|
|
1718
|
+
cursor: "cursor",
|
|
1719
|
+
limit: 1
|
|
1703
1720
|
});
|
|
1704
1721
|
|
|
1705
1722
|
```
|
|
@@ -1716,18 +1733,7 @@ await client.construe.getASpecificCode("ICD-10-CM", "E1165", {
|
|
|
1716
1733
|
<dl>
|
|
1717
1734
|
<dd>
|
|
1718
1735
|
|
|
1719
|
-
**codesystem:** `string` — Code system name
|
|
1720
|
-
|
|
1721
|
-
</dd>
|
|
1722
|
-
</dl>
|
|
1723
|
-
|
|
1724
|
-
<dl>
|
|
1725
|
-
<dd>
|
|
1726
|
-
|
|
1727
|
-
**codeID:** `string`
|
|
1728
|
-
|
|
1729
|
-
The code identifier. ICD-10-CM codes are stored without their
|
|
1730
|
-
cosmetic dot (use "E1165", not "E11.65").
|
|
1736
|
+
**codesystem:** `string` — Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
|
|
1731
1737
|
|
|
1732
1738
|
</dd>
|
|
1733
1739
|
</dl>
|
|
@@ -1735,7 +1741,7 @@ cosmetic dot (use "E1165", not "E11.65").
|
|
|
1735
1741
|
<dl>
|
|
1736
1742
|
<dd>
|
|
1737
1743
|
|
|
1738
|
-
**request:** `phenoml.construe.
|
|
1744
|
+
**request:** `phenoml.construe.CodesListRequest`
|
|
1739
1745
|
|
|
1740
1746
|
</dd>
|
|
1741
1747
|
</dl>
|
|
@@ -1743,7 +1749,7 @@ cosmetic dot (use "E1165", not "E11.65").
|
|
|
1743
1749
|
<dl>
|
|
1744
1750
|
<dd>
|
|
1745
1751
|
|
|
1746
|
-
**requestOptions:** `
|
|
1752
|
+
**requestOptions:** `CodesClient.RequestOptions`
|
|
1747
1753
|
|
|
1748
1754
|
</dd>
|
|
1749
1755
|
</dl>
|
|
@@ -1755,7 +1761,7 @@ cosmetic dot (use "E1165", not "E11.65").
|
|
|
1755
1761
|
</dl>
|
|
1756
1762
|
</details>
|
|
1757
1763
|
|
|
1758
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1764
|
+
<details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">lookup</a>(codesystem, codeID, { ...params }) -> phenoml.GetCodeResponse</code></summary>
|
|
1759
1765
|
<dl>
|
|
1760
1766
|
<dd>
|
|
1761
1767
|
|
|
@@ -1767,23 +1773,7 @@ cosmetic dot (use "E1165", not "E11.65").
|
|
|
1767
1773
|
<dl>
|
|
1768
1774
|
<dd>
|
|
1769
1775
|
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
**Availability**: This endpoint works for both **built-in and custom** code systems.
|
|
1773
|
-
|
|
1774
|
-
**When to use**: Best for natural language queries where you want to find conceptually
|
|
1775
|
-
related codes, even when different terminology is used. The search understands meaning,
|
|
1776
|
-
not just keywords.
|
|
1777
|
-
|
|
1778
|
-
**Examples**:
|
|
1779
|
-
- Query "trouble breathing at night" finds codes like "Sleep apnea", "Orthopnea",
|
|
1780
|
-
"Nocturnal dyspnea" — semantically related but no exact keyword matches
|
|
1781
|
-
- Query "heart problems" finds "Myocardial infarction", "Cardiac arrest", "Arrhythmia"
|
|
1782
|
-
|
|
1783
|
-
**Trade-offs**: Slower than text search (requires embedding generation), but finds
|
|
1784
|
-
conceptually similar results that keyword search would miss.
|
|
1785
|
-
|
|
1786
|
-
See also: `/search/text` for faster keyword-based lookup with typo tolerance.
|
|
1776
|
+
Looks up a specific code in the terminology server and returns its details.
|
|
1787
1777
|
|
|
1788
1778
|
Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
1789
1779
|
</dd>
|
|
@@ -1800,10 +1790,8 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
|
1800
1790
|
<dd>
|
|
1801
1791
|
|
|
1802
1792
|
```typescript
|
|
1803
|
-
await client.construe.
|
|
1804
|
-
|
|
1805
|
-
version: "version",
|
|
1806
|
-
limit: 1
|
|
1793
|
+
await client.construe.codes.lookup("ICD-10-CM", "E1165", {
|
|
1794
|
+
version: "version"
|
|
1807
1795
|
});
|
|
1808
1796
|
|
|
1809
1797
|
```
|
|
@@ -1828,7 +1816,10 @@ await client.construe.semanticSearchEmbeddingBased("ICD-10-CM", {
|
|
|
1828
1816
|
<dl>
|
|
1829
1817
|
<dd>
|
|
1830
1818
|
|
|
1831
|
-
**
|
|
1819
|
+
**codeID:** `string`
|
|
1820
|
+
|
|
1821
|
+
The code identifier. ICD-10-CM codes are stored without their
|
|
1822
|
+
cosmetic dot (use "E1165", not "E11.65").
|
|
1832
1823
|
|
|
1833
1824
|
</dd>
|
|
1834
1825
|
</dl>
|
|
@@ -1836,7 +1827,15 @@ await client.construe.semanticSearchEmbeddingBased("ICD-10-CM", {
|
|
|
1836
1827
|
<dl>
|
|
1837
1828
|
<dd>
|
|
1838
1829
|
|
|
1839
|
-
**
|
|
1830
|
+
**request:** `phenoml.construe.LookupRequest`
|
|
1831
|
+
|
|
1832
|
+
</dd>
|
|
1833
|
+
</dl>
|
|
1834
|
+
|
|
1835
|
+
<dl>
|
|
1836
|
+
<dd>
|
|
1837
|
+
|
|
1838
|
+
**requestOptions:** `CodesClient.RequestOptions`
|
|
1840
1839
|
|
|
1841
1840
|
</dd>
|
|
1842
1841
|
</dl>
|
|
@@ -1848,7 +1847,7 @@ await client.construe.semanticSearchEmbeddingBased("ICD-10-CM", {
|
|
|
1848
1847
|
</dl>
|
|
1849
1848
|
</details>
|
|
1850
1849
|
|
|
1851
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1850
|
+
<details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">searchSemantic</a>(codesystem, { ...params }) -> phenoml.SemanticSearchResponse</code></summary>
|
|
1852
1851
|
<dl>
|
|
1853
1852
|
<dd>
|
|
1854
1853
|
|
|
@@ -1860,8 +1859,25 @@ await client.construe.semanticSearchEmbeddingBased("ICD-10-CM", {
|
|
|
1860
1859
|
<dl>
|
|
1861
1860
|
<dd>
|
|
1862
1861
|
|
|
1863
|
-
|
|
1864
|
-
|
|
1862
|
+
Performs semantic similarity search using vector embeddings.
|
|
1863
|
+
|
|
1864
|
+
**Availability**: This endpoint works for both **built-in and custom** code systems.
|
|
1865
|
+
|
|
1866
|
+
**When to use**: Best for natural language queries where you want to find conceptually
|
|
1867
|
+
related codes, even when different terminology is used. The search understands meaning,
|
|
1868
|
+
not just keywords.
|
|
1869
|
+
|
|
1870
|
+
**Examples**:
|
|
1871
|
+
- Query "trouble breathing at night" finds codes like "Sleep apnea", "Orthopnea",
|
|
1872
|
+
"Nocturnal dyspnea" — semantically related but no exact keyword matches
|
|
1873
|
+
- Query "heart problems" finds "Myocardial infarction", "Cardiac arrest", "Arrhythmia"
|
|
1874
|
+
|
|
1875
|
+
**Trade-offs**: Slower than text search (requires embedding generation), but finds
|
|
1876
|
+
conceptually similar results that keyword search would miss.
|
|
1877
|
+
|
|
1878
|
+
See also: `/search/text` for faster keyword-based lookup with typo tolerance.
|
|
1879
|
+
|
|
1880
|
+
Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
1865
1881
|
</dd>
|
|
1866
1882
|
</dl>
|
|
1867
1883
|
</dd>
|
|
@@ -1876,31 +1892,10 @@ Feedback includes the full extraction result received and the result the user ex
|
|
|
1876
1892
|
<dd>
|
|
1877
1893
|
|
|
1878
1894
|
```typescript
|
|
1879
|
-
await client.construe.
|
|
1880
|
-
text: "
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
name: "ICD-10-CM",
|
|
1884
|
-
version: "2025"
|
|
1885
|
-
},
|
|
1886
|
-
codes: [{
|
|
1887
|
-
code: "E11.9",
|
|
1888
|
-
description: "Type 2 diabetes mellitus without complications",
|
|
1889
|
-
valid: true
|
|
1890
|
-
}]
|
|
1891
|
-
},
|
|
1892
|
-
expected_result: {
|
|
1893
|
-
system: {
|
|
1894
|
-
name: "ICD-10-CM",
|
|
1895
|
-
version: "2025"
|
|
1896
|
-
},
|
|
1897
|
-
codes: [{
|
|
1898
|
-
code: "E11.65",
|
|
1899
|
-
description: "Type 2 diabetes mellitus with hyperglycemia",
|
|
1900
|
-
valid: true
|
|
1901
|
-
}]
|
|
1902
|
-
},
|
|
1903
|
-
detail: "Expected code E11.65 because the text mentions hyperglycemia"
|
|
1895
|
+
await client.construe.codes.searchSemantic("ICD-10-CM", {
|
|
1896
|
+
text: "patient has trouble breathing at night and wakes up gasping",
|
|
1897
|
+
version: "version",
|
|
1898
|
+
limit: 1
|
|
1904
1899
|
});
|
|
1905
1900
|
|
|
1906
1901
|
```
|
|
@@ -1917,7 +1912,7 @@ await client.construe.submitFeedbackOnExtractionResults({
|
|
|
1917
1912
|
<dl>
|
|
1918
1913
|
<dd>
|
|
1919
1914
|
|
|
1920
|
-
**
|
|
1915
|
+
**codesystem:** `string` — Code system name
|
|
1921
1916
|
|
|
1922
1917
|
</dd>
|
|
1923
1918
|
</dl>
|
|
@@ -1925,7 +1920,15 @@ await client.construe.submitFeedbackOnExtractionResults({
|
|
|
1925
1920
|
<dl>
|
|
1926
1921
|
<dd>
|
|
1927
1922
|
|
|
1928
|
-
**
|
|
1923
|
+
**request:** `phenoml.construe.SearchSemanticRequest`
|
|
1924
|
+
|
|
1925
|
+
</dd>
|
|
1926
|
+
</dl>
|
|
1927
|
+
|
|
1928
|
+
<dl>
|
|
1929
|
+
<dd>
|
|
1930
|
+
|
|
1931
|
+
**requestOptions:** `CodesClient.RequestOptions`
|
|
1929
1932
|
|
|
1930
1933
|
</dd>
|
|
1931
1934
|
</dl>
|
|
@@ -1937,7 +1940,7 @@ await client.construe.submitFeedbackOnExtractionResults({
|
|
|
1937
1940
|
</dl>
|
|
1938
1941
|
</details>
|
|
1939
1942
|
|
|
1940
|
-
<details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">
|
|
1943
|
+
<details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">searchText</a>(codesystem, { ...params }) -> phenoml.TextSearchResponse</code></summary>
|
|
1941
1944
|
<dl>
|
|
1942
1945
|
<dd>
|
|
1943
1946
|
|
|
@@ -1987,7 +1990,7 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
|
|
|
1987
1990
|
<dd>
|
|
1988
1991
|
|
|
1989
1992
|
```typescript
|
|
1990
|
-
await client.construe.
|
|
1993
|
+
await client.construe.codes.searchText("ICD-10-CM", {
|
|
1991
1994
|
q: "E11.65",
|
|
1992
1995
|
version: "version",
|
|
1993
1996
|
limit: 1
|
|
@@ -2015,7 +2018,7 @@ await client.construe.terminologyServerTextSearch("ICD-10-CM", {
|
|
|
2015
2018
|
<dl>
|
|
2016
2019
|
<dd>
|
|
2017
2020
|
|
|
2018
|
-
**request:** `phenoml.construe.
|
|
2021
|
+
**request:** `phenoml.construe.SearchTextRequest`
|
|
2019
2022
|
|
|
2020
2023
|
</dd>
|
|
2021
2024
|
</dl>
|
|
@@ -2023,7 +2026,7 @@ await client.construe.terminologyServerTextSearch("ICD-10-CM", {
|
|
|
2023
2026
|
<dl>
|
|
2024
2027
|
<dd>
|
|
2025
2028
|
|
|
2026
|
-
**requestOptions:** `
|
|
2029
|
+
**requestOptions:** `CodesClient.RequestOptions`
|
|
2027
2030
|
|
|
2028
2031
|
</dd>
|
|
2029
2032
|
</dl>
|
|
@@ -2036,7 +2039,7 @@ await client.construe.terminologyServerTextSearch("ICD-10-CM", {
|
|
|
2036
2039
|
</details>
|
|
2037
2040
|
|
|
2038
2041
|
## Fhir
|
|
2039
|
-
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">search</a>(fhir_provider_id, fhir_path, { ...params }) ->
|
|
2042
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">search</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
|
|
2040
2043
|
<dl>
|
|
2041
2044
|
<dd>
|
|
2042
2045
|
|
|
@@ -2048,7 +2051,19 @@ await client.construe.terminologyServerTextSearch("ICD-10-CM", {
|
|
|
2048
2051
|
<dl>
|
|
2049
2052
|
<dd>
|
|
2050
2053
|
|
|
2051
|
-
Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval
|
|
2054
|
+
Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval (e.g. `Patient/123` via the path) and search operations.
|
|
2055
|
+
|
|
2056
|
+
FHIR search parameters are passed through to the upstream server verbatim as native query-string parameters; this proxy does not model, validate, or transform them. Append standard FHIR search parameters directly to the request URL. Supported parameters include:
|
|
2057
|
+
- Resource-specific search parameters (e.g. `name` for Patient, `status` for Observation)
|
|
2058
|
+
- Common search parameters (`_id`, `_lastUpdated`, `_tag`, `_profile`, `_security`, `_text`, `_content`, `_filter`)
|
|
2059
|
+
- Result parameters (`_count`, `_offset`, `_sort`, `_include`, `_revinclude`, `_summary`, `_elements`)
|
|
2060
|
+
- Search prefixes for dates, numbers, and quantities (`eq`, `ne`, `gt`, `ge`, `lt`, `le`, `sa`, `eb`, `ap`)
|
|
2061
|
+
|
|
2062
|
+
Examples:
|
|
2063
|
+
- `Patient?name=John%20Doe&_count=10&_sort=family`
|
|
2064
|
+
- `Observation?patient=Patient/123&date=ge2023-01-01&category=vital-signs&_sort=-date`
|
|
2065
|
+
|
|
2066
|
+
When using a generated SDK, supply these via the client's request-level query-parameter option (the SDK escape hatch) rather than a typed argument.
|
|
2052
2067
|
|
|
2053
2068
|
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
2054
2069
|
</dd>
|
|
@@ -2110,7 +2125,7 @@ Examples:
|
|
|
2110
2125
|
<dl>
|
|
2111
2126
|
<dd>
|
|
2112
2127
|
|
|
2113
|
-
**request:** `phenoml.fhir.
|
|
2128
|
+
**request:** `phenoml.fhir.SearchRequest`
|
|
2114
2129
|
|
|
2115
2130
|
</dd>
|
|
2116
2131
|
</dl>
|
|
@@ -2130,7 +2145,7 @@ Examples:
|
|
|
2130
2145
|
</dl>
|
|
2131
2146
|
</details>
|
|
2132
2147
|
|
|
2133
|
-
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">create</a>(fhir_provider_id, fhir_path, { ...params }) ->
|
|
2148
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">create</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
|
|
2134
2149
|
<dl>
|
|
2135
2150
|
<dd>
|
|
2136
2151
|
|
|
@@ -2163,7 +2178,7 @@ await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
|
2163
2178
|
"X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
2164
2179
|
"X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
2165
2180
|
body: {
|
|
2166
|
-
resourceType: "Patient"
|
|
2181
|
+
"resourceType": "Patient"
|
|
2167
2182
|
}
|
|
2168
2183
|
});
|
|
2169
2184
|
|
|
@@ -2207,7 +2222,7 @@ Examples:
|
|
|
2207
2222
|
<dl>
|
|
2208
2223
|
<dd>
|
|
2209
2224
|
|
|
2210
|
-
**request:** `phenoml.fhir.
|
|
2225
|
+
**request:** `phenoml.fhir.CreateRequest`
|
|
2211
2226
|
|
|
2212
2227
|
</dd>
|
|
2213
2228
|
</dl>
|
|
@@ -2227,7 +2242,7 @@ Examples:
|
|
|
2227
2242
|
</dl>
|
|
2228
2243
|
</details>
|
|
2229
2244
|
|
|
2230
|
-
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">upsert</a>(fhir_provider_id, fhir_path, { ...params }) ->
|
|
2245
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">upsert</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
|
|
2231
2246
|
<dl>
|
|
2232
2247
|
<dd>
|
|
2233
2248
|
|
|
@@ -2260,8 +2275,8 @@ await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
|
2260
2275
|
"X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
2261
2276
|
"X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
2262
2277
|
body: {
|
|
2263
|
-
resourceType: "Patient",
|
|
2264
|
-
id: "123"
|
|
2278
|
+
"resourceType": "Patient",
|
|
2279
|
+
"id": "123"
|
|
2265
2280
|
}
|
|
2266
2281
|
});
|
|
2267
2282
|
|
|
@@ -2305,7 +2320,7 @@ Examples:
|
|
|
2305
2320
|
<dl>
|
|
2306
2321
|
<dd>
|
|
2307
2322
|
|
|
2308
|
-
**request:** `phenoml.fhir.
|
|
2323
|
+
**request:** `phenoml.fhir.UpsertRequest`
|
|
2309
2324
|
|
|
2310
2325
|
</dd>
|
|
2311
2326
|
</dl>
|
|
@@ -2325,7 +2340,7 @@ Examples:
|
|
|
2325
2340
|
</dl>
|
|
2326
2341
|
</details>
|
|
2327
2342
|
|
|
2328
|
-
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">delete</a>(fhir_provider_id, fhir_path, { ...params }) ->
|
|
2343
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">delete</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
|
|
2329
2344
|
<dl>
|
|
2330
2345
|
<dd>
|
|
2331
2346
|
|
|
@@ -2399,7 +2414,7 @@ Examples:
|
|
|
2399
2414
|
<dl>
|
|
2400
2415
|
<dd>
|
|
2401
2416
|
|
|
2402
|
-
**request:** `phenoml.fhir.
|
|
2417
|
+
**request:** `phenoml.fhir.DeleteRequest`
|
|
2403
2418
|
|
|
2404
2419
|
</dd>
|
|
2405
2420
|
</dl>
|
|
@@ -2419,7 +2434,7 @@ Examples:
|
|
|
2419
2434
|
</dl>
|
|
2420
2435
|
</details>
|
|
2421
2436
|
|
|
2422
|
-
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">patch</a>(fhir_provider_id, fhir_path, { ...params }) ->
|
|
2437
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">patch</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
|
|
2423
2438
|
<dl>
|
|
2424
2439
|
<dd>
|
|
2425
2440
|
|
|
@@ -2431,12 +2446,16 @@ Examples:
|
|
|
2431
2446
|
<dl>
|
|
2432
2447
|
<dd>
|
|
2433
2448
|
|
|
2434
|
-
Partially updates a FHIR resource on the specified provider
|
|
2449
|
+
Partially updates a FHIR resource on the specified provider.
|
|
2450
|
+
|
|
2451
|
+
Two body formats are supported, selected by request content type:
|
|
2452
|
+
- `application/json-patch+json` — an array of JSON Patch operations as defined in RFC 6902. Each operation specifies:
|
|
2453
|
+
- `op`: The operation type (add, remove, replace, move, copy, test)
|
|
2454
|
+
- `path`: JSON Pointer to the target location in the resource
|
|
2455
|
+
- `value`: The value to use (required for add, replace, and test operations)
|
|
2456
|
+
- `application/fhir+json` — a partial FHIR resource for merge-patch semantics.
|
|
2435
2457
|
|
|
2436
|
-
|
|
2437
|
-
- `op`: The operation type (add, remove, replace, move, copy, test)
|
|
2438
|
-
- `path`: JSON Pointer to the target location in the resource
|
|
2439
|
-
- `value`: The value to use (required for add, replace, and test operations)
|
|
2458
|
+
**Note:** This proxy currently forwards the request body to the upstream FHIR server with `Content-Type: application/fhir+json` regardless of the declared request content type. JSON Patch (RFC 6902) therefore only succeeds against upstream servers that accept patch arrays under `application/fhir+json`; servers that strictly enforce patch media types may reject or misinterpret it. Support for either format ultimately depends on the upstream FHIR server.
|
|
2440
2459
|
|
|
2441
2460
|
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
2442
2461
|
</dd>
|
|
@@ -2503,7 +2522,7 @@ Examples:
|
|
|
2503
2522
|
<dl>
|
|
2504
2523
|
<dd>
|
|
2505
2524
|
|
|
2506
|
-
**request:** `phenoml.fhir.
|
|
2525
|
+
**request:** `phenoml.fhir.PatchRequest`
|
|
2507
2526
|
|
|
2508
2527
|
</dd>
|
|
2509
2528
|
</dl>
|
|
@@ -2523,7 +2542,7 @@ Examples:
|
|
|
2523
2542
|
</dl>
|
|
2524
2543
|
</details>
|
|
2525
2544
|
|
|
2526
|
-
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">executeBundle</a>(fhir_provider_id, { ...params }) ->
|
|
2545
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">executeBundle</a>(fhir_provider_id, { ...params }) -> unknown</code></summary>
|
|
2527
2546
|
<dl>
|
|
2528
2547
|
<dd>
|
|
2529
2548
|
|
|
@@ -2558,9 +2577,15 @@ await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
|
|
|
2558
2577
|
"X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
2559
2578
|
"X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
2560
2579
|
body: {
|
|
2561
|
-
resourceType: "Bundle",
|
|
2562
|
-
|
|
2563
|
-
|
|
2580
|
+
"resourceType": "Bundle",
|
|
2581
|
+
"type": "transaction",
|
|
2582
|
+
"entry": [
|
|
2583
|
+
{
|
|
2584
|
+
"request": {
|
|
2585
|
+
"method": "POST",
|
|
2586
|
+
"url": "Patient"
|
|
2587
|
+
},
|
|
2588
|
+
"resource": {
|
|
2564
2589
|
"resourceType": "Patient",
|
|
2565
2590
|
"name": [
|
|
2566
2591
|
{
|
|
@@ -2570,24 +2595,22 @@ await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
|
|
|
2570
2595
|
]
|
|
2571
2596
|
}
|
|
2572
2597
|
]
|
|
2573
|
-
},
|
|
2574
|
-
request: {
|
|
2575
|
-
method: "POST",
|
|
2576
|
-
url: "Patient"
|
|
2577
2598
|
}
|
|
2578
|
-
},
|
|
2579
|
-
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
"request": {
|
|
2602
|
+
"method": "POST",
|
|
2603
|
+
"url": "Observation"
|
|
2604
|
+
},
|
|
2605
|
+
"resource": {
|
|
2580
2606
|
"resourceType": "Observation",
|
|
2581
2607
|
"status": "final",
|
|
2582
2608
|
"subject": {
|
|
2583
2609
|
"reference": "Patient/123"
|
|
2584
2610
|
}
|
|
2585
|
-
},
|
|
2586
|
-
request: {
|
|
2587
|
-
method: "POST",
|
|
2588
|
-
url: "Observation"
|
|
2589
2611
|
}
|
|
2590
|
-
}
|
|
2612
|
+
}
|
|
2613
|
+
]
|
|
2591
2614
|
}
|
|
2592
2615
|
});
|
|
2593
2616
|
|
|
@@ -2617,7 +2640,7 @@ The ID of the FHIR provider to use. Can be either:
|
|
|
2617
2640
|
<dl>
|
|
2618
2641
|
<dd>
|
|
2619
2642
|
|
|
2620
|
-
**request:** `phenoml.fhir.
|
|
2643
|
+
**request:** `phenoml.fhir.ExecuteBundleRequest`
|
|
2621
2644
|
|
|
2622
2645
|
</dd>
|
|
2623
2646
|
</dl>
|
|
@@ -2837,7 +2860,7 @@ await client.fhirProvider.get("fhir_provider_id");
|
|
|
2837
2860
|
</dl>
|
|
2838
2861
|
</details>
|
|
2839
2862
|
|
|
2840
|
-
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">delete</a>(fhir_provider_id) -> phenoml.
|
|
2863
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">delete</a>(fhir_provider_id) -> phenoml.DeleteResponse</code></summary>
|
|
2841
2864
|
<dl>
|
|
2842
2865
|
<dd>
|
|
2843
2866
|
|
|
@@ -2902,7 +2925,8 @@ await client.fhirProvider.delete("fhir_provider_id");
|
|
|
2902
2925
|
</dl>
|
|
2903
2926
|
</details>
|
|
2904
2927
|
|
|
2905
|
-
|
|
2928
|
+
## Auth Config
|
|
2929
|
+
<details><summary><code>client.fhirProvider.authConfig.<a href="/src/api/resources/fhirProvider/resources/authConfig/client/Client.ts">add</a>(fhir_provider_id, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
|
|
2906
2930
|
<dl>
|
|
2907
2931
|
<dd>
|
|
2908
2932
|
|
|
@@ -2932,7 +2956,7 @@ Note: Sandbox providers cannot be modified.
|
|
|
2932
2956
|
<dd>
|
|
2933
2957
|
|
|
2934
2958
|
```typescript
|
|
2935
|
-
await client.fhirProvider.
|
|
2959
|
+
await client.fhirProvider.authConfig.add("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
2936
2960
|
auth_method: "client_secret",
|
|
2937
2961
|
client_id: "your-client-id",
|
|
2938
2962
|
client_secret: "your-client-secret"
|
|
@@ -2968,7 +2992,7 @@ await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad",
|
|
|
2968
2992
|
<dl>
|
|
2969
2993
|
<dd>
|
|
2970
2994
|
|
|
2971
|
-
**requestOptions:** `
|
|
2995
|
+
**requestOptions:** `AuthConfigClient.RequestOptions`
|
|
2972
2996
|
|
|
2973
2997
|
</dd>
|
|
2974
2998
|
</dl>
|
|
@@ -2980,7 +3004,7 @@ await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad",
|
|
|
2980
3004
|
</dl>
|
|
2981
3005
|
</details>
|
|
2982
3006
|
|
|
2983
|
-
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">
|
|
3007
|
+
<details><summary><code>client.fhirProvider.authConfig.<a href="/src/api/resources/fhirProvider/resources/authConfig/client/Client.ts">setActive</a>(fhir_provider_id, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
|
|
2984
3008
|
<dl>
|
|
2985
3009
|
<dd>
|
|
2986
3010
|
|
|
@@ -3013,7 +3037,7 @@ Note: Sandbox providers cannot be modified.
|
|
|
3013
3037
|
<dd>
|
|
3014
3038
|
|
|
3015
3039
|
```typescript
|
|
3016
|
-
await client.fhirProvider.
|
|
3040
|
+
await client.fhirProvider.authConfig.setActive("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
3017
3041
|
auth_config_id: "auth-config-456"
|
|
3018
3042
|
});
|
|
3019
3043
|
|
|
@@ -3047,7 +3071,7 @@ await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e
|
|
|
3047
3071
|
<dl>
|
|
3048
3072
|
<dd>
|
|
3049
3073
|
|
|
3050
|
-
**requestOptions:** `
|
|
3074
|
+
**requestOptions:** `AuthConfigClient.RequestOptions`
|
|
3051
3075
|
|
|
3052
3076
|
</dd>
|
|
3053
3077
|
</dl>
|
|
@@ -3059,7 +3083,7 @@ await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e
|
|
|
3059
3083
|
</dl>
|
|
3060
3084
|
</details>
|
|
3061
3085
|
|
|
3062
|
-
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">
|
|
3086
|
+
<details><summary><code>client.fhirProvider.authConfig.<a href="/src/api/resources/fhirProvider/resources/authConfig/client/Client.ts">remove</a>(fhir_provider_id, { ...params }) -> phenoml.RemoveResponse</code></summary>
|
|
3063
3087
|
<dl>
|
|
3064
3088
|
<dd>
|
|
3065
3089
|
|
|
@@ -3089,7 +3113,7 @@ Note: Sandbox providers cannot be modified.
|
|
|
3089
3113
|
<dd>
|
|
3090
3114
|
|
|
3091
3115
|
```typescript
|
|
3092
|
-
await client.fhirProvider.
|
|
3116
|
+
await client.fhirProvider.authConfig.remove("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
3093
3117
|
auth_config_id: "auth-config-456"
|
|
3094
3118
|
});
|
|
3095
3119
|
|
|
@@ -3123,7 +3147,7 @@ await client.fhirProvider.removeAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad
|
|
|
3123
3147
|
<dl>
|
|
3124
3148
|
<dd>
|
|
3125
3149
|
|
|
3126
|
-
**requestOptions:** `
|
|
3150
|
+
**requestOptions:** `AuthConfigClient.RequestOptions`
|
|
3127
3151
|
|
|
3128
3152
|
</dd>
|
|
3129
3153
|
</dl>
|
|
@@ -3347,7 +3371,7 @@ await client.lang2Fhir.search({
|
|
|
3347
3371
|
</dl>
|
|
3348
3372
|
</details>
|
|
3349
3373
|
|
|
3350
|
-
<details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">uploadProfile</a>({ ...params }) -> phenoml.
|
|
3374
|
+
<details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">uploadProfile</a>({ ...params }) -> phenoml.UploadProfileResponse</code></summary>
|
|
3351
3375
|
<dl>
|
|
3352
3376
|
<dd>
|
|
3353
3377
|
|
|
@@ -3492,7 +3516,7 @@ await client.lang2Fhir.document({
|
|
|
3492
3516
|
</dl>
|
|
3493
3517
|
</details>
|
|
3494
3518
|
|
|
3495
|
-
<details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">
|
|
3519
|
+
<details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">documentMulti</a>({ ...params }) -> phenoml.DocumentMultiResponse</code></summary>
|
|
3496
3520
|
<dl>
|
|
3497
3521
|
<dd>
|
|
3498
3522
|
|
|
@@ -3524,7 +3548,7 @@ Resources are linked with proper references (e.g., Conditions reference the Pati
|
|
|
3524
3548
|
<dd>
|
|
3525
3549
|
|
|
3526
3550
|
```typescript
|
|
3527
|
-
await client.lang2Fhir.
|
|
3551
|
+
await client.lang2Fhir.documentMulti({
|
|
3528
3552
|
version: "R4",
|
|
3529
3553
|
content: "JVBERi0xLjQKJeLjz9MK...(base64-encoded PDF or image bytes)",
|
|
3530
3554
|
provider: "medplum"
|
|
@@ -3565,7 +3589,7 @@ await client.lang2Fhir.extractMultipleFhirResourcesFromADocument({
|
|
|
3565
3589
|
</details>
|
|
3566
3590
|
|
|
3567
3591
|
## Summary
|
|
3568
|
-
<details><summary><code>client.summary.<a href="/src/api/resources/summary/client/Client.ts">
|
|
3592
|
+
<details><summary><code>client.summary.<a href="/src/api/resources/summary/client/Client.ts">create</a>({ ...params }) -> phenoml.CreateSummaryResponse</code></summary>
|
|
3569
3593
|
<dl>
|
|
3570
3594
|
<dd>
|
|
3571
3595
|
|
|
@@ -3577,7 +3601,10 @@ await client.lang2Fhir.extractMultipleFhirResourcesFromADocument({
|
|
|
3577
3601
|
<dl>
|
|
3578
3602
|
<dd>
|
|
3579
3603
|
|
|
3580
|
-
|
|
3604
|
+
Creates a summary from FHIR resources using one of three modes:
|
|
3605
|
+
- **narrative**: Uses a template to substitute FHIR data into placeholders (requires template_id)
|
|
3606
|
+
- **flatten**: Flattens FHIR resources into a searchable format for RAG/search (no template needed)
|
|
3607
|
+
- **ips**: Generates an International Patient Summary (IPS) narrative per ISO 27269/HL7 FHIR IPS IG. Requires a Bundle with exactly one Patient resource (returns 400 error if no Patient or multiple Patients are present). Automatically filters resources to those referencing the patient and generates sections for allergies, medications, problems, immunizations, procedures, and vital signs.
|
|
3581
3608
|
</dd>
|
|
3582
3609
|
</dl>
|
|
3583
3610
|
</dd>
|
|
@@ -3592,7 +3619,40 @@ Retrieves all summary templates for the authenticated user
|
|
|
3592
3619
|
<dd>
|
|
3593
3620
|
|
|
3594
3621
|
```typescript
|
|
3595
|
-
await client.summary.
|
|
3622
|
+
await client.summary.create({
|
|
3623
|
+
mode: "narrative",
|
|
3624
|
+
template_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
3625
|
+
fhir_resources: {
|
|
3626
|
+
"resourceType": "Bundle",
|
|
3627
|
+
"type": "collection",
|
|
3628
|
+
"entry": [
|
|
3629
|
+
{
|
|
3630
|
+
"resource": {
|
|
3631
|
+
"resourceType": "Patient",
|
|
3632
|
+
"name": [
|
|
3633
|
+
{
|
|
3634
|
+
"given": [
|
|
3635
|
+
"John"
|
|
3636
|
+
],
|
|
3637
|
+
"family": "Doe"
|
|
3638
|
+
}
|
|
3639
|
+
],
|
|
3640
|
+
"gender": "male",
|
|
3641
|
+
"birthDate": "1979-03-15"
|
|
3642
|
+
}
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"resource": {
|
|
3646
|
+
"resourceType": "Condition",
|
|
3647
|
+
"code": {
|
|
3648
|
+
"text": "Type 2 Diabetes Mellitus"
|
|
3649
|
+
},
|
|
3650
|
+
"onsetDateTime": "2024-01-15"
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
]
|
|
3654
|
+
}
|
|
3655
|
+
});
|
|
3596
3656
|
|
|
3597
3657
|
```
|
|
3598
3658
|
</dd>
|
|
@@ -3608,6 +3668,14 @@ await client.summary.listTemplates();
|
|
|
3608
3668
|
<dl>
|
|
3609
3669
|
<dd>
|
|
3610
3670
|
|
|
3671
|
+
**request:** `phenoml.summary.CreateSummaryRequest`
|
|
3672
|
+
|
|
3673
|
+
</dd>
|
|
3674
|
+
</dl>
|
|
3675
|
+
|
|
3676
|
+
<dl>
|
|
3677
|
+
<dd>
|
|
3678
|
+
|
|
3611
3679
|
**requestOptions:** `SummaryClient.RequestOptions`
|
|
3612
3680
|
|
|
3613
3681
|
</dd>
|
|
@@ -3620,7 +3688,8 @@ await client.summary.listTemplates();
|
|
|
3620
3688
|
</dl>
|
|
3621
3689
|
</details>
|
|
3622
3690
|
|
|
3623
|
-
|
|
3691
|
+
## Templates
|
|
3692
|
+
<details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">list</a>() -> phenoml.ListResponse</code></summary>
|
|
3624
3693
|
<dl>
|
|
3625
3694
|
<dd>
|
|
3626
3695
|
|
|
@@ -3632,7 +3701,7 @@ await client.summary.listTemplates();
|
|
|
3632
3701
|
<dl>
|
|
3633
3702
|
<dd>
|
|
3634
3703
|
|
|
3635
|
-
|
|
3704
|
+
Retrieves all summary templates for the authenticated user
|
|
3636
3705
|
</dd>
|
|
3637
3706
|
</dl>
|
|
3638
3707
|
</dd>
|
|
@@ -3647,12 +3716,7 @@ Creates a summary template from an example using LLM function calling
|
|
|
3647
3716
|
<dd>
|
|
3648
3717
|
|
|
3649
3718
|
```typescript
|
|
3650
|
-
await client.summary.
|
|
3651
|
-
name: "Discharge Summary",
|
|
3652
|
-
example_summary: "Patient John Doe, age 45, was admitted on 2024-01-10 with Type 2 Diabetes. Discharged on 2024-01-15 with Metformin 500mg BID.",
|
|
3653
|
-
target_resources: ["Patient", "Condition", "MedicationRequest"],
|
|
3654
|
-
mode: "narrative"
|
|
3655
|
-
});
|
|
3719
|
+
await client.summary.templates.list();
|
|
3656
3720
|
|
|
3657
3721
|
```
|
|
3658
3722
|
</dd>
|
|
@@ -3668,15 +3732,7 @@ await client.summary.createTemplate({
|
|
|
3668
3732
|
<dl>
|
|
3669
3733
|
<dd>
|
|
3670
3734
|
|
|
3671
|
-
**
|
|
3672
|
-
|
|
3673
|
-
</dd>
|
|
3674
|
-
</dl>
|
|
3675
|
-
|
|
3676
|
-
<dl>
|
|
3677
|
-
<dd>
|
|
3678
|
-
|
|
3679
|
-
**requestOptions:** `SummaryClient.RequestOptions`
|
|
3735
|
+
**requestOptions:** `TemplatesClient.RequestOptions`
|
|
3680
3736
|
|
|
3681
3737
|
</dd>
|
|
3682
3738
|
</dl>
|
|
@@ -3688,7 +3744,7 @@ await client.summary.createTemplate({
|
|
|
3688
3744
|
</dl>
|
|
3689
3745
|
</details>
|
|
3690
3746
|
|
|
3691
|
-
<details><summary><code>client.summary.<a href="/src/api/resources/summary/client/Client.ts">
|
|
3747
|
+
<details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">create</a>({ ...params }) -> phenoml.CreateSummaryTemplateResponse</code></summary>
|
|
3692
3748
|
<dl>
|
|
3693
3749
|
<dd>
|
|
3694
3750
|
|
|
@@ -3700,7 +3756,7 @@ await client.summary.createTemplate({
|
|
|
3700
3756
|
<dl>
|
|
3701
3757
|
<dd>
|
|
3702
3758
|
|
|
3703
|
-
|
|
3759
|
+
Creates a summary template from an example using LLM function calling
|
|
3704
3760
|
</dd>
|
|
3705
3761
|
</dl>
|
|
3706
3762
|
</dd>
|
|
@@ -3715,7 +3771,12 @@ Retrieves a specific summary template
|
|
|
3715
3771
|
<dd>
|
|
3716
3772
|
|
|
3717
3773
|
```typescript
|
|
3718
|
-
await client.summary.
|
|
3774
|
+
await client.summary.templates.create({
|
|
3775
|
+
name: "Discharge Summary",
|
|
3776
|
+
example_summary: "Patient John Doe, age 45, was admitted on 2024-01-10 with Type 2 Diabetes. Discharged on 2024-01-15 with Metformin 500mg BID.",
|
|
3777
|
+
target_resources: ["Patient", "Condition", "MedicationRequest"],
|
|
3778
|
+
mode: "narrative"
|
|
3779
|
+
});
|
|
3719
3780
|
|
|
3720
3781
|
```
|
|
3721
3782
|
</dd>
|
|
@@ -3731,7 +3792,7 @@ await client.summary.getTemplate("id");
|
|
|
3731
3792
|
<dl>
|
|
3732
3793
|
<dd>
|
|
3733
3794
|
|
|
3734
|
-
**
|
|
3795
|
+
**request:** `phenoml.summary.CreateSummaryTemplateRequest`
|
|
3735
3796
|
|
|
3736
3797
|
</dd>
|
|
3737
3798
|
</dl>
|
|
@@ -3739,7 +3800,7 @@ await client.summary.getTemplate("id");
|
|
|
3739
3800
|
<dl>
|
|
3740
3801
|
<dd>
|
|
3741
3802
|
|
|
3742
|
-
**requestOptions:** `
|
|
3803
|
+
**requestOptions:** `TemplatesClient.RequestOptions`
|
|
3743
3804
|
|
|
3744
3805
|
</dd>
|
|
3745
3806
|
</dl>
|
|
@@ -3751,7 +3812,7 @@ await client.summary.getTemplate("id");
|
|
|
3751
3812
|
</dl>
|
|
3752
3813
|
</details>
|
|
3753
3814
|
|
|
3754
|
-
<details><summary><code>client.summary.<a href="/src/api/resources/summary/client/Client.ts">
|
|
3815
|
+
<details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">get</a>(id) -> phenoml.GetResponse</code></summary>
|
|
3755
3816
|
<dl>
|
|
3756
3817
|
<dd>
|
|
3757
3818
|
|
|
@@ -3763,7 +3824,7 @@ await client.summary.getTemplate("id");
|
|
|
3763
3824
|
<dl>
|
|
3764
3825
|
<dd>
|
|
3765
3826
|
|
|
3766
|
-
|
|
3827
|
+
Retrieves a specific summary template
|
|
3767
3828
|
</dd>
|
|
3768
3829
|
</dl>
|
|
3769
3830
|
</dd>
|
|
@@ -3778,12 +3839,7 @@ Updates an existing summary template
|
|
|
3778
3839
|
<dd>
|
|
3779
3840
|
|
|
3780
3841
|
```typescript
|
|
3781
|
-
await client.summary.
|
|
3782
|
-
name: "Discharge Summary",
|
|
3783
|
-
template: "Patient {{Patient.name[0].text}} was discharged on {{Encounter[0].period.end}} with {{MedicationRequest[0].medicationCodeableConcept.coding[0].display}} {{MedicationRequest[0].dosageInstruction[0].text}}.",
|
|
3784
|
-
target_resources: ["Patient", "Encounter", "MedicationRequest"],
|
|
3785
|
-
mode: "narrative"
|
|
3786
|
-
});
|
|
3842
|
+
await client.summary.templates.get("id");
|
|
3787
3843
|
|
|
3788
3844
|
```
|
|
3789
3845
|
</dd>
|
|
@@ -3807,15 +3863,7 @@ await client.summary.updateTemplate("id", {
|
|
|
3807
3863
|
<dl>
|
|
3808
3864
|
<dd>
|
|
3809
3865
|
|
|
3810
|
-
**
|
|
3811
|
-
|
|
3812
|
-
</dd>
|
|
3813
|
-
</dl>
|
|
3814
|
-
|
|
3815
|
-
<dl>
|
|
3816
|
-
<dd>
|
|
3817
|
-
|
|
3818
|
-
**requestOptions:** `SummaryClient.RequestOptions`
|
|
3866
|
+
**requestOptions:** `TemplatesClient.RequestOptions`
|
|
3819
3867
|
|
|
3820
3868
|
</dd>
|
|
3821
3869
|
</dl>
|
|
@@ -3827,7 +3875,7 @@ await client.summary.updateTemplate("id", {
|
|
|
3827
3875
|
</dl>
|
|
3828
3876
|
</details>
|
|
3829
3877
|
|
|
3830
|
-
<details><summary><code>client.summary.<a href="/src/api/resources/summary/client/Client.ts">
|
|
3878
|
+
<details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">update</a>(id, { ...params }) -> phenoml.UpdateResponse</code></summary>
|
|
3831
3879
|
<dl>
|
|
3832
3880
|
<dd>
|
|
3833
3881
|
|
|
@@ -3839,7 +3887,7 @@ await client.summary.updateTemplate("id", {
|
|
|
3839
3887
|
<dl>
|
|
3840
3888
|
<dd>
|
|
3841
3889
|
|
|
3842
|
-
|
|
3890
|
+
Updates an existing summary template
|
|
3843
3891
|
</dd>
|
|
3844
3892
|
</dl>
|
|
3845
3893
|
</dd>
|
|
@@ -3854,7 +3902,12 @@ Deletes a summary template
|
|
|
3854
3902
|
<dd>
|
|
3855
3903
|
|
|
3856
3904
|
```typescript
|
|
3857
|
-
await client.summary.
|
|
3905
|
+
await client.summary.templates.update("id", {
|
|
3906
|
+
name: "Discharge Summary",
|
|
3907
|
+
template: "Patient {{Patient.name[0].text}} was discharged on {{Encounter[0].period.end}} with {{MedicationRequest[0].medicationCodeableConcept.coding[0].display}} {{MedicationRequest[0].dosageInstruction[0].text}}.",
|
|
3908
|
+
target_resources: ["Patient", "Encounter", "MedicationRequest"],
|
|
3909
|
+
mode: "narrative"
|
|
3910
|
+
});
|
|
3858
3911
|
|
|
3859
3912
|
```
|
|
3860
3913
|
</dd>
|
|
@@ -3878,7 +3931,15 @@ await client.summary.deleteTemplate("id");
|
|
|
3878
3931
|
<dl>
|
|
3879
3932
|
<dd>
|
|
3880
3933
|
|
|
3881
|
-
**
|
|
3934
|
+
**request:** `phenoml.summary.UpdateSummaryTemplateRequest`
|
|
3935
|
+
|
|
3936
|
+
</dd>
|
|
3937
|
+
</dl>
|
|
3938
|
+
|
|
3939
|
+
<dl>
|
|
3940
|
+
<dd>
|
|
3941
|
+
|
|
3942
|
+
**requestOptions:** `TemplatesClient.RequestOptions`
|
|
3882
3943
|
|
|
3883
3944
|
</dd>
|
|
3884
3945
|
</dl>
|
|
@@ -3890,7 +3951,7 @@ await client.summary.deleteTemplate("id");
|
|
|
3890
3951
|
</dl>
|
|
3891
3952
|
</details>
|
|
3892
3953
|
|
|
3893
|
-
<details><summary><code>client.summary.<a href="/src/api/resources/summary/client/Client.ts">
|
|
3954
|
+
<details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">delete</a>(id) -> phenoml.DeleteResponse</code></summary>
|
|
3894
3955
|
<dl>
|
|
3895
3956
|
<dd>
|
|
3896
3957
|
|
|
@@ -3902,10 +3963,7 @@ await client.summary.deleteTemplate("id");
|
|
|
3902
3963
|
<dl>
|
|
3903
3964
|
<dd>
|
|
3904
3965
|
|
|
3905
|
-
|
|
3906
|
-
- **narrative**: Uses a template to substitute FHIR data into placeholders (requires template_id)
|
|
3907
|
-
- **flatten**: Flattens FHIR resources into a searchable format for RAG/search (no template needed)
|
|
3908
|
-
- **ips**: Generates an International Patient Summary (IPS) narrative per ISO 27269/HL7 FHIR IPS IG. Requires a Bundle with exactly one Patient resource (returns 400 error if no Patient or multiple Patients are present). Automatically filters resources to those referencing the patient and generates sections for allergies, medications, problems, immunizations, procedures, and vital signs.
|
|
3966
|
+
Deletes a summary template
|
|
3909
3967
|
</dd>
|
|
3910
3968
|
</dl>
|
|
3911
3969
|
</dd>
|
|
@@ -3920,40 +3978,7 @@ Creates a summary from FHIR resources using one of three modes:
|
|
|
3920
3978
|
<dd>
|
|
3921
3979
|
|
|
3922
3980
|
```typescript
|
|
3923
|
-
await client.summary.
|
|
3924
|
-
mode: "narrative",
|
|
3925
|
-
template_id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
3926
|
-
fhir_resources: {
|
|
3927
|
-
"resourceType": "Bundle",
|
|
3928
|
-
"type": "collection",
|
|
3929
|
-
"entry": [
|
|
3930
|
-
{
|
|
3931
|
-
"resource": {
|
|
3932
|
-
"resourceType": "Patient",
|
|
3933
|
-
"name": [
|
|
3934
|
-
{
|
|
3935
|
-
"given": [
|
|
3936
|
-
"John"
|
|
3937
|
-
],
|
|
3938
|
-
"family": "Doe"
|
|
3939
|
-
}
|
|
3940
|
-
],
|
|
3941
|
-
"gender": "male",
|
|
3942
|
-
"birthDate": "1979-03-15"
|
|
3943
|
-
}
|
|
3944
|
-
},
|
|
3945
|
-
{
|
|
3946
|
-
"resource": {
|
|
3947
|
-
"resourceType": "Condition",
|
|
3948
|
-
"code": {
|
|
3949
|
-
"text": "Type 2 Diabetes Mellitus"
|
|
3950
|
-
},
|
|
3951
|
-
"onsetDateTime": "2024-01-15"
|
|
3952
|
-
}
|
|
3953
|
-
}
|
|
3954
|
-
]
|
|
3955
|
-
}
|
|
3956
|
-
});
|
|
3981
|
+
await client.summary.templates.delete("id");
|
|
3957
3982
|
|
|
3958
3983
|
```
|
|
3959
3984
|
</dd>
|
|
@@ -3969,7 +3994,7 @@ await client.summary.create({
|
|
|
3969
3994
|
<dl>
|
|
3970
3995
|
<dd>
|
|
3971
3996
|
|
|
3972
|
-
**
|
|
3997
|
+
**id:** `string` — Template ID
|
|
3973
3998
|
|
|
3974
3999
|
</dd>
|
|
3975
4000
|
</dl>
|
|
@@ -3977,7 +4002,7 @@ await client.summary.create({
|
|
|
3977
4002
|
<dl>
|
|
3978
4003
|
<dd>
|
|
3979
4004
|
|
|
3980
|
-
**requestOptions:** `
|
|
4005
|
+
**requestOptions:** `TemplatesClient.RequestOptions`
|
|
3981
4006
|
|
|
3982
4007
|
</dd>
|
|
3983
4008
|
</dl>
|
|
@@ -4269,8 +4294,8 @@ await client.tools.analyzeCohort({
|
|
|
4269
4294
|
</dl>
|
|
4270
4295
|
</details>
|
|
4271
4296
|
|
|
4272
|
-
##
|
|
4273
|
-
<details><summary><code>client.tools.
|
|
4297
|
+
## MCP Servers
|
|
4298
|
+
<details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">create</a>({ ...params }) -> phenoml.McpServerResponse</code></summary>
|
|
4274
4299
|
<dl>
|
|
4275
4300
|
<dd>
|
|
4276
4301
|
|
|
@@ -4297,7 +4322,7 @@ Creates a new MCP server
|
|
|
4297
4322
|
<dd>
|
|
4298
4323
|
|
|
4299
4324
|
```typescript
|
|
4300
|
-
await client.tools.
|
|
4325
|
+
await client.tools.mcpServers.create({
|
|
4301
4326
|
name: "My MCP Server",
|
|
4302
4327
|
mcp_server_url: "https://mcp.example.com"
|
|
4303
4328
|
});
|
|
@@ -4324,7 +4349,7 @@ await client.tools.mcpServer.create({
|
|
|
4324
4349
|
<dl>
|
|
4325
4350
|
<dd>
|
|
4326
4351
|
|
|
4327
|
-
**requestOptions:** `
|
|
4352
|
+
**requestOptions:** `McpServersClient.RequestOptions`
|
|
4328
4353
|
|
|
4329
4354
|
</dd>
|
|
4330
4355
|
</dl>
|
|
@@ -4336,7 +4361,7 @@ await client.tools.mcpServer.create({
|
|
|
4336
4361
|
</dl>
|
|
4337
4362
|
</details>
|
|
4338
4363
|
|
|
4339
|
-
<details><summary><code>client.tools.
|
|
4364
|
+
<details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">list</a>() -> phenoml.McpServerResponse</code></summary>
|
|
4340
4365
|
<dl>
|
|
4341
4366
|
<dd>
|
|
4342
4367
|
|
|
@@ -4363,7 +4388,7 @@ Lists all MCP servers for a specific user
|
|
|
4363
4388
|
<dd>
|
|
4364
4389
|
|
|
4365
4390
|
```typescript
|
|
4366
|
-
await client.tools.
|
|
4391
|
+
await client.tools.mcpServers.list();
|
|
4367
4392
|
|
|
4368
4393
|
```
|
|
4369
4394
|
</dd>
|
|
@@ -4379,7 +4404,7 @@ await client.tools.mcpServer.list();
|
|
|
4379
4404
|
<dl>
|
|
4380
4405
|
<dd>
|
|
4381
4406
|
|
|
4382
|
-
**requestOptions:** `
|
|
4407
|
+
**requestOptions:** `McpServersClient.RequestOptions`
|
|
4383
4408
|
|
|
4384
4409
|
</dd>
|
|
4385
4410
|
</dl>
|
|
@@ -4391,7 +4416,7 @@ await client.tools.mcpServer.list();
|
|
|
4391
4416
|
</dl>
|
|
4392
4417
|
</details>
|
|
4393
4418
|
|
|
4394
|
-
<details><summary><code>client.tools.
|
|
4419
|
+
<details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">get</a>(mcp_server_id) -> phenoml.McpServerResponse</code></summary>
|
|
4395
4420
|
<dl>
|
|
4396
4421
|
<dd>
|
|
4397
4422
|
|
|
@@ -4418,7 +4443,7 @@ Gets a MCP server by ID
|
|
|
4418
4443
|
<dd>
|
|
4419
4444
|
|
|
4420
4445
|
```typescript
|
|
4421
|
-
await client.tools.
|
|
4446
|
+
await client.tools.mcpServers.get("mcp_server_id");
|
|
4422
4447
|
|
|
4423
4448
|
```
|
|
4424
4449
|
</dd>
|
|
@@ -4442,7 +4467,7 @@ await client.tools.mcpServer.get("mcp_server_id");
|
|
|
4442
4467
|
<dl>
|
|
4443
4468
|
<dd>
|
|
4444
4469
|
|
|
4445
|
-
**requestOptions:** `
|
|
4470
|
+
**requestOptions:** `McpServersClient.RequestOptions`
|
|
4446
4471
|
|
|
4447
4472
|
</dd>
|
|
4448
4473
|
</dl>
|
|
@@ -4454,7 +4479,7 @@ await client.tools.mcpServer.get("mcp_server_id");
|
|
|
4454
4479
|
</dl>
|
|
4455
4480
|
</details>
|
|
4456
4481
|
|
|
4457
|
-
<details><summary><code>client.tools.
|
|
4482
|
+
<details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">delete</a>(mcp_server_id) -> phenoml.McpServerResponse</code></summary>
|
|
4458
4483
|
<dl>
|
|
4459
4484
|
<dd>
|
|
4460
4485
|
|
|
@@ -4481,7 +4506,7 @@ Deletes a MCP server by ID
|
|
|
4481
4506
|
<dd>
|
|
4482
4507
|
|
|
4483
4508
|
```typescript
|
|
4484
|
-
await client.tools.
|
|
4509
|
+
await client.tools.mcpServers.delete("mcp_server_id");
|
|
4485
4510
|
|
|
4486
4511
|
```
|
|
4487
4512
|
</dd>
|
|
@@ -4505,7 +4530,7 @@ await client.tools.mcpServer.delete("mcp_server_id");
|
|
|
4505
4530
|
<dl>
|
|
4506
4531
|
<dd>
|
|
4507
4532
|
|
|
4508
|
-
**requestOptions:** `
|
|
4533
|
+
**requestOptions:** `McpServersClient.RequestOptions`
|
|
4509
4534
|
|
|
4510
4535
|
</dd>
|
|
4511
4536
|
</dl>
|
|
@@ -4517,8 +4542,8 @@ await client.tools.mcpServer.delete("mcp_server_id");
|
|
|
4517
4542
|
</dl>
|
|
4518
4543
|
</details>
|
|
4519
4544
|
|
|
4520
|
-
## Tools
|
|
4521
|
-
<details><summary><code>client.tools.
|
|
4545
|
+
## Tools McpTools
|
|
4546
|
+
<details><summary><code>client.tools.mcpTools.<a href="/src/api/resources/tools/resources/mcpTools/client/Client.ts">list</a>(mcp_server_id) -> phenoml.McpServerToolResponse</code></summary>
|
|
4522
4547
|
<dl>
|
|
4523
4548
|
<dd>
|
|
4524
4549
|
|
|
@@ -4545,7 +4570,7 @@ Lists all MCP server tools for a specific MCP server
|
|
|
4545
4570
|
<dd>
|
|
4546
4571
|
|
|
4547
4572
|
```typescript
|
|
4548
|
-
await client.tools.
|
|
4573
|
+
await client.tools.mcpTools.list("mcp_server_id");
|
|
4549
4574
|
|
|
4550
4575
|
```
|
|
4551
4576
|
</dd>
|
|
@@ -4569,7 +4594,7 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
|
|
|
4569
4594
|
<dl>
|
|
4570
4595
|
<dd>
|
|
4571
4596
|
|
|
4572
|
-
**requestOptions:** `
|
|
4597
|
+
**requestOptions:** `McpToolsClient.RequestOptions`
|
|
4573
4598
|
|
|
4574
4599
|
</dd>
|
|
4575
4600
|
</dl>
|
|
@@ -4581,7 +4606,7 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
|
|
|
4581
4606
|
</dl>
|
|
4582
4607
|
</details>
|
|
4583
4608
|
|
|
4584
|
-
<details><summary><code>client.tools.
|
|
4609
|
+
<details><summary><code>client.tools.mcpTools.<a href="/src/api/resources/tools/resources/mcpTools/client/Client.ts">get</a>(mcp_server_tool_id) -> phenoml.McpServerToolResponse</code></summary>
|
|
4585
4610
|
<dl>
|
|
4586
4611
|
<dd>
|
|
4587
4612
|
|
|
@@ -4608,7 +4633,7 @@ Gets a MCP server tool by ID
|
|
|
4608
4633
|
<dd>
|
|
4609
4634
|
|
|
4610
4635
|
```typescript
|
|
4611
|
-
await client.tools.
|
|
4636
|
+
await client.tools.mcpTools.get("mcp_server_tool_id");
|
|
4612
4637
|
|
|
4613
4638
|
```
|
|
4614
4639
|
</dd>
|
|
@@ -4632,7 +4657,7 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
|
|
|
4632
4657
|
<dl>
|
|
4633
4658
|
<dd>
|
|
4634
4659
|
|
|
4635
|
-
**requestOptions:** `
|
|
4660
|
+
**requestOptions:** `McpToolsClient.RequestOptions`
|
|
4636
4661
|
|
|
4637
4662
|
</dd>
|
|
4638
4663
|
</dl>
|
|
@@ -4644,7 +4669,7 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
|
|
|
4644
4669
|
</dl>
|
|
4645
4670
|
</details>
|
|
4646
4671
|
|
|
4647
|
-
<details><summary><code>client.tools.
|
|
4672
|
+
<details><summary><code>client.tools.mcpTools.<a href="/src/api/resources/tools/resources/mcpTools/client/Client.ts">delete</a>(mcp_server_tool_id) -> phenoml.McpServerToolResponse</code></summary>
|
|
4648
4673
|
<dl>
|
|
4649
4674
|
<dd>
|
|
4650
4675
|
|
|
@@ -4671,7 +4696,7 @@ Deletes a MCP server tool by ID
|
|
|
4671
4696
|
<dd>
|
|
4672
4697
|
|
|
4673
4698
|
```typescript
|
|
4674
|
-
await client.tools.
|
|
4699
|
+
await client.tools.mcpTools.delete("mcp_server_tool_id");
|
|
4675
4700
|
|
|
4676
4701
|
```
|
|
4677
4702
|
</dd>
|
|
@@ -4695,7 +4720,7 @@ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
|
|
|
4695
4720
|
<dl>
|
|
4696
4721
|
<dd>
|
|
4697
4722
|
|
|
4698
|
-
**requestOptions:** `
|
|
4723
|
+
**requestOptions:** `McpToolsClient.RequestOptions`
|
|
4699
4724
|
|
|
4700
4725
|
</dd>
|
|
4701
4726
|
</dl>
|
|
@@ -4753,7 +4778,7 @@ await client.workflows.list({
|
|
|
4753
4778
|
<dl>
|
|
4754
4779
|
<dd>
|
|
4755
4780
|
|
|
4756
|
-
**request:** `phenoml.workflows.
|
|
4781
|
+
**request:** `phenoml.workflows.ListRequest`
|
|
4757
4782
|
|
|
4758
4783
|
</dd>
|
|
4759
4784
|
</dl>
|
|
@@ -4847,7 +4872,7 @@ await client.workflows.create({
|
|
|
4847
4872
|
</dl>
|
|
4848
4873
|
</details>
|
|
4849
4874
|
|
|
4850
|
-
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">get</a>(id, { ...params }) -> phenoml.
|
|
4875
|
+
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">get</a>(id, { ...params }) -> phenoml.GetResponse</code></summary>
|
|
4851
4876
|
<dl>
|
|
4852
4877
|
<dd>
|
|
4853
4878
|
|
|
@@ -4900,7 +4925,7 @@ await client.workflows.get("id", {
|
|
|
4900
4925
|
<dl>
|
|
4901
4926
|
<dd>
|
|
4902
4927
|
|
|
4903
|
-
**request:** `phenoml.workflows.
|
|
4928
|
+
**request:** `phenoml.workflows.GetRequest`
|
|
4904
4929
|
|
|
4905
4930
|
</dd>
|
|
4906
4931
|
</dl>
|
|
@@ -4920,7 +4945,7 @@ await client.workflows.get("id", {
|
|
|
4920
4945
|
</dl>
|
|
4921
4946
|
</details>
|
|
4922
4947
|
|
|
4923
|
-
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">update</a>(id, { ...params }) -> phenoml.
|
|
4948
|
+
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">update</a>(id, { ...params }) -> phenoml.UpdateResponse</code></summary>
|
|
4924
4949
|
<dl>
|
|
4925
4950
|
<dd>
|
|
4926
4951
|
|
|
@@ -5002,7 +5027,7 @@ await client.workflows.update("id", {
|
|
|
5002
5027
|
</dl>
|
|
5003
5028
|
</details>
|
|
5004
5029
|
|
|
5005
|
-
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">delete</a>(id) -> phenoml.
|
|
5030
|
+
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">delete</a>(id) -> phenoml.DeleteResponse</code></summary>
|
|
5006
5031
|
<dl>
|
|
5007
5032
|
<dd>
|
|
5008
5033
|
|