phenoml 16.0.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -59
- package/dist/cjs/api/resources/agent/client/Client.js +7 -232
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadGatewayError.js → agent/errors/GatewayTimeoutError.js} +5 -5
- package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/errors/index.js +1 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +305 -0
- package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.d.ts → resources/chat/client/requests/ListMessagesRequest.d.ts} +4 -4
- package/dist/cjs/api/resources/agent/resources/chat/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/chat/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.js +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/index.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/index.js +1 -1
- package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.ts +5 -0
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestOrder.js → resources/chat/types/ListMessagesRequestOrder.js} +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.ts +7 -0
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
- package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.d.ts → resources/chat/types/ListMessagesResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/agent/resources/chat/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/chat/types/index.js +19 -0
- package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/agent/resources/index.js +4 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/agent/types/index.js +0 -3
- package/dist/cjs/api/resources/construe/client/Client.d.ts +6 -330
- package/dist/cjs/api/resources/construe/client/Client.js +8 -838
- package/dist/cjs/api/resources/construe/client/requests/index.d.ts +0 -9
- package/dist/cjs/api/resources/construe/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/construe/exports.d.ts +1 -0
- package/dist/cjs/api/resources/construe/exports.js +1 -0
- package/dist/cjs/api/resources/construe/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/index.js +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.d.ts +135 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +433 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.js +17 -0
- package/dist/{esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.d.ts → resources/codeSystems/client/requests/FindRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.ts +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.js +5 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.js +2 -3
- package/dist/cjs/api/resources/construe/resources/codeSystems/index.d.ts +2 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/index.js +18 -0
- package/dist/{esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts → cjs/api/resources/construe/resources/codeSystems/types/UploadResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.js +17 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +227 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +528 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/construe/resources/codes/client/index.js +17 -0
- package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.d.ts → resources/codes/client/requests/CodesListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.ts +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetCodeRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/construe/resources/codes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/construe/resources/codes/exports.js +21 -0
- package/dist/cjs/api/resources/construe/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/construe/resources/index.js +44 -0
- package/dist/cjs/api/resources/construe/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/construe/types/index.js +0 -1
- package/dist/cjs/api/resources/fhir/client/Client.d.ts +50 -75
- package/dist/cjs/api/resources/fhir/client/Client.js +75 -205
- package/dist/cjs/api/resources/fhir/client/requests/CreateRequest.d.ts +2 -3
- package/dist/cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts +19 -16
- package/dist/cjs/api/resources/fhir/client/requests/SearchRequest.d.ts +0 -8
- package/dist/cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts +3 -4
- package/dist/cjs/api/resources/fhir/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhir/index.js +0 -1
- package/dist/cjs/api/resources/fhir/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/fhir/types/index.js +0 -4
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -74
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +5 -221
- package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/fhirProvider/exports.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/exports.js +1 -0
- package/dist/cjs/api/resources/fhirProvider/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/index.js +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +280 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.js +21 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.d.ts +2 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.js +18 -0
- package/dist/cjs/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.ts → resources/authConfig/types/RemoveResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.js +17 -0
- package/dist/cjs/api/resources/fhirProvider/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → fhirProvider}/resources/index.js +7 -2
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.js +0 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +11 -1
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +33 -3
- package/dist/cjs/api/resources/{fhir/errors/ServiceUnavailableError.d.ts → lang2Fhir/errors/ClientClosedRequestError.d.ts} +1 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +54 -0
- package/dist/cjs/api/resources/{fhir/errors/UnauthorizedError.d.ts → lang2Fhir/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.js → lang2Fhir/errors/GatewayTimeoutError.js} +5 -5
- package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +3 -1
- package/dist/cjs/api/resources/lang2Fhir/errors/index.js +3 -1
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +7 -4
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +6 -12
- package/dist/{esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts → cjs/api/resources/summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.ts → GetResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.ts → ListResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -4
- package/dist/cjs/api/resources/summary/resources/templates/types/index.js +4 -4
- package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/tools/client/Client.js +8 -12
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.d.ts → tools/errors/NotFoundError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.js → tools/errors/NotFoundError.js} +5 -5
- package/dist/cjs/api/resources/tools/errors/index.d.ts +1 -1
- package/dist/cjs/api/resources/tools/errors/index.js +1 -1
- package/dist/cjs/api/resources/tools/resources/index.d.ts +3 -2
- package/dist/cjs/api/resources/tools/resources/index.js +4 -3
- package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.ts +21 -19
- package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.js +20 -16
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/exports.js +21 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpServers/index.js +17 -0
- package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.ts +19 -17
- package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.js +22 -16
- package/dist/cjs/api/resources/tools/resources/mcpTools/client/index.js +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/exports.d.ts +2 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/exports.js +21 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/index.d.ts +1 -0
- package/dist/cjs/api/resources/tools/resources/mcpTools/index.js +17 -0
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/workflows/client/Client.js +9 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +3 -59
- package/dist/esm/api/resources/agent/client/Client.mjs +6 -231
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/{fhir/errors/InternalServerError.d.mts → agent/errors/GatewayTimeoutError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/InternalServerError.mjs → agent/errors/GatewayTimeoutError.mjs} +3 -3
- package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +268 -0
- package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.d.mts → resources/chat/client/requests/ListMessagesRequest.d.mts} +4 -4
- package/dist/esm/api/resources/agent/resources/chat/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/chat/exports.d.mts +2 -0
- package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.mjs +1 -1
- package/dist/esm/api/resources/agent/resources/chat/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/chat/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.mts +5 -0
- package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestOrder.mjs → resources/chat/types/ListMessagesRequestOrder.mjs} +1 -1
- package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.mts +7 -0
- package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
- package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.d.mts → resources/chat/types/ListMessagesResponse.d.mts} +2 -2
- package/dist/esm/api/resources/agent/resources/chat/types/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/chat/types/index.mjs +3 -0
- package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
- package/dist/esm/api/resources/agent/types/index.d.mts +0 -3
- package/dist/esm/api/resources/agent/types/index.mjs +0 -3
- package/dist/esm/api/resources/construe/client/Client.d.mts +6 -330
- package/dist/esm/api/resources/construe/client/Client.mjs +8 -838
- package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -9
- package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/construe/exports.d.mts +1 -0
- package/dist/esm/api/resources/construe/exports.mjs +1 -0
- package/dist/esm/api/resources/construe/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.d.mts +135 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +396 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/index.mjs +1 -0
- package/dist/{cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.mts → resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.d.mts → resources/codeSystems/client/requests/FindRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.mts +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/exports.d.mts +2 -0
- package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.mjs +1 -2
- package/dist/esm/api/resources/construe/resources/codeSystems/index.d.mts +2 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/index.mjs +2 -0
- package/dist/{cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts → esm/api/resources/construe/resources/codeSystems/types/UploadResponse.d.mts} +1 -1
- package/dist/esm/api/resources/construe/resources/codeSystems/types/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codeSystems/types/index.mjs +1 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +227 -0
- package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +491 -0
- package/dist/esm/api/resources/construe/resources/codes/client/index.d.mts +1 -0
- package/dist/esm/api/resources/construe/resources/codes/client/index.mjs +1 -0
- package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.d.mts → resources/codes/client/requests/CodesListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.mts +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/construe/resources/codes/exports.d.mts +2 -0
- package/dist/esm/api/resources/construe/resources/codes/exports.mjs +3 -0
- package/dist/esm/api/resources/construe/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/construe/resources/index.mjs +5 -0
- package/dist/esm/api/resources/construe/types/index.d.mts +0 -1
- package/dist/esm/api/resources/construe/types/index.mjs +0 -1
- package/dist/esm/api/resources/fhir/client/Client.d.mts +50 -75
- package/dist/esm/api/resources/fhir/client/Client.mjs +75 -205
- package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +2 -3
- package/dist/esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts +19 -16
- package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +0 -8
- package/dist/esm/api/resources/fhir/client/requests/UpsertRequest.d.mts +3 -4
- package/dist/esm/api/resources/fhir/index.d.mts +0 -1
- package/dist/esm/api/resources/fhir/index.mjs +0 -1
- package/dist/esm/api/resources/fhir/types/index.d.mts +0 -4
- package/dist/esm/api/resources/fhir/types/index.mjs +0 -4
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -74
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +5 -221
- package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/fhirProvider/exports.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/exports.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +243 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.d.mts +2 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.mjs +2 -0
- package/dist/esm/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.mts → resources/authConfig/types/RemoveResponse.d.mts} +2 -2
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.d.mts +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.mjs +1 -0
- package/dist/esm/api/resources/fhirProvider/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/fhirProvider/resources/index.mjs +3 -0
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +0 -1
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +0 -1
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +11 -1
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +33 -3
- package/dist/esm/api/resources/{fhir/errors/ServiceUnavailableError.d.mts → lang2Fhir/errors/ClientClosedRequestError.d.mts} +1 -1
- package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +17 -0
- package/dist/esm/api/resources/{fhir/errors/UnauthorizedError.d.mts → lang2Fhir/errors/GatewayTimeoutError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/BadGatewayError.mjs → lang2Fhir/errors/GatewayTimeoutError.mjs} +3 -3
- package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +3 -1
- package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +3 -1
- package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +7 -4
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +6 -12
- package/dist/{cjs/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.ts → esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.mts → GetResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.mts → ListResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
- package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -4
- package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -4
- package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
- package/dist/esm/api/resources/{fhir/errors/BadRequestError.d.mts → tools/errors/NotFoundError.d.mts} +1 -1
- package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs} +3 -3
- package/dist/esm/api/resources/tools/errors/index.d.mts +1 -1
- package/dist/esm/api/resources/tools/errors/index.mjs +1 -1
- package/dist/esm/api/resources/tools/resources/index.d.mts +3 -2
- package/dist/esm/api/resources/tools/resources/index.mjs +3 -2
- package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.mts +21 -19
- package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.mjs +18 -14
- package/dist/esm/api/resources/tools/resources/mcpServers/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/exports.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/exports.mjs +3 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpServers/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.mts +19 -17
- package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.mjs +20 -14
- package/dist/esm/api/resources/tools/resources/mcpTools/client/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/client/index.mjs +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/exports.d.mts +2 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/exports.mjs +3 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/index.d.mts +1 -0
- package/dist/esm/api/resources/tools/resources/mcpTools/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/workflows/client/Client.mjs +9 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +353 -660
- package/package.json +57 -13
- package/reference.md +235 -211
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +0 -5
- package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +0 -7
- package/dist/cjs/api/resources/fhir/errors/BadGatewayError.d.ts +0 -6
- package/dist/cjs/api/resources/fhir/errors/ServiceUnavailableError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.d.ts +0 -6
- package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +0 -54
- package/dist/cjs/api/resources/fhir/errors/index.d.ts +0 -7
- package/dist/cjs/api/resources/fhir/errors/index.js +0 -23
- package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -11
- package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +0 -54
- package/dist/cjs/api/resources/fhir/types/FhirBundle.js +0 -23
- package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -24
- package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +0 -2
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -5
- package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +0 -54
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesGetResponse.js +0 -3
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesListResponse.js +0 -3
- package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.js +0 -3
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -5
- package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +0 -54
- package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +0 -3
- package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +0 -2
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +0 -2
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +0 -5
- package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +0 -7
- package/dist/esm/api/resources/fhir/errors/BadGatewayError.d.mts +0 -6
- package/dist/esm/api/resources/fhir/errors/ServiceUnavailableError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.d.mts +0 -6
- package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -17
- package/dist/esm/api/resources/fhir/errors/index.d.mts +0 -7
- package/dist/esm/api/resources/fhir/errors/index.mjs +0 -7
- package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -11
- package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +0 -54
- package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +0 -20
- package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -24
- package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +0 -2
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -5
- package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -17
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.mjs +0 -2
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesListResponse.mjs +0 -2
- package/dist/esm/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.mjs +0 -2
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -5
- package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -17
- package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +0 -3
- package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +0 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +0 -2
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
- package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +0 -2
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.js +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.js +0 -0
- /package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExportCodeSystemRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/FindRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.js +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetCodeRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/SearchSemanticRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/SearchTextRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/construe/{types/UploadCodeSystemResponse.js → resources/codes/client/requests/SearchTextRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.js +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.js +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.js +0 -0
- /package/dist/cjs/api/resources/{fhir/types/ErrorResponse.js → fhirProvider/resources/authConfig/types/RemoveResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.ts +0 -0
- /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.js +0 -0
- /package/dist/cjs/api/resources/{fhir/types/FhirResource.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhir/types/SearchResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.js → UpdateResponse.js} +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.js +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.mts +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.mts +0 -0
- /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.mjs +0 -0
- /package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExportCodeSystemRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/FindRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.mjs +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetCodeRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/SearchSemanticRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.mts +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/SearchTextRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.mts +0 -0
- /package/dist/esm/api/resources/construe/{types/UploadCodeSystemResponse.mjs → resources/codes/client/requests/SearchTextRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.mjs +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.mjs +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -0
- /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/index.d.mts → fhirProvider/resources/authConfig/client/requests/index.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir/types/ErrorResponse.mjs → fhirProvider/resources/authConfig/types/RemoveResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.mts +0 -0
- /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.mjs +0 -0
- /package/dist/esm/api/resources/{fhir/types/FhirResource.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhir/types/SearchResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.mjs +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.mts +0 -0
|
@@ -47,17 +47,27 @@ exports.FhirClient = void 0;
|
|
|
47
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
48
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
49
|
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
-
const json_js_1 = require("../../../../core/json.js");
|
|
51
50
|
const environments = __importStar(require("../../../../environments.js"));
|
|
52
51
|
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
53
52
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
-
const phenoml = __importStar(require("../../../index.js"));
|
|
55
53
|
class FhirClient {
|
|
56
54
|
constructor(options = {}) {
|
|
57
55
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
56
|
}
|
|
59
57
|
/**
|
|
60
|
-
* Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval
|
|
58
|
+
* Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval (e.g. `Patient/123` via the path) and search operations.
|
|
59
|
+
*
|
|
60
|
+
* FHIR search parameters are passed through to the upstream server verbatim as native query-string parameters; this proxy does not model, validate, or transform them. Append standard FHIR search parameters directly to the request URL. Supported parameters include:
|
|
61
|
+
* - Resource-specific search parameters (e.g. `name` for Patient, `status` for Observation)
|
|
62
|
+
* - Common search parameters (`_id`, `_lastUpdated`, `_tag`, `_profile`, `_security`, `_text`, `_content`, `_filter`)
|
|
63
|
+
* - Result parameters (`_count`, `_offset`, `_sort`, `_include`, `_revinclude`, `_summary`, `_elements`)
|
|
64
|
+
* - Search prefixes for dates, numbers, and quantities (`eq`, `ne`, `gt`, `ge`, `lt`, `le`, `sa`, `eb`, `ap`)
|
|
65
|
+
*
|
|
66
|
+
* Examples:
|
|
67
|
+
* - `Patient?name=John%20Doe&_count=10&_sort=family`
|
|
68
|
+
* - `Observation?patient=Patient/123&date=ge2023-01-01&category=vital-signs&_sort=-date`
|
|
69
|
+
*
|
|
70
|
+
* When using a generated SDK, supply these via the client's request-level query-parameter option (the SDK escape hatch) rather than a typed argument.
|
|
61
71
|
*
|
|
62
72
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
63
73
|
*
|
|
@@ -72,14 +82,6 @@ class FhirClient {
|
|
|
72
82
|
* @param {phenoml.fhir.SearchRequest} request
|
|
73
83
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
84
|
*
|
|
75
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
76
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
77
|
-
* @throws {@link phenoml.fhir.NotFoundError}
|
|
78
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
79
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
80
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
81
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
82
|
-
*
|
|
83
85
|
* @example
|
|
84
86
|
* await client.fhir.search("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
85
87
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -92,10 +94,7 @@ class FhirClient {
|
|
|
92
94
|
__search(fhir_provider_id_1, fhir_path_1) {
|
|
93
95
|
return __awaiter(this, arguments, void 0, function* (fhir_provider_id, fhir_path, request = {}, requestOptions) {
|
|
94
96
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
95
|
-
const {
|
|
96
|
-
const _queryParams = {
|
|
97
|
-
query_parameters: queryParameters != null ? (0, json_js_1.toJson)(queryParameters) : undefined,
|
|
98
|
-
};
|
|
97
|
+
const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider } = request;
|
|
99
98
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
100
99
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
101
100
|
"X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf,
|
|
@@ -105,11 +104,7 @@ class FhirClient {
|
|
|
105
104
|
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir-provider/${core.url.encodePathParam(fhir_provider_id)}/fhir/${core.url.encodePathParam(fhir_path)}`),
|
|
106
105
|
method: "GET",
|
|
107
106
|
headers: _headers,
|
|
108
|
-
queryString: core.url
|
|
109
|
-
.queryBuilder()
|
|
110
|
-
.addMany(_queryParams)
|
|
111
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
112
|
-
.build(),
|
|
107
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
113
108
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
114
109
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
115
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -120,28 +115,11 @@ class FhirClient {
|
|
|
120
115
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
121
116
|
}
|
|
122
117
|
if (_response.error.reason === "status-code") {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
case 404:
|
|
129
|
-
throw new phenoml.fhir.NotFoundError(_response.error.body, _response.rawResponse);
|
|
130
|
-
case 429:
|
|
131
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
132
|
-
case 500:
|
|
133
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
134
|
-
case 502:
|
|
135
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
136
|
-
case 503:
|
|
137
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
138
|
-
default:
|
|
139
|
-
throw new errors.phenomlError({
|
|
140
|
-
statusCode: _response.error.statusCode,
|
|
141
|
-
body: _response.error.body,
|
|
142
|
-
rawResponse: _response.rawResponse,
|
|
143
|
-
});
|
|
144
|
-
}
|
|
118
|
+
throw new errors.phenomlError({
|
|
119
|
+
statusCode: _response.error.statusCode,
|
|
120
|
+
body: _response.error.body,
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
});
|
|
145
123
|
}
|
|
146
124
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
147
125
|
});
|
|
@@ -162,19 +140,12 @@ class FhirClient {
|
|
|
162
140
|
* @param {phenoml.fhir.CreateRequest} request
|
|
163
141
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
164
142
|
*
|
|
165
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
166
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
167
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
168
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
169
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
170
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
171
|
-
*
|
|
172
143
|
* @example
|
|
173
144
|
* await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
174
145
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
175
146
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
176
147
|
* body: {
|
|
177
|
-
* resourceType: "Patient"
|
|
148
|
+
* "resourceType": "Patient"
|
|
178
149
|
* }
|
|
179
150
|
* })
|
|
180
151
|
*/
|
|
@@ -208,26 +179,11 @@ class FhirClient {
|
|
|
208
179
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
209
180
|
}
|
|
210
181
|
if (_response.error.reason === "status-code") {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
case 429:
|
|
217
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
218
|
-
case 500:
|
|
219
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
220
|
-
case 502:
|
|
221
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
222
|
-
case 503:
|
|
223
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
224
|
-
default:
|
|
225
|
-
throw new errors.phenomlError({
|
|
226
|
-
statusCode: _response.error.statusCode,
|
|
227
|
-
body: _response.error.body,
|
|
228
|
-
rawResponse: _response.rawResponse,
|
|
229
|
-
});
|
|
230
|
-
}
|
|
182
|
+
throw new errors.phenomlError({
|
|
183
|
+
statusCode: _response.error.statusCode,
|
|
184
|
+
body: _response.error.body,
|
|
185
|
+
rawResponse: _response.rawResponse,
|
|
186
|
+
});
|
|
231
187
|
}
|
|
232
188
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
233
189
|
});
|
|
@@ -248,20 +204,13 @@ class FhirClient {
|
|
|
248
204
|
* @param {phenoml.fhir.UpsertRequest} request
|
|
249
205
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
250
206
|
*
|
|
251
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
252
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
253
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
254
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
255
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
256
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
257
|
-
*
|
|
258
207
|
* @example
|
|
259
208
|
* await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
260
209
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
261
210
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
262
211
|
* body: {
|
|
263
|
-
* resourceType: "Patient",
|
|
264
|
-
* id: "123"
|
|
212
|
+
* "resourceType": "Patient",
|
|
213
|
+
* "id": "123"
|
|
265
214
|
* }
|
|
266
215
|
* })
|
|
267
216
|
*/
|
|
@@ -295,26 +244,11 @@ class FhirClient {
|
|
|
295
244
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
296
245
|
}
|
|
297
246
|
if (_response.error.reason === "status-code") {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
case 429:
|
|
304
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
305
|
-
case 500:
|
|
306
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
307
|
-
case 502:
|
|
308
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
309
|
-
case 503:
|
|
310
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
311
|
-
default:
|
|
312
|
-
throw new errors.phenomlError({
|
|
313
|
-
statusCode: _response.error.statusCode,
|
|
314
|
-
body: _response.error.body,
|
|
315
|
-
rawResponse: _response.rawResponse,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
247
|
+
throw new errors.phenomlError({
|
|
248
|
+
statusCode: _response.error.statusCode,
|
|
249
|
+
body: _response.error.body,
|
|
250
|
+
rawResponse: _response.rawResponse,
|
|
251
|
+
});
|
|
318
252
|
}
|
|
319
253
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
320
254
|
});
|
|
@@ -335,14 +269,6 @@ class FhirClient {
|
|
|
335
269
|
* @param {phenoml.fhir.DeleteRequest} request
|
|
336
270
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
337
271
|
*
|
|
338
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
339
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
340
|
-
* @throws {@link phenoml.fhir.NotFoundError}
|
|
341
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
342
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
343
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
344
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
345
|
-
*
|
|
346
272
|
* @example
|
|
347
273
|
* await client.fhir.delete("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
348
274
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -376,39 +302,26 @@ class FhirClient {
|
|
|
376
302
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
377
303
|
}
|
|
378
304
|
if (_response.error.reason === "status-code") {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
case 404:
|
|
385
|
-
throw new phenoml.fhir.NotFoundError(_response.error.body, _response.rawResponse);
|
|
386
|
-
case 429:
|
|
387
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
388
|
-
case 500:
|
|
389
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
390
|
-
case 502:
|
|
391
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
392
|
-
case 503:
|
|
393
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
394
|
-
default:
|
|
395
|
-
throw new errors.phenomlError({
|
|
396
|
-
statusCode: _response.error.statusCode,
|
|
397
|
-
body: _response.error.body,
|
|
398
|
-
rawResponse: _response.rawResponse,
|
|
399
|
-
});
|
|
400
|
-
}
|
|
305
|
+
throw new errors.phenomlError({
|
|
306
|
+
statusCode: _response.error.statusCode,
|
|
307
|
+
body: _response.error.body,
|
|
308
|
+
rawResponse: _response.rawResponse,
|
|
309
|
+
});
|
|
401
310
|
}
|
|
402
311
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
403
312
|
});
|
|
404
313
|
}
|
|
405
314
|
/**
|
|
406
|
-
* Partially updates a FHIR resource on the specified provider
|
|
315
|
+
* Partially updates a FHIR resource on the specified provider.
|
|
407
316
|
*
|
|
408
|
-
*
|
|
409
|
-
* - `
|
|
410
|
-
*
|
|
411
|
-
*
|
|
317
|
+
* Two body formats are supported, selected by request content type:
|
|
318
|
+
* - `application/json-patch+json` — an array of JSON Patch operations as defined in RFC 6902. Each operation specifies:
|
|
319
|
+
* - `op`: The operation type (add, remove, replace, move, copy, test)
|
|
320
|
+
* - `path`: JSON Pointer to the target location in the resource
|
|
321
|
+
* - `value`: The value to use (required for add, replace, and test operations)
|
|
322
|
+
* - `application/fhir+json` — a partial FHIR resource for merge-patch semantics.
|
|
323
|
+
*
|
|
324
|
+
* **Note:** This proxy currently forwards the request body to the upstream FHIR server with `Content-Type: application/fhir+json` regardless of the declared request content type. JSON Patch (RFC 6902) therefore only succeeds against upstream servers that accept patch arrays under `application/fhir+json`; servers that strictly enforce patch media types may reject or misinterpret it. Support for either format ultimately depends on the upstream FHIR server.
|
|
412
325
|
*
|
|
413
326
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
414
327
|
*
|
|
@@ -423,14 +336,6 @@ class FhirClient {
|
|
|
423
336
|
* @param {phenoml.fhir.PatchRequest} request
|
|
424
337
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
425
338
|
*
|
|
426
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
427
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
428
|
-
* @throws {@link phenoml.fhir.NotFoundError}
|
|
429
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
430
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
431
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
432
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
433
|
-
*
|
|
434
339
|
* @example
|
|
435
340
|
* await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
436
341
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -523,28 +428,11 @@ class FhirClient {
|
|
|
523
428
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
524
429
|
}
|
|
525
430
|
if (_response.error.reason === "status-code") {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
case 404:
|
|
532
|
-
throw new phenoml.fhir.NotFoundError(_response.error.body, _response.rawResponse);
|
|
533
|
-
case 429:
|
|
534
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
535
|
-
case 500:
|
|
536
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
537
|
-
case 502:
|
|
538
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
539
|
-
case 503:
|
|
540
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
541
|
-
default:
|
|
542
|
-
throw new errors.phenomlError({
|
|
543
|
-
statusCode: _response.error.statusCode,
|
|
544
|
-
body: _response.error.body,
|
|
545
|
-
rawResponse: _response.rawResponse,
|
|
546
|
-
});
|
|
547
|
-
}
|
|
431
|
+
throw new errors.phenomlError({
|
|
432
|
+
statusCode: _response.error.statusCode,
|
|
433
|
+
body: _response.error.body,
|
|
434
|
+
rawResponse: _response.rawResponse,
|
|
435
|
+
});
|
|
548
436
|
}
|
|
549
437
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
550
438
|
});
|
|
@@ -562,21 +450,20 @@ class FhirClient {
|
|
|
562
450
|
* @param {phenoml.fhir.ExecuteBundleRequest} request
|
|
563
451
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
564
452
|
*
|
|
565
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
566
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
567
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
568
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
569
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
570
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
571
|
-
*
|
|
572
453
|
* @example
|
|
573
454
|
* await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
|
|
574
455
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
575
456
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
576
457
|
* body: {
|
|
577
|
-
* resourceType: "Bundle",
|
|
578
|
-
*
|
|
579
|
-
*
|
|
458
|
+
* "resourceType": "Bundle",
|
|
459
|
+
* "type": "transaction",
|
|
460
|
+
* "entry": [
|
|
461
|
+
* {
|
|
462
|
+
* "request": {
|
|
463
|
+
* "method": "POST",
|
|
464
|
+
* "url": "Patient"
|
|
465
|
+
* },
|
|
466
|
+
* "resource": {
|
|
580
467
|
* "resourceType": "Patient",
|
|
581
468
|
* "name": [
|
|
582
469
|
* {
|
|
@@ -586,24 +473,22 @@ class FhirClient {
|
|
|
586
473
|
* ]
|
|
587
474
|
* }
|
|
588
475
|
* ]
|
|
589
|
-
* },
|
|
590
|
-
* request: {
|
|
591
|
-
* method: "POST",
|
|
592
|
-
* url: "Patient"
|
|
593
476
|
* }
|
|
594
|
-
* },
|
|
595
|
-
*
|
|
477
|
+
* },
|
|
478
|
+
* {
|
|
479
|
+
* "request": {
|
|
480
|
+
* "method": "POST",
|
|
481
|
+
* "url": "Observation"
|
|
482
|
+
* },
|
|
483
|
+
* "resource": {
|
|
596
484
|
* "resourceType": "Observation",
|
|
597
485
|
* "status": "final",
|
|
598
486
|
* "subject": {
|
|
599
487
|
* "reference": "Patient/123"
|
|
600
488
|
* }
|
|
601
|
-
* },
|
|
602
|
-
* request: {
|
|
603
|
-
* method: "POST",
|
|
604
|
-
* url: "Observation"
|
|
605
489
|
* }
|
|
606
|
-
* }
|
|
490
|
+
* }
|
|
491
|
+
* ]
|
|
607
492
|
* }
|
|
608
493
|
* })
|
|
609
494
|
*/
|
|
@@ -637,26 +522,11 @@ class FhirClient {
|
|
|
637
522
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
638
523
|
}
|
|
639
524
|
if (_response.error.reason === "status-code") {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
case 429:
|
|
646
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
647
|
-
case 500:
|
|
648
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
649
|
-
case 502:
|
|
650
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
651
|
-
case 503:
|
|
652
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
653
|
-
default:
|
|
654
|
-
throw new errors.phenomlError({
|
|
655
|
-
statusCode: _response.error.statusCode,
|
|
656
|
-
body: _response.error.body,
|
|
657
|
-
rawResponse: _response.rawResponse,
|
|
658
|
-
});
|
|
659
|
-
}
|
|
525
|
+
throw new errors.phenomlError({
|
|
526
|
+
statusCode: _response.error.statusCode,
|
|
527
|
+
body: _response.error.body,
|
|
528
|
+
rawResponse: _response.rawResponse,
|
|
529
|
+
});
|
|
660
530
|
}
|
|
661
531
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/fhir-provider/{fhir_provider_id}/fhir");
|
|
662
532
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type * as phenoml from "../../../../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* @example
|
|
4
3
|
* {
|
|
5
4
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
6
5
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
7
6
|
* body: {
|
|
8
|
-
* resourceType: "Patient"
|
|
7
|
+
* "resourceType": "Patient"
|
|
9
8
|
* }
|
|
10
9
|
* }
|
|
11
10
|
*/
|
|
@@ -20,5 +19,5 @@ export interface CreateRequest {
|
|
|
20
19
|
* Multiple FHIR provider integrations can be provided as comma-separated values.
|
|
21
20
|
*/
|
|
22
21
|
"X-Phenoml-Fhir-Provider"?: string;
|
|
23
|
-
body
|
|
22
|
+
body?: unknown;
|
|
24
23
|
}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import type * as phenoml from "../../../../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* @example
|
|
4
3
|
* {
|
|
5
4
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
6
5
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
7
6
|
* body: {
|
|
8
|
-
* resourceType: "Bundle",
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* "resourceType": "Bundle",
|
|
8
|
+
* "type": "transaction",
|
|
9
|
+
* "entry": [
|
|
10
|
+
* {
|
|
11
|
+
* "request": {
|
|
12
|
+
* "method": "POST",
|
|
13
|
+
* "url": "Patient"
|
|
14
|
+
* },
|
|
15
|
+
* "resource": {
|
|
11
16
|
* "resourceType": "Patient",
|
|
12
17
|
* "name": [
|
|
13
18
|
* {
|
|
@@ -17,24 +22,22 @@ import type * as phenoml from "../../../../index.js";
|
|
|
17
22
|
* ]
|
|
18
23
|
* }
|
|
19
24
|
* ]
|
|
20
|
-
* },
|
|
21
|
-
* request: {
|
|
22
|
-
* method: "POST",
|
|
23
|
-
* url: "Patient"
|
|
24
25
|
* }
|
|
25
|
-
* },
|
|
26
|
-
*
|
|
26
|
+
* },
|
|
27
|
+
* {
|
|
28
|
+
* "request": {
|
|
29
|
+
* "method": "POST",
|
|
30
|
+
* "url": "Observation"
|
|
31
|
+
* },
|
|
32
|
+
* "resource": {
|
|
27
33
|
* "resourceType": "Observation",
|
|
28
34
|
* "status": "final",
|
|
29
35
|
* "subject": {
|
|
30
36
|
* "reference": "Patient/123"
|
|
31
37
|
* }
|
|
32
|
-
* },
|
|
33
|
-
* request: {
|
|
34
|
-
* method: "POST",
|
|
35
|
-
* url: "Observation"
|
|
36
38
|
* }
|
|
37
|
-
* }
|
|
39
|
+
* }
|
|
40
|
+
* ]
|
|
38
41
|
* }
|
|
39
42
|
* }
|
|
40
43
|
*/
|
|
@@ -49,5 +52,5 @@ export interface ExecuteBundleRequest {
|
|
|
49
52
|
* Multiple FHIR provider integrations can be provided as comma-separated values.
|
|
50
53
|
*/
|
|
51
54
|
"X-Phenoml-Fhir-Provider"?: string;
|
|
52
|
-
body
|
|
55
|
+
body?: unknown;
|
|
53
56
|
}
|
|
@@ -6,14 +6,6 @@
|
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface SearchRequest {
|
|
9
|
-
/**
|
|
10
|
-
* FHIR-compliant query parameters for search operations. Supports standard FHIR search parameters including:
|
|
11
|
-
* - Resource-specific search parameters (e.g., name for Patient, status for Observation)
|
|
12
|
-
* - Common search parameters (_id, _lastUpdated, _tag, _profile, _security, _text, _content, _filter)
|
|
13
|
-
* - Result parameters (_count, _offset, _sort, _include, _revinclude, _summary, _elements)
|
|
14
|
-
* - Search prefixes for dates, numbers, quantities (eq, ne, gt, ge, lt, le, sa, eb, ap)
|
|
15
|
-
*/
|
|
16
|
-
query_parameters?: Record<string, string>;
|
|
17
9
|
/**
|
|
18
10
|
* Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
|
|
19
11
|
* Must be in the format: Patient/{uuid} or Practitioner/{uuid}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type * as phenoml from "../../../../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* @example
|
|
4
3
|
* {
|
|
5
4
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
6
5
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
7
6
|
* body: {
|
|
8
|
-
* resourceType: "Patient",
|
|
9
|
-
* id: "123"
|
|
7
|
+
* "resourceType": "Patient",
|
|
8
|
+
* "id": "123"
|
|
10
9
|
* }
|
|
11
10
|
* }
|
|
12
11
|
*/
|
|
@@ -21,5 +20,5 @@ export interface UpsertRequest {
|
|
|
21
20
|
* Multiple FHIR provider integrations can be provided as comma-separated values.
|
|
22
21
|
*/
|
|
23
22
|
"X-Phenoml-Fhir-Provider"?: string;
|
|
24
|
-
body
|
|
23
|
+
body?: unknown;
|
|
25
24
|
}
|
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
|
-
__exportStar(require("./errors/index.js"), exports);
|
|
19
18
|
__exportStar(require("./types/index.js"), exports);
|
|
@@ -14,8 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ErrorResponse.js"), exports);
|
|
18
|
-
__exportStar(require("./FhirBundle.js"), exports);
|
|
19
|
-
__exportStar(require("./FhirResource.js"), exports);
|
|
20
17
|
__exportStar(require("./PatchRequestBodyItem.js"), exports);
|
|
21
|
-
__exportStar(require("./SearchResponse.js"), exports);
|