@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
@@ -13,372 +13,4 @@
13
13
  *
14
14
  ********************************************************************************
15
15
  */
16
- export var AppointmentStatus;
17
- (function (AppointmentStatus) {
18
- AppointmentStatus["Arrived"] = "ARRIVED";
19
- AppointmentStatus["Booked"] = "BOOKED";
20
- AppointmentStatus["Cancelled"] = "CANCELLED";
21
- AppointmentStatus["CheckedIn"] = "CHECKED_IN";
22
- AppointmentStatus["EnteredInError"] = "ENTERED_IN_ERROR";
23
- AppointmentStatus["Fulfilled"] = "FULFILLED";
24
- AppointmentStatus["Noshow"] = "NOSHOW";
25
- AppointmentStatus["Pending"] = "PENDING";
26
- AppointmentStatus["Proposed"] = "PROPOSED";
27
- AppointmentStatus["Waitlist"] = "WAITLIST";
28
- })(AppointmentStatus || (AppointmentStatus = {}));
29
- /** Bootstrap variant options */
30
- export var BootstrapVariant;
31
- (function (BootstrapVariant) {
32
- BootstrapVariant["Guest"] = "GUEST";
33
- })(BootstrapVariant || (BootstrapVariant = {}));
34
- export var CategoryCode;
35
- (function (CategoryCode) {
36
- CategoryCode["CommunicationPreferencesPhi"] = "COMMUNICATION_PREFERENCES_PHI";
37
- CategoryCode["DataSharing"] = "DATA_SHARING";
38
- CategoryCode["HealthCircleAdolescent"] = "HEALTH_CIRCLE_ADOLESCENT";
39
- CategoryCode["HealthCircleMinor"] = "HEALTH_CIRCLE_MINOR";
40
- CategoryCode["HealthMatch"] = "HEALTH_MATCH";
41
- CategoryCode["IasImportRecords"] = "IAS_IMPORT_RECORDS";
42
- CategoryCode["MobileCommunicationPreferences"] = "MOBILE_COMMUNICATION_PREFERENCES";
43
- CategoryCode["PersonalizedHealthOffersAndAds"] = "PERSONALIZED_HEALTH_OFFERS_AND_ADS";
44
- CategoryCode["ProaAttestation"] = "PROA_ATTESTATION";
45
- CategoryCode["Tos"] = "TOS";
46
- })(CategoryCode || (CategoryCode = {}));
47
- export var ClientId;
48
- (function (ClientId) {
49
- ClientId["Bwell"] = "bwell";
50
- })(ClientId || (ClientId = {}));
51
- /**
52
- * ClientId enum
53
- * New version
54
- * Unused.
55
- */
56
- export var ClientIdEnum;
57
- (function (ClientIdEnum) {
58
- ClientIdEnum["Bwell"] = "BWELL";
59
- })(ClientIdEnum || (ClientIdEnum = {}));
60
- /** Defines the type of connection */
61
- export var ConnectionCategory;
62
- (function (ConnectionCategory) {
63
- ConnectionCategory["Basic"] = "BASIC";
64
- ConnectionCategory["Oauth"] = "OAUTH";
65
- })(ConnectionCategory || (ConnectionCategory = {}));
66
- export var ConsentProvisionType;
67
- (function (ConsentProvisionType) {
68
- ConsentProvisionType["Deny"] = "DENY";
69
- ConsentProvisionType["Permit"] = "PERMIT";
70
- })(ConsentProvisionType || (ConsentProvisionType = {}));
71
- export var ConsentStatus;
72
- (function (ConsentStatus) {
73
- ConsentStatus["Active"] = "ACTIVE";
74
- ConsentStatus["Draft"] = "DRAFT";
75
- ConsentStatus["EnteredInError"] = "ENTERED_IN_ERROR";
76
- ConsentStatus["Inactive"] = "INACTIVE";
77
- ConsentStatus["Proposed"] = "PROPOSED";
78
- ConsentStatus["Rejected"] = "REJECTED";
79
- })(ConsentStatus || (ConsentStatus = {}));
80
- /** Defines the connection statuses */
81
- export var DataConnectionStatus;
82
- (function (DataConnectionStatus) {
83
- DataConnectionStatus["Connected"] = "CONNECTED";
84
- DataConnectionStatus["Deleted"] = "DELETED";
85
- DataConnectionStatus["Disconnected"] = "DISCONNECTED";
86
- DataConnectionStatus["Error"] = "ERROR";
87
- DataConnectionStatus["Expired"] = "EXPIRED";
88
- })(DataConnectionStatus || (DataConnectionStatus = {}));
89
- /** Defines the source type of connection */
90
- export var DataConnectionType;
91
- (function (DataConnectionType) {
92
- DataConnectionType["Clinical"] = "CLINICAL";
93
- DataConnectionType["Insurance"] = "INSURANCE";
94
- DataConnectionType["Lab"] = "LAB";
95
- DataConnectionType["Pharmacy"] = "PHARMACY";
96
- DataConnectionType["Practitioner"] = "PRACTITIONER";
97
- })(DataConnectionType || (DataConnectionType = {}));
98
- export var DataSets;
99
- (function (DataSets) {
100
- DataSets["Connecthub"] = "connecthub";
101
- DataSets["Nppes"] = "nppes";
102
- })(DataSets || (DataSets = {}));
103
- /**
104
- * DataSets enum
105
- * New version
106
- */
107
- export var DataSetsEnum;
108
- (function (DataSetsEnum) {
109
- DataSetsEnum["Connecthub"] = "CONNECTHUB";
110
- DataSetsEnum["Nppes"] = "NPPES";
111
- })(DataSetsEnum || (DataSetsEnum = {}));
112
- export var EmpiType;
113
- (function (EmpiType) {
114
- EmpiType["BwellPatient"] = "BWELL_PATIENT";
115
- EmpiType["BwellPerson"] = "BWELL_PERSON";
116
- EmpiType["ClientPatient"] = "CLIENT_PATIENT";
117
- EmpiType["ClientPerson"] = "CLIENT_PERSON";
118
- })(EmpiType || (EmpiType = {}));
119
- export var EndpointStatus;
120
- (function (EndpointStatus) {
121
- EndpointStatus["Active"] = "active";
122
- EndpointStatus["EnteredInError"] = "entered_in_error";
123
- EndpointStatus["Error"] = "error";
124
- EndpointStatus["Off"] = "off";
125
- EndpointStatus["Suspended"] = "suspended";
126
- EndpointStatus["Test"] = "test";
127
- })(EndpointStatus || (EndpointStatus = {}));
128
- /**
129
- * EndpointStatus enum
130
- * New version
131
- */
132
- export var EndpointStatusEnum;
133
- (function (EndpointStatusEnum) {
134
- EndpointStatusEnum["Active"] = "ACTIVE";
135
- EndpointStatusEnum["EnteredInError"] = "ENTERED_IN_ERROR";
136
- EndpointStatusEnum["Error"] = "ERROR";
137
- EndpointStatusEnum["Off"] = "OFF";
138
- EndpointStatusEnum["Suspended"] = "SUSPENDED";
139
- EndpointStatusEnum["Test"] = "TEST";
140
- })(EndpointStatusEnum || (EndpointStatusEnum = {}));
141
- export var FhirPersonGender;
142
- (function (FhirPersonGender) {
143
- FhirPersonGender["Female"] = "female";
144
- FhirPersonGender["Male"] = "male";
145
- FhirPersonGender["Other"] = "other";
146
- FhirPersonGender["Unknown"] = "unknown";
147
- })(FhirPersonGender || (FhirPersonGender = {}));
148
- export var FhirPersonResourceType;
149
- (function (FhirPersonResourceType) {
150
- FhirPersonResourceType["Person"] = "Person";
151
- })(FhirPersonResourceType || (FhirPersonResourceType = {}));
152
- export var FilterField;
153
- (function (FilterField) {
154
- FilterField["Characteristic"] = "characteristic";
155
- FilterField["Communication"] = "communication";
156
- FilterField["Gender"] = "gender";
157
- FilterField["Specialty"] = "specialty";
158
- })(FilterField || (FilterField = {}));
159
- /**
160
- * FilterField enum
161
- * New version
162
- */
163
- export var FilterFieldEnum;
164
- (function (FilterFieldEnum) {
165
- FilterFieldEnum["Characteristic"] = "CHARACTERISTIC";
166
- FilterFieldEnum["Communication"] = "COMMUNICATION";
167
- FilterFieldEnum["Gender"] = "GENDER";
168
- FilterFieldEnum["Specialty"] = "SPECIALTY";
169
- })(FilterFieldEnum || (FilterFieldEnum = {}));
170
- export var Gender;
171
- (function (Gender) {
172
- Gender["Female"] = "female";
173
- /** Follows https://www.hl7.org/fhir/valueset-administrative-gender.html */
174
- Gender["Male"] = "male";
175
- Gender["Other"] = "other";
176
- Gender["Unknown"] = "unknown";
177
- })(Gender || (Gender = {}));
178
- /**
179
- * Gender enum
180
- * New version
181
- *
182
- * Follows https://www.hl7.org/fhir/valueset-admin
183
- */
184
- export var GenderEnum;
185
- (function (GenderEnum) {
186
- GenderEnum["Female"] = "FEMALE";
187
- GenderEnum["Male"] = "MALE";
188
- GenderEnum["Other"] = "OTHER";
189
- GenderEnum["Unknown"] = "UNKNOWN";
190
- })(GenderEnum || (GenderEnum = {}));
191
- export var HealthSummaryCategory;
192
- (function (HealthSummaryCategory) {
193
- HealthSummaryCategory["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
194
- HealthSummaryCategory["CarePlan"] = "CARE_PLAN";
195
- HealthSummaryCategory["Condition"] = "CONDITION";
196
- HealthSummaryCategory["Encounter"] = "ENCOUNTER";
197
- HealthSummaryCategory["Immunization"] = "IMMUNIZATION";
198
- HealthSummaryCategory["Labs"] = "LABS";
199
- HealthSummaryCategory["Medications"] = "MEDICATIONS";
200
- HealthSummaryCategory["Procedure"] = "PROCEDURE";
201
- HealthSummaryCategory["VitalSigns"] = "VITAL_SIGNS";
202
- })(HealthSummaryCategory || (HealthSummaryCategory = {}));
203
- export var IdentifierUseKind;
204
- (function (IdentifierUseKind) {
205
- IdentifierUseKind["Official"] = "_official";
206
- IdentifierUseKind["Old"] = "_old";
207
- IdentifierUseKind["Secondary"] = "_secondary";
208
- IdentifierUseKind["Temp"] = "_temp";
209
- IdentifierUseKind["Usual"] = "_usual";
210
- })(IdentifierUseKind || (IdentifierUseKind = {}));
211
- export var InteractionType;
212
- (function (InteractionType) {
213
- InteractionType["Clicked"] = "clicked";
214
- })(InteractionType || (InteractionType = {}));
215
- /**
216
- * InteractionType enum
217
- * New version
218
- */
219
- export var InteractionTypeEnum;
220
- (function (InteractionTypeEnum) {
221
- InteractionTypeEnum["Clicked"] = "CLICKED";
222
- })(InteractionTypeEnum || (InteractionTypeEnum = {}));
223
- export var LogLevel;
224
- (function (LogLevel) {
225
- LogLevel["Debug"] = "DEBUG";
226
- LogLevel["Error"] = "ERROR";
227
- LogLevel["Info"] = "INFO";
228
- LogLevel["Verbose"] = "VERBOSE";
229
- LogLevel["Warn"] = "WARN";
230
- })(LogLevel || (LogLevel = {}));
231
- export var Operation;
232
- (function (Operation) {
233
- Operation["CancelDelete"] = "CANCEL_DELETE";
234
- Operation["ConfirmDelete"] = "CONFIRM_DELETE";
235
- Operation["DeletionInProgress"] = "DELETION_IN_PROGRESS";
236
- Operation["ImmediateExecution"] = "IMMEDIATE_EXECUTION";
237
- Operation["RequestDelete"] = "REQUEST_DELETE";
238
- })(Operation || (Operation = {}));
239
- export var OrganizationType;
240
- (function (OrganizationType) {
241
- OrganizationType["C19Vaccine"] = "C19Vaccine";
242
- OrganizationType["Device"] = "Device";
243
- OrganizationType["Insurance"] = "Insurance";
244
- OrganizationType["Laboratory"] = "Laboratory";
245
- OrganizationType["Pharmacy"] = "Pharmacy";
246
- OrganizationType["Provider"] = "Provider";
247
- OrganizationType["Bus"] = "bus";
248
- OrganizationType["Cg"] = "cg";
249
- OrganizationType["Crs"] = "crs";
250
- OrganizationType["Dept"] = "dept";
251
- OrganizationType["Edu"] = "edu";
252
- OrganizationType["Govt"] = "govt";
253
- OrganizationType["Ins"] = "ins";
254
- OrganizationType["Other"] = "other";
255
- OrganizationType["Pay"] = "pay";
256
- OrganizationType["Prov"] = "prov";
257
- OrganizationType["Reli"] = "reli";
258
- OrganizationType["Team"] = "team";
259
- })(OrganizationType || (OrganizationType = {}));
260
- /**
261
- * OrganizationType enum
262
- * New version
263
- */
264
- export var OrganizationTypeEnum;
265
- (function (OrganizationTypeEnum) {
266
- OrganizationTypeEnum["Bus"] = "BUS";
267
- OrganizationTypeEnum["C19Vaccine"] = "C19VACCINE";
268
- OrganizationTypeEnum["Cg"] = "CG";
269
- OrganizationTypeEnum["Crs"] = "CRS";
270
- OrganizationTypeEnum["Dept"] = "DEPT";
271
- OrganizationTypeEnum["Device"] = "DEVICE";
272
- OrganizationTypeEnum["Edu"] = "EDU";
273
- OrganizationTypeEnum["Govt"] = "GOVT";
274
- OrganizationTypeEnum["Ins"] = "INS";
275
- OrganizationTypeEnum["Insurance"] = "INSURANCE";
276
- OrganizationTypeEnum["Laboratory"] = "LABORATORY";
277
- OrganizationTypeEnum["Other"] = "OTHER";
278
- OrganizationTypeEnum["Pay"] = "PAY";
279
- OrganizationTypeEnum["Pharmacy"] = "PHARMACY";
280
- OrganizationTypeEnum["Prov"] = "PROV";
281
- OrganizationTypeEnum["Provider"] = "PROVIDER";
282
- OrganizationTypeEnum["Reli"] = "RELI";
283
- OrganizationTypeEnum["Team"] = "TEAM";
284
- })(OrganizationTypeEnum || (OrganizationTypeEnum = {}));
285
- export var PatchOperationType;
286
- (function (PatchOperationType) {
287
- PatchOperationType["Add"] = "add";
288
- PatchOperationType["Copy"] = "copy";
289
- PatchOperationType["Move"] = "move";
290
- PatchOperationType["Remove"] = "remove";
291
- PatchOperationType["Replace"] = "replace";
292
- PatchOperationType["Test"] = "test";
293
- })(PatchOperationType || (PatchOperationType = {}));
294
- export var PersonPatientResourceType;
295
- (function (PersonPatientResourceType) {
296
- PersonPatientResourceType["Patient"] = "Patient";
297
- PersonPatientResourceType["Person"] = "Person";
298
- })(PersonPatientResourceType || (PersonPatientResourceType = {}));
299
- export var ProviderType;
300
- (function (ProviderType) {
301
- ProviderType["Practice"] = "practice";
302
- ProviderType["Practitioner"] = "practitioner";
303
- })(ProviderType || (ProviderType = {}));
304
- /**
305
- * Provider Type enum
306
- * New version
307
- */
308
- export var ProviderTypeEnum;
309
- (function (ProviderTypeEnum) {
310
- ProviderTypeEnum["Practice"] = "PRACTICE";
311
- ProviderTypeEnum["Practitioner"] = "PRACTITIONER";
312
- })(ProviderTypeEnum || (ProviderTypeEnum = {}));
313
- export var Questionnaire_Enum_Schema;
314
- (function (Questionnaire_Enum_Schema) {
315
- Questionnaire_Enum_Schema["QuestionnaireResponse"] = "QuestionnaireResponse";
316
- })(Questionnaire_Enum_Schema || (Questionnaire_Enum_Schema = {}));
317
- export var SearchResultTypeEnum;
318
- (function (SearchResultTypeEnum) {
319
- SearchResultTypeEnum["Insurance"] = "INSURANCE";
320
- SearchResultTypeEnum["Laboratory"] = "LABORATORY";
321
- SearchResultTypeEnum["Pharmacy"] = "PHARMACY";
322
- SearchResultTypeEnum["Practice"] = "PRACTICE";
323
- SearchResultTypeEnum["Practitioner"] = "PRACTITIONER";
324
- })(SearchResultTypeEnum || (SearchResultTypeEnum = {}));
325
- export var SortField;
326
- (function (SortField) {
327
- SortField["Content"] = "content";
328
- SortField["Distance"] = "distance";
329
- SortField["Relevance"] = "relevance";
330
- })(SortField || (SortField = {}));
331
- /**
332
- * SortField enum
333
- * New version
334
- */
335
- export var SortFieldEnum;
336
- (function (SortFieldEnum) {
337
- SortFieldEnum["Content"] = "CONTENT";
338
- SortFieldEnum["DataSourceRank"] = "DATA_SOURCE_RANK";
339
- SortFieldEnum["Distance"] = "DISTANCE";
340
- SortFieldEnum["Relevance"] = "RELEVANCE";
341
- })(SortFieldEnum || (SortFieldEnum = {}));
342
- export var SortOrder;
343
- (function (SortOrder) {
344
- SortOrder["Asc"] = "asc";
345
- SortOrder["Desc"] = "desc";
346
- })(SortOrder || (SortOrder = {}));
347
- /**
348
- * SortOrder enum
349
- * New version
350
- */
351
- export var SortOrderEnum;
352
- (function (SortOrderEnum) {
353
- SortOrderEnum["Asc"] = "ASC";
354
- SortOrderEnum["Desc"] = "DESC";
355
- })(SortOrderEnum || (SortOrderEnum = {}));
356
- /** Query Source enum */
357
- export var SourceEnum;
358
- (function (SourceEnum) {
359
- SourceEnum["CareSearch"] = "CARE_SEARCH";
360
- SourceEnum["Proa"] = "PROA";
361
- SourceEnum["ProviderDetails"] = "PROVIDER_DETAILS";
362
- SourceEnum["Sayt"] = "SAYT";
363
- SourceEnum["Unspecified"] = "UNSPECIFIED";
364
- })(SourceEnum || (SourceEnum = {}));
365
- /** Defines the data sync statuses */
366
- export var SyncStatus;
367
- (function (SyncStatus) {
368
- SyncStatus["Error"] = "ERROR";
369
- SyncStatus["Pending"] = "PENDING";
370
- SyncStatus["Retrieved"] = "RETRIEVED";
371
- SyncStatus["Retrieving"] = "RETRIEVING";
372
- })(SyncStatus || (SyncStatus = {}));
373
- export var TotalType;
374
- (function (TotalType) {
375
- TotalType["Accurate"] = "accurate";
376
- TotalType["Estimate"] = "estimate";
377
- })(TotalType || (TotalType = {}));
378
- export var Link__Purpose;
379
- (function (Link__Purpose) {
380
- /** `EXECUTION` features provide metadata necessary for operation execution. */
381
- Link__Purpose["Execution"] = "EXECUTION";
382
- /** `SECURITY` features provide metadata necessary to securely resolve fields. */
383
- Link__Purpose["Security"] = "SECURITY";
384
- })(Link__Purpose || (Link__Purpose = {}));
16
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- export * from "./api/index.js";
2
- export * from "./errors/index.js";
3
- export * from "./requests/index.js";
4
- export { LogLevel, BWellConfig } from "./config/index.js";
5
- export { BWellSDK, AuthTokens } from "./bwell-sdk/bwell-sdk.js";
1
+ export { BWellSDK } from "./bwell-sdk/bwell-sdk.js";
2
+ export { BWellConfig } from "./config/index.js";
6
3
  export { TokenStorage, InMemoryTokenStorage } from "./tokens/token-storage.js";
7
4
  export { BWellQueryResult } from "./results/bwell-query-result.js";
8
5
  export { BWellTransactionResult, BWellTransactionFailure, BWellTransactionSuccess, } from "./results/bwell-transaction-result.js";
6
+ export * from "./api/index.js";
7
+ export * from "./errors/index.js";
8
+ export * from "./requests/index.js";
9
+ export * from "./language/index.js";
10
+ export * from "./models/index.js";
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
- export * from "./api/index.js";
2
- export * from "./errors/index.js";
3
- export * from "./requests/index.js";
4
- export { LogLevel } from "./config/index.js";
5
1
  export { BWellSDK } from "./bwell-sdk/bwell-sdk.js";
6
2
  export { InMemoryTokenStorage } from "./tokens/token-storage.js";
7
3
  export { BWellQueryResult } from "./results/bwell-query-result.js";
8
4
  export { BWellTransactionResult, BWellTransactionFailure, BWellTransactionSuccess, } from "./results/bwell-transaction-result.js";
5
+ export * from "./api/index.js";
6
+ export * from "./errors/index.js";
7
+ export * from "./requests/index.js";
8
+ export * from "./language/index.js";
9
+ export * from "./models/index.js";
@@ -1,25 +1,40 @@
1
1
  import type { GraphQLClient } from "graphql-request";
2
+ /**
3
+ * @private
4
+ */
2
5
  export type Language = "en" | "es";
3
6
  /**
4
- * The LanguageManager provides method for switching the language on the `accept-language`
7
+ * Language Manager for language and localization utilities.
8
+ * Provides methods for managing language settings and internationalization.
9
+ * @title LanguageManager
10
+ * @excerpt Language Manager for language and localization utilities
11
+ * @category Managers
5
12
  */
6
13
  export interface LanguageManager {
7
14
  /**
8
- * Apply the passed in language into the `accept-language` header.
9
- * @param {Language} language - language to be passed into the `accept-language` header.
10
- *
11
- * Supported values:
12
- * - **"en"**: English [accept-language: 'en'].
13
- * - **"es"**: Spanish. [accept-language: 'es']
15
+ * Sets the language for API requests.
16
+ * Updates the accept-language header for localized responses.
17
+ * @example
18
+ * ```typescript
19
+ * sdk.language.setLanguage('es'); // Set to Spanish
20
+ * ```
14
21
  */
15
22
  setLanguage(language: Language): void;
16
23
  /**
17
- * Retrieves the currently configured language from the `accept-language` header.
18
- *
19
- * @returns {string | null} The currently set language code or `null` if no language is set.
24
+ * Retrieves the currently configured language.
25
+ * Gets the language code from the accept-language header.
26
+ * @example
27
+ * ```typescript
28
+ * const currentLanguage = sdk.language.getLanguage();
29
+ * ```
20
30
  */
21
31
  getLanguage(): string | null;
22
32
  }
33
+ /**
34
+ * @private
35
+ * Internal implementation of the Language Manager.
36
+ * This class should not be used directly by consumers.
37
+ */
23
38
  export declare class BwellSdkLanguageManager implements LanguageManager {
24
39
  #private;
25
40
  constructor(graphqlClient: GraphQLClient);
@@ -11,6 +11,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
11
11
  };
12
12
  var _BwellSdkLanguageManager_graphQlClient;
13
13
  const ACCEPT_LANGUAGE_HEADER = "accept-language";
14
+ /**
15
+ * @private
16
+ * Internal implementation of the Language Manager.
17
+ * This class should not be used directly by consumers.
18
+ */
14
19
  export class BwellSdkLanguageManager {
15
20
  constructor(graphqlClient) {
16
21
  _BwellSdkLanguageManager_graphQlClient.set(this, void 0);
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Address model representing an address expressed using postal conventions
3
+ * (as opposed to GPS or other location definition formats).
4
+ *
5
+ * @category Models
6
+ * @title Address
7
+ * @excerpt Address model representing an address expressed using postal...
8
+ */
9
+ export interface Address {
10
+ /** Address use (home, work, etc.) */
11
+ use: string | null;
12
+ /** Address type */
13
+ type: string | null;
14
+ /** Full address as text */
15
+ text: string | null;
16
+ /**
17
+ * This component contains the house number, apartment number, street name,
18
+ * street direction, P.O. Box number, delivery hints, and similar address
19
+ * information.
20
+ */
21
+ line: (string | null)[] | null;
22
+ /**
23
+ * The name of the city, town, suburb, village or other community or delivery
24
+ * center.
25
+ */
26
+ city: string | null;
27
+ /** District/county */
28
+ district: string | null;
29
+ /**
30
+ * Sub-unit of a country with limited sovereignty in a federally organized
31
+ * country. A code may be used if codes are in common use (e.g. US 2 letter state
32
+ * codes).
33
+ */
34
+ state: string | null;
35
+ /**
36
+ * A postal code designating a region defined by the postal service.
37
+ */
38
+ postalCode: string | null;
39
+ /** Country */
40
+ country: string | null;
41
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Represents an annotation or note with author and time information.
3
+ * Used in FHIR resources to add notes and comments.
4
+ *
5
+ * @category Models
6
+ * @title Annotation
7
+ * @excerpt Represents an annotation or note with author and...
8
+ */
9
+ export type Annotation = {
10
+ /** Unique identifier for the annotation */
11
+ id: string | null;
12
+ /** Author of the annotation as string */
13
+ authorString: string | null;
14
+ /** When the annotation was made */
15
+ time: string | null;
16
+ /** The annotation text */
17
+ text: string | null;
18
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Represents a file attachment or binary data.
3
+ * Used for documents, images, or other file content.
4
+ *
5
+ * @category Models
6
+ * @title Attachment
7
+ * @excerpt Represents a file attachment or binary data
8
+ */
9
+ export type Attachment = {
10
+ /** MIME type of the attachment */
11
+ contentType: string | null;
12
+ /** The actual data content */
13
+ data: string | null;
14
+ /** URL where the data can be found */
15
+ url: string | null;
16
+ /** Label to display in place of the data */
17
+ title: string | null;
18
+ };
@@ -0,0 +1,59 @@
1
+ import type { PagingInfo } from "./paging-info.js";
2
+ /**
3
+ * Generic bundle type for resources with paging information.
4
+ * Used for paginated results from GraphQL queries.
5
+ *
6
+ * @typeParam T The type of resource contained in the bundle
7
+ * @category Models
8
+ * @title ResourceBundle
9
+ * @excerpt Generic bundle type for resources with paging information
10
+ */
11
+ export type ResourceBundle<T> = {
12
+ /** Resource array */
13
+ resources: T[];
14
+ /** Paging information */
15
+ paging_info: PagingInfo | null;
16
+ };
17
+ /**
18
+ * Generic simple bundle type for entry-based bundles.
19
+ * Used for search result bundles that contain entries.
20
+ *
21
+ * @typeParam T The type of entry contained in the bundle
22
+ * @category Models
23
+ * @title EntryBundle
24
+ * @excerpt Generic simple bundle type for entry-based bundles
25
+ */
26
+ export type EntryBundle<T> = {
27
+ /** Unique identifier */
28
+ id: string | null;
29
+ /** Entry array */
30
+ entry: (T | null)[] | null;
31
+ };
32
+ /**
33
+ * Generic entry wrapper type for bundle entries.
34
+ * Used to wrap resources within bundle entries.
35
+ *
36
+ * @typeParam T The type of resource being wrapped
37
+ * @category Models
38
+ * @title ResourceEntry
39
+ * @excerpt Generic entry wrapper type for bundle entries
40
+ */
41
+ export type ResourceEntry<T> = {
42
+ /** The wrapped resource */
43
+ resource: T | null;
44
+ };
45
+ /**
46
+ * Generic entry wrapper type for bundle entries with identifiers.
47
+ * Used to wrap resources within bundle entries that need tracking IDs.
48
+ *
49
+ * @typeParam T The type of resource being wrapped
50
+ * @category Models
51
+ * @title IdentifiedResourceEntry
52
+ * @excerpt Generic entry wrapper type for bundle entries with...
53
+ */
54
+ export type IdentifiedResourceEntry<T> = {
55
+ /** Entry identifier */
56
+ id: string | null;
57
+ /** The wrapped resource */
58
+ resource: T | null;
59
+ };
@@ -0,0 +1,17 @@
1
+ import type { Coding } from "./coding.js";
2
+ /**
3
+ * Represents a CodeableConcept with text and coded values.
4
+ * Used to represent concepts that can be coded in multiple systems.
5
+ *
6
+ * @category Models
7
+ * @title CodeableConcept
8
+ * @excerpt Represents a CodeableConcept with text and coded values
9
+ */
10
+ export type CodeableConcept = {
11
+ /** Code identifier */
12
+ id: string | null;
13
+ /** Plain text representation */
14
+ text: string | null;
15
+ /** Coded representation */
16
+ coding: (Coding | null)[] | null;
17
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Represents a coding in FHIR/GraphQL-compatible format.
3
+ * Used within CodeableConcepts for coded concepts.
4
+ *
5
+ * @category Models
6
+ * @title Coding
7
+ * @excerpt Represents a coding in FHIR/GraphQL-compatible format
8
+ */
9
+ export type Coding = {
10
+ /** Coding identifier */
11
+ id: string | null;
12
+ /** Code system URI */
13
+ system: string | null;
14
+ /** Display name */
15
+ display: string | null;
16
+ /** Code value */
17
+ code: string | null;
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { CodeableConcept } from "./codeable-concept.js";
2
+ import type { Extension } from "./extension.js";
3
+ import type { ReferenceRange } from "./reference-range.js";
4
+ /**
5
+ * Represents a component with code, value, reference range, interpretation, and data absent reason.
6
+ * Used in vital sign groups and other health data structures.
7
+ *
8
+ * @category Models
9
+ * @title Component
10
+ * @excerpt Represents a component with code, value, reference range,...
11
+ */
12
+ export type Component = {
13
+ /** Code identifying the component */
14
+ code: CodeableConcept;
15
+ /** Value of the component */
16
+ value: Extension;
17
+ /** Reference range for the component */
18
+ referenceRange: ReferenceRange[];
19
+ /** Interpretation of the component value */
20
+ interpretation: CodeableConcept[];
21
+ /** Reason why data is absent */
22
+ dataAbsentReason: CodeableConcept;
23
+ };