@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 @@
1
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * ContactPoint model representing details for all kinds of technology mediated
3
+ * contact points for a person or organization, including telephone, email, etc.
4
+ *
5
+ * @category Models
6
+ * @title ContactPoint
7
+ * @excerpt ContactPoint model representing details for all kinds of...
8
+ */
9
+ export interface ContactPoint {
10
+ /** Unique identifier */
11
+ id: string | null;
12
+ /**
13
+ * Telecommunications form for contact point - what communications system is
14
+ * required to make use of the contact.
15
+ * Uses the Code scalar type from the GraphQL schema.
16
+ */
17
+ system: string | null;
18
+ /**
19
+ * The actual contact point details, in a form that is meaningful to the
20
+ * designated communication system (i.e. phone number or email address).
21
+ */
22
+ value: string | null;
23
+ /**
24
+ * Identifies the purpose for the contact point.
25
+ * Uses the Code scalar type from the GraphQL schema.
26
+ */
27
+ use: string | null;
28
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Represents an expression used in FHIR resources.
3
+ * Used for computed values and conditional logic.
4
+ *
5
+ * @category Models
6
+ * @title Expression
7
+ * @excerpt Represents an expression used in FHIR resources
8
+ */
9
+ export type Expression = {
10
+ /** Natural language description */
11
+ description: string | null;
12
+ /** Short name assigned to expression */
13
+ name: string | null;
14
+ /** Expression language */
15
+ language: string | null;
16
+ /** Expression content */
17
+ expression: string | null;
18
+ /** Reference to expression definition */
19
+ reference: string | null;
20
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ import { CodeableConcept } from "./codeable-concept.js";
2
+ import { Expression } from "./expression.js";
3
+ import { Period } from "./period.js";
4
+ import { Quantity } from "./quantity.js";
5
+ import { Range } from "./range.js";
6
+ import { Ratio } from "./ratio.js";
7
+ import { Reference } from "./reference.js";
8
+ /**
9
+ * Represents an extension to FHIR resources.
10
+ * Used to add additional data elements beyond the base resource definition.
11
+ *
12
+ * @category Models
13
+ * @title Extension
14
+ * @excerpt Represents an extension to FHIR resources
15
+ */
16
+ export type Extension = {
17
+ /** Extension URL */
18
+ url: string | null;
19
+ /** Boolean extension value */
20
+ valueBoolean: boolean | null;
21
+ /** Integer extension value */
22
+ valueInteger: number | null;
23
+ /** String extension value */
24
+ valueString: string | null;
25
+ /** DateTime extension value */
26
+ valueDateTime: string | null;
27
+ /** Code extension value */
28
+ valueCode: string | null;
29
+ /** URI extension value */
30
+ valueUri: string | null;
31
+ /** Expression extension value */
32
+ valueExpression: Expression | null;
33
+ /** CodeableConcept extension value */
34
+ valueCodeableConcept: CodeableConcept | null;
35
+ /** Reference extension value */
36
+ valueReference: Reference | null;
37
+ /** Quantity extension value */
38
+ valueQuantity: Quantity | null;
39
+ /** Ratio extension value */
40
+ valueRatio: Ratio | null;
41
+ /** Range extension value */
42
+ valueRange: Range | null;
43
+ /** Period extension value */
44
+ valuePeriod: Period | null;
45
+ /** Time extension value */
46
+ valueTime: string | null;
47
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ import { OperationOutcomeIssue } from "../../graphql/schema.js";
2
+ /**
3
+ * FhirError model for the b.well SDK
4
+ *
5
+ * @category Models
6
+ * @title FhirError
7
+ * @excerpt FhirError model
8
+ */
9
+ export type FhirError = {
10
+ code: string;
11
+ resource: FhirErrorResource;
12
+ };
13
+ /**
14
+ * FhirErrorResource model for the b.well SDK
15
+ *
16
+ * @category Models
17
+ * @title FhirErrorResource
18
+ * @excerpt FhirErrorResource model
19
+ */
20
+ export type FhirErrorResource = {
21
+ resourceType: string;
22
+ issue: OperationOutcomeIssue[];
23
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Represents a human name with various components.
3
+ * Used across all models to represent person names with full FHIR compatibility.
4
+ *
5
+ * @category Models
6
+ * @title HumanName
7
+ * @excerpt Represents a human name with various components
8
+ */
9
+ export type HumanName = {
10
+ /** Full name as text */
11
+ text: string | null;
12
+ /** Family name (surname) */
13
+ family: string | null;
14
+ /** Given names (first name, middle names) */
15
+ given: (string | null)[] | null;
16
+ /** Name prefixes (titles) */
17
+ prefix: (string | null)[] | null;
18
+ /** Name suffixes */
19
+ suffix: (string | null)[] | null;
20
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { CodeableConcept } from "./codeable-concept.js";
2
+ /**
3
+ * Represents an identifier for uniquely identifying resources.
4
+ * Used to provide business identifiers for FHIR resources.
5
+ *
6
+ * @category Models
7
+ * @title Identifier
8
+ * @excerpt Represents an identifier for uniquely identifying resources
9
+ */
10
+ export type Identifier = {
11
+ /** Unique id for the identifier */
12
+ id: string | null;
13
+ /** The namespace for the identifier value */
14
+ system: string | null;
15
+ /** The value that is unique within the system */
16
+ value: string | null;
17
+ /** Type of identifier */
18
+ type: CodeableConcept | null;
19
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ export * from "./fhir-error.js";
2
+ export * from "./coding.js";
3
+ export type { OperationOutcome } from "./operation-outcome.js";
4
+ export type { Meta } from "./meta.js";
5
+ export type { Identifier } from "./identifier.js";
6
+ export type { CodeableConcept } from "./codeable-concept.js";
7
+ export type { Quantity } from "./quantity.js";
8
+ export type { Attachment } from "./attachment.js";
9
+ export type { Reference } from "./reference.js";
10
+ export type { Extension } from "./extension.js";
11
+ export type { Expression } from "./expression.js";
12
+ export type { PagingInfo } from "./paging-info.js";
13
+ export type { Period } from "./period.js";
14
+ export type { HumanName } from "./human-name.js";
15
+ export type { Narrative } from "./narrative.js";
16
+ export type { Annotation } from "./annotation.js";
17
+ export type { Address } from "./address.js";
18
+ export type { ContactPoint } from "./contact-point.js";
19
+ export type { ResourceBundle, EntryBundle, ResourceEntry, IdentifiedResourceEntry, } from "./bundle.js";
20
+ export type { Location } from "./location.js";
21
+ export type { Ratio } from "./ratio.js";
22
+ export type { ReferenceRange } from "./reference-range.js";
23
+ export type { Component } from "./component.js";
@@ -0,0 +1,2 @@
1
+ export * from "./fhir-error.js";
2
+ export * from "./coding.js";
@@ -0,0 +1,44 @@
1
+ import { Address } from "./address.js";
2
+ import { ContactPoint } from "./contact-point.js";
3
+ import { Identifier } from "./identifier.js";
4
+ import { Reference } from "./reference.js";
5
+ /**
6
+ * Geographic position coordinates.
7
+ * Used for location-based services and mapping.
8
+ *
9
+ * @category Models
10
+ * @title LocationPosition
11
+ * @excerpt Geographic position coordinates
12
+ */
13
+ export type LocationPosition = {
14
+ /** Latitude coordinate */
15
+ latitude: number | null;
16
+ /** Longitude coordinate */
17
+ longitude: number | null;
18
+ };
19
+ /**
20
+ * Represents a physical location or place.
21
+ * Contains details about a location including contact information, address, and managing organization.
22
+ *
23
+ * @category Models
24
+ * @title Location
25
+ * @excerpt Represents a physical location or place
26
+ */
27
+ export type Location = {
28
+ /** Unique resource identifier */
29
+ id: string;
30
+ /** Display name */
31
+ name: string | null;
32
+ /** Resource description */
33
+ description: string | null;
34
+ /** Business identifiers */
35
+ identifier: (Identifier | null)[] | null;
36
+ /** Contact information */
37
+ telecom: (ContactPoint | null)[] | null;
38
+ /** Address information */
39
+ address: Address | null;
40
+ /** Geographic position */
41
+ position: LocationPosition | null;
42
+ /** Managing organization reference */
43
+ managingOrganization: Reference;
44
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import type { Coding } from "./coding.js";
2
+ /**
3
+ * Represents a Meta object containing version and audit information.
4
+ * Used in FHIR resources to track versioning, source, and security tags.
5
+ *
6
+ * @category Models
7
+ * @title Meta
8
+ * @excerpt Represents a Meta object containing version and audit...
9
+ */
10
+ export type Meta = {
11
+ /** Version identifier for this resource */
12
+ versionId: string | null;
13
+ /** When this resource was last updated */
14
+ lastUpdated: string | null;
15
+ /** The source system for this resource */
16
+ source: string | null;
17
+ /** Security tags applied to this resource */
18
+ security: (Coding | null)[] | null;
19
+ /** General tags applied to this resource */
20
+ tag: (Coding | null)[] | null;
21
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Represents a text narrative with status.
3
+ * Used in FHIR resources to provide human-readable content.
4
+ *
5
+ * @category Models
6
+ * @title Narrative
7
+ * @excerpt Represents a text narrative with status
8
+ */
9
+ export type Narrative = {
10
+ /** The narrative status */
11
+ status: string | null;
12
+ /** The XHTML content */
13
+ div: string | null;
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Outcome of an operation that doesn't result in a resource or bundle being returned.
3
+ * Information about the success/failure of an action.
4
+ *
5
+ * @category Models
6
+ * @title OperationOutcome
7
+ * @excerpt Outcome of an operation that doesn't result in...
8
+ */
9
+ export type OperationOutcome = {
10
+ /**
11
+ * The type of resource being returned.
12
+ */
13
+ resourceType: string | null;
14
+ /**
15
+ * An error, warning, or information message that results from a system action.
16
+ */
17
+ issue: OperationOutcomeIssue[] | null;
18
+ };
19
+ /**
20
+ * A single issue associated with the action.
21
+ * @title OperationOutcomeIssue
22
+ * @excerpt A single issue associated with the action
23
+ */
24
+ export type OperationOutcomeIssue = {
25
+ /**
26
+ * Error or warning code.
27
+ */
28
+ code: string | null;
29
+ /**
30
+ * Indicates how relevant the issue is to the overall success of the action.
31
+ */
32
+ severity: string | null;
33
+ /**
34
+ * Additional details about the error.
35
+ */
36
+ details: OperationOutcomeIssueDetails | null;
37
+ };
38
+ /**
39
+ * Additional details about the error.
40
+ * @title OperationOutcomeIssueDetails
41
+ * @excerpt Additional details about the error
42
+ */
43
+ export type OperationOutcomeIssueDetails = {
44
+ /**
45
+ * A human readable description of the error issue.
46
+ */
47
+ text: string | null;
48
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Paging information for paginated GraphQL responses.
3
+ * Contains metadata about the current page and total results.
4
+ *
5
+ * @category Models
6
+ * @title PagingInfo
7
+ * @excerpt Metadata for paginated GraphQL responses
8
+ */
9
+ export type PagingInfo = {
10
+ /** Current page number (1-based) */
11
+ page_number: number;
12
+ /** Number of items per page */
13
+ page_size: number;
14
+ /** Total number of pages */
15
+ total_pages: number;
16
+ /** Total number of items across all pages */
17
+ total_items: number;
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Represents a period of time with optional start and end dates.
3
+ * Used in FHIR resources to specify time ranges.
4
+ *
5
+ * @category Models
6
+ * @title Period
7
+ * @excerpt Represents a period of time with optional start...
8
+ */
9
+ export type Period = {
10
+ /** Start date/time */
11
+ start: string | null;
12
+ /** End date/time */
13
+ end: string | null;
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Represents a measured amount with units.
3
+ * Used for numeric values with associated units.
4
+ *
5
+ * @category Models
6
+ * @title Quantity
7
+ * @excerpt Measured amount with units representation
8
+ */
9
+ export type Quantity = {
10
+ /** The value of the measured amount */
11
+ value: number | null;
12
+ /** Unit representation */
13
+ unit: string | null;
14
+ /** Coded form of the unit */
15
+ code: string | null;
16
+ /** Comparator for the value */
17
+ comparator: string | null;
18
+ /** System that defines the coded unit form */
19
+ system: string | null;
20
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Quantity } from "./quantity.js";
2
+ /**
3
+ * Represents a range of values with low and high boundaries.
4
+ * Used to specify a range of quantities in FHIR resources.
5
+ *
6
+ * @category Models
7
+ * @title Range
8
+ * @excerpt Value range with low and high boundaries
9
+ */
10
+ export type Range = {
11
+ /** The low boundary of the range */
12
+ low: Quantity;
13
+ /** The high boundary of the range */
14
+ high: Quantity;
15
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { Quantity } from "./quantity.js";
2
+ /**
3
+ * Represents a ratio of two quantities.
4
+ * Used to express proportional relationships between two values in FHIR resources.
5
+ *
6
+ * @category Models
7
+ * @title Ratio
8
+ * @excerpt Represents a ratio of two quantities
9
+ */
10
+ export type Ratio = {
11
+ /** The numerator of the ratio */
12
+ numerator: Quantity;
13
+ /** The denominator of the ratio */
14
+ denominator: Quantity;
15
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { Range } from "./range.js";
2
+ /**
3
+ * Represents a reference range with text description and low/high boundaries.
4
+ * Extends the base Range type with additional text field.
5
+ *
6
+ * @category Models
7
+ * @title ReferenceRange
8
+ * @excerpt Represents a reference range with text description and...
9
+ */
10
+ export type ReferenceRange = Range & {
11
+ /** Text description of the reference range */
12
+ text: string;
13
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { Extension } from "./extension.js";
2
+ import type { Identifier } from "./identifier.js";
3
+ /**
4
+ * Represents a reference to another resource.
5
+ * Used for linking between FHIR resources.
6
+ *
7
+ * @category Models
8
+ * @title Reference
9
+ * @excerpt Represents a reference to another resource
10
+ */
11
+ export type Reference<T = null> = {
12
+ /** Reference identifier */
13
+ id: string | null;
14
+ /** Literal reference, Relative, internal or absolute URL */
15
+ reference: string | null;
16
+ /** Type the reference refers to */
17
+ type: string | null;
18
+ /** Text alternative for the resource */
19
+ display: string | null;
20
+ /** Additional content extensions */
21
+ extension: (Extension | null)[] | null;
22
+ /** Identifiers for the reference */
23
+ identifier: Identifier | null;
24
+ /** The referenced resource (when resolved) */
25
+ resource: T | null;
26
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { ConnectionCategory, DataConnectionType } from "../enums/index.js";
2
+ /**
3
+ * Base connection interface containing common fields shared by all connection types.
4
+ * This interface provides the foundational properties that all connection models inherit.
5
+ *
6
+ * @category Models
7
+ * @title BaseConnection
8
+ * @excerpt Base connection interface containing common fields shared by...
9
+ */
10
+ export interface BaseConnection {
11
+ /**
12
+ * The unique identifier for the connection.
13
+ */
14
+ id: string;
15
+ /**
16
+ * The display name of the connection.
17
+ */
18
+ name: string;
19
+ /**
20
+ * The category of the connection (Basic or OAuth).
21
+ */
22
+ category: ConnectionCategory;
23
+ /**
24
+ * The type of data source connection.
25
+ */
26
+ type: DataConnectionType;
27
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { DataConnectionStatus } from "../enums/index.js";
2
+ /**
3
+ * Connection status result model.
4
+ * Represents the status of a connection operation (disconnect/delete).
5
+ *
6
+ * @category Models
7
+ * @title ConnectionStatus
8
+ * @excerpt Connection status result model
9
+ */
10
+ export interface ConnectionStatus {
11
+ /** Current status of the connection */
12
+ status: DataConnectionStatus | null;
13
+ /** Timestamp when the status was last updated */
14
+ statusUpdated: string;
15
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ import type { DataConnectionStatus, SyncStatus } from "../enums/index.js";
2
+ import type { BaseConnection } from "./base-connection.js";
3
+ /**
4
+ * Connection model representing a healthcare provider connection with full status information.
5
+ * Contains comprehensive information about connection state and synchronization status.
6
+ *
7
+ * @category Models
8
+ * @title Connection
9
+ * @excerpt Connection model representing a healthcare provider connection with...
10
+ */
11
+ export type Connection = BaseConnection & {
12
+ /**
13
+ * The current authentication status of the connection.
14
+ */
15
+ status: DataConnectionStatus | null;
16
+ /**
17
+ * The current synchronization status of the data pipeline.
18
+ */
19
+ syncStatus: SyncStatus | null;
20
+ /**
21
+ * The timestamp when the status was last updated.
22
+ */
23
+ statusUpdated: string | null;
24
+ /**
25
+ * The timestamp of the last successful data synchronization.
26
+ */
27
+ lastSynced: string | null;
28
+ /**
29
+ * The timestamp when the connection was created.
30
+ */
31
+ created: string;
32
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ import type { ConnectionCategory, DataConnectionType } from "../enums/index.js";
2
+ /**
3
+ * DataSource model representing information about a healthcare provider connection.
4
+ * Contains basic metadata about available data sources for connection.
5
+ *
6
+ * @category Models
7
+ * @title DataSource
8
+ * @excerpt DataSource model representing information about a healthcare provider...
9
+ */
10
+ export type DataSource = {
11
+ /**
12
+ * The unique identifier for the data source.
13
+ */
14
+ id: string;
15
+ /**
16
+ * The display name of the data source.
17
+ */
18
+ name: string;
19
+ /**
20
+ * The category of the connection (Basic or OAuth).
21
+ */
22
+ category: ConnectionCategory;
23
+ /**
24
+ * The type of data source connection.
25
+ */
26
+ type: DataConnectionType;
27
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export type { BaseConnection } from "./base-connection.js";
2
+ export type { Connection } from "./connection.js";
3
+ export type { ConnectionStatus } from "./connection-status.js";
4
+ export type { DataSource } from "./data-source.js";
5
+ export type { MemberConnection } from "./member-connection.js";
6
+ export type { OAuthUrl } from "./oauth-url.js";
@@ -0,0 +1 @@
1
+ export {};