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