@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1765469184 → 2.0.0-beta-rc.1765486931

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.1765469184";
4
+ export declare const VERSION = "2.0.0-beta-rc.1765486931";
@@ -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.1765469184";
4
+ export const VERSION = "2.0.0-beta-rc.1765486931";
@@ -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
  }
@@ -21479,6 +21479,17 @@ export type Distance = {
21479
21479
  */
21480
21480
  value?: Maybe<Scalars['Float']['output']>;
21481
21481
  };
21482
+ /**
21483
+ * Distance Unit enum
21484
+ * Defines the units of measurement for distance calculations
21485
+ */
21486
+ export type DistanceUnitEnum =
21487
+ /** Distance measured in kilometers */
21488
+ 'KILOMETERS'
21489
+ /** Distance measured in meters */
21490
+ | 'METERS'
21491
+ /** Distance measured in miles */
21492
+ | 'MILES';
21482
21493
  /**
21483
21494
  * DocumentManifest
21484
21495
  * A collection of documents compiled for a purpose together with metadata that
@@ -48151,6 +48162,12 @@ export type Patient = DomainResource & Resource & {
48151
48162
  text?: Maybe<Narrative>;
48152
48163
  visionPrescriptions?: Maybe<Array<Maybe<VisionPrescription>>>;
48153
48164
  };
48165
+ /** PatientAcceptance enum */
48166
+ export type PatientAcceptanceEnum =
48167
+ /** Providers accepting existing patients only */
48168
+ 'EXISTING_PATIENTS'
48169
+ /** Providers accepting new patients */
48170
+ | 'NEW_PATIENTS';
48154
48171
  export type PatientBundle = {
48155
48172
  __typename?: 'PatientBundle';
48156
48173
  entry?: Maybe<Array<Maybe<PatientBundleEntry>>>;
@@ -59088,10 +59105,14 @@ export type SearchFiltersInput = {
59088
59105
  gender?: InputMaybe<GenderEnum>;
59089
59106
  /** Return only search results with one of these IDs or NPIs */
59090
59107
  id?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
59091
- /** Return only search results that are maked 'active' */
59108
+ /** When true, includes inactive providers (default false) */
59092
59109
  includeInactive?: InputMaybe<Scalars['Boolean']['input']>;
59093
59110
  /** Return only results that have PROA connections */
59094
59111
  includePopulatedProaOnly?: InputMaybe<Scalars['Boolean']['input']>;
59112
+ /** Return only providers who accept this type of patient (new, existing, or both) */
59113
+ patientAcceptance?: InputMaybe<Array<InputMaybe<PatientAcceptanceEnum>>>;
59114
+ /** Return only providers who have any one of given specialties */
59115
+ specialty?: InputMaybe<Array<InputMaybe<InputCoding>>>;
59095
59116
  /** Return only these search result types */
59096
59117
  type?: InputMaybe<Array<InputMaybe<SearchResultTypeEnum>>>;
59097
59118
  };
@@ -59119,10 +59140,20 @@ export type SearchHealthResourcesResults = {
59119
59140
  pagingInfo?: Maybe<PagingInfoType>;
59120
59141
  results?: Maybe<Array<Maybe<HealthResourceSearchResult>>>;
59121
59142
  };
59143
+ /** Geographic center point for location-based search */
59122
59144
  export type SearchLocation = {
59123
- /** Location of the user making the request */
59145
+ /** Latitude of the search center */
59124
59146
  lat: Scalars['Float']['input'];
59147
+ /** Longitude of the search center */
59125
59148
  lon: Scalars['Float']['input'];
59149
+ /** Maximum distance radius for location-based filtering */
59150
+ radius?: InputMaybe<Scalars['Float']['input']>;
59151
+ /** Unit of measurement for the radius */
59152
+ radiusUnit?: InputMaybe<DistanceUnitEnum>;
59153
+ /**
59154
+ * Prioritizes local health systems around given zipCode.
59155
+ * NOTE: Inputs `type` must be `[PRACTICE]` and `orderBy` must be `[DATA_SOURCE_RANK]`
59156
+ */
59126
59157
  zipCode?: InputMaybe<Scalars['String']['input']>;
59127
59158
  };
59128
59159
  export type SearchNumber = {
@@ -60234,7 +60265,19 @@ export type SortField = 'content' | 'distance' | 'relevance';
60234
60265
  * SortField enum
60235
60266
  * New version
60236
60267
  */
60237
- export type SortFieldEnum = 'CONTENT' | 'DATA_SOURCE_RANK' | 'DISTANCE' | 'RELEVANCE';
60268
+ export type SortFieldEnum =
60269
+ /** Sort by name of the health resource */
60270
+ 'CONTENT'
60271
+ /** Sort by data source ranking */
60272
+ | 'DATA_SOURCE_RANK'
60273
+ /** Sort by distance from search location */
60274
+ | 'DISTANCE'
60275
+ /** Sort by next available appointment of the provider/practice */
60276
+ | 'NEXT_AVAILABLE'
60277
+ /** Sort to get providers/practices that support online booking first/last */
60278
+ | 'ONLINE_BOOKING_AVAILABLE'
60279
+ /** Sort by relevance to search terms */
60280
+ | 'RELEVANCE';
60238
60281
  export type SortOrder = 'asc' | 'desc';
60239
60282
  /**
60240
60283
  * SortOrder enum
@@ -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.1765469184",
3
+ "version": "2.0.0-beta-rc.1765486931",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",