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,293 @@
|
|
|
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
|
+
export declare namespace Fhir {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.phenomlEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Additional query string parameters to include in the request. */
|
|
25
|
+
queryParams?: Record<string, unknown>;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Fhir {
|
|
31
|
+
protected readonly _options: Fhir.Options;
|
|
32
|
+
constructor(_options?: Fhir.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval and search operations based on the FHIR path and query parameters.
|
|
35
|
+
*
|
|
36
|
+
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
37
|
+
*
|
|
38
|
+
* @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
|
|
39
|
+
* - A UUID representing the provider ID
|
|
40
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
41
|
+
* @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
42
|
+
* Examples:
|
|
43
|
+
* - "Patient" (for resource type operations)
|
|
44
|
+
* - "Patient/123" (for specific resource operations)
|
|
45
|
+
* - "Patient/123/_history" (for history operations)
|
|
46
|
+
* @param {phenoml.fhir.FhirSearchRequest} request
|
|
47
|
+
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link phenoml.fhir.BadRequestError}
|
|
50
|
+
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
51
|
+
* @throws {@link phenoml.fhir.NotFoundError}
|
|
52
|
+
* @throws {@link phenoml.fhir.InternalServerError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.fhir.search("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
56
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com"
|
|
57
|
+
* })
|
|
58
|
+
*/
|
|
59
|
+
search(fhirProviderId: string, fhirPath: string, request?: phenoml.fhir.FhirSearchRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirSearchResponse>;
|
|
60
|
+
private __search;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new FHIR resource on the specified provider. The request body should contain a valid FHIR resource in JSON format.
|
|
63
|
+
*
|
|
64
|
+
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
|
|
67
|
+
* - A UUID representing the provider ID
|
|
68
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
69
|
+
* @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
70
|
+
* Examples:
|
|
71
|
+
* - "Patient" (for resource type operations)
|
|
72
|
+
* - "Patient/123" (for specific resource operations)
|
|
73
|
+
* - "Patient/123/_history" (for history operations)
|
|
74
|
+
* @param {phenoml.fhir.FhirCreateRequest} request
|
|
75
|
+
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link phenoml.fhir.BadRequestError}
|
|
78
|
+
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
79
|
+
* @throws {@link phenoml.fhir.InternalServerError}
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
83
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
84
|
+
* body: {
|
|
85
|
+
* resourceType: "Patient"
|
|
86
|
+
* }
|
|
87
|
+
* })
|
|
88
|
+
*/
|
|
89
|
+
create(fhirProviderId: string, fhirPath: string, request: phenoml.fhir.FhirCreateRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
|
|
90
|
+
private __create;
|
|
91
|
+
/**
|
|
92
|
+
* Creates or updates a FHIR resource on the specified provider. If the resource exists, it will be updated; otherwise, it will be created.
|
|
93
|
+
*
|
|
94
|
+
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
95
|
+
*
|
|
96
|
+
* @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
|
|
97
|
+
* - A UUID representing the provider ID
|
|
98
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
99
|
+
* @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
100
|
+
* Examples:
|
|
101
|
+
* - "Patient" (for resource type operations)
|
|
102
|
+
* - "Patient/123" (for specific resource operations)
|
|
103
|
+
* - "Patient/123/_history" (for history operations)
|
|
104
|
+
* @param {phenoml.fhir.FhirUpsertRequest} request
|
|
105
|
+
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link phenoml.fhir.BadRequestError}
|
|
108
|
+
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
109
|
+
* @throws {@link phenoml.fhir.InternalServerError}
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
113
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
114
|
+
* body: {
|
|
115
|
+
* resourceType: "Patient",
|
|
116
|
+
* id: "123"
|
|
117
|
+
* }
|
|
118
|
+
* })
|
|
119
|
+
*/
|
|
120
|
+
upsert(fhirProviderId: string, fhirPath: string, request: phenoml.fhir.FhirUpsertRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
|
|
121
|
+
private __upsert;
|
|
122
|
+
/**
|
|
123
|
+
* Deletes a FHIR resource from the specified provider.
|
|
124
|
+
*
|
|
125
|
+
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
126
|
+
*
|
|
127
|
+
* @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
|
|
128
|
+
* - A UUID representing the provider ID
|
|
129
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
130
|
+
* @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
131
|
+
* Examples:
|
|
132
|
+
* - "Patient" (for resource type operations)
|
|
133
|
+
* - "Patient/123" (for specific resource operations)
|
|
134
|
+
* - "Patient/123/_history" (for history operations)
|
|
135
|
+
* @param {phenoml.fhir.FhirDeleteRequest} request
|
|
136
|
+
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link phenoml.fhir.BadRequestError}
|
|
139
|
+
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
140
|
+
* @throws {@link phenoml.fhir.NotFoundError}
|
|
141
|
+
* @throws {@link phenoml.fhir.InternalServerError}
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* await client.fhir.delete("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
145
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com"
|
|
146
|
+
* })
|
|
147
|
+
*/
|
|
148
|
+
delete(fhirProviderId: string, fhirPath: string, request?: phenoml.fhir.FhirDeleteRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
|
|
149
|
+
private __delete;
|
|
150
|
+
/**
|
|
151
|
+
* Partially updates a FHIR resource on the specified provider using JSON Patch operations as defined in RFC 6902.
|
|
152
|
+
*
|
|
153
|
+
* The request body should contain an array of JSON Patch operations. Each operation specifies:
|
|
154
|
+
* - `op`: The operation type (add, remove, replace, move, copy, test)
|
|
155
|
+
* - `path`: JSON Pointer to the target location in the resource
|
|
156
|
+
* - `value`: The value to use (required for add, replace, and test operations)
|
|
157
|
+
*
|
|
158
|
+
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
159
|
+
*
|
|
160
|
+
* @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
|
|
161
|
+
* - A UUID representing the provider ID
|
|
162
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
163
|
+
* @param {string} fhirPath - The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
164
|
+
* Examples:
|
|
165
|
+
* - "Patient" (for resource type operations)
|
|
166
|
+
* - "Patient/123" (for specific resource operations)
|
|
167
|
+
* - "Patient/123/_history" (for history operations)
|
|
168
|
+
* @param {phenoml.fhir.FhirPatchRequest} request
|
|
169
|
+
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
170
|
+
*
|
|
171
|
+
* @throws {@link phenoml.fhir.BadRequestError}
|
|
172
|
+
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
173
|
+
* @throws {@link phenoml.fhir.NotFoundError}
|
|
174
|
+
* @throws {@link phenoml.fhir.InternalServerError}
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
178
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
179
|
+
* body: [{
|
|
180
|
+
* op: "replace",
|
|
181
|
+
* path: "/name/0/family",
|
|
182
|
+
* value: "NewFamilyName"
|
|
183
|
+
* }]
|
|
184
|
+
* })
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
188
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
189
|
+
* body: [{
|
|
190
|
+
* op: "add",
|
|
191
|
+
* path: "/telecom/-",
|
|
192
|
+
* value: {
|
|
193
|
+
* "system": "phone",
|
|
194
|
+
* "value": "+1-555-123-4567",
|
|
195
|
+
* "use": "home"
|
|
196
|
+
* }
|
|
197
|
+
* }]
|
|
198
|
+
* })
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
202
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
203
|
+
* body: [{
|
|
204
|
+
* op: "replace",
|
|
205
|
+
* path: "/name/0/family",
|
|
206
|
+
* value: "Smith"
|
|
207
|
+
* }, {
|
|
208
|
+
* op: "add",
|
|
209
|
+
* path: "/telecom/-",
|
|
210
|
+
* value: {
|
|
211
|
+
* "system": "email",
|
|
212
|
+
* "value": "john.smith@example.com"
|
|
213
|
+
* }
|
|
214
|
+
* }, {
|
|
215
|
+
* op: "remove",
|
|
216
|
+
* path: "/address/0"
|
|
217
|
+
* }]
|
|
218
|
+
* })
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
222
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
223
|
+
* body: [{
|
|
224
|
+
* op: "test",
|
|
225
|
+
* path: "/gender",
|
|
226
|
+
* value: "male"
|
|
227
|
+
* }, {
|
|
228
|
+
* op: "replace",
|
|
229
|
+
* path: "/gender",
|
|
230
|
+
* value: "female"
|
|
231
|
+
* }]
|
|
232
|
+
* })
|
|
233
|
+
*/
|
|
234
|
+
patch(fhirProviderId: string, fhirPath: string, request: phenoml.fhir.FhirPatchRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirResource>;
|
|
235
|
+
private __patch;
|
|
236
|
+
/**
|
|
237
|
+
* Executes a FHIR Bundle transaction or batch operation on the specified provider. This allows multiple FHIR resources to be processed in a single request.
|
|
238
|
+
*
|
|
239
|
+
* The request body should contain a valid FHIR Bundle resource with transaction or batch type.
|
|
240
|
+
*
|
|
241
|
+
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
242
|
+
*
|
|
243
|
+
* @param {string} fhirProviderId - The ID of the FHIR provider to use. Can be either:
|
|
244
|
+
* - A UUID representing the provider ID
|
|
245
|
+
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
246
|
+
* @param {phenoml.fhir.FhirExecuteBundleRequest} request
|
|
247
|
+
* @param {Fhir.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
|
+
*
|
|
249
|
+
* @throws {@link phenoml.fhir.BadRequestError}
|
|
250
|
+
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
251
|
+
* @throws {@link phenoml.fhir.InternalServerError}
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
|
|
255
|
+
* "X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
256
|
+
* body: {
|
|
257
|
+
* resourceType: "Bundle",
|
|
258
|
+
* entry: [{
|
|
259
|
+
* resource: {
|
|
260
|
+
* "resourceType": "Patient",
|
|
261
|
+
* "name": [
|
|
262
|
+
* {
|
|
263
|
+
* "family": "Doe",
|
|
264
|
+
* "given": [
|
|
265
|
+
* "John"
|
|
266
|
+
* ]
|
|
267
|
+
* }
|
|
268
|
+
* ]
|
|
269
|
+
* },
|
|
270
|
+
* request: {
|
|
271
|
+
* method: "POST",
|
|
272
|
+
* url: "Patient"
|
|
273
|
+
* }
|
|
274
|
+
* }, {
|
|
275
|
+
* resource: {
|
|
276
|
+
* "resourceType": "Observation",
|
|
277
|
+
* "status": "final",
|
|
278
|
+
* "subject": {
|
|
279
|
+
* "reference": "Patient/123"
|
|
280
|
+
* }
|
|
281
|
+
* },
|
|
282
|
+
* request: {
|
|
283
|
+
* method: "POST",
|
|
284
|
+
* url: "Observation"
|
|
285
|
+
* }
|
|
286
|
+
* }]
|
|
287
|
+
* }
|
|
288
|
+
* })
|
|
289
|
+
*/
|
|
290
|
+
executeBundle(fhirProviderId: string, request: phenoml.fhir.FhirExecuteBundleRequest, requestOptions?: Fhir.RequestOptions): core.HttpResponsePromise<phenoml.fhir.FhirBundle>;
|
|
291
|
+
private __executeBundle;
|
|
292
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
293
|
+
}
|