@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1754330797 → 2.0.0-alpha.0-rc.1754488327

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 (292) hide show
  1. package/README.md +17 -1
  2. package/dist/__version__.d.ts +1 -1
  3. package/dist/__version__.js +1 -1
  4. package/dist/api/base/connection/connection-manager.d.ts +55 -49
  5. package/dist/api/base/connection/connection-manager.js +3 -0
  6. package/dist/api/base/connection/connection-request.d.ts +15 -1
  7. package/dist/api/base/connection/connection-request.js +8 -0
  8. package/dist/api/base/connection/index.d.ts +1 -2
  9. package/dist/api/base/health-data/health-data-request.d.ts +105 -0
  10. package/dist/api/base/health-data/health-data-request.js +81 -0
  11. package/dist/api/base/health-data/health-manager.d.ts +104 -64
  12. package/dist/api/base/health-data/index.d.ts +1 -1
  13. package/dist/api/base/health-data/lab-knowledge-request.d.ts +9 -0
  14. package/dist/api/base/health-data/lab-knowledge-request.js +3 -0
  15. package/dist/api/base/health-data/medication-knowledge-request.d.ts +9 -0
  16. package/dist/api/base/health-data/medication-knowledge-request.js +3 -0
  17. package/dist/api/base/health-data/medication-pricing-request.d.ts +9 -0
  18. package/dist/api/base/health-data/medication-pricing-request.js +3 -0
  19. package/dist/api/base/health-space/appointments-request.d.ts +9 -0
  20. package/dist/api/base/health-space/appointments-request.js +3 -0
  21. package/dist/api/base/health-space/cancel-appointment-request.d.ts +8 -1
  22. package/dist/api/base/health-space/cancel-appointment-request.js +4 -0
  23. package/dist/api/base/health-space/cancellation-reasons-request.d.ts +28 -0
  24. package/dist/api/base/health-space/{cancelationReasons-request.js → cancellation-reasons-request.js} +10 -4
  25. package/dist/api/base/health-space/health-space-manager.d.ts +33 -24
  26. package/dist/api/base/health-space/index.d.ts +2 -2
  27. package/dist/api/base/health-space/index.js +1 -1
  28. package/dist/api/base/identity/identity-manager.d.ts +97 -10
  29. package/dist/api/base/questionnaire/index.d.ts +1 -1
  30. package/dist/api/base/questionnaire/next-question-request.d.ts +8 -2
  31. package/dist/api/base/questionnaire/next-question-request.js +4 -1
  32. package/dist/api/base/questionnaire/questionnaire-manager.d.ts +16 -9
  33. package/dist/api/base/requests/search-date.d.ts +12 -0
  34. package/dist/api/base/requests/search-string.d.ts +6 -0
  35. package/dist/api/base/requests/search-token.d.ts +18 -0
  36. package/dist/api/base/user/create-consent-request.d.ts +13 -1
  37. package/dist/api/base/user/create-consent-request.js +8 -3
  38. package/dist/api/base/user/create-verification-url-request.d.ts +12 -0
  39. package/dist/api/base/user/create-verification-url-request.js +6 -0
  40. package/dist/api/base/user/get-consents-request.d.ts +19 -1
  41. package/dist/api/base/user/get-consents-request.js +13 -1
  42. package/dist/api/base/user/index.d.ts +1 -2
  43. package/dist/api/base/user/update-profile-request.d.ts +11 -3
  44. package/dist/api/base/user/update-profile-request.js +5 -3
  45. package/dist/api/base/user/user-manager.d.ts +50 -55
  46. package/dist/api/base/user/validators.d.ts +5 -0
  47. package/dist/api/base/user/validators.js +13 -0
  48. package/dist/api/graphql-api/connection/connection-response-factory.d.ts +1 -1
  49. package/dist/api/graphql-api/connection/connection-response-factory.js +1 -4
  50. package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +7 -6
  51. package/dist/api/graphql-api/connection/graphql-connection-manager.js +6 -3
  52. package/dist/api/graphql-api/errors/errors.js +1 -1
  53. package/dist/api/graphql-api/health-space/cancel-appointment-request-factory.js +1 -2
  54. package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +5 -4
  55. package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +7 -6
  56. package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +13 -12
  57. package/dist/api/graphql-api/identity/graphql-identity-manager.d.ts +2 -1
  58. package/dist/api/graphql-api/identity/graphql-identity-manager.js +4 -2
  59. package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +3 -2
  60. package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +2 -1
  61. package/dist/api/graphql-api/user/graphql-user-manager.d.ts +7 -7
  62. package/dist/api/graphql-api/user/graphql-user-manager.js +7 -4
  63. package/dist/api/graphql-api/user/update-profile-request-factory.js +1 -2
  64. package/dist/auth/auth-code-strategy.d.ts +2 -1
  65. package/dist/auth/auth-strategy.d.ts +1 -1
  66. package/dist/auth/oauth-strategy.d.ts +2 -1
  67. package/dist/auth/username-password-strategy.d.ts +2 -1
  68. package/dist/bwell-sdk/bwell-sdk.d.ts +289 -33
  69. package/dist/bwell-sdk/bwell-sdk.js +294 -30
  70. package/dist/config/bwell-config.d.ts +8 -2
  71. package/dist/config/bwell-config.js +1 -3
  72. package/dist/config/sdk-config.d.ts +1 -1
  73. package/dist/errors/authentication-error.d.ts +7 -0
  74. package/dist/errors/authentication-error.js +7 -0
  75. package/dist/errors/bwell-error.d.ts +12 -2
  76. package/dist/errors/bwell-error.js +5 -2
  77. package/dist/errors/illegal-argument-error.d.ts +7 -0
  78. package/dist/errors/illegal-argument-error.js +7 -0
  79. package/dist/errors/illegal-state-error.d.ts +7 -0
  80. package/dist/errors/illegal-state-error.js +7 -0
  81. package/dist/errors/invalid-client-key-error.d.ts +7 -0
  82. package/dist/errors/invalid-client-key-error.js +7 -0
  83. package/dist/errors/invalid-credentials-type-error.d.ts +7 -0
  84. package/dist/errors/invalid-credentials-type-error.js +7 -0
  85. package/dist/errors/invalid-token-error.d.ts +4 -1
  86. package/dist/errors/invalid-token-error.js +4 -1
  87. package/dist/errors/network-error.d.ts +7 -0
  88. package/dist/errors/network-error.js +7 -0
  89. package/dist/errors/operation-outcome-error.d.ts +8 -1
  90. package/dist/errors/operation-outcome-error.js +7 -0
  91. package/dist/errors/unknown-error.d.ts +7 -0
  92. package/dist/errors/unknown-error.js +7 -0
  93. package/dist/errors/validation-error.d.ts +7 -0
  94. package/dist/errors/validation-error.js +7 -0
  95. package/dist/graphql/operations/index.d.ts +30 -30
  96. package/dist/graphql/operations/index.js +6 -4
  97. package/dist/graphql/operations/types.d.ts +242 -6
  98. package/dist/graphql/schema.d.ts +90 -277
  99. package/dist/graphql/schema.js +1 -369
  100. package/dist/index.d.ts +7 -5
  101. package/dist/index.js +5 -4
  102. package/dist/language/language-manager.d.ts +25 -10
  103. package/dist/language/language-manager.js +5 -0
  104. package/dist/models/common/address.d.ts +41 -0
  105. package/dist/models/common/annotation.d.ts +18 -0
  106. package/dist/models/common/attachment.d.ts +18 -0
  107. package/dist/models/common/bundle.d.ts +59 -0
  108. package/dist/models/common/codeable-concept.d.ts +17 -0
  109. package/dist/models/common/codeable-concept.js +1 -0
  110. package/dist/models/common/coding.d.ts +18 -0
  111. package/dist/models/common/coding.js +1 -0
  112. package/dist/models/common/component.d.ts +23 -0
  113. package/dist/models/common/component.js +1 -0
  114. package/dist/models/common/contact-point.d.ts +28 -0
  115. package/dist/models/common/contact-point.js +1 -0
  116. package/dist/models/common/expression.d.ts +20 -0
  117. package/dist/models/common/expression.js +1 -0
  118. package/dist/models/common/extension.d.ts +47 -0
  119. package/dist/models/common/extension.js +1 -0
  120. package/dist/models/common/fhir-error.d.ts +23 -0
  121. package/dist/models/common/fhir-error.js +1 -0
  122. package/dist/models/common/human-name.d.ts +20 -0
  123. package/dist/models/common/human-name.js +1 -0
  124. package/dist/models/common/identifier.d.ts +19 -0
  125. package/dist/models/common/identifier.js +1 -0
  126. package/dist/models/common/index.d.ts +23 -0
  127. package/dist/models/common/index.js +2 -0
  128. package/dist/models/common/location.d.ts +44 -0
  129. package/dist/models/common/location.js +1 -0
  130. package/dist/models/common/meta.d.ts +21 -0
  131. package/dist/models/common/meta.js +1 -0
  132. package/dist/models/common/narrative.d.ts +14 -0
  133. package/dist/models/common/narrative.js +1 -0
  134. package/dist/models/common/operation-outcome.d.ts +48 -0
  135. package/dist/models/common/operation-outcome.js +1 -0
  136. package/dist/models/common/paging-info.d.ts +18 -0
  137. package/dist/models/common/paging-info.js +1 -0
  138. package/dist/models/common/period.d.ts +14 -0
  139. package/dist/models/common/period.js +1 -0
  140. package/dist/models/common/quantity.d.ts +20 -0
  141. package/dist/models/common/quantity.js +1 -0
  142. package/dist/models/common/range.d.ts +15 -0
  143. package/dist/models/common/range.js +1 -0
  144. package/dist/models/common/ratio.d.ts +15 -0
  145. package/dist/models/common/ratio.js +1 -0
  146. package/dist/models/common/reference-range.d.ts +13 -0
  147. package/dist/models/common/reference-range.js +1 -0
  148. package/dist/models/common/reference.d.ts +26 -0
  149. package/dist/models/common/reference.js +1 -0
  150. package/dist/models/connection/base-connection.d.ts +27 -0
  151. package/dist/models/connection/base-connection.js +1 -0
  152. package/dist/models/connection/connection-status.d.ts +15 -0
  153. package/dist/models/connection/connection-status.js +1 -0
  154. package/dist/models/connection/connection.d.ts +32 -0
  155. package/dist/models/connection/connection.js +1 -0
  156. package/dist/models/connection/data-source.d.ts +27 -0
  157. package/dist/models/connection/data-source.js +1 -0
  158. package/dist/models/connection/index.d.ts +6 -0
  159. package/dist/models/connection/index.js +1 -0
  160. package/dist/models/connection/member-connection.d.ts +25 -0
  161. package/dist/models/connection/member-connection.js +1 -0
  162. package/dist/models/connection/oauth-url.d.ts +12 -0
  163. package/dist/models/connection/oauth-url.js +1 -0
  164. package/dist/models/enums/category-code.d.ts +11 -0
  165. package/dist/models/enums/category-code.js +13 -0
  166. package/dist/models/enums/connection-category.d.ts +9 -0
  167. package/dist/models/enums/connection-category.js +1 -0
  168. package/dist/models/enums/consent-provision-type.d.ts +11 -0
  169. package/dist/models/enums/consent-provision-type.js +2 -0
  170. package/dist/models/enums/consent-status.d.ts +11 -0
  171. package/dist/models/enums/consent-status.js +9 -0
  172. package/dist/models/enums/data-connection-status.d.ts +9 -0
  173. package/dist/models/enums/data-connection-status.js +1 -0
  174. package/dist/models/enums/data-connection-type.d.ts +9 -0
  175. package/dist/models/enums/data-connection-type.js +1 -0
  176. package/dist/models/enums/index.d.ts +9 -0
  177. package/dist/models/enums/index.js +4 -0
  178. package/dist/models/enums/log-level.d.ts +8 -0
  179. package/dist/models/enums/log-level.js +1 -0
  180. package/dist/models/enums/person-gender.d.ts +11 -0
  181. package/dist/models/enums/person-gender.js +7 -0
  182. package/dist/models/enums/sync-status.d.ts +9 -0
  183. package/dist/models/enums/sync-status.js +1 -0
  184. package/dist/models/health-data/allergy-intolerance-bundle.d.ts +11 -0
  185. package/dist/models/health-data/allergy-intolerance-bundle.js +1 -0
  186. package/dist/models/health-data/allergy-intolerance-entry.d.ts +11 -0
  187. package/dist/models/health-data/allergy-intolerance-entry.js +1 -0
  188. package/dist/models/health-data/allergy-intolerance-group.d.ts +36 -0
  189. package/dist/models/health-data/allergy-intolerance-group.js +1 -0
  190. package/dist/models/health-data/allergy-intolerance-reaction.d.ts +23 -0
  191. package/dist/models/health-data/allergy-intolerance-reaction.js +1 -0
  192. package/dist/models/health-data/allergy-intolerance.d.ts +46 -0
  193. package/dist/models/health-data/allergy-intolerance.js +1 -0
  194. package/dist/models/health-data/care-plan-group.d.ts +34 -0
  195. package/dist/models/health-data/care-plan-group.js +1 -0
  196. package/dist/models/health-data/condition-group.d.ts +34 -0
  197. package/dist/models/health-data/condition-group.js +1 -0
  198. package/dist/models/health-data/diagnostic-report-lab-group.d.ts +37 -0
  199. package/dist/models/health-data/diagnostic-report-lab-group.js +1 -0
  200. package/dist/models/health-data/encounter-group.d.ts +40 -0
  201. package/dist/models/health-data/encounter-group.js +1 -0
  202. package/dist/models/health-data/health-summary.d.ts +18 -0
  203. package/dist/models/health-data/health-summary.js +1 -0
  204. package/dist/models/health-data/immunization-group.d.ts +33 -0
  205. package/dist/models/health-data/immunization-group.js +1 -0
  206. package/dist/models/health-data/index.d.ts +15 -0
  207. package/dist/models/health-data/index.js +1 -0
  208. package/dist/models/health-data/lab-group.d.ts +43 -0
  209. package/dist/models/health-data/lab-group.js +1 -0
  210. package/dist/models/health-data/medication-group.d.ts +35 -0
  211. package/dist/models/health-data/medication-group.js +1 -0
  212. package/dist/models/health-data/procedure-group.d.ts +35 -0
  213. package/dist/models/health-data/procedure-group.js +1 -0
  214. package/dist/models/health-data/vital-sign-group.d.ts +43 -0
  215. package/dist/models/health-data/vital-sign-group.js +1 -0
  216. package/dist/models/health-space/appointment-bundle.d.ts +11 -0
  217. package/dist/models/health-space/appointment-bundle.js +1 -0
  218. package/dist/models/health-space/appointment-entry.d.ts +11 -0
  219. package/dist/models/health-space/appointment-entry.js +1 -0
  220. package/dist/models/health-space/appointment-participant.d.ts +17 -0
  221. package/dist/models/health-space/appointment-participant.js +1 -0
  222. package/dist/models/health-space/appointment-update.d.ts +14 -0
  223. package/dist/models/health-space/appointment-update.js +1 -0
  224. package/dist/models/health-space/appointment.d.ts +30 -0
  225. package/dist/models/health-space/appointment.js +1 -0
  226. package/dist/models/health-space/cancellation-reasons.d.ts +32 -0
  227. package/dist/models/health-space/cancellation-reasons.js +1 -0
  228. package/dist/models/health-space/index.d.ts +6 -0
  229. package/dist/models/health-space/index.js +1 -0
  230. package/dist/models/identity/auth-tokens.d.ts +25 -0
  231. package/dist/models/identity/auth-tokens.js +1 -0
  232. package/dist/models/identity/create-guest-access-token-results.d.ts +12 -0
  233. package/dist/models/identity/create-guest-access-token-results.js +1 -0
  234. package/dist/models/identity/index.d.ts +4 -0
  235. package/dist/models/identity/index.js +1 -0
  236. package/dist/models/identity/refresh-token-results.d.ts +8 -0
  237. package/dist/models/identity/refresh-token-results.js +1 -0
  238. package/dist/models/identity/sdk-configuration-result.d.ts +27 -0
  239. package/dist/models/identity/sdk-configuration-result.js +1 -0
  240. package/dist/models/index.d.ts +7 -4
  241. package/dist/models/index.js +7 -4
  242. package/dist/models/questionnaire/index.d.ts +5 -0
  243. package/dist/models/questionnaire/index.js +1 -0
  244. package/dist/models/questionnaire/questionnaire-item.d.ts +38 -0
  245. package/dist/models/questionnaire/questionnaire-item.js +1 -0
  246. package/dist/models/questionnaire/questionnaire-response-answer.d.ts +33 -0
  247. package/dist/models/questionnaire/questionnaire-response-answer.js +1 -0
  248. package/dist/models/questionnaire/questionnaire-response-item.d.ts +19 -0
  249. package/dist/models/questionnaire/questionnaire-response-item.js +1 -0
  250. package/dist/models/questionnaire/questionnaire-response.d.ts +29 -0
  251. package/dist/models/questionnaire/questionnaire-response.js +1 -0
  252. package/dist/models/questionnaire/questionnaire.d.ts +30 -0
  253. package/dist/models/questionnaire/questionnaire.js +1 -0
  254. package/dist/models/user/consent.d.ts +91 -0
  255. package/dist/models/user/consent.js +1 -0
  256. package/dist/models/user/index.d.ts +4 -0
  257. package/dist/models/user/index.js +1 -0
  258. package/dist/models/user/person.d.ts +43 -0
  259. package/dist/models/user/person.js +1 -0
  260. package/dist/models/user/user.d.ts +12 -0
  261. package/dist/models/user/user.js +1 -0
  262. package/dist/models/user/verification-result.d.ts +30 -0
  263. package/dist/models/user/verification-result.js +1 -0
  264. package/dist/requests/paged-request.d.ts +35 -0
  265. package/dist/requests/paged-request.js +22 -0
  266. package/dist/requests/request.d.ts +16 -0
  267. package/dist/requests/request.js +8 -0
  268. package/dist/requests/validator.d.ts +15 -0
  269. package/dist/requests/validator.js +7 -0
  270. package/dist/results/bwell-query-result.d.ts +5 -0
  271. package/dist/results/bwell-query-result.js +5 -0
  272. package/dist/results/bwell-transaction-result.d.ts +17 -3
  273. package/dist/results/bwell-transaction-result.js +15 -1
  274. package/dist/results/index.d.ts +1 -0
  275. package/dist/results/index.js +1 -0
  276. package/dist/tokens/load-auth-tokens.d.ts +1 -1
  277. package/dist/tokens/token-storage.d.ts +4 -0
  278. package/dist/tokens/token-storage.js +2 -0
  279. package/package.json +5 -2
  280. package/dist/api/base/connection/connection.d.ts +0 -19
  281. package/dist/api/base/health-space/cancelationReasons-request.d.ts +0 -16
  282. package/dist/api/base/user/types.d.ts +0 -9
  283. package/dist/api/base/user/types.js +0 -17
  284. package/dist/models/coding.d.ts +0 -5
  285. package/dist/models/fhir-error.d.ts +0 -9
  286. package/dist/models/user.d.ts +0 -4
  287. /package/dist/{api/base/connection/connection.js → models/common/address.js} +0 -0
  288. /package/dist/models/{coding.js → common/annotation.js} +0 -0
  289. /package/dist/models/{fhir-error.js → common/attachment.js} +0 -0
  290. /package/dist/models/{user.js → common/bundle.js} +0 -0
  291. /package/dist/{models → results}/operation-outcome.d.ts +0 -0
  292. /package/dist/{models → results}/operation-outcome.js +0 -0
@@ -0,0 +1,25 @@
1
+ import { CodeableConcept } from "../common/codeable-concept.js";
2
+ import type { DataConnectionStatus, SyncStatus } from "../enums/index.js";
3
+ import type { BaseConnection } from "./base-connection.js";
4
+ /**
5
+ * MemberConnection model representing a member's healthcare provider connection.
6
+ * Contains connection metadata including authentication and synchronization status.
7
+ *
8
+ * @category Models
9
+ * @title MemberConnection
10
+ * @excerpt MemberConnection model representing a member's healthcare provider connection
11
+ */
12
+ export type MemberConnection = BaseConnection & {
13
+ /**
14
+ * The authentication token status.
15
+ */
16
+ status: DataConnectionStatus;
17
+ /**
18
+ * The status of the data ingest pipeline.
19
+ */
20
+ syncStatus: SyncStatus;
21
+ /**
22
+ * Errors from the data ingest pipeline.
23
+ */
24
+ syncError: (CodeableConcept | null)[] | null;
25
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * OAuth authorization URL result model.
3
+ * Contains the redirect URL for OAuth-based healthcare provider connections.
4
+ *
5
+ * @category Models
6
+ * @title OAuthUrl
7
+ * @excerpt OAuth authorization URL result model
8
+ */
9
+ export interface OAuthUrl {
10
+ /** OAuth authorization redirect URL */
11
+ redirectUrl: string;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * CategoryCode enum representing the category code for consents or data.
3
+ * Defines the possible category codes used in the system.
4
+ *
5
+ * @category Enums
6
+ * @title CategoryCode
7
+ * @excerpt CategoryCode enum representing the category code for consents or data.
8
+ */
9
+ export type CategoryCode = "COMMUNICATION_PREFERENCES_PHI" | "DATA_SHARING" | "HEALTH_CIRCLE_ADOLESCENT" | "HEALTH_CIRCLE_MINOR" | "HEALTH_MATCH" | "IAS_IMPORT_RECORDS" | "MOBILE_COMMUNICATION_PREFERENCES" | "PERSONALIZED_HEALTH_OFFERS_AND_ADS" | "PROA_ATTESTATION" | "TOS";
10
+ /** @internal */
11
+ export declare const categoryCodeValues: readonly ["COMMUNICATION_PREFERENCES_PHI", "DATA_SHARING", "HEALTH_CIRCLE_ADOLESCENT", "HEALTH_CIRCLE_MINOR", "HEALTH_MATCH", "IAS_IMPORT_RECORDS", "MOBILE_COMMUNICATION_PREFERENCES", "PERSONALIZED_HEALTH_OFFERS_AND_ADS", "PROA_ATTESTATION", "TOS"];
@@ -0,0 +1,13 @@
1
+ /** @internal */
2
+ export const categoryCodeValues = [
3
+ "COMMUNICATION_PREFERENCES_PHI",
4
+ "DATA_SHARING",
5
+ "HEALTH_CIRCLE_ADOLESCENT",
6
+ "HEALTH_CIRCLE_MINOR",
7
+ "HEALTH_MATCH",
8
+ "IAS_IMPORT_RECORDS",
9
+ "MOBILE_COMMUNICATION_PREFERENCES",
10
+ "PERSONALIZED_HEALTH_OFFERS_AND_ADS",
11
+ "PROA_ATTESTATION",
12
+ "TOS",
13
+ ];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * ConnectionCategory enum representing the type of connection authentication.
3
+ * Defines whether a connection uses basic authentication or OAuth-based authentication.
4
+ *
5
+ * @category Enums
6
+ * @title ConnectionCategory
7
+ * @excerpt ConnectionCategory enum representing the type of connection authentication...
8
+ */
9
+ export type ConnectionCategory = "BASIC" | "OAUTH";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * ConsentProvisionType enum representing the type of consent provision.
3
+ * Defines whether a consent provision is a denial or a permit.
4
+ *
5
+ * @category Enums
6
+ * @title ConsentProvisionType
7
+ * @excerpt ConsentProvisionType enum representing the type of consent provision.
8
+ */
9
+ export type ConsentProvisionType = "DENY" | "PERMIT";
10
+ /** @internal */
11
+ export declare const consentProvisionTypeValues: readonly ["DENY", "PERMIT"];
@@ -0,0 +1,2 @@
1
+ /** @internal */
2
+ export const consentProvisionTypeValues = ["DENY", "PERMIT"];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * ConsentStatus enum representing the status of a consent.
3
+ * Defines the possible status values for a consent.
4
+ *
5
+ * @category Enums
6
+ * @title ConsentStatus
7
+ * @excerpt ConsentStatus enum representing the status of a consent.
8
+ */
9
+ export type ConsentStatus = "ACTIVE" | "DRAFT" | "ENTERED_IN_ERROR" | "INACTIVE" | "PROPOSED" | "REJECTED";
10
+ /** @internal */
11
+ export declare const consentStatusValues: readonly ["ACTIVE", "DRAFT", "ENTERED_IN_ERROR", "INACTIVE", "PROPOSED", "REJECTED"];
@@ -0,0 +1,9 @@
1
+ /** @internal */
2
+ export const consentStatusValues = [
3
+ "ACTIVE",
4
+ "DRAFT",
5
+ "ENTERED_IN_ERROR",
6
+ "INACTIVE",
7
+ "PROPOSED",
8
+ "REJECTED",
9
+ ];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * DataConnectionStatus enum representing the current status of a data connection.
3
+ * Defines the various states a connection can be in during its lifecycle.
4
+ *
5
+ * @category Enums
6
+ * @title DataConnectionStatus
7
+ * @excerpt DataConnectionStatus enum representing the current status of a data connection...
8
+ */
9
+ export type DataConnectionStatus = "CONNECTED" | "DELETED" | "DISCONNECTED" | "ERROR" | "EXPIRED";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * DataConnectionType enum representing the type of data source connection.
3
+ * Defines the specific connection type for different healthcare data providers.
4
+ *
5
+ * @category Enums
6
+ * @title DataConnectionType
7
+ * @excerpt DataConnectionType enum representing the type of data source connection.
8
+ */
9
+ export type DataConnectionType = "CLINICAL" | "INSURANCE" | "LAB" | "PHARMACY" | "PRACTITIONER";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export { PersonGender, personGenderValues } from "./person-gender.js";
2
+ export { ConsentStatus, consentStatusValues } from "./consent-status.js";
3
+ export { CategoryCode, categoryCodeValues } from "./category-code.js";
4
+ export { ConsentProvisionType, consentProvisionTypeValues, } from "./consent-provision-type.js";
5
+ export { ConnectionCategory } from "./connection-category.js";
6
+ export { DataConnectionStatus } from "./data-connection-status.js";
7
+ export { DataConnectionType } from "./data-connection-type.js";
8
+ export { SyncStatus } from "./sync-status.js";
9
+ export { LogLevel } from "./log-level.js";
@@ -0,0 +1,4 @@
1
+ export { personGenderValues } from "./person-gender.js";
2
+ export { consentStatusValues } from "./consent-status.js";
3
+ export { categoryCodeValues } from "./category-code.js";
4
+ export { consentProvisionTypeValues, } from "./consent-provision-type.js";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Log level string union for SDK logging
3
+ *
4
+ * @category Enums
5
+ * @title LogLevel
6
+ * @excerpt Log level string union for SDK logging
7
+ */
8
+ export type LogLevel = "DEBUG" | "ERROR" | "INFO" | "VERBOSE" | "WARN";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * PersonGender enum representing a person's gender.
3
+ * Defines the possible gender values for a person.
4
+ *
5
+ * @category Enums
6
+ * @title PersonGender
7
+ * @excerpt PersonGender enum representing a person's gender.
8
+ */
9
+ export type PersonGender = "female" | "male" | "other" | "unknown";
10
+ /** @internal */
11
+ export declare const personGenderValues: readonly ["female", "male", "other", "unknown"];
@@ -0,0 +1,7 @@
1
+ /** @internal */
2
+ export const personGenderValues = [
3
+ "female",
4
+ "male",
5
+ "other",
6
+ "unknown",
7
+ ];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * SyncStatus enum representing the synchronization status of a connection.
3
+ * Defines the current state of data synchronization for a healthcare provider connection.
4
+ *
5
+ * @category Enums
6
+ * @title SyncStatus
7
+ * @excerpt SyncStatus enum representing the synchronization status of a connection...
8
+ */
9
+ export type SyncStatus = "ERROR" | "PENDING" | "RETRIEVED" | "RETRIEVING";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { EntryBundle } from "../common/index.js";
2
+ import type { AllergyIntoleranceEntry } from "./allergy-intolerance-entry.js";
3
+ /**
4
+ * Bundle of allergy intolerance search results.
5
+ * Contains multiple allergy intolerance entries from search operations.
6
+ *
7
+ * @category Models
8
+ * @title AllergyIntoleranceBundle
9
+ * @excerpt Bundle of allergy intolerance search results
10
+ */
11
+ export type AllergyIntoleranceBundle = EntryBundle<AllergyIntoleranceEntry>;
@@ -0,0 +1,11 @@
1
+ import type { IdentifiedResourceEntry } from "../common/index.js";
2
+ import type { AllergyIntolerance } from "./allergy-intolerance.js";
3
+ /**
4
+ * Represents an entry in an allergy intolerance bundle.
5
+ * Contains an allergy intolerance resource and metadata.
6
+ *
7
+ * @category Models
8
+ * @title AllergyIntoleranceEntry
9
+ * @excerpt Represents an entry in an allergy intolerance bundle
10
+ */
11
+ export type AllergyIntoleranceEntry = IdentifiedResourceEntry<AllergyIntolerance>;
@@ -0,0 +1,36 @@
1
+ import type { Coding, ResourceBundle } from "../common/index.js";
2
+ /**
3
+ * Grouped allergy intolerance data with summary information.
4
+ * Contains aggregated information about allergies organized by category or substance.
5
+ *
6
+ * @category Models
7
+ * @title AllergyIntoleranceGroup
8
+ * @excerpt Grouped allergy intolerance data with summary information
9
+ */
10
+ export type AllergyIntoleranceGroup = {
11
+ /** Unique identifier for this group */
12
+ id: string | null;
13
+ /** Display name for this group */
14
+ name: string | null;
15
+ /** References to underlying resources */
16
+ references: (string | null)[] | null;
17
+ /** Date when the record was created */
18
+ recordedDate: string | null;
19
+ /** Source of the information */
20
+ source: (string | null)[] | null;
21
+ /** Display names for sources */
22
+ sourceDisplay: (string | null)[] | null;
23
+ /** Coded representation of the allergy */
24
+ coding: Coding | null;
25
+ /** Criticality level for the group */
26
+ criticality: Coding | null;
27
+ };
28
+ /**
29
+ * Response containing grouped allergy intolerance data with paging information.
30
+ * Represents aggregated allergy intolerance information organized by groups.
31
+ *
32
+ * @category Models
33
+ * @title AllergyIntoleranceGroupBundle
34
+ * @excerpt Response containing grouped allergy intolerance data with paging...
35
+ */
36
+ export type AllergyIntoleranceGroupBundle = ResourceBundle<AllergyIntoleranceGroup>;
@@ -0,0 +1,23 @@
1
+ import { Annotation, CodeableConcept } from "../common/index.js";
2
+ /**
3
+ * Represents a reaction to an allergy or intolerance.
4
+ * Used within AllergyIntolerance resources to describe adverse reactions.
5
+ *
6
+ * @category Models
7
+ * @title AllergyIntoleranceReaction
8
+ * @excerpt Represents a reaction to an allergy or intolerance
9
+ */
10
+ export type AllergyIntoleranceReaction = {
11
+ /** Unique id for the element within a resource */
12
+ id: string | null;
13
+ /** Date(/time) when manifestations showed */
14
+ onset: string | null;
15
+ /** Clinical assessment of the severity */
16
+ severity: string | null;
17
+ /** Description of the event as a whole */
18
+ description: string | null;
19
+ /** Clinical symptoms/signs associated with the event */
20
+ manifestation: (CodeableConcept | null)[] | null;
21
+ /** Text about event not captured in other fields */
22
+ note: (Annotation | null)[] | null;
23
+ };
@@ -0,0 +1,46 @@
1
+ import type { Annotation, CodeableConcept, Meta, Narrative, Period, Reference } from "../common/index.js";
2
+ import { AllergyIntoleranceReaction } from "./allergy-intolerance-reaction.js";
3
+ /**
4
+ * Represents an allergy or intolerance to a substance.
5
+ * Based on the FHIR AllergyIntolerance resource with GraphQL-compatible structure.
6
+ *
7
+ * @category Models
8
+ * @title AllergyIntolerance
9
+ * @excerpt Represents an allergy or intolerance to a substance
10
+ */
11
+ export type AllergyIntolerance = {
12
+ /** Logical id of this artifact */
13
+ id: string;
14
+ /** A set of rules under which this content was created */
15
+ resourceType: string | null;
16
+ /** Metadata about the resource */
17
+ meta: Meta | null;
18
+ /** Text summary of the resource, for human interpretation */
19
+ text: Narrative | null;
20
+ /** Code for the allergy or intolerance */
21
+ code: CodeableConcept | null;
22
+ /** Category of the allergy/intolerance */
23
+ category: (string | null)[] | null;
24
+ /** Estimate of the potential clinical harm, or seriousness */
25
+ criticality: string | null;
26
+ /** Date(/time) when allergy or intolerance was identified */
27
+ onsetDateTime: string | null;
28
+ /** Date(/time) of last known occurrence of a reaction */
29
+ lastOccurrence: string | null;
30
+ /** Date first version of the resource instance was recorded */
31
+ recordedDate: string | null;
32
+ /** Who recorded the sensitivity */
33
+ recorder: Reference | null;
34
+ /** Period when allergy was active */
35
+ onsetPeriod: Period | null;
36
+ /** Adverse Reaction Events linked to exposure to substance */
37
+ reaction: (AllergyIntoleranceReaction | null)[] | null;
38
+ /** Additional text not captured in other fields */
39
+ note: (Annotation | null)[] | null;
40
+ /** Assertion about certainty associated with the propensity */
41
+ verificationStatus: CodeableConcept | null;
42
+ /** Active, inactive, resolved */
43
+ clinicalStatus: CodeableConcept | null;
44
+ /** Allergy | Intolerance - Underlying mechanism (if known) */
45
+ type: string | null;
46
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { Coding, Period, ResourceBundle } from "../common/index.js";
2
+ /**
3
+ * Response containing grouped care plan data with paging information.
4
+ * Represents aggregated care plan information organized by groups.
5
+ *
6
+ * @category Models
7
+ * @title CarePlanGroupBundle
8
+ * @excerpt Response containing grouped care plan data with paging...
9
+ */
10
+ export type CarePlanGroupBundle = ResourceBundle<CarePlanGroup>;
11
+ /**
12
+ * Grouped care plan data with summary information.
13
+ * Contains aggregated information about care plans organized by category or intent.
14
+ *
15
+ * @category Models
16
+ * @title CarePlanGroup
17
+ * @excerpt Grouped care plan data with summary information
18
+ */
19
+ export type CarePlanGroup = {
20
+ /** Unique identifier for this group */
21
+ id: string | null;
22
+ /** Display name for this group */
23
+ name: string | null;
24
+ /** References to underlying resources */
25
+ references: (string | null)[] | null;
26
+ /** Source of the information */
27
+ source: (string | null)[] | null;
28
+ /** Display names for sources */
29
+ sourceDisplay: (string | null)[] | null;
30
+ /** Coded representation */
31
+ coding: Coding | null;
32
+ /** Care plan period */
33
+ period: Period | null;
34
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ import type { Coding, ResourceBundle } from "../common/index.js";
2
+ /**
3
+ * Response containing grouped condition data with paging information.
4
+ * Represents aggregated condition information organized by groups.
5
+ *
6
+ * @category Models
7
+ * @title ConditionGroupBundle
8
+ * @excerpt Response containing grouped condition data with paging information
9
+ */
10
+ export type ConditionGroupBundle = ResourceBundle<ConditionGroup>;
11
+ /**
12
+ * Grouped condition data with summary information.
13
+ * Contains aggregated information about conditions organized by category or type.
14
+ *
15
+ * @category Models
16
+ * @title ConditionGroup
17
+ * @excerpt Grouped condition data with summary information
18
+ */
19
+ export type ConditionGroup = {
20
+ /** Unique identifier for this group */
21
+ id: string | null;
22
+ /** Display name for this group */
23
+ name: string | null;
24
+ /** References to underlying resources */
25
+ references: (string | null)[] | null;
26
+ /** Date when the record was created */
27
+ recordedDate: string | null;
28
+ /** Source of the information */
29
+ source: (string | null)[] | null;
30
+ /** Display names for sources */
31
+ sourceDisplay: (string | null)[] | null;
32
+ /** Coded representation of the condition */
33
+ coding: Coding | null;
34
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,37 @@
1
+ import type { Coding, ResourceBundle } from "../common/index.js";
2
+ /**
3
+ * Bundle containing diagnostic report lab group data with paging information.
4
+ * Maps exactly to GraphQL GetDiagnosticReportLabGroupsQueryResults structure.
5
+ *
6
+ * @category Models
7
+ * @title DiagnosticReportLabGroupBundle
8
+ * @excerpt Bundle containing diagnostic report lab group data with...
9
+ */
10
+ export type DiagnosticReportLabGroupBundle = ResourceBundle<DiagnosticReportLabGroup>;
11
+ /**
12
+ * Represents a diagnostic report lab group resource matching GraphQL structure.
13
+ *
14
+ * @category Models
15
+ * @title DiagnosticReportLabGroup
16
+ * @excerpt Represents a diagnostic report lab group resource matching...
17
+ */
18
+ export interface DiagnosticReportLabGroup {
19
+ /** Resource identifier */
20
+ id: string;
21
+ /** Effective date time */
22
+ effectiveDateTime: string;
23
+ /** Issued date */
24
+ issued: string;
25
+ /** Group name */
26
+ name: string;
27
+ /** Performer information */
28
+ performer: string;
29
+ /** References to underlying resources */
30
+ references: string[];
31
+ /** Source information */
32
+ source: string[];
33
+ /** Source display names */
34
+ sourceDisplay: string[];
35
+ /** Coding information */
36
+ coding: Coding;
37
+ }
@@ -0,0 +1,40 @@
1
+ import type { Coding, ResourceBundle } from "../common/index.js";
2
+ /**
3
+ * Bundle containing encounter group data with paging information.
4
+ * Maps exactly to GraphQL GetEncountersGroupQueryResults structure.
5
+ *
6
+ * @category Models
7
+ * @title EncounterGroupBundle
8
+ * @excerpt Bundle containing encounter group data with paging information
9
+ */
10
+ export type EncounterGroupBundle = ResourceBundle<EncounterGroup>;
11
+ /**
12
+ * Represents an encounter group with aggregated data.
13
+ * Maps exactly to GraphQL encounter group resource structure.
14
+ *
15
+ * @category Models
16
+ * @title EncounterGroup
17
+ * @excerpt Represents an encounter group with aggregated data
18
+ */
19
+ export interface EncounterGroup {
20
+ /** Group identifier */
21
+ id: string;
22
+ /** Name of the group */
23
+ name: string;
24
+ /** Array of references in this group */
25
+ references: string[];
26
+ /** Participant information */
27
+ participant: string;
28
+ /** Date information */
29
+ date: string;
30
+ /** Source information */
31
+ source: string[];
32
+ /** Source display names */
33
+ sourceDisplay: string[];
34
+ /** Class information */
35
+ class: Coding;
36
+ /** Type information */
37
+ type: Coding;
38
+ /** Coding information */
39
+ coding: Coding;
40
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { HealthSummaryCategory } from "../../graphql/schema.js";
2
+ /**
3
+ * Represents a health summary with resource groups and counts.
4
+ * Maps directly to GraphQL GetHealthSummaryQueryResults structure.
5
+ *
6
+ * @category Models
7
+ * @title HealthSummary
8
+ * @excerpt Represents a health summary with resource groups and counts
9
+ */
10
+ export type HealthSummary = {
11
+ /** Array of health resource categories with counts */
12
+ resources: {
13
+ /** The category of health resource */
14
+ category: HealthSummaryCategory | null;
15
+ /** Total count for this category */
16
+ total: number | null;
17
+ }[];
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ import type { Coding, ResourceBundle } from "../common/index.js";
2
+ /**
3
+ * Bundle containing immunization group data with paging information.
4
+ * Maps exactly to GraphQL GetImmunizationGroupsQueryResults structure.
5
+ *
6
+ * @category Models
7
+ * @title ImmunizationGroupBundle
8
+ * @excerpt Bundle containing immunization group data with paging information
9
+ */
10
+ export type ImmunizationGroupBundle = ResourceBundle<ImmunizationGroup>;
11
+ /**
12
+ * Represents an immunization group resource matching GraphQL structure.
13
+ *
14
+ * @category Models
15
+ * @title ImmunizationGroup
16
+ * @excerpt Represents an immunization group resource matching GraphQL structure
17
+ */
18
+ export interface ImmunizationGroup {
19
+ /** Resource identifier */
20
+ id: string;
21
+ /** Group name */
22
+ name: string;
23
+ /** References to underlying resources */
24
+ references: string[];
25
+ /** Occurrence date time */
26
+ occurrenceDateTime: string;
27
+ /** Source information */
28
+ source: string[];
29
+ /** Source display names */
30
+ sourceDisplay: string[];
31
+ /** Coding information */
32
+ coding: Coding;
33
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ export type { HealthSummary } from "./health-summary.js";
2
+ export type { AllergyIntoleranceGroupBundle, AllergyIntoleranceGroup, } from "./allergy-intolerance-group.js";
3
+ export type { AllergyIntoleranceBundle } from "./allergy-intolerance-bundle.js";
4
+ export type { AllergyIntoleranceReaction } from "./allergy-intolerance-reaction.js";
5
+ export type { AllergyIntolerance } from "./allergy-intolerance.js";
6
+ export type { AllergyIntoleranceEntry } from "./allergy-intolerance-entry.js";
7
+ export type { ConditionGroupBundle, ConditionGroup, } from "./condition-group.js";
8
+ export type { LabGroupBundle, LabGroup } from "./lab-group.js";
9
+ export type { CarePlanGroupBundle, CarePlanGroup } from "./care-plan-group.js";
10
+ export type { EncounterGroupBundle, EncounterGroup, } from "./encounter-group.js";
11
+ export type { ImmunizationGroupBundle, ImmunizationGroup, } from "./immunization-group.js";
12
+ export type { ProcedureGroupBundle, ProcedureGroup, } from "./procedure-group.js";
13
+ export type { VitalSignGroupBundle, VitalSignGroup, } from "./vital-sign-group.js";
14
+ export type { MedicationGroupBundle, MedicationGroup, } from "./medication-group.js";
15
+ export type { DiagnosticReportLabGroupBundle, DiagnosticReportLabGroup, } from "./diagnostic-report-lab-group.js";
@@ -0,0 +1 @@
1
+ export {};