@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1762452647 → 2.0.0-beta-rc.1763407013

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.1762452647";
4
+ export declare const VERSION = "2.0.0-beta-rc.1763407013";
@@ -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.1762452647";
4
+ export const VERSION = "2.0.0-beta-rc.1763407013";
@@ -1,5 +1,5 @@
1
1
  import { OrderByInput, SearchFiltersInput, SearchLocation, UserInput } from "../../../graphql/schema.js";
2
- import { SortField } from "../../../models/enums/index.js";
2
+ import { 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
  /**
@@ -50,6 +50,10 @@ export type SearchHealthResourcesRequestInput = PagedRequestInput & {
50
50
  * This can be something like an organization name, location, address, or phone number.
51
51
  */
52
52
  search?: string;
53
+ /**
54
+ * Context for the search that determines which PSS configurations to apply.
55
+ */
56
+ searchContext?: SearchContext;
53
57
  /**
54
58
  * The location to search health resources by.
55
59
  */
@@ -9,7 +9,7 @@ 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;
12
+ var _a, _b, _c, _d, _e, _f, _g, _h;
13
13
  const input = request.data();
14
14
  return {
15
15
  searchInput: {
@@ -22,8 +22,9 @@ export class SearchHealthResourcesRequestFactory {
22
22
  pageSize: (_d = input.pageSize) !== null && _d !== void 0 ? _d : DEFAULT_PAGE_SIZE,
23
23
  },
24
24
  search: (_e = input.search) !== null && _e !== void 0 ? _e : null,
25
- searchLocation: (_f = input.searchLocation) !== null && _f !== void 0 ? _f : null,
26
- user: (_g = input.user) !== null && _g !== void 0 ? _g : 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,
27
28
  },
28
29
  };
29
30
  }
@@ -136,7 +136,7 @@ export declare const LoginDocument = "\n query login($email: String!, $passwo
136
136
  export declare const RefreshTokensDocument = "\n query refreshTokens {\n refresh {\n accessToken\n idToken\n }\n}\n ";
137
137
  export declare const NextQuestionDocument = "\n mutation nextQuestion($questionnaireResponse: QuestionnaireResponseInput!) {\n nextQuestion(input: $questionnaireResponse) {\n ...QuestionnaireResponseFields\n }\n}\n \n fragment QuestionnaireResponseFields on QuestionnaireResponse {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n questionnaire\n status\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n }\n }\n }\n contained {\n ...QuestionnaireFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {\n linkId\n text\n answer {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment QuestionnaireFields on Questionnaire {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n name\n title\n status\n description\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment QuestionnaireItemFields on QuestionnaireItem {\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n valueInteger\n valueDate\n valueString\n valueCoding {\n ...CodingFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
138
138
  export declare const RequestConnectionDocument = "\n mutation requestConnection($city: String, $institution: String, $provider: String, $state: String) {\n requestConnection(\n city: $city\n institution: $institution\n provider: $provider\n state: $state\n ) {\n resourceType\n issue {\n severity\n code\n details {\n text\n }\n }\n }\n}\n ";
139
- export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n id\n content\n specialty {\n code\n system\n display\n }\n location {\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n }\n }\n npi\n gender\n endpoint {\n name\n }\n }\n }\n}\n ";
139
+ export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n id\n content\n specialty {\n code\n system\n display\n }\n bookable {\n online\n phone\n }\n location {\n scheduling {\n identifier {\n system\n value\n }\n bookable {\n online\n phone\n }\n }\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n }\n }\n npi\n gender\n endpoint {\n name\n }\n }\n }\n}\n ";
140
140
  export declare const CreateConsentDocument = "\n mutation createConsent($consentInput: ConsentInput!) {\n createConsent(consentInput: $consentInput) {\n id\n meta {\n source\n versionId\n lastUpdated\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n }\n status\n scope {\n coding {\n code\n system\n display\n }\n text\n }\n category {\n coding {\n code\n system\n display\n }\n text\n }\n patient {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n dateTime\n performer {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n organization {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n policy {\n authority\n uri\n }\n policyRule {\n coding {\n code\n system\n display\n }\n text\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
141
141
  export declare const CreateDataExportDirectDownloadUrlDocument = "\n mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {\n createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)\n}\n ";
142
142
  export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {\n createVerificationUrl(\n callbackURL: $callbackURL\n includeAttributeMatchingCheck: $includeAttributeMatchingCheck\n )\n}\n ";
@@ -3560,7 +3560,21 @@ export const SearchHealthResourcesDocument = `
3560
3560
  system
3561
3561
  display
3562
3562
  }
3563
+ bookable {
3564
+ online
3565
+ phone
3566
+ }
3563
3567
  location {
3568
+ scheduling {
3569
+ identifier {
3570
+ system
3571
+ value
3572
+ }
3573
+ bookable {
3574
+ online
3575
+ phone
3576
+ }
3577
+ }
3564
3578
  name
3565
3579
  address {
3566
3580
  line
@@ -19936,9 +19936,23 @@ export type SearchHealthResourcesQueryResults = {
19936
19936
  system: string | null;
19937
19937
  display: string | null;
19938
19938
  } | null> | null;
19939
+ bookable: {
19940
+ online: boolean | null;
19941
+ phone: boolean | null;
19942
+ } | null;
19939
19943
  location: Array<{
19940
19944
  name: string | null;
19941
19945
  distanceInMiles: number | null;
19946
+ scheduling: {
19947
+ identifier: Array<{
19948
+ system: string | null;
19949
+ value: string | null;
19950
+ } | null> | null;
19951
+ bookable: {
19952
+ online: boolean | null;
19953
+ phone: boolean | null;
19954
+ } | null;
19955
+ } | null;
19942
19956
  address: {
19943
19957
  line: Array<string | null> | null;
19944
19958
  city: string | null;
@@ -4250,6 +4250,7 @@ export type BootstrapConfiguration = {
4250
4250
  frontendEnvironment: FrontendEnvironment;
4251
4251
  googleGeo: GoogleGeo;
4252
4252
  jwksKid: Scalars['String']['output'];
4253
+ mcp: McpMap;
4253
4254
  prefetchAssets: PrefetchAssets;
4254
4255
  telemetry: Telemetry;
4255
4256
  userProfileSvcUrl: Scalars['String']['output'];
@@ -36857,6 +36858,10 @@ export type MarketingStatus = {
36857
36858
  */
36858
36859
  status?: Maybe<CodeableConcept>;
36859
36860
  };
36861
+ export type McpMap = {
36862
+ __typename?: 'McpMap';
36863
+ bailey: Scalars['String']['output'];
36864
+ };
36860
36865
  /**
36861
36866
  * Measure
36862
36867
  * The Measure resource provides the definition of a quality measure.
@@ -47547,6 +47552,7 @@ export type PackagedProductDefinitionShelfLifeStorage = {
47547
47552
  */
47548
47553
  type?: Maybe<CodeableConcept>;
47549
47554
  };
47555
+ /** All queries that return a list of resources return a type that implements this interface. */
47550
47556
  export type PagedQueryResults = {
47551
47557
  paging_info?: Maybe<PagingResults>;
47552
47558
  };
@@ -52170,6 +52176,8 @@ export type Query = {
52170
52176
  /** Generate a third party site url used to open login page for the user. */
52171
52177
  getOauthUrl: GenerateUrl;
52172
52178
  getProcedureGroups: ProcedureGroupQueryResults;
52179
+ /** Query to search for tasks. This query is the preferred method for searching for tasks. */
52180
+ getTasks?: Maybe<TaskQueryResults>;
52173
52181
  getToken: AuthTokens;
52174
52182
  getUserDetailsFromCognito: AdminGetUserOutput;
52175
52183
  getVitalSignGroups: VitalSignGroupQueryResults;
@@ -53624,6 +53632,9 @@ export type QueryGetOauthUrlArgs = {
53624
53632
  export type QueryGetProcedureGroupsArgs = {
53625
53633
  request?: InputMaybe<ProcedureGroupQueryRequest>;
53626
53634
  };
53635
+ export type QueryGetTasksArgs = {
53636
+ request?: InputMaybe<TaskRequest>;
53637
+ };
53627
53638
  export type QueryGetUserDetailsFromCognitoArgs = {
53628
53639
  userPoolId: Scalars['String']['input'];
53629
53640
  username: Scalars['String']['input'];
@@ -58906,7 +58917,7 @@ export type SdkConfiguration = {
58906
58917
  * Defines the context in which a search is being performed, which determines
58907
58918
  * which configurations and filters are applied to the search results.
58908
58919
  */
58909
- export type SearchContextEnum = 'CARE_SEARCH' | 'PROA';
58920
+ export type SearchContextEnum = 'DATA_CONNECTIONS' | 'FIND_CARE';
58910
58921
  export type SearchDate = {
58911
58922
  missing?: InputMaybe<Scalars['Boolean']['input']>;
58912
58923
  searchType?: InputMaybe<Scalars['String']['input']>;
@@ -65022,6 +65033,11 @@ export type TaskPartOfReference = {
65022
65033
  resource?: Maybe<Task>;
65023
65034
  type?: Maybe<Scalars['URI']['output']>;
65024
65035
  };
65036
+ export type TaskQueryResults = PagedQueryResults & {
65037
+ __typename?: 'TaskQueryResults';
65038
+ paging_info?: Maybe<PagingResults>;
65039
+ resources: Array<TaskResource>;
65040
+ };
65025
65041
  /** Reference type for ReasonReference */
65026
65042
  export type TaskReasonReferenceReference = {
65027
65043
  __typename?: 'TaskReasonReferenceReference';
@@ -65044,6 +65060,20 @@ export type TaskRelevantHistoryReference = {
65044
65060
  resource?: Maybe<Provenance>;
65045
65061
  type?: Maybe<Scalars['URI']['output']>;
65046
65062
  };
65063
+ export type TaskRequest = {
65064
+ code?: InputMaybe<SearchToken>;
65065
+ contentLanguage?: InputMaybe<Scalars['String']['input']>;
65066
+ enrichContent?: InputMaybe<Scalars['Boolean']['input']>;
65067
+ id?: InputMaybe<SearchToken>;
65068
+ identifier?: InputMaybe<SearchToken>;
65069
+ page?: InputMaybe<Scalars['Int']['input']>;
65070
+ pageSize?: InputMaybe<Scalars['Int']['input']>;
65071
+ performer?: InputMaybe<SearchToken>;
65072
+ sortMethod?: InputMaybe<Scalars['String']['input']>;
65073
+ status?: InputMaybe<SearchToken>;
65074
+ subject?: InputMaybe<SearchToken>;
65075
+ tag?: InputMaybe<SearchToken>;
65076
+ };
65047
65077
  export type TaskRequester = Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson;
65048
65078
  /** Reference type for Requester */
65049
65079
  export type TaskRequesterReference = {
@@ -65056,6 +65086,11 @@ export type TaskRequesterReference = {
65056
65086
  resource?: Maybe<TaskRequester>;
65057
65087
  type?: Maybe<Scalars['URI']['output']>;
65058
65088
  };
65089
+ export type TaskResource = {
65090
+ __typename?: 'TaskResource';
65091
+ extension?: Maybe<Array<Maybe<Extension>>>;
65092
+ id: Scalars['ID']['output'];
65093
+ };
65059
65094
  /**
65060
65095
  * Task.Restriction
65061
65096
  * A task to be performed.
@@ -10,6 +10,7 @@ export { LogLevel } from "./log-level.js";
10
10
  export { Gender } from "./gender.js";
11
11
  export { FilterField } from "./filter-field.js";
12
12
  export { SearchResultType } from "./search-result-type.js";
13
+ export { SearchContext } from "./search-context.js";
13
14
  export { SortField } from "./sort-field.js";
14
15
  export { SortOrder } from "./sort-order.js";
15
16
  export { EndpointStatus } from "./endpoint-status.js";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Search context options for health resource searches.
3
+ * Defines the context in which a search is being performed, which determines
4
+ * which configurations and filters are applied to the search results.
5
+ *
6
+ * @category Enums
7
+ * @title SearchContext
8
+ * @excerpt Available search contexts for health resource searches
9
+ */
10
+ export type SearchContext = "DATA_CONNECTIONS" | "FIND_CARE";
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,39 @@
1
1
  import { Coding } from "../common/coding.js";
2
2
  import { Endpoint } from "../common/endpoint.js";
3
+ import { Identifier } from "../common/identifier.js";
3
4
  import { SearchResponseOrganization } from "../common/index.js";
4
5
  import { Location } from "../common/location.js";
5
6
  import { FilterField } from "../enums/filter-field.js";
6
7
  import { Gender } from "../enums/gender.js";
7
8
  import { SearchResultType } from "../enums/search-result-type.js";
9
+ /**
10
+ * Bookable information indicating availability through different channels.
11
+ * Used to indicate whether a resource can be booked online or via phone.
12
+ *
13
+ * @category Models
14
+ * @title Bookable
15
+ * @excerpt Booking availability through different channels
16
+ */
17
+ export type Bookable = {
18
+ /** Whether online booking is available */
19
+ online: boolean | null;
20
+ /** Whether phone booking is available */
21
+ phone: boolean | null;
22
+ };
23
+ /**
24
+ * Scheduling information for a location.
25
+ * Contains bookable information and identifiers for the location.
26
+ *
27
+ * @category Models
28
+ * @title Scheduling
29
+ * @excerpt Scheduling and booking information for a location
30
+ */
31
+ export type Scheduling = {
32
+ /** Scheduling identifier */
33
+ identifier: (Identifier | null)[] | null;
34
+ /** Bookable information */
35
+ bookable: Bookable | null;
36
+ };
8
37
  /**
9
38
  * Health resource location with distance information.
10
39
  * Extends the base Location type with additional distance data for search results.
@@ -16,6 +45,8 @@ import { SearchResultType } from "../enums/search-result-type.js";
16
45
  export type HealthResourceLocation = Location & {
17
46
  /** Distance in miles from the search location */
18
47
  distanceInMiles: number | null;
48
+ /** Scheduling information */
49
+ scheduling: Scheduling | null;
19
50
  };
20
51
  /**
21
52
  * Represents a health resource search result.
@@ -38,6 +69,8 @@ export type HealthResource = {
38
69
  gender: Gender | null;
39
70
  /** Medical specialties */
40
71
  specialty: Coding[] | null;
72
+ /** Bookable information */
73
+ bookable: Bookable | null;
41
74
  /** Associated locations */
42
75
  location: (HealthResourceLocation | null)[] | null;
43
76
  /** Associated organizations */
@@ -1,2 +1,2 @@
1
1
  export { ProviderReviewResult } from "./provider-review-result.js";
2
- export { HealthResource, HealthResourcesBundle, FilterValue, FilterValueMeta, HealthResourceLocation, } from "./health-resources.js";
2
+ export { HealthResource, HealthResourcesBundle, FilterValue, FilterValueMeta, HealthResourceLocation, Bookable, Scheduling, } from "./health-resources.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.1762452647",
3
+ "version": "2.0.0-beta-rc.1763407013",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",