phenoml 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.d.ts +3 -3
- package/dist/cjs/Client.d.ts +5 -2
- package/dist/cjs/Client.js +14 -9
- package/dist/cjs/api/index.d.ts +0 -1
- package/dist/cjs/api/index.js +0 -1
- package/dist/cjs/api/resources/agent/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/agent/client/Client.js +23 -27
- package/dist/cjs/api/resources/agent/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +1 -1
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +1 -1
- package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +1 -1
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -1
- package/dist/cjs/api/resources/agent/errors/index.js +1 -1
- package/dist/cjs/api/resources/agent/index.d.ts +3 -3
- package/dist/cjs/api/resources/agent/index.js +3 -3
- package/dist/cjs/api/resources/agent/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/agent/resources/index.js +4 -4
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +16 -20
- package/dist/cjs/api/resources/agent/resources/prompts/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/agent/resources/prompts/index.d.ts +1 -1
- package/dist/cjs/api/resources/agent/resources/prompts/index.js +1 -1
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +1 -1
- package/dist/cjs/api/resources/agent/resources/prompts/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/agent/resources/prompts/types/index.js +1 -1
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +1 -1
- package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +1 -1
- package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +1 -1
- package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +1 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +7 -7
- package/dist/cjs/api/resources/agent/types/index.js +7 -7
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/client/Client.js +1 -1
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/index.d.ts +2 -2
- package/dist/cjs/api/resources/authtoken/index.js +2 -2
- package/dist/cjs/api/resources/authtoken/resources/auth/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/index.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/index.js +1 -1
- package/dist/cjs/api/resources/authtoken/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/resources/index.js +4 -4
- package/dist/cjs/api/resources/cohort/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/cohort/client/Client.js +6 -10
- package/dist/cjs/api/resources/cohort/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/cohort/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/cohort/errors/index.d.ts +1 -1
- package/dist/cjs/api/resources/cohort/errors/index.js +1 -1
- package/dist/cjs/api/resources/cohort/index.d.ts +2 -2
- package/dist/cjs/api/resources/cohort/index.js +2 -2
- package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +1 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/construe/client/Client.js +8 -12
- package/dist/cjs/api/resources/construe/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +1 -1
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +1 -1
- package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/construe/errors/index.d.ts +1 -1
- package/dist/cjs/api/resources/construe/errors/index.js +1 -1
- package/dist/cjs/api/resources/construe/index.d.ts +2 -2
- package/dist/cjs/api/resources/construe/index.js +2 -2
- package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +1 -1
- package/dist/cjs/api/resources/construe/types/index.d.ts +6 -6
- package/dist/cjs/api/resources/construe/types/index.js +6 -6
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/fhir/client/Client.js +18 -22
- package/dist/cjs/api/resources/fhir/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -6
- package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/errors/index.d.ts +2 -2
- package/dist/cjs/api/resources/fhir/errors/index.js +2 -2
- package/dist/cjs/api/resources/fhir/index.d.ts +2 -2
- package/dist/cjs/api/resources/fhir/index.js +2 -2
- package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +1 -1
- package/dist/cjs/api/resources/fhir/types/index.d.ts +3 -3
- package/dist/cjs/api/resources/fhir/types/index.js +3 -3
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +17 -21
- package/dist/cjs/api/resources/fhirProvider/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/index.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/errors/index.js +1 -1
- package/dist/cjs/api/resources/fhirProvider/index.d.ts +2 -2
- package/dist/cjs/api/resources/fhirProvider/index.js +2 -2
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +7 -7
- package/dist/cjs/api/resources/fhirProvider/types/index.js +7 -7
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +9 -13
- package/dist/cjs/api/resources/lang2Fhir/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +2 -2
- package/dist/cjs/api/resources/lang2Fhir/errors/index.js +2 -2
- package/dist/cjs/api/resources/lang2Fhir/index.d.ts +2 -2
- package/dist/cjs/api/resources/lang2Fhir/index.js +2 -2
- 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 +125 -0
- package/dist/cjs/api/resources/{workflows/resources/workflows → summary}/client/Client.js +136 -195
- package/dist/cjs/api/resources/{workflows/resources/workflows → summary}/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/summary/client/requests/CreateSummaryRequest.d.ts +37 -0
- package/dist/cjs/api/resources/summary/client/requests/CreateSummaryRequest.js +16 -0
- package/dist/cjs/api/resources/summary/client/requests/CreateSummaryTemplateRequest.d.ts +23 -0
- package/dist/cjs/api/resources/summary/client/requests/UpdateSummaryTemplateRequest.d.ts +18 -0
- package/dist/cjs/api/resources/summary/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/summary/errors/BadRequestError.d.ts +5 -0
- package/dist/cjs/api/resources/summary/errors/BadRequestError.js +50 -0
- package/dist/cjs/api/resources/summary/errors/ForbiddenError.d.ts +5 -0
- package/dist/cjs/api/resources/{workflows/resources/index.js → summary/errors/ForbiddenError.js} +15 -8
- package/dist/cjs/api/resources/summary/errors/InternalServerError.d.ts +5 -0
- package/dist/cjs/api/resources/summary/errors/InternalServerError.js +50 -0
- package/dist/cjs/api/resources/summary/errors/NotFoundError.d.ts +5 -0
- package/dist/cjs/api/resources/{workflows/resources/mcpServer/resources/index.js → summary/errors/NotFoundError.js} +15 -2
- package/dist/cjs/api/resources/summary/errors/UnauthorizedError.d.ts +5 -0
- package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +50 -0
- package/dist/cjs/api/resources/summary/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/{workflows/resources/mcpServer/resources/tools → summary/errors}/index.js +5 -1
- package/dist/cjs/api/resources/{workflows/resources/workflows → summary}/index.d.ts +2 -1
- package/dist/cjs/api/resources/{workflows/resources/workflows → summary}/index.js +2 -1
- package/dist/cjs/api/resources/summary/types/CreateSummaryResponse.d.ts +8 -0
- package/dist/cjs/api/resources/summary/types/CreateSummaryTemplateResponse.d.ts +7 -0
- package/dist/cjs/api/resources/summary/types/FhirBundle.d.ts +13 -0
- package/dist/cjs/api/resources/summary/types/FhirResource.d.ts +6 -0
- package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.d.ts +4 -0
- package/dist/cjs/api/resources/summary/types/SummaryGetTemplateResponse.d.ts +5 -0
- package/dist/cjs/api/resources/summary/types/SummaryListTemplatesResponse.d.ts +5 -0
- package/dist/cjs/api/resources/summary/types/SummaryTemplate.d.ts +15 -0
- package/dist/cjs/api/resources/summary/types/SummaryUpdateTemplateResponse.d.ts +6 -0
- package/dist/cjs/api/resources/summary/types/index.d.ts +9 -0
- package/dist/cjs/api/{types → resources/summary/types}/index.js +9 -7
- package/dist/cjs/api/resources/tools/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tools/client/Client.js +8 -12
- package/dist/cjs/api/resources/tools/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/errors/index.js +2 -2
- package/dist/cjs/api/resources/tools/index.d.ts +2 -2
- package/dist/cjs/api/resources/tools/index.js +2 -2
- package/dist/cjs/api/resources/tools/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/index.js +4 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +11 -15
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +4 -4
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +13 -17
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +1 -1
- package/dist/cjs/api/resources/tools/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/types/index.js +1 -1
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +119 -17
- package/dist/cjs/api/resources/workflows/client/Client.js +399 -56
- package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/client/index.js +15 -0
- package/dist/cjs/api/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/BadRequestError.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/errors/ForbiddenError.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/errors/InternalServerError.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/errors/NotFoundError.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/errors/index.d.ts +2 -2
- package/dist/cjs/api/resources/workflows/errors/index.js +2 -2
- package/dist/cjs/api/resources/workflows/index.d.ts +2 -3
- package/dist/cjs/api/resources/workflows/index.js +2 -3
- package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowsDeleteResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsGetResponse.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsUpdateResponse.d.ts +1 -1
- package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.js +3 -0
- package/dist/cjs/api/resources/workflows/types/index.d.ts +11 -8
- package/dist/cjs/api/resources/workflows/types/index.js +11 -8
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +1 -1
- package/dist/cjs/core/fetcher/Fetcher.js +2 -1
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
- package/dist/cjs/core/fetcher/makeRequest.js +2 -2
- package/dist/cjs/core/fetcher/requestWithRetries.js +3 -3
- package/dist/cjs/core/index.d.ts +2 -2
- package/dist/cjs/core/index.js +2 -2
- package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
- package/dist/cjs/core/url/encodePathParam.js +21 -0
- package/dist/cjs/core/url/index.d.ts +1 -0
- package/dist/cjs/core/url/index.js +3 -1
- package/dist/cjs/core/url/join.js +3 -3
- package/dist/cjs/errors/phenomlError.d.ts +1 -1
- package/dist/cjs/errors/phenomlError.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +3 -3
- package/dist/esm/BaseClient.mjs +1 -2
- package/dist/esm/Client.d.mts +5 -2
- package/dist/esm/Client.mjs +10 -6
- package/dist/esm/api/index.d.mts +0 -1
- package/dist/esm/api/index.mjs +0 -1
- package/dist/esm/api/resources/agent/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/agent/client/Client.mjs +23 -27
- package/dist/esm/api/resources/agent/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agent/client/index.mjs +0 -1
- package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +1 -1
- package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +1 -1
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/agent/client/requests/index.mjs +1 -3
- package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +1 -1
- package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +0 -1
- package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +1 -1
- package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +0 -1
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/agent/errors/index.d.mts +1 -1
- package/dist/esm/api/resources/agent/errors/index.mjs +1 -1
- package/dist/esm/api/resources/agent/index.d.mts +3 -3
- package/dist/esm/api/resources/agent/index.mjs +3 -3
- package/dist/esm/api/resources/agent/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/agent/resources/index.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +16 -20
- package/dist/esm/api/resources/agent/resources/prompts/client/index.d.mts +0 -1
- package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +0 -1
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/agent/resources/prompts/index.d.mts +1 -1
- package/dist/esm/api/resources/agent/resources/prompts/index.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +1 -1
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/prompts/types/index.d.mts +1 -1
- package/dist/esm/api/resources/agent/resources/prompts/types/index.mjs +1 -1
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +1 -1
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +1 -1
- package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +1 -1
- package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +1 -1
- package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +1 -1
- package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +1 -1
- package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +1 -1
- package/dist/esm/api/resources/agent/types/AgentResponse.mjs +1 -1
- package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +1 -1
- package/dist/esm/api/resources/agent/types/JsonPatch.mjs +1 -1
- package/dist/esm/api/resources/agent/types/index.d.mts +7 -7
- package/dist/esm/api/resources/agent/types/index.mjs +7 -7
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/client/Client.mjs +1 -3
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/authtoken/index.d.mts +2 -2
- package/dist/esm/api/resources/authtoken/index.mjs +2 -2
- package/dist/esm/api/resources/authtoken/resources/auth/client/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +0 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/authtoken/resources/auth/index.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/resources/auth/index.mjs +1 -1
- package/dist/esm/api/resources/authtoken/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/resources/index.mjs +1 -1
- package/dist/esm/api/resources/cohort/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/cohort/client/Client.mjs +6 -10
- package/dist/esm/api/resources/cohort/client/index.d.mts +0 -1
- package/dist/esm/api/resources/cohort/client/index.mjs +0 -1
- package/dist/esm/api/resources/cohort/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/cohort/errors/index.d.mts +1 -1
- package/dist/esm/api/resources/cohort/errors/index.mjs +1 -1
- package/dist/esm/api/resources/cohort/index.d.mts +2 -2
- package/dist/esm/api/resources/cohort/index.mjs +2 -2
- package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +1 -1
- package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +1 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/construe/client/Client.mjs +8 -12
- package/dist/esm/api/resources/construe/client/index.d.mts +0 -1
- package/dist/esm/api/resources/construe/client/index.mjs +0 -1
- package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +1 -1
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -3
- package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +1 -1
- package/dist/esm/api/resources/construe/errors/ConflictError.mjs +0 -1
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +1 -1
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +0 -1
- package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/construe/errors/index.d.mts +1 -1
- package/dist/esm/api/resources/construe/errors/index.mjs +1 -1
- package/dist/esm/api/resources/construe/index.d.mts +2 -2
- package/dist/esm/api/resources/construe/index.mjs +2 -2
- package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +1 -1
- package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +1 -1
- package/dist/esm/api/resources/construe/types/index.d.mts +6 -6
- package/dist/esm/api/resources/construe/types/index.mjs +6 -6
- package/dist/esm/api/resources/fhir/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/fhir/client/Client.mjs +18 -22
- package/dist/esm/api/resources/fhir/client/index.d.mts +0 -1
- package/dist/esm/api/resources/fhir/client/index.mjs +0 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.mjs +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.mjs +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.mjs +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +1 -1
- package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -6
- package/dist/esm/api/resources/fhir/client/requests/index.mjs +1 -6
- package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +1 -1
- package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +0 -1
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/fhir/errors/index.d.mts +2 -2
- package/dist/esm/api/resources/fhir/errors/index.mjs +2 -2
- package/dist/esm/api/resources/fhir/index.d.mts +2 -2
- package/dist/esm/api/resources/fhir/index.mjs +2 -2
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +1 -1
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +1 -1
- package/dist/esm/api/resources/fhir/types/index.d.mts +3 -3
- package/dist/esm/api/resources/fhir/types/index.mjs +3 -3
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +17 -21
- package/dist/esm/api/resources/fhirProvider/client/index.d.mts +0 -1
- package/dist/esm/api/resources/fhirProvider/client/index.mjs +0 -1
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +1 -4
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +0 -1
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +0 -1
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/fhirProvider/errors/index.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/errors/index.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/index.d.mts +2 -2
- package/dist/esm/api/resources/fhirProvider/index.mjs +2 -2
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +1 -1
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +1 -1
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +7 -7
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +7 -7
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +9 -13
- package/dist/esm/api/resources/lang2Fhir/client/index.d.mts +0 -1
- package/dist/esm/api/resources/lang2Fhir/client/index.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +1 -4
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +2 -2
- package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +2 -2
- package/dist/esm/api/resources/lang2Fhir/index.d.mts +2 -2
- package/dist/esm/api/resources/lang2Fhir/index.mjs +2 -2
- 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 +125 -0
- package/dist/esm/api/resources/{workflows/resources/workflows → summary}/client/Client.mjs +134 -193
- package/dist/esm/api/resources/{workflows/resources/workflows → summary}/client/index.d.mts +0 -1
- package/dist/esm/api/resources/{workflows/resources/workflows → summary}/client/index.mjs +0 -1
- package/dist/esm/api/resources/summary/client/requests/CreateSummaryRequest.d.mts +37 -0
- package/dist/esm/api/resources/summary/client/requests/CreateSummaryRequest.mjs +13 -0
- package/dist/esm/api/resources/summary/client/requests/CreateSummaryTemplateRequest.d.mts +23 -0
- package/dist/esm/api/resources/summary/client/requests/UpdateSummaryTemplateRequest.d.mts +18 -0
- package/dist/esm/api/resources/summary/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/summary/errors/BadRequestError.d.mts +5 -0
- package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +13 -0
- package/dist/esm/api/resources/summary/errors/ForbiddenError.d.mts +5 -0
- package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +13 -0
- package/dist/esm/api/resources/summary/errors/InternalServerError.d.mts +5 -0
- package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +13 -0
- package/dist/esm/api/resources/summary/errors/NotFoundError.d.mts +5 -0
- package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +13 -0
- package/dist/esm/api/resources/summary/errors/UnauthorizedError.d.mts +5 -0
- package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +13 -0
- package/dist/esm/api/resources/summary/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/summary/errors/index.mjs +5 -0
- package/dist/esm/api/resources/{workflows/resources/workflows → summary}/index.d.mts +2 -1
- package/dist/esm/api/resources/{workflows/resources/workflows → summary}/index.mjs +2 -1
- package/dist/esm/api/resources/summary/types/CreateSummaryResponse.d.mts +8 -0
- package/dist/esm/api/resources/summary/types/CreateSummaryTemplateResponse.d.mts +7 -0
- package/dist/esm/api/resources/summary/types/FhirBundle.d.mts +13 -0
- package/dist/esm/api/resources/summary/types/FhirResource.d.mts +6 -0
- package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.d.mts +4 -0
- package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +5 -0
- package/dist/esm/api/resources/summary/types/SummaryListTemplatesResponse.d.mts +5 -0
- package/dist/esm/api/resources/summary/types/SummaryTemplate.d.mts +15 -0
- package/dist/esm/api/resources/summary/types/SummaryUpdateTemplateResponse.d.mts +6 -0
- package/dist/esm/api/resources/summary/types/index.d.mts +9 -0
- package/dist/esm/api/resources/summary/types/index.mjs +9 -0
- package/dist/esm/api/resources/tools/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
- package/dist/esm/api/resources/tools/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -3
- package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -1
- package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +0 -1
- package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/tools/errors/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/errors/index.mjs +2 -2
- package/dist/esm/api/resources/tools/index.d.mts +2 -2
- package/dist/esm/api/resources/tools/index.mjs +2 -2
- package/dist/esm/api/resources/tools/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +11 -15
- package/dist/esm/api/resources/tools/resources/mcpServer/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +13 -17
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +1 -1
- package/dist/esm/api/resources/tools/types/CohortResponse.mjs +1 -1
- package/dist/esm/api/resources/tools/types/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/types/index.mjs +1 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +119 -17
- package/dist/esm/api/resources/workflows/client/Client.mjs +399 -56
- package/dist/esm/api/resources/workflows/client/index.d.mts +1 -1
- package/dist/esm/api/resources/workflows/client/index.mjs +1 -1
- package/dist/esm/api/resources/workflows/client/requests/UpdateWorkflowRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/WorkflowsListRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/BadRequestError.d.mts +1 -1
- package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +0 -1
- package/dist/esm/api/resources/workflows/errors/ForbiddenError.d.mts +1 -1
- package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +0 -1
- package/dist/esm/api/resources/workflows/errors/InternalServerError.d.mts +1 -1
- package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +0 -1
- package/dist/esm/api/resources/workflows/errors/NotFoundError.d.mts +1 -1
- package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +0 -1
- package/dist/esm/api/resources/workflows/errors/UnauthorizedError.d.mts +1 -1
- package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +0 -1
- package/dist/esm/api/resources/workflows/errors/index.d.mts +2 -2
- package/dist/esm/api/resources/workflows/errors/index.mjs +2 -2
- package/dist/esm/api/resources/workflows/index.d.mts +2 -3
- package/dist/esm/api/resources/workflows/index.mjs +2 -3
- package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.mjs +1 -1
- package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.mjs +1 -1
- package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/StepOperation.mjs +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowDefinition.mjs +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowGraph.mjs +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowResponse.mjs +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowStep.mjs +0 -1
- package/dist/esm/api/resources/workflows/types/WorkflowsDeleteResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/{resources/workflows/types → types}/WorkflowsGetResponse.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/{resources/workflows/types → types}/WorkflowsUpdateResponse.d.mts +1 -1
- package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +2 -0
- package/dist/esm/api/resources/workflows/types/index.d.mts +11 -8
- package/dist/esm/api/resources/workflows/types/index.mjs +11 -8
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +1 -1
- package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -1
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -1
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -2
- package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -3
- package/dist/esm/core/index.d.mts +2 -2
- package/dist/esm/core/index.mjs +2 -2
- package/dist/esm/core/url/encodePathParam.d.mts +1 -0
- package/dist/esm/core/url/encodePathParam.mjs +18 -0
- package/dist/esm/core/url/index.d.mts +1 -0
- package/dist/esm/core/url/index.mjs +1 -0
- package/dist/esm/core/url/join.mjs +3 -3
- package/dist/esm/errors/phenomlError.d.mts +1 -1
- package/dist/esm/errors/phenomlError.mjs +1 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +16 -15
- package/reference.md +636 -766
- package/dist/cjs/api/resources/workflows/resources/index.d.ts +0 -4
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.d.ts +0 -50
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.js +0 -268
- package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/mcpServer/index.d.ts +0 -2
- package/dist/cjs/api/resources/workflows/resources/mcpServer/index.js +0 -18
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.ts +0 -49
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.js +0 -265
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.d.ts +0 -1
- package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.d.ts +0 -145
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/workflows/resources/workflows/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/workflows/resources/workflows/types/index.js +0 -19
- package/dist/cjs/api/types/CohortResponse.d.ts +0 -1
- package/dist/cjs/api/types/Lang2FhirAndCreateResponse.d.ts +0 -1
- package/dist/cjs/api/types/Lang2FhirAndSearchResponse.d.ts +0 -1
- package/dist/cjs/api/types/McpServerResponse.d.ts +0 -1
- package/dist/cjs/api/types/McpServerToolCallResponse.d.ts +0 -1
- package/dist/cjs/api/types/McpServerToolResponse.d.ts +0 -1
- package/dist/cjs/api/types/SearchConcept.d.ts +0 -1
- package/dist/cjs/api/types/index.d.ts +0 -7
- package/dist/esm/api/resources/workflows/resources/index.d.mts +0 -4
- package/dist/esm/api/resources/workflows/resources/index.mjs +0 -4
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.d.mts +0 -50
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.mjs +0 -231
- package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/index.d.mts +0 -2
- package/dist/esm/api/resources/workflows/resources/mcpServer/index.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.mts +0 -49
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.mjs +0 -228
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.d.mts +0 -1
- package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.mjs +0 -1
- package/dist/esm/api/resources/workflows/resources/workflows/client/Client.d.mts +0 -145
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.mjs +0 -5
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/resources/workflows/types/index.d.mts +0 -3
- package/dist/esm/api/resources/workflows/resources/workflows/types/index.mjs +0 -3
- package/dist/esm/api/types/CohortResponse.d.mts +0 -1
- package/dist/esm/api/types/Lang2FhirAndCreateResponse.d.mts +0 -1
- package/dist/esm/api/types/Lang2FhirAndSearchResponse.d.mts +0 -1
- package/dist/esm/api/types/McpServerResponse.d.mts +0 -1
- package/dist/esm/api/types/McpServerToolCallResponse.d.mts +0 -1
- package/dist/esm/api/types/McpServerToolResponse.d.mts +0 -1
- package/dist/esm/api/types/SearchConcept.d.mts +0 -1
- package/dist/esm/api/types/index.d.mts +0 -7
- package/dist/esm/api/types/index.mjs +0 -7
- /package/dist/cjs/api/resources/{workflows/resources/workflows → summary}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/client/requests/CreateWorkflowRequest.js → summary/client/requests/CreateSummaryTemplateRequest.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.js → summary/client/requests/UpdateSummaryTemplateRequest.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/mcpServer/client → summary/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/client/requests/UpdateWorkflowRequest.js → summary/types/CreateSummaryResponse.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/client/requests/WorkflowsGetRequest.js → summary/types/CreateSummaryTemplateResponse.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/client/requests/WorkflowsListRequest.js → summary/types/FhirBundle.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/types/WorkflowsDeleteResponse.js → summary/types/FhirResource.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/types/WorkflowsGetResponse.js → summary/types/SummaryDeleteTemplateResponse.js} +0 -0
- /package/dist/cjs/api/resources/{workflows/resources/workflows/types/WorkflowsUpdateResponse.js → summary/types/SummaryGetTemplateResponse.js} +0 -0
- /package/dist/cjs/api/{types/CohortResponse.js → resources/summary/types/SummaryListTemplatesResponse.js} +0 -0
- /package/dist/cjs/api/{types/Lang2FhirAndCreateResponse.js → resources/summary/types/SummaryTemplate.js} +0 -0
- /package/dist/cjs/api/{types/Lang2FhirAndSearchResponse.js → resources/summary/types/SummaryUpdateTemplateResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/CreateWorkflowRequest.d.ts +0 -0
- /package/dist/cjs/api/{types/McpServerResponse.js → resources/workflows/client/requests/CreateWorkflowRequest.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/ExecuteWorkflowRequest.d.ts +0 -0
- /package/dist/cjs/api/{types/McpServerToolCallResponse.js → resources/workflows/client/requests/ExecuteWorkflowRequest.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/UpdateWorkflowRequest.d.ts +0 -0
- /package/dist/cjs/api/{types/McpServerToolResponse.js → resources/workflows/client/requests/UpdateWorkflowRequest.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsGetRequest.d.ts +0 -0
- /package/dist/cjs/api/{types/SearchConcept.js → resources/workflows/client/requests/WorkflowsGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsListRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/mcpServer/resources/tools/client → client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/workflows/{resources/workflows/types → types}/WorkflowsDeleteResponse.d.ts +0 -0
- /package/dist/esm/api/resources/{workflows/resources/workflows/client/requests/CreateWorkflowRequest.mjs → summary/client/requests/CreateSummaryTemplateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.mjs → summary/client/requests/UpdateSummaryTemplateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{workflows/resources/mcpServer/client → summary/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{workflows/resources/workflows/client/requests/UpdateWorkflowRequest.mjs → summary/types/CreateSummaryResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{workflows/resources/workflows/client/requests/WorkflowsGetRequest.mjs → summary/types/CreateSummaryTemplateResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{workflows/resources/workflows/client/requests/WorkflowsListRequest.mjs → summary/types/FhirBundle.mjs} +0 -0
- /package/dist/esm/api/resources/{workflows/resources/workflows/types/WorkflowsDeleteResponse.mjs → summary/types/FhirResource.mjs} +0 -0
- /package/dist/esm/api/{types/CohortResponse.mjs → resources/summary/types/SummaryDeleteTemplateResponse.mjs} +0 -0
- /package/dist/esm/api/{types/Lang2FhirAndCreateResponse.mjs → resources/summary/types/SummaryGetTemplateResponse.mjs} +0 -0
- /package/dist/esm/api/{types/Lang2FhirAndSearchResponse.mjs → resources/summary/types/SummaryListTemplatesResponse.mjs} +0 -0
- /package/dist/esm/api/{types/McpServerResponse.mjs → resources/summary/types/SummaryTemplate.mjs} +0 -0
- /package/dist/esm/api/{types/McpServerToolCallResponse.mjs → resources/summary/types/SummaryUpdateTemplateResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/CreateWorkflowRequest.d.mts +0 -0
- /package/dist/esm/api/{types/McpServerToolResponse.mjs → resources/workflows/client/requests/CreateWorkflowRequest.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/ExecuteWorkflowRequest.d.mts +0 -0
- /package/dist/esm/api/{types/SearchConcept.mjs → resources/workflows/client/requests/ExecuteWorkflowRequest.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/UpdateWorkflowRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsGetRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/client → client}/requests/WorkflowsListRequest.d.mts +0 -0
- /package/dist/esm/api/resources/workflows/{resources/mcpServer/resources/tools/client → client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/workflows/{resources/workflows/types → types}/WorkflowsDeleteResponse.d.mts +0 -0
|
@@ -8,58 +8,38 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
import * as environments from "../../../../../../environments.mjs";
|
|
23
|
-
import * as core from "../../../../../../core/index.mjs";
|
|
24
|
-
import * as phenoml from "../../../../../index.mjs";
|
|
25
|
-
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
26
|
-
import * as errors from "../../../../../../errors/index.mjs";
|
|
27
|
-
export class Workflows {
|
|
28
|
-
constructor(_options = {}) {
|
|
11
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
12
|
+
import * as core from "../../../../core/index.mjs";
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
15
|
+
import * as phenoml from "../../../index.mjs";
|
|
16
|
+
export class Summary {
|
|
17
|
+
constructor(_options) {
|
|
29
18
|
this._options = _options;
|
|
30
19
|
}
|
|
31
20
|
/**
|
|
32
|
-
* Retrieves all
|
|
21
|
+
* Retrieves all summary templates for the authenticated user
|
|
33
22
|
*
|
|
34
|
-
* @param {
|
|
35
|
-
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
24
|
*
|
|
37
|
-
* @throws {@link phenoml.
|
|
38
|
-
* @throws {@link phenoml.
|
|
39
|
-
* @throws {@link phenoml.workflows.InternalServerError}
|
|
25
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
26
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
40
27
|
*
|
|
41
28
|
* @example
|
|
42
|
-
* await client.
|
|
43
|
-
* verbose: true
|
|
44
|
-
* })
|
|
29
|
+
* await client.summary.listTemplates()
|
|
45
30
|
*/
|
|
46
|
-
|
|
47
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
31
|
+
listTemplates(requestOptions) {
|
|
32
|
+
return core.HttpResponsePromise.fromPromise(this.__listTemplates(requestOptions));
|
|
48
33
|
}
|
|
49
|
-
|
|
50
|
-
return __awaiter(this,
|
|
34
|
+
__listTemplates(requestOptions) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
36
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
52
|
-
const {
|
|
53
|
-
const _queryParams = {};
|
|
54
|
-
if (verbose != null) {
|
|
55
|
-
_queryParams["verbose"] = verbose.toString();
|
|
56
|
-
}
|
|
57
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
58
38
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
59
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "
|
|
39
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "fhir2summary/templates"),
|
|
60
40
|
method: "GET",
|
|
61
41
|
headers: _headers,
|
|
62
|
-
queryParameters:
|
|
42
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
63
43
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
64
44
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
65
45
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -73,11 +53,9 @@ export class Workflows {
|
|
|
73
53
|
if (_response.error.reason === "status-code") {
|
|
74
54
|
switch (_response.error.statusCode) {
|
|
75
55
|
case 401:
|
|
76
|
-
throw new phenoml.
|
|
77
|
-
case 403:
|
|
78
|
-
throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
56
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
79
57
|
case 500:
|
|
80
|
-
throw new phenoml.
|
|
58
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
81
59
|
default:
|
|
82
60
|
throw new errors.phenomlError({
|
|
83
61
|
statusCode: _response.error.statusCode,
|
|
@@ -94,7 +72,7 @@ export class Workflows {
|
|
|
94
72
|
rawResponse: _response.rawResponse,
|
|
95
73
|
});
|
|
96
74
|
case "timeout":
|
|
97
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /
|
|
75
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /fhir2summary/templates.");
|
|
98
76
|
case "unknown":
|
|
99
77
|
throw new errors.phenomlError({
|
|
100
78
|
message: _response.error.errorMessage,
|
|
@@ -104,49 +82,38 @@ export class Workflows {
|
|
|
104
82
|
});
|
|
105
83
|
}
|
|
106
84
|
/**
|
|
107
|
-
* Creates a
|
|
85
|
+
* Creates a summary template from an example using LLM function calling
|
|
108
86
|
*
|
|
109
|
-
* @param {phenoml.
|
|
110
|
-
* @param {
|
|
87
|
+
* @param {phenoml.summary.CreateSummaryTemplateRequest} request
|
|
88
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
89
|
*
|
|
112
|
-
* @throws {@link phenoml.
|
|
113
|
-
* @throws {@link phenoml.
|
|
114
|
-
* @throws {@link phenoml.
|
|
115
|
-
* @throws {@link phenoml.workflows.InternalServerError}
|
|
90
|
+
* @throws {@link phenoml.summary.BadRequestError}
|
|
91
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
92
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
116
93
|
*
|
|
117
94
|
* @example
|
|
118
|
-
* await client.
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* "patient_last_name": "Rippin",
|
|
124
|
-
* "patient_first_name": "Clay",
|
|
125
|
-
* "diagnosis_code": "I10"
|
|
126
|
-
* },
|
|
127
|
-
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
95
|
+
* await client.summary.createTemplate({
|
|
96
|
+
* name: "name",
|
|
97
|
+
* example_summary: "Patient John Doe, age 45, presents with hypertension diagnosed on 2024-01-15.",
|
|
98
|
+
* target_resources: ["Patient", "Condition", "Observation"],
|
|
99
|
+
* mode: "mode"
|
|
128
100
|
* })
|
|
129
101
|
*/
|
|
130
|
-
|
|
131
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
102
|
+
createTemplate(request, requestOptions) {
|
|
103
|
+
return core.HttpResponsePromise.fromPromise(this.__createTemplate(request, requestOptions));
|
|
132
104
|
}
|
|
133
|
-
|
|
105
|
+
__createTemplate(request, requestOptions) {
|
|
134
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
107
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
136
|
-
const
|
|
137
|
-
const _queryParams = {};
|
|
138
|
-
if (verbose != null) {
|
|
139
|
-
_queryParams["verbose"] = verbose.toString();
|
|
140
|
-
}
|
|
141
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
108
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
142
109
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
143
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "
|
|
110
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "fhir2summary/template"),
|
|
144
111
|
method: "POST",
|
|
145
112
|
headers: _headers,
|
|
146
113
|
contentType: "application/json",
|
|
147
|
-
queryParameters:
|
|
114
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
148
115
|
requestType: "json",
|
|
149
|
-
body:
|
|
116
|
+
body: request,
|
|
150
117
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
151
118
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
152
119
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -160,13 +127,11 @@ export class Workflows {
|
|
|
160
127
|
if (_response.error.reason === "status-code") {
|
|
161
128
|
switch (_response.error.statusCode) {
|
|
162
129
|
case 400:
|
|
163
|
-
throw new phenoml.
|
|
130
|
+
throw new phenoml.summary.BadRequestError(_response.error.body, _response.rawResponse);
|
|
164
131
|
case 401:
|
|
165
|
-
throw new phenoml.
|
|
166
|
-
case 403:
|
|
167
|
-
throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
132
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
168
133
|
case 500:
|
|
169
|
-
throw new phenoml.
|
|
134
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
170
135
|
default:
|
|
171
136
|
throw new errors.phenomlError({
|
|
172
137
|
statusCode: _response.error.statusCode,
|
|
@@ -183,7 +148,7 @@ export class Workflows {
|
|
|
183
148
|
rawResponse: _response.rawResponse,
|
|
184
149
|
});
|
|
185
150
|
case "timeout":
|
|
186
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /
|
|
151
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /fhir2summary/template.");
|
|
187
152
|
case "unknown":
|
|
188
153
|
throw new errors.phenomlError({
|
|
189
154
|
message: _response.error.errorMessage,
|
|
@@ -193,39 +158,31 @@ export class Workflows {
|
|
|
193
158
|
});
|
|
194
159
|
}
|
|
195
160
|
/**
|
|
196
|
-
* Retrieves a
|
|
161
|
+
* Retrieves a specific summary template
|
|
197
162
|
*
|
|
198
|
-
* @param {string} id - ID
|
|
199
|
-
* @param {
|
|
200
|
-
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
163
|
+
* @param {string} id - Template ID
|
|
164
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
201
165
|
*
|
|
202
|
-
* @throws {@link phenoml.
|
|
203
|
-
* @throws {@link phenoml.
|
|
204
|
-
* @throws {@link phenoml.
|
|
205
|
-
* @throws {@link phenoml.
|
|
166
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
167
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
168
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
169
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
206
170
|
*
|
|
207
171
|
* @example
|
|
208
|
-
* await client.
|
|
209
|
-
* verbose: true
|
|
210
|
-
* })
|
|
172
|
+
* await client.summary.getTemplate("id")
|
|
211
173
|
*/
|
|
212
|
-
|
|
213
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
174
|
+
getTemplate(id, requestOptions) {
|
|
175
|
+
return core.HttpResponsePromise.fromPromise(this.__getTemplate(id, requestOptions));
|
|
214
176
|
}
|
|
215
|
-
|
|
216
|
-
return __awaiter(this,
|
|
177
|
+
__getTemplate(id, requestOptions) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
217
179
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
218
|
-
const {
|
|
219
|
-
const _queryParams = {};
|
|
220
|
-
if (verbose != null) {
|
|
221
|
-
_queryParams["verbose"] = verbose.toString();
|
|
222
|
-
}
|
|
223
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
180
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
224
181
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
225
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `
|
|
182
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir2summary/template/${core.url.encodePathParam(id)}`),
|
|
226
183
|
method: "GET",
|
|
227
184
|
headers: _headers,
|
|
228
|
-
queryParameters:
|
|
185
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
229
186
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
230
187
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
231
188
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -239,13 +196,13 @@ export class Workflows {
|
|
|
239
196
|
if (_response.error.reason === "status-code") {
|
|
240
197
|
switch (_response.error.statusCode) {
|
|
241
198
|
case 401:
|
|
242
|
-
throw new phenoml.
|
|
199
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
243
200
|
case 403:
|
|
244
|
-
throw new phenoml.
|
|
201
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
245
202
|
case 404:
|
|
246
|
-
throw new phenoml.
|
|
203
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
247
204
|
case 500:
|
|
248
|
-
throw new phenoml.
|
|
205
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
249
206
|
default:
|
|
250
207
|
throw new errors.phenomlError({
|
|
251
208
|
statusCode: _response.error.statusCode,
|
|
@@ -262,7 +219,7 @@ export class Workflows {
|
|
|
262
219
|
rawResponse: _response.rawResponse,
|
|
263
220
|
});
|
|
264
221
|
case "timeout":
|
|
265
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /
|
|
222
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /fhir2summary/template/{id}.");
|
|
266
223
|
case "unknown":
|
|
267
224
|
throw new errors.phenomlError({
|
|
268
225
|
message: _response.error.errorMessage,
|
|
@@ -272,51 +229,41 @@ export class Workflows {
|
|
|
272
229
|
});
|
|
273
230
|
}
|
|
274
231
|
/**
|
|
275
|
-
* Updates an existing
|
|
232
|
+
* Updates an existing summary template
|
|
276
233
|
*
|
|
277
|
-
* @param {string} id - ID
|
|
278
|
-
* @param {phenoml.
|
|
279
|
-
* @param {
|
|
234
|
+
* @param {string} id - Template ID
|
|
235
|
+
* @param {phenoml.summary.UpdateSummaryTemplateRequest} request
|
|
236
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
280
237
|
*
|
|
281
|
-
* @throws {@link phenoml.
|
|
282
|
-
* @throws {@link phenoml.
|
|
283
|
-
* @throws {@link phenoml.
|
|
284
|
-
* @throws {@link phenoml.
|
|
285
|
-
* @throws {@link phenoml.
|
|
238
|
+
* @throws {@link phenoml.summary.BadRequestError}
|
|
239
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
240
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
241
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
242
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
286
243
|
*
|
|
287
244
|
* @example
|
|
288
|
-
* await client.
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* "patient_last_name": "Smith",
|
|
294
|
-
* "patient_first_name": "John",
|
|
295
|
-
* "diagnosis_code": "E11"
|
|
296
|
-
* },
|
|
297
|
-
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
245
|
+
* await client.summary.updateTemplate("id", {
|
|
246
|
+
* name: "name",
|
|
247
|
+
* template: "template",
|
|
248
|
+
* target_resources: ["target_resources"],
|
|
249
|
+
* mode: "mode"
|
|
298
250
|
* })
|
|
299
251
|
*/
|
|
300
|
-
|
|
301
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
252
|
+
updateTemplate(id, request, requestOptions) {
|
|
253
|
+
return core.HttpResponsePromise.fromPromise(this.__updateTemplate(id, request, requestOptions));
|
|
302
254
|
}
|
|
303
|
-
|
|
255
|
+
__updateTemplate(id, request, requestOptions) {
|
|
304
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
305
257
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
306
|
-
const
|
|
307
|
-
const _queryParams = {};
|
|
308
|
-
if (verbose != null) {
|
|
309
|
-
_queryParams["verbose"] = verbose.toString();
|
|
310
|
-
}
|
|
311
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
258
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
312
259
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
313
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `
|
|
260
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir2summary/template/${core.url.encodePathParam(id)}`),
|
|
314
261
|
method: "PUT",
|
|
315
262
|
headers: _headers,
|
|
316
263
|
contentType: "application/json",
|
|
317
|
-
queryParameters:
|
|
264
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
318
265
|
requestType: "json",
|
|
319
|
-
body:
|
|
266
|
+
body: request,
|
|
320
267
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
321
268
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
322
269
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -330,15 +277,15 @@ export class Workflows {
|
|
|
330
277
|
if (_response.error.reason === "status-code") {
|
|
331
278
|
switch (_response.error.statusCode) {
|
|
332
279
|
case 400:
|
|
333
|
-
throw new phenoml.
|
|
280
|
+
throw new phenoml.summary.BadRequestError(_response.error.body, _response.rawResponse);
|
|
334
281
|
case 401:
|
|
335
|
-
throw new phenoml.
|
|
282
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
336
283
|
case 403:
|
|
337
|
-
throw new phenoml.
|
|
284
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
338
285
|
case 404:
|
|
339
|
-
throw new phenoml.
|
|
286
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
340
287
|
case 500:
|
|
341
|
-
throw new phenoml.
|
|
288
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
342
289
|
default:
|
|
343
290
|
throw new errors.phenomlError({
|
|
344
291
|
statusCode: _response.error.statusCode,
|
|
@@ -355,7 +302,7 @@ export class Workflows {
|
|
|
355
302
|
rawResponse: _response.rawResponse,
|
|
356
303
|
});
|
|
357
304
|
case "timeout":
|
|
358
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling PUT /
|
|
305
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling PUT /fhir2summary/template/{id}.");
|
|
359
306
|
case "unknown":
|
|
360
307
|
throw new errors.phenomlError({
|
|
361
308
|
message: _response.error.errorMessage,
|
|
@@ -365,28 +312,28 @@ export class Workflows {
|
|
|
365
312
|
});
|
|
366
313
|
}
|
|
367
314
|
/**
|
|
368
|
-
* Deletes a
|
|
315
|
+
* Deletes a summary template
|
|
369
316
|
*
|
|
370
|
-
* @param {string} id - ID
|
|
371
|
-
* @param {
|
|
317
|
+
* @param {string} id - Template ID
|
|
318
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
372
319
|
*
|
|
373
|
-
* @throws {@link phenoml.
|
|
374
|
-
* @throws {@link phenoml.
|
|
375
|
-
* @throws {@link phenoml.
|
|
376
|
-
* @throws {@link phenoml.
|
|
320
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
321
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
322
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
323
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
377
324
|
*
|
|
378
325
|
* @example
|
|
379
|
-
* await client.
|
|
326
|
+
* await client.summary.deleteTemplate("id")
|
|
380
327
|
*/
|
|
381
|
-
|
|
382
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
328
|
+
deleteTemplate(id, requestOptions) {
|
|
329
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteTemplate(id, requestOptions));
|
|
383
330
|
}
|
|
384
|
-
|
|
331
|
+
__deleteTemplate(id, requestOptions) {
|
|
385
332
|
return __awaiter(this, void 0, void 0, function* () {
|
|
386
333
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
387
|
-
|
|
334
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
388
335
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
389
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `
|
|
336
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir2summary/template/${core.url.encodePathParam(id)}`),
|
|
390
337
|
method: "DELETE",
|
|
391
338
|
headers: _headers,
|
|
392
339
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -403,13 +350,13 @@ export class Workflows {
|
|
|
403
350
|
if (_response.error.reason === "status-code") {
|
|
404
351
|
switch (_response.error.statusCode) {
|
|
405
352
|
case 401:
|
|
406
|
-
throw new phenoml.
|
|
353
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
407
354
|
case 403:
|
|
408
|
-
throw new phenoml.
|
|
355
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
409
356
|
case 404:
|
|
410
|
-
throw new phenoml.
|
|
357
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
411
358
|
case 500:
|
|
412
|
-
throw new phenoml.
|
|
359
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
413
360
|
default:
|
|
414
361
|
throw new errors.phenomlError({
|
|
415
362
|
statusCode: _response.error.statusCode,
|
|
@@ -426,7 +373,7 @@ export class Workflows {
|
|
|
426
373
|
rawResponse: _response.rawResponse,
|
|
427
374
|
});
|
|
428
375
|
case "timeout":
|
|
429
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling DELETE /
|
|
376
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling DELETE /fhir2summary/template/{id}.");
|
|
430
377
|
case "unknown":
|
|
431
378
|
throw new errors.phenomlError({
|
|
432
379
|
message: _response.error.errorMessage,
|
|
@@ -436,37 +383,35 @@ export class Workflows {
|
|
|
436
383
|
});
|
|
437
384
|
}
|
|
438
385
|
/**
|
|
439
|
-
*
|
|
386
|
+
* Creates a summary from FHIR resources using one of two modes:
|
|
387
|
+
* - **narrative**: Uses a template to substitute FHIR data into placeholders (requires template_id)
|
|
388
|
+
* - **flatten**: Flattens FHIR resources into a searchable format for RAG/search (no template needed)
|
|
440
389
|
*
|
|
441
|
-
* @param {
|
|
442
|
-
* @param {
|
|
443
|
-
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
390
|
+
* @param {phenoml.summary.CreateSummaryRequest} request
|
|
391
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
444
392
|
*
|
|
445
|
-
* @throws {@link phenoml.
|
|
446
|
-
* @throws {@link phenoml.
|
|
447
|
-
* @throws {@link phenoml.
|
|
448
|
-
* @throws {@link phenoml.
|
|
449
|
-
* @throws {@link phenoml.
|
|
393
|
+
* @throws {@link phenoml.summary.BadRequestError}
|
|
394
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
395
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
396
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
397
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
450
398
|
*
|
|
451
399
|
* @example
|
|
452
|
-
* await client.
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
* "patient_first_name": "Mary",
|
|
456
|
-
* "diagnosis_code": "M79.3",
|
|
457
|
-
* "encounter_date": "2024-01-15"
|
|
400
|
+
* await client.summary.create({
|
|
401
|
+
* fhir_resources: {
|
|
402
|
+
* resourceType: "resourceType"
|
|
458
403
|
* }
|
|
459
404
|
* })
|
|
460
405
|
*/
|
|
461
|
-
|
|
462
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
406
|
+
create(request, requestOptions) {
|
|
407
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
463
408
|
}
|
|
464
|
-
|
|
409
|
+
__create(request, requestOptions) {
|
|
465
410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
466
411
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
467
|
-
|
|
412
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
468
413
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
469
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default,
|
|
414
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "fhir2summary/create"),
|
|
470
415
|
method: "POST",
|
|
471
416
|
headers: _headers,
|
|
472
417
|
contentType: "application/json",
|
|
@@ -486,15 +431,15 @@ export class Workflows {
|
|
|
486
431
|
if (_response.error.reason === "status-code") {
|
|
487
432
|
switch (_response.error.statusCode) {
|
|
488
433
|
case 400:
|
|
489
|
-
throw new phenoml.
|
|
434
|
+
throw new phenoml.summary.BadRequestError(_response.error.body, _response.rawResponse);
|
|
490
435
|
case 401:
|
|
491
|
-
throw new phenoml.
|
|
436
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
492
437
|
case 403:
|
|
493
|
-
throw new phenoml.
|
|
438
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
494
439
|
case 404:
|
|
495
|
-
throw new phenoml.
|
|
440
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
496
441
|
case 500:
|
|
497
|
-
throw new phenoml.
|
|
442
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
498
443
|
default:
|
|
499
444
|
throw new errors.phenomlError({
|
|
500
445
|
statusCode: _response.error.statusCode,
|
|
@@ -511,7 +456,7 @@ export class Workflows {
|
|
|
511
456
|
rawResponse: _response.rawResponse,
|
|
512
457
|
});
|
|
513
458
|
case "timeout":
|
|
514
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /
|
|
459
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /fhir2summary/create.");
|
|
515
460
|
case "unknown":
|
|
516
461
|
throw new errors.phenomlError({
|
|
517
462
|
message: _response.error.errorMessage,
|
|
@@ -522,11 +467,7 @@ export class Workflows {
|
|
|
522
467
|
}
|
|
523
468
|
_getAuthorizationHeader() {
|
|
524
469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
-
|
|
526
|
-
if (bearer != null) {
|
|
527
|
-
return `Bearer ${bearer}`;
|
|
528
|
-
}
|
|
529
|
-
return undefined;
|
|
470
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
530
471
|
});
|
|
531
472
|
}
|
|
532
473
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type * as phenoml from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* fhir_resources: {
|
|
6
|
+
* resourceType: "resourceType"
|
|
7
|
+
* }
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateSummaryRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Summary generation mode:
|
|
13
|
+
* - narrative: Substitute FHIR data into a template (requires template_id)
|
|
14
|
+
* - flatten: Flatten FHIR resources for RAG/search (no template needed)
|
|
15
|
+
*/
|
|
16
|
+
mode?: CreateSummaryRequest.Mode;
|
|
17
|
+
/** ID of the template to use (required for narrative mode) */
|
|
18
|
+
template_id?: string;
|
|
19
|
+
/** FHIR resources (single resource or Bundle) */
|
|
20
|
+
fhir_resources: CreateSummaryRequest.FhirResources;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace CreateSummaryRequest {
|
|
23
|
+
/**
|
|
24
|
+
* Summary generation mode:
|
|
25
|
+
* - narrative: Substitute FHIR data into a template (requires template_id)
|
|
26
|
+
* - flatten: Flatten FHIR resources for RAG/search (no template needed)
|
|
27
|
+
*/
|
|
28
|
+
const Mode: {
|
|
29
|
+
readonly Narrative: "narrative";
|
|
30
|
+
readonly Flatten: "flatten";
|
|
31
|
+
};
|
|
32
|
+
type Mode = (typeof Mode)[keyof typeof Mode];
|
|
33
|
+
/**
|
|
34
|
+
* FHIR resources (single resource or Bundle)
|
|
35
|
+
*/
|
|
36
|
+
type FhirResources = phenoml.summary.FhirResource | phenoml.summary.FhirBundle;
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var CreateSummaryRequest;
|
|
3
|
+
(function (CreateSummaryRequest) {
|
|
4
|
+
/**
|
|
5
|
+
* Summary generation mode:
|
|
6
|
+
* - narrative: Substitute FHIR data into a template (requires template_id)
|
|
7
|
+
* - flatten: Flatten FHIR resources for RAG/search (no template needed)
|
|
8
|
+
*/
|
|
9
|
+
CreateSummaryRequest.Mode = {
|
|
10
|
+
Narrative: "narrative",
|
|
11
|
+
Flatten: "flatten",
|
|
12
|
+
};
|
|
13
|
+
})(CreateSummaryRequest || (CreateSummaryRequest = {}));
|