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
|
@@ -11,17 +11,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
|
-
import { toJson } from "../../../../core/json.mjs";
|
|
15
14
|
import * as environments from "../../../../environments.mjs";
|
|
16
15
|
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
17
16
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
-
import * as phenoml from "../../../index.mjs";
|
|
19
17
|
export class FhirClient {
|
|
20
18
|
constructor(options = {}) {
|
|
21
19
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
20
|
}
|
|
23
21
|
/**
|
|
24
|
-
* Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval
|
|
22
|
+
* Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval (e.g. `Patient/123` via the path) and search operations.
|
|
23
|
+
*
|
|
24
|
+
* 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:
|
|
25
|
+
* - Resource-specific search parameters (e.g. `name` for Patient, `status` for Observation)
|
|
26
|
+
* - Common search parameters (`_id`, `_lastUpdated`, `_tag`, `_profile`, `_security`, `_text`, `_content`, `_filter`)
|
|
27
|
+
* - Result parameters (`_count`, `_offset`, `_sort`, `_include`, `_revinclude`, `_summary`, `_elements`)
|
|
28
|
+
* - Search prefixes for dates, numbers, and quantities (`eq`, `ne`, `gt`, `ge`, `lt`, `le`, `sa`, `eb`, `ap`)
|
|
29
|
+
*
|
|
30
|
+
* Examples:
|
|
31
|
+
* - `Patient?name=John%20Doe&_count=10&_sort=family`
|
|
32
|
+
* - `Observation?patient=Patient/123&date=ge2023-01-01&category=vital-signs&_sort=-date`
|
|
33
|
+
*
|
|
34
|
+
* 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.
|
|
25
35
|
*
|
|
26
36
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
27
37
|
*
|
|
@@ -36,14 +46,6 @@ export class FhirClient {
|
|
|
36
46
|
* @param {phenoml.fhir.SearchRequest} request
|
|
37
47
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
48
|
*
|
|
39
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
40
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
41
|
-
* @throws {@link phenoml.fhir.NotFoundError}
|
|
42
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
43
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
44
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
45
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
46
|
-
*
|
|
47
49
|
* @example
|
|
48
50
|
* await client.fhir.search("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
49
51
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -56,10 +58,7 @@ export class FhirClient {
|
|
|
56
58
|
__search(fhir_provider_id_1, fhir_path_1) {
|
|
57
59
|
return __awaiter(this, arguments, void 0, function* (fhir_provider_id, fhir_path, request = {}, requestOptions) {
|
|
58
60
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
59
|
-
const {
|
|
60
|
-
const _queryParams = {
|
|
61
|
-
query_parameters: queryParameters != null ? toJson(queryParameters) : undefined,
|
|
62
|
-
};
|
|
61
|
+
const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider } = request;
|
|
63
62
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
64
63
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
65
64
|
"X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf,
|
|
@@ -69,11 +68,7 @@ export class FhirClient {
|
|
|
69
68
|
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)}`),
|
|
70
69
|
method: "GET",
|
|
71
70
|
headers: _headers,
|
|
72
|
-
queryString: core.url
|
|
73
|
-
.queryBuilder()
|
|
74
|
-
.addMany(_queryParams)
|
|
75
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
76
|
-
.build(),
|
|
71
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
77
72
|
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,
|
|
78
73
|
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,
|
|
79
74
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -84,28 +79,11 @@ export class FhirClient {
|
|
|
84
79
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
85
80
|
}
|
|
86
81
|
if (_response.error.reason === "status-code") {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
case 404:
|
|
93
|
-
throw new phenoml.fhir.NotFoundError(_response.error.body, _response.rawResponse);
|
|
94
|
-
case 429:
|
|
95
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
96
|
-
case 500:
|
|
97
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
98
|
-
case 502:
|
|
99
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
100
|
-
case 503:
|
|
101
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
102
|
-
default:
|
|
103
|
-
throw new errors.phenomlError({
|
|
104
|
-
statusCode: _response.error.statusCode,
|
|
105
|
-
body: _response.error.body,
|
|
106
|
-
rawResponse: _response.rawResponse,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
82
|
+
throw new errors.phenomlError({
|
|
83
|
+
statusCode: _response.error.statusCode,
|
|
84
|
+
body: _response.error.body,
|
|
85
|
+
rawResponse: _response.rawResponse,
|
|
86
|
+
});
|
|
109
87
|
}
|
|
110
88
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
111
89
|
});
|
|
@@ -126,19 +104,12 @@ export class FhirClient {
|
|
|
126
104
|
* @param {phenoml.fhir.CreateRequest} request
|
|
127
105
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
106
|
*
|
|
129
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
130
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
131
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
132
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
133
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
134
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
135
|
-
*
|
|
136
107
|
* @example
|
|
137
108
|
* await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
138
109
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
139
110
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
140
111
|
* body: {
|
|
141
|
-
* resourceType: "Patient"
|
|
112
|
+
* "resourceType": "Patient"
|
|
142
113
|
* }
|
|
143
114
|
* })
|
|
144
115
|
*/
|
|
@@ -172,26 +143,11 @@ export class FhirClient {
|
|
|
172
143
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
173
144
|
}
|
|
174
145
|
if (_response.error.reason === "status-code") {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
case 429:
|
|
181
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
182
|
-
case 500:
|
|
183
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
184
|
-
case 502:
|
|
185
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
186
|
-
case 503:
|
|
187
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
188
|
-
default:
|
|
189
|
-
throw new errors.phenomlError({
|
|
190
|
-
statusCode: _response.error.statusCode,
|
|
191
|
-
body: _response.error.body,
|
|
192
|
-
rawResponse: _response.rawResponse,
|
|
193
|
-
});
|
|
194
|
-
}
|
|
146
|
+
throw new errors.phenomlError({
|
|
147
|
+
statusCode: _response.error.statusCode,
|
|
148
|
+
body: _response.error.body,
|
|
149
|
+
rawResponse: _response.rawResponse,
|
|
150
|
+
});
|
|
195
151
|
}
|
|
196
152
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
197
153
|
});
|
|
@@ -212,20 +168,13 @@ export class FhirClient {
|
|
|
212
168
|
* @param {phenoml.fhir.UpsertRequest} request
|
|
213
169
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
214
170
|
*
|
|
215
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
216
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
217
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
218
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
219
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
220
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
221
|
-
*
|
|
222
171
|
* @example
|
|
223
172
|
* await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
224
173
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
225
174
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
226
175
|
* body: {
|
|
227
|
-
* resourceType: "Patient",
|
|
228
|
-
* id: "123"
|
|
176
|
+
* "resourceType": "Patient",
|
|
177
|
+
* "id": "123"
|
|
229
178
|
* }
|
|
230
179
|
* })
|
|
231
180
|
*/
|
|
@@ -259,26 +208,11 @@ export class FhirClient {
|
|
|
259
208
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
260
209
|
}
|
|
261
210
|
if (_response.error.reason === "status-code") {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
case 429:
|
|
268
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
269
|
-
case 500:
|
|
270
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
271
|
-
case 502:
|
|
272
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
273
|
-
case 503:
|
|
274
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
275
|
-
default:
|
|
276
|
-
throw new errors.phenomlError({
|
|
277
|
-
statusCode: _response.error.statusCode,
|
|
278
|
-
body: _response.error.body,
|
|
279
|
-
rawResponse: _response.rawResponse,
|
|
280
|
-
});
|
|
281
|
-
}
|
|
211
|
+
throw new errors.phenomlError({
|
|
212
|
+
statusCode: _response.error.statusCode,
|
|
213
|
+
body: _response.error.body,
|
|
214
|
+
rawResponse: _response.rawResponse,
|
|
215
|
+
});
|
|
282
216
|
}
|
|
283
217
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
284
218
|
});
|
|
@@ -299,14 +233,6 @@ export class FhirClient {
|
|
|
299
233
|
* @param {phenoml.fhir.DeleteRequest} request
|
|
300
234
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
301
235
|
*
|
|
302
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
303
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
304
|
-
* @throws {@link phenoml.fhir.NotFoundError}
|
|
305
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
306
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
307
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
308
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
309
|
-
*
|
|
310
236
|
* @example
|
|
311
237
|
* await client.fhir.delete("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
312
238
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -340,39 +266,26 @@ export class FhirClient {
|
|
|
340
266
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
341
267
|
}
|
|
342
268
|
if (_response.error.reason === "status-code") {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
case 404:
|
|
349
|
-
throw new phenoml.fhir.NotFoundError(_response.error.body, _response.rawResponse);
|
|
350
|
-
case 429:
|
|
351
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
352
|
-
case 500:
|
|
353
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
354
|
-
case 502:
|
|
355
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
356
|
-
case 503:
|
|
357
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
358
|
-
default:
|
|
359
|
-
throw new errors.phenomlError({
|
|
360
|
-
statusCode: _response.error.statusCode,
|
|
361
|
-
body: _response.error.body,
|
|
362
|
-
rawResponse: _response.rawResponse,
|
|
363
|
-
});
|
|
364
|
-
}
|
|
269
|
+
throw new errors.phenomlError({
|
|
270
|
+
statusCode: _response.error.statusCode,
|
|
271
|
+
body: _response.error.body,
|
|
272
|
+
rawResponse: _response.rawResponse,
|
|
273
|
+
});
|
|
365
274
|
}
|
|
366
275
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
367
276
|
});
|
|
368
277
|
}
|
|
369
278
|
/**
|
|
370
|
-
* Partially updates a FHIR resource on the specified provider
|
|
279
|
+
* Partially updates a FHIR resource on the specified provider.
|
|
371
280
|
*
|
|
372
|
-
*
|
|
373
|
-
* - `
|
|
374
|
-
*
|
|
375
|
-
*
|
|
281
|
+
* Two body formats are supported, selected by request content type:
|
|
282
|
+
* - `application/json-patch+json` — an array of JSON Patch operations as defined in RFC 6902. Each operation specifies:
|
|
283
|
+
* - `op`: The operation type (add, remove, replace, move, copy, test)
|
|
284
|
+
* - `path`: JSON Pointer to the target location in the resource
|
|
285
|
+
* - `value`: The value to use (required for add, replace, and test operations)
|
|
286
|
+
* - `application/fhir+json` — a partial FHIR resource for merge-patch semantics.
|
|
287
|
+
*
|
|
288
|
+
* **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.
|
|
376
289
|
*
|
|
377
290
|
* The request is proxied to the configured FHIR server with appropriate authentication headers.
|
|
378
291
|
*
|
|
@@ -387,14 +300,6 @@ export class FhirClient {
|
|
|
387
300
|
* @param {phenoml.fhir.PatchRequest} request
|
|
388
301
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
389
302
|
*
|
|
390
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
391
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
392
|
-
* @throws {@link phenoml.fhir.NotFoundError}
|
|
393
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
394
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
395
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
396
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
397
|
-
*
|
|
398
303
|
* @example
|
|
399
304
|
* await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
|
|
400
305
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
@@ -487,28 +392,11 @@ export class FhirClient {
|
|
|
487
392
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
488
393
|
}
|
|
489
394
|
if (_response.error.reason === "status-code") {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
case 404:
|
|
496
|
-
throw new phenoml.fhir.NotFoundError(_response.error.body, _response.rawResponse);
|
|
497
|
-
case 429:
|
|
498
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
499
|
-
case 500:
|
|
500
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
501
|
-
case 502:
|
|
502
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
503
|
-
case 503:
|
|
504
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
505
|
-
default:
|
|
506
|
-
throw new errors.phenomlError({
|
|
507
|
-
statusCode: _response.error.statusCode,
|
|
508
|
-
body: _response.error.body,
|
|
509
|
-
rawResponse: _response.rawResponse,
|
|
510
|
-
});
|
|
511
|
-
}
|
|
395
|
+
throw new errors.phenomlError({
|
|
396
|
+
statusCode: _response.error.statusCode,
|
|
397
|
+
body: _response.error.body,
|
|
398
|
+
rawResponse: _response.rawResponse,
|
|
399
|
+
});
|
|
512
400
|
}
|
|
513
401
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}");
|
|
514
402
|
});
|
|
@@ -526,21 +414,20 @@ export class FhirClient {
|
|
|
526
414
|
* @param {phenoml.fhir.ExecuteBundleRequest} request
|
|
527
415
|
* @param {FhirClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
528
416
|
*
|
|
529
|
-
* @throws {@link phenoml.fhir.BadRequestError}
|
|
530
|
-
* @throws {@link phenoml.fhir.UnauthorizedError}
|
|
531
|
-
* @throws {@link phenoml.fhir.TooManyRequestsError}
|
|
532
|
-
* @throws {@link phenoml.fhir.InternalServerError}
|
|
533
|
-
* @throws {@link phenoml.fhir.BadGatewayError}
|
|
534
|
-
* @throws {@link phenoml.fhir.ServiceUnavailableError}
|
|
535
|
-
*
|
|
536
417
|
* @example
|
|
537
418
|
* await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
|
|
538
419
|
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
539
420
|
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
540
421
|
* body: {
|
|
541
|
-
* resourceType: "Bundle",
|
|
542
|
-
*
|
|
543
|
-
*
|
|
422
|
+
* "resourceType": "Bundle",
|
|
423
|
+
* "type": "transaction",
|
|
424
|
+
* "entry": [
|
|
425
|
+
* {
|
|
426
|
+
* "request": {
|
|
427
|
+
* "method": "POST",
|
|
428
|
+
* "url": "Patient"
|
|
429
|
+
* },
|
|
430
|
+
* "resource": {
|
|
544
431
|
* "resourceType": "Patient",
|
|
545
432
|
* "name": [
|
|
546
433
|
* {
|
|
@@ -550,24 +437,22 @@ export class FhirClient {
|
|
|
550
437
|
* ]
|
|
551
438
|
* }
|
|
552
439
|
* ]
|
|
553
|
-
* },
|
|
554
|
-
* request: {
|
|
555
|
-
* method: "POST",
|
|
556
|
-
* url: "Patient"
|
|
557
440
|
* }
|
|
558
|
-
* },
|
|
559
|
-
*
|
|
441
|
+
* },
|
|
442
|
+
* {
|
|
443
|
+
* "request": {
|
|
444
|
+
* "method": "POST",
|
|
445
|
+
* "url": "Observation"
|
|
446
|
+
* },
|
|
447
|
+
* "resource": {
|
|
560
448
|
* "resourceType": "Observation",
|
|
561
449
|
* "status": "final",
|
|
562
450
|
* "subject": {
|
|
563
451
|
* "reference": "Patient/123"
|
|
564
452
|
* }
|
|
565
|
-
* },
|
|
566
|
-
* request: {
|
|
567
|
-
* method: "POST",
|
|
568
|
-
* url: "Observation"
|
|
569
453
|
* }
|
|
570
|
-
* }
|
|
454
|
+
* }
|
|
455
|
+
* ]
|
|
571
456
|
* }
|
|
572
457
|
* })
|
|
573
458
|
*/
|
|
@@ -601,26 +486,11 @@ export class FhirClient {
|
|
|
601
486
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
602
487
|
}
|
|
603
488
|
if (_response.error.reason === "status-code") {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
case 429:
|
|
610
|
-
throw new phenoml.fhir.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
611
|
-
case 500:
|
|
612
|
-
throw new phenoml.fhir.InternalServerError(_response.error.body, _response.rawResponse);
|
|
613
|
-
case 502:
|
|
614
|
-
throw new phenoml.fhir.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
615
|
-
case 503:
|
|
616
|
-
throw new phenoml.fhir.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
617
|
-
default:
|
|
618
|
-
throw new errors.phenomlError({
|
|
619
|
-
statusCode: _response.error.statusCode,
|
|
620
|
-
body: _response.error.body,
|
|
621
|
-
rawResponse: _response.rawResponse,
|
|
622
|
-
});
|
|
623
|
-
}
|
|
489
|
+
throw new errors.phenomlError({
|
|
490
|
+
statusCode: _response.error.statusCode,
|
|
491
|
+
body: _response.error.body,
|
|
492
|
+
rawResponse: _response.rawResponse,
|
|
493
|
+
});
|
|
624
494
|
}
|
|
625
495
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/fhir-provider/{fhir_provider_id}/fhir");
|
|
626
496
|
});
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type * as phenoml from "../../../../index.mjs";
|
|
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.mjs";
|
|
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.mjs";
|
|
|
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.mjs";
|
|
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
|
}
|