phenoml 15.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 +6 -62
- package/dist/cjs/api/resources/agent/client/Client.js +8 -233
- package/dist/cjs/api/resources/agent/client/requests/{AgentListRequest.d.ts → ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/client/requests/index.d.ts +1 -4
- package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
- package/dist/cjs/api/resources/{fhir/errors/BadRequestError.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/AgentGetChatMessagesRequest.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/{authtoken/resources/auth → 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/AgentGetChatMessagesRequestOrder.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/AgentGetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
- package/dist/cjs/api/resources/agent/{types/AgentGetChatMessagesResponse.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/{AgentDeleteResponse.d.ts → DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/{AgentListResponse.d.ts → ListResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/agent/types/index.d.ts +2 -5
- package/dist/cjs/api/resources/agent/types/index.js +2 -5
- package/dist/cjs/api/resources/authtoken/client/Client.d.ts +26 -4
- package/dist/cjs/api/resources/authtoken/client/Client.js +109 -4
- package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/authtoken/client/index.js +15 -0
- package/dist/cjs/api/resources/authtoken/exports.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/exports.js +0 -1
- package/dist/cjs/api/resources/authtoken/index.d.ts +0 -1
- package/dist/cjs/api/resources/authtoken/index.js +0 -1
- package/dist/cjs/api/resources/construe/client/Client.d.ts +9 -333
- package/dist/cjs/api/resources/construe/client/Client.js +12 -842
- 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/{esm/api/resources/construe/client/requests/DeleteConstrueCodesSystemsCodesystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/DeleteConstrueCodesSystemsCodesystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.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/construe/resources/codeSystems/exports.js +21 -0
- 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/ConstrueUploadCodeSystemResponse.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/GetConstrueCodesCodesystemRequest.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/GetConstrueCodesCodesystemCodeIdRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.d.ts → resources/codes/client/requests/SearchSemanticRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/SearchTextRequest.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/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/exports.js +2 -2
- 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 +56 -81
- package/dist/cjs/api/resources/fhir/client/Client.js +81 -211
- package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.d.ts → CreateRequest.d.ts} +3 -4
- package/dist/{esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts → cjs/api/resources/fhir/client/requests/DeleteRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts → cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts} +20 -17
- package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.d.ts → PatchRequest.d.ts} +2 -2
- package/dist/cjs/api/resources/fhir/client/requests/{FhirDeleteRequest.d.ts → SearchRequest.d.ts} +1 -1
- package/dist/{esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts → cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts} +4 -4
- package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -6
- 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/{FhirPatchRequestBodyItem.d.ts → PatchRequestBodyItem.d.ts} +3 -3
- package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.js → PatchRequestBodyItem.js} +5 -5
- package/dist/cjs/api/resources/fhir/types/index.d.ts +1 -5
- package/dist/cjs/api/resources/fhir/types/index.js +1 -5
- package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +4 -75
- package/dist/cjs/api/resources/fhirProvider/client/Client.js +6 -225
- 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/FhirProviderRemoveAuthConfigResponse.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/{esm/api/resources/agent/types/AgentDeleteResponse.d.mts → cjs/api/resources/fhirProvider/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +1 -2
- package/dist/cjs/api/resources/fhirProvider/types/index.js +1 -2
- package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +15 -5
- package/dist/cjs/api/resources/lang2Fhir/client/Client.js +37 -7
- 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/{esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts → cjs/api/resources/lang2Fhir/types/UploadProfileResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -1
- package/dist/cjs/api/resources/summary/client/Client.d.ts +3 -88
- package/dist/cjs/api/resources/summary/client/Client.js +4 -309
- package/dist/cjs/api/resources/summary/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/resources/summary/exports.d.ts +1 -0
- package/dist/cjs/api/resources/summary/exports.js +1 -0
- package/dist/cjs/api/resources/summary/index.d.ts +1 -0
- package/dist/cjs/api/resources/summary/index.js +1 -0
- package/dist/cjs/api/resources/summary/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/{authtoken → summary}/resources/index.js +4 -3
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +104 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +360 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/index.js +17 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{tools/resources/mcpServer → summary/resources/templates}/exports.js +2 -3
- package/dist/cjs/api/resources/summary/resources/templates/index.d.ts +2 -0
- package/dist/cjs/api/resources/summary/resources/templates/index.js +18 -0
- package/dist/cjs/api/resources/{workflows/types/WorkflowsDeleteResponse.d.ts → summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.d.ts → resources/templates/types/GetResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.d.ts → resources/templates/types/ListResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.ts → resources/templates/types/UpdateResponse.d.ts} +2 -2
- package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/summary/resources/templates/types/index.js +20 -0
- package/dist/cjs/api/resources/summary/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/summary/types/index.js +0 -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/BadGatewayError.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/{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 +10 -6
- package/dist/cjs/api/resources/workflows/client/Client.js +17 -14
- package/dist/{esm/api/resources/workflows/client/requests/WorkflowsGetRequest.d.mts → cjs/api/resources/workflows/client/requests/GetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/{WorkflowsGetRequest.d.ts → ListRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +54 -0
- package/dist/cjs/api/resources/workflows/errors/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/errors/index.js +1 -0
- package/dist/{esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts → cjs/api/resources/workflows/types/DeleteResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsGetResponse.d.ts → GetResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/{WorkflowsUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/workflows/types/index.d.ts +3 -3
- package/dist/cjs/api/resources/workflows/types/index.js +3 -3
- package/dist/cjs/auth/OAuthAuthProvider.js +2 -2
- 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 +6 -62
- package/dist/esm/api/resources/agent/client/Client.mjs +7 -232
- package/dist/esm/api/resources/agent/client/requests/{AgentListRequest.d.mts → ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/agent/client/requests/index.d.mts +1 -4
- 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/AgentGetChatMessagesRequest.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/{authtoken/resources/auth → 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/AgentGetChatMessagesRequestOrder.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/AgentGetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
- package/dist/esm/api/resources/agent/{types/AgentGetChatMessagesResponse.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/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/agent/types/{AgentListResponse.d.mts → ListResponse.d.mts} +1 -1
- package/dist/esm/api/resources/agent/types/index.d.mts +2 -5
- package/dist/esm/api/resources/agent/types/index.mjs +2 -5
- package/dist/esm/api/resources/authtoken/client/Client.d.mts +26 -4
- package/dist/esm/api/resources/authtoken/client/Client.mjs +76 -4
- package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -1
- package/dist/esm/api/resources/authtoken/client/index.mjs +1 -1
- package/dist/esm/api/resources/authtoken/exports.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/exports.mjs +0 -1
- package/dist/esm/api/resources/authtoken/index.d.mts +0 -1
- package/dist/esm/api/resources/authtoken/index.mjs +0 -1
- package/dist/esm/api/resources/construe/client/Client.d.mts +9 -333
- package/dist/esm/api/resources/construe/client/Client.mjs +12 -842
- 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/{client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.mts → resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.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/ConstrueUploadCodeSystemResponse.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/GetConstrueCodesCodesystemRequest.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/GetConstrueCodesCodesystemCodeIdRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
- package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.d.mts → resources/codes/client/requests/SearchSemanticRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/SearchTextRequest.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/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/exports.mjs +1 -1
- 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 +56 -81
- package/dist/esm/api/resources/fhir/client/Client.mjs +81 -211
- package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +23 -0
- package/dist/esm/api/resources/fhir/client/requests/DeleteRequest.d.mts +19 -0
- package/dist/{cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts → esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts} +20 -17
- package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.d.mts → PatchRequest.d.mts} +2 -2
- package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +19 -0
- package/dist/{cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts → esm/api/resources/fhir/client/requests/UpsertRequest.d.mts} +4 -5
- package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -6
- 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/{FhirPatchRequestBodyItem.d.mts → PatchRequestBodyItem.d.mts} +3 -3
- package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.mjs → PatchRequestBodyItem.mjs} +4 -4
- package/dist/esm/api/resources/fhir/types/index.d.mts +1 -5
- package/dist/esm/api/resources/fhir/types/index.mjs +1 -5
- package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +4 -75
- package/dist/esm/api/resources/fhirProvider/client/Client.mjs +6 -225
- 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/FhirProviderRemoveAuthConfigResponse.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/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/fhirProvider/types/index.d.mts +1 -2
- package/dist/esm/api/resources/fhirProvider/types/index.mjs +1 -2
- package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +15 -5
- package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +37 -7
- 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/{cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts → esm/api/resources/lang2Fhir/types/UploadProfileResponse.d.mts} +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -1
- package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -1
- package/dist/esm/api/resources/summary/client/Client.d.mts +3 -88
- package/dist/esm/api/resources/summary/client/Client.mjs +4 -309
- package/dist/esm/api/resources/summary/client/requests/index.d.mts +0 -2
- package/dist/esm/api/resources/summary/exports.d.mts +1 -0
- package/dist/esm/api/resources/summary/exports.mjs +1 -0
- package/dist/esm/api/resources/summary/index.d.mts +1 -0
- package/dist/esm/api/resources/summary/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/summary/resources/index.mjs +3 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +104 -0
- package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +323 -0
- package/dist/esm/api/resources/summary/resources/templates/client/index.d.mts +1 -0
- package/dist/esm/api/resources/summary/resources/templates/client/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/templates/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/summary/resources/templates/exports.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/exports.mjs +3 -0
- package/dist/esm/api/resources/summary/resources/templates/index.d.mts +2 -0
- package/dist/esm/api/resources/summary/resources/templates/index.mjs +2 -0
- package/dist/esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/GetResponse.d.mts +5 -0
- package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.d.mts → resources/templates/types/ListResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.mts → resources/templates/types/UpdateResponse.d.mts} +2 -2
- package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -0
- package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -0
- package/dist/esm/api/resources/summary/types/index.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/index.mjs +0 -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/{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 +10 -6
- package/dist/esm/api/resources/workflows/client/Client.mjs +17 -14
- package/dist/esm/api/resources/workflows/client/requests/{WorkflowsListRequest.d.mts → GetRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts → esm/api/resources/workflows/client/requests/ListRequest.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.d.mts +5 -0
- package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +17 -0
- package/dist/esm/api/resources/workflows/errors/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/errors/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/types/DeleteResponse.d.mts +4 -0
- package/dist/esm/api/resources/workflows/types/{WorkflowsGetResponse.d.mts → GetResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/{WorkflowsUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
- package/dist/esm/api/resources/workflows/types/index.d.mts +3 -3
- package/dist/esm/api/resources/workflows/types/index.mjs +3 -3
- package/dist/esm/auth/OAuthAuthProvider.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/openapi/openapi.json +11090 -0
- package/package.json +70 -24
- package/reference.md +341 -316
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +0 -5
- package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.ts +0 -7
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +0 -34
- package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +0 -121
- package/dist/cjs/api/resources/authtoken/resources/auth/exports.d.ts +0 -2
- package/dist/cjs/api/resources/authtoken/resources/index.d.ts +0 -2
- package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +0 -27
- 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/FhirSearchResponse.d.ts +0 -2
- package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +0 -4
- 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/types/SummaryDeleteTemplateResponse.d.ts +0 -4
- 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/cjs/api/resources/workflows/types/WorkflowsDeleteResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.js +0 -3
- package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.js +0 -3
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +0 -5
- package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.mts +0 -7
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +0 -34
- package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +0 -84
- package/dist/esm/api/resources/authtoken/resources/auth/exports.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.d.mts +0 -2
- package/dist/esm/api/resources/authtoken/resources/index.mjs +0 -2
- package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +0 -27
- package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +0 -25
- 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/FhirSearchResponse.d.mts +0 -2
- package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +0 -4
- 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/types/SummaryDeleteTemplateResponse.d.mts +0 -4
- package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +0 -5
- 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/esm/api/resources/workflows/types/WorkflowsDeleteResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +0 -2
- package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +0 -2
- /package/dist/cjs/api/resources/agent/client/requests/{AgentChatRequest.js → ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → 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/requests/AgentGetChatMessagesRequest.js → 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/AgentListRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/agent/{types/AgentDeleteResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.js → DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/agent/types/{AgentListResponse.js → ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.js +0 -0
- /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → authtoken}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.js +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/DeleteConstrueCodesSystemsCodesystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemCodeIdRequest.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/GetConstrueCodesCodesystemRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchTextRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemExportRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
- /package/dist/cjs/api/resources/construe/{types/ConstrueUploadCodeSystemResponse.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/{authtoken/resources/auth → construe/resources/codes}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{authtoken/resources/auth → construe/resources/codes}/index.js +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.js → CreateRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirDeleteRequest.js → DeleteRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.js → ExecuteBundleRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.js → PatchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.js → SearchRequest.js} +0 -0
- /package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.js → UpsertRequest.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/types/FhirResource.js → fhirProvider/types/DeleteResponse.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/FhirSearchResponse.js → lang2Fhir/types/UploadProfileResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.js +0 -0
- /package/dist/cjs/api/resources/{fhirProvider/types/FhirProviderDeleteResponse.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/{fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/{lang2Fhir/types/Lang2FhirUploadProfileResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
- /package/dist/cjs/api/resources/summary/{types/SummaryDeleteTemplateResponse.js → resources/templates/types/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 → mcpServers}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpServers}/index.js +0 -0
- /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{summary/types/SummaryGetTemplateResponse.js → workflows/client/requests/GetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{summary/types/SummaryListTemplatesResponse.js → workflows/client/requests/ListRequest.js} +0 -0
- /package/dist/cjs/api/resources/{summary/types/SummaryUpdateTemplateResponse.js → workflows/types/DeleteResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsGetRequest.js → types/GetResponse.js} +0 -0
- /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsListRequest.js → types/UpdateResponse.js} +0 -0
- /package/dist/esm/api/resources/agent/client/requests/{AgentChatRequest.mjs → ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → 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/requests/AgentGetChatMessagesRequest.mjs → 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/AgentListRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → agent/resources/chat}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/agent/{types/AgentDeleteResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.mjs → DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/agent/types/{AgentListResponse.mjs → ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.mts +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.mjs +0 -0
- /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → authtoken}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/DeleteConstrueCodesSystemsCodesystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemCodeIdRequest.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/GetConstrueCodesCodesystemRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchSemanticRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesCodesystemSearchTextRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemExportRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{client/requests/GetConstrueCodesSystemsCodesystemRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
- /package/dist/esm/api/resources/construe/{types/ConstrueUploadCodeSystemResponse.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/{authtoken/resources/auth → construe/resources/codes}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{authtoken/resources/auth → construe/resources/codes}/index.mjs +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.mjs → CreateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirDeleteRequest.mjs → DeleteRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.mjs → ExecuteBundleRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.mjs → PatchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.mjs → SearchRequest.mjs} +0 -0
- /package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.mjs → UpsertRequest.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/types/FhirResource.mjs → fhirProvider/types/DeleteResponse.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/FhirSearchResponse.mjs → lang2Fhir/types/UploadProfileResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{fhirProvider/types/FhirProviderDeleteResponse.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
- /package/dist/esm/api/resources/summary/{types/SummaryDeleteTemplateResponse.mjs → resources/templates/types/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
- /package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpServers}/index.d.mts +0 -0
- /package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpServers}/index.mjs +0 -0
- /package/dist/esm/api/resources/{summary/types/SummaryGetTemplateResponse.mjs → workflows/client/requests/GetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{summary/types/SummaryListTemplatesResponse.mjs → workflows/client/requests/ListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{summary/types/SummaryUpdateTemplateResponse.mjs → workflows/types/DeleteResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsGetRequest.mjs → types/GetResponse.mjs} +0 -0
- /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsListRequest.mjs → types/UpdateResponse.mjs} +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
|
*
|
|
@@ -33,17 +43,9 @@ export class FhirClient {
|
|
|
33
43
|
* - "Patient" (for resource type operations)
|
|
34
44
|
* - "Patient/123" (for specific resource operations)
|
|
35
45
|
* - "Patient/123/_history" (for history operations)
|
|
36
|
-
* @param {phenoml.fhir.
|
|
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
|
});
|
|
@@ -123,22 +101,15 @@ export class FhirClient {
|
|
|
123
101
|
* - "Patient" (for resource type operations)
|
|
124
102
|
* - "Patient/123" (for specific resource operations)
|
|
125
103
|
* - "Patient/123/_history" (for history operations)
|
|
126
|
-
* @param {phenoml.fhir.
|
|
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
|
});
|
|
@@ -209,23 +165,16 @@ export class FhirClient {
|
|
|
209
165
|
* - "Patient" (for resource type operations)
|
|
210
166
|
* - "Patient/123" (for specific resource operations)
|
|
211
167
|
* - "Patient/123/_history" (for history operations)
|
|
212
|
-
* @param {phenoml.fhir.
|
|
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
|
});
|
|
@@ -296,17 +230,9 @@ export class FhirClient {
|
|
|
296
230
|
* - "Patient" (for resource type operations)
|
|
297
231
|
* - "Patient/123" (for specific resource operations)
|
|
298
232
|
* - "Patient/123/_history" (for history operations)
|
|
299
|
-
* @param {phenoml.fhir.
|
|
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
|
*
|
|
@@ -384,17 +297,9 @@ export class FhirClient {
|
|
|
384
297
|
* - "Patient" (for resource type operations)
|
|
385
298
|
* - "Patient/123" (for specific resource operations)
|
|
386
299
|
* - "Patient/123/_history" (for history operations)
|
|
387
|
-
* @param {phenoml.fhir.
|
|
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
|
});
|
|
@@ -523,24 +411,23 @@ export class FhirClient {
|
|
|
523
411
|
* @param {string} fhir_provider_id - The ID of the FHIR provider to use. Can be either:
|
|
524
412
|
* - A UUID representing the provider ID
|
|
525
413
|
* - A provider name (legacy support - will just use the most recently updated provider with this name)
|
|
526
|
-
* @param {phenoml.fhir.
|
|
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
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
5
|
+
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
|
|
6
|
+
* body: {
|
|
7
|
+
* "resourceType": "Patient"
|
|
8
|
+
* }
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface CreateRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
|
|
14
|
+
* Must be in the format: Patient/{uuid} or Practitioner/{uuid}
|
|
15
|
+
*/
|
|
16
|
+
"X-Phenoml-On-Behalf-Of"?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional header for FHIR provider authentication. Contains credentials in the format {fhir_provider_id}:{oauth2_token}.
|
|
19
|
+
* Multiple FHIR provider integrations can be provided as comma-separated values.
|
|
20
|
+
*/
|
|
21
|
+
"X-Phenoml-Fhir-Provider"?: string;
|
|
22
|
+
body?: unknown;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
5
|
+
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface DeleteRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
|
|
11
|
+
* Must be in the format: Patient/{uuid} or Practitioner/{uuid}
|
|
12
|
+
*/
|
|
13
|
+
"X-Phenoml-On-Behalf-Of"?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional header for FHIR provider authentication. Contains credentials in the format {fhir_provider_id}:{oauth2_token}.
|
|
16
|
+
* Multiple FHIR provider integrations can be provided as comma-separated values.
|
|
17
|
+
*/
|
|
18
|
+
"X-Phenoml-Fhir-Provider"?: string;
|
|
19
|
+
}
|
|
@@ -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,28 +22,26 @@ 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
|
*/
|
|
41
|
-
export interface
|
|
44
|
+
export interface ExecuteBundleRequest {
|
|
42
45
|
/**
|
|
43
46
|
* Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
|
|
44
47
|
* Must be in the format: Patient/{uuid} or Practitioner/{uuid}
|
|
@@ -49,5 +52,5 @@ export interface FhirExecuteBundleRequest {
|
|
|
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
|
}
|
package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.d.mts → PatchRequest.d.mts}
RENAMED
|
@@ -62,7 +62,7 @@ import type * as phenoml from "../../../../index.mjs";
|
|
|
62
62
|
* }]
|
|
63
63
|
* }
|
|
64
64
|
*/
|
|
65
|
-
export interface
|
|
65
|
+
export interface PatchRequest {
|
|
66
66
|
/**
|
|
67
67
|
* Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
|
|
68
68
|
* Must be in the format: Patient/{uuid} or Practitioner/{uuid}
|
|
@@ -74,5 +74,5 @@ export interface FhirPatchRequest {
|
|
|
74
74
|
*/
|
|
75
75
|
"X-Phenoml-Fhir-Provider"?: string;
|
|
76
76
|
/** Array of JSON Patch operations following RFC 6902 */
|
|
77
|
-
body: phenoml.fhir.
|
|
77
|
+
body: phenoml.fhir.PatchRequestBodyItem[];
|
|
78
78
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
|
|
5
|
+
* "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c..."
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface SearchRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
|
|
11
|
+
* Must be in the format: Patient/{uuid} or Practitioner/{uuid}
|
|
12
|
+
*/
|
|
13
|
+
"X-Phenoml-On-Behalf-Of"?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional header for FHIR provider authentication. Contains credentials in the format {fhir_provider_id}:{oauth2_token}.
|
|
16
|
+
* Multiple FHIR provider integrations can be provided as comma-separated values.
|
|
17
|
+
*/
|
|
18
|
+
"X-Phenoml-Fhir-Provider"?: string;
|
|
19
|
+
}
|
|
@@ -1,16 +1,15 @@
|
|
|
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
|
*/
|
|
13
|
-
export interface
|
|
12
|
+
export interface UpsertRequest {
|
|
14
13
|
/**
|
|
15
14
|
* Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
|
|
16
15
|
* Must be in the format: Patient/{uuid} or Practitioner/{uuid}
|
|
@@ -21,5 +20,5 @@ export interface FhirUpsertRequest {
|
|
|
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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type {
|
|
2
|
-
export type {
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
6
|
-
export type {
|
|
1
|
+
export type { CreateRequest } from "./CreateRequest.mjs";
|
|
2
|
+
export type { DeleteRequest } from "./DeleteRequest.mjs";
|
|
3
|
+
export type { ExecuteBundleRequest } from "./ExecuteBundleRequest.mjs";
|
|
4
|
+
export type { PatchRequest } from "./PatchRequest.mjs";
|
|
5
|
+
export type { SearchRequest } from "./SearchRequest.mjs";
|
|
6
|
+
export type { UpsertRequest } from "./UpsertRequest.mjs";
|