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.
Files changed (421) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -59
  3. package/dist/cjs/api/resources/agent/client/Client.js +7 -232
  4. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -3
  5. package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
  6. package/dist/cjs/api/resources/{fhir/errors/BadGatewayError.js → agent/errors/GatewayTimeoutError.js} +5 -5
  7. package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/agent/errors/index.js +1 -0
  9. package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +79 -0
  10. package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +305 -0
  11. package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.d.ts → resources/chat/client/requests/ListMessagesRequest.d.ts} +4 -4
  12. package/dist/cjs/api/resources/agent/resources/chat/client/requests/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/agent/resources/chat/exports.d.ts +2 -0
  14. package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.js +2 -2
  15. package/dist/cjs/api/resources/agent/resources/chat/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/index.js +1 -1
  17. package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.ts +5 -0
  18. package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestOrder.js → resources/chat/types/ListMessagesRequestOrder.js} +2 -2
  19. package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.ts +7 -0
  20. package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
  21. package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.d.ts → resources/chat/types/ListMessagesResponse.d.ts} +2 -2
  22. package/dist/cjs/api/resources/agent/resources/chat/types/index.d.ts +3 -0
  23. package/dist/cjs/api/resources/agent/resources/chat/types/index.js +19 -0
  24. package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/agent/resources/index.js +4 -1
  26. package/dist/cjs/api/resources/agent/types/index.d.ts +0 -3
  27. package/dist/cjs/api/resources/agent/types/index.js +0 -3
  28. package/dist/cjs/api/resources/construe/client/Client.d.ts +6 -330
  29. package/dist/cjs/api/resources/construe/client/Client.js +8 -838
  30. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +0 -9
  31. package/dist/cjs/api/resources/construe/client/requests/index.js +0 -3
  32. package/dist/cjs/api/resources/construe/exports.d.ts +1 -0
  33. package/dist/cjs/api/resources/construe/exports.js +1 -0
  34. package/dist/cjs/api/resources/construe/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/construe/index.js +1 -0
  36. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.d.ts +135 -0
  37. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +433 -0
  38. package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.js +17 -0
  40. package/dist/{esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
  41. package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
  42. package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.d.ts → resources/codeSystems/client/requests/FindRequest.d.ts} +1 -1
  43. package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.ts +1 -1
  44. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.d.ts +4 -0
  45. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.js +5 -0
  46. package/dist/cjs/api/resources/construe/resources/codeSystems/exports.d.ts +2 -0
  47. package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.js +2 -3
  48. package/dist/cjs/api/resources/construe/resources/codeSystems/index.d.ts +2 -0
  49. package/dist/cjs/api/resources/construe/resources/codeSystems/index.js +18 -0
  50. package/dist/{esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts → cjs/api/resources/construe/resources/codeSystems/types/UploadResponse.d.ts} +1 -1
  51. package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.js +17 -0
  53. package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +227 -0
  54. package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +528 -0
  55. package/dist/cjs/api/resources/construe/resources/codes/client/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/construe/resources/codes/client/index.js +17 -0
  57. package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.d.ts → resources/codes/client/requests/CodesListRequest.d.ts} +1 -1
  58. package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.ts +1 -1
  59. package/dist/{esm/api/resources/construe/client/requests/GetCodeRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
  60. package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +5 -0
  61. package/dist/cjs/api/resources/construe/resources/codes/exports.d.ts +2 -0
  62. package/dist/cjs/api/resources/construe/resources/codes/exports.js +21 -0
  63. package/dist/cjs/api/resources/construe/resources/index.d.ts +5 -0
  64. package/dist/cjs/api/resources/construe/resources/index.js +44 -0
  65. package/dist/cjs/api/resources/construe/types/index.d.ts +0 -1
  66. package/dist/cjs/api/resources/construe/types/index.js +0 -1
  67. package/dist/cjs/api/resources/fhir/client/Client.d.ts +50 -75
  68. package/dist/cjs/api/resources/fhir/client/Client.js +75 -205
  69. package/dist/cjs/api/resources/fhir/client/requests/CreateRequest.d.ts +2 -3
  70. package/dist/cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts +19 -16
  71. package/dist/cjs/api/resources/fhir/client/requests/SearchRequest.d.ts +0 -8
  72. package/dist/cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts +3 -4
  73. package/dist/cjs/api/resources/fhir/index.d.ts +0 -1
  74. package/dist/cjs/api/resources/fhir/index.js +0 -1
  75. package/dist/cjs/api/resources/fhir/types/index.d.ts +0 -4
  76. package/dist/cjs/api/resources/fhir/types/index.js +0 -4
  77. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -74
  78. package/dist/cjs/api/resources/fhirProvider/client/Client.js +5 -221
  79. package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +0 -2
  80. package/dist/cjs/api/resources/fhirProvider/exports.d.ts +1 -0
  81. package/dist/cjs/api/resources/fhirProvider/exports.js +1 -0
  82. package/dist/cjs/api/resources/fhirProvider/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/fhirProvider/index.js +1 -0
  84. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.d.ts +90 -0
  85. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +280 -0
  86. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.js +17 -0
  88. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.ts +2 -0
  89. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.js +2 -0
  90. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.d.ts +2 -0
  91. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.js +21 -0
  92. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.d.ts +2 -0
  93. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.js +18 -0
  94. package/dist/cjs/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.ts → resources/authConfig/types/RemoveResponse.d.ts} +2 -2
  95. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.d.ts +1 -0
  96. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.js +17 -0
  97. package/dist/cjs/api/resources/fhirProvider/resources/index.d.ts +3 -0
  98. package/dist/cjs/api/resources/{tools/resources/mcpServer → fhirProvider}/resources/index.js +7 -2
  99. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +0 -1
  100. package/dist/cjs/api/resources/fhirProvider/types/index.js +0 -1
  101. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +11 -1
  102. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +33 -3
  103. package/dist/cjs/api/resources/{fhir/errors/ServiceUnavailableError.d.ts → lang2Fhir/errors/ClientClosedRequestError.d.ts} +1 -1
  104. package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +54 -0
  105. package/dist/cjs/api/resources/{fhir/errors/UnauthorizedError.d.ts → lang2Fhir/errors/GatewayTimeoutError.d.ts} +1 -1
  106. package/dist/cjs/api/resources/{fhir/errors/InternalServerError.js → lang2Fhir/errors/GatewayTimeoutError.js} +5 -5
  107. package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +3 -1
  108. package/dist/cjs/api/resources/lang2Fhir/errors/index.js +3 -1
  109. package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +7 -4
  110. package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +6 -12
  111. package/dist/{esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts → cjs/api/resources/summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
  112. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.ts → GetResponse.d.ts} +1 -1
  113. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.ts → ListResponse.d.ts} +1 -1
  114. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
  115. package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -4
  116. package/dist/cjs/api/resources/summary/resources/templates/types/index.js +4 -4
  117. package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -6
  118. package/dist/cjs/api/resources/tools/client/Client.js +8 -12
  119. package/dist/cjs/api/resources/{fhir/errors/BadRequestError.d.ts → tools/errors/NotFoundError.d.ts} +1 -1
  120. package/dist/cjs/api/resources/{fhir/errors/BadRequestError.js → tools/errors/NotFoundError.js} +5 -5
  121. package/dist/cjs/api/resources/tools/errors/index.d.ts +1 -1
  122. package/dist/cjs/api/resources/tools/errors/index.js +1 -1
  123. package/dist/cjs/api/resources/tools/resources/index.d.ts +3 -2
  124. package/dist/cjs/api/resources/tools/resources/index.js +4 -3
  125. package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.ts +21 -19
  126. package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.js +20 -16
  127. package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.d.ts +1 -0
  128. package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.js +17 -0
  129. package/dist/cjs/api/resources/tools/resources/mcpServers/client/requests/index.js +2 -0
  130. package/dist/cjs/api/resources/tools/resources/mcpServers/exports.d.ts +2 -0
  131. package/dist/cjs/api/resources/tools/resources/mcpServers/exports.js +21 -0
  132. package/dist/cjs/api/resources/tools/resources/mcpServers/index.d.ts +1 -0
  133. package/dist/cjs/api/resources/tools/resources/mcpServers/index.js +17 -0
  134. package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.ts +19 -17
  135. package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.js +22 -16
  136. package/dist/cjs/api/resources/tools/resources/mcpTools/client/index.js +2 -0
  137. package/dist/cjs/api/resources/tools/resources/mcpTools/exports.d.ts +2 -0
  138. package/dist/cjs/api/resources/tools/resources/mcpTools/exports.js +21 -0
  139. package/dist/cjs/api/resources/tools/resources/mcpTools/index.d.ts +1 -0
  140. package/dist/cjs/api/resources/tools/resources/mcpTools/index.js +17 -0
  141. package/dist/cjs/api/resources/workflows/client/Client.d.ts +3 -0
  142. package/dist/cjs/api/resources/workflows/client/Client.js +9 -0
  143. package/dist/cjs/version.d.ts +1 -1
  144. package/dist/cjs/version.js +1 -1
  145. package/dist/esm/BaseClient.mjs +2 -2
  146. package/dist/esm/api/resources/agent/client/Client.d.mts +3 -59
  147. package/dist/esm/api/resources/agent/client/Client.mjs +6 -231
  148. package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -3
  149. package/dist/esm/api/resources/{fhir/errors/InternalServerError.d.mts → agent/errors/GatewayTimeoutError.d.mts} +1 -1
  150. package/dist/esm/api/resources/{fhir/errors/InternalServerError.mjs → agent/errors/GatewayTimeoutError.mjs} +3 -3
  151. package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
  152. package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
  153. package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +79 -0
  154. package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +268 -0
  155. package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.d.mts → resources/chat/client/requests/ListMessagesRequest.d.mts} +4 -4
  156. package/dist/esm/api/resources/agent/resources/chat/client/requests/index.d.mts +3 -0
  157. package/dist/esm/api/resources/agent/resources/chat/exports.d.mts +2 -0
  158. package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.mjs +1 -1
  159. package/dist/esm/api/resources/agent/resources/chat/index.d.mts +2 -0
  160. package/dist/esm/api/resources/agent/resources/chat/index.mjs +2 -0
  161. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.mts +5 -0
  162. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestOrder.mjs → resources/chat/types/ListMessagesRequestOrder.mjs} +1 -1
  163. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.mts +7 -0
  164. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
  165. package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.d.mts → resources/chat/types/ListMessagesResponse.d.mts} +2 -2
  166. package/dist/esm/api/resources/agent/resources/chat/types/index.d.mts +3 -0
  167. package/dist/esm/api/resources/agent/resources/chat/types/index.mjs +3 -0
  168. package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
  169. package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
  170. package/dist/esm/api/resources/agent/types/index.d.mts +0 -3
  171. package/dist/esm/api/resources/agent/types/index.mjs +0 -3
  172. package/dist/esm/api/resources/construe/client/Client.d.mts +6 -330
  173. package/dist/esm/api/resources/construe/client/Client.mjs +8 -838
  174. package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -9
  175. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
  176. package/dist/esm/api/resources/construe/exports.d.mts +1 -0
  177. package/dist/esm/api/resources/construe/exports.mjs +1 -0
  178. package/dist/esm/api/resources/construe/index.d.mts +1 -0
  179. package/dist/esm/api/resources/construe/index.mjs +1 -0
  180. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.d.mts +135 -0
  181. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +396 -0
  182. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.d.mts +1 -0
  183. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.mjs +1 -0
  184. package/dist/{cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
  185. package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.mts → resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
  186. package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.d.mts → resources/codeSystems/client/requests/FindRequest.d.mts} +1 -1
  187. package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.mts +1 -1
  188. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.d.mts +4 -0
  189. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.mjs +1 -0
  190. package/dist/esm/api/resources/construe/resources/codeSystems/exports.d.mts +2 -0
  191. package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.mjs +1 -2
  192. package/dist/esm/api/resources/construe/resources/codeSystems/index.d.mts +2 -0
  193. package/dist/esm/api/resources/construe/resources/codeSystems/index.mjs +2 -0
  194. package/dist/{cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts → esm/api/resources/construe/resources/codeSystems/types/UploadResponse.d.mts} +1 -1
  195. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.d.mts +1 -0
  196. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.mjs +1 -0
  197. package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +227 -0
  198. package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +491 -0
  199. package/dist/esm/api/resources/construe/resources/codes/client/index.d.mts +1 -0
  200. package/dist/esm/api/resources/construe/resources/codes/client/index.mjs +1 -0
  201. package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.d.mts → resources/codes/client/requests/CodesListRequest.d.mts} +1 -1
  202. package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.mts +1 -1
  203. package/dist/{cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
  204. package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +5 -0
  205. package/dist/esm/api/resources/construe/resources/codes/exports.d.mts +2 -0
  206. package/dist/esm/api/resources/construe/resources/codes/exports.mjs +3 -0
  207. package/dist/esm/api/resources/construe/resources/index.d.mts +5 -0
  208. package/dist/esm/api/resources/construe/resources/index.mjs +5 -0
  209. package/dist/esm/api/resources/construe/types/index.d.mts +0 -1
  210. package/dist/esm/api/resources/construe/types/index.mjs +0 -1
  211. package/dist/esm/api/resources/fhir/client/Client.d.mts +50 -75
  212. package/dist/esm/api/resources/fhir/client/Client.mjs +75 -205
  213. package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +2 -3
  214. package/dist/esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts +19 -16
  215. package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +0 -8
  216. package/dist/esm/api/resources/fhir/client/requests/UpsertRequest.d.mts +3 -4
  217. package/dist/esm/api/resources/fhir/index.d.mts +0 -1
  218. package/dist/esm/api/resources/fhir/index.mjs +0 -1
  219. package/dist/esm/api/resources/fhir/types/index.d.mts +0 -4
  220. package/dist/esm/api/resources/fhir/types/index.mjs +0 -4
  221. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -74
  222. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +5 -221
  223. package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +0 -2
  224. package/dist/esm/api/resources/fhirProvider/exports.d.mts +1 -0
  225. package/dist/esm/api/resources/fhirProvider/exports.mjs +1 -0
  226. package/dist/esm/api/resources/fhirProvider/index.d.mts +1 -0
  227. package/dist/esm/api/resources/fhirProvider/index.mjs +1 -0
  228. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.d.mts +90 -0
  229. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +243 -0
  230. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.d.mts +1 -0
  231. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.mjs +1 -0
  232. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.mts +2 -0
  233. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.d.mts +2 -0
  234. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.mjs +3 -0
  235. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.d.mts +2 -0
  236. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.mjs +2 -0
  237. package/dist/esm/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.mts → resources/authConfig/types/RemoveResponse.d.mts} +2 -2
  238. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.d.mts +1 -0
  239. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.mjs +1 -0
  240. package/dist/esm/api/resources/fhirProvider/resources/index.d.mts +3 -0
  241. package/dist/esm/api/resources/fhirProvider/resources/index.mjs +3 -0
  242. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +0 -1
  243. package/dist/esm/api/resources/fhirProvider/types/index.mjs +0 -1
  244. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +11 -1
  245. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +33 -3
  246. package/dist/esm/api/resources/{fhir/errors/ServiceUnavailableError.d.mts → lang2Fhir/errors/ClientClosedRequestError.d.mts} +1 -1
  247. package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +17 -0
  248. package/dist/esm/api/resources/{fhir/errors/UnauthorizedError.d.mts → lang2Fhir/errors/GatewayTimeoutError.d.mts} +1 -1
  249. package/dist/esm/api/resources/{fhir/errors/BadGatewayError.mjs → lang2Fhir/errors/GatewayTimeoutError.mjs} +3 -3
  250. package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +3 -1
  251. package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +3 -1
  252. package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +7 -4
  253. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +6 -12
  254. package/dist/{cjs/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.ts → esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts} +1 -1
  255. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.mts → GetResponse.d.mts} +1 -1
  256. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.mts → ListResponse.d.mts} +1 -1
  257. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
  258. package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -4
  259. package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -4
  260. package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
  261. package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
  262. package/dist/esm/api/resources/{fhir/errors/BadRequestError.d.mts → tools/errors/NotFoundError.d.mts} +1 -1
  263. package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs} +3 -3
  264. package/dist/esm/api/resources/tools/errors/index.d.mts +1 -1
  265. package/dist/esm/api/resources/tools/errors/index.mjs +1 -1
  266. package/dist/esm/api/resources/tools/resources/index.d.mts +3 -2
  267. package/dist/esm/api/resources/tools/resources/index.mjs +3 -2
  268. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.mts +21 -19
  269. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.mjs +18 -14
  270. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.d.mts +1 -0
  271. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.mjs +1 -0
  272. package/dist/esm/api/resources/tools/resources/mcpServers/client/requests/index.mjs +1 -0
  273. package/dist/esm/api/resources/tools/resources/mcpServers/exports.d.mts +2 -0
  274. package/dist/esm/api/resources/tools/resources/mcpServers/exports.mjs +3 -0
  275. package/dist/esm/api/resources/tools/resources/mcpServers/index.d.mts +1 -0
  276. package/dist/esm/api/resources/tools/resources/mcpServers/index.mjs +1 -0
  277. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.mts +19 -17
  278. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.mjs +20 -14
  279. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.d.mts +1 -0
  280. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.mjs +1 -0
  281. package/dist/esm/api/resources/tools/resources/mcpTools/exports.d.mts +2 -0
  282. package/dist/esm/api/resources/tools/resources/mcpTools/exports.mjs +3 -0
  283. package/dist/esm/api/resources/tools/resources/mcpTools/index.d.mts +1 -0
  284. package/dist/esm/api/resources/tools/resources/mcpTools/index.mjs +1 -0
  285. package/dist/esm/api/resources/workflows/client/Client.d.mts +3 -0
  286. package/dist/esm/api/resources/workflows/client/Client.mjs +9 -0
  287. package/dist/esm/version.d.mts +1 -1
  288. package/dist/esm/version.mjs +1 -1
  289. package/openapi/openapi.json +353 -660
  290. package/package.json +57 -13
  291. package/reference.md +235 -211
  292. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +0 -5
  293. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +0 -7
  294. package/dist/cjs/api/resources/fhir/errors/BadGatewayError.d.ts +0 -6
  295. package/dist/cjs/api/resources/fhir/errors/ServiceUnavailableError.js +0 -54
  296. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.d.ts +0 -6
  297. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.js +0 -54
  298. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +0 -54
  299. package/dist/cjs/api/resources/fhir/errors/index.d.ts +0 -7
  300. package/dist/cjs/api/resources/fhir/errors/index.js +0 -23
  301. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -11
  302. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +0 -54
  303. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +0 -23
  304. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -24
  305. package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +0 -2
  306. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -5
  307. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +0 -54
  308. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesGetResponse.js +0 -3
  309. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesListResponse.js +0 -3
  310. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.js +0 -3
  311. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -5
  312. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +0 -54
  313. package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +0 -3
  314. package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +0 -2
  315. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
  316. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +0 -2
  317. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +0 -5
  318. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +0 -7
  319. package/dist/esm/api/resources/fhir/errors/BadGatewayError.d.mts +0 -6
  320. package/dist/esm/api/resources/fhir/errors/ServiceUnavailableError.mjs +0 -17
  321. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.d.mts +0 -6
  322. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.mjs +0 -17
  323. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -17
  324. package/dist/esm/api/resources/fhir/errors/index.d.mts +0 -7
  325. package/dist/esm/api/resources/fhir/errors/index.mjs +0 -7
  326. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -11
  327. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +0 -54
  328. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +0 -20
  329. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -24
  330. package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +0 -2
  331. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -5
  332. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -17
  333. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.mjs +0 -2
  334. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesListResponse.mjs +0 -2
  335. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.mjs +0 -2
  336. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -5
  337. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -17
  338. package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +0 -3
  339. package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +0 -2
  340. package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +0 -2
  341. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
  342. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
  343. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +0 -2
  344. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.ts +0 -0
  345. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.js +0 -0
  346. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.ts +0 -0
  347. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.js +0 -0
  348. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.ts +0 -0
  349. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.js +0 -0
  350. /package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
  351. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.js +0 -0
  352. /package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
  353. /package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
  354. /package/dist/cjs/api/resources/construe/{client/requests/ExportCodeSystemRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
  355. /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/FindRequest.js} +0 -0
  356. /package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.js +0 -0
  357. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
  358. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
  359. /package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
  360. /package/dist/cjs/api/resources/construe/{client/requests/SearchSemanticRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
  361. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.ts +0 -0
  362. /package/dist/cjs/api/resources/construe/{client/requests/SearchTextRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
  363. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.ts +0 -0
  364. /package/dist/cjs/api/resources/construe/{types/UploadCodeSystemResponse.js → resources/codes/client/requests/SearchTextRequest.js} +0 -0
  365. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.js +0 -0
  366. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.ts +0 -0
  367. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.js +0 -0
  368. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -0
  369. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.js +0 -0
  370. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -0
  371. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.js +0 -0
  372. /package/dist/cjs/api/resources/{fhir/types/ErrorResponse.js → fhirProvider/resources/authConfig/types/RemoveResponse.js} +0 -0
  373. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.ts +0 -0
  374. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.js +0 -0
  375. /package/dist/cjs/api/resources/{fhir/types/FhirResource.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
  376. /package/dist/cjs/api/resources/{fhir/types/SearchResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
  377. /package/dist/cjs/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
  378. /package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.js → UpdateResponse.js} +0 -0
  379. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.ts +0 -0
  380. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.js +0 -0
  381. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.ts +0 -0
  382. /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
  383. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.mts +0 -0
  384. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.mjs +0 -0
  385. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.mts +0 -0
  386. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.mjs +0 -0
  387. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.mts +0 -0
  388. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.mjs +0 -0
  389. /package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
  390. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.mjs +0 -0
  391. /package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
  392. /package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
  393. /package/dist/esm/api/resources/construe/{client/requests/ExportCodeSystemRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
  394. /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/FindRequest.mjs} +0 -0
  395. /package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.mjs +0 -0
  396. /package/dist/esm/api/resources/construe/{client/requests/GetCodeRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
  397. /package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
  398. /package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
  399. /package/dist/esm/api/resources/construe/{client/requests/SearchSemanticRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
  400. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.mts +0 -0
  401. /package/dist/esm/api/resources/construe/{client/requests/SearchTextRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
  402. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.mts +0 -0
  403. /package/dist/esm/api/resources/construe/{types/UploadCodeSystemResponse.mjs → resources/codes/client/requests/SearchTextRequest.mjs} +0 -0
  404. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.mjs +0 -0
  405. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.mts +0 -0
  406. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.mjs +0 -0
  407. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -0
  408. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.mjs +0 -0
  409. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -0
  410. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.mjs +0 -0
  411. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/index.d.mts → fhirProvider/resources/authConfig/client/requests/index.mjs} +0 -0
  412. /package/dist/esm/api/resources/{fhir/types/ErrorResponse.mjs → fhirProvider/resources/authConfig/types/RemoveResponse.mjs} +0 -0
  413. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.mts +0 -0
  414. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.mjs +0 -0
  415. /package/dist/esm/api/resources/{fhir/types/FhirResource.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
  416. /package/dist/esm/api/resources/{fhir/types/SearchResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
  417. /package/dist/esm/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
  418. /package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
  419. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.mts +0 -0
  420. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.mjs +0 -0
  421. /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 and search operations based on the FHIR path and query parameters.
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 { query_parameters: queryParameters, "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider, } = request;
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
- switch (_response.error.statusCode) {
88
- case 400:
89
- throw new phenoml.fhir.BadRequestError(_response.error.body, _response.rawResponse);
90
- case 401:
91
- throw new phenoml.fhir.UnauthorizedError(_response.error.body, _response.rawResponse);
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
- switch (_response.error.statusCode) {
176
- case 400:
177
- throw new phenoml.fhir.BadRequestError(_response.error.body, _response.rawResponse);
178
- case 401:
179
- throw new phenoml.fhir.UnauthorizedError(_response.error.body, _response.rawResponse);
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
- switch (_response.error.statusCode) {
263
- case 400:
264
- throw new phenoml.fhir.BadRequestError(_response.error.body, _response.rawResponse);
265
- case 401:
266
- throw new phenoml.fhir.UnauthorizedError(_response.error.body, _response.rawResponse);
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
- switch (_response.error.statusCode) {
344
- case 400:
345
- throw new phenoml.fhir.BadRequestError(_response.error.body, _response.rawResponse);
346
- case 401:
347
- throw new phenoml.fhir.UnauthorizedError(_response.error.body, _response.rawResponse);
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 using JSON Patch operations as defined in RFC 6902.
279
+ * Partially updates a FHIR resource on the specified provider.
371
280
  *
372
- * The request body should contain an array of JSON Patch operations. Each operation specifies:
373
- * - `op`: The operation type (add, remove, replace, move, copy, test)
374
- * - `path`: JSON Pointer to the target location in the resource
375
- * - `value`: The value to use (required for add, replace, and test operations)
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
- switch (_response.error.statusCode) {
491
- case 400:
492
- throw new phenoml.fhir.BadRequestError(_response.error.body, _response.rawResponse);
493
- case 401:
494
- throw new phenoml.fhir.UnauthorizedError(_response.error.body, _response.rawResponse);
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
- * entry: [{
543
- * resource: {
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
- * resource: {
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
- switch (_response.error.statusCode) {
605
- case 400:
606
- throw new phenoml.fhir.BadRequestError(_response.error.body, _response.rawResponse);
607
- case 401:
608
- throw new phenoml.fhir.UnauthorizedError(_response.error.body, _response.rawResponse);
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: phenoml.fhir.FhirResource;
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
- * entry: [{
10
- * resource: {
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
- * resource: {
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: phenoml.fhir.FhirBundle;
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: phenoml.fhir.FhirResource;
23
+ body?: unknown;
25
24
  }
@@ -1,3 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./errors/index.mjs";
3
2
  export * from "./types/index.mjs";
@@ -1,3 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./errors/index.mjs";
3
2
  export * from "./types/index.mjs";
@@ -1,5 +1 @@
1
- export * from "./ErrorResponse.mjs";
2
- export * from "./FhirBundle.mjs";
3
- export * from "./FhirResource.mjs";
4
1
  export * from "./PatchRequestBodyItem.mjs";
5
- export * from "./SearchResponse.mjs";
@@ -1,5 +1 @@
1
- export * from "./ErrorResponse.mjs";
2
- export * from "./FhirBundle.mjs";
3
- export * from "./FhirResource.mjs";
4
1
  export * from "./PatchRequestBodyItem.mjs";
5
- export * from "./SearchResponse.mjs";