phenoml 0.0.2
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/LICENSE +21 -0
- package/README.md +185 -0
- package/dist/cjs/Client.d.ts +50 -0
- package/dist/cjs/Client.js +84 -0
- package/dist/cjs/WrapperClient.d.ts +21 -0
- package/dist/cjs/WrapperClient.js +111 -0
- package/dist/cjs/api/index.d.ts +1 -0
- package/dist/cjs/api/index.js +17 -0
- package/dist/cjs/api/resources/agent/client/Client.d.ts +187 -0
- package/dist/cjs/api/resources/agent/client/Client.js +670 -0
- package/dist/cjs/api/resources/agent/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/client/index.js +17 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +23 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.js +5 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.d.ts +29 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.js +5 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +20 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.js +5 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.d.ts +13 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.js +5 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.d.ts +25 -0
- package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.js +5 -0
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/agent/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/agent/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +8 -0
- package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/resources/agent/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +8 -0
- package/dist/cjs/api/resources/agent/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/agent/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/agent/errors/index.js +21 -0
- package/dist/cjs/api/resources/agent/index.d.ts +4 -0
- package/dist/cjs/api/resources/agent/index.js +20 -0
- package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/index.js +42 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +161 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +564 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/index.js +17 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +25 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +5 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +21 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +5 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agent/resources/prompts/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/prompts/index.js +18 -0
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +7 -0
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +5 -0
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +9 -0
- package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +5 -0
- package/dist/cjs/api/resources/agent/resources/prompts/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/prompts/types/index.js +18 -0
- package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +12 -0
- package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +7 -0
- package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentFhirConfig.d.ts +12 -0
- package/dist/cjs/api/resources/agent/types/AgentFhirConfig.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +8 -0
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +10 -0
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +9 -0
- package/dist/cjs/api/resources/agent/types/AgentListResponse.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +9 -0
- package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentProvider.d.ts +11 -0
- package/dist/cjs/api/resources/agent/types/AgentProvider.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +9 -0
- package/dist/cjs/api/resources/agent/types/AgentResponse.js +5 -0
- package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +23 -0
- package/dist/cjs/api/resources/agent/types/AgentTemplate.js +5 -0
- package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.d.ts +12 -0
- package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.js +5 -0
- package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +27 -0
- package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +5 -0
- package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +25 -0
- package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +5 -0
- package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +8 -0
- package/dist/cjs/api/resources/agent/types/JsonPatch.js +5 -0
- package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +26 -0
- package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +17 -0
- package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +19 -0
- package/dist/cjs/api/resources/agent/types/PromptTemplate.js +5 -0
- package/dist/cjs/api/resources/agent/types/ProviderType.d.ts +13 -0
- package/dist/cjs/api/resources/agent/types/ProviderType.js +12 -0
- package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +7 -0
- package/dist/cjs/api/resources/agent/types/SuccessResponse.js +5 -0
- package/dist/cjs/api/resources/agent/types/index.d.ts +18 -0
- package/dist/cjs/api/resources/agent/types/index.js +34 -0
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/authtoken/client/Client.js +17 -0
- package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/authtoken/client/index.js +2 -0
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/authtoken/errors/index.d.ts +2 -0
- package/dist/cjs/api/resources/authtoken/errors/index.js +18 -0
- package/dist/cjs/api/resources/authtoken/index.d.ts +4 -0
- package/dist/cjs/api/resources/authtoken/index.js +20 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +145 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/index.js +17 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +16 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +5 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/index.d.ts +2 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/index.js +18 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +7 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +5 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/authtoken/resources/auth/types/index.js +17 -0
- package/dist/cjs/api/resources/authtoken/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/authtoken/resources/index.js +42 -0
- package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +8 -0
- package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +5 -0
- package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +8 -0
- package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +5 -0
- package/dist/cjs/api/resources/authtoken/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/authtoken/types/index.js +18 -0
- package/dist/cjs/api/resources/cohort/client/Client.d.ts +51 -0
- package/dist/cjs/api/resources/cohort/client/Client.js +134 -0
- package/dist/cjs/api/resources/cohort/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/cohort/client/index.js +17 -0
- package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +13 -0
- package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +5 -0
- package/dist/cjs/api/resources/cohort/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/cohort/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/cohort/errors/index.d.ts +3 -0
- package/dist/cjs/api/resources/cohort/errors/index.js +19 -0
- package/dist/cjs/api/resources/cohort/index.d.ts +3 -0
- package/dist/cjs/api/resources/cohort/index.js +19 -0
- package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +12 -0
- package/dist/cjs/api/resources/cohort/types/CohortResponse.js +5 -0
- package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +13 -0
- package/dist/cjs/api/resources/cohort/types/SearchConcept.js +5 -0
- package/dist/cjs/api/resources/cohort/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/cohort/types/index.js +18 -0
- package/dist/cjs/api/resources/construe/client/Client.d.ts +94 -0
- package/dist/cjs/api/resources/construe/client/Client.js +295 -0
- package/dist/cjs/api/resources/construe/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/construe/client/index.js +17 -0
- package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +26 -0
- package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +5 -0
- package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +16 -0
- package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +5 -0
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +40 -0
- package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +13 -0
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/construe/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/construe/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +8 -0
- package/dist/cjs/api/resources/construe/errors/ConflictError.js +52 -0
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +8 -0
- package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +52 -0
- package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/resources/construe/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/construe/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/construe/errors/index.js +21 -0
- package/dist/cjs/api/resources/construe/index.d.ts +3 -0
- package/dist/cjs/api/resources/construe/index.js +19 -0
- package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +9 -0
- package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +5 -0
- package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +49 -0
- package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +5 -0
- package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +6 -0
- package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +5 -0
- package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +8 -0
- package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +5 -0
- package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +18 -0
- package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +15 -0
- package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +21 -0
- package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +5 -0
- package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +13 -0
- package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +5 -0
- package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +9 -0
- package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +5 -0
- package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +9 -0
- package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +5 -0
- package/dist/cjs/api/resources/construe/types/index.d.ts +9 -0
- package/dist/cjs/api/resources/construe/types/index.js +25 -0
- package/dist/cjs/api/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/index.js +42 -0
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +111 -0
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +360 -0
- package/dist/cjs/api/resources/lang2Fhir/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/lang2Fhir/client/index.js +17 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +43 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +27 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +42 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +19 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +19 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +5 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +13 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +5 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/lang2Fhir/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +8 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +52 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +8 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/lang2Fhir/errors/index.js +21 -0
- package/dist/cjs/api/resources/lang2Fhir/index.d.ts +3 -0
- package/dist/cjs/api/resources/lang2Fhir/index.js +19 -0
- package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +7 -0
- package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +5 -0
- package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +10 -0
- package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +5 -0
- package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +9 -0
- package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +5 -0
- package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/lang2Fhir/types/index.js +19 -0
- package/dist/cjs/api/resources/tools/client/Client.d.ts +95 -0
- package/dist/cjs/api/resources/tools/client/Client.js +302 -0
- package/dist/cjs/api/resources/tools/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +30 -0
- package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +15 -0
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +54 -0
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +33 -0
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +35 -0
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +15 -0
- package/dist/cjs/api/resources/tools/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/tools/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/tools/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +8 -0
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +52 -0
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +8 -0
- package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/resources/tools/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/tools/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/tools/errors/index.js +21 -0
- package/dist/cjs/api/resources/tools/index.d.ts +4 -0
- package/dist/cjs/api/resources/tools/index.js +20 -0
- package/dist/cjs/api/resources/tools/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/index.js +41 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +337 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +16 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +5 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/index.js +18 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +41 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +100 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +338 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +15 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +5 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/index.js +17 -0
- package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +16 -0
- package/dist/cjs/api/resources/tools/types/CohortResponse.js +5 -0
- package/dist/cjs/api/resources/tools/types/FhirClientConfig.d.ts +12 -0
- package/dist/cjs/api/resources/tools/types/FhirClientConfig.js +5 -0
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +12 -0
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +5 -0
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +14 -0
- package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +5 -0
- package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +30 -0
- package/dist/cjs/api/resources/tools/types/McpServerResponse.js +5 -0
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +13 -0
- package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +5 -0
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +34 -0
- package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +5 -0
- package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +16 -0
- package/dist/cjs/api/resources/tools/types/SearchConcept.js +5 -0
- package/dist/cjs/api/resources/tools/types/index.d.ts +8 -0
- package/dist/cjs/api/resources/tools/types/index.js +24 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
- package/dist/cjs/core/auth/AuthProvider.js +2 -0
- package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
- package/dist/cjs/core/auth/AuthRequest.js +2 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +26 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +5 -0
- package/dist/cjs/core/auth/BearerToken.js +15 -0
- package/dist/cjs/core/auth/index.d.ts +4 -0
- package/dist/cjs/core/auth/index.js +7 -0
- package/dist/cjs/core/base64.d.ts +2 -0
- package/dist/cjs/core/base64.js +26 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/cjs/core/fetcher/Fetcher.js +120 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
- package/dist/cjs/core/fetcher/index.d.ts +9 -0
- package/dist/cjs/core/fetcher/index.js +15 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
- package/dist/cjs/core/fetcher/signals.d.ts +11 -0
- package/dist/cjs/core/fetcher/signals.js +36 -0
- package/dist/cjs/core/headers.d.ts +3 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +5 -0
- package/dist/cjs/core/index.js +44 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +102 -0
- package/dist/cjs/core/url/index.d.ts +2 -0
- package/dist/cjs/core/url/index.js +7 -0
- package/dist/cjs/core/url/join.d.ts +1 -0
- package/dist/cjs/core/url/join.js +69 -0
- package/dist/cjs/core/url/qs.d.ts +6 -0
- package/dist/cjs/core/url/qs.js +64 -0
- package/dist/cjs/environments.d.ts +7 -0
- package/dist/cjs/environments.js +9 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/errors/phenomlError.d.ts +15 -0
- package/dist/cjs/errors/phenomlError.js +30 -0
- package/dist/cjs/errors/phenomlTimeoutError.d.ts +6 -0
- package/dist/cjs/errors/phenomlTimeoutError.js +13 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +44 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/Client.d.mts +50 -0
- package/dist/esm/Client.mjs +47 -0
- package/dist/esm/WrapperClient.d.mts +21 -0
- package/dist/esm/WrapperClient.mjs +74 -0
- package/dist/esm/api/index.d.mts +1 -0
- package/dist/esm/api/index.mjs +1 -0
- package/dist/esm/api/resources/agent/client/Client.d.mts +187 -0
- package/dist/esm/api/resources/agent/client/Client.mjs +633 -0
- package/dist/esm/api/resources/agent/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +23 -0
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +4 -0
- package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.d.mts +29 -0
- package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.mjs +4 -0
- package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +20 -0
- package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +4 -0
- package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +13 -0
- package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +4 -0
- package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.d.mts +25 -0
- package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.mjs +4 -0
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/agent/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +8 -0
- package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +8 -0
- package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/agent/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/agent/errors/index.mjs +5 -0
- package/dist/esm/api/resources/agent/index.d.mts +4 -0
- package/dist/esm/api/resources/agent/index.mjs +4 -0
- package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +161 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +527 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +25 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +4 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +21 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +4 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/prompts/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/prompts/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +7 -0
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +9 -0
- package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/resources/prompts/types/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/prompts/types/index.mjs +2 -0
- package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +12 -0
- package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +7 -0
- package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentFhirConfig.d.mts +12 -0
- package/dist/esm/api/resources/agent/types/AgentFhirConfig.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +8 -0
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +7 -0
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +9 -0
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +9 -0
- package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +9 -0
- package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentProvider.d.mts +11 -0
- package/dist/esm/api/resources/agent/types/AgentProvider.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +9 -0
- package/dist/esm/api/resources/agent/types/AgentResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +23 -0
- package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +4 -0
- package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.d.mts +12 -0
- package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.mjs +4 -0
- package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +27 -0
- package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +4 -0
- package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +25 -0
- package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +4 -0
- package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +8 -0
- package/dist/esm/api/resources/agent/types/JsonPatch.mjs +4 -0
- package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +26 -0
- package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +14 -0
- package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +19 -0
- package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +4 -0
- package/dist/esm/api/resources/agent/types/ProviderType.d.mts +13 -0
- package/dist/esm/api/resources/agent/types/ProviderType.mjs +9 -0
- package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +7 -0
- package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +4 -0
- package/dist/esm/api/resources/agent/types/index.d.mts +18 -0
- package/dist/esm/api/resources/agent/types/index.mjs +18 -0
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/authtoken/client/Client.mjs +13 -0
- package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -0
- package/dist/esm/api/resources/authtoken/client/index.mjs +1 -0
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/authtoken/errors/index.d.mts +2 -0
- package/dist/esm/api/resources/authtoken/errors/index.mjs +2 -0
- package/dist/esm/api/resources/authtoken/index.d.mts +4 -0
- package/dist/esm/api/resources/authtoken/index.mjs +4 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +108 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/index.d.mts +2 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +16 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +4 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/authtoken/resources/auth/index.d.mts +2 -0
- package/dist/esm/api/resources/authtoken/resources/auth/index.mjs +2 -0
- package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +7 -0
- package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +4 -0
- package/dist/esm/api/resources/authtoken/resources/auth/types/index.d.mts +1 -0
- package/dist/esm/api/resources/authtoken/resources/auth/types/index.mjs +1 -0
- package/dist/esm/api/resources/authtoken/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/authtoken/resources/index.mjs +3 -0
- package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +8 -0
- package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +4 -0
- package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +8 -0
- package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +4 -0
- package/dist/esm/api/resources/authtoken/types/index.d.mts +2 -0
- package/dist/esm/api/resources/authtoken/types/index.mjs +2 -0
- package/dist/esm/api/resources/cohort/client/Client.d.mts +51 -0
- package/dist/esm/api/resources/cohort/client/Client.mjs +97 -0
- package/dist/esm/api/resources/cohort/client/index.d.mts +2 -0
- package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
- package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +13 -0
- package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +4 -0
- package/dist/esm/api/resources/cohort/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/cohort/errors/index.d.mts +3 -0
- package/dist/esm/api/resources/cohort/errors/index.mjs +3 -0
- package/dist/esm/api/resources/cohort/index.d.mts +3 -0
- package/dist/esm/api/resources/cohort/index.mjs +3 -0
- package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +12 -0
- package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +4 -0
- package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +13 -0
- package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +4 -0
- package/dist/esm/api/resources/cohort/types/index.d.mts +2 -0
- package/dist/esm/api/resources/cohort/types/index.mjs +2 -0
- package/dist/esm/api/resources/construe/client/Client.d.mts +94 -0
- package/dist/esm/api/resources/construe/client/Client.mjs +258 -0
- package/dist/esm/api/resources/construe/client/index.d.mts +2 -0
- package/dist/esm/api/resources/construe/client/index.mjs +1 -0
- package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +26 -0
- package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +4 -0
- package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +16 -0
- package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +4 -0
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +40 -0
- package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +10 -0
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +8 -0
- package/dist/esm/api/resources/construe/errors/ConflictError.mjs +15 -0
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +8 -0
- package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +15 -0
- package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/construe/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/construe/errors/index.mjs +5 -0
- package/dist/esm/api/resources/construe/index.d.mts +3 -0
- package/dist/esm/api/resources/construe/index.mjs +3 -0
- package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +9 -0
- package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +4 -0
- package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +49 -0
- package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +4 -0
- package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +6 -0
- package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +4 -0
- package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +8 -0
- package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +4 -0
- package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +18 -0
- package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +12 -0
- package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +21 -0
- package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +4 -0
- package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +13 -0
- package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +4 -0
- package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +9 -0
- package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +4 -0
- package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +9 -0
- package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +4 -0
- package/dist/esm/api/resources/construe/types/index.d.mts +9 -0
- package/dist/esm/api/resources/construe/types/index.mjs +9 -0
- package/dist/esm/api/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/index.mjs +6 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +111 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +323 -0
- package/dist/esm/api/resources/lang2Fhir/client/index.d.mts +2 -0
- package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +43 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +24 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +42 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +16 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +19 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +4 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +13 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +4 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +8 -0
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +15 -0
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +8 -0
- package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +5 -0
- package/dist/esm/api/resources/lang2Fhir/index.d.mts +3 -0
- package/dist/esm/api/resources/lang2Fhir/index.mjs +3 -0
- package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +7 -0
- package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +4 -0
- package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +10 -0
- package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +4 -0
- package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +9 -0
- package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +4 -0
- package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +3 -0
- package/dist/esm/api/resources/lang2Fhir/types/index.mjs +3 -0
- package/dist/esm/api/resources/tools/client/Client.d.mts +95 -0
- package/dist/esm/api/resources/tools/client/Client.mjs +265 -0
- package/dist/esm/api/resources/tools/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +30 -0
- package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +12 -0
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +54 -0
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +30 -0
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +35 -0
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +12 -0
- package/dist/esm/api/resources/tools/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +8 -0
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +15 -0
- package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +8 -0
- package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/tools/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/tools/errors/index.mjs +5 -0
- package/dist/esm/api/resources/tools/index.d.mts +4 -0
- package/dist/esm/api/resources/tools/index.mjs +4 -0
- package/dist/esm/api/resources/tools/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/index.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +300 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +16 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +4 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +100 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +301 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +15 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +4 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/index.mjs +1 -0
- package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +16 -0
- package/dist/esm/api/resources/tools/types/CohortResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/FhirClientConfig.d.mts +12 -0
- package/dist/esm/api/resources/tools/types/FhirClientConfig.mjs +4 -0
- package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +12 -0
- package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +14 -0
- package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +30 -0
- package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +13 -0
- package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +34 -0
- package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +4 -0
- package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +16 -0
- package/dist/esm/api/resources/tools/types/SearchConcept.mjs +4 -0
- package/dist/esm/api/resources/tools/types/index.d.mts +8 -0
- package/dist/esm/api/resources/tools/types/index.mjs +8 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
- package/dist/esm/core/auth/AuthProvider.mjs +1 -0
- package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
- package/dist/esm/core/auth/AuthRequest.mjs +1 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +23 -0
- package/dist/esm/core/auth/BearerToken.d.mts +5 -0
- package/dist/esm/core/auth/BearerToken.mjs +12 -0
- package/dist/esm/core/auth/index.d.mts +4 -0
- package/dist/esm/core/auth/index.mjs +2 -0
- package/dist/esm/core/base64.d.mts +2 -0
- package/dist/esm/core/base64.mjs +22 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
- package/dist/esm/core/fetcher/index.d.mts +9 -0
- package/dist/esm/core/fetcher/index.mjs +5 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
- package/dist/esm/core/fetcher/signals.d.mts +11 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/headers.d.mts +3 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +5 -0
- package/dist/esm/core/index.mjs +5 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +99 -0
- package/dist/esm/core/url/index.d.mts +2 -0
- package/dist/esm/core/url/index.mjs +2 -0
- package/dist/esm/core/url/join.d.mts +1 -0
- package/dist/esm/core/url/join.mjs +66 -0
- package/dist/esm/core/url/qs.d.mts +6 -0
- package/dist/esm/core/url/qs.mjs +61 -0
- package/dist/esm/environments.d.mts +7 -0
- package/dist/esm/environments.mjs +6 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/errors/phenomlError.d.mts +15 -0
- package/dist/esm/errors/phenomlError.mjs +26 -0
- package/dist/esm/errors/phenomlTimeoutError.d.mts +6 -0
- package/dist/esm/errors/phenomlTimeoutError.mjs +9 -0
- package/dist/esm/index.d.mts +4 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +65 -0
- package/reference.md +2330 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface SearchResponse {
|
|
5
|
+
/** The FHIR resource type identified for the search */
|
|
6
|
+
resourceType?: string;
|
|
7
|
+
/** FHIR search parameters in standard format */
|
|
8
|
+
searchParams?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as phenoml from "../../../index.mjs";
|
|
7
|
+
import { McpServer } from "../resources/mcpServer/client/Client.mjs";
|
|
8
|
+
export declare namespace Tools {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
11
|
+
/** Specify a custom URL to connect the client to. */
|
|
12
|
+
baseUrl?: core.Supplier<string>;
|
|
13
|
+
token: core.Supplier<core.BearerToken>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
fetcher?: core.FetchFunction;
|
|
17
|
+
}
|
|
18
|
+
interface RequestOptions {
|
|
19
|
+
/** The maximum time to wait for a response in seconds. */
|
|
20
|
+
timeoutInSeconds?: number;
|
|
21
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
22
|
+
maxRetries?: number;
|
|
23
|
+
/** A hook to abort the request. */
|
|
24
|
+
abortSignal?: AbortSignal;
|
|
25
|
+
/** Additional query string parameters to include in the request. */
|
|
26
|
+
queryParams?: Record<string, unknown>;
|
|
27
|
+
/** Additional headers to include in the request. */
|
|
28
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export declare class Tools {
|
|
32
|
+
protected readonly _options: Tools.Options;
|
|
33
|
+
protected _mcpServer: McpServer | undefined;
|
|
34
|
+
constructor(_options: Tools.Options);
|
|
35
|
+
get mcpServer(): McpServer;
|
|
36
|
+
/**
|
|
37
|
+
* Converts natural language to FHIR resource and optionally stores it in a FHIR server
|
|
38
|
+
*
|
|
39
|
+
* @param {phenoml.tools.Lang2FhirAndCreateRequest} request
|
|
40
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link phenoml.tools.BadRequestError}
|
|
43
|
+
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
44
|
+
* @throws {@link phenoml.tools.ForbiddenError}
|
|
45
|
+
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
46
|
+
* @throws {@link phenoml.tools.InternalServerError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.tools.createFhirResource({
|
|
50
|
+
* resource: "auto",
|
|
51
|
+
* text: "Patient John Doe has severe asthma with acute exacerbation"
|
|
52
|
+
* })
|
|
53
|
+
*/
|
|
54
|
+
createFhirResource(request: phenoml.tools.Lang2FhirAndCreateRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.Lang2FhirAndCreateResponse>;
|
|
55
|
+
private __createFhirResource;
|
|
56
|
+
/**
|
|
57
|
+
* Converts natural language to FHIR search parameters and executes search in FHIR server
|
|
58
|
+
*
|
|
59
|
+
* @param {phenoml.tools.Lang2FhirAndSearchRequest} request
|
|
60
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link phenoml.tools.BadRequestError}
|
|
63
|
+
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
64
|
+
* @throws {@link phenoml.tools.ForbiddenError}
|
|
65
|
+
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
66
|
+
* @throws {@link phenoml.tools.InternalServerError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.tools.searchFhirResources({
|
|
70
|
+
* text: "Find all appointments for patient John Doe next week"
|
|
71
|
+
* })
|
|
72
|
+
*/
|
|
73
|
+
searchFhirResources(request: phenoml.tools.Lang2FhirAndSearchRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.Lang2FhirAndSearchResponse>;
|
|
74
|
+
private __searchFhirResources;
|
|
75
|
+
/**
|
|
76
|
+
* Uses LLM to extract search concepts from natural language and builds patient cohorts with inclusion/exclusion criteria
|
|
77
|
+
*
|
|
78
|
+
* @param {phenoml.tools.CohortRequest} request
|
|
79
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link phenoml.tools.BadRequestError}
|
|
82
|
+
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
83
|
+
* @throws {@link phenoml.tools.ForbiddenError}
|
|
84
|
+
* @throws {@link phenoml.tools.InternalServerError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.tools.analyzeCohort({
|
|
88
|
+
* text: "female patients over 20 with diabetes but not hypertension",
|
|
89
|
+
* provider: "medplum"
|
|
90
|
+
* })
|
|
91
|
+
*/
|
|
92
|
+
analyzeCohort(request: phenoml.tools.CohortRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.CohortResponse>;
|
|
93
|
+
private __analyzeCohort;
|
|
94
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as phenoml from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
import { McpServer } from "../resources/mcpServer/client/Client.mjs";
|
|
19
|
+
export class Tools {
|
|
20
|
+
constructor(_options) {
|
|
21
|
+
this._options = _options;
|
|
22
|
+
}
|
|
23
|
+
get mcpServer() {
|
|
24
|
+
var _a;
|
|
25
|
+
return ((_a = this._mcpServer) !== null && _a !== void 0 ? _a : (this._mcpServer = new McpServer(this._options)));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Converts natural language to FHIR resource and optionally stores it in a FHIR server
|
|
29
|
+
*
|
|
30
|
+
* @param {phenoml.tools.Lang2FhirAndCreateRequest} request
|
|
31
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link phenoml.tools.BadRequestError}
|
|
34
|
+
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
35
|
+
* @throws {@link phenoml.tools.ForbiddenError}
|
|
36
|
+
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
37
|
+
* @throws {@link phenoml.tools.InternalServerError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.tools.createFhirResource({
|
|
41
|
+
* resource: "auto",
|
|
42
|
+
* text: "Patient John Doe has severe asthma with acute exacerbation"
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
createFhirResource(request, requestOptions) {
|
|
46
|
+
return core.HttpResponsePromise.fromPromise(this.__createFhirResource(request, requestOptions));
|
|
47
|
+
}
|
|
48
|
+
__createFhirResource(request, requestOptions) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
var _a, _b, _c, _d;
|
|
51
|
+
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);
|
|
52
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
53
|
+
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, "tools/lang2fhir-and-create"),
|
|
54
|
+
method: "POST",
|
|
55
|
+
headers: _headers,
|
|
56
|
+
contentType: "application/json",
|
|
57
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
58
|
+
requestType: "json",
|
|
59
|
+
body: request,
|
|
60
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
61
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
62
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
63
|
+
});
|
|
64
|
+
if (_response.ok) {
|
|
65
|
+
return {
|
|
66
|
+
data: _response.body,
|
|
67
|
+
rawResponse: _response.rawResponse,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
if (_response.error.reason === "status-code") {
|
|
71
|
+
switch (_response.error.statusCode) {
|
|
72
|
+
case 400:
|
|
73
|
+
throw new phenoml.tools.BadRequestError(_response.error.body, _response.rawResponse);
|
|
74
|
+
case 401:
|
|
75
|
+
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
76
|
+
case 403:
|
|
77
|
+
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
78
|
+
case 424:
|
|
79
|
+
throw new phenoml.tools.FailedDependencyError(_response.error.body, _response.rawResponse);
|
|
80
|
+
case 500:
|
|
81
|
+
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
82
|
+
default:
|
|
83
|
+
throw new errors.phenomlError({
|
|
84
|
+
statusCode: _response.error.statusCode,
|
|
85
|
+
body: _response.error.body,
|
|
86
|
+
rawResponse: _response.rawResponse,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
switch (_response.error.reason) {
|
|
91
|
+
case "non-json":
|
|
92
|
+
throw new errors.phenomlError({
|
|
93
|
+
statusCode: _response.error.statusCode,
|
|
94
|
+
body: _response.error.rawBody,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
});
|
|
97
|
+
case "timeout":
|
|
98
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /tools/lang2fhir-and-create.");
|
|
99
|
+
case "unknown":
|
|
100
|
+
throw new errors.phenomlError({
|
|
101
|
+
message: _response.error.errorMessage,
|
|
102
|
+
rawResponse: _response.rawResponse,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Converts natural language to FHIR search parameters and executes search in FHIR server
|
|
109
|
+
*
|
|
110
|
+
* @param {phenoml.tools.Lang2FhirAndSearchRequest} request
|
|
111
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link phenoml.tools.BadRequestError}
|
|
114
|
+
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
115
|
+
* @throws {@link phenoml.tools.ForbiddenError}
|
|
116
|
+
* @throws {@link phenoml.tools.FailedDependencyError}
|
|
117
|
+
* @throws {@link phenoml.tools.InternalServerError}
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* await client.tools.searchFhirResources({
|
|
121
|
+
* text: "Find all appointments for patient John Doe next week"
|
|
122
|
+
* })
|
|
123
|
+
*/
|
|
124
|
+
searchFhirResources(request, requestOptions) {
|
|
125
|
+
return core.HttpResponsePromise.fromPromise(this.__searchFhirResources(request, requestOptions));
|
|
126
|
+
}
|
|
127
|
+
__searchFhirResources(request, requestOptions) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
var _a, _b, _c, _d;
|
|
130
|
+
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);
|
|
131
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
132
|
+
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, "tools/lang2fhir-and-search"),
|
|
133
|
+
method: "POST",
|
|
134
|
+
headers: _headers,
|
|
135
|
+
contentType: "application/json",
|
|
136
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
137
|
+
requestType: "json",
|
|
138
|
+
body: request,
|
|
139
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
140
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
141
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
142
|
+
});
|
|
143
|
+
if (_response.ok) {
|
|
144
|
+
return {
|
|
145
|
+
data: _response.body,
|
|
146
|
+
rawResponse: _response.rawResponse,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
if (_response.error.reason === "status-code") {
|
|
150
|
+
switch (_response.error.statusCode) {
|
|
151
|
+
case 400:
|
|
152
|
+
throw new phenoml.tools.BadRequestError(_response.error.body, _response.rawResponse);
|
|
153
|
+
case 401:
|
|
154
|
+
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
155
|
+
case 403:
|
|
156
|
+
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
157
|
+
case 424:
|
|
158
|
+
throw new phenoml.tools.FailedDependencyError(_response.error.body, _response.rawResponse);
|
|
159
|
+
case 500:
|
|
160
|
+
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
161
|
+
default:
|
|
162
|
+
throw new errors.phenomlError({
|
|
163
|
+
statusCode: _response.error.statusCode,
|
|
164
|
+
body: _response.error.body,
|
|
165
|
+
rawResponse: _response.rawResponse,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
switch (_response.error.reason) {
|
|
170
|
+
case "non-json":
|
|
171
|
+
throw new errors.phenomlError({
|
|
172
|
+
statusCode: _response.error.statusCode,
|
|
173
|
+
body: _response.error.rawBody,
|
|
174
|
+
rawResponse: _response.rawResponse,
|
|
175
|
+
});
|
|
176
|
+
case "timeout":
|
|
177
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /tools/lang2fhir-and-search.");
|
|
178
|
+
case "unknown":
|
|
179
|
+
throw new errors.phenomlError({
|
|
180
|
+
message: _response.error.errorMessage,
|
|
181
|
+
rawResponse: _response.rawResponse,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Uses LLM to extract search concepts from natural language and builds patient cohorts with inclusion/exclusion criteria
|
|
188
|
+
*
|
|
189
|
+
* @param {phenoml.tools.CohortRequest} request
|
|
190
|
+
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
192
|
+
* @throws {@link phenoml.tools.BadRequestError}
|
|
193
|
+
* @throws {@link phenoml.tools.UnauthorizedError}
|
|
194
|
+
* @throws {@link phenoml.tools.ForbiddenError}
|
|
195
|
+
* @throws {@link phenoml.tools.InternalServerError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.tools.analyzeCohort({
|
|
199
|
+
* text: "female patients over 20 with diabetes but not hypertension",
|
|
200
|
+
* provider: "medplum"
|
|
201
|
+
* })
|
|
202
|
+
*/
|
|
203
|
+
analyzeCohort(request, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__analyzeCohort(request, requestOptions));
|
|
205
|
+
}
|
|
206
|
+
__analyzeCohort(request, requestOptions) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
var _a, _b, _c, _d;
|
|
209
|
+
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);
|
|
210
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
211
|
+
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, "tools/cohort"),
|
|
212
|
+
method: "POST",
|
|
213
|
+
headers: _headers,
|
|
214
|
+
contentType: "application/json",
|
|
215
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
216
|
+
requestType: "json",
|
|
217
|
+
body: request,
|
|
218
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
219
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
220
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
221
|
+
});
|
|
222
|
+
if (_response.ok) {
|
|
223
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
224
|
+
}
|
|
225
|
+
if (_response.error.reason === "status-code") {
|
|
226
|
+
switch (_response.error.statusCode) {
|
|
227
|
+
case 400:
|
|
228
|
+
throw new phenoml.tools.BadRequestError(_response.error.body, _response.rawResponse);
|
|
229
|
+
case 401:
|
|
230
|
+
throw new phenoml.tools.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
231
|
+
case 403:
|
|
232
|
+
throw new phenoml.tools.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
233
|
+
case 500:
|
|
234
|
+
throw new phenoml.tools.InternalServerError(_response.error.body, _response.rawResponse);
|
|
235
|
+
default:
|
|
236
|
+
throw new errors.phenomlError({
|
|
237
|
+
statusCode: _response.error.statusCode,
|
|
238
|
+
body: _response.error.body,
|
|
239
|
+
rawResponse: _response.rawResponse,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
switch (_response.error.reason) {
|
|
244
|
+
case "non-json":
|
|
245
|
+
throw new errors.phenomlError({
|
|
246
|
+
statusCode: _response.error.statusCode,
|
|
247
|
+
body: _response.error.rawBody,
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
});
|
|
250
|
+
case "timeout":
|
|
251
|
+
throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /tools/cohort.");
|
|
252
|
+
case "unknown":
|
|
253
|
+
throw new errors.phenomlError({
|
|
254
|
+
message: _response.error.errorMessage,
|
|
255
|
+
rawResponse: _response.rawResponse,
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
_getAuthorizationHeader() {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as phenoml from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* text: "female patients over 20 with diabetes but not hypertension",
|
|
9
|
+
* provider: "medplum"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CohortRequest {
|
|
13
|
+
/** Natural language text describing the patient cohort criteria */
|
|
14
|
+
text: string;
|
|
15
|
+
/** FHIR provider to use for searching */
|
|
16
|
+
provider: CohortRequest.Provider;
|
|
17
|
+
meta?: phenoml.tools.FhirClientConfig;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace CohortRequest {
|
|
20
|
+
/**
|
|
21
|
+
* FHIR provider to use for searching
|
|
22
|
+
*/
|
|
23
|
+
type Provider = "medplum" | "google_healthcare" | "canvas" | "hapi";
|
|
24
|
+
const Provider: {
|
|
25
|
+
readonly Medplum: "medplum";
|
|
26
|
+
readonly GoogleHealthcare: "google_healthcare";
|
|
27
|
+
readonly Canvas: "canvas";
|
|
28
|
+
readonly Hapi: "hapi";
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export var CohortRequest;
|
|
5
|
+
(function (CohortRequest) {
|
|
6
|
+
CohortRequest.Provider = {
|
|
7
|
+
Medplum: "medplum",
|
|
8
|
+
GoogleHealthcare: "google_healthcare",
|
|
9
|
+
Canvas: "canvas",
|
|
10
|
+
Hapi: "hapi",
|
|
11
|
+
};
|
|
12
|
+
})(CohortRequest || (CohortRequest = {}));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as phenoml from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* resource: "auto",
|
|
9
|
+
* text: "Patient John Doe has severe asthma with acute exacerbation"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface Lang2FhirAndCreateRequest {
|
|
13
|
+
/** Type of FHIR resource to create. Use 'auto' for automatic resource type detection, or specify a supported US Core profile. */
|
|
14
|
+
resource: Lang2FhirAndCreateRequest.Resource;
|
|
15
|
+
/** Natural language text to convert to FHIR resource */
|
|
16
|
+
text: string;
|
|
17
|
+
/** FHIR provider to use for storing the resource */
|
|
18
|
+
provider?: Lang2FhirAndCreateRequest.Provider;
|
|
19
|
+
meta?: phenoml.tools.FhirClientConfig;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace Lang2FhirAndCreateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Type of FHIR resource to create. Use 'auto' for automatic resource type detection, or specify a supported US Core profile.
|
|
24
|
+
*/
|
|
25
|
+
type Resource = "auto" | "appointment" | "condition-encounter-diagnosis" | "medicationrequest" | "careplan" | "condition-problems-health-concerns" | "coverage" | "encounter" | "observation-clinical-result" | "observation-lab" | "patient" | "procedure" | "questionnaire" | "questionnaireresponse" | "simple-observation" | "vital-signs";
|
|
26
|
+
const Resource: {
|
|
27
|
+
readonly Auto: "auto";
|
|
28
|
+
readonly Appointment: "appointment";
|
|
29
|
+
readonly ConditionEncounterDiagnosis: "condition-encounter-diagnosis";
|
|
30
|
+
readonly Medicationrequest: "medicationrequest";
|
|
31
|
+
readonly Careplan: "careplan";
|
|
32
|
+
readonly ConditionProblemsHealthConcerns: "condition-problems-health-concerns";
|
|
33
|
+
readonly Coverage: "coverage";
|
|
34
|
+
readonly Encounter: "encounter";
|
|
35
|
+
readonly ObservationClinicalResult: "observation-clinical-result";
|
|
36
|
+
readonly ObservationLab: "observation-lab";
|
|
37
|
+
readonly Patient: "patient";
|
|
38
|
+
readonly Procedure: "procedure";
|
|
39
|
+
readonly Questionnaire: "questionnaire";
|
|
40
|
+
readonly Questionnaireresponse: "questionnaireresponse";
|
|
41
|
+
readonly SimpleObservation: "simple-observation";
|
|
42
|
+
readonly VitalSigns: "vital-signs";
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* FHIR provider to use for storing the resource
|
|
46
|
+
*/
|
|
47
|
+
type Provider = "medplum" | "google_healthcare" | "canvas" | "hapi";
|
|
48
|
+
const Provider: {
|
|
49
|
+
readonly Medplum: "medplum";
|
|
50
|
+
readonly GoogleHealthcare: "google_healthcare";
|
|
51
|
+
readonly Canvas: "canvas";
|
|
52
|
+
readonly Hapi: "hapi";
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export var Lang2FhirAndCreateRequest;
|
|
5
|
+
(function (Lang2FhirAndCreateRequest) {
|
|
6
|
+
Lang2FhirAndCreateRequest.Resource = {
|
|
7
|
+
Auto: "auto",
|
|
8
|
+
Appointment: "appointment",
|
|
9
|
+
ConditionEncounterDiagnosis: "condition-encounter-diagnosis",
|
|
10
|
+
Medicationrequest: "medicationrequest",
|
|
11
|
+
Careplan: "careplan",
|
|
12
|
+
ConditionProblemsHealthConcerns: "condition-problems-health-concerns",
|
|
13
|
+
Coverage: "coverage",
|
|
14
|
+
Encounter: "encounter",
|
|
15
|
+
ObservationClinicalResult: "observation-clinical-result",
|
|
16
|
+
ObservationLab: "observation-lab",
|
|
17
|
+
Patient: "patient",
|
|
18
|
+
Procedure: "procedure",
|
|
19
|
+
Questionnaire: "questionnaire",
|
|
20
|
+
Questionnaireresponse: "questionnaireresponse",
|
|
21
|
+
SimpleObservation: "simple-observation",
|
|
22
|
+
VitalSigns: "vital-signs",
|
|
23
|
+
};
|
|
24
|
+
Lang2FhirAndCreateRequest.Provider = {
|
|
25
|
+
Medplum: "medplum",
|
|
26
|
+
GoogleHealthcare: "google_healthcare",
|
|
27
|
+
Canvas: "canvas",
|
|
28
|
+
Hapi: "hapi",
|
|
29
|
+
};
|
|
30
|
+
})(Lang2FhirAndCreateRequest || (Lang2FhirAndCreateRequest = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as phenoml from "../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* text: "Find all appointments for patient John Doe next week"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface Lang2FhirAndSearchRequest {
|
|
12
|
+
/** Natural language text to convert to FHIR search parameters */
|
|
13
|
+
text: string;
|
|
14
|
+
/** Patient ID to filter results */
|
|
15
|
+
patient_id?: string;
|
|
16
|
+
/** Practitioner ID to filter results */
|
|
17
|
+
practitioner_id?: string;
|
|
18
|
+
/** Maximum number of results to return */
|
|
19
|
+
count?: number;
|
|
20
|
+
/** FHIR provider to use for searching */
|
|
21
|
+
provider?: Lang2FhirAndSearchRequest.Provider;
|
|
22
|
+
meta?: phenoml.tools.FhirClientConfig;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace Lang2FhirAndSearchRequest {
|
|
25
|
+
/**
|
|
26
|
+
* FHIR provider to use for searching
|
|
27
|
+
*/
|
|
28
|
+
type Provider = "medplum" | "google_healthcare" | "canvas" | "hapi";
|
|
29
|
+
const Provider: {
|
|
30
|
+
readonly Medplum: "medplum";
|
|
31
|
+
readonly GoogleHealthcare: "google_healthcare";
|
|
32
|
+
readonly Canvas: "canvas";
|
|
33
|
+
readonly Hapi: "hapi";
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export var Lang2FhirAndSearchRequest;
|
|
5
|
+
(function (Lang2FhirAndSearchRequest) {
|
|
6
|
+
Lang2FhirAndSearchRequest.Provider = {
|
|
7
|
+
Medplum: "medplum",
|
|
8
|
+
GoogleHealthcare: "google_healthcare",
|
|
9
|
+
Canvas: "canvas",
|
|
10
|
+
Hapi: "hapi",
|
|
11
|
+
};
|
|
12
|
+
})(Lang2FhirAndSearchRequest || (Lang2FhirAndSearchRequest = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
export declare class BadRequestError extends errors.phenomlError {
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
8
|
+
}
|