phenoml 0.0.2 → 0.0.4
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/README.md +1 -1
- package/dist/cjs/Client.d.ts +10 -4
- package/dist/cjs/Client.js +17 -7
- package/dist/cjs/api/resources/agent/client/Client.d.ts +12 -8
- package/dist/cjs/api/resources/agent/client/Client.js +15 -7
- package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +0 -3
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +6 -2
- package/dist/cjs/api/resources/agent/{client/requests → types}/AgentCreateRequest.d.ts +14 -12
- package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +14 -4
- package/dist/cjs/api/resources/agent/types/index.d.ts +1 -4
- package/dist/cjs/api/resources/agent/types/index.js +1 -4
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/authtoken/client/Client.js +1 -1
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +1 -1
- package/dist/cjs/api/resources/cohort/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/cohort/client/Client.js +6 -2
- package/dist/cjs/api/resources/construe/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/construe/client/Client.js +6 -2
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +293 -0
- package/dist/cjs/api/resources/fhir/client/Client.js +674 -0
- package/dist/cjs/api/resources/fhir/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhir/client/index.js +17 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +18 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +13 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +47 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +69 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +26 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +19 -0
- package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.js +5 -0
- package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/fhir/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +8 -0
- package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/fhir/errors/index.d.ts +4 -0
- package/dist/cjs/api/resources/fhir/errors/index.js +20 -0
- package/dist/cjs/api/resources/fhir/index.d.ts +3 -0
- package/dist/cjs/api/resources/fhir/index.js +19 -0
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +14 -0
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.js +5 -0
- package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +57 -0
- package/dist/cjs/api/resources/fhir/types/FhirBundle.js +25 -0
- package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +26 -0
- package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.js +17 -0
- package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +27 -0
- package/dist/cjs/api/resources/fhir/types/FhirResource.js +5 -0
- package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +5 -0
- package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.js +5 -0
- package/dist/cjs/api/resources/fhir/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/fhir/types/index.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +161 -0
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +596 -0
- package/dist/cjs/api/resources/fhirProvider/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/client/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +20 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +30 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.ts +13 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +13 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +8 -0
- package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +52 -0
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +8 -0
- package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +52 -0
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +8 -0
- package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +52 -0
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +8 -0
- package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +8 -0
- package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +52 -0
- package/dist/cjs/api/resources/fhirProvider/errors/index.d.ts +5 -0
- package/dist/cjs/api/resources/fhirProvider/errors/index.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/index.d.ts +3 -0
- package/dist/cjs/api/resources/fhirProvider/index.js +19 -0
- package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +14 -0
- package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +13 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +22 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +7 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +9 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +9 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +9 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +9 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +25 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +19 -0
- package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +20 -0
- package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +17 -0
- package/dist/cjs/api/resources/{agent/types/ProviderType.js → fhirProvider/types/Provider.js} +8 -4
- package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.d.ts +19 -0
- package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +18 -0
- package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.js +5 -0
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +13 -0
- package/dist/cjs/api/resources/fhirProvider/types/index.js +29 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +6 -2
- package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/tools/client/Client.js +7 -3
- package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +3 -17
- package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +0 -10
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +2 -14
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +0 -6
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +2 -16
- package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +0 -10
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +6 -2
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +5 -5
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +6 -2
- package/dist/cjs/api/resources/tools/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/types/index.js +0 -1
- package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +10 -4
- package/dist/esm/Client.mjs +13 -3
- package/dist/esm/api/resources/agent/client/Client.d.mts +12 -8
- package/dist/esm/api/resources/agent/client/Client.mjs +15 -7
- package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +0 -3
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +6 -2
- package/dist/esm/api/resources/agent/{client/requests → types}/AgentCreateRequest.d.mts +14 -12
- package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +14 -4
- package/dist/esm/api/resources/agent/types/index.d.mts +1 -4
- package/dist/esm/api/resources/agent/types/index.mjs +1 -4
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/authtoken/client/Client.mjs +1 -1
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +1 -1
- package/dist/esm/api/resources/cohort/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/cohort/client/Client.mjs +6 -2
- package/dist/esm/api/resources/construe/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/construe/client/Client.mjs +6 -2
- package/dist/esm/api/resources/fhir/client/Client.d.mts +293 -0
- package/dist/esm/api/resources/fhir/client/Client.mjs +637 -0
- package/dist/esm/api/resources/fhir/client/index.d.mts +2 -0
- package/dist/esm/api/resources/fhir/client/index.mjs +1 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +18 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +13 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +47 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +69 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +26 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +19 -0
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +4 -0
- package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/fhir/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +8 -0
- package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/fhir/errors/index.d.mts +4 -0
- package/dist/esm/api/resources/fhir/errors/index.mjs +4 -0
- package/dist/esm/api/resources/fhir/index.d.mts +3 -0
- package/dist/esm/api/resources/fhir/index.mjs +3 -0
- package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +14 -0
- package/dist/esm/api/resources/fhir/types/ErrorResponse.mjs +4 -0
- package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +57 -0
- package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +22 -0
- package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +26 -0
- package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.mjs +14 -0
- package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +27 -0
- package/dist/esm/api/resources/fhir/types/FhirResource.mjs +4 -0
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +5 -0
- package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +4 -0
- package/dist/esm/api/resources/fhir/types/index.d.mts +5 -0
- package/dist/esm/api/resources/fhir/types/index.mjs +5 -0
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +161 -0
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +559 -0
- package/dist/esm/api/resources/fhirProvider/client/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/client/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +20 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +30 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.mts +13 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +13 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +8 -0
- package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +15 -0
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +8 -0
- package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +15 -0
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +8 -0
- package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +15 -0
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +8 -0
- package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +8 -0
- package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +15 -0
- package/dist/esm/api/resources/fhirProvider/errors/index.d.mts +5 -0
- package/dist/esm/api/resources/fhirProvider/errors/index.mjs +5 -0
- package/dist/esm/api/resources/fhirProvider/index.d.mts +3 -0
- package/dist/esm/api/resources/fhirProvider/index.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +14 -0
- package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +10 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +22 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +7 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +9 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +9 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +9 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +9 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +25 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +19 -0
- package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +20 -0
- package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +17 -0
- package/dist/esm/api/resources/{agent/types/ProviderType.mjs → fhirProvider/types/Provider.mjs} +7 -3
- package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.d.mts +19 -0
- package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +18 -0
- package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.mjs +4 -0
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +13 -0
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +13 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +6 -2
- package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/tools/client/Client.mjs +7 -3
- package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +3 -17
- package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +1 -9
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +2 -14
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +0 -6
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +2 -16
- package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +1 -9
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +6 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +5 -5
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +6 -2
- package/dist/esm/api/resources/tools/types/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/types/index.mjs +0 -1
- package/dist/esm/core/fetcher/Fetcher.d.mts +1 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -3
- package/reference.md +1090 -4
- package/LICENSE +0 -21
- package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.d.ts +0 -25
- package/dist/cjs/api/resources/agent/types/AgentFhirConfig.d.ts +0 -12
- package/dist/cjs/api/resources/agent/types/AgentProvider.d.ts +0 -11
- package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.d.ts +0 -12
- package/dist/cjs/api/resources/agent/types/ProviderType.d.ts +0 -13
- package/dist/cjs/api/resources/tools/types/FhirClientConfig.d.ts +0 -12
- package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.d.mts +0 -25
- package/dist/esm/api/resources/agent/types/AgentFhirConfig.d.mts +0 -12
- package/dist/esm/api/resources/agent/types/AgentProvider.d.mts +0 -11
- package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.d.mts +0 -12
- package/dist/esm/api/resources/agent/types/ProviderType.d.mts +0 -13
- package/dist/esm/api/resources/tools/types/FhirClientConfig.d.mts +0 -12
- /package/dist/cjs/api/resources/agent/{client/requests → types}/AgentCreateRequest.js +0 -0
- /package/dist/cjs/api/resources/{agent/client/requests/AgentUpdateRequest.js → fhir/client/requests/FhirCreateRequest.js} +0 -0
- /package/dist/cjs/api/resources/{agent/types/AgentFhirConfig.js → fhir/client/requests/FhirDeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/{agent/types/AgentProvider.js → fhir/client/requests/FhirExecuteBundleRequest.js} +0 -0
- /package/dist/cjs/api/resources/{agent/types/ChatFhirClientConfig.js → fhir/client/requests/FhirPatchRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/types/FhirClientConfig.js → fhir/client/requests/FhirSearchRequest.js} +0 -0
- /package/dist/esm/api/resources/agent/{client/requests → types}/AgentCreateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{agent/client/requests/AgentUpdateRequest.mjs → fhir/client/requests/FhirCreateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/types/AgentFhirConfig.mjs → fhir/client/requests/FhirDeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/types/AgentProvider.mjs → fhir/client/requests/FhirExecuteBundleRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/types/ChatFhirClientConfig.mjs → fhir/client/requests/FhirPatchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/types/FhirClientConfig.mjs → fhir/client/requests/FhirSearchRequest.mjs} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface FhirQueryResponse {
|
|
5
|
+
success?: boolean;
|
|
6
|
+
/** HTTP status code from the FHIR server response */
|
|
7
|
+
status?: number;
|
|
8
|
+
message?: string;
|
|
9
|
+
data?: FhirQueryResponse.Data;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace FhirQueryResponse {
|
|
12
|
+
type Data =
|
|
13
|
+
/**
|
|
14
|
+
* FHIR Bundle containing multiple resources */
|
|
15
|
+
Record<string, unknown>
|
|
16
|
+
/**
|
|
17
|
+
* Raw response text if not valid JSON */
|
|
18
|
+
| string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* JSON Web Key structure for RSA keys used in JWT authentication. Keys are automatically generated using RSA-2048 with RS384 signing algorithm. The Key ID (kid) is derived from a SHA256 hash of the public key PEM format.
|
|
6
|
+
*/
|
|
7
|
+
export interface JsonWebKey {
|
|
8
|
+
/** Key Type */
|
|
9
|
+
kty?: string;
|
|
10
|
+
/** Usage (sig for signature) */
|
|
11
|
+
use?: string;
|
|
12
|
+
/** Key ID - SHA256 hash of the public key PEM (including headers) encoded as base64url. Generated by taking the public key in PEM format, hashing with SHA256, then base64url encoding (replacing + with -, / with _, and removing padding). */
|
|
13
|
+
kid?: string;
|
|
14
|
+
/** Algorithm used for JWT signing (RSA with SHA-384) */
|
|
15
|
+
alg?: string;
|
|
16
|
+
/** RSA Modulus (base64url encoded) */
|
|
17
|
+
n?: string;
|
|
18
|
+
/** RSA Exponent (base64url encoded) */
|
|
19
|
+
e?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Type of FHIR server provider
|
|
6
|
+
*/
|
|
7
|
+
export type Provider = "athenahealth" | "canvas" | "cerner" | "elation" | "epic" | "google_healthcare" | "hapi" | "medplum";
|
|
8
|
+
export declare const Provider: {
|
|
9
|
+
readonly Athenahealth: "athenahealth";
|
|
10
|
+
readonly Canvas: "canvas";
|
|
11
|
+
readonly Cerner: "cerner";
|
|
12
|
+
readonly Elation: "elation";
|
|
13
|
+
readonly Epic: "epic";
|
|
14
|
+
readonly GoogleHealthcare: "google_healthcare";
|
|
15
|
+
readonly Hapi: "hapi";
|
|
16
|
+
readonly Medplum: "medplum";
|
|
17
|
+
};
|
package/dist/cjs/api/resources/{agent/types/ProviderType.js → fhirProvider/types/Provider.js}
RENAMED
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
|
|
9
|
-
GoogleHealthcare: "google_healthcare",
|
|
6
|
+
exports.Provider = void 0;
|
|
7
|
+
exports.Provider = {
|
|
8
|
+
Athenahealth: "athenahealth",
|
|
10
9
|
Canvas: "canvas",
|
|
10
|
+
Cerner: "cerner",
|
|
11
|
+
Elation: "elation",
|
|
12
|
+
Epic: "epic",
|
|
13
|
+
GoogleHealthcare: "google_healthcare",
|
|
11
14
|
Hapi: "hapi",
|
|
15
|
+
Medplum: "medplum",
|
|
12
16
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Google Cloud Service Account key (required for google_healthcare auth method)
|
|
6
|
+
*/
|
|
7
|
+
export interface ServiceAccountKey {
|
|
8
|
+
type: string;
|
|
9
|
+
project_id: string;
|
|
10
|
+
private_key_id: string;
|
|
11
|
+
private_key: string;
|
|
12
|
+
client_email: string;
|
|
13
|
+
client_id: string;
|
|
14
|
+
auth_uri: string;
|
|
15
|
+
token_uri: string;
|
|
16
|
+
auth_provider_x509_cert_url: string;
|
|
17
|
+
client_x509_cert_url: string;
|
|
18
|
+
universe_domain: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* SMART on FHIR configuration for OAuth-based providers
|
|
6
|
+
*/
|
|
7
|
+
export interface SmartConfiguration {
|
|
8
|
+
/** OAuth2 authorization endpoint */
|
|
9
|
+
authorization_endpoint?: string;
|
|
10
|
+
/** OAuth2 token endpoint */
|
|
11
|
+
token_endpoint?: string;
|
|
12
|
+
/** OIDC issuer URL */
|
|
13
|
+
issuer?: string;
|
|
14
|
+
/** JSON Web Key Set URI */
|
|
15
|
+
jwks_uri?: string;
|
|
16
|
+
/** List of supported scopes */
|
|
17
|
+
scopes_supported?: string[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./FhirProviderListResponse.js";
|
|
2
|
+
export * from "./FhirProviderDeleteResponse.js";
|
|
3
|
+
export * from "./FhirProviderSetActiveAuthConfigResponse.js";
|
|
4
|
+
export * from "./FhirProviderRemoveAuthConfigResponse.js";
|
|
5
|
+
export * from "./FhirProviderTemplate.js";
|
|
6
|
+
export * from "./FhirProviderAuthConfig.js";
|
|
7
|
+
export * from "./FhirProviderResponse.js";
|
|
8
|
+
export * from "./Provider.js";
|
|
9
|
+
export * from "./AuthMethod.js";
|
|
10
|
+
export * from "./ServiceAccountKey.js";
|
|
11
|
+
export * from "./JsonWebKey.js";
|
|
12
|
+
export * from "./SmartConfiguration.js";
|
|
13
|
+
export * from "./FhirQueryResponse.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FhirProviderListResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./FhirProviderDeleteResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./FhirProviderSetActiveAuthConfigResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./FhirProviderRemoveAuthConfigResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./FhirProviderTemplate.js"), exports);
|
|
22
|
+
__exportStar(require("./FhirProviderAuthConfig.js"), exports);
|
|
23
|
+
__exportStar(require("./FhirProviderResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./Provider.js"), exports);
|
|
25
|
+
__exportStar(require("./AuthMethod.js"), exports);
|
|
26
|
+
__exportStar(require("./ServiceAccountKey.js"), exports);
|
|
27
|
+
__exportStar(require("./JsonWebKey.js"), exports);
|
|
28
|
+
__exportStar(require("./SmartConfiguration.js"), exports);
|
|
29
|
+
__exportStar(require("./FhirQueryResponse.js"), exports);
|
|
@@ -2,5 +2,7 @@ export * as agent from "./agent/index.js";
|
|
|
2
2
|
export * as authtoken from "./authtoken/index.js";
|
|
3
3
|
export * as cohort from "./cohort/index.js";
|
|
4
4
|
export * as construe from "./construe/index.js";
|
|
5
|
+
export * as fhir from "./fhir/index.js";
|
|
6
|
+
export * as fhirProvider from "./fhirProvider/index.js";
|
|
5
7
|
export * as lang2Fhir from "./lang2Fhir/index.js";
|
|
6
8
|
export * as tools from "./tools/index.js";
|
|
@@ -33,10 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.tools = exports.lang2Fhir = exports.construe = exports.cohort = exports.authtoken = exports.agent = void 0;
|
|
36
|
+
exports.tools = exports.lang2Fhir = exports.fhirProvider = exports.fhir = exports.construe = exports.cohort = exports.authtoken = exports.agent = void 0;
|
|
37
37
|
exports.agent = __importStar(require("./agent/index.js"));
|
|
38
38
|
exports.authtoken = __importStar(require("./authtoken/index.js"));
|
|
39
39
|
exports.cohort = __importStar(require("./cohort/index.js"));
|
|
40
40
|
exports.construe = __importStar(require("./construe/index.js"));
|
|
41
|
+
exports.fhir = __importStar(require("./fhir/index.js"));
|
|
42
|
+
exports.fhirProvider = __importStar(require("./fhirProvider/index.js"));
|
|
41
43
|
exports.lang2Fhir = __importStar(require("./lang2Fhir/index.js"));
|
|
42
44
|
exports.tools = __importStar(require("./tools/index.js"));
|
|
@@ -9,9 +9,9 @@ export declare namespace Lang2Fhir {
|
|
|
9
9
|
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -24,12 +24,12 @@ export declare namespace Lang2Fhir {
|
|
|
24
24
|
/** Additional query string parameters to include in the request. */
|
|
25
25
|
queryParams?: Record<string, unknown>;
|
|
26
26
|
/** Additional headers to include in the request. */
|
|
27
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
export declare class Lang2Fhir {
|
|
31
31
|
protected readonly _options: Lang2Fhir.Options;
|
|
32
|
-
constructor(_options
|
|
32
|
+
constructor(_options?: Lang2Fhir.Options);
|
|
33
33
|
/**
|
|
34
34
|
* Converts natural language text into a structured FHIR resource
|
|
35
35
|
*
|
|
@@ -107,5 +107,5 @@ export declare class Lang2Fhir {
|
|
|
107
107
|
*/
|
|
108
108
|
document(request: phenoml.lang2Fhir.DocumentRequest, requestOptions?: Lang2Fhir.RequestOptions): core.HttpResponsePromise<phenoml.lang2Fhir.FhirResource>;
|
|
109
109
|
private __document;
|
|
110
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
110
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
111
111
|
}
|
|
@@ -52,7 +52,7 @@ const phenoml = __importStar(require("../../../index.js"));
|
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
54
|
class Lang2Fhir {
|
|
55
|
-
constructor(_options) {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -353,7 +353,11 @@ class Lang2Fhir {
|
|
|
353
353
|
}
|
|
354
354
|
_getAuthorizationHeader() {
|
|
355
355
|
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
-
|
|
356
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
357
|
+
if (bearer != null) {
|
|
358
|
+
return `Bearer ${bearer}`;
|
|
359
|
+
}
|
|
360
|
+
return undefined;
|
|
357
361
|
});
|
|
358
362
|
}
|
|
359
363
|
}
|
|
@@ -10,9 +10,9 @@ export declare namespace Tools {
|
|
|
10
10
|
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
11
11
|
/** Specify a custom URL to connect the client to. */
|
|
12
12
|
baseUrl?: core.Supplier<string>;
|
|
13
|
-
token
|
|
13
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
14
14
|
/** Additional headers to include in requests. */
|
|
15
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
16
16
|
fetcher?: core.FetchFunction;
|
|
17
17
|
}
|
|
18
18
|
interface RequestOptions {
|
|
@@ -25,13 +25,13 @@ export declare namespace Tools {
|
|
|
25
25
|
/** Additional query string parameters to include in the request. */
|
|
26
26
|
queryParams?: Record<string, unknown>;
|
|
27
27
|
/** Additional headers to include in the request. */
|
|
28
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
28
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
export declare class Tools {
|
|
32
32
|
protected readonly _options: Tools.Options;
|
|
33
33
|
protected _mcpServer: McpServer | undefined;
|
|
34
|
-
constructor(_options
|
|
34
|
+
constructor(_options?: Tools.Options);
|
|
35
35
|
get mcpServer(): McpServer;
|
|
36
36
|
/**
|
|
37
37
|
* Converts natural language to FHIR resource and optionally stores it in a FHIR server
|
|
@@ -86,10 +86,10 @@ export declare class Tools {
|
|
|
86
86
|
* @example
|
|
87
87
|
* await client.tools.analyzeCohort({
|
|
88
88
|
* text: "female patients over 20 with diabetes but not hypertension",
|
|
89
|
-
* provider: "
|
|
89
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
90
90
|
* })
|
|
91
91
|
*/
|
|
92
92
|
analyzeCohort(request: phenoml.tools.CohortRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.CohortResponse>;
|
|
93
93
|
private __analyzeCohort;
|
|
94
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
94
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
95
95
|
}
|
|
@@ -53,7 +53,7 @@ const headers_js_1 = require("../../../../core/headers.js");
|
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/mcpServer/client/Client.js");
|
|
55
55
|
class Tools {
|
|
56
|
-
constructor(_options) {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
57
|
this._options = _options;
|
|
58
58
|
}
|
|
59
59
|
get mcpServer() {
|
|
@@ -233,7 +233,7 @@ class Tools {
|
|
|
233
233
|
* @example
|
|
234
234
|
* await client.tools.analyzeCohort({
|
|
235
235
|
* text: "female patients over 20 with diabetes but not hypertension",
|
|
236
|
-
* provider: "
|
|
236
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
237
237
|
* })
|
|
238
238
|
*/
|
|
239
239
|
analyzeCohort(request, requestOptions) {
|
|
@@ -295,7 +295,11 @@ class Tools {
|
|
|
295
295
|
}
|
|
296
296
|
_getAuthorizationHeader() {
|
|
297
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
-
|
|
298
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
299
|
+
if (bearer != null) {
|
|
300
|
+
return `Bearer ${bearer}`;
|
|
301
|
+
}
|
|
302
|
+
return undefined;
|
|
299
303
|
});
|
|
300
304
|
}
|
|
301
305
|
}
|
|
@@ -1,30 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as phenoml from "../../../../index.js";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
8
7
|
* text: "female patients over 20 with diabetes but not hypertension",
|
|
9
|
-
* provider: "
|
|
8
|
+
* provider: "550e8400-e29b-41d4-a716-446655440000"
|
|
10
9
|
* }
|
|
11
10
|
*/
|
|
12
11
|
export interface CohortRequest {
|
|
13
12
|
/** Natural language text describing the patient cohort criteria */
|
|
14
13
|
text: string;
|
|
15
|
-
/** FHIR provider
|
|
16
|
-
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
|
-
};
|
|
14
|
+
/** FHIR provider ID - must be a valid UUID from existing FHIR providers. also supports provider by name (e.g. medplum) */
|
|
15
|
+
provider: string;
|
|
30
16
|
}
|
|
@@ -3,13 +3,3 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CohortRequest = void 0;
|
|
7
|
-
var CohortRequest;
|
|
8
|
-
(function (CohortRequest) {
|
|
9
|
-
CohortRequest.Provider = {
|
|
10
|
-
Medplum: "medplum",
|
|
11
|
-
GoogleHealthcare: "google_healthcare",
|
|
12
|
-
Canvas: "canvas",
|
|
13
|
-
Hapi: "hapi",
|
|
14
|
-
};
|
|
15
|
-
})(CohortRequest || (exports.CohortRequest = CohortRequest = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as phenoml from "../../../../index.js";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
@@ -14,9 +13,8 @@ export interface Lang2FhirAndCreateRequest {
|
|
|
14
13
|
resource: Lang2FhirAndCreateRequest.Resource;
|
|
15
14
|
/** Natural language text to convert to FHIR resource */
|
|
16
15
|
text: string;
|
|
17
|
-
/** FHIR provider
|
|
18
|
-
provider?:
|
|
19
|
-
meta?: phenoml.tools.FhirClientConfig;
|
|
16
|
+
/** FHIR provider ID - must be a valid UUID from existing FHIR providers. also supports provider by name (e.g. medplum) */
|
|
17
|
+
provider?: string;
|
|
20
18
|
}
|
|
21
19
|
export declare namespace Lang2FhirAndCreateRequest {
|
|
22
20
|
/**
|
|
@@ -41,14 +39,4 @@ export declare namespace Lang2FhirAndCreateRequest {
|
|
|
41
39
|
readonly SimpleObservation: "simple-observation";
|
|
42
40
|
readonly VitalSigns: "vital-signs";
|
|
43
41
|
};
|
|
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
42
|
}
|
|
@@ -24,10 +24,4 @@ var Lang2FhirAndCreateRequest;
|
|
|
24
24
|
SimpleObservation: "simple-observation",
|
|
25
25
|
VitalSigns: "vital-signs",
|
|
26
26
|
};
|
|
27
|
-
Lang2FhirAndCreateRequest.Provider = {
|
|
28
|
-
Medplum: "medplum",
|
|
29
|
-
GoogleHealthcare: "google_healthcare",
|
|
30
|
-
Canvas: "canvas",
|
|
31
|
-
Hapi: "hapi",
|
|
32
|
-
};
|
|
33
27
|
})(Lang2FhirAndCreateRequest || (exports.Lang2FhirAndCreateRequest = Lang2FhirAndCreateRequest = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as phenoml from "../../../../index.js";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
@@ -17,19 +16,6 @@ export interface Lang2FhirAndSearchRequest {
|
|
|
17
16
|
practitioner_id?: string;
|
|
18
17
|
/** Maximum number of results to return */
|
|
19
18
|
count?: number;
|
|
20
|
-
/** FHIR provider
|
|
21
|
-
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
|
-
};
|
|
19
|
+
/** FHIR provider ID - must be a valid UUID from existing FHIR providers. also supports provider by name (e.g. medplum) */
|
|
20
|
+
provider?: string;
|
|
35
21
|
}
|
|
@@ -3,13 +3,3 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Lang2FhirAndSearchRequest = void 0;
|
|
7
|
-
var Lang2FhirAndSearchRequest;
|
|
8
|
-
(function (Lang2FhirAndSearchRequest) {
|
|
9
|
-
Lang2FhirAndSearchRequest.Provider = {
|
|
10
|
-
Medplum: "medplum",
|
|
11
|
-
GoogleHealthcare: "google_healthcare",
|
|
12
|
-
Canvas: "canvas",
|
|
13
|
-
Hapi: "hapi",
|
|
14
|
-
};
|
|
15
|
-
})(Lang2FhirAndSearchRequest || (exports.Lang2FhirAndSearchRequest = Lang2FhirAndSearchRequest = {}));
|
|
@@ -10,9 +10,9 @@ export declare namespace McpServer {
|
|
|
10
10
|
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
11
11
|
/** Specify a custom URL to connect the client to. */
|
|
12
12
|
baseUrl?: core.Supplier<string>;
|
|
13
|
-
token
|
|
13
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
14
14
|
/** Additional headers to include in requests. */
|
|
15
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
16
16
|
fetcher?: core.FetchFunction;
|
|
17
17
|
}
|
|
18
18
|
interface RequestOptions {
|
|
@@ -25,13 +25,13 @@ export declare namespace McpServer {
|
|
|
25
25
|
/** Additional query string parameters to include in the request. */
|
|
26
26
|
queryParams?: Record<string, unknown>;
|
|
27
27
|
/** Additional headers to include in the request. */
|
|
28
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
28
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
export declare class McpServer {
|
|
32
32
|
protected readonly _options: McpServer.Options;
|
|
33
33
|
protected _tools: Tools | undefined;
|
|
34
|
-
constructor(_options
|
|
34
|
+
constructor(_options?: McpServer.Options);
|
|
35
35
|
get tools(): Tools;
|
|
36
36
|
/**
|
|
37
37
|
* Creates a new MCP server
|
|
@@ -96,5 +96,5 @@ export declare class McpServer {
|
|
|
96
96
|
*/
|
|
97
97
|
delete(mcpServerId: string, requestOptions?: McpServer.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerResponse>;
|
|
98
98
|
private __delete;
|
|
99
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
99
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
100
100
|
}
|
|
@@ -53,7 +53,7 @@ const headers_js_1 = require("../../../../../../core/headers.js");
|
|
|
53
53
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/tools/client/Client.js");
|
|
55
55
|
class McpServer {
|
|
56
|
-
constructor(_options) {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
57
|
this._options = _options;
|
|
58
58
|
}
|
|
59
59
|
get tools() {
|
|
@@ -330,7 +330,11 @@ class McpServer {
|
|
|
330
330
|
}
|
|
331
331
|
_getAuthorizationHeader() {
|
|
332
332
|
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
-
|
|
333
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
334
|
+
if (bearer != null) {
|
|
335
|
+
return `Bearer ${bearer}`;
|
|
336
|
+
}
|
|
337
|
+
return undefined;
|
|
334
338
|
});
|
|
335
339
|
}
|
|
336
340
|
}
|
|
@@ -9,9 +9,9 @@ export declare namespace Tools {
|
|
|
9
9
|
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
fetcher?: core.FetchFunction;
|
|
16
16
|
}
|
|
17
17
|
interface RequestOptions {
|
|
@@ -24,12 +24,12 @@ export declare namespace Tools {
|
|
|
24
24
|
/** Additional query string parameters to include in the request. */
|
|
25
25
|
queryParams?: Record<string, unknown>;
|
|
26
26
|
/** Additional headers to include in the request. */
|
|
27
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
export declare class Tools {
|
|
31
31
|
protected readonly _options: Tools.Options;
|
|
32
|
-
constructor(_options
|
|
32
|
+
constructor(_options?: Tools.Options);
|
|
33
33
|
/**
|
|
34
34
|
* Lists all MCP server tools for a specific MCP server
|
|
35
35
|
*
|
|
@@ -96,5 +96,5 @@ export declare class Tools {
|
|
|
96
96
|
*/
|
|
97
97
|
call(mcpServerToolId: string, request: phenoml.tools.mcpServer.McpServerToolCallRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<phenoml.tools.McpServerToolCallResponse>;
|
|
98
98
|
private __call;
|
|
99
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
99
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
100
100
|
}
|
|
@@ -52,7 +52,7 @@ const phenoml = __importStar(require("../../../../../../../index.js"));
|
|
|
52
52
|
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
54
54
|
class Tools {
|
|
55
|
-
constructor(_options) {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
@@ -331,7 +331,11 @@ class Tools {
|
|
|
331
331
|
}
|
|
332
332
|
_getAuthorizationHeader() {
|
|
333
333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
-
|
|
334
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
335
|
+
if (bearer != null) {
|
|
336
|
+
return `Bearer ${bearer}`;
|
|
337
|
+
}
|
|
338
|
+
return undefined;
|
|
335
339
|
});
|
|
336
340
|
}
|
|
337
341
|
}
|
|
@@ -20,5 +20,4 @@ __exportStar(require("./CohortResponse.js"), exports);
|
|
|
20
20
|
__exportStar(require("./McpServerResponse.js"), exports);
|
|
21
21
|
__exportStar(require("./McpServerToolCallResponse.js"), exports);
|
|
22
22
|
__exportStar(require("./McpServerToolResponse.js"), exports);
|
|
23
|
-
__exportStar(require("./FhirClientConfig.js"), exports);
|
|
24
23
|
__exportStar(require("./SearchConcept.js"), exports);
|
|
@@ -6,7 +6,7 @@ export declare namespace Fetcher {
|
|
|
6
6
|
url: string;
|
|
7
7
|
method: string;
|
|
8
8
|
contentType?: string;
|
|
9
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
9
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
queryParameters?: Record<string, unknown>;
|
|
11
11
|
body?: unknown;
|
|
12
12
|
timeoutMs?: number;
|