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
|
@@ -42,60 +42,40 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
-
var t = {};
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
-
t[p] = s[p];
|
|
49
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
-
t[p[i]] = s[p[i]];
|
|
53
|
-
}
|
|
54
|
-
return t;
|
|
55
|
-
};
|
|
56
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
59
|
-
const core = __importStar(require("
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
class
|
|
64
|
-
constructor(_options
|
|
46
|
+
exports.Summary = void 0;
|
|
47
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
48
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
51
|
+
const phenoml = __importStar(require("../../../index.js"));
|
|
52
|
+
class Summary {
|
|
53
|
+
constructor(_options) {
|
|
65
54
|
this._options = _options;
|
|
66
55
|
}
|
|
67
56
|
/**
|
|
68
|
-
* Retrieves all
|
|
57
|
+
* Retrieves all summary templates for the authenticated user
|
|
69
58
|
*
|
|
70
|
-
* @param {
|
|
71
|
-
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
60
|
*
|
|
73
|
-
* @throws {@link phenoml.
|
|
74
|
-
* @throws {@link phenoml.
|
|
75
|
-
* @throws {@link phenoml.workflows.InternalServerError}
|
|
61
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
62
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
76
63
|
*
|
|
77
64
|
* @example
|
|
78
|
-
* await client.
|
|
79
|
-
* verbose: true
|
|
80
|
-
* })
|
|
65
|
+
* await client.summary.listTemplates()
|
|
81
66
|
*/
|
|
82
|
-
|
|
83
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
67
|
+
listTemplates(requestOptions) {
|
|
68
|
+
return core.HttpResponsePromise.fromPromise(this.__listTemplates(requestOptions));
|
|
84
69
|
}
|
|
85
|
-
|
|
86
|
-
return __awaiter(this,
|
|
70
|
+
__listTemplates(requestOptions) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
72
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
88
|
-
const {
|
|
89
|
-
const _queryParams = {};
|
|
90
|
-
if (verbose != null) {
|
|
91
|
-
_queryParams["verbose"] = verbose.toString();
|
|
92
|
-
}
|
|
93
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
94
74
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
95
|
-
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, "
|
|
75
|
+
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"),
|
|
96
76
|
method: "GET",
|
|
97
77
|
headers: _headers,
|
|
98
|
-
queryParameters:
|
|
78
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
99
79
|
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,
|
|
100
80
|
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,
|
|
101
81
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -109,11 +89,9 @@ class Workflows {
|
|
|
109
89
|
if (_response.error.reason === "status-code") {
|
|
110
90
|
switch (_response.error.statusCode) {
|
|
111
91
|
case 401:
|
|
112
|
-
throw new phenoml.
|
|
113
|
-
case 403:
|
|
114
|
-
throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
92
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
115
93
|
case 500:
|
|
116
|
-
throw new phenoml.
|
|
94
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
117
95
|
default:
|
|
118
96
|
throw new errors.phenomlError({
|
|
119
97
|
statusCode: _response.error.statusCode,
|
|
@@ -130,7 +108,7 @@ class Workflows {
|
|
|
130
108
|
rawResponse: _response.rawResponse,
|
|
131
109
|
});
|
|
132
110
|
case "timeout":
|
|
133
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /
|
|
111
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /fhir2summary/templates.");
|
|
134
112
|
case "unknown":
|
|
135
113
|
throw new errors.phenomlError({
|
|
136
114
|
message: _response.error.errorMessage,
|
|
@@ -140,49 +118,38 @@ class Workflows {
|
|
|
140
118
|
});
|
|
141
119
|
}
|
|
142
120
|
/**
|
|
143
|
-
* Creates a
|
|
121
|
+
* Creates a summary template from an example using LLM function calling
|
|
144
122
|
*
|
|
145
|
-
* @param {phenoml.
|
|
146
|
-
* @param {
|
|
123
|
+
* @param {phenoml.summary.CreateSummaryTemplateRequest} request
|
|
124
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
125
|
*
|
|
148
|
-
* @throws {@link phenoml.
|
|
149
|
-
* @throws {@link phenoml.
|
|
150
|
-
* @throws {@link phenoml.
|
|
151
|
-
* @throws {@link phenoml.workflows.InternalServerError}
|
|
126
|
+
* @throws {@link phenoml.summary.BadRequestError}
|
|
127
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
128
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
152
129
|
*
|
|
153
130
|
* @example
|
|
154
|
-
* await client.
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
* "patient_last_name": "Rippin",
|
|
160
|
-
* "patient_first_name": "Clay",
|
|
161
|
-
* "diagnosis_code": "I10"
|
|
162
|
-
* },
|
|
163
|
-
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
131
|
+
* await client.summary.createTemplate({
|
|
132
|
+
* name: "name",
|
|
133
|
+
* example_summary: "Patient John Doe, age 45, presents with hypertension diagnosed on 2024-01-15.",
|
|
134
|
+
* target_resources: ["Patient", "Condition", "Observation"],
|
|
135
|
+
* mode: "mode"
|
|
164
136
|
* })
|
|
165
137
|
*/
|
|
166
|
-
|
|
167
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
138
|
+
createTemplate(request, requestOptions) {
|
|
139
|
+
return core.HttpResponsePromise.fromPromise(this.__createTemplate(request, requestOptions));
|
|
168
140
|
}
|
|
169
|
-
|
|
141
|
+
__createTemplate(request, requestOptions) {
|
|
170
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
143
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
172
|
-
const
|
|
173
|
-
const _queryParams = {};
|
|
174
|
-
if (verbose != null) {
|
|
175
|
-
_queryParams["verbose"] = verbose.toString();
|
|
176
|
-
}
|
|
177
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
144
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
178
145
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
179
|
-
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, "
|
|
146
|
+
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"),
|
|
180
147
|
method: "POST",
|
|
181
148
|
headers: _headers,
|
|
182
149
|
contentType: "application/json",
|
|
183
|
-
queryParameters:
|
|
150
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
184
151
|
requestType: "json",
|
|
185
|
-
body:
|
|
152
|
+
body: request,
|
|
186
153
|
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,
|
|
187
154
|
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,
|
|
188
155
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -196,13 +163,11 @@ class Workflows {
|
|
|
196
163
|
if (_response.error.reason === "status-code") {
|
|
197
164
|
switch (_response.error.statusCode) {
|
|
198
165
|
case 400:
|
|
199
|
-
throw new phenoml.
|
|
166
|
+
throw new phenoml.summary.BadRequestError(_response.error.body, _response.rawResponse);
|
|
200
167
|
case 401:
|
|
201
|
-
throw new phenoml.
|
|
202
|
-
case 403:
|
|
203
|
-
throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
168
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
204
169
|
case 500:
|
|
205
|
-
throw new phenoml.
|
|
170
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
206
171
|
default:
|
|
207
172
|
throw new errors.phenomlError({
|
|
208
173
|
statusCode: _response.error.statusCode,
|
|
@@ -219,7 +184,7 @@ class Workflows {
|
|
|
219
184
|
rawResponse: _response.rawResponse,
|
|
220
185
|
});
|
|
221
186
|
case "timeout":
|
|
222
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /
|
|
187
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /fhir2summary/template.");
|
|
223
188
|
case "unknown":
|
|
224
189
|
throw new errors.phenomlError({
|
|
225
190
|
message: _response.error.errorMessage,
|
|
@@ -229,39 +194,31 @@ class Workflows {
|
|
|
229
194
|
});
|
|
230
195
|
}
|
|
231
196
|
/**
|
|
232
|
-
* Retrieves a
|
|
197
|
+
* Retrieves a specific summary template
|
|
233
198
|
*
|
|
234
|
-
* @param {string} id - ID
|
|
235
|
-
* @param {
|
|
236
|
-
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
199
|
+
* @param {string} id - Template ID
|
|
200
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
201
|
*
|
|
238
|
-
* @throws {@link phenoml.
|
|
239
|
-
* @throws {@link phenoml.
|
|
240
|
-
* @throws {@link phenoml.
|
|
241
|
-
* @throws {@link phenoml.
|
|
202
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
203
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
204
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
205
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
242
206
|
*
|
|
243
207
|
* @example
|
|
244
|
-
* await client.
|
|
245
|
-
* verbose: true
|
|
246
|
-
* })
|
|
208
|
+
* await client.summary.getTemplate("id")
|
|
247
209
|
*/
|
|
248
|
-
|
|
249
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
210
|
+
getTemplate(id, requestOptions) {
|
|
211
|
+
return core.HttpResponsePromise.fromPromise(this.__getTemplate(id, requestOptions));
|
|
250
212
|
}
|
|
251
|
-
|
|
252
|
-
return __awaiter(this,
|
|
213
|
+
__getTemplate(id, requestOptions) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
215
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
254
|
-
const {
|
|
255
|
-
const _queryParams = {};
|
|
256
|
-
if (verbose != null) {
|
|
257
|
-
_queryParams["verbose"] = verbose.toString();
|
|
258
|
-
}
|
|
259
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
216
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
260
217
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
261
|
-
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, `
|
|
218
|
+
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)}`),
|
|
262
219
|
method: "GET",
|
|
263
220
|
headers: _headers,
|
|
264
|
-
queryParameters:
|
|
221
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
265
222
|
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,
|
|
266
223
|
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,
|
|
267
224
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -275,13 +232,13 @@ class Workflows {
|
|
|
275
232
|
if (_response.error.reason === "status-code") {
|
|
276
233
|
switch (_response.error.statusCode) {
|
|
277
234
|
case 401:
|
|
278
|
-
throw new phenoml.
|
|
235
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
279
236
|
case 403:
|
|
280
|
-
throw new phenoml.
|
|
237
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
281
238
|
case 404:
|
|
282
|
-
throw new phenoml.
|
|
239
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
283
240
|
case 500:
|
|
284
|
-
throw new phenoml.
|
|
241
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
285
242
|
default:
|
|
286
243
|
throw new errors.phenomlError({
|
|
287
244
|
statusCode: _response.error.statusCode,
|
|
@@ -298,7 +255,7 @@ class Workflows {
|
|
|
298
255
|
rawResponse: _response.rawResponse,
|
|
299
256
|
});
|
|
300
257
|
case "timeout":
|
|
301
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /
|
|
258
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /fhir2summary/template/{id}.");
|
|
302
259
|
case "unknown":
|
|
303
260
|
throw new errors.phenomlError({
|
|
304
261
|
message: _response.error.errorMessage,
|
|
@@ -308,51 +265,41 @@ class Workflows {
|
|
|
308
265
|
});
|
|
309
266
|
}
|
|
310
267
|
/**
|
|
311
|
-
* Updates an existing
|
|
268
|
+
* Updates an existing summary template
|
|
312
269
|
*
|
|
313
|
-
* @param {string} id - ID
|
|
314
|
-
* @param {phenoml.
|
|
315
|
-
* @param {
|
|
270
|
+
* @param {string} id - Template ID
|
|
271
|
+
* @param {phenoml.summary.UpdateSummaryTemplateRequest} request
|
|
272
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
316
273
|
*
|
|
317
|
-
* @throws {@link phenoml.
|
|
318
|
-
* @throws {@link phenoml.
|
|
319
|
-
* @throws {@link phenoml.
|
|
320
|
-
* @throws {@link phenoml.
|
|
321
|
-
* @throws {@link phenoml.
|
|
274
|
+
* @throws {@link phenoml.summary.BadRequestError}
|
|
275
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
276
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
277
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
278
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
322
279
|
*
|
|
323
280
|
* @example
|
|
324
|
-
* await client.
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* "patient_last_name": "Smith",
|
|
330
|
-
* "patient_first_name": "John",
|
|
331
|
-
* "diagnosis_code": "E11"
|
|
332
|
-
* },
|
|
333
|
-
* fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
|
|
281
|
+
* await client.summary.updateTemplate("id", {
|
|
282
|
+
* name: "name",
|
|
283
|
+
* template: "template",
|
|
284
|
+
* target_resources: ["target_resources"],
|
|
285
|
+
* mode: "mode"
|
|
334
286
|
* })
|
|
335
287
|
*/
|
|
336
|
-
|
|
337
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
288
|
+
updateTemplate(id, request, requestOptions) {
|
|
289
|
+
return core.HttpResponsePromise.fromPromise(this.__updateTemplate(id, request, requestOptions));
|
|
338
290
|
}
|
|
339
|
-
|
|
291
|
+
__updateTemplate(id, request, requestOptions) {
|
|
340
292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
341
293
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
342
|
-
const
|
|
343
|
-
const _queryParams = {};
|
|
344
|
-
if (verbose != null) {
|
|
345
|
-
_queryParams["verbose"] = verbose.toString();
|
|
346
|
-
}
|
|
347
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
294
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
348
295
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
349
|
-
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, `
|
|
296
|
+
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)}`),
|
|
350
297
|
method: "PUT",
|
|
351
298
|
headers: _headers,
|
|
352
299
|
contentType: "application/json",
|
|
353
|
-
queryParameters:
|
|
300
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
354
301
|
requestType: "json",
|
|
355
|
-
body:
|
|
302
|
+
body: request,
|
|
356
303
|
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,
|
|
357
304
|
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,
|
|
358
305
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -366,15 +313,15 @@ class Workflows {
|
|
|
366
313
|
if (_response.error.reason === "status-code") {
|
|
367
314
|
switch (_response.error.statusCode) {
|
|
368
315
|
case 400:
|
|
369
|
-
throw new phenoml.
|
|
316
|
+
throw new phenoml.summary.BadRequestError(_response.error.body, _response.rawResponse);
|
|
370
317
|
case 401:
|
|
371
|
-
throw new phenoml.
|
|
318
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
372
319
|
case 403:
|
|
373
|
-
throw new phenoml.
|
|
320
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
374
321
|
case 404:
|
|
375
|
-
throw new phenoml.
|
|
322
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
376
323
|
case 500:
|
|
377
|
-
throw new phenoml.
|
|
324
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
378
325
|
default:
|
|
379
326
|
throw new errors.phenomlError({
|
|
380
327
|
statusCode: _response.error.statusCode,
|
|
@@ -391,7 +338,7 @@ class Workflows {
|
|
|
391
338
|
rawResponse: _response.rawResponse,
|
|
392
339
|
});
|
|
393
340
|
case "timeout":
|
|
394
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling PUT /
|
|
341
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling PUT /fhir2summary/template/{id}.");
|
|
395
342
|
case "unknown":
|
|
396
343
|
throw new errors.phenomlError({
|
|
397
344
|
message: _response.error.errorMessage,
|
|
@@ -401,28 +348,28 @@ class Workflows {
|
|
|
401
348
|
});
|
|
402
349
|
}
|
|
403
350
|
/**
|
|
404
|
-
* Deletes a
|
|
351
|
+
* Deletes a summary template
|
|
405
352
|
*
|
|
406
|
-
* @param {string} id - ID
|
|
407
|
-
* @param {
|
|
353
|
+
* @param {string} id - Template ID
|
|
354
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
408
355
|
*
|
|
409
|
-
* @throws {@link phenoml.
|
|
410
|
-
* @throws {@link phenoml.
|
|
411
|
-
* @throws {@link phenoml.
|
|
412
|
-
* @throws {@link phenoml.
|
|
356
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
357
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
358
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
359
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
413
360
|
*
|
|
414
361
|
* @example
|
|
415
|
-
* await client.
|
|
362
|
+
* await client.summary.deleteTemplate("id")
|
|
416
363
|
*/
|
|
417
|
-
|
|
418
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
364
|
+
deleteTemplate(id, requestOptions) {
|
|
365
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteTemplate(id, requestOptions));
|
|
419
366
|
}
|
|
420
|
-
|
|
367
|
+
__deleteTemplate(id, requestOptions) {
|
|
421
368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
422
369
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
423
|
-
|
|
370
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
424
371
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
425
|
-
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, `
|
|
372
|
+
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)}`),
|
|
426
373
|
method: "DELETE",
|
|
427
374
|
headers: _headers,
|
|
428
375
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -439,13 +386,13 @@ class Workflows {
|
|
|
439
386
|
if (_response.error.reason === "status-code") {
|
|
440
387
|
switch (_response.error.statusCode) {
|
|
441
388
|
case 401:
|
|
442
|
-
throw new phenoml.
|
|
389
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
443
390
|
case 403:
|
|
444
|
-
throw new phenoml.
|
|
391
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
445
392
|
case 404:
|
|
446
|
-
throw new phenoml.
|
|
393
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
447
394
|
case 500:
|
|
448
|
-
throw new phenoml.
|
|
395
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
449
396
|
default:
|
|
450
397
|
throw new errors.phenomlError({
|
|
451
398
|
statusCode: _response.error.statusCode,
|
|
@@ -462,7 +409,7 @@ class Workflows {
|
|
|
462
409
|
rawResponse: _response.rawResponse,
|
|
463
410
|
});
|
|
464
411
|
case "timeout":
|
|
465
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling DELETE /
|
|
412
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling DELETE /fhir2summary/template/{id}.");
|
|
466
413
|
case "unknown":
|
|
467
414
|
throw new errors.phenomlError({
|
|
468
415
|
message: _response.error.errorMessage,
|
|
@@ -472,37 +419,35 @@ class Workflows {
|
|
|
472
419
|
});
|
|
473
420
|
}
|
|
474
421
|
/**
|
|
475
|
-
*
|
|
422
|
+
* Creates a summary from FHIR resources using one of two modes:
|
|
423
|
+
* - **narrative**: Uses a template to substitute FHIR data into placeholders (requires template_id)
|
|
424
|
+
* - **flatten**: Flattens FHIR resources into a searchable format for RAG/search (no template needed)
|
|
476
425
|
*
|
|
477
|
-
* @param {
|
|
478
|
-
* @param {
|
|
479
|
-
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
426
|
+
* @param {phenoml.summary.CreateSummaryRequest} request
|
|
427
|
+
* @param {Summary.RequestOptions} requestOptions - Request-specific configuration.
|
|
480
428
|
*
|
|
481
|
-
* @throws {@link phenoml.
|
|
482
|
-
* @throws {@link phenoml.
|
|
483
|
-
* @throws {@link phenoml.
|
|
484
|
-
* @throws {@link phenoml.
|
|
485
|
-
* @throws {@link phenoml.
|
|
429
|
+
* @throws {@link phenoml.summary.BadRequestError}
|
|
430
|
+
* @throws {@link phenoml.summary.UnauthorizedError}
|
|
431
|
+
* @throws {@link phenoml.summary.ForbiddenError}
|
|
432
|
+
* @throws {@link phenoml.summary.NotFoundError}
|
|
433
|
+
* @throws {@link phenoml.summary.InternalServerError}
|
|
486
434
|
*
|
|
487
435
|
* @example
|
|
488
|
-
* await client.
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
* "patient_first_name": "Mary",
|
|
492
|
-
* "diagnosis_code": "M79.3",
|
|
493
|
-
* "encounter_date": "2024-01-15"
|
|
436
|
+
* await client.summary.create({
|
|
437
|
+
* fhir_resources: {
|
|
438
|
+
* resourceType: "resourceType"
|
|
494
439
|
* }
|
|
495
440
|
* })
|
|
496
441
|
*/
|
|
497
|
-
|
|
498
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
442
|
+
create(request, requestOptions) {
|
|
443
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
499
444
|
}
|
|
500
|
-
|
|
445
|
+
__create(request, requestOptions) {
|
|
501
446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
502
447
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
503
|
-
|
|
448
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
504
449
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
505
|
-
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,
|
|
450
|
+
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"),
|
|
506
451
|
method: "POST",
|
|
507
452
|
headers: _headers,
|
|
508
453
|
contentType: "application/json",
|
|
@@ -522,15 +467,15 @@ class Workflows {
|
|
|
522
467
|
if (_response.error.reason === "status-code") {
|
|
523
468
|
switch (_response.error.statusCode) {
|
|
524
469
|
case 400:
|
|
525
|
-
throw new phenoml.
|
|
470
|
+
throw new phenoml.summary.BadRequestError(_response.error.body, _response.rawResponse);
|
|
526
471
|
case 401:
|
|
527
|
-
throw new phenoml.
|
|
472
|
+
throw new phenoml.summary.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
528
473
|
case 403:
|
|
529
|
-
throw new phenoml.
|
|
474
|
+
throw new phenoml.summary.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
530
475
|
case 404:
|
|
531
|
-
throw new phenoml.
|
|
476
|
+
throw new phenoml.summary.NotFoundError(_response.error.body, _response.rawResponse);
|
|
532
477
|
case 500:
|
|
533
|
-
throw new phenoml.
|
|
478
|
+
throw new phenoml.summary.InternalServerError(_response.error.body, _response.rawResponse);
|
|
534
479
|
default:
|
|
535
480
|
throw new errors.phenomlError({
|
|
536
481
|
statusCode: _response.error.statusCode,
|
|
@@ -547,7 +492,7 @@ class Workflows {
|
|
|
547
492
|
rawResponse: _response.rawResponse,
|
|
548
493
|
});
|
|
549
494
|
case "timeout":
|
|
550
|
-
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /
|
|
495
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /fhir2summary/create.");
|
|
551
496
|
case "unknown":
|
|
552
497
|
throw new errors.phenomlError({
|
|
553
498
|
message: _response.error.errorMessage,
|
|
@@ -558,12 +503,8 @@ class Workflows {
|
|
|
558
503
|
}
|
|
559
504
|
_getAuthorizationHeader() {
|
|
560
505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
561
|
-
|
|
562
|
-
if (bearer != null) {
|
|
563
|
-
return `Bearer ${bearer}`;
|
|
564
|
-
}
|
|
565
|
-
return undefined;
|
|
506
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
566
507
|
});
|
|
567
508
|
}
|
|
568
509
|
}
|
|
569
|
-
exports.
|
|
510
|
+
exports.Summary = Summary;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type * as phenoml from "../../../../index.js";
|
|
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,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateSummaryRequest = void 0;
|
|
5
|
+
var CreateSummaryRequest;
|
|
6
|
+
(function (CreateSummaryRequest) {
|
|
7
|
+
/**
|
|
8
|
+
* Summary generation mode:
|
|
9
|
+
* - narrative: Substitute FHIR data into a template (requires template_id)
|
|
10
|
+
* - flatten: Flatten FHIR resources for RAG/search (no template needed)
|
|
11
|
+
*/
|
|
12
|
+
CreateSummaryRequest.Mode = {
|
|
13
|
+
Narrative: "narrative",
|
|
14
|
+
Flatten: "flatten",
|
|
15
|
+
};
|
|
16
|
+
})(CreateSummaryRequest || (exports.CreateSummaryRequest = CreateSummaryRequest = {}));
|