@icanbwell/bwell-sdk-ts 1.54.0-rc.1766515022 → 1.55.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 (612) hide show
  1. package/README.md +19 -3
  2. package/dist/__version__.d.ts +1 -1
  3. package/dist/__version__.js +1 -1
  4. package/dist/api/api-provider-factory.d.ts +1 -1
  5. package/dist/api/api-provider-factory.js +2 -1
  6. package/dist/api/base/activity/activity-manager.d.ts +18 -25
  7. package/dist/api/base/activity/get-tasks-request.d.ts +29 -49
  8. package/dist/api/base/activity/get-tasks-request.js +42 -15
  9. package/dist/api/base/activity/index.d.ts +2 -4
  10. package/dist/api/base/activity/index.js +0 -1
  11. package/dist/api/base/api-provider.d.ts +12 -14
  12. package/dist/api/base/connection/connection-manager.d.ts +68 -51
  13. package/dist/api/base/connection/connection-manager.js +3 -0
  14. package/dist/api/base/connection/connection-request.d.ts +15 -1
  15. package/dist/api/base/connection/connection-request.js +8 -0
  16. package/dist/api/base/connection/index.d.ts +1 -1
  17. package/dist/api/base/device/constants.d.ts +3 -0
  18. package/dist/api/base/device/constants.js +3 -0
  19. package/dist/api/base/device/device-manager.d.ts +34 -12
  20. package/dist/api/base/device/device-manager.js +1 -5
  21. package/dist/api/base/device/device-request.d.ts +35 -42
  22. package/dist/api/base/device/device-request.js +30 -42
  23. package/dist/api/base/device/index.d.ts +2 -2
  24. package/dist/api/base/device/index.js +2 -2
  25. package/dist/api/base/financial/coverage-request.d.ts +5 -6
  26. package/dist/api/base/financial/coverage-request.js +7 -7
  27. package/dist/api/base/financial/{explanation-of-benefit.d.ts → explanation-of-benefit-request.d.ts} +15 -9
  28. package/dist/api/base/financial/{explanation-of-benefit.js → explanation-of-benefit-request.js} +8 -18
  29. package/dist/api/base/financial/financial-manager.d.ts +46 -14
  30. package/dist/api/base/financial/index.d.ts +3 -2
  31. package/dist/api/base/financial/index.js +2 -2
  32. package/dist/api/base/health-data/health-data-request.d.ts +116 -8
  33. package/dist/api/base/health-data/health-data-request.js +83 -2
  34. package/dist/api/base/health-data/health-data-response-factory.d.ts +27 -0
  35. package/dist/api/base/health-data/health-manager.d.ts +293 -243
  36. package/dist/api/base/health-data/index.d.ts +2 -3
  37. package/dist/api/base/health-data/index.js +0 -2
  38. package/dist/api/base/health-data/lab-knowledge-request.d.ts +9 -0
  39. package/dist/api/base/health-data/lab-knowledge-request.js +3 -0
  40. package/dist/api/base/health-data/medication-knowledge-request.d.ts +9 -0
  41. package/dist/api/base/health-data/medication-knowledge-request.js +3 -0
  42. package/dist/api/base/health-space/appointments-request.d.ts +9 -0
  43. package/dist/api/base/health-space/appointments-request.js +3 -0
  44. package/dist/api/base/health-space/cancel-appointment-request.d.ts +8 -1
  45. package/dist/api/base/health-space/cancel-appointment-request.js +4 -0
  46. package/dist/api/base/health-space/cancellation-reasons-request.d.ts +28 -0
  47. package/dist/api/base/health-space/{cancelationReasons-request.js → cancellation-reasons-request.js} +10 -4
  48. package/dist/api/base/health-space/health-space-manager.d.ts +29 -116
  49. package/dist/api/base/health-space/index.d.ts +2 -7
  50. package/dist/api/base/health-space/index.js +1 -6
  51. package/dist/api/base/identity/identity-manager.d.ts +98 -11
  52. package/dist/api/base/index.d.ts +1 -3
  53. package/dist/api/base/index.js +2 -3
  54. package/dist/api/base/questionnaire/index.d.ts +1 -4
  55. package/dist/api/base/questionnaire/index.js +0 -3
  56. package/dist/api/base/questionnaire/next-question-request.d.ts +8 -2
  57. package/dist/api/base/questionnaire/next-question-request.js +4 -1
  58. package/dist/api/base/questionnaire/questionnaire-manager.d.ts +24 -42
  59. package/dist/api/base/requests/field-sort-order.d.ts +11 -0
  60. package/dist/api/base/requests/index.d.ts +2 -0
  61. package/dist/api/base/requests/search-date.d.ts +12 -0
  62. package/dist/api/base/requests/search-reference.d.ts +9 -1
  63. package/dist/api/base/requests/search-string.d.ts +6 -0
  64. package/dist/api/base/requests/search-token.d.ts +18 -0
  65. package/dist/api/base/requests/search-token.js +17 -17
  66. package/dist/api/base/search/index.d.ts +3 -5
  67. package/dist/api/base/search/index.js +1 -3
  68. package/dist/api/base/search/search-health-resources-request.d.ts +33 -44
  69. package/dist/api/base/search/search-health-resources-request.js +3 -0
  70. package/dist/api/base/search/search-manager.d.ts +39 -42
  71. package/dist/api/base/search/submit-provider-for-review-request.d.ts +33 -0
  72. package/dist/api/base/search/submit-provider-for-review-request.js +9 -0
  73. package/dist/api/base/user/create-consent-request.d.ts +13 -1
  74. package/dist/api/base/user/create-consent-request.js +10 -5
  75. package/dist/api/base/user/create-data-export-direct-download-url-request.d.ts +9 -0
  76. package/dist/api/base/user/create-data-export-direct-download-url-request.js +3 -0
  77. package/dist/api/base/user/create-verification-url-request.d.ts +12 -0
  78. package/dist/api/base/user/create-verification-url-request.js +6 -0
  79. package/dist/api/base/user/get-consents-request.d.ts +19 -1
  80. package/dist/api/base/user/get-consents-request.js +13 -1
  81. package/dist/api/base/user/index.d.ts +1 -2
  82. package/dist/api/base/user/update-profile-request.d.ts +11 -3
  83. package/dist/api/base/user/update-profile-request.js +5 -3
  84. package/dist/api/base/user/user-manager.d.ts +100 -49
  85. package/dist/api/base/user/validators.d.ts +5 -0
  86. package/dist/api/base/user/validators.js +13 -0
  87. package/dist/api/graphql-api/activity/{activity-request-factories.d.ts → get-tasks-request-factory.d.ts} +0 -7
  88. package/dist/api/graphql-api/activity/get-tasks-request-factory.js +56 -0
  89. package/dist/api/graphql-api/activity/graphql-activity-manager.d.ts +6 -8
  90. package/dist/api/graphql-api/activity/graphql-activity-manager.js +19 -30
  91. package/dist/api/graphql-api/activity/index.d.ts +1 -1
  92. package/dist/api/graphql-api/activity/index.js +1 -1
  93. package/dist/api/graphql-api/connection/connection-response-factory.d.ts +7 -0
  94. package/dist/api/graphql-api/connection/connection-response-factory.js +101 -0
  95. package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +9 -9
  96. package/dist/api/graphql-api/connection/graphql-connection-manager.js +7 -5
  97. package/dist/api/graphql-api/connection/index.d.ts +0 -1
  98. package/dist/api/graphql-api/connection/index.js +1 -1
  99. package/dist/api/graphql-api/device/graphql-device-manager.d.ts +2 -1
  100. package/dist/api/graphql-api/device/graphql-device-manager.js +4 -2
  101. package/dist/api/graphql-api/errors/errors.js +1 -1
  102. package/dist/api/graphql-api/financial/coverage-request-factory.d.ts +9 -0
  103. package/dist/api/graphql-api/financial/coverage-request-factory.js +19 -0
  104. package/dist/api/graphql-api/financial/{graphql-explanation-of-benefits-factory.d.ts → explanation-of-benefit-request-factory.d.ts} +3 -3
  105. package/dist/api/graphql-api/financial/explanation-of-benefit-request-factory.js +19 -0
  106. package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +4 -12
  107. package/dist/api/graphql-api/financial/graphql-financial-manager.js +32 -19
  108. package/dist/api/graphql-api/financial/index.d.ts +3 -1
  109. package/dist/api/graphql-api/financial/index.js +3 -1
  110. package/dist/api/graphql-api/graphql-api-provider.d.ts +6 -14
  111. package/dist/api/graphql-api/graphql-api-provider.js +6 -7
  112. package/dist/api/graphql-api/health-space/cancel-appointment-request-factory.js +1 -2
  113. package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +5 -62
  114. package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +9 -163
  115. package/dist/api/graphql-api/health-space/index.d.ts +0 -4
  116. package/dist/api/graphql-api/health-space/index.js +0 -4
  117. package/dist/api/graphql-api/healthdata/get-encounters-request-factory.d.ts +7 -0
  118. package/dist/api/graphql-api/healthdata/get-encounters-request-factory.js +76 -0
  119. package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.d.ts +6 -0
  120. package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.js +25 -0
  121. package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +30 -41
  122. package/dist/api/graphql-api/healthdata/graphql-health-manager.js +311 -256
  123. package/dist/api/graphql-api/healthdata/health-data-request-factory.d.ts +18 -0
  124. package/dist/api/graphql-api/healthdata/health-data-request-factory.js +25 -0
  125. package/dist/api/graphql-api/healthdata/health-data-response-factory.d.ts +8 -0
  126. package/dist/api/graphql-api/healthdata/health-data-response-factory.js +58 -0
  127. package/dist/api/graphql-api/identity/graphql-identity-manager.d.ts +2 -1
  128. package/dist/api/graphql-api/identity/graphql-identity-manager.js +5 -3
  129. package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +4 -22
  130. package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +4 -69
  131. package/dist/api/graphql-api/questionnaire/index.d.ts +0 -2
  132. package/dist/api/graphql-api/questionnaire/index.js +0 -2
  133. package/dist/api/graphql-api/search/graphql-search-manager.d.ts +4 -6
  134. package/dist/api/graphql-api/search/graphql-search-manager.js +9 -71
  135. package/dist/api/graphql-api/search/search-health-resources-request-factory.js +12 -11
  136. package/dist/api/graphql-api/search/submit-provider-for-review-request-factory.d.ts +6 -0
  137. package/dist/api/graphql-api/search/{request-connection-request-factory.js → submit-provider-for-review-request-factory.js} +1 -1
  138. package/dist/api/graphql-api/user/get-consent-request-factory.d.ts +1 -2
  139. package/dist/api/graphql-api/user/get-consent-request-factory.js +5 -1
  140. package/dist/api/graphql-api/user/graphql-user-manager.d.ts +10 -11
  141. package/dist/api/graphql-api/user/graphql-user-manager.js +11 -10
  142. package/dist/api/graphql-api/user/update-profile-request-factory.js +1 -2
  143. package/dist/api/identity-manager-factory.js +1 -1
  144. package/dist/auth/auth-code-strategy.d.ts +2 -1
  145. package/dist/auth/auth-strategy.d.ts +1 -1
  146. package/dist/auth/credentials.d.ts +1 -1
  147. package/dist/auth/credentials.js +2 -2
  148. package/dist/auth/oauth-strategy.d.ts +2 -1
  149. package/dist/auth/username-password-strategy.d.ts +2 -1
  150. package/dist/auth/username-password-strategy.js +2 -2
  151. package/dist/bwell-sdk/bwell-sdk.d.ts +319 -48
  152. package/dist/bwell-sdk/bwell-sdk.js +368 -53
  153. package/dist/config/bwell-config.d.ts +12 -12
  154. package/dist/config/bwell-config.js +2 -5
  155. package/dist/config/sdk-config.d.ts +2 -3
  156. package/dist/config/sdk-config.js +4 -6
  157. package/dist/errors/authentication-error.d.ts +7 -0
  158. package/dist/errors/authentication-error.js +7 -0
  159. package/dist/errors/bwell-error.d.ts +12 -2
  160. package/dist/errors/bwell-error.js +5 -2
  161. package/dist/errors/illegal-argument-error.d.ts +7 -0
  162. package/dist/errors/illegal-argument-error.js +7 -0
  163. package/dist/errors/illegal-state-error.d.ts +7 -0
  164. package/dist/errors/illegal-state-error.js +7 -0
  165. package/dist/errors/invalid-client-key-error.d.ts +7 -0
  166. package/dist/errors/invalid-client-key-error.js +7 -0
  167. package/dist/errors/invalid-credentials-type-error.d.ts +7 -0
  168. package/dist/errors/invalid-credentials-type-error.js +7 -0
  169. package/dist/errors/invalid-token-error.d.ts +4 -1
  170. package/dist/errors/invalid-token-error.js +4 -1
  171. package/dist/errors/network-error.d.ts +7 -0
  172. package/dist/errors/network-error.js +7 -0
  173. package/dist/errors/operation-outcome-error.d.ts +8 -1
  174. package/dist/errors/operation-outcome-error.js +7 -0
  175. package/dist/errors/unknown-error.d.ts +7 -0
  176. package/dist/errors/unknown-error.js +7 -0
  177. package/dist/errors/validation-error.d.ts +7 -0
  178. package/dist/errors/validation-error.js +7 -0
  179. package/dist/graphql/operations/index.d.ts +116 -315
  180. package/dist/graphql/operations/index.js +1891 -2311
  181. package/dist/graphql/operations/types.d.ts +16893 -18936
  182. package/dist/graphql/schema.d.ts +68323 -5995
  183. package/dist/graphql/schema.js +1 -484
  184. package/dist/index.d.ts +7 -5
  185. package/dist/index.js +5 -4
  186. package/dist/language/language-manager.d.ts +25 -10
  187. package/dist/language/language-manager.js +5 -0
  188. package/dist/models/activity/index.d.ts +1 -0
  189. package/dist/models/activity/task.d.ts +77 -0
  190. package/dist/models/common/address.d.ts +41 -0
  191. package/dist/models/common/annotation.d.ts +18 -0
  192. package/dist/models/common/annotation.js +1 -0
  193. package/dist/models/common/attachment.d.ts +18 -0
  194. package/dist/models/common/attachment.js +1 -0
  195. package/dist/models/common/bundle.d.ts +83 -0
  196. package/dist/models/common/bundle.js +1 -0
  197. package/dist/models/common/codeable-concept.d.ts +17 -0
  198. package/dist/models/common/codeable-concept.js +1 -0
  199. package/dist/models/common/coding.d.ts +18 -0
  200. package/dist/models/common/coding.js +1 -0
  201. package/dist/models/common/component.d.ts +23 -0
  202. package/dist/models/common/component.js +1 -0
  203. package/dist/models/common/contact-point.d.ts +32 -0
  204. package/dist/models/common/contact-point.js +1 -0
  205. package/dist/models/common/dispense-request.d.ts +67 -0
  206. package/dist/models/common/dispense-request.js +1 -0
  207. package/dist/models/common/dosage.d.ts +68 -0
  208. package/dist/models/common/dosage.js +1 -0
  209. package/dist/models/common/endpoint.d.ts +23 -0
  210. package/dist/models/common/endpoint.js +1 -0
  211. package/dist/models/common/expression.d.ts +20 -0
  212. package/dist/models/common/expression.js +1 -0
  213. package/dist/models/common/extension.d.ts +49 -0
  214. package/dist/models/common/extension.js +1 -0
  215. package/dist/models/common/fhir-error.d.ts +23 -0
  216. package/dist/models/common/fhir-error.js +1 -0
  217. package/dist/models/common/human-name.d.ts +20 -0
  218. package/dist/models/common/human-name.js +1 -0
  219. package/dist/models/common/identifier.d.ts +19 -0
  220. package/dist/models/common/identifier.js +1 -0
  221. package/dist/models/common/index.d.ts +38 -0
  222. package/dist/models/common/index.js +2 -0
  223. package/dist/models/common/location.d.ts +51 -0
  224. package/dist/models/common/location.js +1 -0
  225. package/dist/models/common/medication.d.ts +42 -0
  226. package/dist/models/common/medication.js +1 -0
  227. package/dist/models/common/meta.d.ts +21 -0
  228. package/dist/models/common/meta.js +1 -0
  229. package/dist/models/common/money.d.ts +15 -0
  230. package/dist/models/common/money.js +1 -0
  231. package/dist/models/common/narrative.d.ts +14 -0
  232. package/dist/models/common/narrative.js +1 -0
  233. package/dist/models/common/operation-outcome.d.ts +48 -0
  234. package/dist/models/common/operation-outcome.js +1 -0
  235. package/dist/models/common/organization.d.ts +46 -0
  236. package/dist/models/common/organization.js +1 -0
  237. package/dist/models/common/paging-info.d.ts +18 -0
  238. package/dist/models/common/paging-info.js +1 -0
  239. package/dist/models/common/patient.d.ts +13 -0
  240. package/dist/models/common/patient.js +1 -0
  241. package/dist/models/common/period.d.ts +14 -0
  242. package/dist/models/common/period.js +1 -0
  243. package/dist/models/common/practitioner-role.d.ts +42 -0
  244. package/dist/models/common/practitioner-role.js +1 -0
  245. package/dist/models/common/practitioner.d.ts +17 -0
  246. package/dist/models/common/practitioner.js +1 -0
  247. package/dist/models/common/quantity.d.ts +20 -0
  248. package/dist/models/common/quantity.js +1 -0
  249. package/dist/models/common/range.d.ts +15 -0
  250. package/dist/models/common/range.js +1 -0
  251. package/dist/models/common/ratio.d.ts +15 -0
  252. package/dist/models/common/ratio.js +1 -0
  253. package/dist/models/common/reference-range.d.ts +13 -0
  254. package/dist/models/common/reference-range.js +1 -0
  255. package/dist/models/common/reference.d.ts +27 -0
  256. package/dist/models/common/reference.js +1 -0
  257. package/dist/models/common/related-person.d.ts +34 -0
  258. package/dist/models/common/related-person.js +1 -0
  259. package/dist/models/common/score.d.ts +16 -0
  260. package/dist/models/common/score.js +1 -0
  261. package/dist/models/common/service-request.d.ts +21 -0
  262. package/dist/models/common/service-request.js +1 -0
  263. package/dist/models/common/specimen.d.ts +30 -0
  264. package/dist/models/common/specimen.js +7 -0
  265. package/dist/models/common/timing.d.ts +107 -0
  266. package/dist/models/common/timing.js +1 -0
  267. package/dist/models/common/value.d.ts +22 -0
  268. package/dist/models/common/value.js +1 -0
  269. package/dist/models/connection/base-connection.d.ts +27 -0
  270. package/dist/models/connection/base-connection.js +1 -0
  271. package/dist/models/connection/connection-status.d.ts +15 -0
  272. package/dist/models/connection/connection-status.js +1 -0
  273. package/dist/models/connection/connection.d.ts +32 -0
  274. package/dist/models/connection/connection.js +1 -0
  275. package/dist/models/connection/data-source.d.ts +27 -0
  276. package/dist/models/connection/data-source.js +1 -0
  277. package/dist/models/connection/index.d.ts +6 -0
  278. package/dist/models/connection/index.js +1 -0
  279. package/dist/models/connection/member-connection.d.ts +37 -0
  280. package/dist/models/connection/member-connection.js +1 -0
  281. package/dist/models/connection/oauth-url.d.ts +12 -0
  282. package/dist/models/connection/oauth-url.js +1 -0
  283. package/dist/models/device/device-registration-results.d.ts +12 -0
  284. package/dist/models/device/device-registration-results.js +1 -0
  285. package/dist/models/device/index.d.ts +1 -0
  286. package/dist/models/device/index.js +1 -0
  287. package/dist/models/enums/category-code.d.ts +11 -0
  288. package/dist/models/enums/category-code.js +13 -0
  289. package/dist/models/enums/connection-category.d.ts +9 -0
  290. package/dist/models/enums/connection-category.js +1 -0
  291. package/dist/models/enums/consent-provision-type.d.ts +11 -0
  292. package/dist/models/enums/consent-provision-type.js +2 -0
  293. package/dist/models/enums/consent-status.d.ts +11 -0
  294. package/dist/models/enums/consent-status.js +9 -0
  295. package/dist/models/enums/data-connection-status.d.ts +9 -0
  296. package/dist/models/enums/data-connection-status.js +1 -0
  297. package/dist/models/enums/data-connection-type.d.ts +9 -0
  298. package/dist/models/enums/data-connection-type.js +1 -0
  299. package/dist/models/enums/data-set.d.ts +10 -0
  300. package/dist/models/enums/data-set.js +1 -0
  301. package/dist/models/enums/device-platform.d.ts +11 -0
  302. package/dist/models/enums/device-platform.js +2 -0
  303. package/dist/models/enums/endpoint-status.d.ts +9 -0
  304. package/dist/models/enums/endpoint-status.js +1 -0
  305. package/dist/models/enums/filter-field.d.ts +9 -0
  306. package/dist/models/enums/filter-field.js +1 -0
  307. package/dist/models/enums/gender.d.ts +9 -0
  308. package/dist/models/enums/gender.js +1 -0
  309. package/dist/models/enums/index.d.ts +18 -0
  310. package/dist/models/enums/index.js +5 -0
  311. package/dist/models/enums/log-level.d.ts +8 -0
  312. package/dist/models/enums/log-level.js +1 -0
  313. package/dist/models/enums/person-gender.d.ts +11 -0
  314. package/dist/models/enums/person-gender.js +7 -0
  315. package/dist/models/enums/search-context.d.ts +10 -0
  316. package/dist/models/enums/search-context.js +1 -0
  317. package/dist/models/enums/search-result-type.d.ts +9 -0
  318. package/dist/models/enums/search-result-type.js +1 -0
  319. package/dist/models/enums/sort-field.d.ts +10 -0
  320. package/dist/models/enums/sort-field.js +1 -0
  321. package/dist/models/enums/sort-order.d.ts +9 -0
  322. package/dist/models/enums/sort-order.js +1 -0
  323. package/dist/models/enums/sync-status.d.ts +9 -0
  324. package/dist/models/enums/sync-status.js +1 -0
  325. package/dist/models/financial/coverage-bundle.d.ts +18 -0
  326. package/dist/models/financial/coverage-bundle.js +1 -0
  327. package/dist/models/financial/coverage.d.ts +65 -0
  328. package/dist/models/financial/coverage.js +1 -0
  329. package/dist/models/financial/explanation-of-benefit-bundle.d.ts +26 -0
  330. package/dist/models/financial/explanation-of-benefit-bundle.js +1 -0
  331. package/dist/models/financial/explanation-of-benefit.d.ts +274 -0
  332. package/dist/models/financial/explanation-of-benefit.js +1 -0
  333. package/dist/models/financial/index.d.ts +4 -0
  334. package/dist/models/financial/index.js +4 -0
  335. package/dist/models/health-data/allergy-intolerance-bundle.d.ts +11 -0
  336. package/dist/models/health-data/allergy-intolerance-bundle.js +1 -0
  337. package/dist/models/health-data/allergy-intolerance-group.d.ts +44 -0
  338. package/dist/models/health-data/allergy-intolerance-group.js +1 -0
  339. package/dist/models/health-data/allergy-intolerance-reaction.d.ts +23 -0
  340. package/dist/models/health-data/allergy-intolerance-reaction.js +1 -0
  341. package/dist/models/health-data/allergy-intolerance.d.ts +54 -0
  342. package/dist/models/health-data/allergy-intolerance.js +1 -0
  343. package/dist/models/health-data/care-plan-group.d.ts +42 -0
  344. package/dist/models/health-data/care-plan-group.js +1 -0
  345. package/dist/models/health-data/care-plan.d.ts +134 -0
  346. package/dist/models/health-data/care-plan.js +1 -0
  347. package/dist/models/health-data/care-team.d.ts +77 -0
  348. package/dist/models/health-data/care-team.js +1 -0
  349. package/dist/models/health-data/condition-group.d.ts +42 -0
  350. package/dist/models/health-data/condition-group.js +1 -0
  351. package/dist/models/health-data/condition.d.ts +104 -0
  352. package/dist/models/health-data/condition.js +1 -0
  353. package/dist/models/health-data/diagnostic-report-lab-group.d.ts +45 -0
  354. package/dist/models/health-data/diagnostic-report-lab-group.js +1 -0
  355. package/dist/models/health-data/diagnostic-report.d.ts +90 -0
  356. package/dist/models/health-data/diagnostic-report.js +1 -0
  357. package/dist/models/health-data/encounter-group.d.ts +48 -0
  358. package/dist/models/health-data/encounter-group.js +1 -0
  359. package/dist/models/health-data/encounter.d.ts +79 -0
  360. package/dist/models/health-data/encounter.js +1 -0
  361. package/dist/models/health-data/health-summary.d.ts +18 -0
  362. package/dist/models/health-data/health-summary.js +1 -0
  363. package/dist/models/health-data/immunization-group.d.ts +41 -0
  364. package/dist/models/health-data/immunization-group.js +1 -0
  365. package/dist/models/health-data/immunization.d.ts +150 -0
  366. package/dist/models/health-data/immunization.js +1 -0
  367. package/dist/models/health-data/index.d.ts +30 -0
  368. package/dist/models/health-data/index.js +1 -0
  369. package/dist/models/health-data/lab-bundle.d.ts +26 -0
  370. package/dist/models/health-data/lab-bundle.js +1 -0
  371. package/dist/models/health-data/lab-group.d.ts +51 -0
  372. package/dist/models/health-data/lab-group.js +1 -0
  373. package/dist/models/health-data/lab-knowledge.d.ts +28 -0
  374. package/dist/models/health-data/lab-knowledge.js +1 -0
  375. package/dist/models/health-data/medication-dispense.d.ts +108 -0
  376. package/dist/models/health-data/medication-dispense.js +1 -0
  377. package/dist/models/health-data/medication-group.d.ts +43 -0
  378. package/dist/models/health-data/medication-group.js +1 -0
  379. package/dist/models/health-data/medication-knowledge.d.ts +30 -0
  380. package/dist/models/health-data/medication-knowledge.js +1 -0
  381. package/dist/models/health-data/medication-pricing.d.ts +28 -0
  382. package/dist/models/health-data/medication-pricing.js +1 -0
  383. package/dist/models/health-data/medication-request.d.ts +107 -0
  384. package/dist/models/health-data/medication-request.js +1 -0
  385. package/dist/models/health-data/medication-statement.d.ts +68 -0
  386. package/dist/models/health-data/medication-statement.js +1 -0
  387. package/dist/models/health-data/observation.d.ts +102 -0
  388. package/dist/models/health-data/observation.js +1 -0
  389. package/dist/models/health-data/procedure-group.d.ts +43 -0
  390. package/dist/models/health-data/procedure-group.js +1 -0
  391. package/dist/models/health-data/procedure.d.ts +84 -0
  392. package/dist/models/health-data/procedure.js +1 -0
  393. package/dist/models/health-data/vital-sign-bundle.d.ts +18 -0
  394. package/dist/models/health-data/vital-sign-bundle.js +1 -0
  395. package/dist/models/health-data/vital-sign-group.d.ts +51 -0
  396. package/dist/models/health-data/vital-sign-group.js +1 -0
  397. package/dist/models/health-space/appointment-bundle.d.ts +11 -0
  398. package/dist/models/health-space/appointment-bundle.js +1 -0
  399. package/dist/models/health-space/appointment-participant.d.ts +17 -0
  400. package/dist/models/health-space/appointment-participant.js +1 -0
  401. package/dist/models/health-space/appointment-update.d.ts +14 -0
  402. package/dist/models/health-space/appointment-update.js +1 -0
  403. package/dist/models/health-space/appointment.d.ts +30 -0
  404. package/dist/models/health-space/appointment.js +1 -0
  405. package/dist/models/health-space/cancellation-reasons.d.ts +32 -0
  406. package/dist/models/health-space/cancellation-reasons.js +1 -0
  407. package/dist/models/health-space/index.d.ts +5 -0
  408. package/dist/models/health-space/index.js +1 -0
  409. package/dist/models/identity/auth-tokens.d.ts +25 -0
  410. package/dist/models/identity/auth-tokens.js +1 -0
  411. package/dist/models/identity/create-guest-access-token-results.d.ts +12 -0
  412. package/dist/models/identity/create-guest-access-token-results.js +1 -0
  413. package/dist/models/identity/index.d.ts +4 -0
  414. package/dist/models/identity/index.js +1 -0
  415. package/dist/models/identity/refresh-token-results.d.ts +8 -0
  416. package/dist/models/identity/refresh-token-results.js +1 -0
  417. package/dist/models/identity/sdk-configuration-result.d.ts +26 -0
  418. package/dist/models/identity/sdk-configuration-result.js +1 -0
  419. package/dist/models/index.d.ts +12 -4
  420. package/dist/models/index.js +12 -4
  421. package/dist/models/questionnaire/index.d.ts +5 -0
  422. package/dist/models/questionnaire/index.js +1 -0
  423. package/dist/models/questionnaire/questionnaire-item.d.ts +38 -0
  424. package/dist/models/questionnaire/questionnaire-item.js +1 -0
  425. package/dist/models/questionnaire/questionnaire-response-answer.d.ts +33 -0
  426. package/dist/models/questionnaire/questionnaire-response-answer.js +1 -0
  427. package/dist/models/questionnaire/questionnaire-response-item.d.ts +19 -0
  428. package/dist/models/questionnaire/questionnaire-response-item.js +1 -0
  429. package/dist/models/questionnaire/questionnaire-response.d.ts +29 -0
  430. package/dist/models/questionnaire/questionnaire-response.js +1 -0
  431. package/dist/models/questionnaire/questionnaire.d.ts +30 -0
  432. package/dist/models/questionnaire/questionnaire.js +1 -0
  433. package/dist/models/search/health-resources.d.ts +133 -0
  434. package/dist/models/search/health-resources.js +1 -0
  435. package/dist/models/search/index.d.ts +2 -0
  436. package/dist/models/search/index.js +1 -0
  437. package/dist/models/search/provider-review-result.d.ts +15 -0
  438. package/dist/models/search/provider-review-result.js +1 -0
  439. package/dist/models/user/consent.d.ts +100 -0
  440. package/dist/models/user/consent.js +1 -0
  441. package/dist/models/user/index.d.ts +4 -0
  442. package/dist/models/user/index.js +1 -0
  443. package/dist/models/user/person.d.ts +43 -0
  444. package/dist/models/user/person.js +1 -0
  445. package/dist/models/user/user.d.ts +12 -0
  446. package/dist/models/user/user.js +1 -0
  447. package/dist/models/user/verification-result.d.ts +30 -0
  448. package/dist/models/user/verification-result.js +1 -0
  449. package/dist/requests/paged-request.d.ts +35 -0
  450. package/dist/requests/paged-request.js +22 -0
  451. package/dist/requests/request.d.ts +16 -0
  452. package/dist/requests/request.js +8 -0
  453. package/dist/requests/validator.d.ts +15 -0
  454. package/dist/requests/validator.js +7 -0
  455. package/dist/results/bwell-query-result.d.ts +5 -0
  456. package/dist/results/bwell-query-result.js +5 -0
  457. package/dist/results/bwell-transaction-result.d.ts +17 -3
  458. package/dist/results/bwell-transaction-result.js +15 -1
  459. package/dist/results/index.d.ts +1 -0
  460. package/dist/results/index.js +1 -0
  461. package/dist/telemetry/open-telemetry-instrumentation.js +1 -4
  462. package/dist/tokens/index.d.ts +2 -0
  463. package/dist/tokens/index.js +2 -0
  464. package/dist/tokens/jwt-token-manager.d.ts +3 -7
  465. package/dist/tokens/jwt-token-manager.js +9 -8
  466. package/dist/tokens/load-auth-tokens.d.ts +6 -0
  467. package/dist/tokens/load-auth-tokens.js +43 -0
  468. package/dist/tokens/token-manager.d.ts +12 -0
  469. package/dist/tokens/token-manager.js +5 -0
  470. package/dist/tokens/token-storage.d.ts +20 -0
  471. package/dist/tokens/token-storage.js +19 -0
  472. package/dist/utils/index.d.ts +1 -1
  473. package/dist/utils/index.js +1 -1
  474. package/dist/utils/parsing-utils.d.ts +11 -1
  475. package/dist/utils/parsing-utils.js +33 -1
  476. package/dist/utils/search-token-utils.d.ts +8 -0
  477. package/dist/utils/search-token-utils.js +23 -0
  478. package/package.json +23 -19
  479. package/dist/api/base/activity/types.d.ts +0 -3
  480. package/dist/api/base/activity/types.js +0 -5
  481. package/dist/api/base/activity/update-task-status-request.d.ts +0 -18
  482. package/dist/api/base/activity/update-task-status-request.js +0 -15
  483. package/dist/api/base/event/event-manager.d.ts +0 -16
  484. package/dist/api/base/event/event-request.d.ts +0 -35
  485. package/dist/api/base/event/event-request.js +0 -64
  486. package/dist/api/base/event/index.d.ts +0 -2
  487. package/dist/api/base/event/index.js +0 -1
  488. package/dist/api/base/health-data/medication-pricing-request.d.ts +0 -21
  489. package/dist/api/base/health-data/medication-pricing-request.js +0 -26
  490. package/dist/api/base/health-data/medication-statement-request.d.ts +0 -29
  491. package/dist/api/base/health-data/medication-statement-request.js +0 -35
  492. package/dist/api/base/health-space/add-care-team-member-request.d.ts +0 -33
  493. package/dist/api/base/health-space/add-care-team-member-request.js +0 -36
  494. package/dist/api/base/health-space/add-care-team-members-request.d.ts +0 -35
  495. package/dist/api/base/health-space/add-care-team-members-request.js +0 -61
  496. package/dist/api/base/health-space/cancelationReasons-request.d.ts +0 -16
  497. package/dist/api/base/health-space/care-team-members-request.d.ts +0 -31
  498. package/dist/api/base/health-space/care-team-members-request.js +0 -33
  499. package/dist/api/base/health-space/remove-care-team-member-request.d.ts +0 -34
  500. package/dist/api/base/health-space/remove-care-team-member-request.js +0 -36
  501. package/dist/api/base/health-space/update-care-team-member-request.d.ts +0 -55
  502. package/dist/api/base/health-space/update-care-team-member-request.js +0 -71
  503. package/dist/api/base/questionnaire/questionnaire-responses-request.d.ts +0 -30
  504. package/dist/api/base/questionnaire/questionnaire-responses-request.js +0 -49
  505. package/dist/api/base/questionnaire/questionnaires-request.d.ts +0 -18
  506. package/dist/api/base/questionnaire/questionnaires-request.js +0 -42
  507. package/dist/api/base/questionnaire/save-questionnaire-response-request.d.ts +0 -22
  508. package/dist/api/base/questionnaire/save-questionnaire-response-request.js +0 -33
  509. package/dist/api/base/search/request-connection-request.d.ts +0 -24
  510. package/dist/api/base/search/request-connection-request.js +0 -3
  511. package/dist/api/base/search/search-request.d.ts +0 -84
  512. package/dist/api/base/search/search-request.js +0 -78
  513. package/dist/api/base/support/create-support-comment-request.d.ts +0 -13
  514. package/dist/api/base/support/create-support-comment-request.js +0 -18
  515. package/dist/api/base/support/create-support-request-request.d.ts +0 -22
  516. package/dist/api/base/support/create-support-request-request.js +0 -20
  517. package/dist/api/base/support/delete-support-attachment-request.d.ts +0 -11
  518. package/dist/api/base/support/delete-support-attachment-request.js +0 -14
  519. package/dist/api/base/support/get-support-articles-request.d.ts +0 -14
  520. package/dist/api/base/support/get-support-articles-request.js +0 -12
  521. package/dist/api/base/support/get-support-attachment-request.d.ts +0 -14
  522. package/dist/api/base/support/get-support-attachment-request.js +0 -18
  523. package/dist/api/base/support/get-support-comments-request.d.ts +0 -14
  524. package/dist/api/base/support/get-support-comments-request.js +0 -15
  525. package/dist/api/base/support/get-support-requests-request.d.ts +0 -16
  526. package/dist/api/base/support/get-support-requests-request.js +0 -14
  527. package/dist/api/base/support/index.d.ts +0 -9
  528. package/dist/api/base/support/index.js +0 -9
  529. package/dist/api/base/support/support-manager.d.ts +0 -78
  530. package/dist/api/base/support/upload-support-attachment-request.d.ts +0 -25
  531. package/dist/api/base/support/upload-support-attachment-request.js +0 -27
  532. package/dist/api/base/user/types.d.ts +0 -9
  533. package/dist/api/base/user/types.js +0 -17
  534. package/dist/api/graphql-api/activity/activity-request-factories.js +0 -70
  535. package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.d.ts +0 -18
  536. package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.js +0 -40
  537. package/dist/api/graphql-api/event/event-request-factory.d.ts +0 -6
  538. package/dist/api/graphql-api/event/event-request-factory.js +0 -11
  539. package/dist/api/graphql-api/event/graphql-event-manager.d.ts +0 -15
  540. package/dist/api/graphql-api/event/graphql-event-manager.js +0 -65
  541. package/dist/api/graphql-api/event/index.d.ts +0 -1
  542. package/dist/api/graphql-api/event/index.js +0 -1
  543. package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.d.ts +0 -6
  544. package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.js +0 -17
  545. package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.js +0 -23
  546. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.d.ts +0 -20
  547. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.js +0 -29
  548. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.d.ts +0 -16
  549. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.js +0 -23
  550. package/dist/api/graphql-api/health-space/care-team-factory-utils.d.ts +0 -23
  551. package/dist/api/graphql-api/health-space/care-team-factory-utils.js +0 -30
  552. package/dist/api/graphql-api/health-space/care-team-members-request-factory.d.ts +0 -12
  553. package/dist/api/graphql-api/health-space/care-team-members-request-factory.js +0 -17
  554. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.d.ts +0 -16
  555. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.js +0 -24
  556. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.d.ts +0 -16
  557. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.js +0 -20
  558. package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.d.ts +0 -6
  559. package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.js +0 -12
  560. package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.d.ts +0 -10
  561. package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js +0 -35
  562. package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.d.ts +0 -10
  563. package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js +0 -35
  564. package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.d.ts +0 -6
  565. package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.js +0 -11
  566. package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.d.ts +0 -9
  567. package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.js +0 -22
  568. package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.d.ts +0 -6
  569. package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.js +0 -16
  570. package/dist/api/graphql-api/search/connection-search-request-factory.d.ts +0 -7
  571. package/dist/api/graphql-api/search/connection-search-request-factory.js +0 -21
  572. package/dist/api/graphql-api/search/index.d.ts +0 -1
  573. package/dist/api/graphql-api/search/index.js +0 -1
  574. package/dist/api/graphql-api/search/provider-search-request-factory.d.ts +0 -7
  575. package/dist/api/graphql-api/search/provider-search-request-factory.js +0 -21
  576. package/dist/api/graphql-api/search/request-connection-request-factory.d.ts +0 -6
  577. package/dist/api/graphql-api/search/search-request-factory.d.ts +0 -6
  578. package/dist/api/graphql-api/search/search-request-factory.js +0 -44
  579. package/dist/api/graphql-api/support/create-support-comment-request-factory.d.ts +0 -6
  580. package/dist/api/graphql-api/support/create-support-comment-request-factory.js +0 -12
  581. package/dist/api/graphql-api/support/create-support-request-request-factory.d.ts +0 -6
  582. package/dist/api/graphql-api/support/create-support-request-request-factory.js +0 -19
  583. package/dist/api/graphql-api/support/delete-support-attachment-request-factory.d.ts +0 -6
  584. package/dist/api/graphql-api/support/delete-support-attachment-request-factory.js +0 -10
  585. package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.d.ts +0 -6
  586. package/dist/api/graphql-api/support/get-support-articles-bwell-request-factory.js +0 -15
  587. package/dist/api/graphql-api/support/get-support-attachment-request-factory.d.ts +0 -6
  588. package/dist/api/graphql-api/support/get-support-attachment-request-factory.js +0 -11
  589. package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.d.ts +0 -6
  590. package/dist/api/graphql-api/support/get-support-comments-bwell-request-factory.js +0 -14
  591. package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.d.ts +0 -6
  592. package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.js +0 -16
  593. package/dist/api/graphql-api/support/graphql-support-manager.d.ts +0 -28
  594. package/dist/api/graphql-api/support/graphql-support-manager.js +0 -210
  595. package/dist/api/graphql-api/support/index.d.ts +0 -1
  596. package/dist/api/graphql-api/support/index.js +0 -1
  597. package/dist/api/graphql-api/support/upload-support-attachment-request-factory.d.ts +0 -6
  598. package/dist/api/graphql-api/support/upload-support-attachment-request-factory.js +0 -11
  599. package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.d.ts +0 -6
  600. package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.js +0 -9
  601. package/dist/models/coding.d.ts +0 -5
  602. package/dist/models/fhir-error.d.ts +0 -9
  603. package/dist/models/user.d.ts +0 -4
  604. package/dist/utils/date-utils.d.ts +0 -6
  605. package/dist/utils/date-utils.js +0 -8
  606. /package/dist/api/base/{event/event-manager.js → health-data/health-data-response-factory.js} +0 -0
  607. /package/dist/api/base/{support/support-manager.js → requests/field-sort-order.js} +0 -0
  608. /package/dist/models/{coding.js → activity/index.js} +0 -0
  609. /package/dist/models/{fhir-error.js → activity/task.js} +0 -0
  610. /package/dist/models/{user.js → common/address.js} +0 -0
  611. /package/dist/{models → results}/operation-outcome.d.ts +0 -0
  612. /package/dist/{models → results}/operation-outcome.js +0 -0
@@ -1,357 +1,407 @@
1
- import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetBinaryQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetCareTeamsQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDiagnosticReportLabGroupsQueryResults, GetDiagnosticReportsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationPricingQueryResults, GetMedicationStatementsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, GetVitalSignsQueryResults, UpdateMedicationStatementMutationResults } from "../../../graphql/operations/types.js";
2
- import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
3
- import { MedicationDispenseResultsType } from "../../graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js";
4
- import { MedicationRequestResultsType } from "../../graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js";
1
+ import type { AllergyIntoleranceGroupsResponse, AllergyIntoleranceResponse, CarePlanGroupsResponse, CarePlanResponse, CareTeamResponse, ConditionGroupsResponse, ConditionResponse, DiagnosticReportLabGroupsResponse, DiagnosticReportResponse, EncounterGroupsResponse, EncounterResponse, HealthSummary, ImmunizationGroupsResponse, ImmunizationResponse, LabGroupsResponse, LabKnowledgeResponse, LabResponse, MedicationDispenseResponse, MedicationGroupsResponse, MedicationKnowledgeResponse, MedicationRequestResponse, MedicationStatementResponse, ProcedureGroupsResponse, ProcedureResponse, VitalSignGroupsResponse, VitalSignResponse } from "../../../models/health-data/index.js";
2
+ import type { BWellQueryResult } from "../../../results/index.js";
5
3
  import type { BaseManagerError } from "../errors.js";
6
- import { AllergyIntoleranceGroupsRequest, AllergyIntolerancesRequest, BinaryRequest, CarePlanGroupsRequest, CarePlansRequest, CareTeamsRequest, ConditionGroupsRequest, ConditionsRequest, DiagnosticReportLabGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, EncounterGroupsRequest, EncountersRequest, ImmunizationGroupsRequest, ImmunizationsRequest, LabGroupsRequest, LabsRequest, MedicationDispenseRequest, MedicationGroupsRequest, MedicationRequestRequest, MedicationStatementsRequest, ProcedureGroupsRequest, ProceduresRequest, VitalSignGroupsRequest, VitalSignsRequest } from "./health-data-request.js";
4
+ import type { AllergyIntoleranceGroupsRequest, CarePlanGroupsRequest, ConditionGroupsRequest, DiagnosticReportLabGroupsRequest, EncounterGroupsRequest, HealthDataRequest, ImmunizationGroupsRequest, LabGroupsRequest, MedicationDispenseRequest, MedicationGroupsRequest, ProcedureGroupsRequest, VitalSignGroupsRequest } from "./health-data-request.js";
7
5
  import { LabKnowledgeRequest } from "./lab-knowledge-request.js";
8
6
  import { MedicationKnowledgeRequest } from "./medication-knowledge-request.js";
9
- import { MedicationPricingRequest } from "./medication-pricing-request.js";
10
- import { UpdateMedicationStatementRequest } from "./medication-statement-request.js";
11
- type HealthSummaryResultsType = GetHealthSummaryQueryResults["getHealthSummary"];
12
- export interface HealthSummaryResults extends HealthSummaryResultsType {
13
- }
14
- type AllergyIntolerancesResultsType = GetAllergyIntolerancesQueryResults["getAllergyIntolerances"];
15
- export interface AllergyIntolerancesResults extends AllergyIntolerancesResultsType {
16
- }
17
- type DiagnosticReportsResultsType = GetDiagnosticReportsQueryResults["diagnosticReports"];
18
- export type DiagnosticReportsResults = DiagnosticReportsResultsType;
19
- type DocumentReferencesResultsType = GetDocumentReferencesQueryResults["getDocumentReferences"];
20
- export interface DocumentReferencesResults extends DocumentReferencesResultsType {
21
- }
22
- type BinaryResultsType = GetBinaryQueryResults["getBinary"];
23
- export interface BinaryResults extends BinaryResultsType {
24
- }
25
- type AllergyIntolerancesGroupsResultsType = GetAllergyIntoleranceGroupsQueryResults["getAllergyIntoleranceGroups"];
26
- export interface AllergyIntolerancesGroupsResults extends AllergyIntolerancesGroupsResultsType {
27
- }
28
- type ConditionsResultsType = GetConditionsQueryResults["getConditions"];
29
- export interface ConditionsResults extends ConditionsResultsType {
30
- }
31
- type ConditionGroupsResultsType = GetConditionGroupsQueryResults["getConditionGroups"];
32
- export interface ConditionGroupsResults extends ConditionGroupsResultsType {
33
- }
34
- type LabsResultsType = GetLabsQueryResults["getLabs"];
35
- export interface LabsResults extends LabsResultsType {
36
- }
37
- type LabGroupsResultsType = GetLabGroupsQueryResults["getLabGroups"];
38
- export interface LabGroupsResults extends LabGroupsResultsType {
39
- }
40
- type CarePlansResultsType = GetCarePlansQueryResults["getCarePlans"];
41
- export interface CarePlansResults extends CarePlansResultsType {
42
- }
43
- type CarePlanGroupsResultsType = GetCarePlanGroupsQueryResults["getCarePlanGroups"];
44
- export interface CarePlanGroupsResults extends CarePlanGroupsResultsType {
45
- }
46
- type CareTeamsResultsType = GetCareTeamsQueryResults["getCareTeams"];
47
- export interface CareTeamsResults extends CareTeamsResultsType {
48
- }
49
- type EncountersResultsType = GetEncounterQueryResults["getEncounters"];
50
- export interface EncountersResults extends EncountersResultsType {
51
- }
52
- type EncounterGroupsResultsType = GetEncountersGroupQueryResults["getEncounterGroups"];
53
- export interface EncounterGroupsResults extends EncounterGroupsResultsType {
54
- }
55
- type ImmunizationsResultsType = GetImmunizationsQueryResults["getImmunizations"];
56
- export interface ImmunizationsResults extends ImmunizationsResultsType {
57
- }
58
- type ImmunizationGroupsResultsType = GetImmunizationGroupsQueryResults["getImmunizationGroups"];
59
- export interface ImmunizationGroupsResults extends ImmunizationGroupsResultsType {
60
- }
61
- type ProceduresResultsType = GetProceduresQueryResults["getProcedures"];
62
- export interface ProceduresResults extends ProceduresResultsType {
63
- }
64
- type ProcedureGroupsResultsType = GetProcedureGroupsQueryResults["getProcedureGroups"];
65
- export interface ProcedureGroupsResults extends ProcedureGroupsResultsType {
66
- }
67
- type VitalSignsResultsType = GetVitalSignsQueryResults["getVitalSigns"];
68
- export interface VitalSignsResults extends VitalSignsResultsType {
69
- }
70
- type VitalSignGroupsResultsType = GetVitalSignGroupsQueryResults["getVitalSignGroups"];
71
- export interface VitalSignGroupsResults extends VitalSignGroupsResultsType {
72
- }
73
- type DiagnosticReportLabGroupsResultsType = GetDiagnosticReportLabGroupsQueryResults["getDiagnosticReportLabGroups"];
74
- export interface DiagnosticReportLabGroupsResults extends DiagnosticReportLabGroupsResultsType {
75
- }
76
- export interface MedicationDispenseResults extends MedicationDispenseResultsType {
77
- }
78
- export interface MedicationRequestResults extends MedicationRequestResultsType {
79
- }
80
- type MedicationStatementsResultsType = GetMedicationStatementsQueryResults["getMedicationStatements"];
81
- export interface MedicationStatementsResults extends MedicationStatementsResultsType {
82
- }
83
- type UpdateMedicationStatementMutationResultsType = UpdateMedicationStatementMutationResults["updateMedicationStatement"];
84
- export interface UpdateMedicationStatementResult extends UpdateMedicationStatementMutationResultsType {
85
- }
86
- type MedicationKnowledgeResultsType = GetMedicationKnowledgeQueryResults["getMedicationKnowledge"];
87
- export interface MedicationKnowledgeResults extends MedicationKnowledgeResultsType {
88
- }
89
- type MedicationPricingResultsType = GetMedicationPricingQueryResults["getMedicationPricing"];
90
- export interface MedicationPricingResults extends MedicationPricingResultsType {
91
- }
92
- type MedicationGroupsResultsType = GetMedicationGroupsQueryResults["getMedicationGroups"];
93
- export interface MedicationGroupsResults extends MedicationGroupsResultsType {
94
- }
95
- type LabKnowledgeResultsType = GetLabKnowledgeQueryResults["getLabKnowledge"];
96
- export interface LabKnowledgeResults extends LabKnowledgeResultsType {
97
- }
98
7
  /**
99
- * The HealthManager interface provides methods for retrieving health care records.
8
+ * Health Manager for patient health records and clinical data access.
9
+ * Provides methods for retrieving health care records including conditions, medications,
10
+ * labs, procedures, and other clinical data organized by groups.
11
+ * @see https://build.fhir.org/patient.html
12
+ * @title HealthManager
13
+ * @excerpt Health Manager for patient health records and clinical data access
14
+ * @category Managers
100
15
  */
101
16
  export interface HealthManager {
102
17
  /**
103
18
  * Retrieve a summary view of current health care records by category. This view includes counts for AllergyIntolerance, CarePlan, Condition, Encounter, Immunization, Procedure, Vital Sign, Medication Statement, and Lab resources.
104
19
  *
105
- * @returns {Promise<BWellQueryResult<HealthSummaryResults>>} A promise resolving to An object which based off of generated ResourceGroups representing an aggregation of AllergyIntolerance, CarePlan, Condition, Encounter, Immunization, Procedure, MedicationStatement, Observation (Vital Sign and Lab) resources.
20
+ * @returns {Promise<BWellQueryResult<HealthSummary>>} A promise resolving to An object which based off of generated ResourceGroups representing an aggregation of AllergyIntolerance, CarePlan, Condition, Encounter, Immunization, Procedure, MedicationStatement, Observation (Vital Sign and Lab) resources.
106
21
  */
107
- getHealthSummary(): Promise<BWellQueryResult<HealthSummaryResults, BaseManagerError>>;
22
+ getHealthSummary(): Promise<BWellQueryResult<HealthSummary, BaseManagerError>>;
108
23
  /**
109
- * Retrieves a list of AllergyIntolerance resources from a FHIR server.
110
- * The method accepts a AllergyIntolerancesRequest object to specify the search criteria.
111
- * See also https://build.fhir.org/allergyintolerance.html
24
+ * Retrieves a list of allergy intolerance resources.
25
+ * Gets individual allergy intolerance records for the authenticated user.
26
+ *
27
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
28
+ *
29
+ * @returns {Promise<BWellQueryResult<AllergyIntoleranceBundle>>} A promise resolving to an object representing the list of allergy intolerances retrieved.
112
30
  *
113
- * @param {AllergyIntolerancesRequest} request An object specifying the search criteria for retrieving the AllergyIntolerance resources.
31
+ * @example
32
+ * ```typescript
33
+ * // Without filtering
34
+ * const allergies = await sdk.health.getAllergyIntolerances();
114
35
  *
115
- * @returns {Promise<BWellQueryResult<AllergyIntolerancesResults>>} A promise resolving to an object representing the list of Allergy Intolerance resources retrieved, along with potential validation or GraphQL errors.
36
+ * // With filtering
37
+ * const recentAllergies = await sdk.health.getAllergyIntolerances(
38
+ * new HealthDataRequest({
39
+ * lastUpdated: { value: '2024-01-01', prefix: 'ge' }
40
+ * })
41
+ * );
42
+ * ```
116
43
  */
117
- getAllergyIntolerances(request?: AllergyIntolerancesRequest): Promise<BWellQueryResult<AllergyIntolerancesResults, BaseManagerError>>;
44
+ getAllergyIntolerances(request?: HealthDataRequest): Promise<BWellQueryResult<AllergyIntoleranceResponse, BaseManagerError>>;
118
45
  /**
119
46
  * Retrieves a list of AllergyIntoleranceGroup resources.
120
47
  * The method accepts a AllergyIntoleranceGroupsRequest object to specify the search criteria.
121
48
  *
122
- * @param {AllergyIntoleranceGroupsRequest} request An object specifying the search criteria for retrieving the AllergyIntoleranceGroup resources.
49
+ * @param {AllergyIntoleranceGroupsRequest} request - Request class instance for specifying the search criteria for retrieving AllergyIntoleranceGroup resources
123
50
  *
124
- * @returns {Promise<BWellQueryResult<AllergyIntolerancesGroupsResults>>} A promise resolving to an object representing the list of Allergy Intolerance Groups retrieved, along with potential validation or GraphQL errors.
125
- */
126
- getAllergyIntoleranceGroups(request?: AllergyIntoleranceGroupsRequest): Promise<BWellQueryResult<AllergyIntolerancesGroupsResults, BaseManagerError>>;
127
- /**
128
- * Retrieves a list of medical conditions and diagnoses using the FHIR (Fast Healthcare Interoperability Resources) standard.
129
- * Medical conditions represent various health issues, ailments, or diseases that patients may experience.
130
- * This method provides access to this type of clinical data.
131
- * See also https://build.fhir.org/condition.html
51
+ * @returns {Promise<BWellQueryResult<AllergyIntoleranceGroupBundle>>} A promise resolving to an object representing the list of Allergy Intolerance Groups retrieved, along with potential validation or GraphQL errors.
132
52
  *
133
- * @param {ConditionsRequest} request An optional request class for specifying the search criteria, for the retrieval of conditions resources.
53
+ * @example
54
+ * ```typescript
55
+ * // Without filtering
56
+ * const allergyGroups = await sdk.health.getAllergyIntoleranceGroups();
134
57
  *
135
- * @returns {Promise<BWellQueryResult<ConditionsResults>>} A promise resolving to an object representing the list of medical conditions retrieved from the FHIR server.
58
+ * // With pagination
59
+ * const pagedAllergyGroups = await sdk.health.getAllergyIntoleranceGroups(
60
+ * new AllergyIntoleranceGroupsRequest({
61
+ * page: 1,
62
+ * pageSize: 20
63
+ * })
64
+ * );
65
+ * ```
136
66
  */
137
- getConditions(request?: ConditionsRequest): Promise<BWellQueryResult<ConditionsResults>>;
67
+ getAllergyIntoleranceGroups(request?: AllergyIntoleranceGroupsRequest): Promise<BWellQueryResult<AllergyIntoleranceGroupsResponse, BaseManagerError>>;
138
68
  /**
139
- * Retrieves a list of condition groups resources.
69
+ * Retrieves a list of condition resources.
70
+ * Gets individual condition records for the authenticated user.
140
71
  *
141
- * @param {ConditionGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of condition groups resources.
142
- *
143
- * @returns {Promise<BWellQueryResult<ConditionGroupsResults>>} A promise resolving to an object representing he list of condition groups retrieved.
144
- */
145
- getConditionGroups(request?: ConditionGroupsRequest): Promise<BWellQueryResult<ConditionGroupsResults>>;
146
- /**
147
- * Retrieves a list of document references using the FHIR (Fast Healthcare Interoperability Resources) standard.
148
- * A reference to a document of any kind for any purpose.
149
- * This method provides access to this type of clinical data.
150
- * See also https://build.fhir.org/documentreference.html
72
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
151
73
  *
152
- * @param {DocumentReferencesRequest} request An optional request class for specifying the search criteria, for the retrieval of document reference resources.
74
+ * @returns {Promise<BWellQueryResult<ConditionGroupBundle>>} A promise resolving to an object representing the list of conditions retrieved.
153
75
  *
154
- * @returns {Promise<BWellQueryResult<DocumentReferencesResults>>} A promise resolving to an object representing the list of document references retrieved from the FHIR server.
76
+ * @example
77
+ * ```typescript
78
+ * const conditions = await sdk.health.getConditions();
79
+ * ```
155
80
  */
156
- getDocumentReferences(request?: DocumentReferencesRequest): Promise<BWellQueryResult<DocumentReferencesResults>>;
81
+ getConditions(request?: HealthDataRequest): Promise<BWellQueryResult<ConditionResponse, BaseManagerError>>;
157
82
  /**
158
- * Retrieves a list of Binary resources.
159
- * See also https://hl7.org/fhir/r4b/binary.html
160
- *
161
- * @param {BinaryRequest} request An optional request class for specifying the search criteria, for the retrieval of binary resources.
83
+ * Retrieves a list of condition groups resources.
162
84
  *
163
- * @returns {Promise<BWellQueryResult<BinaryResults>>} A promise resolving to an object representing the list of binary retrieved.
164
- */
165
- getBinary(request: BinaryRequest): Promise<BWellQueryResult<BinaryResults>>;
166
- /**
167
- * Retrieve a summary of laboratory test results.
168
- * It returns a list of unique laboratory measurements for the patient sorted by most recent first.
169
- * It simplifies the process by calling the GetObservations method with the category parameter set to 'laboratory'.
170
- * See also https://build.fhir.org/ig/HL7/fhir-order-catalog/exlabservices.html
85
+ * @param {ConditionGroupsRequest} request - Optional request class instance for specifying the search criteria for retrieving condition groups resources
171
86
  *
172
- * @param {LabsRequest} request A simplified request class for access laboratory observations resources.
87
+ * @returns {Promise<BWellQueryResult<ConditionGroupBundle>>} A promise resolving to an object representing he list of condition groups retrieved.
173
88
  *
174
- * @returns {Promise<BWellQueryResult<LabsResults>>} A promise resolving to an object representing a list of labratory results, along with potential errors.
89
+ * @example
90
+ * ```typescript
91
+ * const conditions = await sdk.health.getConditionGroups();
92
+ * ```
175
93
  */
176
- getLabs(request?: LabsRequest): Promise<BWellQueryResult<LabsResults, BaseManagerError>>;
94
+ getConditionGroups(request?: ConditionGroupsRequest): Promise<BWellQueryResult<ConditionGroupsResponse, BaseManagerError>>;
177
95
  /**
178
- * Retrieves a list of labratory groups results.
96
+ * Retrieves a list of laboratory groups results.
179
97
  *
180
- * @param {LabGroupsRequest} request A simplified request class for accessing lab groups resources.
98
+ * @param {LabGroupsRequest} request - Optional request class instance for specifying the search criteria for accessing lab groups resources
181
99
  *
182
- * @returns {Promise<BWellQueryResult<LabGroupsResults>>} A promise resolving to an object representing a list of labratory groups, along with potential errors.
183
- */
184
- getLabGroups(request?: LabGroupsRequest): Promise<BWellQueryResult<LabGroupsResults, BaseManagerError>>;
185
- /**
186
- * Retrieves a list of care plans resources.
187
- * See also https://build.fhir.org/careplan.html
188
- *
189
- * @param {CarePlansRequest} request An optional request class for specifying the search criteria, for the retrieval of care plans resources.
100
+ * @returns {Promise<BWellQueryResult<LabGroupBundle>>} A promise resolving to an object representing a list of laboratory groups, along with potential errors.
190
101
  *
191
- * @returns {Promise<BWellQueryResult<CarePlansResults>>} A promise resolving to an object representing the list of care plans retrieved.
102
+ * @example
103
+ * ```typescript
104
+ * const labGroups = await sdk.health.getLabGroups();
105
+ * ```
192
106
  */
193
- getCarePlans(request?: CarePlansRequest): Promise<BWellQueryResult<CarePlansResults>>;
107
+ getLabGroups(request?: LabGroupsRequest): Promise<BWellQueryResult<LabGroupsResponse, BaseManagerError>>;
194
108
  /**
195
- * Retrieves a list of care teams.
196
- * See also https://build.fhir.org/careteam.html
197
- *
198
- * @param {CareTeamsRequest} request An optional request class for specifying the search criteria, for the retrieval of care teams resources.
199
- *
200
- * @returns {Promise<BWellQueryResult<CarePlansResults>>} A promise resolving to an object representing the list of care teams retrieved.
109
+ * Retrieves a list of care plan resources.
110
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
111
+ * @returns A promise resolving to an object representing the list of care plans retrieved.
112
+ * @example
113
+ * ```typescript
114
+ * const carePlans = await sdk.health.getCarePlans();
115
+ * ```
201
116
  */
202
- getCareTeams(request?: CareTeamsRequest): Promise<BWellQueryResult<CareTeamsResults>>;
117
+ getCarePlans(request?: HealthDataRequest): Promise<BWellQueryResult<CarePlanResponse, BaseManagerError>>;
203
118
  /**
204
119
  * Retrieves a list of care plan groups resources.
205
120
  *
206
- * @param {CarePlanGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of care plan groups resources.
121
+ * @param {CarePlanGroupsRequest} request - Optional request class instance for specifying the search criteria for retrieving care plan groups resources
122
+ *
123
+ * @returns {Promise<BWellQueryResult<CarePlanGroupBundle>>} A promise resolving to an object representing the list of care plan groups retrieved.
207
124
  *
208
- * @returns {Promise<BWellQueryResult<CarePlanGroupsResults>>} A promise resolving to an object representing the list of care plan groups retrieved.
125
+ * @example
126
+ * ```typescript
127
+ * const carePlanGroups = await sdk.health.getCarePlanGroups();
128
+ * ```
209
129
  */
210
- getCarePlanGroups(request?: CarePlanGroupsRequest): Promise<BWellQueryResult<CarePlanGroupsResults>>;
130
+ getCarePlanGroups(request?: CarePlanGroupsRequest): Promise<BWellQueryResult<CarePlanGroupsResponse, BaseManagerError>>;
211
131
  /**
212
- * Retrieves a list of encounters resources.
213
- * See also https://build.fhir.org/encounter.html
214
- *
215
- * @param {EncountersRequest} request An optional request class for specifying the search criteria, for the retrieval of encounters resources.
216
- *
217
- * @returns {Promise<BWellQueryResult<EncountersResults>>} A promise resolving to an object representing the list of encounters retrieved.
132
+ * Retrieves a list of encounter resources.
133
+ * Gets individual encounter records for the authenticated user.
134
+ *
135
+ * @param {HealthDataRequest} request - An optional request class for specifying the search criteria.
136
+ *
137
+ * @returns {Promise<BWellQueryResult<EncounterBundle>>} A promise resolving to an object representing the list of encounters retrieved.
138
+ *
139
+ * @example
140
+ * ```typescript
141
+ * const encounters = await sdk.health.getEncounters();
142
+ * ```
143
+ *
144
+ * @example
145
+ * ```typescript
146
+ * const encounters = await sdk.health.getEncounters(
147
+ * new HealthDataRequest({
148
+ * page: 0,
149
+ * pageSize: 20,
150
+ * );
151
+ * ```
152
+ *
153
+ * @example using group-code
154
+ * ```typescript
155
+ * const encounters = await sdk.health.getEncounters(
156
+ * new HealthDataRequest({
157
+ * page: 0,
158
+ * pageSize: 20,
159
+ * groupCode: {
160
+ * value: {
161
+ * value: group.coding.code,
162
+ * system: group.coding.system
163
+ * }
164
+ * }
165
+ * })
166
+ * );
167
+ * ```
218
168
  */
219
- getEncounters(request?: EncountersRequest): Promise<BWellQueryResult<EncountersResults>>;
169
+ getEncounters(request?: HealthDataRequest): Promise<BWellQueryResult<EncounterResponse, BaseManagerError>>;
220
170
  /**
221
171
  * Retrieves a list of encounter groups resources.
222
172
  *
223
- * @param {EncounterGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of encounter groups resources.
173
+ * @param {EncounterGroupsRequest} request - Optional request class instance for specifying the search criteria for retrieving encounter groups resources
174
+ *
175
+ * @returns {Promise<BWellQueryResult<EncounterGroupBundle>>} A promise resolving to an object representing the list of encounter groups retrieved.
224
176
  *
225
- * @returns {Promise<BWellQueryResult<EncounterGroupsResults>>} A promise resolving to an object representing the list of encounter groups retrieved.
177
+ * @example
178
+ * ```typescript
179
+ * const encounterGroups = await sdk.health.getEncounterGroups();
180
+ * ```
226
181
  */
227
- getEncounterGroups(request?: EncounterGroupsRequest): Promise<BWellQueryResult<EncounterGroupsResults>>;
182
+ getEncounterGroups(request?: EncounterGroupsRequest): Promise<BWellQueryResult<EncounterGroupsResponse, BaseManagerError>>;
228
183
  /**
229
- * Retrieves a list of immunizations resources.
230
- * See also https://build.fhir.org/immunization.html
184
+ * Retrieves a list of immunization resources.
185
+ * Gets individual immunization records for the authenticated user.
231
186
  *
232
- * @param {ImmunizationsRequest} request An optional request class for specifying the search criteria, for the retrieval of immunizations resources.
187
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
233
188
  *
234
- * @returns {Promise<BWellQueryResult<ImmunizationsResults>>} A promise resolving to an object representing the list of immunizations retrieved.
189
+ * @returns {Promise<BWellQueryResult<ImmunizationBundle>>} A promise resolving to an object representing the list of immunizations retrieved.
190
+ *
191
+ * @example
192
+ * ```typescript
193
+ * const immunizations = await sdk.health.getImmunizations();
194
+ * ```
235
195
  */
236
- getImmunizations(request?: ImmunizationsRequest): Promise<BWellQueryResult<ImmunizationsResults>>;
196
+ getImmunizations(request?: HealthDataRequest): Promise<BWellQueryResult<ImmunizationResponse, BaseManagerError>>;
237
197
  /**
238
198
  * Retrieves a list of immunization groups resources.
239
199
  *
240
- * @param {ImmunizationGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of immunization groups resources.
200
+ * @param {ImmunizationGroupsRequest} request - Optional request class instance for specifying the search criteria for retrieving immunization groups resources
201
+ *
202
+ * @returns {Promise<BWellQueryResult<ImmunizationGroupBundle>>} A promise resolving to an object representing the list of immunization groups retrieved.
241
203
  *
242
- * @returns {Promise<BWellQueryResult<ImmunizationGroupsResults>>} A promise resolving to an object representing the list of immunization groups retrieved.
204
+ * @example
205
+ * ```typescript
206
+ * const immunizationGroups = await sdk.health.getImmunizationGroups();
207
+ * ```
243
208
  */
244
- getImmunizationGroups(request?: ImmunizationGroupsRequest): Promise<BWellQueryResult<ImmunizationGroupsResults>>;
209
+ getImmunizationGroups(request?: ImmunizationGroupsRequest): Promise<BWellQueryResult<ImmunizationGroupsResponse, BaseManagerError>>;
245
210
  /**
246
- * Retrieves a list of procedures resources.
247
- * See also https://build.fhir.org/procedure.html
211
+ * Retrieves a list of procedure resources.
212
+ * Gets individual procedures for the authenticated user.
248
213
  *
249
- * @param {ProcedureRequest} request An optional request class for specifying the search criteria, for the retrieval of procedures resources.
214
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
250
215
  *
251
- * @returns {Promise<BWellQueryResult<ProceduresResults>>} A promise resolving to an object representing the list of procedures retrieved.
216
+ * @returns {Promise<BWellQueryResult<ProcedureBundle>>} A promise resolving to an object representing the list of procedures.
217
+ *
218
+ * @example
219
+ * ```typescript
220
+ * const procedures = await sdk.health.getProcedures();
221
+ * ```
252
222
  */
253
- getProcedures(request?: ProceduresRequest): Promise<BWellQueryResult<ProceduresResults>>;
223
+ getProcedures(request?: HealthDataRequest): Promise<BWellQueryResult<ProcedureResponse, BaseManagerError>>;
254
224
  /**
255
225
  * Retrieves a list of procedure groups resources.
256
226
  *
257
- * @param {ProcedureGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of procedure groups resources.
227
+ * @param {ProcedureGroupsRequest} request - Optional request class instance for specifying the search criteria for retrieving procedure groups resources.
228
+ *
229
+ * @returns {Promise<BWellQueryResult<ProcedureGroupBundle>>} A promise resolving to an object representing the list of procedure groups retrieved.
230
+ *
231
+ * @example
232
+ * ```typescript
233
+ * const procedureGroups = await sdk.health.getProcedureGroups();
234
+ * ```
235
+ */
236
+ getProcedureGroups(request?: ProcedureGroupsRequest): Promise<BWellQueryResult<ProcedureGroupsResponse, BaseManagerError>>;
237
+ /**
238
+ * Retrieves a list of vital sign resources.
239
+ * Gets individual vital sign records for the authenticated user.
240
+ *
241
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
242
+ *
243
+ * @returns {Promise<BWellQueryResult<VitalSignBundle>>} A promise resolving to an object representing the list of vital signs retrieved.
258
244
  *
259
- * @returns {Promise<BWellQueryResult<ProcedureGroupsResults>>} A promise resolving to an object representing the list of procedure groups retrieved.
245
+ * @example
246
+ * ```typescript
247
+ * const vitalSigns = await sdk.health.getVitalSigns();
248
+ * ```
260
249
  */
261
- getProcedureGroups(request?: ProcedureGroupsRequest): Promise<BWellQueryResult<ProcedureGroupsResults>>;
250
+ getVitalSigns(request?: HealthDataRequest): Promise<BWellQueryResult<VitalSignResponse, BaseManagerError>>;
262
251
  /**
263
- * Retrieves a list of vital signs resources.
264
- * See also https://build.fhir.org/observation-vitalsigns.html
252
+ * Retrieves a list of lab resources (observations with 'laboratory' category).
253
+ *
254
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
265
255
  *
266
- * @param {VitalSignsRequest} request An optional request class for specifying the search criteria, for the retrieval of vital signs resources.
256
+ * @returns {Promise<BWellQueryResult<LabBundle>>} A promise resolving to an object representing the list of labs retrieved.
267
257
  *
268
- * @returns {Promise<BWellQueryResult<VitalSignsResults>>} A promise resolving to an object representing the list of vital signs retrieved.
258
+ * @example
259
+ * ```typescript
260
+ * const labs = await sdk.health.getLabs();
261
+ * ```
269
262
  */
270
- getVitalSigns(request?: VitalSignsRequest): Promise<BWellQueryResult<VitalSignsResults>>;
263
+ getLabs(request?: HealthDataRequest): Promise<BWellQueryResult<LabResponse, BaseManagerError>>;
271
264
  /**
272
265
  * Retrieves a list of vital sign groups resources.
273
266
  *
274
- * @param {VitalSignGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of vital sign groups resources.
267
+ * @param {VitalSignGroupsRequest} request - Optional request class instance for specifying the search criteria for retrieving vital sign groups resources.
275
268
  *
276
- * @returns {Promise<BWellQueryResult<VitalSignGroupsResults>>} A promise resolving to an object representing the list of vital sign groups retrieved.
269
+ * @returns {Promise<BWellQueryResult<VitalSignGroupBundle>>} A promise resolving to an object representing the list of vital sign groups retrieved.
270
+ *
271
+ * @example
272
+ * ```typescript
273
+ * const vitalSignGroups = await sdk.health.getVitalSignGroups();
274
+ * ```
277
275
  */
278
- getVitalSignGroups(request?: VitalSignGroupsRequest): Promise<BWellQueryResult<VitalSignGroupsResults>>;
276
+ getVitalSignGroups(request?: VitalSignGroupsRequest): Promise<BWellQueryResult<VitalSignGroupsResponse, BaseManagerError>>;
279
277
  /**
280
- * Retrieves a list of medication dispense resources.
281
- * See also https://build.fhir.org/medicationdispense.html
278
+ * Retrieves a list of medication groups resources.
279
+ *
280
+ * @param {MedicationGroupsRequest} request - Request class instance for specifying the search criteria for retrieving medication groups resources.
282
281
  *
283
- * @param {MedicationDispenseRequest} request An optional request class for specifying the search criteria, for the retrieval of medication dispense resources.
282
+ * @returns {Promise<BWellQueryResult<MedicationGroupBundle>>} A promise resolving to an object representing the list of medication groups retrieved.
284
283
  *
285
- * @returns {Promise<BWellQueryResult<MedicationDispenseResults>>} A promise resolving to an object representing the list of medication dispense retrieved.
284
+ * @example
285
+ * ```typescript
286
+ * const medications = await sdk.health.getMedicationGroups(
287
+ * new MedicationGroupsRequest({
288
+ * page: 1,
289
+ * pageSize: 10
290
+ * })
291
+ * );
292
+ * ```
286
293
  */
287
- getMedicationDispense(request?: MedicationDispenseRequest): Promise<BWellQueryResult<MedicationDispenseResults>>;
294
+ getMedicationGroups(request: MedicationGroupsRequest): Promise<BWellQueryResult<MedicationGroupsResponse, BaseManagerError>>;
288
295
  /**
289
- * Retrieves a list of medication request resources.
290
- * See also https://build.fhir.org/medicationrequest.html
296
+ * Retrieves a list of diagnostic report resources.
297
+ *
298
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
291
299
  *
292
- * @param {MedicationRequestRequest} request An optional request class for specifying the search criteria, for the retrieval of medication request resources.
300
+ * @returns {Promise<BWellQueryResult<DiagnosticReportBundle>>} A promise resolving to an object representing the list of diagnostic reports retrieved.
293
301
  *
294
- * @returns {Promise<BWellQueryResult<MedicationRequestResults>>} A promise resolving to an object representing the list of medication request retrieved.
302
+ * @example
303
+ * ```typescript
304
+ * const diagnosticReports = await sdk.health.getDiagnosticReports();
305
+ * ```
295
306
  */
296
- getMedicationRequest(request?: MedicationRequestRequest): Promise<BWellQueryResult<MedicationRequestResults>>;
307
+ getDiagnosticReports(request?: HealthDataRequest): Promise<BWellQueryResult<DiagnosticReportResponse, BaseManagerError>>;
297
308
  /**
298
- * Retrieves a list of medication statements resources.
299
- * See also https://build.fhir.org/medicationstatement.html
309
+ * Retrieves a list of diagnostic report lab groups resources.
310
+ *
311
+ * @param {DiagnosticReportLabGroupsRequest} request - Request class instance for specifying the search criteria for retrieving diagnostic report lab groups resources.
300
312
  *
301
- * @param {MedicationStatementsRequest} request An optional request class for specifying the search criteria, for the retrieval of medication statements resources.
313
+ * @returns {Promise<BWellQueryResult<DiagnosticReportLabGroupBundle>>} A promise resolving to an object representing the list of diagnostic report lab groups retrieved.
302
314
  *
303
- * @returns {Promise<BWellQueryResult<MedicationStatementsResults>>} A promise resolving to an object representing the list of medication statements retrieved.
315
+ * @example
316
+ * ```typescript
317
+ * const diagnosticReportLabGroups = await sdk.health.getDiagnosticReportLabGroups(
318
+ * new DiagnosticReportLabGroupsRequest({
319
+ * page: 1,
320
+ * pageSize: 10
321
+ * })
322
+ * );
323
+ * ```
304
324
  */
305
- getMedicationStatements(request?: MedicationStatementsRequest): Promise<BWellQueryResult<MedicationStatementsResults>>;
325
+ getDiagnosticReportLabGroups(request: DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<DiagnosticReportLabGroupsResponse, BaseManagerError>>;
306
326
  /**
307
- * Updates a medication statement resource.
327
+ * Retrieves a list of care team resources.
328
+ *
329
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
308
330
  *
309
- * @param {UpdateMedicationStatementRequest} request The request object specifying the medication statement to update and the fields to update.
310
- * @returns {Promise<BWellQueryResult<UpdateMedicationStatementResult>>} A promise resolving to the result of the update operation.
331
+ * @returns {Promise<BWellQueryResult<CareTeamBundle>>} A promise resolving to an object representing the list of care teams.
332
+ *
333
+ * @example
334
+ * ```typescript
335
+ * const careTeams = await sdk.health.getCareTeams();
336
+ * ```
311
337
  */
312
- updateMedicationStatement(request: UpdateMedicationStatementRequest): Promise<BWellTransactionResult<UpdateMedicationStatementResult, BaseManagerError>>;
338
+ getCareTeams(request?: HealthDataRequest): Promise<BWellQueryResult<CareTeamResponse, BaseManagerError>>;
313
339
  /**
314
- * Retrieves a list of medication groups resources.
340
+ * Retrieves a list of medication dispense resources.
315
341
  *
316
- * @param {MedicationGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of medication groups resources.
342
+ * @param request - Optional request class instance for specifying the search criteria
343
+ * @returns {Promise<BWellQueryResult<MedicationDispenseBundle>>} A promise resolving to an object representing the list of medication dispenses.
317
344
  *
318
- * @returns {Promise<BWellQueryResult<MedicationGroupsResults>>} A promise resolving to an object representing the list of medication groups retrieved.
345
+ * @example
346
+ * ```typescript
347
+ * const medicationDispenses = await sdk.health.getMedicationDispenses();
348
+ * ```
319
349
  */
320
- getMedicationGroups(request: MedicationGroupsRequest): Promise<BWellQueryResult<MedicationGroupsResults>>;
350
+ getMedicationDispenses(request?: MedicationDispenseRequest): Promise<BWellQueryResult<MedicationDispenseResponse, BaseManagerError>>;
321
351
  /**
322
- * Retrieves a list of medication knowledge resources.
323
- * See also https://build.fhir.org/medicationknowledge.html
352
+ * Retrieves a list of medication request resources.
324
353
  *
325
- * @param {MedicationKnowledgeRequest} request A non-optional request class for specifying the search criteria, for the retrieval of medication knowledge resources.
354
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
326
355
  *
327
- * @returns {Promise<BWellQueryResult<MedicationKnowledgeResults>>} A promise resolving to an object representing the list of medication knowledge retrieved.
356
+ * @returns {Promise<BWellQueryResult<MedicationRequestBundle>>} A promise resolving to an object representing the list of medication requests retrieved.
357
+ *
358
+ * @example
359
+ * ```typescript
360
+ * const medicationRequests = await sdk.health.getMedicationRequests();
361
+ * ```
328
362
  */
329
- getMedicationKnowledge(request: MedicationKnowledgeRequest): Promise<BWellQueryResult<MedicationKnowledgeResults>>;
363
+ getMedicationRequests(request?: HealthDataRequest): Promise<BWellQueryResult<MedicationRequestResponse, BaseManagerError>>;
330
364
  /**
331
- * Retrieves a list of lab knowledge resources.
332
- * See also https://build.fhir.org/ig/HL7/fhir-order-catalog/exlabservices.html
365
+ * Retrieves a list of medication statement resources.
333
366
  *
334
- * @param {LabKnowledgeRequest} request A non-optional request class for specifying the search criteria, for the retrieval of medication knowledge resources.
367
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
335
368
  *
336
- * @returns {Promise<BWellQueryResult<LabKnowledgeResults>>} A promise resolving to an object representing the list of medication knowledge retrieved.
369
+ * @returns {Promise<BWellQueryResult<MedicationStatementBundle>>} A promise resolving to an object representing the list of medication statements retrieved.
370
+ *
371
+ * @example
372
+ * ```typescript
373
+ * const medicationStatements = await sdk.health.getMedicationStatements();
374
+ * ```
337
375
  */
338
- getLabKnowledge(request?: LabKnowledgeRequest): Promise<BWellQueryResult<LabKnowledgeResults>>;
339
- getMedicationPricing(request: MedicationPricingRequest): Promise<BWellQueryResult<MedicationPricingResults>>;
376
+ getMedicationStatements(request?: HealthDataRequest): Promise<BWellQueryResult<MedicationStatementResponse, BaseManagerError>>;
340
377
  /**
341
- * Retrieves a list of diagnostic report resources.
378
+ * Retrieves a list of medication knowledge resources.
342
379
  *
343
- * @param {DiagnosticReportsRequest} request An optional request class for specifying the search criteria, for the retrieval of diagnostic report resources.
380
+ * @param request {MedicationKnowledgeRequest} - Request class instance for specifying medication knowledge parameters.
381
+ * @returns {Promise<BWellQueryResult<MedicationKnowledgeResourceBundle>>} A promise resolving to an object representing the list of medication knowledge.
344
382
  *
345
- * @returns {Promise<BWellQueryResult<DiagnosticReportsResults>>} A promise resolving to an object representing the list of diagnostic reports retrieved.
383
+ * @example
384
+ * ```typescript
385
+ * const medicationKnowledge = await sdk.health.getMedicationKnowledge({
386
+ * medicationStatementId: '123',
387
+ * page: 0
388
+ * });
389
+ * ```
346
390
  */
347
- getDiagnosticReports(request?: DiagnosticReportsRequest): Promise<BWellQueryResult<DiagnosticReportsResults>>;
391
+ getMedicationKnowledge(request: MedicationKnowledgeRequest): Promise<BWellQueryResult<MedicationKnowledgeResponse, BaseManagerError>>;
348
392
  /**
349
- * Retrieves a list of diagnostic report lab groups resources.
393
+ * Retrieves a list of lab knowledge resources.
350
394
  *
351
- * @param {DiagnosticReportLabGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of diagnostic report lab groups resources.
395
+ * @param request {LabKnowledgeRequest} - Request class instance for specifying the lab id.
396
+ * @returns {Promise<BWellQueryResult<LabKnowledgeResourceBundle>>} A promise resolving to an object representing the list of lab knowledge.
352
397
  *
353
- * @returns {Promise<BWellQueryResult<DiagnosticReportLabGroupsResults>>} A promise resolving to an object representing the list of diagnostic report lab groups retrieved.
398
+ * @example
399
+ * ```typescript
400
+ * const labKnowledge = await sdk.health.getLabKnowledge({
401
+ * labId: '123',
402
+ * page: 0
403
+ * });
404
+ * ```
354
405
  */
355
- getDiagnosticReportLabGroups(request: DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<DiagnosticReportLabGroupsResults>>;
406
+ getLabKnowledge(request?: LabKnowledgeRequest): Promise<BWellQueryResult<LabKnowledgeResponse, BaseManagerError>>;
356
407
  }
357
- export {};