phenoml 17.7.0 → 17.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. package/dist/cjs/BaseClient.d.ts +12 -0
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +6 -0
  4. package/dist/cjs/Client.js +20 -10
  5. package/dist/cjs/api/resources/agent/client/Client.js +4 -3
  6. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -1
  7. package/dist/cjs/api/resources/agent/errors/ConflictError.js +1 -1
  8. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -1
  9. package/dist/cjs/api/resources/agent/errors/GatewayTimeoutError.js +1 -1
  10. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -1
  11. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -1
  12. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -1
  13. package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +3 -2
  14. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +4 -3
  15. package/dist/cjs/api/resources/authtoken/client/Client.js +2 -1
  16. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -1
  17. package/dist/cjs/api/resources/authtoken/errors/InternalServerError.js +1 -1
  18. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -1
  19. package/dist/cjs/api/resources/cohort/client/Client.js +2 -1
  20. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -1
  21. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -1
  22. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -1
  23. package/dist/cjs/api/resources/construe/client/Client.js +2 -1
  24. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -1
  25. package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -1
  26. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -1
  27. package/dist/cjs/api/resources/construe/errors/ForbiddenError.js +1 -1
  28. package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +1 -1
  29. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -1
  30. package/dist/cjs/api/resources/construe/errors/NotFoundError.js +1 -1
  31. package/dist/cjs/api/resources/construe/errors/NotImplementedError.js +1 -1
  32. package/dist/cjs/api/resources/construe/errors/ServiceUnavailableError.js +1 -1
  33. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -1
  34. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +2 -1
  35. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts +1 -1
  36. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.ts +1 -1
  37. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.ts +1 -1
  38. package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +15 -0
  39. package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +17 -1
  40. package/dist/cjs/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.ts +1 -1
  41. package/dist/cjs/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.ts +12 -0
  42. package/dist/cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts +1 -1
  43. package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.ts +1 -1
  44. package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.ts +1 -1
  45. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +11 -8
  46. package/dist/cjs/api/resources/fhir/client/Client.js +5 -4
  47. package/dist/cjs/api/resources/fhir2Omop/client/Client.js +2 -1
  48. package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.js +1 -1
  49. package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.js +1 -1
  50. package/dist/cjs/api/resources/fhir2Omop/errors/ServiceUnavailableError.js +1 -1
  51. package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.js +1 -1
  52. package/dist/cjs/api/resources/fhir2Omop/types/CareSiteRow.d.ts +8 -0
  53. package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.ts +1 -0
  54. package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.d.ts +9 -0
  55. package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.js +3 -0
  56. package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.d.ts +1 -0
  57. package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.d.ts +14 -0
  58. package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.js +3 -0
  59. package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.d.ts +1 -0
  60. package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.d.ts +7 -0
  61. package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.js +3 -0
  62. package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.d.ts +1 -0
  63. package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.d.ts +5 -0
  64. package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.d.ts +1 -0
  65. package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.ts +1 -0
  66. package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.d.ts +15 -0
  67. package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.js +3 -0
  68. package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.ts +2 -0
  69. package/dist/cjs/api/resources/fhir2Omop/types/index.d.ts +5 -0
  70. package/dist/cjs/api/resources/fhir2Omop/types/index.js +5 -0
  71. package/dist/cjs/api/resources/fhirProvider/client/Client.js +2 -1
  72. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +1 -1
  73. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +1 -1
  74. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +1 -1
  75. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +1 -1
  76. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +1 -1
  77. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +4 -3
  78. package/dist/cjs/api/resources/implementationGuides/client/Client.d.ts +12 -0
  79. package/dist/cjs/api/resources/implementationGuides/client/Client.js +16 -0
  80. package/dist/cjs/api/resources/implementationGuides/client/index.d.ts +1 -0
  81. package/dist/cjs/api/resources/implementationGuides/client/index.js +2 -0
  82. package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.d.ts +5 -0
  83. package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.js +54 -0
  84. package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.d.ts +5 -0
  85. package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.js +54 -0
  86. package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.d.ts +5 -0
  87. package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.js +54 -0
  88. package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.d.ts +5 -0
  89. package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.js +54 -0
  90. package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.d.ts +5 -0
  91. package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.js +54 -0
  92. package/dist/cjs/api/resources/implementationGuides/errors/index.d.ts +5 -0
  93. package/dist/cjs/api/resources/implementationGuides/errors/index.js +21 -0
  94. package/dist/cjs/api/resources/implementationGuides/exports.d.ts +3 -0
  95. package/dist/cjs/api/resources/implementationGuides/exports.js +22 -0
  96. package/dist/cjs/api/resources/implementationGuides/index.d.ts +4 -0
  97. package/dist/cjs/api/resources/implementationGuides/index.js +20 -0
  98. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.ts +91 -0
  99. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.js +316 -0
  100. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.d.ts +1 -0
  101. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.js +17 -0
  102. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.ts +8 -0
  103. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.js +3 -0
  104. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.ts +1 -0
  105. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.js +2 -0
  106. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.d.ts +2 -0
  107. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.js +21 -0
  108. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.d.ts +1 -0
  109. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.js +17 -0
  110. package/dist/cjs/api/resources/implementationGuides/resources/index.d.ts +2 -0
  111. package/dist/cjs/api/resources/implementationGuides/resources/index.js +41 -0
  112. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.d.ts +5 -0
  113. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.js +3 -0
  114. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.ts +4 -0
  115. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.js +3 -0
  116. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.d.ts +15 -0
  117. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.js +3 -0
  118. package/dist/cjs/api/resources/implementationGuides/types/index.d.ts +3 -0
  119. package/dist/cjs/api/resources/implementationGuides/types/index.js +19 -0
  120. package/dist/cjs/api/resources/index.d.ts +2 -0
  121. package/dist/cjs/api/resources/index.js +3 -1
  122. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +8 -0
  123. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +15 -6
  124. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +0 -1
  125. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -1
  126. package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +1 -1
  127. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -1
  128. package/dist/cjs/api/resources/lang2Fhir/errors/GatewayTimeoutError.js +1 -1
  129. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -1
  130. package/dist/cjs/api/resources/lang2Fhir/errors/NotFoundError.js +1 -1
  131. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -1
  132. package/dist/cjs/api/resources/lang2Fhir/errors/UnprocessableEntityError.js +1 -1
  133. package/dist/cjs/api/resources/lang2Fhir/types/CreateMultiResponse.d.ts +2 -0
  134. package/dist/cjs/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.ts +2 -10
  135. package/dist/cjs/api/resources/lang2Fhir/types/ProfileUploadRequest.js +3 -0
  136. package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -0
  137. package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -0
  138. package/dist/cjs/api/resources/profiles/client/Client.d.ts +12 -0
  139. package/dist/cjs/api/resources/profiles/client/Client.js +16 -0
  140. package/dist/cjs/api/resources/profiles/client/index.d.ts +1 -0
  141. package/dist/cjs/api/resources/profiles/client/index.js +2 -0
  142. package/dist/cjs/api/resources/profiles/errors/BadRequestError.d.ts +5 -0
  143. package/dist/cjs/api/resources/profiles/errors/BadRequestError.js +54 -0
  144. package/dist/cjs/api/resources/profiles/errors/ForbiddenError.d.ts +5 -0
  145. package/dist/cjs/api/resources/profiles/errors/ForbiddenError.js +54 -0
  146. package/dist/cjs/api/resources/profiles/errors/InternalServerError.d.ts +5 -0
  147. package/dist/cjs/api/resources/profiles/errors/InternalServerError.js +54 -0
  148. package/dist/cjs/api/resources/profiles/errors/NotFoundError.d.ts +5 -0
  149. package/dist/cjs/api/resources/profiles/errors/NotFoundError.js +54 -0
  150. package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.d.ts +5 -0
  151. package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.js +54 -0
  152. package/dist/cjs/api/resources/profiles/errors/index.d.ts +5 -0
  153. package/dist/cjs/api/resources/profiles/errors/index.js +21 -0
  154. package/dist/cjs/api/resources/profiles/exports.d.ts +3 -0
  155. package/dist/cjs/api/resources/profiles/exports.js +22 -0
  156. package/dist/cjs/api/resources/profiles/index.d.ts +4 -0
  157. package/dist/cjs/api/resources/profiles/index.js +20 -0
  158. package/dist/cjs/api/resources/profiles/resources/index.d.ts +2 -0
  159. package/dist/cjs/api/resources/profiles/resources/index.js +41 -0
  160. package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.d.ts +127 -0
  161. package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.js +397 -0
  162. package/dist/cjs/api/resources/profiles/resources/profiles/client/index.d.ts +1 -0
  163. package/dist/cjs/api/resources/profiles/resources/profiles/client/index.js +17 -0
  164. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.ts +10 -0
  165. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.js +3 -0
  166. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.d.ts +1 -0
  167. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.js +2 -0
  168. package/dist/cjs/api/resources/profiles/resources/profiles/exports.d.ts +2 -0
  169. package/dist/cjs/api/resources/profiles/resources/profiles/exports.js +21 -0
  170. package/dist/cjs/api/resources/profiles/resources/profiles/index.d.ts +1 -0
  171. package/dist/cjs/api/resources/profiles/resources/profiles/index.js +17 -0
  172. package/dist/cjs/api/resources/profiles/types/FhirResource.d.ts +4 -0
  173. package/dist/cjs/api/resources/profiles/types/FhirResource.js +3 -0
  174. package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.d.ts +5 -0
  175. package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.js +3 -0
  176. package/dist/cjs/api/resources/profiles/types/ProfileListResponse.d.ts +4 -0
  177. package/dist/cjs/api/resources/profiles/types/ProfileListResponse.js +3 -0
  178. package/dist/cjs/api/resources/profiles/types/ProfileSummary.d.ts +26 -0
  179. package/dist/cjs/api/resources/profiles/types/ProfileSummary.js +12 -0
  180. package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.d.ts +7 -0
  181. package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.js +3 -0
  182. package/dist/cjs/api/resources/profiles/types/index.d.ts +5 -0
  183. package/dist/cjs/api/resources/profiles/types/index.js +21 -0
  184. package/dist/cjs/api/resources/summary/client/Client.js +2 -1
  185. package/dist/cjs/api/resources/summary/errors/BadRequestError.js +1 -1
  186. package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +1 -1
  187. package/dist/cjs/api/resources/summary/errors/InternalServerError.js +1 -1
  188. package/dist/cjs/api/resources/summary/errors/NotFoundError.js +1 -1
  189. package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +1 -1
  190. package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +3 -2
  191. package/dist/cjs/api/resources/tools/client/Client.js +5 -4
  192. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -1
  193. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -1
  194. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -1
  195. package/dist/cjs/api/resources/tools/errors/NotFoundError.js +1 -1
  196. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -1
  197. package/dist/cjs/api/resources/tools/resources/mcpServers/client/Client.js +2 -1
  198. package/dist/cjs/api/resources/voice/errors/BadGatewayError.js +1 -1
  199. package/dist/cjs/api/resources/voice/errors/BadRequestError.js +1 -1
  200. package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.js +1 -1
  201. package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.js +1 -1
  202. package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.js +1 -1
  203. package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.js +1 -1
  204. package/dist/cjs/api/resources/voice/errors/UnauthorizedError.js +1 -1
  205. package/dist/cjs/api/resources/workflows/client/Client.js +4 -3
  206. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +1 -1
  207. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +1 -1
  208. package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +1 -1
  209. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +1 -1
  210. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +1 -1
  211. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +1 -1
  212. package/dist/cjs/core/file/file.js +3 -0
  213. package/dist/cjs/core/requestBody.d.ts +12 -0
  214. package/dist/cjs/core/requestBody.js +26 -0
  215. package/dist/cjs/core/stream/Stream.d.ts +45 -1
  216. package/dist/cjs/core/stream/Stream.js +323 -84
  217. package/dist/cjs/core/stream/index.d.ts +1 -0
  218. package/dist/cjs/core/url/qs.js +2 -2
  219. package/dist/cjs/errors/phenomlError.d.ts +1 -0
  220. package/dist/cjs/errors/phenomlError.js +5 -1
  221. package/dist/cjs/errors/phenomlTimeoutError.d.ts +2 -2
  222. package/dist/cjs/errors/phenomlTimeoutError.js +40 -6
  223. package/dist/cjs/version.d.ts +1 -1
  224. package/dist/cjs/version.js +1 -1
  225. package/dist/esm/BaseClient.d.mts +12 -0
  226. package/dist/esm/BaseClient.mjs +2 -2
  227. package/dist/esm/Client.d.mts +6 -0
  228. package/dist/esm/Client.mjs +10 -0
  229. package/dist/esm/api/resources/agent/client/Client.mjs +4 -3
  230. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +1 -1
  231. package/dist/esm/api/resources/agent/errors/ConflictError.mjs +1 -1
  232. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +1 -1
  233. package/dist/esm/api/resources/agent/errors/GatewayTimeoutError.mjs +1 -1
  234. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +1 -1
  235. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +1 -1
  236. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +1 -1
  237. package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +3 -2
  238. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +4 -3
  239. package/dist/esm/api/resources/authtoken/client/Client.mjs +2 -1
  240. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +1 -1
  241. package/dist/esm/api/resources/authtoken/errors/InternalServerError.mjs +1 -1
  242. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +1 -1
  243. package/dist/esm/api/resources/cohort/client/Client.mjs +2 -1
  244. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +1 -1
  245. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +1 -1
  246. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +1 -1
  247. package/dist/esm/api/resources/construe/client/Client.mjs +2 -1
  248. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +1 -1
  249. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +1 -1
  250. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +1 -1
  251. package/dist/esm/api/resources/construe/errors/ForbiddenError.mjs +1 -1
  252. package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +1 -1
  253. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +1 -1
  254. package/dist/esm/api/resources/construe/errors/NotFoundError.mjs +1 -1
  255. package/dist/esm/api/resources/construe/errors/NotImplementedError.mjs +1 -1
  256. package/dist/esm/api/resources/construe/errors/ServiceUnavailableError.mjs +1 -1
  257. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +1 -1
  258. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +2 -1
  259. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts +1 -1
  260. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.mts +1 -1
  261. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.mts +1 -1
  262. package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +15 -0
  263. package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +17 -1
  264. package/dist/esm/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.mts +1 -1
  265. package/dist/esm/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.mts +12 -0
  266. package/dist/esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts +1 -1
  267. package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.mts +1 -1
  268. package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.mts +1 -1
  269. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +11 -8
  270. package/dist/esm/api/resources/fhir/client/Client.mjs +5 -4
  271. package/dist/esm/api/resources/fhir2Omop/client/Client.mjs +2 -1
  272. package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.mjs +1 -1
  273. package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.mjs +1 -1
  274. package/dist/esm/api/resources/fhir2Omop/errors/ServiceUnavailableError.mjs +1 -1
  275. package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.mjs +1 -1
  276. package/dist/esm/api/resources/fhir2Omop/types/CareSiteRow.d.mts +8 -0
  277. package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.mts +1 -0
  278. package/dist/esm/api/resources/fhir2Omop/types/DeathRow.d.mts +9 -0
  279. package/dist/esm/api/resources/fhir2Omop/types/DeathRow.mjs +2 -0
  280. package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.d.mts +1 -0
  281. package/dist/esm/api/resources/fhir2Omop/types/LocationRow.d.mts +14 -0
  282. package/dist/esm/api/resources/fhir2Omop/types/LocationRow.mjs +2 -0
  283. package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.d.mts +1 -0
  284. package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.d.mts +7 -0
  285. package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.mjs +2 -0
  286. package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.d.mts +1 -0
  287. package/dist/esm/api/resources/fhir2Omop/types/OmopTables.d.mts +5 -0
  288. package/dist/esm/api/resources/fhir2Omop/types/PersonRow.d.mts +1 -0
  289. package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.mts +1 -0
  290. package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.d.mts +15 -0
  291. package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.mjs +2 -0
  292. package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.mts +2 -0
  293. package/dist/esm/api/resources/fhir2Omop/types/index.d.mts +5 -0
  294. package/dist/esm/api/resources/fhir2Omop/types/index.mjs +5 -0
  295. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +2 -1
  296. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +1 -1
  297. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +1 -1
  298. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +1 -1
  299. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +1 -1
  300. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +1 -1
  301. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +4 -3
  302. package/dist/esm/api/resources/implementationGuides/client/Client.d.mts +12 -0
  303. package/dist/esm/api/resources/implementationGuides/client/Client.mjs +12 -0
  304. package/dist/esm/api/resources/implementationGuides/client/index.d.mts +1 -0
  305. package/dist/esm/api/resources/implementationGuides/client/index.mjs +1 -0
  306. package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.d.mts +5 -0
  307. package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.mjs +17 -0
  308. package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.d.mts +5 -0
  309. package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.mjs +17 -0
  310. package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.d.mts +5 -0
  311. package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.mjs +17 -0
  312. package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.d.mts +5 -0
  313. package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.mjs +17 -0
  314. package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.d.mts +5 -0
  315. package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.mjs +17 -0
  316. package/dist/esm/api/resources/implementationGuides/errors/index.d.mts +5 -0
  317. package/dist/esm/api/resources/implementationGuides/errors/index.mjs +5 -0
  318. package/dist/esm/api/resources/implementationGuides/exports.d.mts +3 -0
  319. package/dist/esm/api/resources/implementationGuides/exports.mjs +4 -0
  320. package/dist/esm/api/resources/implementationGuides/index.d.mts +4 -0
  321. package/dist/esm/api/resources/implementationGuides/index.mjs +4 -0
  322. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.mts +91 -0
  323. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.mjs +279 -0
  324. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.d.mts +1 -0
  325. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.mjs +1 -0
  326. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.mts +8 -0
  327. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.mjs +2 -0
  328. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.mts +1 -0
  329. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.mjs +1 -0
  330. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.d.mts +2 -0
  331. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.mjs +3 -0
  332. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.d.mts +1 -0
  333. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.mjs +1 -0
  334. package/dist/esm/api/resources/implementationGuides/resources/index.d.mts +2 -0
  335. package/dist/esm/api/resources/implementationGuides/resources/index.mjs +2 -0
  336. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.d.mts +5 -0
  337. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.mjs +2 -0
  338. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.mts +4 -0
  339. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.mjs +2 -0
  340. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.d.mts +15 -0
  341. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.mjs +2 -0
  342. package/dist/esm/api/resources/implementationGuides/types/index.d.mts +3 -0
  343. package/dist/esm/api/resources/implementationGuides/types/index.mjs +3 -0
  344. package/dist/esm/api/resources/index.d.mts +2 -0
  345. package/dist/esm/api/resources/index.mjs +2 -0
  346. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +8 -0
  347. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +15 -6
  348. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +0 -1
  349. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +1 -1
  350. package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +1 -1
  351. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +1 -1
  352. package/dist/esm/api/resources/lang2Fhir/errors/GatewayTimeoutError.mjs +1 -1
  353. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +1 -1
  354. package/dist/esm/api/resources/lang2Fhir/errors/NotFoundError.mjs +1 -1
  355. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +1 -1
  356. package/dist/esm/api/resources/lang2Fhir/errors/UnprocessableEntityError.mjs +1 -1
  357. package/dist/esm/api/resources/lang2Fhir/types/CreateMultiResponse.d.mts +2 -0
  358. package/dist/esm/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.mts +2 -10
  359. package/dist/esm/api/resources/lang2Fhir/types/ProfileUploadRequest.mjs +2 -0
  360. package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -0
  361. package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -0
  362. package/dist/esm/api/resources/profiles/client/Client.d.mts +12 -0
  363. package/dist/esm/api/resources/profiles/client/Client.mjs +12 -0
  364. package/dist/esm/api/resources/profiles/client/index.d.mts +1 -0
  365. package/dist/esm/api/resources/profiles/client/index.mjs +1 -0
  366. package/dist/esm/api/resources/profiles/errors/BadRequestError.d.mts +5 -0
  367. package/dist/esm/api/resources/profiles/errors/BadRequestError.mjs +17 -0
  368. package/dist/esm/api/resources/profiles/errors/ForbiddenError.d.mts +5 -0
  369. package/dist/esm/api/resources/profiles/errors/ForbiddenError.mjs +17 -0
  370. package/dist/esm/api/resources/profiles/errors/InternalServerError.d.mts +5 -0
  371. package/dist/esm/api/resources/profiles/errors/InternalServerError.mjs +17 -0
  372. package/dist/esm/api/resources/profiles/errors/NotFoundError.d.mts +5 -0
  373. package/dist/esm/api/resources/profiles/errors/NotFoundError.mjs +17 -0
  374. package/dist/esm/api/resources/profiles/errors/UnauthorizedError.d.mts +5 -0
  375. package/dist/esm/api/resources/profiles/errors/UnauthorizedError.mjs +17 -0
  376. package/dist/esm/api/resources/profiles/errors/index.d.mts +5 -0
  377. package/dist/esm/api/resources/profiles/errors/index.mjs +5 -0
  378. package/dist/esm/api/resources/profiles/exports.d.mts +3 -0
  379. package/dist/esm/api/resources/profiles/exports.mjs +4 -0
  380. package/dist/esm/api/resources/profiles/index.d.mts +4 -0
  381. package/dist/esm/api/resources/profiles/index.mjs +4 -0
  382. package/dist/esm/api/resources/profiles/resources/index.d.mts +2 -0
  383. package/dist/esm/api/resources/profiles/resources/index.mjs +2 -0
  384. package/dist/esm/api/resources/profiles/resources/profiles/client/Client.d.mts +127 -0
  385. package/dist/esm/api/resources/profiles/resources/profiles/client/Client.mjs +360 -0
  386. package/dist/esm/api/resources/profiles/resources/profiles/client/index.d.mts +1 -0
  387. package/dist/esm/api/resources/profiles/resources/profiles/client/index.mjs +1 -0
  388. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.mts +10 -0
  389. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.mjs +2 -0
  390. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.d.mts +1 -0
  391. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.mjs +1 -0
  392. package/dist/esm/api/resources/profiles/resources/profiles/exports.d.mts +2 -0
  393. package/dist/esm/api/resources/profiles/resources/profiles/exports.mjs +3 -0
  394. package/dist/esm/api/resources/profiles/resources/profiles/index.d.mts +1 -0
  395. package/dist/esm/api/resources/profiles/resources/profiles/index.mjs +1 -0
  396. package/dist/esm/api/resources/profiles/types/FhirResource.d.mts +4 -0
  397. package/dist/esm/api/resources/profiles/types/FhirResource.mjs +2 -0
  398. package/dist/esm/api/resources/profiles/types/ProfileGetResponse.d.mts +5 -0
  399. package/dist/esm/api/resources/profiles/types/ProfileGetResponse.mjs +2 -0
  400. package/dist/esm/api/resources/profiles/types/ProfileListResponse.d.mts +4 -0
  401. package/dist/esm/api/resources/profiles/types/ProfileListResponse.mjs +2 -0
  402. package/dist/esm/api/resources/profiles/types/ProfileSummary.d.mts +26 -0
  403. package/dist/esm/api/resources/profiles/types/ProfileSummary.mjs +9 -0
  404. package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.d.mts +7 -0
  405. package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.mjs +2 -0
  406. package/dist/esm/api/resources/profiles/types/index.d.mts +5 -0
  407. package/dist/esm/api/resources/profiles/types/index.mjs +5 -0
  408. package/dist/esm/api/resources/summary/client/Client.mjs +2 -1
  409. package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +1 -1
  410. package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +1 -1
  411. package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +1 -1
  412. package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +1 -1
  413. package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +1 -1
  414. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +3 -2
  415. package/dist/esm/api/resources/tools/client/Client.mjs +5 -4
  416. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +1 -1
  417. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +1 -1
  418. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +1 -1
  419. package/dist/esm/api/resources/tools/errors/NotFoundError.mjs +1 -1
  420. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +1 -1
  421. package/dist/esm/api/resources/tools/resources/mcpServers/client/Client.mjs +2 -1
  422. package/dist/esm/api/resources/voice/errors/BadGatewayError.mjs +1 -1
  423. package/dist/esm/api/resources/voice/errors/BadRequestError.mjs +1 -1
  424. package/dist/esm/api/resources/voice/errors/ContentTooLargeError.mjs +1 -1
  425. package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.mjs +1 -1
  426. package/dist/esm/api/resources/voice/errors/PaymentRequiredError.mjs +1 -1
  427. package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.mjs +1 -1
  428. package/dist/esm/api/resources/voice/errors/UnauthorizedError.mjs +1 -1
  429. package/dist/esm/api/resources/workflows/client/Client.mjs +4 -3
  430. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +1 -1
  431. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +1 -1
  432. package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +1 -1
  433. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +1 -1
  434. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +1 -1
  435. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +1 -1
  436. package/dist/esm/core/file/file.mjs +3 -0
  437. package/dist/esm/core/requestBody.d.mts +12 -0
  438. package/dist/esm/core/requestBody.mjs +23 -0
  439. package/dist/esm/core/stream/Stream.d.mts +45 -1
  440. package/dist/esm/core/stream/Stream.mjs +323 -84
  441. package/dist/esm/core/stream/index.d.mts +1 -0
  442. package/dist/esm/core/url/qs.mjs +2 -2
  443. package/dist/esm/errors/phenomlError.d.mts +1 -0
  444. package/dist/esm/errors/phenomlError.mjs +5 -1
  445. package/dist/esm/errors/phenomlTimeoutError.d.mts +2 -2
  446. package/dist/esm/errors/phenomlTimeoutError.mjs +7 -6
  447. package/dist/esm/version.d.mts +1 -1
  448. package/dist/esm/version.mjs +1 -1
  449. package/openapi/openapi.json +1204 -235
  450. package/package.json +23 -1
  451. package/reference.md +625 -1
  452. /package/dist/cjs/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.js → fhir2Omop/types/CareSiteRow.js} +0 -0
  453. /package/dist/esm/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.mjs → fhir2Omop/types/CareSiteRow.mjs} +0 -0
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class UnauthorizedError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class UnauthorizedError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "UnauthorizedError",
7
+ statusCode: 401,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "UnauthorizedError";
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./BadRequestError.mjs";
2
+ export * from "./ForbiddenError.mjs";
3
+ export * from "./InternalServerError.mjs";
4
+ export * from "./NotFoundError.mjs";
5
+ export * from "./UnauthorizedError.mjs";
@@ -0,0 +1,5 @@
1
+ export * from "./BadRequestError.mjs";
2
+ export * from "./ForbiddenError.mjs";
3
+ export * from "./InternalServerError.mjs";
4
+ export * from "./NotFoundError.mjs";
5
+ export * from "./UnauthorizedError.mjs";
@@ -0,0 +1,3 @@
1
+ export { ImplementationGuidesClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { ImplementationGuidesClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
4
+ export * from "./resources/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
4
+ export * from "./types/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
4
+ export * from "./types/index.mjs";
@@ -0,0 +1,91 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as phenoml from "../../../../../index.mjs";
5
+ export declare namespace ImplementationGuidesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Manage implementation guides that group custom FHIR profiles.
12
+ */
13
+ export declare class ImplementationGuidesClient {
14
+ protected readonly _options: NormalizedClientOptionsWithAuth<ImplementationGuidesClient.Options>;
15
+ constructor(options?: ImplementationGuidesClient.Options);
16
+ /**
17
+ * Returns every implementation guide on this instance — both guides that
18
+ * have stored metadata (a profile_context) and guides referenced by at
19
+ * least one custom profile — with the number of profiles in each.
20
+ *
21
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
22
+ *
23
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
24
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
25
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
26
+ *
27
+ * @example
28
+ * await client.implementationGuides.implementationGuides.list()
29
+ */
30
+ list(requestOptions?: ImplementationGuidesClient.RequestOptions): core.HttpResponsePromise<phenoml.implementationGuides.ImplementationGuideListResponse>;
31
+ private __list;
32
+ /**
33
+ * Returns a single implementation guide, including its profile_context and
34
+ * the ids of the profiles that belong to it.
35
+ *
36
+ * @param {string} name - The implementation guide name.
37
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link phenoml.implementationGuides.BadRequestError}
40
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
41
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
42
+ * @throws {@link phenoml.implementationGuides.NotFoundError}
43
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
44
+ *
45
+ * @example
46
+ * await client.implementationGuides.implementationGuides.get("acme-cardiology")
47
+ */
48
+ get(name: string, requestOptions?: ImplementationGuidesClient.RequestOptions): core.HttpResponsePromise<phenoml.implementationGuides.ImplementationGuideDetail>;
49
+ private __get;
50
+ /**
51
+ * Sets (or clears, with an empty value) the natural-language profile_context
52
+ * for an implementation guide. The context is injected into the LLM during
53
+ * resource detection to help select the right profiles from this guide.
54
+ * It applies to every profile in the guide.
55
+ *
56
+ * @param {string} name - The implementation guide name.
57
+ * @param {phenoml.implementationGuides.UpdateImplementationGuideRequest} request
58
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
59
+ *
60
+ * @throws {@link phenoml.implementationGuides.BadRequestError}
61
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
62
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
63
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
64
+ *
65
+ * @example
66
+ * await client.implementationGuides.implementationGuides.update("acme-cardiology")
67
+ */
68
+ update(name: string, request?: phenoml.implementationGuides.UpdateImplementationGuideRequest, requestOptions?: ImplementationGuidesClient.RequestOptions): core.HttpResponsePromise<phenoml.implementationGuides.ImplementationGuideSummary>;
69
+ private __update;
70
+ /**
71
+ * Deletes the stored metadata for an implementation guide — its
72
+ * profile_context and timestamps. Member profiles keep their
73
+ * implementation_guide assignment, so a guide still referenced by at least
74
+ * one profile continues to appear in listings, just without context or
75
+ * timestamps.
76
+ *
77
+ * @param {string} name - The implementation guide name.
78
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
79
+ *
80
+ * @throws {@link phenoml.implementationGuides.BadRequestError}
81
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
82
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
83
+ * @throws {@link phenoml.implementationGuides.NotFoundError}
84
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
85
+ *
86
+ * @example
87
+ * await client.implementationGuides.implementationGuides.delete("acme-cardiology")
88
+ */
89
+ delete(name: string, requestOptions?: ImplementationGuidesClient.RequestOptions): core.HttpResponsePromise<void>;
90
+ private __delete;
91
+ }
@@ -0,0 +1,279 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../core/index.mjs";
14
+ import { mergeAdditionalBodyParameters } from "../../../../../../core/requestBody.mjs";
15
+ import * as environments from "../../../../../../environments.mjs";
16
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ import * as phenoml from "../../../../../index.mjs";
19
+ /**
20
+ * Manage implementation guides that group custom FHIR profiles.
21
+ */
22
+ export class ImplementationGuidesClient {
23
+ constructor(options = {}) {
24
+ this._options = normalizeClientOptionsWithAuth(options);
25
+ }
26
+ /**
27
+ * Returns every implementation guide on this instance — both guides that
28
+ * have stored metadata (a profile_context) and guides referenced by at
29
+ * least one custom profile — with the number of profiles in each.
30
+ *
31
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
32
+ *
33
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
34
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
35
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
36
+ *
37
+ * @example
38
+ * await client.implementationGuides.implementationGuides.list()
39
+ */
40
+ list(requestOptions) {
41
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
42
+ }
43
+ __list(requestOptions) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
46
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
47
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
48
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
49
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "fhir/implementation-guides"),
50
+ method: "GET",
51
+ headers: _headers,
52
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
53
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
54
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
57
+ logging: this._options.logging,
58
+ });
59
+ if (_response.ok) {
60
+ return {
61
+ data: _response.body,
62
+ rawResponse: _response.rawResponse,
63
+ };
64
+ }
65
+ if (_response.error.reason === "status-code") {
66
+ switch (_response.error.statusCode) {
67
+ case 401:
68
+ throw new phenoml.implementationGuides.UnauthorizedError(_response.error.body, _response.rawResponse);
69
+ case 403:
70
+ throw new phenoml.implementationGuides.ForbiddenError(_response.error.body, _response.rawResponse);
71
+ case 500:
72
+ throw new phenoml.implementationGuides.InternalServerError(_response.error.body, _response.rawResponse);
73
+ default:
74
+ throw new errors.phenomlError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.body,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ }
80
+ }
81
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/fhir/implementation-guides");
82
+ });
83
+ }
84
+ /**
85
+ * Returns a single implementation guide, including its profile_context and
86
+ * the ids of the profiles that belong to it.
87
+ *
88
+ * @param {string} name - The implementation guide name.
89
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link phenoml.implementationGuides.BadRequestError}
92
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
93
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
94
+ * @throws {@link phenoml.implementationGuides.NotFoundError}
95
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
96
+ *
97
+ * @example
98
+ * await client.implementationGuides.implementationGuides.get("acme-cardiology")
99
+ */
100
+ get(name, requestOptions) {
101
+ return core.HttpResponsePromise.fromPromise(this.__get(name, requestOptions));
102
+ }
103
+ __get(name, requestOptions) {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
106
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
107
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
108
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
109
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir/implementation-guides/${core.url.encodePathParam(name)}`),
110
+ method: "GET",
111
+ headers: _headers,
112
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
113
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
114
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
115
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
116
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
117
+ logging: this._options.logging,
118
+ });
119
+ if (_response.ok) {
120
+ return {
121
+ data: _response.body,
122
+ rawResponse: _response.rawResponse,
123
+ };
124
+ }
125
+ if (_response.error.reason === "status-code") {
126
+ switch (_response.error.statusCode) {
127
+ case 400:
128
+ throw new phenoml.implementationGuides.BadRequestError(_response.error.body, _response.rawResponse);
129
+ case 401:
130
+ throw new phenoml.implementationGuides.UnauthorizedError(_response.error.body, _response.rawResponse);
131
+ case 403:
132
+ throw new phenoml.implementationGuides.ForbiddenError(_response.error.body, _response.rawResponse);
133
+ case 404:
134
+ throw new phenoml.implementationGuides.NotFoundError(_response.error.body, _response.rawResponse);
135
+ case 500:
136
+ throw new phenoml.implementationGuides.InternalServerError(_response.error.body, _response.rawResponse);
137
+ default:
138
+ throw new errors.phenomlError({
139
+ statusCode: _response.error.statusCode,
140
+ body: _response.error.body,
141
+ rawResponse: _response.rawResponse,
142
+ });
143
+ }
144
+ }
145
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/fhir/implementation-guides/{name}");
146
+ });
147
+ }
148
+ /**
149
+ * Sets (or clears, with an empty value) the natural-language profile_context
150
+ * for an implementation guide. The context is injected into the LLM during
151
+ * resource detection to help select the right profiles from this guide.
152
+ * It applies to every profile in the guide.
153
+ *
154
+ * @param {string} name - The implementation guide name.
155
+ * @param {phenoml.implementationGuides.UpdateImplementationGuideRequest} request
156
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
157
+ *
158
+ * @throws {@link phenoml.implementationGuides.BadRequestError}
159
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
160
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
161
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
162
+ *
163
+ * @example
164
+ * await client.implementationGuides.implementationGuides.update("acme-cardiology")
165
+ */
166
+ update(name, request = {}, requestOptions) {
167
+ return core.HttpResponsePromise.fromPromise(this.__update(name, request, requestOptions));
168
+ }
169
+ __update(name_1) {
170
+ return __awaiter(this, arguments, void 0, function* (name, request = {}, requestOptions) {
171
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
172
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
173
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
174
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
175
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir/implementation-guides/${core.url.encodePathParam(name)}`),
176
+ method: "PUT",
177
+ headers: _headers,
178
+ contentType: "application/json",
179
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
180
+ requestType: "json",
181
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
182
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
183
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
184
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
185
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
186
+ logging: this._options.logging,
187
+ });
188
+ if (_response.ok) {
189
+ return {
190
+ data: _response.body,
191
+ rawResponse: _response.rawResponse,
192
+ };
193
+ }
194
+ if (_response.error.reason === "status-code") {
195
+ switch (_response.error.statusCode) {
196
+ case 400:
197
+ throw new phenoml.implementationGuides.BadRequestError(_response.error.body, _response.rawResponse);
198
+ case 401:
199
+ throw new phenoml.implementationGuides.UnauthorizedError(_response.error.body, _response.rawResponse);
200
+ case 403:
201
+ throw new phenoml.implementationGuides.ForbiddenError(_response.error.body, _response.rawResponse);
202
+ case 500:
203
+ throw new phenoml.implementationGuides.InternalServerError(_response.error.body, _response.rawResponse);
204
+ default:
205
+ throw new errors.phenomlError({
206
+ statusCode: _response.error.statusCode,
207
+ body: _response.error.body,
208
+ rawResponse: _response.rawResponse,
209
+ });
210
+ }
211
+ }
212
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/fhir/implementation-guides/{name}");
213
+ });
214
+ }
215
+ /**
216
+ * Deletes the stored metadata for an implementation guide — its
217
+ * profile_context and timestamps. Member profiles keep their
218
+ * implementation_guide assignment, so a guide still referenced by at least
219
+ * one profile continues to appear in listings, just without context or
220
+ * timestamps.
221
+ *
222
+ * @param {string} name - The implementation guide name.
223
+ * @param {ImplementationGuidesClient.RequestOptions} requestOptions - Request-specific configuration.
224
+ *
225
+ * @throws {@link phenoml.implementationGuides.BadRequestError}
226
+ * @throws {@link phenoml.implementationGuides.UnauthorizedError}
227
+ * @throws {@link phenoml.implementationGuides.ForbiddenError}
228
+ * @throws {@link phenoml.implementationGuides.NotFoundError}
229
+ * @throws {@link phenoml.implementationGuides.InternalServerError}
230
+ *
231
+ * @example
232
+ * await client.implementationGuides.implementationGuides.delete("acme-cardiology")
233
+ */
234
+ delete(name, requestOptions) {
235
+ return core.HttpResponsePromise.fromPromise(this.__delete(name, requestOptions));
236
+ }
237
+ __delete(name, requestOptions) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
240
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
241
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
242
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
243
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `fhir/implementation-guides/${core.url.encodePathParam(name)}`),
244
+ method: "DELETE",
245
+ headers: _headers,
246
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
247
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
248
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
249
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
251
+ logging: this._options.logging,
252
+ });
253
+ if (_response.ok) {
254
+ return { data: undefined, rawResponse: _response.rawResponse };
255
+ }
256
+ if (_response.error.reason === "status-code") {
257
+ switch (_response.error.statusCode) {
258
+ case 400:
259
+ throw new phenoml.implementationGuides.BadRequestError(_response.error.body, _response.rawResponse);
260
+ case 401:
261
+ throw new phenoml.implementationGuides.UnauthorizedError(_response.error.body, _response.rawResponse);
262
+ case 403:
263
+ throw new phenoml.implementationGuides.ForbiddenError(_response.error.body, _response.rawResponse);
264
+ case 404:
265
+ throw new phenoml.implementationGuides.NotFoundError(_response.error.body, _response.rawResponse);
266
+ case 500:
267
+ throw new phenoml.implementationGuides.InternalServerError(_response.error.body, _response.rawResponse);
268
+ default:
269
+ throw new errors.phenomlError({
270
+ statusCode: _response.error.statusCode,
271
+ body: _response.error.body,
272
+ rawResponse: _response.rawResponse,
273
+ });
274
+ }
275
+ }
276
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/fhir/implementation-guides/{name}");
277
+ });
278
+ }
279
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface UpdateImplementationGuideRequest {
6
+ /** Natural-language context that helps the LLM select the right profiles from this implementation guide during resource detection. An empty value clears the context. Max 2000 characters. */
7
+ profile_context?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type { UpdateImplementationGuideRequest } from "./UpdateImplementationGuideRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { ImplementationGuidesClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { ImplementationGuidesClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./implementationGuides/client/requests/index.mjs";
2
+ export * as implementationGuides from "./implementationGuides/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./implementationGuides/client/requests/index.mjs";
2
+ export * as implementationGuides from "./implementationGuides/index.mjs";
@@ -0,0 +1,5 @@
1
+ import type * as phenoml from "../../../index.mjs";
2
+ export interface ImplementationGuideDetail extends phenoml.implementationGuides.ImplementationGuideSummary {
3
+ /** The ids of the profiles that belong to this implementation guide. */
4
+ profiles?: string[] | undefined;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ import type * as phenoml from "../../../index.mjs";
2
+ export interface ImplementationGuideListResponse {
3
+ implementation_guides?: phenoml.implementationGuides.ImplementationGuideSummary[] | undefined;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Metadata for an implementation guide. This is an instance-local grouping record, not a complete FHIR ImplementationGuide resource.
3
+ */
4
+ export interface ImplementationGuideSummary {
5
+ /** The instance-local implementation guide name (the stable key). */
6
+ name?: string | undefined;
7
+ /** Natural-language context injected into the LLM during resource detection. */
8
+ profile_context?: string | undefined;
9
+ /** The number of custom profiles in this implementation guide. */
10
+ profile_count?: number | undefined;
11
+ /** Present only for guides that have stored metadata (a profile_context has been set). Omitted for guides that exist solely because a profile references them. */
12
+ created_at?: string | undefined;
13
+ /** Present only for guides that have stored metadata. Omitted for guides that exist solely because a profile references them. */
14
+ updated_at?: string | undefined;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./ImplementationGuideDetail.mjs";
2
+ export * from "./ImplementationGuideListResponse.mjs";
3
+ export * from "./ImplementationGuideSummary.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./ImplementationGuideDetail.mjs";
2
+ export * from "./ImplementationGuideListResponse.mjs";
3
+ export * from "./ImplementationGuideSummary.mjs";
@@ -5,7 +5,9 @@ export * as construe from "./construe/index.mjs";
5
5
  export * as fhir from "./fhir/index.mjs";
6
6
  export * as fhir2Omop from "./fhir2Omop/index.mjs";
7
7
  export * as fhirProvider from "./fhirProvider/index.mjs";
8
+ export * as implementationGuides from "./implementationGuides/index.mjs";
8
9
  export * as lang2Fhir from "./lang2Fhir/index.mjs";
10
+ export * as profiles from "./profiles/index.mjs";
9
11
  export * as summary from "./summary/index.mjs";
10
12
  export * as tools from "./tools/index.mjs";
11
13
  export * as voice from "./voice/index.mjs";
@@ -5,7 +5,9 @@ export * as construe from "./construe/index.mjs";
5
5
  export * as fhir from "./fhir/index.mjs";
6
6
  export * as fhir2Omop from "./fhir2Omop/index.mjs";
7
7
  export * as fhirProvider from "./fhirProvider/index.mjs";
8
+ export * as implementationGuides from "./implementationGuides/index.mjs";
8
9
  export * as lang2Fhir from "./lang2Fhir/index.mjs";
10
+ export * as profiles from "./profiles/index.mjs";
9
11
  export * as summary from "./summary/index.mjs";
10
12
  export * as tools from "./tools/index.mjs";
11
13
  export * as voice from "./voice/index.mjs";
@@ -89,6 +89,14 @@ export declare class Lang2FhirClient {
89
89
  search(request: phenoml.lang2Fhir.SearchRequest, requestOptions?: Lang2FhirClient.RequestOptions): core.HttpResponsePromise<phenoml.lang2Fhir.SearchResponse>;
90
90
  private __search;
91
91
  /**
92
+ * @deprecated
93
+ *
94
+ * **Deprecated — use `POST /fhir/profiles` instead.** This route continues to work
95
+ * and operates on the same custom profiles, so no migration is required; it
96
+ * will be removed in a future release. Note that `POST /fhir/profiles` does not
97
+ * accept `profile_context`; set implementation-guide context with
98
+ * `PUT /fhir/implementation-guides/{name}`.
99
+ *
92
100
  * Upload a custom FHIR StructureDefinition profile for use with the lang2fhir service.
93
101
  *
94
102
  * All metadata is derived from the StructureDefinition JSON itself. The lowercase `id` field