@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1765408751 → 2.0.0-beta-rc.1765473969

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-beta-rc.1765408751";
4
+ export declare const VERSION = "2.0.0-beta-rc.1765473969";
@@ -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-beta-rc.1765408751";
4
+ export const VERSION = "2.0.0-beta-rc.1765473969";
@@ -1,5 +1,5 @@
1
1
  import { OrderByInput, SearchFiltersInput, SearchLocation, UserInput } from "../../../graphql/schema.js";
2
- import { SearchContext, SortField } from "../../../models/enums/index.js";
2
+ import { DataSet, SearchContext, SortField } from "../../../models/enums/index.js";
3
3
  import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
4
4
  import { FieldSortOrder } from "../index.js";
5
5
  /**
@@ -29,6 +29,17 @@ export type SearchPosition = {
29
29
  * @excerpt Sorting configuration for search results
30
30
  */
31
31
  export type OrderBy = FieldSortOrder<SortField>;
32
+ /**
33
+ * Client configuration to use for this call to filter data.
34
+ * @deprecated Internal bwell use only
35
+ * @category Inputs
36
+ * @title SearchHealthResourcesClientInput
37
+ * @excerpt Client configuration for searching health resources
38
+ */
39
+ export type SearchHealthResourcesClientInput = {
40
+ config?: string;
41
+ dataSets?: DataSet[];
42
+ };
32
43
  /**
33
44
  * Represents the parameters for a search request.
34
45
  * @experimental
@@ -37,6 +48,10 @@ export type OrderBy = FieldSortOrder<SortField>;
37
48
  * @excerpt Input parameters for searching health resources
38
49
  */
39
50
  export type SearchHealthResourcesRequestInput = PagedRequestInput & {
51
+ /**
52
+ * @deprecated Internal bwell use only
53
+ */
54
+ client?: SearchHealthResourcesClientInput[];
40
55
  /**
41
56
  * The filters to apply to the search.
42
57
  */
@@ -9,22 +9,22 @@ export class SearchHealthResourcesRequestFactory {
9
9
  * @returns An object containing the search input for the GraphQL query.
10
10
  */
11
11
  create(request) {
12
- var _a, _b, _c, _d, _e, _f, _g, _h;
12
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13
13
  const input = request.data();
14
14
  return {
15
15
  searchInput: {
16
16
  // Default search health resources client to NPPES and ConnectHub
17
- client: [{ dataSets: ["NPPES", "CONNECTHUB"] }],
18
- filters: (_a = input.filters) !== null && _a !== void 0 ? _a : null,
19
- orderBy: (_b = input.orderBy) !== null && _b !== void 0 ? _b : null,
17
+ client: (_a = input.client) !== null && _a !== void 0 ? _a : [{ dataSets: ["NPPES", "CONNECTHUB"] }],
18
+ filters: (_b = input.filters) !== null && _b !== void 0 ? _b : null,
19
+ orderBy: (_c = input.orderBy) !== null && _c !== void 0 ? _c : null,
20
20
  paging: {
21
- pageNumber: (_c = input.page) !== null && _c !== void 0 ? _c : null,
22
- pageSize: (_d = input.pageSize) !== null && _d !== void 0 ? _d : DEFAULT_PAGE_SIZE,
21
+ pageNumber: (_d = input.page) !== null && _d !== void 0 ? _d : null,
22
+ pageSize: (_e = input.pageSize) !== null && _e !== void 0 ? _e : DEFAULT_PAGE_SIZE,
23
23
  },
24
- search: (_e = input.search) !== null && _e !== void 0 ? _e : null,
25
- searchContext: (_f = input.searchContext) !== null && _f !== void 0 ? _f : null,
26
- searchLocation: (_g = input.searchLocation) !== null && _g !== void 0 ? _g : null,
27
- user: (_h = input.user) !== null && _h !== void 0 ? _h : null,
24
+ search: (_f = input.search) !== null && _f !== void 0 ? _f : null,
25
+ searchContext: (_g = input.searchContext) !== null && _g !== void 0 ? _g : null,
26
+ searchLocation: (_h = input.searchLocation) !== null && _h !== void 0 ? _h : null,
27
+ user: (_j = input.user) !== null && _j !== void 0 ? _j : null,
28
28
  },
29
29
  };
30
30
  }
@@ -1,5 +1,5 @@
1
1
  import { Endpoint } from "./endpoint.js";
2
- import { Address, CodeableConcept, ContactPoint, Identifier, Reference } from "./index.js";
2
+ import { Address, CodeableConcept, ContactPoint, Identifier, Meta, Reference } from "./index.js";
3
3
  /**
4
4
  * Represents a healthcare organization.
5
5
  *
@@ -16,6 +16,8 @@ export type Organization = {
16
16
  name: string | null;
17
17
  /** Organization endpoints */
18
18
  endpoint: (Reference<Endpoint> | null)[] | null;
19
+ /** Organization alias (equivalent to connection slug) */
20
+ alias: (string | null) | null;
19
21
  /** Organization address */
20
22
  address: (Address | null)[] | null;
21
23
  /** Contact information */
@@ -26,6 +28,8 @@ export type Organization = {
26
28
  id: string;
27
29
  /** The type of the organization */
28
30
  type: (CodeableConcept | null)[] | null;
31
+ /** Metadata about the resource */
32
+ meta: Meta | null;
29
33
  };
30
34
  /**
31
35
  * Represents a healthcare organization.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * DataSets enum representing the type of data source connection.
3
+ * Used to filter health resources searches.
4
+ *
5
+ * @deprecated Internal bwell use only
6
+ * @category Enums
7
+ * @title DataSets
8
+ * @excerpt DataSets enum representing the type of data source connection.
9
+ */
10
+ export type DataSet = "NPPES" | "CONNECTHUB";
@@ -0,0 +1 @@
1
+ export {};
@@ -15,3 +15,4 @@ export { SortField } from "./sort-field.js";
15
15
  export { SortOrder } from "./sort-order.js";
16
16
  export { EndpointStatus } from "./endpoint-status.js";
17
17
  export { DevicePlatform, devicePlatformValues } from "./device-platform.js";
18
+ export { DataSet } from "./data-set.js";
@@ -38,10 +38,27 @@ export type CareTeamParticipant = {
38
38
  /** Member reference and details. */
39
39
  member: Reference<CareTeamParticipantMember> | null;
40
40
  };
41
- type CareTeamParticipantMemberOrganization = {
41
+ /**
42
+ * Organization participant in a care team.
43
+ *
44
+ * Represents an organization that is a member of a care team, with the organization name provided as `organizationName`.
45
+ * Extends the Organization type, omitting the `name` property in favor of `organizationName`.
46
+ *
47
+ * @category Models
48
+ * @title CareTeamParticipantMemberOrganization
49
+ * @excerpt Organization participant in a care team.
50
+ */
51
+ export type CareTeamParticipantMemberOrganization = {
42
52
  organizationName: string;
43
53
  } & Omit<Organization, "name">;
44
- type CareTeamParticipantMember = CareTeamParticipantMemberOrganization | Practitioner | PractitionerRole | RelatedPerson;
54
+ /**
55
+ * Member of a care team participant.
56
+ *
57
+ * @category Models
58
+ * @title CareTeamParticipantMember
59
+ * @excerpt Member of a care team participant
60
+ */
61
+ export type CareTeamParticipantMember = CareTeamParticipantMemberOrganization | Practitioner | PractitionerRole | RelatedPerson;
45
62
  /**
46
63
  * Bundle containing care team search results.
47
64
  *
@@ -58,4 +75,3 @@ export type CareTeamBundle = EntryBundle<CareTeam>;
58
75
  * @excerpt Response for care team search results with paging info.
59
76
  */
60
77
  export type CareTeamResponse = HealthDataResponse<CareTeam>;
61
- export {};
@@ -19,7 +19,7 @@ export { ConditionBundle, Condition, ConditionResponse } from "./condition.js";
19
19
  export { ProcedureBundle, Procedure, ProcedureResponse } from "./procedure.js";
20
20
  export { VitalSignBundle, VitalSignResponse } from "./vital-sign-bundle.js";
21
21
  export { LabBundle, LabResponse } from "./lab-bundle.js";
22
- export { CareTeamBundle, CareTeam, CareTeamResponse } from "./care-team.js";
22
+ export { CareTeamBundle, CareTeam, CareTeamResponse, CareTeamParticipantMember, CareTeamParticipantMemberOrganization, } from "./care-team.js";
23
23
  export { EncounterBundle, Encounter, EncounterResponse } from "./encounter.js";
24
24
  export { MedicationDispenseBundle, MedicationDispense, MedicationDispenseResponse, } from "./medication-dispense.js";
25
25
  export { MedicationRequestBundle, MedicationRequest, MedicationRequestResponse, } from "./medication-request.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "2.0.0-beta-rc.1765408751",
3
+ "version": "2.0.0-beta-rc.1765473969",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",