phenoml 16.0.0 → 17.0.1

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 (423) 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/core/fetcher/getResponseBody.js +11 -0
  144. package/dist/cjs/version.d.ts +1 -1
  145. package/dist/cjs/version.js +1 -1
  146. package/dist/esm/BaseClient.mjs +2 -2
  147. package/dist/esm/api/resources/agent/client/Client.d.mts +3 -59
  148. package/dist/esm/api/resources/agent/client/Client.mjs +6 -231
  149. package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -3
  150. package/dist/esm/api/resources/{fhir/errors/InternalServerError.d.mts → agent/errors/GatewayTimeoutError.d.mts} +1 -1
  151. package/dist/esm/api/resources/{fhir/errors/InternalServerError.mjs → agent/errors/GatewayTimeoutError.mjs} +3 -3
  152. package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
  153. package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
  154. package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +79 -0
  155. package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +268 -0
  156. package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.d.mts → resources/chat/client/requests/ListMessagesRequest.d.mts} +4 -4
  157. package/dist/esm/api/resources/agent/resources/chat/client/requests/index.d.mts +3 -0
  158. package/dist/esm/api/resources/agent/resources/chat/exports.d.mts +2 -0
  159. package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.mjs +1 -1
  160. package/dist/esm/api/resources/agent/resources/chat/index.d.mts +2 -0
  161. package/dist/esm/api/resources/agent/resources/chat/index.mjs +2 -0
  162. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.mts +5 -0
  163. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestOrder.mjs → resources/chat/types/ListMessagesRequestOrder.mjs} +1 -1
  164. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.mts +7 -0
  165. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
  166. package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.d.mts → resources/chat/types/ListMessagesResponse.d.mts} +2 -2
  167. package/dist/esm/api/resources/agent/resources/chat/types/index.d.mts +3 -0
  168. package/dist/esm/api/resources/agent/resources/chat/types/index.mjs +3 -0
  169. package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
  170. package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
  171. package/dist/esm/api/resources/agent/types/index.d.mts +0 -3
  172. package/dist/esm/api/resources/agent/types/index.mjs +0 -3
  173. package/dist/esm/api/resources/construe/client/Client.d.mts +6 -330
  174. package/dist/esm/api/resources/construe/client/Client.mjs +8 -838
  175. package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -9
  176. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
  177. package/dist/esm/api/resources/construe/exports.d.mts +1 -0
  178. package/dist/esm/api/resources/construe/exports.mjs +1 -0
  179. package/dist/esm/api/resources/construe/index.d.mts +1 -0
  180. package/dist/esm/api/resources/construe/index.mjs +1 -0
  181. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.d.mts +135 -0
  182. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +396 -0
  183. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.d.mts +1 -0
  184. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.mjs +1 -0
  185. package/dist/{cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
  186. package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.mts → resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
  187. package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.d.mts → resources/codeSystems/client/requests/FindRequest.d.mts} +1 -1
  188. package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.mts +1 -1
  189. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.d.mts +4 -0
  190. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.mjs +1 -0
  191. package/dist/esm/api/resources/construe/resources/codeSystems/exports.d.mts +2 -0
  192. package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.mjs +1 -2
  193. package/dist/esm/api/resources/construe/resources/codeSystems/index.d.mts +2 -0
  194. package/dist/esm/api/resources/construe/resources/codeSystems/index.mjs +2 -0
  195. package/dist/{cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts → esm/api/resources/construe/resources/codeSystems/types/UploadResponse.d.mts} +1 -1
  196. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.d.mts +1 -0
  197. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.mjs +1 -0
  198. package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +227 -0
  199. package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +491 -0
  200. package/dist/esm/api/resources/construe/resources/codes/client/index.d.mts +1 -0
  201. package/dist/esm/api/resources/construe/resources/codes/client/index.mjs +1 -0
  202. package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.d.mts → resources/codes/client/requests/CodesListRequest.d.mts} +1 -1
  203. package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.mts +1 -1
  204. package/dist/{cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
  205. package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +5 -0
  206. package/dist/esm/api/resources/construe/resources/codes/exports.d.mts +2 -0
  207. package/dist/esm/api/resources/construe/resources/codes/exports.mjs +3 -0
  208. package/dist/esm/api/resources/construe/resources/index.d.mts +5 -0
  209. package/dist/esm/api/resources/construe/resources/index.mjs +5 -0
  210. package/dist/esm/api/resources/construe/types/index.d.mts +0 -1
  211. package/dist/esm/api/resources/construe/types/index.mjs +0 -1
  212. package/dist/esm/api/resources/fhir/client/Client.d.mts +50 -75
  213. package/dist/esm/api/resources/fhir/client/Client.mjs +75 -205
  214. package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +2 -3
  215. package/dist/esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts +19 -16
  216. package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +0 -8
  217. package/dist/esm/api/resources/fhir/client/requests/UpsertRequest.d.mts +3 -4
  218. package/dist/esm/api/resources/fhir/index.d.mts +0 -1
  219. package/dist/esm/api/resources/fhir/index.mjs +0 -1
  220. package/dist/esm/api/resources/fhir/types/index.d.mts +0 -4
  221. package/dist/esm/api/resources/fhir/types/index.mjs +0 -4
  222. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -74
  223. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +5 -221
  224. package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +0 -2
  225. package/dist/esm/api/resources/fhirProvider/exports.d.mts +1 -0
  226. package/dist/esm/api/resources/fhirProvider/exports.mjs +1 -0
  227. package/dist/esm/api/resources/fhirProvider/index.d.mts +1 -0
  228. package/dist/esm/api/resources/fhirProvider/index.mjs +1 -0
  229. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.d.mts +90 -0
  230. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +243 -0
  231. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.d.mts +1 -0
  232. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.mjs +1 -0
  233. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.mts +2 -0
  234. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.d.mts +2 -0
  235. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.mjs +3 -0
  236. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.d.mts +2 -0
  237. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.mjs +2 -0
  238. package/dist/esm/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.mts → resources/authConfig/types/RemoveResponse.d.mts} +2 -2
  239. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.d.mts +1 -0
  240. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.mjs +1 -0
  241. package/dist/esm/api/resources/fhirProvider/resources/index.d.mts +3 -0
  242. package/dist/esm/api/resources/fhirProvider/resources/index.mjs +3 -0
  243. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +0 -1
  244. package/dist/esm/api/resources/fhirProvider/types/index.mjs +0 -1
  245. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +11 -1
  246. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +33 -3
  247. package/dist/esm/api/resources/{fhir/errors/ServiceUnavailableError.d.mts → lang2Fhir/errors/ClientClosedRequestError.d.mts} +1 -1
  248. package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +17 -0
  249. package/dist/esm/api/resources/{fhir/errors/UnauthorizedError.d.mts → lang2Fhir/errors/GatewayTimeoutError.d.mts} +1 -1
  250. package/dist/esm/api/resources/{fhir/errors/BadGatewayError.mjs → lang2Fhir/errors/GatewayTimeoutError.mjs} +3 -3
  251. package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +3 -1
  252. package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +3 -1
  253. package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +7 -4
  254. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +6 -12
  255. package/dist/{cjs/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.ts → esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts} +1 -1
  256. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.mts → GetResponse.d.mts} +1 -1
  257. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.mts → ListResponse.d.mts} +1 -1
  258. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
  259. package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -4
  260. package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -4
  261. package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
  262. package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
  263. package/dist/esm/api/resources/{fhir/errors/BadRequestError.d.mts → tools/errors/NotFoundError.d.mts} +1 -1
  264. package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs} +3 -3
  265. package/dist/esm/api/resources/tools/errors/index.d.mts +1 -1
  266. package/dist/esm/api/resources/tools/errors/index.mjs +1 -1
  267. package/dist/esm/api/resources/tools/resources/index.d.mts +3 -2
  268. package/dist/esm/api/resources/tools/resources/index.mjs +3 -2
  269. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.mts +21 -19
  270. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.mjs +18 -14
  271. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.d.mts +1 -0
  272. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.mjs +1 -0
  273. package/dist/esm/api/resources/tools/resources/mcpServers/client/requests/index.mjs +1 -0
  274. package/dist/esm/api/resources/tools/resources/mcpServers/exports.d.mts +2 -0
  275. package/dist/esm/api/resources/tools/resources/mcpServers/exports.mjs +3 -0
  276. package/dist/esm/api/resources/tools/resources/mcpServers/index.d.mts +1 -0
  277. package/dist/esm/api/resources/tools/resources/mcpServers/index.mjs +1 -0
  278. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.mts +19 -17
  279. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.mjs +20 -14
  280. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.d.mts +1 -0
  281. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.mjs +1 -0
  282. package/dist/esm/api/resources/tools/resources/mcpTools/exports.d.mts +2 -0
  283. package/dist/esm/api/resources/tools/resources/mcpTools/exports.mjs +3 -0
  284. package/dist/esm/api/resources/tools/resources/mcpTools/index.d.mts +1 -0
  285. package/dist/esm/api/resources/tools/resources/mcpTools/index.mjs +1 -0
  286. package/dist/esm/api/resources/workflows/client/Client.d.mts +3 -0
  287. package/dist/esm/api/resources/workflows/client/Client.mjs +9 -0
  288. package/dist/esm/core/fetcher/getResponseBody.mjs +11 -0
  289. package/dist/esm/version.d.mts +1 -1
  290. package/dist/esm/version.mjs +1 -1
  291. package/openapi/openapi.json +353 -660
  292. package/package.json +57 -13
  293. package/reference.md +235 -211
  294. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +0 -5
  295. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +0 -7
  296. package/dist/cjs/api/resources/fhir/errors/BadGatewayError.d.ts +0 -6
  297. package/dist/cjs/api/resources/fhir/errors/ServiceUnavailableError.js +0 -54
  298. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.d.ts +0 -6
  299. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.js +0 -54
  300. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +0 -54
  301. package/dist/cjs/api/resources/fhir/errors/index.d.ts +0 -7
  302. package/dist/cjs/api/resources/fhir/errors/index.js +0 -23
  303. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -11
  304. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +0 -54
  305. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +0 -23
  306. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -24
  307. package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +0 -2
  308. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -5
  309. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +0 -54
  310. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesGetResponse.js +0 -3
  311. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesListResponse.js +0 -3
  312. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.js +0 -3
  313. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -5
  314. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +0 -54
  315. package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +0 -3
  316. package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +0 -2
  317. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
  318. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +0 -2
  319. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +0 -5
  320. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +0 -7
  321. package/dist/esm/api/resources/fhir/errors/BadGatewayError.d.mts +0 -6
  322. package/dist/esm/api/resources/fhir/errors/ServiceUnavailableError.mjs +0 -17
  323. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.d.mts +0 -6
  324. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.mjs +0 -17
  325. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -17
  326. package/dist/esm/api/resources/fhir/errors/index.d.mts +0 -7
  327. package/dist/esm/api/resources/fhir/errors/index.mjs +0 -7
  328. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -11
  329. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +0 -54
  330. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +0 -20
  331. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -24
  332. package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +0 -2
  333. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -5
  334. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -17
  335. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.mjs +0 -2
  336. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesListResponse.mjs +0 -2
  337. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.mjs +0 -2
  338. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -5
  339. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -17
  340. package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +0 -3
  341. package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +0 -2
  342. package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +0 -2
  343. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
  344. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
  345. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +0 -2
  346. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.ts +0 -0
  347. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.js +0 -0
  348. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.ts +0 -0
  349. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.js +0 -0
  350. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.ts +0 -0
  351. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.js +0 -0
  352. /package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
  353. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.js +0 -0
  354. /package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
  355. /package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
  356. /package/dist/cjs/api/resources/construe/{client/requests/ExportCodeSystemRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
  357. /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/FindRequest.js} +0 -0
  358. /package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.js +0 -0
  359. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
  360. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
  361. /package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
  362. /package/dist/cjs/api/resources/construe/{client/requests/SearchSemanticRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
  363. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.ts +0 -0
  364. /package/dist/cjs/api/resources/construe/{client/requests/SearchTextRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
  365. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.ts +0 -0
  366. /package/dist/cjs/api/resources/construe/{types/UploadCodeSystemResponse.js → resources/codes/client/requests/SearchTextRequest.js} +0 -0
  367. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.js +0 -0
  368. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.ts +0 -0
  369. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.js +0 -0
  370. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -0
  371. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.js +0 -0
  372. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -0
  373. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.js +0 -0
  374. /package/dist/cjs/api/resources/{fhir/types/ErrorResponse.js → fhirProvider/resources/authConfig/types/RemoveResponse.js} +0 -0
  375. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.ts +0 -0
  376. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.js +0 -0
  377. /package/dist/cjs/api/resources/{fhir/types/FhirResource.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
  378. /package/dist/cjs/api/resources/{fhir/types/SearchResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
  379. /package/dist/cjs/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
  380. /package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.js → UpdateResponse.js} +0 -0
  381. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.ts +0 -0
  382. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.js +0 -0
  383. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.ts +0 -0
  384. /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
  385. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.mts +0 -0
  386. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.mjs +0 -0
  387. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.mts +0 -0
  388. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.mjs +0 -0
  389. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.mts +0 -0
  390. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.mjs +0 -0
  391. /package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
  392. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.mjs +0 -0
  393. /package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
  394. /package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
  395. /package/dist/esm/api/resources/construe/{client/requests/ExportCodeSystemRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
  396. /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/FindRequest.mjs} +0 -0
  397. /package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.mjs +0 -0
  398. /package/dist/esm/api/resources/construe/{client/requests/GetCodeRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
  399. /package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
  400. /package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
  401. /package/dist/esm/api/resources/construe/{client/requests/SearchSemanticRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
  402. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.mts +0 -0
  403. /package/dist/esm/api/resources/construe/{client/requests/SearchTextRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
  404. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.mts +0 -0
  405. /package/dist/esm/api/resources/construe/{types/UploadCodeSystemResponse.mjs → resources/codes/client/requests/SearchTextRequest.mjs} +0 -0
  406. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.mjs +0 -0
  407. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.mts +0 -0
  408. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.mjs +0 -0
  409. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -0
  410. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.mjs +0 -0
  411. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -0
  412. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.mjs +0 -0
  413. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/index.d.mts → fhirProvider/resources/authConfig/client/requests/index.mjs} +0 -0
  414. /package/dist/esm/api/resources/{fhir/types/ErrorResponse.mjs → fhirProvider/resources/authConfig/types/RemoveResponse.mjs} +0 -0
  415. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.mts +0 -0
  416. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.mjs +0 -0
  417. /package/dist/esm/api/resources/{fhir/types/FhirResource.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
  418. /package/dist/esm/api/resources/{fhir/types/SearchResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
  419. /package/dist/esm/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
  420. /package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
  421. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.mts +0 -0
  422. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.mjs +0 -0
  423. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.mts +0 -0
@@ -2,62 +2,70 @@
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
4
  "title": "Phenoml API",
5
- "version": "0be22a22f76bdd8d90a4f341dcd435fd5590ef7e"
5
+ "version": "29e0b858e2cf7f5819be0c2c6a4a094c74ae1eed"
6
6
  },
7
7
  "x-services": [
8
8
  {
9
9
  "id": "construe",
10
10
  "name": "Construe",
11
11
  "description": "Extract medical codes from natural language clinical text. Supports SNOMED CT, ICD-10, RxNorm, LOINC, and more.",
12
- "iconHint": "construe"
12
+ "iconHint": "construe",
13
+ "status": "ga"
13
14
  },
14
15
  {
15
16
  "id": "lang2fhir",
16
17
  "name": "Lang2FHIR",
17
18
  "description": "Convert natural language clinical text into structured FHIR resources including Patient, Condition, MedicationRequest, and more.",
18
- "iconHint": "lang2fhir"
19
+ "iconHint": "lang2fhir",
20
+ "status": "ga"
19
21
  },
20
22
  {
21
23
  "id": "summary",
22
24
  "name": "Summary",
23
25
  "description": "Generate clinical summaries from FHIR resources. Supports narrative templates, flattening for RAG, and IPS generation.",
24
- "iconHint": "fhir2summary"
26
+ "iconHint": "fhir2summary",
27
+ "status": "beta"
25
28
  },
26
29
  {
27
30
  "id": "agent",
28
31
  "name": "Agent",
29
32
  "description": "Create AI agents that can query and interact with electronic health records using natural language.",
30
- "iconHint": "agent"
33
+ "iconHint": "agent",
34
+ "status": "beta"
31
35
  },
32
36
  {
33
37
  "id": "workflow",
34
38
  "name": "Workflow",
35
39
  "description": "Create and execute clinical workflows. Define workflow logic and test execution with sample data.",
36
- "iconHint": "workflows"
40
+ "iconHint": "workflows",
41
+ "status": "alpha"
37
42
  },
38
43
  {
39
44
  "id": "auth",
40
45
  "name": "Authentication",
41
46
  "description": "Manage API credentials, generate authentication tokens, and handle authorization.",
42
- "iconHint": "auth"
47
+ "iconHint": "auth",
48
+ "status": "ga"
43
49
  },
44
50
  {
45
51
  "id": "tools",
46
52
  "name": "Tools",
47
53
  "description": "LLM tools that combine lang2fhir with FHIR server operations.",
48
- "iconHint": "tools"
54
+ "iconHint": "tools",
55
+ "status": "beta"
49
56
  },
50
57
  {
51
58
  "id": "fhir",
52
59
  "name": "FHIR",
53
60
  "description": "FHIR server operations including resource CRUD, search, and batch operations.",
54
- "iconHint": "proxy"
61
+ "iconHint": "proxy",
62
+ "status": "ga"
55
63
  }
56
64
  ],
57
65
  "paths": {
58
66
  "/agent/create": {
59
67
  "post": {
60
- "operationId": "create",
68
+ "operationId": "agent_create",
61
69
  "summary": "Create a new agent",
62
70
  "description": "Creates a new PhenoAgent with specified configuration",
63
71
  "requestBody": {
@@ -126,7 +134,7 @@
126
134
  "description": "Unauthorized"
127
135
  },
128
136
  "403": {
129
- "description": "Forbidden - requires develop tier access"
137
+ "description": "Forbidden - access denied to the requested resource"
130
138
  },
131
139
  "500": {
132
140
  "description": "Server error"
@@ -142,7 +150,7 @@
142
150
  },
143
151
  "/agent/list": {
144
152
  "get": {
145
- "operationId": "list",
153
+ "operationId": "agent_list",
146
154
  "summary": "List agents",
147
155
  "description": "Retrieves a list of PhenoAgents belonging to the authenticated user",
148
156
  "parameters": [
@@ -163,6 +171,7 @@
163
171
  "application/json": {
164
172
  "schema": {
165
173
  "type": "object",
174
+ "title": "ListResponse",
166
175
  "properties": {
167
176
  "success": {
168
177
  "type": "boolean",
@@ -222,7 +231,7 @@
222
231
  "description": "Unauthorized"
223
232
  },
224
233
  "403": {
225
- "description": "Forbidden - requires develop tier access"
234
+ "description": "Forbidden - access denied to the requested resource"
226
235
  },
227
236
  "500": {
228
237
  "description": "Server error"
@@ -238,7 +247,7 @@
238
247
  },
239
248
  "/agent/{id}": {
240
249
  "get": {
241
- "operationId": "get",
250
+ "operationId": "agent_get",
242
251
  "summary": "Get agent by ID",
243
252
  "description": "Retrieves a specific agent by its ID",
244
253
  "parameters": [
@@ -293,7 +302,7 @@
293
302
  "description": "Unauthorized"
294
303
  },
295
304
  "403": {
296
- "description": "Forbidden - requires develop tier access"
305
+ "description": "Forbidden - access denied to the requested resource"
297
306
  },
298
307
  "404": {
299
308
  "description": "Agent not found"
@@ -310,7 +319,7 @@
310
319
  "x-service": "agent"
311
320
  },
312
321
  "put": {
313
- "operationId": "update",
322
+ "operationId": "agent_update",
314
323
  "summary": "Update agent",
315
324
  "description": "Updates an existing agent's configuration",
316
325
  "parameters": [
@@ -391,7 +400,7 @@
391
400
  "description": "Unauthorized"
392
401
  },
393
402
  "403": {
394
- "description": "Forbidden - requires develop tier access"
403
+ "description": "Forbidden - access denied to the requested resource"
395
404
  },
396
405
  "404": {
397
406
  "description": "Agent not found"
@@ -408,7 +417,7 @@
408
417
  "x-service": "agent"
409
418
  },
410
419
  "delete": {
411
- "operationId": "delete",
420
+ "operationId": "agent_delete",
412
421
  "summary": "Delete agent",
413
422
  "description": "Deletes an existing agent",
414
423
  "parameters": [
@@ -429,6 +438,7 @@
429
438
  "application/json": {
430
439
  "schema": {
431
440
  "type": "object",
441
+ "title": "DeleteResponse",
432
442
  "properties": {
433
443
  "success": {
434
444
  "type": "boolean",
@@ -451,7 +461,7 @@
451
461
  "description": "Unauthorized"
452
462
  },
453
463
  "403": {
454
- "description": "Forbidden - requires develop tier access"
464
+ "description": "Forbidden - access denied to the requested resource"
455
465
  },
456
466
  "404": {
457
467
  "description": "Agent not found"
@@ -468,7 +478,7 @@
468
478
  "x-service": "agent"
469
479
  },
470
480
  "patch": {
471
- "operationId": "patch",
481
+ "operationId": "agent_patch",
472
482
  "summary": "Patch agent",
473
483
  "description": "Patches an existing agent's configuration",
474
484
  "parameters": [
@@ -548,7 +558,7 @@
548
558
  "description": "Unauthorized"
549
559
  },
550
560
  "403": {
551
- "description": "Forbidden - requires develop tier access"
561
+ "description": "Forbidden - access denied to the requested resource"
552
562
  },
553
563
  "404": {
554
564
  "description": "Agent not found"
@@ -567,7 +577,10 @@
567
577
  },
568
578
  "/agent/chat": {
569
579
  "post": {
570
- "operationId": "chat",
580
+ "tags": [
581
+ "Agent / Chat"
582
+ ],
583
+ "operationId": "agent_send",
571
584
  "summary": "Chat with agent",
572
585
  "description": "Send a message to an agent and receive a JSON response.",
573
586
  "parameters": [
@@ -647,10 +660,16 @@
647
660
  "description": "Unauthorized"
648
661
  },
649
662
  "403": {
650
- "description": "Forbidden - requires develop tier access"
663
+ "description": "Forbidden - access denied to the requested resource"
664
+ },
665
+ "404": {
666
+ "description": "Agent or session not found"
651
667
  },
652
668
  "500": {
653
669
  "description": "Server error"
670
+ },
671
+ "504": {
672
+ "description": "Request timed out"
654
673
  }
655
674
  },
656
675
  "security": [
@@ -663,7 +682,10 @@
663
682
  },
664
683
  "/agent/stream-chat": {
665
684
  "post": {
666
- "operationId": "streamChat",
685
+ "tags": [
686
+ "Agent / Chat"
687
+ ],
688
+ "operationId": "agent_stream",
667
689
  "summary": "Chat with agent (streaming)",
668
690
  "description": "Send a message to an agent and receive the response as a Server-Sent Events\n(SSE) stream. Events include message_start, content_delta, tool_use,\ntool_result, message_end, and error.\n",
669
691
  "parameters": [
@@ -712,10 +734,16 @@
712
734
  "description": "Unauthorized"
713
735
  },
714
736
  "403": {
715
- "description": "Forbidden - requires develop tier access"
737
+ "description": "Forbidden - access denied to the requested resource"
738
+ },
739
+ "404": {
740
+ "description": "Agent or session not found"
716
741
  },
717
742
  "500": {
718
743
  "description": "Server error"
744
+ },
745
+ "504": {
746
+ "description": "Request timed out"
719
747
  }
720
748
  },
721
749
  "security": [
@@ -728,7 +756,10 @@
728
756
  },
729
757
  "/agent/chat/messages": {
730
758
  "get": {
731
- "operationId": "getChatMessages",
759
+ "tags": [
760
+ "Agent / Chat"
761
+ ],
762
+ "operationId": "agent_listMessages",
732
763
  "summary": "Get chat messages",
733
764
  "description": "Retrieves a list of chat messages for a given chat session",
734
765
  "parameters": [
@@ -850,10 +881,16 @@
850
881
  "description": "Unauthorized"
851
882
  },
852
883
  "403": {
853
- "description": "Forbidden - requires develop tier access"
884
+ "description": "Forbidden - access denied to the requested resource"
885
+ },
886
+ "404": {
887
+ "description": "Chat session not found"
854
888
  },
855
889
  "500": {
856
890
  "description": "Server error"
891
+ },
892
+ "504": {
893
+ "description": "Request timed out"
857
894
  }
858
895
  },
859
896
  "security": [
@@ -866,7 +903,10 @@
866
903
  },
867
904
  "/agent/prompts": {
868
905
  "post": {
869
- "operationId": "promptsCreate",
906
+ "tags": [
907
+ "Agent / Prompts"
908
+ ],
909
+ "operationId": "agent_createPrompt",
870
910
  "summary": "Create agent prompt",
871
911
  "description": "Creates a new agent prompt",
872
912
  "requestBody": {
@@ -922,7 +962,7 @@
922
962
  "description": "Unauthorized"
923
963
  },
924
964
  "403": {
925
- "description": "Forbidden - requires develop tier access"
965
+ "description": "Forbidden - access denied to the requested resource"
926
966
  },
927
967
  "500": {
928
968
  "description": "Server error"
@@ -938,7 +978,10 @@
938
978
  },
939
979
  "/agent/prompts/list": {
940
980
  "get": {
941
- "operationId": "promptsList",
981
+ "tags": [
982
+ "Agent / Prompts"
983
+ ],
984
+ "operationId": "agent_listPrompts",
942
985
  "summary": "List agent prompts",
943
986
  "description": "Retrieves a list of agent prompts belonging to the authenticated user",
944
987
  "responses": {
@@ -948,6 +991,7 @@
948
991
  "application/json": {
949
992
  "schema": {
950
993
  "type": "object",
994
+ "title": "PromptsListResponse",
951
995
  "properties": {
952
996
  "success": {
953
997
  "type": "boolean",
@@ -999,7 +1043,7 @@
999
1043
  "description": "Unauthorized"
1000
1044
  },
1001
1045
  "403": {
1002
- "description": "Forbidden - requires develop tier access"
1046
+ "description": "Forbidden - access denied to the requested resource"
1003
1047
  },
1004
1048
  "500": {
1005
1049
  "description": "Server error"
@@ -1015,7 +1059,10 @@
1015
1059
  },
1016
1060
  "/agent/prompts/{id}": {
1017
1061
  "get": {
1018
- "operationId": "promptsGet",
1062
+ "tags": [
1063
+ "Agent / Prompts"
1064
+ ],
1065
+ "operationId": "agent_getPrompt",
1019
1066
  "summary": "Get prompt by ID",
1020
1067
  "description": "Retrieves a specific prompt by its ID",
1021
1068
  "parameters": [
@@ -1059,7 +1106,7 @@
1059
1106
  "description": "Unauthorized"
1060
1107
  },
1061
1108
  "403": {
1062
- "description": "Forbidden - requires develop tier access"
1109
+ "description": "Forbidden - access denied to the requested resource"
1063
1110
  },
1064
1111
  "404": {
1065
1112
  "description": "Prompt not found"
@@ -1076,7 +1123,10 @@
1076
1123
  "x-service": "agent"
1077
1124
  },
1078
1125
  "put": {
1079
- "operationId": "promptsUpdate",
1126
+ "tags": [
1127
+ "Agent / Prompts"
1128
+ ],
1129
+ "operationId": "agent_updatePrompt",
1080
1130
  "summary": "Update prompt",
1081
1131
  "description": "Updates an existing prompt",
1082
1132
  "parameters": [
@@ -1144,7 +1194,7 @@
1144
1194
  "description": "Unauthorized"
1145
1195
  },
1146
1196
  "403": {
1147
- "description": "Forbidden - requires develop tier access"
1197
+ "description": "Forbidden - access denied to the requested resource"
1148
1198
  },
1149
1199
  "404": {
1150
1200
  "description": "Prompt not found"
@@ -1161,7 +1211,10 @@
1161
1211
  "x-service": "agent"
1162
1212
  },
1163
1213
  "patch": {
1164
- "operationId": "promptsPatch",
1214
+ "tags": [
1215
+ "Agent / Prompts"
1216
+ ],
1217
+ "operationId": "agent_patchPrompt",
1165
1218
  "summary": "Patch prompt",
1166
1219
  "description": "Patches an existing prompt",
1167
1220
  "parameters": [
@@ -1225,7 +1278,7 @@
1225
1278
  "description": "Unauthorized"
1226
1279
  },
1227
1280
  "403": {
1228
- "description": "Forbidden - requires develop tier access"
1281
+ "description": "Forbidden - access denied to the requested resource"
1229
1282
  },
1230
1283
  "404": {
1231
1284
  "description": "Prompt not found"
@@ -1242,7 +1295,10 @@
1242
1295
  "x-service": "agent"
1243
1296
  },
1244
1297
  "delete": {
1245
- "operationId": "promptsDelete",
1298
+ "tags": [
1299
+ "Agent / Prompts"
1300
+ ],
1301
+ "operationId": "agent_deletePrompt",
1246
1302
  "summary": "Delete prompt",
1247
1303
  "description": "Deletes a prompt",
1248
1304
  "parameters": [
@@ -1263,6 +1319,7 @@
1263
1319
  "application/json": {
1264
1320
  "schema": {
1265
1321
  "type": "object",
1322
+ "title": "PromptsDeleteResponse",
1266
1323
  "properties": {
1267
1324
  "success": {
1268
1325
  "type": "boolean",
@@ -1285,7 +1342,7 @@
1285
1342
  "description": "Unauthorized"
1286
1343
  },
1287
1344
  "403": {
1288
- "description": "Forbidden - requires develop tier access"
1345
+ "description": "Forbidden - access denied to the requested resource"
1289
1346
  },
1290
1347
  "404": {
1291
1348
  "description": "Prompt not found"
@@ -1304,7 +1361,7 @@
1304
1361
  },
1305
1362
  "/auth/token": {
1306
1363
  "post": {
1307
- "operationId": "getLegacyToken",
1364
+ "operationId": "authtoken_getLegacyToken",
1308
1365
  "summary": "Generate authentication token",
1309
1366
  "description": "Generates a JWT token using Basic Authentication with API credential client ID and secret.\n",
1310
1367
  "security": [
@@ -1355,30 +1412,6 @@
1355
1412
  }
1356
1413
  }
1357
1414
  }
1358
- },
1359
- "400": {
1360
- "description": "Bad Request - Missing or malformed Authorization header",
1361
- "content": {
1362
- "application/json": {
1363
- "schema": {
1364
- "type": "object",
1365
- "properties": {
1366
- "code": {
1367
- "type": "integer",
1368
- "example": 400
1369
- },
1370
- "message": {
1371
- "type": "string",
1372
- "example": "Missing Authorization header"
1373
- },
1374
- "data": {
1375
- "type": "object",
1376
- "nullable": true
1377
- }
1378
- }
1379
- }
1380
- }
1381
- }
1382
1415
  }
1383
1416
  },
1384
1417
  "x-service": "auth"
@@ -1386,7 +1419,7 @@
1386
1419
  },
1387
1420
  "/v2/auth/token": {
1388
1421
  "post": {
1389
- "operationId": "getToken",
1422
+ "operationId": "authtoken_getToken",
1390
1423
  "summary": "Request an access token",
1391
1424
  "description": "OAuth 2.0 client credentials token endpoint (RFC 6749 \u00a74.4).\nAccepts client_id and client_secret in the request body (JSON or\nform-encoded) or via Basic Auth header (RFC 6749 \u00a72.3.1), and\nreturns an access token with expiration information.\n",
1392
1425
  "security": [
@@ -1499,7 +1532,10 @@
1499
1532
  },
1500
1533
  "/construe/upload": {
1501
1534
  "post": {
1502
- "operationId": "uploadCodeSystem",
1535
+ "tags": [
1536
+ "Construe / Code Systems"
1537
+ ],
1538
+ "operationId": "construe_upload",
1503
1539
  "summary": "Upload custom code system",
1504
1540
  "description": "Upload a custom medical code system with codes and descriptions for use in code extraction. Requires a paid plan.\nReturns 202 immediately; embedding generation runs asynchronously. Poll\nGET /construe/codes/systems/{codesystem}?version={version} to check when status\ntransitions from \"processing\" to \"ready\" or \"failed\".\n",
1505
1541
  "requestBody": {
@@ -1601,7 +1637,7 @@
1601
1637
  "description": "Code system version already exists (when replace=false)"
1602
1638
  },
1603
1639
  "424": {
1604
- "description": "Failed dependency (processing or embedding generation failed)"
1640
+ "description": "Failed dependency (error processing or storing the code system)"
1605
1641
  },
1606
1642
  "500": {
1607
1643
  "description": "Server error"
@@ -1617,7 +1653,10 @@
1617
1653
  },
1618
1654
  "/construe/extract": {
1619
1655
  "post": {
1620
- "operationId": "extractCodes",
1656
+ "tags": [
1657
+ "Construe / Codes"
1658
+ ],
1659
+ "operationId": "construe_extract",
1621
1660
  "summary": "Extract medical codes from text",
1622
1661
  "description": "Converts natural language text into structured medical codes.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
1623
1662
  "requestBody": {
@@ -1955,7 +1994,10 @@
1955
1994
  },
1956
1995
  "/construe/codes/systems": {
1957
1996
  "get": {
1958
- "operationId": "listCodeSystems",
1997
+ "tags": [
1998
+ "Construe / Code Systems"
1999
+ ],
2000
+ "operationId": "construe_list",
1959
2001
  "summary": "List available code systems",
1960
2002
  "description": "Returns the terminology server's catalog of available code systems, including both built-in standard terminologies and custom uploaded systems.\n",
1961
2003
  "responses": {
@@ -2032,7 +2074,10 @@
2032
2074
  },
2033
2075
  "/construe/codes/systems/{codesystem}": {
2034
2076
  "get": {
2035
- "operationId": "getCodeSystem",
2077
+ "tags": [
2078
+ "Construe / Code Systems"
2079
+ ],
2080
+ "operationId": "construe_find",
2036
2081
  "summary": "Get code system detail",
2037
2082
  "description": "Returns full metadata for a single code system, including timestamps and builtin status.\n",
2038
2083
  "parameters": [
@@ -2098,7 +2143,10 @@
2098
2143
  "x-service": "construe"
2099
2144
  },
2100
2145
  "delete": {
2101
- "operationId": "deleteCodeSystem",
2146
+ "tags": [
2147
+ "Construe / Code Systems"
2148
+ ],
2149
+ "operationId": "construe_delete",
2102
2150
  "summary": "Delete custom code system",
2103
2151
  "description": "Deletes a custom (non-builtin) code system and all its codes. Builtin systems cannot be deleted.\nOnly available on dedicated instances. Large systems may take up to a minute to delete.\n",
2104
2152
  "parameters": [
@@ -2162,7 +2210,10 @@
2162
2210
  },
2163
2211
  "/construe/codes/systems/{codesystem}/export": {
2164
2212
  "get": {
2165
- "operationId": "exportCodeSystem",
2213
+ "tags": [
2214
+ "Construe / Code Systems"
2215
+ ],
2216
+ "operationId": "construe_export",
2166
2217
  "summary": "Export custom code system",
2167
2218
  "description": "Exports a custom (non-builtin) code system as a JSON file compatible with the upload format.\nThe exported file can be re-uploaded directly via POST /construe/upload with format \"json\".\nOnly available on dedicated instances. Builtin systems cannot be exported.\n",
2168
2219
  "parameters": [
@@ -2252,7 +2303,10 @@
2252
2303
  },
2253
2304
  "/construe/codes/{codesystem}": {
2254
2305
  "get": {
2255
- "operationId": "listCodes",
2306
+ "tags": [
2307
+ "Construe / Codes"
2308
+ ],
2309
+ "operationId": "construe_listCodes",
2256
2310
  "summary": "List codes in a code system",
2257
2311
  "description": "Returns a paginated list of all codes in the specified code system from the terminology server.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
2258
2312
  "parameters": [
@@ -2428,7 +2482,10 @@
2428
2482
  },
2429
2483
  "/construe/codes/{codesystem}/{codeID}": {
2430
2484
  "get": {
2431
- "operationId": "getCode",
2485
+ "tags": [
2486
+ "Construe / Codes"
2487
+ ],
2488
+ "operationId": "construe_lookup",
2432
2489
  "summary": "Get a specific code",
2433
2490
  "description": "Looks up a specific code in the terminology server and returns its details.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
2434
2491
  "parameters": [
@@ -2540,7 +2597,10 @@
2540
2597
  },
2541
2598
  "/construe/codes/{codesystem}/search/semantic": {
2542
2599
  "get": {
2543
- "operationId": "searchSemantic",
2600
+ "tags": [
2601
+ "Construe / Codes"
2602
+ ],
2603
+ "operationId": "construe_searchSemantic",
2544
2604
  "summary": "Semantic search (embedding-based)",
2545
2605
  "description": "Performs semantic similarity search using vector embeddings.\n\n**Availability**: This endpoint works for both **built-in and custom** code systems.\n\n**When to use**: Best for natural language queries where you want to find conceptually\nrelated codes, even when different terminology is used. The search understands meaning,\nnot just keywords.\n\n**Examples**:\n- Query \"trouble breathing at night\" finds codes like \"Sleep apnea\", \"Orthopnea\",\n \"Nocturnal dyspnea\" \u2014 semantically related but no exact keyword matches\n- Query \"heart problems\" finds \"Myocardial infarction\", \"Cardiac arrest\", \"Arrhythmia\"\n\n**Trade-offs**: Slower than text search (requires embedding generation), but finds\nconceptually similar results that keyword search would miss.\n\nSee also: `/search/text` for faster keyword-based lookup with typo tolerance.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
2546
2606
  "parameters": [
@@ -2706,7 +2766,7 @@
2706
2766
  },
2707
2767
  "/construe/feedback": {
2708
2768
  "post": {
2709
- "operationId": "submitFeedback",
2769
+ "operationId": "construe_submitFeedback",
2710
2770
  "summary": "Submit feedback on extraction results",
2711
2771
  "description": "Submits user feedback on results from the Construe extraction endpoint.\nFeedback includes the full extraction result received and the result the user expected.\n",
2712
2772
  "requestBody": {
@@ -2786,7 +2846,10 @@
2786
2846
  },
2787
2847
  "/construe/codes/{codesystem}/search/text": {
2788
2848
  "get": {
2789
- "operationId": "searchText",
2849
+ "tags": [
2850
+ "Construe / Codes"
2851
+ ],
2852
+ "operationId": "construe_searchText",
2790
2853
  "summary": "Text search (keyword-based)",
2791
2854
  "description": "Performs fast full-text search over code IDs and descriptions.\n\n**Availability**: This endpoint is only available for **built-in code systems**.\nCustom code systems uploaded via `/construe/upload` are not indexed for full-text search\nand will return empty results. Use `/search/semantic` to search custom code systems.\n\n**When to use**: Best for autocomplete UIs, code lookup, or when users know part of\nthe code ID or specific keywords. Fast response times suitable for typeahead interfaces.\n\n**Features**:\n- Substring matching on code IDs (e.g., \"11.65\" finds \"E11.65\")\n- Typo tolerance on descriptions (not on code IDs)\n- Fast response times (~10-50ms)\n\n**Examples**:\n- Query \"E11\" finds all codes starting with E11 (diabetes codes)\n- Query \"diabtes\" (typo) still finds \"diabetes\" codes\n\n**Trade-offs**: Faster than semantic search, but only matches keywords/substrings.\nWon't find conceptually related codes with different terminology.\n\nSee also: `/search/semantic` for finding conceptually similar codes.\n\nUsage of CPT is subject to AMA requirements: see PhenoML Terms of Service.\n",
2792
2855
  "parameters": [
@@ -2950,8 +3013,8 @@
2950
3013
  "/fhir-provider/{fhir_provider_id}/fhir/{fhir_path}": {
2951
3014
  "get": {
2952
3015
  "summary": "Read or search FHIR resources",
2953
- "description": "Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval and search operations based on the FHIR path and query parameters.\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
2954
- "operationId": "search",
3016
+ "description": "Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval (e.g. `Patient/123` via the path) and search operations.\n\nFHIR 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:\n- Resource-specific search parameters (e.g. `name` for Patient, `status` for Observation)\n- Common search parameters (`_id`, `_lastUpdated`, `_tag`, `_profile`, `_security`, `_text`, `_content`, `_filter`)\n- Result parameters (`_count`, `_offset`, `_sort`, `_include`, `_revinclude`, `_summary`, `_elements`)\n- Search prefixes for dates, numbers, and quantities (`eq`, `ne`, `gt`, `ge`, `lt`, `le`, `sa`, `eb`, `ap`)\n\nExamples:\n- `Patient?name=John%20Doe&_count=10&_sort=family`\n- `Observation?patient=Patient/123&date=ge2023-01-01&category=vital-signs&_sort=-date`\n\nWhen using a generated SDK, supply these via the client's request-level query-parameter option (the SDK escape hatch) rather than a typed argument.\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
3017
+ "operationId": "fhir_search",
2955
3018
  "parameters": [
2956
3019
  {
2957
3020
  "$ref": "#/components/parameters/fhir_FhirProviderIdParam"
@@ -2964,58 +3027,6 @@
2964
3027
  },
2965
3028
  {
2966
3029
  "$ref": "#/components/parameters/fhir_FhirProviderHeader"
2967
- },
2968
- {
2969
- "name": "query_parameters",
2970
- "in": "query",
2971
- "description": "FHIR-compliant query parameters for search operations. Supports standard FHIR search parameters including:\n- Resource-specific search parameters (e.g., name for Patient, status for Observation)\n- Common search parameters (_id, _lastUpdated, _tag, _profile, _security, _text, _content, _filter)\n- Result parameters (_count, _offset, _sort, _include, _revinclude, _summary, _elements)\n- Search prefixes for dates, numbers, quantities (eq, ne, gt, ge, lt, le, sa, eb, ap)\n",
2972
- "schema": {
2973
- "type": "object",
2974
- "additionalProperties": {
2975
- "type": "string"
2976
- }
2977
- },
2978
- "style": "form",
2979
- "explode": true,
2980
- "examples": {
2981
- "patient_name_search": {
2982
- "summary": "Search patients by name with pagination",
2983
- "value": {
2984
- "name": "John Doe",
2985
- "_count": "10",
2986
- "_offset": "0",
2987
- "_sort": "family"
2988
- }
2989
- },
2990
- "patient_advanced_search": {
2991
- "summary": "Advanced patient search with multiple criteria",
2992
- "value": {
2993
- "family": "Doe",
2994
- "given": "John",
2995
- "birthdate": "ge1980-01-01",
2996
- "gender": "male",
2997
- "_include": "Patient:general-practitioner"
2998
- }
2999
- },
3000
- "observation_search": {
3001
- "summary": "Search observations by patient and date range",
3002
- "value": {
3003
- "patient": "Patient/123",
3004
- "date": "ge2023-01-01",
3005
- "category": "vital-signs",
3006
- "_sort": "-date"
3007
- }
3008
- },
3009
- "condition_search": {
3010
- "summary": "Search conditions with text search",
3011
- "value": {
3012
- "patient": "Patient/123",
3013
- "clinical-status": "active",
3014
- "_text": "diabetes",
3015
- "_summary": "true"
3016
- }
3017
- }
3018
- }
3019
3030
  }
3020
3031
  ],
3021
3032
  "responses": {
@@ -3023,16 +3034,7 @@
3023
3034
  "description": "Successfully retrieved FHIR resource(s)",
3024
3035
  "content": {
3025
3036
  "application/json": {
3026
- "schema": {
3027
- "oneOf": [
3028
- {
3029
- "$ref": "#/components/schemas/fhir_FHIRBundle"
3030
- },
3031
- {
3032
- "$ref": "#/components/schemas/fhir_FHIRResource"
3033
- }
3034
- ]
3035
- },
3037
+ "schema": {},
3036
3038
  "examples": {
3037
3039
  "bundle_response": {
3038
3040
  "summary": "Search results as FHIR Bundle",
@@ -3075,27 +3077,6 @@
3075
3077
  }
3076
3078
  }
3077
3079
  }
3078
- },
3079
- "400": {
3080
- "$ref": "#/components/responses/fhir_BadRequest"
3081
- },
3082
- "401": {
3083
- "$ref": "#/components/responses/fhir_Unauthorized"
3084
- },
3085
- "404": {
3086
- "$ref": "#/components/responses/fhir_NotFound"
3087
- },
3088
- "429": {
3089
- "$ref": "#/components/responses/fhir_TooManyRequests"
3090
- },
3091
- "500": {
3092
- "$ref": "#/components/responses/fhir_InternalServerError"
3093
- },
3094
- "502": {
3095
- "$ref": "#/components/responses/fhir_BadGateway"
3096
- },
3097
- "503": {
3098
- "$ref": "#/components/responses/fhir_ServiceUnavailable"
3099
3080
  }
3100
3081
  },
3101
3082
  "security": [
@@ -3108,7 +3089,7 @@
3108
3089
  "post": {
3109
3090
  "summary": "Create FHIR resource",
3110
3091
  "description": "Creates a new FHIR resource on the specified provider. The request body should contain a valid FHIR resource in JSON format.\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
3111
- "operationId": "create",
3092
+ "operationId": "fhir_create",
3112
3093
  "parameters": [
3113
3094
  {
3114
3095
  "$ref": "#/components/parameters/fhir_FhirProviderIdParam"
@@ -3128,9 +3109,7 @@
3128
3109
  "required": true,
3129
3110
  "content": {
3130
3111
  "application/fhir+json": {
3131
- "schema": {
3132
- "$ref": "#/components/schemas/fhir_FHIRResource"
3133
- },
3112
+ "schema": {},
3134
3113
  "examples": {
3135
3114
  "create_patient": {
3136
3115
  "summary": "Create a new patient",
@@ -3147,9 +3126,7 @@
3147
3126
  "description": "Resource created successfully",
3148
3127
  "content": {
3149
3128
  "application/json": {
3150
- "schema": {
3151
- "$ref": "#/components/schemas/fhir_FHIRResource"
3152
- },
3129
+ "schema": {},
3153
3130
  "example": {
3154
3131
  "resourceType": "Patient",
3155
3132
  "id": "456",
@@ -3160,24 +3137,6 @@
3160
3137
  }
3161
3138
  }
3162
3139
  }
3163
- },
3164
- "400": {
3165
- "$ref": "#/components/responses/fhir_BadRequest"
3166
- },
3167
- "401": {
3168
- "$ref": "#/components/responses/fhir_Unauthorized"
3169
- },
3170
- "429": {
3171
- "$ref": "#/components/responses/fhir_TooManyRequests"
3172
- },
3173
- "500": {
3174
- "$ref": "#/components/responses/fhir_InternalServerError"
3175
- },
3176
- "502": {
3177
- "$ref": "#/components/responses/fhir_BadGateway"
3178
- },
3179
- "503": {
3180
- "$ref": "#/components/responses/fhir_ServiceUnavailable"
3181
3140
  }
3182
3141
  },
3183
3142
  "security": [
@@ -3190,7 +3149,7 @@
3190
3149
  "put": {
3191
3150
  "summary": "Upsert FHIR resource",
3192
3151
  "description": "Creates or updates a FHIR resource on the specified provider. If the resource exists, it will be updated; otherwise, it will be created.\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
3193
- "operationId": "upsert",
3152
+ "operationId": "fhir_upsert",
3194
3153
  "parameters": [
3195
3154
  {
3196
3155
  "$ref": "#/components/parameters/fhir_FhirProviderIdParam"
@@ -3210,9 +3169,7 @@
3210
3169
  "required": true,
3211
3170
  "content": {
3212
3171
  "application/fhir+json": {
3213
- "schema": {
3214
- "$ref": "#/components/schemas/fhir_FHIRResource"
3215
- },
3172
+ "schema": {},
3216
3173
  "examples": {
3217
3174
  "upsert_patient": {
3218
3175
  "summary": "Create or update a patient",
@@ -3230,9 +3187,7 @@
3230
3187
  "description": "Resource upserted successfully",
3231
3188
  "content": {
3232
3189
  "application/json": {
3233
- "schema": {
3234
- "$ref": "#/components/schemas/fhir_FHIRResource"
3235
- },
3190
+ "schema": {},
3236
3191
  "example": {
3237
3192
  "resourceType": "Patient",
3238
3193
  "id": "123",
@@ -3243,24 +3198,6 @@
3243
3198
  }
3244
3199
  }
3245
3200
  }
3246
- },
3247
- "400": {
3248
- "$ref": "#/components/responses/fhir_BadRequest"
3249
- },
3250
- "401": {
3251
- "$ref": "#/components/responses/fhir_Unauthorized"
3252
- },
3253
- "429": {
3254
- "$ref": "#/components/responses/fhir_TooManyRequests"
3255
- },
3256
- "500": {
3257
- "$ref": "#/components/responses/fhir_InternalServerError"
3258
- },
3259
- "502": {
3260
- "$ref": "#/components/responses/fhir_BadGateway"
3261
- },
3262
- "503": {
3263
- "$ref": "#/components/responses/fhir_ServiceUnavailable"
3264
3201
  }
3265
3202
  },
3266
3203
  "security": [
@@ -3272,8 +3209,8 @@
3272
3209
  },
3273
3210
  "patch": {
3274
3211
  "summary": "Patch FHIR resource",
3275
- "description": "Partially updates a FHIR resource on the specified provider using JSON Patch operations as defined in RFC 6902.\n\nThe request body should contain an array of JSON Patch operations. Each operation specifies:\n- `op`: The operation type (add, remove, replace, move, copy, test)\n- `path`: JSON Pointer to the target location in the resource\n- `value`: The value to use (required for add, replace, and test operations)\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
3276
- "operationId": "patch",
3212
+ "description": "Partially updates a FHIR resource on the specified provider.\n\nTwo body formats are supported, selected by request content type:\n- `application/json-patch+json` \u2014 an array of JSON Patch operations as defined in RFC 6902. Each operation specifies:\n - `op`: The operation type (add, remove, replace, move, copy, test)\n - `path`: JSON Pointer to the target location in the resource\n - `value`: The value to use (required for add, replace, and test operations)\n- `application/fhir+json` \u2014 a partial FHIR resource for merge-patch semantics.\n\n**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.\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
3213
+ "operationId": "fhir_patch",
3277
3214
  "parameters": [
3278
3215
  {
3279
3216
  "$ref": "#/components/parameters/fhir_FhirProviderIdParam"
@@ -3394,10 +3331,7 @@
3394
3331
  }
3395
3332
  },
3396
3333
  "application/fhir+json": {
3397
- "schema": {
3398
- "type": "object",
3399
- "description": "Alternative: Partial FHIR resource for merge-patch operations \n(support depends on FHIR server implementation)\n"
3400
- },
3334
+ "schema": {},
3401
3335
  "examples": {
3402
3336
  "merge_patch_patient": {
3403
3337
  "summary": "Merge patch format (server-dependent)",
@@ -3421,9 +3355,7 @@
3421
3355
  "description": "Resource patched successfully",
3422
3356
  "content": {
3423
3357
  "application/json": {
3424
- "schema": {
3425
- "$ref": "#/components/schemas/fhir_FHIRResource"
3426
- },
3358
+ "schema": {},
3427
3359
  "example": {
3428
3360
  "resourceType": "Patient",
3429
3361
  "id": "123",
@@ -3434,27 +3366,6 @@
3434
3366
  }
3435
3367
  }
3436
3368
  }
3437
- },
3438
- "400": {
3439
- "$ref": "#/components/responses/fhir_BadRequest"
3440
- },
3441
- "401": {
3442
- "$ref": "#/components/responses/fhir_Unauthorized"
3443
- },
3444
- "404": {
3445
- "$ref": "#/components/responses/fhir_NotFound"
3446
- },
3447
- "429": {
3448
- "$ref": "#/components/responses/fhir_TooManyRequests"
3449
- },
3450
- "500": {
3451
- "$ref": "#/components/responses/fhir_InternalServerError"
3452
- },
3453
- "502": {
3454
- "$ref": "#/components/responses/fhir_BadGateway"
3455
- },
3456
- "503": {
3457
- "$ref": "#/components/responses/fhir_ServiceUnavailable"
3458
3369
  }
3459
3370
  },
3460
3371
  "security": [
@@ -3467,7 +3378,7 @@
3467
3378
  "delete": {
3468
3379
  "summary": "Delete FHIR resource",
3469
3380
  "description": "Deletes a FHIR resource from the specified provider.\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
3470
- "operationId": "delete",
3381
+ "operationId": "fhir_delete",
3471
3382
  "parameters": [
3472
3383
  {
3473
3384
  "$ref": "#/components/parameters/fhir_FhirProviderIdParam"
@@ -3487,10 +3398,7 @@
3487
3398
  "description": "Resource deleted successfully",
3488
3399
  "content": {
3489
3400
  "application/json": {
3490
- "schema": {
3491
- "type": "object",
3492
- "description": "Deletion confirmation or operation outcome"
3493
- },
3401
+ "schema": {},
3494
3402
  "example": {
3495
3403
  "resourceType": "OperationOutcome",
3496
3404
  "issue": [
@@ -3505,27 +3413,6 @@
3505
3413
  }
3506
3414
  }
3507
3415
  }
3508
- },
3509
- "400": {
3510
- "$ref": "#/components/responses/fhir_BadRequest"
3511
- },
3512
- "401": {
3513
- "$ref": "#/components/responses/fhir_Unauthorized"
3514
- },
3515
- "404": {
3516
- "$ref": "#/components/responses/fhir_NotFound"
3517
- },
3518
- "429": {
3519
- "$ref": "#/components/responses/fhir_TooManyRequests"
3520
- },
3521
- "500": {
3522
- "$ref": "#/components/responses/fhir_InternalServerError"
3523
- },
3524
- "502": {
3525
- "$ref": "#/components/responses/fhir_BadGateway"
3526
- },
3527
- "503": {
3528
- "$ref": "#/components/responses/fhir_ServiceUnavailable"
3529
3416
  }
3530
3417
  },
3531
3418
  "security": [
@@ -3540,7 +3427,7 @@
3540
3427
  "post": {
3541
3428
  "summary": "Execute FHIR bundle operation",
3542
3429
  "description": "Executes a FHIR Bundle transaction or batch operation on the specified provider. This allows multiple FHIR resources to be processed in a single request.\n\nThe request body should contain a valid FHIR Bundle resource with transaction or batch type.\n\nThe request is proxied to the configured FHIR server with appropriate authentication headers.\n",
3543
- "operationId": "executeBundle",
3430
+ "operationId": "fhir_executeBundle",
3544
3431
  "parameters": [
3545
3432
  {
3546
3433
  "$ref": "#/components/parameters/fhir_FhirProviderIdParam"
@@ -3557,9 +3444,7 @@
3557
3444
  "required": true,
3558
3445
  "content": {
3559
3446
  "application/fhir+json": {
3560
- "schema": {
3561
- "$ref": "#/components/schemas/fhir_FHIRBundle"
3562
- },
3447
+ "schema": {},
3563
3448
  "examples": {
3564
3449
  "transaction_bundle": {
3565
3450
  "summary": "Transaction bundle with multiple operations",
@@ -3609,9 +3494,7 @@
3609
3494
  "description": "Bundle executed successfully",
3610
3495
  "content": {
3611
3496
  "application/json": {
3612
- "schema": {
3613
- "$ref": "#/components/schemas/fhir_FHIRBundle"
3614
- },
3497
+ "schema": {},
3615
3498
  "examples": {
3616
3499
  "bundle_response": {
3617
3500
  "summary": "Bundle execution response",
@@ -3635,24 +3518,6 @@
3635
3518
  }
3636
3519
  }
3637
3520
  }
3638
- },
3639
- "400": {
3640
- "$ref": "#/components/responses/fhir_BadRequest"
3641
- },
3642
- "401": {
3643
- "$ref": "#/components/responses/fhir_Unauthorized"
3644
- },
3645
- "429": {
3646
- "$ref": "#/components/responses/fhir_TooManyRequests"
3647
- },
3648
- "500": {
3649
- "$ref": "#/components/responses/fhir_InternalServerError"
3650
- },
3651
- "502": {
3652
- "$ref": "#/components/responses/fhir_BadGateway"
3653
- },
3654
- "503": {
3655
- "$ref": "#/components/responses/fhir_ServiceUnavailable"
3656
3521
  }
3657
3522
  },
3658
3523
  "security": [
@@ -3665,7 +3530,7 @@
3665
3530
  },
3666
3531
  "/fhir-provider": {
3667
3532
  "post": {
3668
- "operationId": "create",
3533
+ "operationId": "fhir_provider_create",
3669
3534
  "summary": "Create FHIR provider",
3670
3535
  "description": "Creates a new FHIR provider configuration with authentication credentials.\n\nNote: The \"sandbox\" provider type cannot be created via this API - it is managed internally.\n",
3671
3536
  "requestBody": {
@@ -3747,7 +3612,7 @@
3747
3612
  },
3748
3613
  "/fhir-provider/list": {
3749
3614
  "get": {
3750
- "operationId": "list",
3615
+ "operationId": "fhir_provider_list",
3751
3616
  "summary": "List FHIR providers",
3752
3617
  "description": "Retrieves a list of all active FHIR providers for the authenticated user.\n\nOn shared instances, only sandbox providers are returned.\nSandbox providers return FhirProviderSandboxInfo.\n",
3753
3618
  "responses": {
@@ -3809,7 +3674,7 @@
3809
3674
  },
3810
3675
  "/fhir-provider/{fhir_provider_id}": {
3811
3676
  "get": {
3812
- "operationId": "get",
3677
+ "operationId": "fhir_provider_get",
3813
3678
  "summary": "Get FHIR provider by ID",
3814
3679
  "description": "Retrieves a specific FHIR provider configuration by its ID.\n\nSandbox providers return FhirProviderSandboxInfo.\nOn shared instances, only sandbox providers can be accessed.\n",
3815
3680
  "parameters": [
@@ -3875,7 +3740,7 @@
3875
3740
  "x-service": "fhir"
3876
3741
  },
3877
3742
  "delete": {
3878
- "operationId": "delete",
3743
+ "operationId": "fhir_provider_delete",
3879
3744
  "summary": "Delete FHIR provider",
3880
3745
  "description": "Deletes a FHIR provider.\n\nNote: Sandbox providers cannot be deleted.\n",
3881
3746
  "parameters": [
@@ -3918,7 +3783,7 @@
3918
3783
  "description": "Unauthorized"
3919
3784
  },
3920
3785
  "403": {
3921
- "description": "Forbidden - only available on dedicated instances"
3786
+ "description": "Forbidden - dedicated instance required, or sandbox provider cannot be modified"
3922
3787
  },
3923
3788
  "404": {
3924
3789
  "description": "FHIR provider not found"
@@ -3937,7 +3802,10 @@
3937
3802
  },
3938
3803
  "/fhir-provider/{fhir_provider_id}/add-auth-config": {
3939
3804
  "patch": {
3940
- "operationId": "addAuthConfig",
3805
+ "tags": [
3806
+ "FHIR / Auth Config"
3807
+ ],
3808
+ "operationId": "fhir_provider_add",
3941
3809
  "summary": "Add authentication configuration",
3942
3810
  "description": "Adds a new authentication configuration to an existing FHIR provider.\nThis enables key rotation and multiple auth configurations per provider.\n\nNote: Sandbox providers cannot be modified.\n",
3943
3811
  "parameters": [
@@ -4018,7 +3886,7 @@
4018
3886
  "description": "Unauthorized"
4019
3887
  },
4020
3888
  "403": {
4021
- "description": "Forbidden - only available on dedicated instances"
3889
+ "description": "Forbidden - dedicated instance required, or sandbox provider cannot be modified"
4022
3890
  },
4023
3891
  "404": {
4024
3892
  "description": "FHIR provider not found"
@@ -4037,7 +3905,10 @@
4037
3905
  },
4038
3906
  "/fhir-provider/{fhir_provider_id}/set-active-auth-config": {
4039
3907
  "patch": {
4040
- "operationId": "setActiveAuthConfig",
3908
+ "tags": [
3909
+ "FHIR / Auth Config"
3910
+ ],
3911
+ "operationId": "fhir_provider_setActive",
4041
3912
  "summary": "Set active authentication configuration",
4042
3913
  "description": "Sets which authentication configuration should be active for a FHIR provider.\nOnly one auth config can be active at a time.\n\nIf the specified auth config is already active, the request succeeds without\nmaking any changes and returns a message indicating the config is already active.\n\nNote: Sandbox providers cannot be modified.\n",
4043
3914
  "parameters": [
@@ -4115,7 +3986,7 @@
4115
3986
  "description": "Unauthorized"
4116
3987
  },
4117
3988
  "403": {
4118
- "description": "Forbidden - only available on dedicated instances"
3989
+ "description": "Forbidden - dedicated instance required, or sandbox provider cannot be modified"
4119
3990
  },
4120
3991
  "404": {
4121
3992
  "description": "FHIR provider or auth config not found"
@@ -4134,7 +4005,10 @@
4134
4005
  },
4135
4006
  "/fhir-provider/{fhir_provider_id}/remove-auth-config": {
4136
4007
  "patch": {
4137
- "operationId": "removeAuthConfig",
4008
+ "tags": [
4009
+ "FHIR / Auth Config"
4010
+ ],
4011
+ "operationId": "fhir_provider_remove",
4138
4012
  "summary": "Remove authentication configuration",
4139
4013
  "description": "Removes an authentication configuration from a FHIR provider.\nCannot remove the currently active auth configuration.\n\nNote: Sandbox providers cannot be modified.\n",
4140
4014
  "parameters": [
@@ -4215,7 +4089,7 @@
4215
4089
  "description": "Unauthorized"
4216
4090
  },
4217
4091
  "403": {
4218
- "description": "Forbidden - only available on dedicated instances"
4092
+ "description": "Forbidden - dedicated instance required, or sandbox provider cannot be modified"
4219
4093
  },
4220
4094
  "404": {
4221
4095
  "description": "FHIR provider or auth config not found"
@@ -4234,7 +4108,7 @@
4234
4108
  },
4235
4109
  "/cohort": {
4236
4110
  "post": {
4237
- "operationId": "analyze",
4111
+ "operationId": "cohort_analyze",
4238
4112
  "summary": "Analyze text for patient cohort criteria",
4239
4113
  "description": "Converts natural language text into structured FHIR search queries for patient cohort analysis",
4240
4114
  "requestBody": {
@@ -4305,7 +4179,7 @@
4305
4179
  },
4306
4180
  "/lang2fhir/create": {
4307
4181
  "post": {
4308
- "operationId": "create",
4182
+ "operationId": "lang2fhir_create",
4309
4183
  "summary": "Create FHIR resource from text",
4310
4184
  "description": "Converts natural language text into a structured FHIR resource.\n\n**Patient identifier handling.** When generating a `patient` (or `patient-canvas`) resource, US Core requires `Patient.identifier` (a business identifier such as an MRN). When the source text contains an identifier, it is extracted with an appropriate URI system. When the source text does not contain a detectable identifier, a synthetic one is generated with `system: \"urn:phenoml:lang2fhir-generated-id\"` and a UUID `value` so the resource remains FHIR-valid and US Core conformant. Callers who need a tenant-specific namespace should rewrite the synthetic system after extraction.\n",
4311
4185
  "requestBody": {
@@ -4433,6 +4307,12 @@
4433
4307
  "401": {
4434
4308
  "description": "Unauthorized"
4435
4309
  },
4310
+ "404": {
4311
+ "description": "Profile not found"
4312
+ },
4313
+ "422": {
4314
+ "description": "Generated FHIR resource failed validation"
4315
+ },
4436
4316
  "500": {
4437
4317
  "description": "Server error"
4438
4318
  }
@@ -4447,7 +4327,7 @@
4447
4327
  },
4448
4328
  "/lang2fhir/create/multi": {
4449
4329
  "post": {
4450
- "operationId": "createMulti",
4330
+ "operationId": "lang2fhir_createMulti",
4451
4331
  "summary": "Extract multiple FHIR resources from text",
4452
4332
  "description": "Analyzes natural language text and extracts multiple FHIR resources, returning them as a transaction Bundle.\nAutomatically detects Patient, Condition, MedicationRequest, Observation, and other resource types from the text.\nResources are linked with proper references (e.g., Conditions reference the Patient).\n\n**Patient identifier handling.** US Core requires `Patient.identifier` (a business identifier such as an MRN). When the source text contains an identifier, it is extracted with an appropriate URI system. When the source text does not contain a detectable identifier, a synthetic one is generated with `system: \"urn:phenoml:lang2fhir-generated-id\"` and a UUID `value` so the bundle remains FHIR-valid and US Core conformant. Callers who need a tenant-specific namespace should rewrite the synthetic system after extraction.\n",
4453
4333
  "requestBody": {
@@ -4547,6 +4427,12 @@
4547
4427
  "401": {
4548
4428
  "description": "Unauthorized"
4549
4429
  },
4430
+ "404": {
4431
+ "description": "Profile not found"
4432
+ },
4433
+ "422": {
4434
+ "description": "Generated FHIR resource failed validation"
4435
+ },
4550
4436
  "500": {
4551
4437
  "description": "Server error"
4552
4438
  }
@@ -4561,7 +4447,7 @@
4561
4447
  },
4562
4448
  "/lang2fhir/search": {
4563
4449
  "post": {
4564
- "operationId": "search",
4450
+ "operationId": "lang2fhir_search",
4565
4451
  "summary": "Generate FHIR search parameters from text",
4566
4452
  "description": "Converts natural language text into FHIR search parameters.\nAutomatically identifies the appropriate FHIR resource type and generates valid search query parameters.\n\nSupported resource types include: AllergyIntolerance, Appointment, CarePlan, CareTeam, Condition,\nCoverage, Device, DiagnosticReport, DocumentReference, Encounter, Goal, Immunization, Location,\nMedication, MedicationRequest, Observation, Organization, Patient, PlanDefinition, Practitioner,\nPractitionerRole, Procedure, Provenance, Questionnaire, QuestionnaireResponse, RelatedPerson,\nSchedule, ServiceRequest, Slot, and Specimen.\n",
4567
4453
  "requestBody": {
@@ -4595,8 +4481,8 @@
4595
4481
  "search_appointments": {
4596
4482
  "summary": "Search Appointments",
4597
4483
  "value": {
4598
- "resourceType": "Appointment",
4599
- "searchParams": "date=ge2025-03-02&date=le2025-03-09"
4484
+ "resource_type": "Appointment",
4485
+ "search_params": "date=ge2025-03-02&date=le2025-03-09"
4600
4486
  }
4601
4487
  }
4602
4488
  }
@@ -4609,9 +4495,6 @@
4609
4495
  "401": {
4610
4496
  "description": "Unauthorized"
4611
4497
  },
4612
- "424": {
4613
- "description": "Internal Dependency Failure"
4614
- },
4615
4498
  "500": {
4616
4499
  "description": "Server error"
4617
4500
  }
@@ -4626,7 +4509,7 @@
4626
4509
  },
4627
4510
  "/lang2fhir/profile/upload": {
4628
4511
  "post": {
4629
- "operationId": "uploadProfile",
4512
+ "operationId": "lang2fhir_uploadProfile",
4630
4513
  "summary": "Upload custom FHIR profile",
4631
4514
  "description": "Upload a custom FHIR StructureDefinition profile for use with the lang2fhir service.\n\nAll metadata is derived from the StructureDefinition JSON itself. The lowercase `id` field\nfrom the StructureDefinition is used as the profile's unique identifier and lookup key.\nTo use the uploaded profile with `/lang2fhir/create`, pass this id as the `resource` parameter.\n\nUploads will be rejected if:\n- A built-in US Core or R4 base profile already exists with the same id\n- A custom profile with the same id has already been uploaded\n- A custom profile with the same url has already been uploaded\n",
4632
4515
  "requestBody": {
@@ -4689,7 +4572,7 @@
4689
4572
  "description": "Unauthorized"
4690
4573
  },
4691
4574
  "403": {
4692
- "description": "Forbidden - requires develop or launch tier access"
4575
+ "description": "Forbidden - profile upload is only available on dedicated instances"
4693
4576
  },
4694
4577
  "500": {
4695
4578
  "description": "Server error"
@@ -4705,7 +4588,7 @@
4705
4588
  },
4706
4589
  "/lang2fhir/document": {
4707
4590
  "post": {
4708
- "operationId": "document",
4591
+ "operationId": "lang2fhir_document",
4709
4592
  "summary": "Convert document to FHIR resource",
4710
4593
  "description": "Extracts text from a document (PDF or image) and converts it into a structured FHIR resource.\n\n**Patient identifier handling.** When generating a `patient` (or `patient-canvas`) resource, US Core requires `Patient.identifier` (a business identifier such as an MRN). When the source text contains an identifier, it is extracted with an appropriate URI system. When the source text does not contain a detectable identifier, a synthetic one is generated with `system: \"urn:phenoml:lang2fhir-generated-id\"` and a UUID `value` so the resource remains FHIR-valid and US Core conformant. Callers who need a tenant-specific namespace should rewrite the synthetic system after extraction.\n",
4711
4594
  "requestBody": {
@@ -4757,8 +4640,20 @@
4757
4640
  "401": {
4758
4641
  "description": "Unauthorized"
4759
4642
  },
4643
+ "404": {
4644
+ "description": "Profile not found"
4645
+ },
4646
+ "422": {
4647
+ "description": "Document could not be processed or generated resource failed validation"
4648
+ },
4649
+ "499": {
4650
+ "description": "Client closed request before response was ready"
4651
+ },
4760
4652
  "500": {
4761
4653
  "description": "Server error"
4654
+ },
4655
+ "504": {
4656
+ "description": "Request timed out"
4762
4657
  }
4763
4658
  },
4764
4659
  "security": [
@@ -4771,7 +4666,7 @@
4771
4666
  },
4772
4667
  "/lang2fhir/document/multi": {
4773
4668
  "post": {
4774
- "operationId": "documentMulti",
4669
+ "operationId": "lang2fhir_documentMulti",
4775
4670
  "summary": "Extract multiple FHIR resources from a document",
4776
4671
  "description": "Extracts text from a document (PDF or image) and converts it into multiple FHIR resources,\nreturned as a transaction Bundle. Combines document text extraction with multi-resource detection.\nAutomatically detects Patient, Condition, MedicationRequest, Observation, and other resource types.\nResources are linked with proper references (e.g., Conditions reference the Patient).\n\n**Patient identifier handling.** US Core requires `Patient.identifier` (a business identifier such as an MRN). When the source text contains an identifier, it is extracted with an appropriate URI system. When the source text does not contain a detectable identifier, a synthetic one is generated with `system: \"urn:phenoml:lang2fhir-generated-id\"` and a UUID `value` so the bundle remains FHIR-valid and US Core conformant. Callers who need a tenant-specific namespace should rewrite the synthetic system after extraction.\n",
4777
4672
  "requestBody": {
@@ -4888,11 +4783,20 @@
4888
4783
  "401": {
4889
4784
  "description": "Unauthorized"
4890
4785
  },
4786
+ "404": {
4787
+ "description": "Profile not found"
4788
+ },
4891
4789
  "422": {
4892
- "description": "Document could not be processed"
4790
+ "description": "Document could not be processed or generated resource failed validation"
4791
+ },
4792
+ "499": {
4793
+ "description": "Client closed request before response was ready"
4893
4794
  },
4894
4795
  "500": {
4895
4796
  "description": "Server error"
4797
+ },
4798
+ "504": {
4799
+ "description": "Request timed out"
4896
4800
  }
4897
4801
  },
4898
4802
  "security": [
@@ -4905,7 +4809,10 @@
4905
4809
  },
4906
4810
  "/fhir2summary/templates": {
4907
4811
  "get": {
4908
- "operationId": "listTemplates",
4812
+ "tags": [
4813
+ "Summary / Templates"
4814
+ ],
4815
+ "operationId": "summary_list",
4909
4816
  "summary": "List all summary templates",
4910
4817
  "description": "Retrieves all summary templates for the authenticated user",
4911
4818
  "responses": {
@@ -4965,7 +4872,10 @@
4965
4872
  },
4966
4873
  "/fhir2summary/template": {
4967
4874
  "post": {
4968
- "operationId": "createTemplate",
4875
+ "tags": [
4876
+ "Summary / Templates"
4877
+ ],
4878
+ "operationId": "summary_createTemplate",
4969
4879
  "summary": "Create a new summary template",
4970
4880
  "description": "Creates a summary template from an example using LLM function calling",
4971
4881
  "requestBody": {
@@ -5048,7 +4958,10 @@
5048
4958
  },
5049
4959
  "/fhir2summary/template/{id}": {
5050
4960
  "get": {
5051
- "operationId": "getTemplate",
4961
+ "tags": [
4962
+ "Summary / Templates"
4963
+ ],
4964
+ "operationId": "summary_get",
5052
4965
  "summary": "Get a summary template by ID",
5053
4966
  "description": "Retrieves a specific summary template",
5054
4967
  "parameters": [
@@ -5118,7 +5031,10 @@
5118
5031
  "x-service": "summary"
5119
5032
  },
5120
5033
  "put": {
5121
- "operationId": "updateTemplate",
5034
+ "tags": [
5035
+ "Summary / Templates"
5036
+ ],
5037
+ "operationId": "summary_update",
5122
5038
  "summary": "Update a summary template",
5123
5039
  "description": "Updates an existing summary template",
5124
5040
  "parameters": [
@@ -5215,7 +5131,10 @@
5215
5131
  "x-service": "summary"
5216
5132
  },
5217
5133
  "delete": {
5218
- "operationId": "deleteTemplate",
5134
+ "tags": [
5135
+ "Summary / Templates"
5136
+ ],
5137
+ "operationId": "summary_delete",
5219
5138
  "summary": "Delete a summary template",
5220
5139
  "description": "Deletes a summary template",
5221
5140
  "parameters": [
@@ -5275,7 +5194,7 @@
5275
5194
  },
5276
5195
  "/fhir2summary/create": {
5277
5196
  "post": {
5278
- "operationId": "create",
5197
+ "operationId": "summary_create",
5279
5198
  "summary": "Generate a summary from FHIR resources",
5280
5199
  "description": "Creates a summary from FHIR resources using one of three modes:\n- **narrative**: Uses a template to substitute FHIR data into placeholders (requires template_id)\n- **flatten**: Flattens FHIR resources into a searchable format for RAG/search (no template needed)\n- **ips**: Generates an International Patient Summary (IPS) narrative per ISO 27269/HL7 FHIR IPS IG. Requires a Bundle with exactly one Patient resource (returns 400 error if no Patient or multiple Patients are present). Automatically filters resources to those referencing the patient and generates sections for allergies, medications, problems, immunizations, procedures, and vital signs.\n",
5281
5200
  "requestBody": {
@@ -5428,7 +5347,7 @@
5428
5347
  },
5429
5348
  "/tools/lang2fhir-and-create": {
5430
5349
  "post": {
5431
- "operationId": "createFhirResource",
5350
+ "operationId": "tools_createFhirResource",
5432
5351
  "summary": "Create FHIR resource from text and store it",
5433
5352
  "description": "Converts natural language to FHIR resource and optionally stores it in a FHIR server",
5434
5353
  "parameters": [
@@ -5520,10 +5439,7 @@
5520
5439
  "description": "Unauthorized"
5521
5440
  },
5522
5441
  "403": {
5523
- "description": "Forbidden - requires develop tier access"
5524
- },
5525
- "424": {
5526
- "description": "Failed Dependency - lang2fhir service error"
5442
+ "description": "Forbidden - access denied to the requested resource"
5527
5443
  },
5528
5444
  "500": {
5529
5445
  "description": "Server error"
@@ -5539,7 +5455,7 @@
5539
5455
  },
5540
5456
  "/tools/lang2fhir-and-create-multi": {
5541
5457
  "post": {
5542
- "operationId": "createFhirResourcesMulti",
5458
+ "operationId": "tools_createFhirResourcesMulti",
5543
5459
  "summary": "Extract and store multiple FHIR resources",
5544
5460
  "description": "Extracts multiple FHIR resources from natural language text and stores them in a FHIR server.\nAutomatically detects Patient, Condition, MedicationRequest, Observation, and other resource types.\nResources are linked with proper references and submitted as a transaction bundle.\nFor FHIR servers that don't auto-resolve urn:uuid references, this endpoint will automatically\nresolve them via PUT requests after the initial bundle creation.\n",
5545
5461
  "parameters": [
@@ -5628,10 +5544,7 @@
5628
5544
  "description": "Unauthorized"
5629
5545
  },
5630
5546
  "403": {
5631
- "description": "Forbidden - requires develop tier access"
5632
- },
5633
- "424": {
5634
- "description": "Failed Dependency - lang2fhir service error"
5547
+ "description": "Forbidden - access denied to the requested resource"
5635
5548
  },
5636
5549
  "500": {
5637
5550
  "description": "Server error"
@@ -5647,7 +5560,7 @@
5647
5560
  },
5648
5561
  "/tools/lang2fhir-and-search": {
5649
5562
  "post": {
5650
- "operationId": "searchFhirResources",
5563
+ "operationId": "tools_searchFhirResources",
5651
5564
  "summary": "Search FHIR resources from natural language",
5652
5565
  "description": "Converts natural language to FHIR search parameters and executes search in FHIR server",
5653
5566
  "parameters": [
@@ -5714,10 +5627,7 @@
5714
5627
  "description": "Unauthorized"
5715
5628
  },
5716
5629
  "403": {
5717
- "description": "Forbidden - requires develop tier access"
5718
- },
5719
- "424": {
5720
- "description": "Failed Dependency - lang2fhir service error"
5630
+ "description": "Forbidden - access denied to the requested resource"
5721
5631
  },
5722
5632
  "500": {
5723
5633
  "description": "Server error"
@@ -5733,7 +5643,7 @@
5733
5643
  },
5734
5644
  "/tools/cohort": {
5735
5645
  "post": {
5736
- "operationId": "analyzeCohort",
5646
+ "operationId": "tools_analyzeCohort",
5737
5647
  "summary": "Analyze patient cohorts",
5738
5648
  "description": "Uses LLM to extract search concepts from natural language and builds patient cohorts with inclusion/exclusion criteria",
5739
5649
  "parameters": [
@@ -5806,7 +5716,7 @@
5806
5716
  "description": "Unauthorized"
5807
5717
  },
5808
5718
  "403": {
5809
- "description": "Forbidden - requires develop tier access"
5719
+ "description": "Forbidden - access denied to the requested resource"
5810
5720
  },
5811
5721
  "500": {
5812
5722
  "description": "Server error"
@@ -5822,7 +5732,10 @@
5822
5732
  },
5823
5733
  "/tools/mcp-server/create": {
5824
5734
  "post": {
5825
- "operationId": "mcpServerCreate",
5735
+ "tags": [
5736
+ "Tools / MCP Servers"
5737
+ ],
5738
+ "operationId": "tools_create",
5826
5739
  "summary": "Create MCP server",
5827
5740
  "description": "Creates a new MCP server",
5828
5741
  "requestBody": {
@@ -5891,7 +5804,7 @@
5891
5804
  "description": "Unauthorized"
5892
5805
  },
5893
5806
  "403": {
5894
- "description": "Forbidden - requires develop tier access"
5807
+ "description": "Forbidden - MCP server endpoints require a dedicated instance, or access denied to this resource"
5895
5808
  },
5896
5809
  "500": {
5897
5810
  "description": "Server error"
@@ -5907,7 +5820,10 @@
5907
5820
  },
5908
5821
  "/tools/mcp-server/list": {
5909
5822
  "get": {
5910
- "operationId": "mcpServerList",
5823
+ "tags": [
5824
+ "Tools / MCP Servers"
5825
+ ],
5826
+ "operationId": "tools_list",
5911
5827
  "summary": "List MCP servers",
5912
5828
  "description": "Lists all MCP servers for a specific user",
5913
5829
  "responses": {
@@ -5943,7 +5859,7 @@
5943
5859
  "description": "Unauthorized"
5944
5860
  },
5945
5861
  "403": {
5946
- "description": "Forbidden - requires develop tier access"
5862
+ "description": "Forbidden - MCP server endpoints require a dedicated instance, or access denied to this resource"
5947
5863
  },
5948
5864
  "500": {
5949
5865
  "description": "Server error"
@@ -5959,7 +5875,10 @@
5959
5875
  },
5960
5876
  "/tools/mcp-server/{mcp_server_id}": {
5961
5877
  "get": {
5962
- "operationId": "mcpServerGet",
5878
+ "tags": [
5879
+ "Tools / MCP Servers"
5880
+ ],
5881
+ "operationId": "tools_get",
5963
5882
  "summary": "Get MCP server by ID",
5964
5883
  "description": "Gets a MCP server by ID",
5965
5884
  "parameters": [
@@ -5998,7 +5917,10 @@
5998
5917
  "description": "Unauthorized"
5999
5918
  },
6000
5919
  "403": {
6001
- "description": "Forbidden - requires develop tier access"
5920
+ "description": "Forbidden - MCP server endpoints require a dedicated instance, or access denied to this resource"
5921
+ },
5922
+ "404": {
5923
+ "description": "MCP server not found"
6002
5924
  },
6003
5925
  "500": {
6004
5926
  "description": "Server error"
@@ -6012,7 +5934,10 @@
6012
5934
  "x-service": "tools"
6013
5935
  },
6014
5936
  "delete": {
6015
- "operationId": "mcpServerDelete",
5937
+ "tags": [
5938
+ "Tools / MCP Servers"
5939
+ ],
5940
+ "operationId": "tools_delete",
6016
5941
  "summary": "Delete MCP server by ID",
6017
5942
  "description": "Deletes a MCP server by ID",
6018
5943
  "parameters": [
@@ -6045,7 +5970,10 @@
6045
5970
  "description": "Unauthorized"
6046
5971
  },
6047
5972
  "403": {
6048
- "description": "Forbidden - requires develop tier access"
5973
+ "description": "Forbidden - MCP server endpoints require a dedicated instance, or access denied to this resource"
5974
+ },
5975
+ "404": {
5976
+ "description": "MCP server not found"
6049
5977
  },
6050
5978
  "500": {
6051
5979
  "description": "Server error"
@@ -6061,7 +5989,10 @@
6061
5989
  },
6062
5990
  "/tools/mcp-server/{mcp_server_id}/list": {
6063
5991
  "get": {
6064
- "operationId": "mcpServerToolsList",
5992
+ "tags": [
5993
+ "Tools / MCP Tools"
5994
+ ],
5995
+ "operationId": "tools_listTools",
6065
5996
  "summary": "List MCP server tools",
6066
5997
  "description": "Lists all MCP server tools for a specific MCP server",
6067
5998
  "parameters": [
@@ -6116,7 +6047,7 @@
6116
6047
  "description": "Unauthorized"
6117
6048
  },
6118
6049
  "403": {
6119
- "description": "Forbidden - requires develop tier access"
6050
+ "description": "Forbidden - MCP server endpoints require a dedicated instance, or access denied to this resource"
6120
6051
  },
6121
6052
  "500": {
6122
6053
  "description": "Server error"
@@ -6132,7 +6063,10 @@
6132
6063
  },
6133
6064
  "/tools/mcp-server/tool/{mcp_server_tool_id}": {
6134
6065
  "get": {
6135
- "operationId": "mcpServerToolsGet",
6066
+ "tags": [
6067
+ "Tools / MCP Tools"
6068
+ ],
6069
+ "operationId": "tools_getTool",
6136
6070
  "summary": "Get MCP server tool by ID",
6137
6071
  "description": "Gets a MCP server tool by ID",
6138
6072
  "parameters": [
@@ -6176,7 +6110,10 @@
6176
6110
  "description": "Unauthorized"
6177
6111
  },
6178
6112
  "403": {
6179
- "description": "Forbidden - requires develop tier access"
6113
+ "description": "Forbidden - MCP server endpoints require a dedicated instance, or access denied to this resource"
6114
+ },
6115
+ "404": {
6116
+ "description": "MCP server tool not found"
6180
6117
  },
6181
6118
  "500": {
6182
6119
  "description": "Server error"
@@ -6190,7 +6127,10 @@
6190
6127
  "x-service": "tools"
6191
6128
  },
6192
6129
  "delete": {
6193
- "operationId": "mcpServerToolsDelete",
6130
+ "tags": [
6131
+ "Tools / MCP Tools"
6132
+ ],
6133
+ "operationId": "tools_deleteTool",
6194
6134
  "summary": "Delete MCP server tool by ID",
6195
6135
  "description": "Deletes a MCP server tool by ID",
6196
6136
  "parameters": [
@@ -6223,7 +6163,10 @@
6223
6163
  "description": "Unauthorized"
6224
6164
  },
6225
6165
  "403": {
6226
- "description": "Forbidden - requires develop tier access"
6166
+ "description": "Forbidden - MCP server endpoints require a dedicated instance, or access denied to this resource"
6167
+ },
6168
+ "404": {
6169
+ "description": "MCP server tool not found"
6227
6170
  },
6228
6171
  "500": {
6229
6172
  "description": "Server error"
@@ -6239,7 +6182,7 @@
6239
6182
  },
6240
6183
  "/workflows": {
6241
6184
  "get": {
6242
- "operationId": "list",
6185
+ "operationId": "workflows_list",
6243
6186
  "summary": "List all workflows",
6244
6187
  "description": "Retrieves all workflow definitions for the authenticated user",
6245
6188
  "parameters": [
@@ -6312,7 +6255,7 @@
6312
6255
  "description": "Unauthorized"
6313
6256
  },
6314
6257
  "403": {
6315
- "description": "Forbidden - requires develop tier access"
6258
+ "description": "Forbidden - access denied to the requested workflow"
6316
6259
  },
6317
6260
  "500": {
6318
6261
  "description": "Server error"
@@ -6326,7 +6269,7 @@
6326
6269
  "x-service": "workflow"
6327
6270
  },
6328
6271
  "post": {
6329
- "operationId": "create",
6272
+ "operationId": "workflows_create",
6330
6273
  "summary": "Create new workflow",
6331
6274
  "description": "Creates a new workflow definition with graph generation from workflow instructions",
6332
6275
  "parameters": [
@@ -6409,7 +6352,7 @@
6409
6352
  "description": "Unauthorized"
6410
6353
  },
6411
6354
  "403": {
6412
- "description": "Forbidden - requires develop tier access"
6355
+ "description": "Forbidden - access denied to the requested workflow"
6413
6356
  },
6414
6357
  "500": {
6415
6358
  "description": "Server error"
@@ -6425,7 +6368,7 @@
6425
6368
  },
6426
6369
  "/workflows/{id}": {
6427
6370
  "get": {
6428
- "operationId": "get",
6371
+ "operationId": "workflows_get",
6429
6372
  "summary": "Get workflow by ID",
6430
6373
  "description": "Retrieves a workflow definition by its ID",
6431
6374
  "parameters": [
@@ -6518,13 +6461,16 @@
6518
6461
  "description": "Unauthorized"
6519
6462
  },
6520
6463
  "403": {
6521
- "description": "Forbidden - requires develop tier access"
6464
+ "description": "Forbidden - access denied to the requested workflow"
6522
6465
  },
6523
6466
  "404": {
6524
6467
  "description": "Workflow not found"
6525
6468
  },
6526
6469
  "500": {
6527
6470
  "description": "Server error"
6471
+ },
6472
+ "504": {
6473
+ "description": "Request timed out"
6528
6474
  }
6529
6475
  },
6530
6476
  "security": [
@@ -6535,7 +6481,7 @@
6535
6481
  "x-service": "workflow"
6536
6482
  },
6537
6483
  "put": {
6538
- "operationId": "update",
6484
+ "operationId": "workflows_update",
6539
6485
  "summary": "Update workflow",
6540
6486
  "description": "Updates an existing workflow definition",
6541
6487
  "parameters": [
@@ -6651,13 +6597,16 @@
6651
6597
  "description": "Unauthorized"
6652
6598
  },
6653
6599
  "403": {
6654
- "description": "Forbidden - requires develop tier access"
6600
+ "description": "Forbidden - access denied to the requested workflow"
6655
6601
  },
6656
6602
  "404": {
6657
6603
  "description": "Workflow not found"
6658
6604
  },
6659
6605
  "500": {
6660
6606
  "description": "Server error"
6607
+ },
6608
+ "504": {
6609
+ "description": "Request timed out"
6661
6610
  }
6662
6611
  },
6663
6612
  "security": [
@@ -6668,7 +6617,7 @@
6668
6617
  "x-service": "workflow"
6669
6618
  },
6670
6619
  "delete": {
6671
- "operationId": "delete",
6620
+ "operationId": "workflows_delete",
6672
6621
  "summary": "Delete workflow",
6673
6622
  "description": "Deletes a workflow definition by its ID",
6674
6623
  "parameters": [
@@ -6712,13 +6661,16 @@
6712
6661
  "description": "Unauthorized"
6713
6662
  },
6714
6663
  "403": {
6715
- "description": "Forbidden - requires develop tier access"
6664
+ "description": "Forbidden - access denied to the requested workflow"
6716
6665
  },
6717
6666
  "404": {
6718
6667
  "description": "Workflow not found"
6719
6668
  },
6720
6669
  "500": {
6721
6670
  "description": "Server error"
6671
+ },
6672
+ "504": {
6673
+ "description": "Request timed out"
6722
6674
  }
6723
6675
  },
6724
6676
  "security": [
@@ -6731,7 +6683,7 @@
6731
6683
  },
6732
6684
  "/workflows/{id}/execute": {
6733
6685
  "post": {
6734
- "operationId": "execute",
6686
+ "operationId": "workflows_execute",
6735
6687
  "summary": "Execute workflow",
6736
6688
  "description": "Executes a workflow with provided input data and returns results",
6737
6689
  "parameters": [
@@ -6948,7 +6900,7 @@
6948
6900
  "description": "Unauthorized"
6949
6901
  },
6950
6902
  "403": {
6951
- "description": "Forbidden - requires develop tier access"
6903
+ "description": "Forbidden - access denied to the requested workflow"
6952
6904
  },
6953
6905
  "404": {
6954
6906
  "description": "Workflow not found"
@@ -8360,134 +8312,6 @@
8360
8312
  }
8361
8313
  }
8362
8314
  },
8363
- "fhir_FHIRBundle": {
8364
- "type": "object",
8365
- "description": "Represents a FHIR Bundle response containing multiple resources or operation results.\nBased on the FHIRBundle struct from io/fhir.go.\n",
8366
- "required": [
8367
- "resourceType",
8368
- "entry"
8369
- ],
8370
- "properties": {
8371
- "resourceType": {
8372
- "type": "string",
8373
- "enum": [
8374
- "Bundle"
8375
- ],
8376
- "description": "Always \"Bundle\" for bundle resources"
8377
- },
8378
- "total": {
8379
- "type": "integer",
8380
- "minimum": 0,
8381
- "description": "Total number of resources that match the search criteria.\nOptional field as not all FHIR servers include it (e.g., Medplum).\n"
8382
- },
8383
- "entry": {
8384
- "type": "array",
8385
- "description": "Array of bundle entries containing resources or operation results",
8386
- "items": {
8387
- "type": "object",
8388
- "properties": {
8389
- "resource": {
8390
- "type": "object",
8391
- "description": "The FHIR resource contained in this entry",
8392
- "additionalProperties": true
8393
- },
8394
- "request": {
8395
- "type": "object",
8396
- "description": "Request information for transaction/batch bundles",
8397
- "properties": {
8398
- "method": {
8399
- "type": "string",
8400
- "enum": [
8401
- "GET",
8402
- "POST",
8403
- "PUT",
8404
- "PATCH",
8405
- "DELETE"
8406
- ]
8407
- },
8408
- "url": {
8409
- "type": "string"
8410
- }
8411
- }
8412
- },
8413
- "response": {
8414
- "type": "object",
8415
- "description": "Response information for transaction/batch bundle responses",
8416
- "properties": {
8417
- "status": {
8418
- "type": "string"
8419
- },
8420
- "location": {
8421
- "type": "string"
8422
- }
8423
- }
8424
- }
8425
- }
8426
- }
8427
- }
8428
- }
8429
- },
8430
- "fhir_FHIRResource": {
8431
- "type": "object",
8432
- "description": "A generic FHIR resource. All FHIR resources share common elements like resourceType and id,\nbut the specific structure depends on the resource type.\n",
8433
- "required": [
8434
- "resourceType"
8435
- ],
8436
- "properties": {
8437
- "resourceType": {
8438
- "type": "string",
8439
- "description": "The type of FHIR resource (e.g., Patient, Observation, etc.)",
8440
- "example": "Patient"
8441
- },
8442
- "id": {
8443
- "type": "string",
8444
- "description": "Logical ID of the resource",
8445
- "example": "123"
8446
- },
8447
- "meta": {
8448
- "type": "object",
8449
- "description": "Metadata about the resource",
8450
- "properties": {
8451
- "versionId": {
8452
- "type": "string"
8453
- },
8454
- "lastUpdated": {
8455
- "type": "string",
8456
- "format": "date-time"
8457
- },
8458
- "profile": {
8459
- "type": "array",
8460
- "items": {
8461
- "type": "string"
8462
- }
8463
- }
8464
- }
8465
- }
8466
- },
8467
- "additionalProperties": true
8468
- },
8469
- "fhir_ErrorResponse": {
8470
- "type": "object",
8471
- "description": "Standard error response structure",
8472
- "required": [
8473
- "message"
8474
- ],
8475
- "properties": {
8476
- "message": {
8477
- "type": "string",
8478
- "description": "Human-readable error message"
8479
- },
8480
- "code": {
8481
- "type": "integer",
8482
- "description": "HTTP status code"
8483
- },
8484
- "data": {
8485
- "type": "object",
8486
- "description": "Additional error details",
8487
- "additionalProperties": true
8488
- }
8489
- }
8490
- },
8491
8315
  "fhir_provider_FhirProviderCreateRequest": {
8492
8316
  "type": "object",
8493
8317
  "required": [
@@ -11227,171 +11051,40 @@
11227
11051
  "scheme": "basic",
11228
11052
  "description": "The header should be formatted as:\nAuthorization: Basic base64(client_id:client_secret)"
11229
11053
  }
11054
+ }
11055
+ },
11056
+ "tags": [
11057
+ {
11058
+ "name": "Agent / Chat",
11059
+ "description": "Conversational sessions with an agent."
11230
11060
  },
11231
- "responses": {
11232
- "fhir_BadRequest": {
11233
- "description": "Bad request - invalid input parameters or malformed request",
11234
- "content": {
11235
- "application/json": {
11236
- "schema": {
11237
- "$ref": "#/components/schemas/fhir_ErrorResponse"
11238
- },
11239
- "examples": {
11240
- "invalid_provider": {
11241
- "summary": "Invalid provider ID",
11242
- "value": {
11243
- "message": "Provider not found: invalid-provider-id",
11244
- "code": 400
11245
- }
11246
- },
11247
- "malformed_resource": {
11248
- "summary": "Malformed FHIR resource",
11249
- "value": {
11250
- "message": "Invalid FHIR resource format",
11251
- "code": 400
11252
- }
11253
- }
11254
- }
11255
- }
11256
- }
11257
- },
11258
- "fhir_Unauthorized": {
11259
- "description": "Unauthorized - authentication required or invalid",
11260
- "content": {
11261
- "application/json": {
11262
- "schema": {
11263
- "$ref": "#/components/schemas/fhir_ErrorResponse"
11264
- },
11265
- "examples": {
11266
- "missing_auth": {
11267
- "summary": "Missing authentication",
11268
- "value": {
11269
- "message": "Authentication required",
11270
- "code": 401
11271
- }
11272
- },
11273
- "invalid_token": {
11274
- "summary": "Invalid authentication token",
11275
- "value": {
11276
- "message": "Invalid or expired authentication token",
11277
- "code": 401
11278
- }
11279
- }
11280
- }
11281
- }
11282
- }
11283
- },
11284
- "fhir_NotFound": {
11285
- "description": "Not found - requested resource does not exist",
11286
- "content": {
11287
- "application/json": {
11288
- "schema": {
11289
- "$ref": "#/components/schemas/fhir_ErrorResponse"
11290
- },
11291
- "examples": {
11292
- "resource_not_found": {
11293
- "summary": "FHIR resource not found",
11294
- "value": {
11295
- "message": "Resource not found",
11296
- "code": 404
11297
- }
11298
- }
11299
- }
11300
- }
11301
- }
11302
- },
11303
- "fhir_TooManyRequests": {
11304
- "description": "Too many requests - upstream FHIR server rate limit exceeded",
11305
- "headers": {
11306
- "Retry-After": {
11307
- "description": "Number of seconds to wait before retrying the request",
11308
- "schema": {
11309
- "type": "string"
11310
- },
11311
- "example": "60"
11312
- }
11313
- },
11314
- "content": {
11315
- "application/json": {
11316
- "schema": {
11317
- "$ref": "#/components/schemas/fhir_ErrorResponse"
11318
- },
11319
- "examples": {
11320
- "rate_limited": {
11321
- "summary": "Rate limited by upstream FHIR server",
11322
- "value": {
11323
- "message": "Rate limit exceeded",
11324
- "code": 429
11325
- }
11326
- }
11327
- }
11328
- }
11329
- }
11330
- },
11331
- "fhir_ServiceUnavailable": {
11332
- "description": "Service unavailable - upstream FHIR server temporarily unavailable",
11333
- "content": {
11334
- "application/json": {
11335
- "schema": {
11336
- "$ref": "#/components/schemas/fhir_ErrorResponse"
11337
- },
11338
- "examples": {
11339
- "upstream_unavailable": {
11340
- "summary": "Upstream FHIR server unavailable",
11341
- "value": {
11342
- "message": "Service temporarily unavailable",
11343
- "code": 503
11344
- }
11345
- }
11346
- }
11347
- }
11348
- }
11349
- },
11350
- "fhir_InternalServerError": {
11351
- "description": "Internal server error - unexpected server-side error",
11352
- "content": {
11353
- "application/json": {
11354
- "schema": {
11355
- "$ref": "#/components/schemas/fhir_ErrorResponse"
11356
- },
11357
- "examples": {
11358
- "server_error": {
11359
- "summary": "Generic server error",
11360
- "value": {
11361
- "message": "Internal server error",
11362
- "code": 500
11363
- }
11364
- }
11365
- }
11366
- }
11367
- }
11368
- },
11369
- "fhir_BadGateway": {
11370
- "description": "Bad gateway - upstream FHIR server error",
11371
- "content": {
11372
- "application/json": {
11373
- "schema": {
11374
- "$ref": "#/components/schemas/fhir_ErrorResponse"
11375
- },
11376
- "examples": {
11377
- "token_endpoint_error": {
11378
- "summary": "Token endpoint failure",
11379
- "value": {
11380
- "message": "Upstream service error: token endpoint returned 401",
11381
- "code": 502
11382
- }
11383
- },
11384
- "fhir_server_unreachable": {
11385
- "summary": "FHIR server unreachable",
11386
- "value": {
11387
- "message": "Upstream service error: failed to connect to FHIR server",
11388
- "code": 502
11389
- }
11390
- }
11391
- }
11392
- }
11393
- }
11394
- }
11061
+ {
11062
+ "name": "Agent / Prompts",
11063
+ "description": "Reusable prompt templates that agents can attach to chats."
11064
+ },
11065
+ {
11066
+ "name": "Construe / Code Systems",
11067
+ "description": "Manage custom medical code systems used by the extractor."
11068
+ },
11069
+ {
11070
+ "name": "Construe / Codes",
11071
+ "description": "Extract and search codes within a code system."
11072
+ },
11073
+ {
11074
+ "name": "FHIR / Auth Config",
11075
+ "description": "Manage authentication configurations attached to a FHIR provider."
11076
+ },
11077
+ {
11078
+ "name": "Summary / Templates",
11079
+ "description": "Reusable summary templates that drive FHIR-to-text generation."
11080
+ },
11081
+ {
11082
+ "name": "Tools / MCP Servers",
11083
+ "description": "Register and manage MCP servers exposed as agent tools."
11084
+ },
11085
+ {
11086
+ "name": "Tools / MCP Tools",
11087
+ "description": "List and manage individual tools exposed by an MCP server."
11395
11088
  }
11396
- }
11089
+ ]
11397
11090
  }