@icanbwell/bwell-sdk-ts 1.45.0 → 1.46.0

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 = "1.45.0";
4
+ export declare const VERSION = "1.46.0";
@@ -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 = "1.45.0";
4
+ export const VERSION = "1.46.0";
@@ -1,3 +1,4 @@
1
+ export { SearchContextEnum } from "../../../graphql/schema.js";
1
2
  export type { SearchResults, RequestConnectionResults, SearchManager, SearchHealthResourcesResults, } from "./search-manager.js";
2
3
  export { SearchRequest, SearchRequestInput, FilterField, OrganizationType, OrderBy, SortOrder, SortField, SearchPosition, } from "./search-request.js";
3
4
  export { RequestConnectionRequestInput, RequestConnectionRequest, } from "./request-connection-request.js";
@@ -1,3 +1,4 @@
1
+ export { SearchContextEnum } from "../../../graphql/schema.js";
1
2
  export { SearchRequest, } from "./search-request.js";
2
3
  export { RequestConnectionRequest, } from "./request-connection-request.js";
3
4
  export { SearchHealthResourcesRequest, } from "./search-health-resources-request.js";
@@ -1,5 +1,6 @@
1
1
  import { ClientInput, FilterField as GraphQLFilterField, OrganizationType as GraphQLOrganizationType, SortField as GraphQLSortField, SortOrder as GraphQLSortOrder, OrderByInput, SearchFiltersInput, SearchLocation, UserInput } from "../../../graphql/schema.js";
2
2
  import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
3
+ import { SearchContextEnum } from "./index.js";
3
4
  /**
4
5
  * Type representing the search filters for health resources.
5
6
  */
@@ -55,7 +56,7 @@ export type SearchHealthResourcesRequestInput = PagedRequestInput & {
55
56
  /**
56
57
  * The client configuration to search for health resources.
57
58
  */
58
- client: [ClientInput];
59
+ client?: [ClientInput];
59
60
  /**
60
61
  * The filters to apply to the search.
61
62
  */
@@ -77,6 +78,11 @@ export type SearchHealthResourcesRequestInput = PagedRequestInput & {
77
78
  * The user for whom the search is being performed.
78
79
  */
79
80
  user?: UserInput;
81
+ /**
82
+ * Defines the context in which a search is being performed, which determines
83
+ * which configurations are applied to the search results.
84
+ */
85
+ searchContext?: SearchContextEnum;
80
86
  };
81
87
  /**
82
88
  * Request for searching health resources.
@@ -13,6 +13,7 @@ export class SearchHealthResourcesRequestFactory {
13
13
  return {
14
14
  searchInput: {
15
15
  client: input.client,
16
+ searchContext: input.searchContext,
16
17
  filters: (_a = input.filters) !== null && _a !== void 0 ? _a : null,
17
18
  orderBy: (_b = input.orderBy) !== null && _b !== void 0 ? _b : null,
18
19
  paging: {
@@ -142,7 +142,7 @@ export declare const GetQuestionnairesDocument = "\n query getQuestionnaires(
142
142
  export declare const SaveQuestionnaireResponseDocument = "\n mutation saveQuestionnaireResponse($questionnaireResponse: QuestionnaireResponseInput!) {\n saveQuestionnaireResponse(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 subject {\n reference\n type\n display\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 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 text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\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 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 text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\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 useContext {\n id\n code {\n ...CodingFields\n }\n valueReference {\n id\n reference\n identifier {\n ...IdentifierFields\n }\n display\n }\n }\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 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 text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\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 text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\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 ";
143
143
  export declare const ProviderSearchDocument = "\n query providerSearch($client: [Client], $searchTerm: String, $includePopulatedPROAonly: Boolean, $specialtyFilters: [InputCoding], $organizationTypeFilters: [OrganizationType], $gender: Gender, $location: SearchPosition, $sortBy: [OrderBy], $filterFields: [FilterField], $page: Int, $pageSize: Int) {\n providers(\n client: $client\n search: $searchTerm\n specialty: $specialtyFilters\n organization_type: $organizationTypeFilters\n include_populated_PROA_only: $includePopulatedPROAonly\n gender: $gender\n search_position: $location\n order_by: $sortBy\n filter_values: $filterFields\n page_number: $page\n page_size: $pageSize\n ) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n filter_values {\n field\n values {\n value\n count\n }\n }\n results {\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n iconString\n organization_type {\n coding {\n code\n system\n display\n }\n text\n }\n content\n gender\n location {\n name\n identifier {\n type {\n text\n coding {\n system\n code\n display\n }\n }\n value\n system\n }\n alias\n description\n address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n system\n value\n rank\n }\n }\n specialty {\n code\n system\n display\n }\n id\n photo {\n contentType\n url\n title\n }\n name {\n ...HumanNameFields\n }\n telecom {\n system\n value\n rank\n }\n practitioner_qualification {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n code {\n coding {\n code\n system\n display\n }\n text\n }\n period {\n start\n end\n }\n issuer {\n reference\n display\n }\n }\n provider_type\n characteristic {\n code\n system\n display\n }\n organization {\n name\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n }\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
144
144
  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 ";
145
- 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 telecom {\n system\n value\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n score\n scores {\n value\n description\n calculation\n }\n }\n }\n}\n ";
145
+ 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 value\n system\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 telecom {\n system\n value\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n score\n scores {\n value\n description\n calculation\n }\n }\n }\n}\n ";
146
146
  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 system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
147
147
  export declare const CreateDataExportDirectDownloadUrlDocument = "\n mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {\n createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)\n}\n ";
148
148
  export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {\n createVerificationUrl(\n callbackURL: $callbackURL\n includeAttributeMatchingCheck: $includeAttributeMatchingCheck\n )\n}\n ";
@@ -3426,7 +3426,21 @@ export const SearchHealthResourcesDocument = `
3426
3426
  system
3427
3427
  display
3428
3428
  }
3429
+ bookable {
3430
+ online
3431
+ phone
3432
+ }
3429
3433
  location {
3434
+ scheduling {
3435
+ identifier {
3436
+ value
3437
+ system
3438
+ }
3439
+ bookable {
3440
+ online
3441
+ phone
3442
+ }
3443
+ }
3430
3444
  name
3431
3445
  address {
3432
3446
  line
@@ -21504,9 +21504,23 @@ export type SearchHealthResourcesQueryResults = {
21504
21504
  system: string | null;
21505
21505
  display: string | null;
21506
21506
  } | null> | null;
21507
+ bookable: {
21508
+ online: boolean | null;
21509
+ phone: boolean | null;
21510
+ } | null;
21507
21511
  location: Array<{
21508
21512
  name: string | null;
21509
21513
  distanceInMiles: number | null;
21514
+ scheduling: {
21515
+ identifier: Array<{
21516
+ value: string | null;
21517
+ system: string | null;
21518
+ } | null> | null;
21519
+ bookable: {
21520
+ online: boolean | null;
21521
+ phone: boolean | null;
21522
+ } | null;
21523
+ } | null;
21510
21524
  address: {
21511
21525
  line: Array<string | null> | null;
21512
21526
  city: string | null;
@@ -491,6 +491,7 @@ export type BootstrapConfiguration = {
491
491
  frontendEnvironment: FrontendEnvironment;
492
492
  googleGeo: GoogleGeo;
493
493
  jwksKid: Scalars['String']['output'];
494
+ mcp: McpMap;
494
495
  prefetchAssets: PrefetchAssets;
495
496
  telemetry: Telemetry;
496
497
  userProfileSvcUrl: Scalars['String']['output'];
@@ -2812,6 +2813,10 @@ export type Logging = {
2812
2813
  __typename?: 'Logging';
2813
2814
  enabled: Scalars['Boolean']['output'];
2814
2815
  };
2816
+ export type McpMap = {
2817
+ __typename?: 'McpMap';
2818
+ bailey: Scalars['String']['output'];
2819
+ };
2815
2820
  export type MedStatementCodeableConceptResource = {
2816
2821
  __typename?: 'MedStatementCodeableConceptResource';
2817
2822
  medicationCodeableConcept?: Maybe<CodeableConcept>;
@@ -3042,6 +3047,22 @@ export type MedicationRequestQueryResults = PagedQueryResults & {
3042
3047
  paging_info?: Maybe<PagingResults>;
3043
3048
  resources: Array<MedicationRequest>;
3044
3049
  };
3050
+ export type MedicationStatement = {
3051
+ __typename?: 'MedicationStatement';
3052
+ /** Unique identifier for the medication statement */
3053
+ id: Scalars['ID']['output'];
3054
+ };
3055
+ /**
3056
+ * Input type for updating a MedicationStatement resource.
3057
+ * All fields are optional except for id.
3058
+ * Based on FHIR R4B MedicationStatement profile.
3059
+ */
3060
+ export type MedicationStatementInput = {
3061
+ /** The logical id of the resource (required) */
3062
+ id: Scalars['ID']['input'];
3063
+ /** Status of the statement: active | completed */
3064
+ status?: InputMaybe<UpdateMedicationStatementStatus>;
3065
+ };
3045
3066
  export type MedicationStatementQueryRequest = {
3046
3067
  groupCode?: InputMaybe<SearchToken>;
3047
3068
  ids?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -3408,6 +3429,15 @@ export type Mutation = {
3408
3429
  updateAppointment: Appointment;
3409
3430
  updateCareTeamMember: CareTeam;
3410
3431
  updateDeviceRegistration?: Maybe<OperationOutcome>;
3432
+ /**
3433
+ * Updates a MedicationStatement resource.
3434
+ *
3435
+ * All fields in the input are optional except for the id field.
3436
+ * Only the fields provided in the input will be updated.
3437
+ *
3438
+ * Returns the updated MedicationStatement resource.
3439
+ */
3440
+ updateMedicationStatement: MedicationStatement;
3411
3441
  updatePersonAndPatient?: Maybe<UpdatedPersonMetadata>;
3412
3442
  updatePersonDetails: Array<UpdatePersonDetailsOutput>;
3413
3443
  updatePersonWithClientId?: Maybe<PersonWithMetadata>;
@@ -3592,6 +3622,9 @@ export type MutationUpdateCareTeamMemberArgs = {
3592
3622
  export type MutationUpdateDeviceRegistrationArgs = {
3593
3623
  input: UpdateDeviceRegistrationRequest;
3594
3624
  };
3625
+ export type MutationUpdateMedicationStatementArgs = {
3626
+ input: MedicationStatementInput;
3627
+ };
3595
3628
  export type MutationUpdatePersonAndPatientArgs = {
3596
3629
  bwellPersonId?: InputMaybe<Scalars['String']['input']>;
3597
3630
  clientPersonId?: InputMaybe<Scalars['String']['input']>;
@@ -5797,8 +5830,8 @@ export type SdkConfiguration = {
5797
5830
  * which configurations and filters are applied to the search results.
5798
5831
  */
5799
5832
  export declare enum SearchContextEnum {
5800
- CareSearch = "CARE_SEARCH",
5801
- Proa = "PROA"
5833
+ DataConnections = "DATA_CONNECTIONS",
5834
+ FindCare = "FIND_CARE"
5802
5835
  }
5803
5836
  export type SearchDate = {
5804
5837
  missing?: InputMaybe<Scalars['Boolean']['input']>;
@@ -6529,6 +6562,16 @@ export type UpdateDeviceRegistrationRequest = {
6529
6562
  notificationPreference: Scalars['Boolean']['input'];
6530
6563
  platform?: InputMaybe<Scalars['String']['input']>;
6531
6564
  };
6565
+ export type UpdateMedicationStatementResponse = {
6566
+ __typename?: 'UpdateMedicationStatementResponse';
6567
+ id: Scalars['ID']['output'];
6568
+ resourceType: Scalars['String']['output'];
6569
+ status?: Maybe<Scalars['String']['output']>;
6570
+ };
6571
+ export declare enum UpdateMedicationStatementStatus {
6572
+ Active = "ACTIVE",
6573
+ Completed = "COMPLETED"
6574
+ }
6532
6575
  export type UpdateTaskStatusInput = {
6533
6576
  id: Scalars['String']['input'];
6534
6577
  status: TaskStatus;
@@ -359,8 +359,8 @@ export var ResourceType;
359
359
  */
360
360
  export var SearchContextEnum;
361
361
  (function (SearchContextEnum) {
362
- SearchContextEnum["CareSearch"] = "CARE_SEARCH";
363
- SearchContextEnum["Proa"] = "PROA";
362
+ SearchContextEnum["DataConnections"] = "DATA_CONNECTIONS";
363
+ SearchContextEnum["FindCare"] = "FIND_CARE";
364
364
  })(SearchContextEnum || (SearchContextEnum = {}));
365
365
  export var SearchResultTypeEnum;
366
366
  (function (SearchResultTypeEnum) {
@@ -440,6 +440,11 @@ export var TotalType;
440
440
  TotalType["Accurate"] = "accurate";
441
441
  TotalType["Estimate"] = "estimate";
442
442
  })(TotalType || (TotalType = {}));
443
+ export var UpdateMedicationStatementStatus;
444
+ (function (UpdateMedicationStatementStatus) {
445
+ UpdateMedicationStatementStatus["Active"] = "ACTIVE";
446
+ UpdateMedicationStatementStatus["Completed"] = "COMPLETED";
447
+ })(UpdateMedicationStatementStatus || (UpdateMedicationStatementStatus = {}));
443
448
  /** Error codes for verification failures */
444
449
  export var VerificationErrorCode;
445
450
  (function (VerificationErrorCode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.45.0",
3
+ "version": "1.46.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",