@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1758310056 → 2.0.0-alpha.0-rc.1758311895

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.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export declare const VERSION = "2.0.0-alpha.0-rc.1758310056";
4
+ export declare const VERSION = "2.0.0-alpha.0-rc.1758311895";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export const VERSION = "2.0.0-alpha.0-rc.1758310056";
4
+ export const VERSION = "2.0.0-alpha.0-rc.1758311895";
@@ -1,4 +1,4 @@
1
- import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportLabGroupBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabGroupBundle, MedicationGroupBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
1
+ import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, CareTeamBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportLabGroupBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabGroupBundle, MedicationGroupBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
2
2
  import type { BWellQueryResult } from "../../../results/index.js";
3
3
  import type { BaseManagerError } from "../errors.js";
4
4
  import type { AllergyIntoleranceGroupsRequest, CarePlanGroupsRequest, ConditionGroupsRequest, DiagnosticReportLabGroupsRequest, EncounterGroupsRequest, HealthDataRequest, ImmunizationGroupsRequest, LabGroupsRequest, MedicationGroupsRequest, ProcedureGroupsRequest, VitalSignGroupsRequest } from "./health-data-request.js";
@@ -235,4 +235,17 @@ export interface HealthManager {
235
235
  * ```
236
236
  */
237
237
  getDiagnosticReportLabGroups(request: DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<DiagnosticReportLabGroupBundle, BaseManagerError>>;
238
+ /**
239
+ * Retrieves a list of care team resources.
240
+ *
241
+ * @param {HealthDataRequest} request An optional request class for specifying the search criteria.
242
+ *
243
+ * @returns {Promise<BWellQueryResult<CareTeamBundle>>} A promise resolving to an object representing the list of care teams.
244
+ *
245
+ * @example
246
+ * ```typescript
247
+ * const careTeams = await sdk.health.getCareTeams();
248
+ * ```
249
+ */
250
+ getCareTeams(request?: HealthDataRequest): Promise<BWellQueryResult<CareTeamBundle, BaseManagerError>>;
238
251
  }
@@ -1,6 +1,6 @@
1
1
  import { ValidationError } from "../../../errors/index.js";
2
2
  import { LoggerProvider } from "../../../logger/index.js";
3
- import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportLabGroupBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabGroupBundle, MedicationGroupBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
3
+ import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, CareTeamBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportLabGroupBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabGroupBundle, MedicationGroupBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
4
4
  import { BWellQueryResult } from "../../../results/index.js";
5
5
  import { BaseManagerError } from "../../base/errors.js";
6
6
  import * as health from "../../base/health-data/index.js";
@@ -27,4 +27,5 @@ export declare class GraphQLHealthManager extends GraphQLManager implements Heal
27
27
  getVitalSignGroups(request?: health.VitalSignGroupsRequest): Promise<BWellQueryResult<VitalSignGroupBundle, ValidationError | BaseManagerError>>;
28
28
  getMedicationGroups(request?: health.MedicationGroupsRequest): Promise<BWellQueryResult<MedicationGroupBundle, ValidationError | BaseManagerError>>;
29
29
  getDiagnosticReportLabGroups(request?: health.DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<DiagnosticReportLabGroupBundle, ValidationError | BaseManagerError>>;
30
+ getCareTeams(request?: health.HealthDataRequest): Promise<BWellQueryResult<CareTeamBundle, BaseManagerError>>;
30
31
  }
@@ -347,5 +347,25 @@ export class GraphQLHealthManager extends GraphQLManager {
347
347
  return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getDiagnosticReportLabGroups, result.error);
348
348
  });
349
349
  }
350
+ getCareTeams(request) {
351
+ return __awaiter(this, void 0, void 0, function* () {
352
+ var _a;
353
+ const validationResult = this.validateRequest(request);
354
+ if (validationResult.failure()) {
355
+ return validationResult.toQueryResult();
356
+ }
357
+ let gqlRequest = undefined;
358
+ if (request !== undefined) {
359
+ gqlRequest = __classPrivateFieldGet(this, _GraphQLHealthManager_healthDataRequestFactory, "f").create(request);
360
+ }
361
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getCareTeams ...");
362
+ const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getCareTeams(gqlRequest));
363
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getCareTeams complete");
364
+ if (result.hasError()) {
365
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getCareTeams error", result.error);
366
+ }
367
+ return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.careTeams, result.error);
368
+ });
369
+ }
350
370
  }
351
371
  _GraphQLHealthManager_sdk = new WeakMap(), _GraphQLHealthManager_logger = new WeakMap(), _GraphQLHealthManager_healthDataRequestFactory = new WeakMap();