@icanbwell/bwell-sdk-ts 1.37.0 → 1.38.0-rc.1758045508

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.
@@ -186,20 +186,6 @@ export type Address = {
186
186
  type?: Maybe<Scalars['Code']['output']>;
187
187
  use?: Maybe<Scalars['Code']['output']>;
188
188
  };
189
- export type AddressField = {
190
- city: Scalars['String']['input'];
191
- line: Scalars['String']['input'];
192
- postalCode: Scalars['String']['input'];
193
- state: Scalars['String']['input'];
194
- };
195
- export type AddressG = {
196
- __typename?: 'AddressG';
197
- country: Scalars['String']['output'];
198
- locality: Scalars['String']['output'];
199
- postal_code: Scalars['String']['output'];
200
- region: Scalars['String']['output'];
201
- street_address: Scalars['String']['output'];
202
- };
203
189
  export type AddressInput = {
204
190
  city?: InputMaybe<Scalars['String']['input']>;
205
191
  country?: InputMaybe<Scalars['String']['input']>;
@@ -587,8 +573,9 @@ export type CarePlanResource = {
587
573
  export type CareTeamParticipant = {
588
574
  __typename?: 'CareTeamParticipant';
589
575
  member?: Maybe<CareTeamParticipantMember>;
576
+ role?: Maybe<Array<Maybe<CodeableConcept>>>;
590
577
  };
591
- export type CareTeamParticipantMember = Organization | Practitioner | ResourceReference;
578
+ export type CareTeamParticipantMember = Organization | Practitioner | PractitionerRole | RelatedPerson | ResourceReference;
592
579
  export type CareTeamQueryResults = PagedQueryResults & {
593
580
  __typename?: 'CareTeamQueryResults';
594
581
  paging_info?: Maybe<PagingResults>;
@@ -608,6 +595,11 @@ export type CareTeamResource = {
608
595
  meta?: Maybe<Meta>;
609
596
  name?: Maybe<Scalars['String']['output']>;
610
597
  participant?: Maybe<Array<Maybe<CareTeamParticipant>>>;
598
+ resourceType: Scalars['String']['output'];
599
+ /** The current status of the care team (e.g., "active", "suspended", "inactive", "entered-in-error"). */
600
+ status?: Maybe<Scalars['String']['output']>;
601
+ /** The patient or group for whom the care team is created. */
602
+ subject?: Maybe<ResourceReference>;
611
603
  };
612
604
  export declare enum CategoryCode {
613
605
  CommunicationPreferencesPhi = "COMMUNICATION_PREFERENCES_PHI",
@@ -938,6 +930,7 @@ export type Connection = {
938
930
  /** Defines the type of connection */
939
931
  export declare enum ConnectionCategory {
940
932
  Basic = "BASIC",
933
+ Identity = "IDENTITY",
941
934
  Oauth = "OAUTH"
942
935
  }
943
936
  /** Defines connection after making updates */
@@ -1125,10 +1118,6 @@ export type ConsentVerificationVerifiedWithReference = {
1125
1118
  reference?: Maybe<Scalars['String']['output']>;
1126
1119
  type?: Maybe<Scalars['URI']['output']>;
1127
1120
  };
1128
- export type ContactField = {
1129
- use: ContactUseType;
1130
- value: Scalars['String']['input'];
1131
- };
1132
1121
  export type ContactPoint = {
1133
1122
  __typename?: 'ContactPoint';
1134
1123
  extension?: Maybe<Array<Maybe<FhirExtension>>>;
@@ -1151,12 +1140,6 @@ export type ContactPointInput = {
1151
1140
  /** Can define enum */
1152
1141
  value?: InputMaybe<Scalars['String']['input']>;
1153
1142
  };
1154
- /** Contact.use options */
1155
- export declare enum ContactUseType {
1156
- Home = "home",
1157
- Mobile = "mobile",
1158
- Work = "work"
1159
- }
1160
1143
  /** Supported ISO 4217 CurrencyCodes */
1161
1144
  export declare enum CurrencyCode {
1162
1145
  Usd = "USD"
@@ -1342,6 +1325,8 @@ export type DocumentReferenceAttachment = {
1342
1325
  contentType?: Maybe<Scalars['String']['output']>;
1343
1326
  /** Data inline, base64ed */
1344
1327
  data?: Maybe<Scalars['String']['output']>;
1328
+ /** Title of the document */
1329
+ title?: Maybe<Scalars['String']['output']>;
1345
1330
  /** Uri where the data can be found */
1346
1331
  url?: Maybe<Scalars['String']['output']>;
1347
1332
  };
@@ -1842,13 +1827,6 @@ export declare enum GenderEnum {
1842
1827
  Other = "OTHER",
1843
1828
  Unknown = "UNKNOWN"
1844
1829
  }
1845
- /** Gender options */
1846
- export declare enum GenderType {
1847
- Female = "female",
1848
- Male = "male",
1849
- Other = "other",
1850
- Unknown = "unknown"
1851
- }
1852
1830
  /** Generate an oauth url */
1853
1831
  export type GenerateUrl = {
1854
1832
  __typename?: 'GenerateUrl';
@@ -1863,15 +1841,6 @@ export type GetFhirSearchDateValue = {
1863
1841
  /** the value for the parameter in the resource is greater than the provided value */
1864
1842
  greaterThan?: InputMaybe<Scalars['Date']['input']>;
1865
1843
  };
1866
- export type GetTokenFromDemographicsInput = {
1867
- address: AddressField;
1868
- birthDate: Scalars['String']['input'];
1869
- email: Scalars['String']['input'];
1870
- gender: GenderType;
1871
- mobile: ContactField;
1872
- name: NamedField;
1873
- userIdentifier: Scalars['String']['input'];
1874
- };
1875
1844
  export type GoogleGeo = {
1876
1845
  __typename?: 'GoogleGeo';
1877
1846
  key: Scalars['String']['output'];
@@ -1879,6 +1848,7 @@ export type GoogleGeo = {
1879
1848
  };
1880
1849
  export type GraphQlClientConfig = {
1881
1850
  __typename?: 'GraphQLClientConfig';
1851
+ apiUrl: Scalars['String']['output'];
1882
1852
  authUrl: Scalars['String']['output'];
1883
1853
  cache: Cache;
1884
1854
  fetchPolicy: Scalars['String']['output'];
@@ -1979,6 +1949,8 @@ export type HumanName = {
1979
1949
  suffix?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
1980
1950
  /** Follows https://www.hl7.org/fhir/datatypes.html#HumanName */
1981
1951
  text?: Maybe<Scalars['String']['output']>;
1952
+ /** Identifies the purpose for this name. */
1953
+ use?: Maybe<Scalars['Code']['output']>;
1982
1954
  };
1983
1955
  export type HumanNameInput = {
1984
1956
  /** The family name or surname. */
@@ -2394,6 +2366,7 @@ export type Location = Resource & {
2394
2366
  name?: Maybe<Scalars['String']['output']>;
2395
2367
  position?: Maybe<Position>;
2396
2368
  resourceType?: Maybe<Scalars['String']['output']>;
2369
+ status?: Maybe<Scalars['Code']['output']>;
2397
2370
  telecom?: Maybe<Array<Maybe<ContactPoint>>>;
2398
2371
  type?: Maybe<Array<Maybe<CodeableConcept>>>;
2399
2372
  };
@@ -2492,11 +2465,27 @@ export type MedicationGroup = ResourceGroup & {
2492
2465
  authoredOn?: Maybe<Scalars['DateTime']['output']>;
2493
2466
  /** Coding representing the kind of Conditions in this ResourceGroup */
2494
2467
  coding?: Maybe<Coding>;
2468
+ /** Supply duration for the medication */
2469
+ daysOfSupply?: Maybe<Value>;
2495
2470
  id?: Maybe<Scalars['ID']['output']>;
2471
+ /** Reference to the last encounter associated with this medication */
2472
+ lastEncounter?: Maybe<Reference>;
2473
+ /** Date when the medication was last filled */
2474
+ lastFilled?: Maybe<Scalars['DateTime']['output']>;
2496
2475
  /** Human readable name of the Medication */
2497
2476
  name?: Maybe<Scalars['String']['output']>;
2477
+ /** Pharmacy instruction for the medication */
2478
+ pharmacyInstruction?: Maybe<Scalars['String']['output']>;
2479
+ /** Name of the pharmacy associated with this medication dispense */
2480
+ pharmacyName?: Maybe<Scalars['String']['output']>;
2481
+ /** Name or identifier of the prescriber */
2482
+ prescriber?: Maybe<Scalars['String']['output']>;
2483
+ /** Prescriber instruction for the medication */
2484
+ prescriberInstruction?: Maybe<Scalars['String']['output']>;
2498
2485
  /** Array of medication id references in the resource group */
2499
2486
  references?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
2487
+ /** Number of refills remaining for this medication */
2488
+ refillsRemaining?: Maybe<Value>;
2500
2489
  /** Array of Strings representing the source of the data */
2501
2490
  source?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
2502
2491
  /** Array of Strings representing the source of the data */
@@ -2504,6 +2493,8 @@ export type MedicationGroup = ResourceGroup & {
2504
2493
  /** @deprecated Migrating for FHIR compliance. Use `statusCoding` instead. */
2505
2494
  status?: Maybe<Coding>;
2506
2495
  statusCoding?: Maybe<Coding>;
2496
+ /** Total number of refills for this medication */
2497
+ totalRefills?: Maybe<Value>;
2507
2498
  };
2508
2499
  export type MedicationGroupQueryRequest = {
2509
2500
  page?: InputMaybe<Scalars['Int']['input']>;
@@ -2975,7 +2966,6 @@ export type Mutation = {
2975
2966
  disconnectConnection: DisconnectConnection;
2976
2967
  exchangeAuthCode: AuthTokens;
2977
2968
  findOrCreatePatient?: Maybe<Patient>;
2978
- getTokenFromDemographics: AuthTokens;
2979
2969
  interacted?: Maybe<Scalars['Boolean']['output']>;
2980
2970
  itemInteracted?: Maybe<Scalars['Boolean']['output']>;
2981
2971
  /**
@@ -3123,9 +3113,6 @@ export type MutationFindOrCreatePatientArgs = {
3123
3113
  clientSlug?: InputMaybe<Scalars['String']['input']>;
3124
3114
  patient?: InputMaybe<PatientInput>;
3125
3115
  };
3126
- export type MutationGetTokenFromDemographicsArgs = {
3127
- userInfo: GetTokenFromDemographicsInput;
3128
- };
3129
3116
  export type MutationInteractedArgs = {
3130
3117
  interaction?: InputMaybe<InteractionType>;
3131
3118
  result_id?: InputMaybe<Scalars['String']['input']>;
@@ -3232,11 +3219,6 @@ export type NameInput = {
3232
3219
  text?: InputMaybe<Scalars['String']['input']>;
3233
3220
  use?: InputMaybe<Scalars['String']['input']>;
3234
3221
  };
3235
- export type NamedField = {
3236
- firstName: Scalars['String']['input'];
3237
- lastName: Scalars['String']['input'];
3238
- middleName?: InputMaybe<Scalars['String']['input']>;
3239
- };
3240
3222
  export type Narrative = {
3241
3223
  __typename?: 'Narrative';
3242
3224
  div?: Maybe<Scalars['XHTML']['output']>;
@@ -3473,6 +3455,8 @@ export type OrderByInput = {
3473
3455
  /** Represents an organization such as a clinic or manufacturer. */
3474
3456
  export type Organization = {
3475
3457
  __typename?: 'Organization';
3458
+ /** Whether the organization's record is currently active. */
3459
+ active?: Maybe<Scalars['Boolean']['output']>;
3476
3460
  address?: Maybe<Array<Address>>;
3477
3461
  alias?: Maybe<Scalars['String']['output']>;
3478
3462
  endpoint?: Maybe<Array<Maybe<Endpoint>>>;
@@ -3483,6 +3467,8 @@ export type Organization = {
3483
3467
  name?: Maybe<Scalars['String']['output']>;
3484
3468
  resourceType?: Maybe<Scalars['String']['output']>;
3485
3469
  telecom?: Maybe<Array<ContactPoint>>;
3470
+ /** The kind(s) of organization (e.g., hospital, clinic, manufacturer) as coded concepts. */
3471
+ type?: Maybe<Array<CodeableConcept>>;
3486
3472
  };
3487
3473
  export declare enum OrganizationType {
3488
3474
  C19Vaccine = "C19Vaccine",
@@ -3874,6 +3860,21 @@ export type PractitionerReference = {
3874
3860
  name?: Maybe<Array<Maybe<HumanName>>>;
3875
3861
  telecom?: Maybe<Array<ContactPoint>>;
3876
3862
  };
3863
+ export type PractitionerRole = {
3864
+ __typename?: 'PractitionerRole';
3865
+ active?: Maybe<Scalars['Boolean']['output']>;
3866
+ code?: Maybe<Array<CodeableConcept>>;
3867
+ endpoint?: Maybe<Array<Maybe<Endpoint>>>;
3868
+ id?: Maybe<Scalars['ID']['output']>;
3869
+ identifier?: Maybe<Array<Identifier>>;
3870
+ location?: Maybe<Location>;
3871
+ organization?: Maybe<Organization>;
3872
+ period?: Maybe<Period>;
3873
+ practitioner?: Maybe<Practitioner>;
3874
+ resourceType?: Maybe<Scalars['String']['output']>;
3875
+ specialty?: Maybe<Array<CodeableConcept>>;
3876
+ telecom?: Maybe<Array<ContactPoint>>;
3877
+ };
3877
3878
  export type PrefetchAssets = {
3878
3879
  __typename?: 'PrefetchAssets';
3879
3880
  translations: PrefetchTranslations;
@@ -4306,6 +4307,7 @@ export type Query = {
4306
4307
  providers: ProviderResults;
4307
4308
  questionnaire?: Maybe<FhirFormQuestionnaire>;
4308
4309
  questionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
4310
+ questionnaireResponses?: Maybe<QuestionnaireResponseBundle>;
4309
4311
  refresh: RefreshToken;
4310
4312
  requestConnection?: Maybe<RequestConnectionOutput>;
4311
4313
  search?: Maybe<Array<Maybe<Consent>>>;
@@ -4518,6 +4520,16 @@ export type QueryQuestionnaireResponseArgs = {
4518
4520
  questionnaireName?: InputMaybe<Scalars['String']['input']>;
4519
4521
  searchParams?: InputMaybe<Scalars['String']['input']>;
4520
4522
  };
4523
+ export type QueryQuestionnaireResponsesArgs = {
4524
+ _count?: InputMaybe<Scalars['Int']['input']>;
4525
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
4526
+ _lastUpdated?: InputMaybe<SearchDate>;
4527
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4528
+ id?: InputMaybe<SearchString>;
4529
+ patient?: InputMaybe<SearchReference>;
4530
+ questionnaire?: InputMaybe<SearchReference>;
4531
+ status?: InputMaybe<SearchToken>;
4532
+ };
4521
4533
  export type QueryRequestConnectionArgs = {
4522
4534
  input?: InputMaybe<RequestConnectionInput>;
4523
4535
  };
@@ -4708,6 +4720,14 @@ export type QuestionnaireResponseAnswerValueReferenceReference = {
4708
4720
  reference?: Maybe<Scalars['String']['output']>;
4709
4721
  type?: Maybe<Scalars['URI']['output']>;
4710
4722
  };
4723
+ export type QuestionnaireResponseBundle = {
4724
+ __typename?: 'QuestionnaireResponseBundle';
4725
+ entry?: Maybe<Array<Maybe<QuestionnaireResponseBundleEntry>>>;
4726
+ };
4727
+ export type QuestionnaireResponseBundleEntry = {
4728
+ __typename?: 'QuestionnaireResponseBundleEntry';
4729
+ resource?: Maybe<QuestionnaireResponse>;
4730
+ };
4711
4731
  export type QuestionnaireResponseInput = {
4712
4732
  author?: InputMaybe<FhirReferenceInput>;
4713
4733
  authored?: InputMaybe<Scalars['DateTime']['input']>;
@@ -4752,6 +4772,7 @@ export type QuestionnaireResponseItemAnswerInput = {
4752
4772
  export type QuestionnaireResponseItemInput = {
4753
4773
  answer?: InputMaybe<Array<InputMaybe<QuestionnaireResponseItemAnswerInput>>>;
4754
4774
  definition?: InputMaybe<Scalars['String']['input']>;
4775
+ extension?: InputMaybe<Array<InputMaybe<FhirExtensionInput>>>;
4755
4776
  item?: InputMaybe<Array<InputMaybe<QuestionnaireResponseItemInput>>>;
4756
4777
  linkId: Scalars['String']['input'];
4757
4778
  text?: InputMaybe<Scalars['String']['input']>;
@@ -4870,6 +4891,18 @@ export type RegCodePersonDto = {
4870
4891
  person?: Maybe<Person>;
4871
4892
  taskExist?: Maybe<Scalars['Boolean']['output']>;
4872
4893
  };
4894
+ export type RelatedPerson = {
4895
+ __typename?: 'RelatedPerson';
4896
+ active?: Maybe<Scalars['Boolean']['output']>;
4897
+ address?: Maybe<Array<Address>>;
4898
+ id?: Maybe<Scalars['ID']['output']>;
4899
+ identifier?: Maybe<Array<Identifier>>;
4900
+ name?: Maybe<Array<Maybe<HumanName>>>;
4901
+ patient?: Maybe<Patient>;
4902
+ relationship?: Maybe<Array<CodeableConcept>>;
4903
+ resourceType?: Maybe<Scalars['String']['output']>;
4904
+ telecom?: Maybe<Array<ContactPoint>>;
4905
+ };
4873
4906
  export type RequestConnectionInput = {
4874
4907
  bwellFhirPersonId?: InputMaybe<Scalars['String']['input']>;
4875
4908
  city?: InputMaybe<Scalars['String']['input']>;
@@ -61,6 +61,7 @@ export var ClientIdEnum;
61
61
  export var ConnectionCategory;
62
62
  (function (ConnectionCategory) {
63
63
  ConnectionCategory["Basic"] = "BASIC";
64
+ ConnectionCategory["Identity"] = "IDENTITY";
64
65
  ConnectionCategory["Oauth"] = "OAUTH";
65
66
  })(ConnectionCategory || (ConnectionCategory = {}));
66
67
  export var ConsentProvisionType;
@@ -77,13 +78,6 @@ export var ConsentStatus;
77
78
  ConsentStatus["Proposed"] = "PROPOSED";
78
79
  ConsentStatus["Rejected"] = "REJECTED";
79
80
  })(ConsentStatus || (ConsentStatus = {}));
80
- /** Contact.use options */
81
- export var ContactUseType;
82
- (function (ContactUseType) {
83
- ContactUseType["Home"] = "home";
84
- ContactUseType["Mobile"] = "mobile";
85
- ContactUseType["Work"] = "work";
86
- })(ContactUseType || (ContactUseType = {}));
87
81
  /** Supported ISO 4217 CurrencyCodes */
88
82
  export var CurrencyCode;
89
83
  (function (CurrencyCode) {
@@ -205,14 +199,6 @@ export var GenderEnum;
205
199
  GenderEnum["Other"] = "OTHER";
206
200
  GenderEnum["Unknown"] = "UNKNOWN";
207
201
  })(GenderEnum || (GenderEnum = {}));
208
- /** Gender options */
209
- export var GenderType;
210
- (function (GenderType) {
211
- GenderType["Female"] = "female";
212
- GenderType["Male"] = "male";
213
- GenderType["Other"] = "other";
214
- GenderType["Unknown"] = "unknown";
215
- })(GenderType || (GenderType = {}));
216
202
  export var HealthSummaryCategory;
217
203
  (function (HealthSummaryCategory) {
218
204
  HealthSummaryCategory["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.37.0",
3
+ "version": "1.38.0-rc.1758045508",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",