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
package/reference.md
CHANGED
|
@@ -50,7 +50,7 @@ await client.agent.create({
|
|
|
50
50
|
<dl>
|
|
51
51
|
<dd>
|
|
52
52
|
|
|
53
|
-
**request:** `phenoml.
|
|
53
|
+
**request:** `phenoml.AgentCreateRequest`
|
|
54
54
|
|
|
55
55
|
</dd>
|
|
56
56
|
</dl>
|
|
@@ -223,7 +223,11 @@ Updates an existing agent's configuration
|
|
|
223
223
|
<dd>
|
|
224
224
|
|
|
225
225
|
```typescript
|
|
226
|
-
await client.agent.update("id"
|
|
226
|
+
await client.agent.update("id", {
|
|
227
|
+
name: "name",
|
|
228
|
+
prompts: ["prompt_123", "prompt_456"],
|
|
229
|
+
is_active: true,
|
|
230
|
+
});
|
|
227
231
|
```
|
|
228
232
|
|
|
229
233
|
</dd>
|
|
@@ -247,7 +251,7 @@ await client.agent.update("id");
|
|
|
247
251
|
<dl>
|
|
248
252
|
<dd>
|
|
249
253
|
|
|
250
|
-
**request:** `phenoml.
|
|
254
|
+
**request:** `phenoml.AgentCreateRequest`
|
|
251
255
|
|
|
252
256
|
</dd>
|
|
253
257
|
</dl>
|
|
@@ -1346,6 +1350,1088 @@ await client.construe.cohort({
|
|
|
1346
1350
|
</dl>
|
|
1347
1351
|
</details>
|
|
1348
1352
|
|
|
1353
|
+
## Fhir
|
|
1354
|
+
|
|
1355
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">search</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirSearchResponse</code></summary>
|
|
1356
|
+
<dl>
|
|
1357
|
+
<dd>
|
|
1358
|
+
|
|
1359
|
+
#### 📝 Description
|
|
1360
|
+
|
|
1361
|
+
<dl>
|
|
1362
|
+
<dd>
|
|
1363
|
+
|
|
1364
|
+
<dl>
|
|
1365
|
+
<dd>
|
|
1366
|
+
|
|
1367
|
+
Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval and search operations based on the FHIR path and query parameters.
|
|
1368
|
+
|
|
1369
|
+
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
1370
|
+
|
|
1371
|
+
</dd>
|
|
1372
|
+
</dl>
|
|
1373
|
+
</dd>
|
|
1374
|
+
</dl>
|
|
1375
|
+
|
|
1376
|
+
#### 🔌 Usage
|
|
1377
|
+
|
|
1378
|
+
<dl>
|
|
1379
|
+
<dd>
|
|
1380
|
+
|
|
1381
|
+
<dl>
|
|
1382
|
+
<dd>
|
|
1383
|
+
|
|
1384
|
+
```typescript
|
|
1385
|
+
await client.fhir.search("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
1386
|
+
"X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
1387
|
+
});
|
|
1388
|
+
```
|
|
1389
|
+
|
|
1390
|
+
</dd>
|
|
1391
|
+
</dl>
|
|
1392
|
+
</dd>
|
|
1393
|
+
</dl>
|
|
1394
|
+
|
|
1395
|
+
#### ⚙️ Parameters
|
|
1396
|
+
|
|
1397
|
+
<dl>
|
|
1398
|
+
<dd>
|
|
1399
|
+
|
|
1400
|
+
<dl>
|
|
1401
|
+
<dd>
|
|
1402
|
+
|
|
1403
|
+
**fhirProviderId:** `string`
|
|
1404
|
+
|
|
1405
|
+
The ID of the FHIR provider to use. Can be either:
|
|
1406
|
+
|
|
1407
|
+
- A UUID representing the provider ID
|
|
1408
|
+
- A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
1409
|
+
|
|
1410
|
+
</dd>
|
|
1411
|
+
</dl>
|
|
1412
|
+
|
|
1413
|
+
<dl>
|
|
1414
|
+
<dd>
|
|
1415
|
+
|
|
1416
|
+
**fhirPath:** `string`
|
|
1417
|
+
|
|
1418
|
+
The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
1419
|
+
Examples:
|
|
1420
|
+
|
|
1421
|
+
- "Patient" (for resource type operations)
|
|
1422
|
+
- "Patient/123" (for specific resource operations)
|
|
1423
|
+
- "Patient/123/\_history" (for history operations)
|
|
1424
|
+
|
|
1425
|
+
</dd>
|
|
1426
|
+
</dl>
|
|
1427
|
+
|
|
1428
|
+
<dl>
|
|
1429
|
+
<dd>
|
|
1430
|
+
|
|
1431
|
+
**request:** `phenoml.fhir.FhirSearchRequest`
|
|
1432
|
+
|
|
1433
|
+
</dd>
|
|
1434
|
+
</dl>
|
|
1435
|
+
|
|
1436
|
+
<dl>
|
|
1437
|
+
<dd>
|
|
1438
|
+
|
|
1439
|
+
**requestOptions:** `Fhir.RequestOptions`
|
|
1440
|
+
|
|
1441
|
+
</dd>
|
|
1442
|
+
</dl>
|
|
1443
|
+
</dd>
|
|
1444
|
+
</dl>
|
|
1445
|
+
|
|
1446
|
+
</dd>
|
|
1447
|
+
</dl>
|
|
1448
|
+
</details>
|
|
1449
|
+
|
|
1450
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">create</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirResource</code></summary>
|
|
1451
|
+
<dl>
|
|
1452
|
+
<dd>
|
|
1453
|
+
|
|
1454
|
+
#### 📝 Description
|
|
1455
|
+
|
|
1456
|
+
<dl>
|
|
1457
|
+
<dd>
|
|
1458
|
+
|
|
1459
|
+
<dl>
|
|
1460
|
+
<dd>
|
|
1461
|
+
|
|
1462
|
+
Creates a new FHIR resource on the specified provider. The request body should contain a valid FHIR resource in JSON format.
|
|
1463
|
+
|
|
1464
|
+
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
1465
|
+
|
|
1466
|
+
</dd>
|
|
1467
|
+
</dl>
|
|
1468
|
+
</dd>
|
|
1469
|
+
</dl>
|
|
1470
|
+
|
|
1471
|
+
#### 🔌 Usage
|
|
1472
|
+
|
|
1473
|
+
<dl>
|
|
1474
|
+
<dd>
|
|
1475
|
+
|
|
1476
|
+
<dl>
|
|
1477
|
+
<dd>
|
|
1478
|
+
|
|
1479
|
+
```typescript
|
|
1480
|
+
await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
1481
|
+
"X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
1482
|
+
body: {
|
|
1483
|
+
resourceType: "Patient",
|
|
1484
|
+
},
|
|
1485
|
+
});
|
|
1486
|
+
```
|
|
1487
|
+
|
|
1488
|
+
</dd>
|
|
1489
|
+
</dl>
|
|
1490
|
+
</dd>
|
|
1491
|
+
</dl>
|
|
1492
|
+
|
|
1493
|
+
#### ⚙️ Parameters
|
|
1494
|
+
|
|
1495
|
+
<dl>
|
|
1496
|
+
<dd>
|
|
1497
|
+
|
|
1498
|
+
<dl>
|
|
1499
|
+
<dd>
|
|
1500
|
+
|
|
1501
|
+
**fhirProviderId:** `string`
|
|
1502
|
+
|
|
1503
|
+
The ID of the FHIR provider to use. Can be either:
|
|
1504
|
+
|
|
1505
|
+
- A UUID representing the provider ID
|
|
1506
|
+
- A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
1507
|
+
|
|
1508
|
+
</dd>
|
|
1509
|
+
</dl>
|
|
1510
|
+
|
|
1511
|
+
<dl>
|
|
1512
|
+
<dd>
|
|
1513
|
+
|
|
1514
|
+
**fhirPath:** `string`
|
|
1515
|
+
|
|
1516
|
+
The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
1517
|
+
Examples:
|
|
1518
|
+
|
|
1519
|
+
- "Patient" (for resource type operations)
|
|
1520
|
+
- "Patient/123" (for specific resource operations)
|
|
1521
|
+
- "Patient/123/\_history" (for history operations)
|
|
1522
|
+
|
|
1523
|
+
</dd>
|
|
1524
|
+
</dl>
|
|
1525
|
+
|
|
1526
|
+
<dl>
|
|
1527
|
+
<dd>
|
|
1528
|
+
|
|
1529
|
+
**request:** `phenoml.fhir.FhirCreateRequest`
|
|
1530
|
+
|
|
1531
|
+
</dd>
|
|
1532
|
+
</dl>
|
|
1533
|
+
|
|
1534
|
+
<dl>
|
|
1535
|
+
<dd>
|
|
1536
|
+
|
|
1537
|
+
**requestOptions:** `Fhir.RequestOptions`
|
|
1538
|
+
|
|
1539
|
+
</dd>
|
|
1540
|
+
</dl>
|
|
1541
|
+
</dd>
|
|
1542
|
+
</dl>
|
|
1543
|
+
|
|
1544
|
+
</dd>
|
|
1545
|
+
</dl>
|
|
1546
|
+
</details>
|
|
1547
|
+
|
|
1548
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">upsert</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirResource</code></summary>
|
|
1549
|
+
<dl>
|
|
1550
|
+
<dd>
|
|
1551
|
+
|
|
1552
|
+
#### 📝 Description
|
|
1553
|
+
|
|
1554
|
+
<dl>
|
|
1555
|
+
<dd>
|
|
1556
|
+
|
|
1557
|
+
<dl>
|
|
1558
|
+
<dd>
|
|
1559
|
+
|
|
1560
|
+
Creates or updates a FHIR resource on the specified provider. If the resource exists, it will be updated; otherwise, it will be created.
|
|
1561
|
+
|
|
1562
|
+
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
1563
|
+
|
|
1564
|
+
</dd>
|
|
1565
|
+
</dl>
|
|
1566
|
+
</dd>
|
|
1567
|
+
</dl>
|
|
1568
|
+
|
|
1569
|
+
#### 🔌 Usage
|
|
1570
|
+
|
|
1571
|
+
<dl>
|
|
1572
|
+
<dd>
|
|
1573
|
+
|
|
1574
|
+
<dl>
|
|
1575
|
+
<dd>
|
|
1576
|
+
|
|
1577
|
+
```typescript
|
|
1578
|
+
await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
1579
|
+
"X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
1580
|
+
body: {
|
|
1581
|
+
resourceType: "Patient",
|
|
1582
|
+
id: "123",
|
|
1583
|
+
},
|
|
1584
|
+
});
|
|
1585
|
+
```
|
|
1586
|
+
|
|
1587
|
+
</dd>
|
|
1588
|
+
</dl>
|
|
1589
|
+
</dd>
|
|
1590
|
+
</dl>
|
|
1591
|
+
|
|
1592
|
+
#### ⚙️ Parameters
|
|
1593
|
+
|
|
1594
|
+
<dl>
|
|
1595
|
+
<dd>
|
|
1596
|
+
|
|
1597
|
+
<dl>
|
|
1598
|
+
<dd>
|
|
1599
|
+
|
|
1600
|
+
**fhirProviderId:** `string`
|
|
1601
|
+
|
|
1602
|
+
The ID of the FHIR provider to use. Can be either:
|
|
1603
|
+
|
|
1604
|
+
- A UUID representing the provider ID
|
|
1605
|
+
- A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
1606
|
+
|
|
1607
|
+
</dd>
|
|
1608
|
+
</dl>
|
|
1609
|
+
|
|
1610
|
+
<dl>
|
|
1611
|
+
<dd>
|
|
1612
|
+
|
|
1613
|
+
**fhirPath:** `string`
|
|
1614
|
+
|
|
1615
|
+
The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
1616
|
+
Examples:
|
|
1617
|
+
|
|
1618
|
+
- "Patient" (for resource type operations)
|
|
1619
|
+
- "Patient/123" (for specific resource operations)
|
|
1620
|
+
- "Patient/123/\_history" (for history operations)
|
|
1621
|
+
|
|
1622
|
+
</dd>
|
|
1623
|
+
</dl>
|
|
1624
|
+
|
|
1625
|
+
<dl>
|
|
1626
|
+
<dd>
|
|
1627
|
+
|
|
1628
|
+
**request:** `phenoml.fhir.FhirUpsertRequest`
|
|
1629
|
+
|
|
1630
|
+
</dd>
|
|
1631
|
+
</dl>
|
|
1632
|
+
|
|
1633
|
+
<dl>
|
|
1634
|
+
<dd>
|
|
1635
|
+
|
|
1636
|
+
**requestOptions:** `Fhir.RequestOptions`
|
|
1637
|
+
|
|
1638
|
+
</dd>
|
|
1639
|
+
</dl>
|
|
1640
|
+
</dd>
|
|
1641
|
+
</dl>
|
|
1642
|
+
|
|
1643
|
+
</dd>
|
|
1644
|
+
</dl>
|
|
1645
|
+
</details>
|
|
1646
|
+
|
|
1647
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">delete</a>(fhirProviderId, fhirPath, { ...params }) -> Record<string, unknown></code></summary>
|
|
1648
|
+
<dl>
|
|
1649
|
+
<dd>
|
|
1650
|
+
|
|
1651
|
+
#### 📝 Description
|
|
1652
|
+
|
|
1653
|
+
<dl>
|
|
1654
|
+
<dd>
|
|
1655
|
+
|
|
1656
|
+
<dl>
|
|
1657
|
+
<dd>
|
|
1658
|
+
|
|
1659
|
+
Deletes a FHIR resource from the specified provider.
|
|
1660
|
+
|
|
1661
|
+
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
1662
|
+
|
|
1663
|
+
</dd>
|
|
1664
|
+
</dl>
|
|
1665
|
+
</dd>
|
|
1666
|
+
</dl>
|
|
1667
|
+
|
|
1668
|
+
#### 🔌 Usage
|
|
1669
|
+
|
|
1670
|
+
<dl>
|
|
1671
|
+
<dd>
|
|
1672
|
+
|
|
1673
|
+
<dl>
|
|
1674
|
+
<dd>
|
|
1675
|
+
|
|
1676
|
+
```typescript
|
|
1677
|
+
await client.fhir.delete("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
1678
|
+
"X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
1679
|
+
});
|
|
1680
|
+
```
|
|
1681
|
+
|
|
1682
|
+
</dd>
|
|
1683
|
+
</dl>
|
|
1684
|
+
</dd>
|
|
1685
|
+
</dl>
|
|
1686
|
+
|
|
1687
|
+
#### ⚙️ Parameters
|
|
1688
|
+
|
|
1689
|
+
<dl>
|
|
1690
|
+
<dd>
|
|
1691
|
+
|
|
1692
|
+
<dl>
|
|
1693
|
+
<dd>
|
|
1694
|
+
|
|
1695
|
+
**fhirProviderId:** `string`
|
|
1696
|
+
|
|
1697
|
+
The ID of the FHIR provider to use. Can be either:
|
|
1698
|
+
|
|
1699
|
+
- A UUID representing the provider ID
|
|
1700
|
+
- A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
1701
|
+
|
|
1702
|
+
</dd>
|
|
1703
|
+
</dl>
|
|
1704
|
+
|
|
1705
|
+
<dl>
|
|
1706
|
+
<dd>
|
|
1707
|
+
|
|
1708
|
+
**fhirPath:** `string`
|
|
1709
|
+
|
|
1710
|
+
The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
1711
|
+
Examples:
|
|
1712
|
+
|
|
1713
|
+
- "Patient" (for resource type operations)
|
|
1714
|
+
- "Patient/123" (for specific resource operations)
|
|
1715
|
+
- "Patient/123/\_history" (for history operations)
|
|
1716
|
+
|
|
1717
|
+
</dd>
|
|
1718
|
+
</dl>
|
|
1719
|
+
|
|
1720
|
+
<dl>
|
|
1721
|
+
<dd>
|
|
1722
|
+
|
|
1723
|
+
**request:** `phenoml.fhir.FhirDeleteRequest`
|
|
1724
|
+
|
|
1725
|
+
</dd>
|
|
1726
|
+
</dl>
|
|
1727
|
+
|
|
1728
|
+
<dl>
|
|
1729
|
+
<dd>
|
|
1730
|
+
|
|
1731
|
+
**requestOptions:** `Fhir.RequestOptions`
|
|
1732
|
+
|
|
1733
|
+
</dd>
|
|
1734
|
+
</dl>
|
|
1735
|
+
</dd>
|
|
1736
|
+
</dl>
|
|
1737
|
+
|
|
1738
|
+
</dd>
|
|
1739
|
+
</dl>
|
|
1740
|
+
</details>
|
|
1741
|
+
|
|
1742
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">patch</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirResource</code></summary>
|
|
1743
|
+
<dl>
|
|
1744
|
+
<dd>
|
|
1745
|
+
|
|
1746
|
+
#### 📝 Description
|
|
1747
|
+
|
|
1748
|
+
<dl>
|
|
1749
|
+
<dd>
|
|
1750
|
+
|
|
1751
|
+
<dl>
|
|
1752
|
+
<dd>
|
|
1753
|
+
|
|
1754
|
+
Partially updates a FHIR resource on the specified provider using JSON Patch operations as defined in RFC 6902.
|
|
1755
|
+
|
|
1756
|
+
The request body should contain an array of JSON Patch operations. Each operation specifies:
|
|
1757
|
+
|
|
1758
|
+
- `op`: The operation type (add, remove, replace, move, copy, test)
|
|
1759
|
+
- `path`: JSON Pointer to the target location in the resource
|
|
1760
|
+
- `value`: The value to use (required for add, replace, and test operations)
|
|
1761
|
+
|
|
1762
|
+
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
1763
|
+
|
|
1764
|
+
</dd>
|
|
1765
|
+
</dl>
|
|
1766
|
+
</dd>
|
|
1767
|
+
</dl>
|
|
1768
|
+
|
|
1769
|
+
#### 🔌 Usage
|
|
1770
|
+
|
|
1771
|
+
<dl>
|
|
1772
|
+
<dd>
|
|
1773
|
+
|
|
1774
|
+
<dl>
|
|
1775
|
+
<dd>
|
|
1776
|
+
|
|
1777
|
+
```typescript
|
|
1778
|
+
await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
1779
|
+
"X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
1780
|
+
body: [
|
|
1781
|
+
{
|
|
1782
|
+
op: "replace",
|
|
1783
|
+
path: "/name/0/family",
|
|
1784
|
+
value: "NewFamilyName",
|
|
1785
|
+
},
|
|
1786
|
+
],
|
|
1787
|
+
});
|
|
1788
|
+
```
|
|
1789
|
+
|
|
1790
|
+
</dd>
|
|
1791
|
+
</dl>
|
|
1792
|
+
</dd>
|
|
1793
|
+
</dl>
|
|
1794
|
+
|
|
1795
|
+
#### ⚙️ Parameters
|
|
1796
|
+
|
|
1797
|
+
<dl>
|
|
1798
|
+
<dd>
|
|
1799
|
+
|
|
1800
|
+
<dl>
|
|
1801
|
+
<dd>
|
|
1802
|
+
|
|
1803
|
+
**fhirProviderId:** `string`
|
|
1804
|
+
|
|
1805
|
+
The ID of the FHIR provider to use. Can be either:
|
|
1806
|
+
|
|
1807
|
+
- A UUID representing the provider ID
|
|
1808
|
+
- A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
1809
|
+
|
|
1810
|
+
</dd>
|
|
1811
|
+
</dl>
|
|
1812
|
+
|
|
1813
|
+
<dl>
|
|
1814
|
+
<dd>
|
|
1815
|
+
|
|
1816
|
+
**fhirPath:** `string`
|
|
1817
|
+
|
|
1818
|
+
The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
|
|
1819
|
+
Examples:
|
|
1820
|
+
|
|
1821
|
+
- "Patient" (for resource type operations)
|
|
1822
|
+
- "Patient/123" (for specific resource operations)
|
|
1823
|
+
- "Patient/123/\_history" (for history operations)
|
|
1824
|
+
|
|
1825
|
+
</dd>
|
|
1826
|
+
</dl>
|
|
1827
|
+
|
|
1828
|
+
<dl>
|
|
1829
|
+
<dd>
|
|
1830
|
+
|
|
1831
|
+
**request:** `phenoml.fhir.FhirPatchRequest`
|
|
1832
|
+
|
|
1833
|
+
</dd>
|
|
1834
|
+
</dl>
|
|
1835
|
+
|
|
1836
|
+
<dl>
|
|
1837
|
+
<dd>
|
|
1838
|
+
|
|
1839
|
+
**requestOptions:** `Fhir.RequestOptions`
|
|
1840
|
+
|
|
1841
|
+
</dd>
|
|
1842
|
+
</dl>
|
|
1843
|
+
</dd>
|
|
1844
|
+
</dl>
|
|
1845
|
+
|
|
1846
|
+
</dd>
|
|
1847
|
+
</dl>
|
|
1848
|
+
</details>
|
|
1849
|
+
|
|
1850
|
+
<details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">executeBundle</a>(fhirProviderId, { ...params }) -> phenoml.FhirBundle</code></summary>
|
|
1851
|
+
<dl>
|
|
1852
|
+
<dd>
|
|
1853
|
+
|
|
1854
|
+
#### 📝 Description
|
|
1855
|
+
|
|
1856
|
+
<dl>
|
|
1857
|
+
<dd>
|
|
1858
|
+
|
|
1859
|
+
<dl>
|
|
1860
|
+
<dd>
|
|
1861
|
+
|
|
1862
|
+
Executes a FHIR Bundle transaction or batch operation on the specified provider. This allows multiple FHIR resources to be processed in a single request.
|
|
1863
|
+
|
|
1864
|
+
The request body should contain a valid FHIR Bundle resource with transaction or batch type.
|
|
1865
|
+
|
|
1866
|
+
The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
1867
|
+
|
|
1868
|
+
</dd>
|
|
1869
|
+
</dl>
|
|
1870
|
+
</dd>
|
|
1871
|
+
</dl>
|
|
1872
|
+
|
|
1873
|
+
#### 🔌 Usage
|
|
1874
|
+
|
|
1875
|
+
<dl>
|
|
1876
|
+
<dd>
|
|
1877
|
+
|
|
1878
|
+
<dl>
|
|
1879
|
+
<dd>
|
|
1880
|
+
|
|
1881
|
+
```typescript
|
|
1882
|
+
await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
|
|
1883
|
+
"X-Phenoml-On-Behalf-Of": "user@example.com",
|
|
1884
|
+
body: {
|
|
1885
|
+
resourceType: "Bundle",
|
|
1886
|
+
entry: [
|
|
1887
|
+
{
|
|
1888
|
+
resource: {
|
|
1889
|
+
resourceType: "Patient",
|
|
1890
|
+
name: [
|
|
1891
|
+
{
|
|
1892
|
+
family: "Doe",
|
|
1893
|
+
given: ["John"],
|
|
1894
|
+
},
|
|
1895
|
+
],
|
|
1896
|
+
},
|
|
1897
|
+
request: {
|
|
1898
|
+
method: "POST",
|
|
1899
|
+
url: "Patient",
|
|
1900
|
+
},
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
resource: {
|
|
1904
|
+
resourceType: "Observation",
|
|
1905
|
+
status: "final",
|
|
1906
|
+
subject: {
|
|
1907
|
+
reference: "Patient/123",
|
|
1908
|
+
},
|
|
1909
|
+
},
|
|
1910
|
+
request: {
|
|
1911
|
+
method: "POST",
|
|
1912
|
+
url: "Observation",
|
|
1913
|
+
},
|
|
1914
|
+
},
|
|
1915
|
+
],
|
|
1916
|
+
},
|
|
1917
|
+
});
|
|
1918
|
+
```
|
|
1919
|
+
|
|
1920
|
+
</dd>
|
|
1921
|
+
</dl>
|
|
1922
|
+
</dd>
|
|
1923
|
+
</dl>
|
|
1924
|
+
|
|
1925
|
+
#### ⚙️ Parameters
|
|
1926
|
+
|
|
1927
|
+
<dl>
|
|
1928
|
+
<dd>
|
|
1929
|
+
|
|
1930
|
+
<dl>
|
|
1931
|
+
<dd>
|
|
1932
|
+
|
|
1933
|
+
**fhirProviderId:** `string`
|
|
1934
|
+
|
|
1935
|
+
The ID of the FHIR provider to use. Can be either:
|
|
1936
|
+
|
|
1937
|
+
- A UUID representing the provider ID
|
|
1938
|
+
- A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
1939
|
+
|
|
1940
|
+
</dd>
|
|
1941
|
+
</dl>
|
|
1942
|
+
|
|
1943
|
+
<dl>
|
|
1944
|
+
<dd>
|
|
1945
|
+
|
|
1946
|
+
**request:** `phenoml.fhir.FhirExecuteBundleRequest`
|
|
1947
|
+
|
|
1948
|
+
</dd>
|
|
1949
|
+
</dl>
|
|
1950
|
+
|
|
1951
|
+
<dl>
|
|
1952
|
+
<dd>
|
|
1953
|
+
|
|
1954
|
+
**requestOptions:** `Fhir.RequestOptions`
|
|
1955
|
+
|
|
1956
|
+
</dd>
|
|
1957
|
+
</dl>
|
|
1958
|
+
</dd>
|
|
1959
|
+
</dl>
|
|
1960
|
+
|
|
1961
|
+
</dd>
|
|
1962
|
+
</dl>
|
|
1963
|
+
</details>
|
|
1964
|
+
|
|
1965
|
+
## FhirProvider
|
|
1966
|
+
|
|
1967
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">create</a>({ ...params }) -> phenoml.FhirProviderResponse</code></summary>
|
|
1968
|
+
<dl>
|
|
1969
|
+
<dd>
|
|
1970
|
+
|
|
1971
|
+
#### 📝 Description
|
|
1972
|
+
|
|
1973
|
+
<dl>
|
|
1974
|
+
<dd>
|
|
1975
|
+
|
|
1976
|
+
<dl>
|
|
1977
|
+
<dd>
|
|
1978
|
+
|
|
1979
|
+
Creates a new FHIR provider configuration with authentication credentials
|
|
1980
|
+
|
|
1981
|
+
</dd>
|
|
1982
|
+
</dl>
|
|
1983
|
+
</dd>
|
|
1984
|
+
</dl>
|
|
1985
|
+
|
|
1986
|
+
#### 🔌 Usage
|
|
1987
|
+
|
|
1988
|
+
<dl>
|
|
1989
|
+
<dd>
|
|
1990
|
+
|
|
1991
|
+
<dl>
|
|
1992
|
+
<dd>
|
|
1993
|
+
|
|
1994
|
+
```typescript
|
|
1995
|
+
await client.fhirProvider.create({
|
|
1996
|
+
name: "Epic Sandbox",
|
|
1997
|
+
provider: "athenahealth",
|
|
1998
|
+
auth_method: "client_secret",
|
|
1999
|
+
base_url: "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
|
|
2000
|
+
});
|
|
2001
|
+
```
|
|
2002
|
+
|
|
2003
|
+
</dd>
|
|
2004
|
+
</dl>
|
|
2005
|
+
</dd>
|
|
2006
|
+
</dl>
|
|
2007
|
+
|
|
2008
|
+
#### ⚙️ Parameters
|
|
2009
|
+
|
|
2010
|
+
<dl>
|
|
2011
|
+
<dd>
|
|
2012
|
+
|
|
2013
|
+
<dl>
|
|
2014
|
+
<dd>
|
|
2015
|
+
|
|
2016
|
+
**request:** `phenoml.fhirProvider.FhirProviderCreateRequest`
|
|
2017
|
+
|
|
2018
|
+
</dd>
|
|
2019
|
+
</dl>
|
|
2020
|
+
|
|
2021
|
+
<dl>
|
|
2022
|
+
<dd>
|
|
2023
|
+
|
|
2024
|
+
**requestOptions:** `FhirProvider.RequestOptions`
|
|
2025
|
+
|
|
2026
|
+
</dd>
|
|
2027
|
+
</dl>
|
|
2028
|
+
</dd>
|
|
2029
|
+
</dl>
|
|
2030
|
+
|
|
2031
|
+
</dd>
|
|
2032
|
+
</dl>
|
|
2033
|
+
</details>
|
|
2034
|
+
|
|
2035
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">list</a>() -> phenoml.FhirProviderListResponse</code></summary>
|
|
2036
|
+
<dl>
|
|
2037
|
+
<dd>
|
|
2038
|
+
|
|
2039
|
+
#### 📝 Description
|
|
2040
|
+
|
|
2041
|
+
<dl>
|
|
2042
|
+
<dd>
|
|
2043
|
+
|
|
2044
|
+
<dl>
|
|
2045
|
+
<dd>
|
|
2046
|
+
|
|
2047
|
+
Retrieves a list of all active FHIR providers for the authenticated user
|
|
2048
|
+
|
|
2049
|
+
</dd>
|
|
2050
|
+
</dl>
|
|
2051
|
+
</dd>
|
|
2052
|
+
</dl>
|
|
2053
|
+
|
|
2054
|
+
#### 🔌 Usage
|
|
2055
|
+
|
|
2056
|
+
<dl>
|
|
2057
|
+
<dd>
|
|
2058
|
+
|
|
2059
|
+
<dl>
|
|
2060
|
+
<dd>
|
|
2061
|
+
|
|
2062
|
+
```typescript
|
|
2063
|
+
await client.fhirProvider.list();
|
|
2064
|
+
```
|
|
2065
|
+
|
|
2066
|
+
</dd>
|
|
2067
|
+
</dl>
|
|
2068
|
+
</dd>
|
|
2069
|
+
</dl>
|
|
2070
|
+
|
|
2071
|
+
#### ⚙️ Parameters
|
|
2072
|
+
|
|
2073
|
+
<dl>
|
|
2074
|
+
<dd>
|
|
2075
|
+
|
|
2076
|
+
<dl>
|
|
2077
|
+
<dd>
|
|
2078
|
+
|
|
2079
|
+
**requestOptions:** `FhirProvider.RequestOptions`
|
|
2080
|
+
|
|
2081
|
+
</dd>
|
|
2082
|
+
</dl>
|
|
2083
|
+
</dd>
|
|
2084
|
+
</dl>
|
|
2085
|
+
|
|
2086
|
+
</dd>
|
|
2087
|
+
</dl>
|
|
2088
|
+
</details>
|
|
2089
|
+
|
|
2090
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">get</a>(fhirProviderId) -> phenoml.FhirProviderResponse</code></summary>
|
|
2091
|
+
<dl>
|
|
2092
|
+
<dd>
|
|
2093
|
+
|
|
2094
|
+
#### 📝 Description
|
|
2095
|
+
|
|
2096
|
+
<dl>
|
|
2097
|
+
<dd>
|
|
2098
|
+
|
|
2099
|
+
<dl>
|
|
2100
|
+
<dd>
|
|
2101
|
+
|
|
2102
|
+
Retrieves a specific FHIR provider configuration by its ID
|
|
2103
|
+
|
|
2104
|
+
</dd>
|
|
2105
|
+
</dl>
|
|
2106
|
+
</dd>
|
|
2107
|
+
</dl>
|
|
2108
|
+
|
|
2109
|
+
#### 🔌 Usage
|
|
2110
|
+
|
|
2111
|
+
<dl>
|
|
2112
|
+
<dd>
|
|
2113
|
+
|
|
2114
|
+
<dl>
|
|
2115
|
+
<dd>
|
|
2116
|
+
|
|
2117
|
+
```typescript
|
|
2118
|
+
await client.fhirProvider.get("fhir_provider_id");
|
|
2119
|
+
```
|
|
2120
|
+
|
|
2121
|
+
</dd>
|
|
2122
|
+
</dl>
|
|
2123
|
+
</dd>
|
|
2124
|
+
</dl>
|
|
2125
|
+
|
|
2126
|
+
#### ⚙️ Parameters
|
|
2127
|
+
|
|
2128
|
+
<dl>
|
|
2129
|
+
<dd>
|
|
2130
|
+
|
|
2131
|
+
<dl>
|
|
2132
|
+
<dd>
|
|
2133
|
+
|
|
2134
|
+
**fhirProviderId:** `string` — ID of the FHIR provider to retrieve
|
|
2135
|
+
|
|
2136
|
+
</dd>
|
|
2137
|
+
</dl>
|
|
2138
|
+
|
|
2139
|
+
<dl>
|
|
2140
|
+
<dd>
|
|
2141
|
+
|
|
2142
|
+
**requestOptions:** `FhirProvider.RequestOptions`
|
|
2143
|
+
|
|
2144
|
+
</dd>
|
|
2145
|
+
</dl>
|
|
2146
|
+
</dd>
|
|
2147
|
+
</dl>
|
|
2148
|
+
|
|
2149
|
+
</dd>
|
|
2150
|
+
</dl>
|
|
2151
|
+
</details>
|
|
2152
|
+
|
|
2153
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">delete</a>(fhirProviderId) -> phenoml.FhirProviderDeleteResponse</code></summary>
|
|
2154
|
+
<dl>
|
|
2155
|
+
<dd>
|
|
2156
|
+
|
|
2157
|
+
#### 📝 Description
|
|
2158
|
+
|
|
2159
|
+
<dl>
|
|
2160
|
+
<dd>
|
|
2161
|
+
|
|
2162
|
+
<dl>
|
|
2163
|
+
<dd>
|
|
2164
|
+
|
|
2165
|
+
Soft deletes a FHIR provider by setting is_active to false
|
|
2166
|
+
|
|
2167
|
+
</dd>
|
|
2168
|
+
</dl>
|
|
2169
|
+
</dd>
|
|
2170
|
+
</dl>
|
|
2171
|
+
|
|
2172
|
+
#### 🔌 Usage
|
|
2173
|
+
|
|
2174
|
+
<dl>
|
|
2175
|
+
<dd>
|
|
2176
|
+
|
|
2177
|
+
<dl>
|
|
2178
|
+
<dd>
|
|
2179
|
+
|
|
2180
|
+
```typescript
|
|
2181
|
+
await client.fhirProvider.delete("fhir_provider_id");
|
|
2182
|
+
```
|
|
2183
|
+
|
|
2184
|
+
</dd>
|
|
2185
|
+
</dl>
|
|
2186
|
+
</dd>
|
|
2187
|
+
</dl>
|
|
2188
|
+
|
|
2189
|
+
#### ⚙️ Parameters
|
|
2190
|
+
|
|
2191
|
+
<dl>
|
|
2192
|
+
<dd>
|
|
2193
|
+
|
|
2194
|
+
<dl>
|
|
2195
|
+
<dd>
|
|
2196
|
+
|
|
2197
|
+
**fhirProviderId:** `string` — ID of the FHIR provider to delete
|
|
2198
|
+
|
|
2199
|
+
</dd>
|
|
2200
|
+
</dl>
|
|
2201
|
+
|
|
2202
|
+
<dl>
|
|
2203
|
+
<dd>
|
|
2204
|
+
|
|
2205
|
+
**requestOptions:** `FhirProvider.RequestOptions`
|
|
2206
|
+
|
|
2207
|
+
</dd>
|
|
2208
|
+
</dl>
|
|
2209
|
+
</dd>
|
|
2210
|
+
</dl>
|
|
2211
|
+
|
|
2212
|
+
</dd>
|
|
2213
|
+
</dl>
|
|
2214
|
+
</details>
|
|
2215
|
+
|
|
2216
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">addAuthConfig</a>(fhirProviderId, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
|
|
2217
|
+
<dl>
|
|
2218
|
+
<dd>
|
|
2219
|
+
|
|
2220
|
+
#### 📝 Description
|
|
2221
|
+
|
|
2222
|
+
<dl>
|
|
2223
|
+
<dd>
|
|
2224
|
+
|
|
2225
|
+
<dl>
|
|
2226
|
+
<dd>
|
|
2227
|
+
|
|
2228
|
+
Adds a new authentication configuration to an existing FHIR provider. This enables key rotation and multiple auth configurations per provider.
|
|
2229
|
+
|
|
2230
|
+
</dd>
|
|
2231
|
+
</dl>
|
|
2232
|
+
</dd>
|
|
2233
|
+
</dl>
|
|
2234
|
+
|
|
2235
|
+
#### 🔌 Usage
|
|
2236
|
+
|
|
2237
|
+
<dl>
|
|
2238
|
+
<dd>
|
|
2239
|
+
|
|
2240
|
+
<dl>
|
|
2241
|
+
<dd>
|
|
2242
|
+
|
|
2243
|
+
```typescript
|
|
2244
|
+
await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
2245
|
+
auth_method: "client_secret",
|
|
2246
|
+
});
|
|
2247
|
+
```
|
|
2248
|
+
|
|
2249
|
+
</dd>
|
|
2250
|
+
</dl>
|
|
2251
|
+
</dd>
|
|
2252
|
+
</dl>
|
|
2253
|
+
|
|
2254
|
+
#### ⚙️ Parameters
|
|
2255
|
+
|
|
2256
|
+
<dl>
|
|
2257
|
+
<dd>
|
|
2258
|
+
|
|
2259
|
+
<dl>
|
|
2260
|
+
<dd>
|
|
2261
|
+
|
|
2262
|
+
**fhirProviderId:** `string` — ID of the FHIR provider to add auth config to
|
|
2263
|
+
|
|
2264
|
+
</dd>
|
|
2265
|
+
</dl>
|
|
2266
|
+
|
|
2267
|
+
<dl>
|
|
2268
|
+
<dd>
|
|
2269
|
+
|
|
2270
|
+
**request:** `phenoml.fhirProvider.FhirProviderAddAuthConfigRequest`
|
|
2271
|
+
|
|
2272
|
+
</dd>
|
|
2273
|
+
</dl>
|
|
2274
|
+
|
|
2275
|
+
<dl>
|
|
2276
|
+
<dd>
|
|
2277
|
+
|
|
2278
|
+
**requestOptions:** `FhirProvider.RequestOptions`
|
|
2279
|
+
|
|
2280
|
+
</dd>
|
|
2281
|
+
</dl>
|
|
2282
|
+
</dd>
|
|
2283
|
+
</dl>
|
|
2284
|
+
|
|
2285
|
+
</dd>
|
|
2286
|
+
</dl>
|
|
2287
|
+
</details>
|
|
2288
|
+
|
|
2289
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">setActiveAuthConfig</a>(fhirProviderId, { ...params }) -> phenoml.FhirProviderSetActiveAuthConfigResponse</code></summary>
|
|
2290
|
+
<dl>
|
|
2291
|
+
<dd>
|
|
2292
|
+
|
|
2293
|
+
#### 📝 Description
|
|
2294
|
+
|
|
2295
|
+
<dl>
|
|
2296
|
+
<dd>
|
|
2297
|
+
|
|
2298
|
+
<dl>
|
|
2299
|
+
<dd>
|
|
2300
|
+
|
|
2301
|
+
Sets which authentication configuration should be active for a FHIR provider. Only one auth config can be active at a time.
|
|
2302
|
+
|
|
2303
|
+
</dd>
|
|
2304
|
+
</dl>
|
|
2305
|
+
</dd>
|
|
2306
|
+
</dl>
|
|
2307
|
+
|
|
2308
|
+
#### 🔌 Usage
|
|
2309
|
+
|
|
2310
|
+
<dl>
|
|
2311
|
+
<dd>
|
|
2312
|
+
|
|
2313
|
+
<dl>
|
|
2314
|
+
<dd>
|
|
2315
|
+
|
|
2316
|
+
```typescript
|
|
2317
|
+
await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
2318
|
+
auth_config_id: "auth-config-123",
|
|
2319
|
+
});
|
|
2320
|
+
```
|
|
2321
|
+
|
|
2322
|
+
</dd>
|
|
2323
|
+
</dl>
|
|
2324
|
+
</dd>
|
|
2325
|
+
</dl>
|
|
2326
|
+
|
|
2327
|
+
#### ⚙️ Parameters
|
|
2328
|
+
|
|
2329
|
+
<dl>
|
|
2330
|
+
<dd>
|
|
2331
|
+
|
|
2332
|
+
<dl>
|
|
2333
|
+
<dd>
|
|
2334
|
+
|
|
2335
|
+
**fhirProviderId:** `string` — ID of the FHIR provider
|
|
2336
|
+
|
|
2337
|
+
</dd>
|
|
2338
|
+
</dl>
|
|
2339
|
+
|
|
2340
|
+
<dl>
|
|
2341
|
+
<dd>
|
|
2342
|
+
|
|
2343
|
+
**request:** `phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest`
|
|
2344
|
+
|
|
2345
|
+
</dd>
|
|
2346
|
+
</dl>
|
|
2347
|
+
|
|
2348
|
+
<dl>
|
|
2349
|
+
<dd>
|
|
2350
|
+
|
|
2351
|
+
**requestOptions:** `FhirProvider.RequestOptions`
|
|
2352
|
+
|
|
2353
|
+
</dd>
|
|
2354
|
+
</dl>
|
|
2355
|
+
</dd>
|
|
2356
|
+
</dl>
|
|
2357
|
+
|
|
2358
|
+
</dd>
|
|
2359
|
+
</dl>
|
|
2360
|
+
</details>
|
|
2361
|
+
|
|
2362
|
+
<details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">removeAuthConfig</a>(fhirProviderId, { ...params }) -> phenoml.FhirProviderRemoveAuthConfigResponse</code></summary>
|
|
2363
|
+
<dl>
|
|
2364
|
+
<dd>
|
|
2365
|
+
|
|
2366
|
+
#### 📝 Description
|
|
2367
|
+
|
|
2368
|
+
<dl>
|
|
2369
|
+
<dd>
|
|
2370
|
+
|
|
2371
|
+
<dl>
|
|
2372
|
+
<dd>
|
|
2373
|
+
|
|
2374
|
+
Removes an authentication configuration from a FHIR provider. Cannot remove the currently active auth configuration.
|
|
2375
|
+
|
|
2376
|
+
</dd>
|
|
2377
|
+
</dl>
|
|
2378
|
+
</dd>
|
|
2379
|
+
</dl>
|
|
2380
|
+
|
|
2381
|
+
#### 🔌 Usage
|
|
2382
|
+
|
|
2383
|
+
<dl>
|
|
2384
|
+
<dd>
|
|
2385
|
+
|
|
2386
|
+
<dl>
|
|
2387
|
+
<dd>
|
|
2388
|
+
|
|
2389
|
+
```typescript
|
|
2390
|
+
await client.fhirProvider.removeAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
|
|
2391
|
+
auth_config_id: "auth-config-123",
|
|
2392
|
+
});
|
|
2393
|
+
```
|
|
2394
|
+
|
|
2395
|
+
</dd>
|
|
2396
|
+
</dl>
|
|
2397
|
+
</dd>
|
|
2398
|
+
</dl>
|
|
2399
|
+
|
|
2400
|
+
#### ⚙️ Parameters
|
|
2401
|
+
|
|
2402
|
+
<dl>
|
|
2403
|
+
<dd>
|
|
2404
|
+
|
|
2405
|
+
<dl>
|
|
2406
|
+
<dd>
|
|
2407
|
+
|
|
2408
|
+
**fhirProviderId:** `string` — ID of the FHIR provider
|
|
2409
|
+
|
|
2410
|
+
</dd>
|
|
2411
|
+
</dl>
|
|
2412
|
+
|
|
2413
|
+
<dl>
|
|
2414
|
+
<dd>
|
|
2415
|
+
|
|
2416
|
+
**request:** `phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest`
|
|
2417
|
+
|
|
2418
|
+
</dd>
|
|
2419
|
+
</dl>
|
|
2420
|
+
|
|
2421
|
+
<dl>
|
|
2422
|
+
<dd>
|
|
2423
|
+
|
|
2424
|
+
**requestOptions:** `FhirProvider.RequestOptions`
|
|
2425
|
+
|
|
2426
|
+
</dd>
|
|
2427
|
+
</dl>
|
|
2428
|
+
</dd>
|
|
2429
|
+
</dl>
|
|
2430
|
+
|
|
2431
|
+
</dd>
|
|
2432
|
+
</dl>
|
|
2433
|
+
</details>
|
|
2434
|
+
|
|
1349
2435
|
## Lang2Fhir
|
|
1350
2436
|
|
|
1351
2437
|
<details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">create</a>({ ...params }) -> phenoml.FhirResource</code></summary>
|
|
@@ -1778,7 +2864,7 @@ Uses LLM to extract search concepts from natural language and builds patient coh
|
|
|
1778
2864
|
```typescript
|
|
1779
2865
|
await client.tools.analyzeCohort({
|
|
1780
2866
|
text: "female patients over 20 with diabetes but not hypertension",
|
|
1781
|
-
provider: "
|
|
2867
|
+
provider: "550e8400-e29b-41d4-a716-446655440000",
|
|
1782
2868
|
});
|
|
1783
2869
|
```
|
|
1784
2870
|
|