@icanbwell/bwell-sdk-ts 1.44.0 → 1.45.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.
@@ -87,6 +87,10 @@ export type Scalars = {
87
87
  input: any;
88
88
  output: any;
89
89
  };
90
+ Decimal: {
91
+ input: any;
92
+ output: any;
93
+ };
90
94
  Error: {
91
95
  input: any;
92
96
  output: any;
@@ -326,6 +330,7 @@ export type ApiMap = {
326
330
  consent: Scalars['String']['output'];
327
331
  default: Scalars['String']['output'];
328
332
  enterprisePerson: Scalars['String']['output'];
333
+ gqlv2Api: Scalars['String']['output'];
329
334
  healthCircle: Scalars['String']['output'];
330
335
  hpTask: Scalars['String']['output'];
331
336
  identityGateway: Scalars['String']['output'];
@@ -495,6 +500,45 @@ export type BootstrapConfiguration = {
495
500
  export declare enum BootstrapVariant {
496
501
  Guest = "GUEST"
497
502
  }
503
+ export type BundleLink = {
504
+ __typename?: 'BundleLink';
505
+ extension?: Maybe<Array<Maybe<FhirExtension>>>;
506
+ id?: Maybe<Scalars['String']['output']>;
507
+ modifierExtension?: Maybe<Array<Maybe<FhirExtension>>>;
508
+ relation?: Maybe<Scalars['String']['output']>;
509
+ url?: Maybe<Scalars['URI']['output']>;
510
+ };
511
+ export type BundleRequest = {
512
+ __typename?: 'BundleRequest';
513
+ extension?: Maybe<Array<Maybe<FhirExtension>>>;
514
+ id?: Maybe<Scalars['String']['output']>;
515
+ ifMatch?: Maybe<Scalars['String']['output']>;
516
+ ifModifiedSince?: Maybe<Scalars['Instant']['output']>;
517
+ ifNoneExist?: Maybe<Scalars['String']['output']>;
518
+ ifNoneMatch?: Maybe<Scalars['String']['output']>;
519
+ method?: Maybe<Scalars['Code']['output']>;
520
+ modifierExtension?: Maybe<Array<Maybe<FhirExtension>>>;
521
+ url?: Maybe<Scalars['URI']['output']>;
522
+ };
523
+ export type BundleResponse = {
524
+ __typename?: 'BundleResponse';
525
+ etag?: Maybe<Scalars['String']['output']>;
526
+ extension?: Maybe<Array<Maybe<FhirExtension>>>;
527
+ id?: Maybe<Scalars['String']['output']>;
528
+ lastModified?: Maybe<Scalars['Instant']['output']>;
529
+ location?: Maybe<Scalars['URI']['output']>;
530
+ modifierExtension?: Maybe<Array<Maybe<FhirExtension>>>;
531
+ outcome?: Maybe<Resource>;
532
+ status?: Maybe<Scalars['String']['output']>;
533
+ };
534
+ export type BundleSearch = {
535
+ __typename?: 'BundleSearch';
536
+ extension?: Maybe<Array<Maybe<FhirExtension>>>;
537
+ id?: Maybe<Scalars['String']['output']>;
538
+ mode?: Maybe<Scalars['Code']['output']>;
539
+ modifierExtension?: Maybe<Array<Maybe<FhirExtension>>>;
540
+ score?: Maybe<Scalars['Float']['output']>;
541
+ };
498
542
  export type Cache = {
499
543
  __typename?: 'Cache';
500
544
  maxSizeBytes: Scalars['Float']['output'];
@@ -583,11 +627,21 @@ export type CarePlanResource = {
583
627
  /** The human-readable title of the CarePlan. */
584
628
  title?: Maybe<Scalars['String']['output']>;
585
629
  };
630
+ export type CareTeam = {
631
+ __typename?: 'CareTeam';
632
+ id: Scalars['ID']['output'];
633
+ };
586
634
  export type CareTeamParticipant = {
587
635
  __typename?: 'CareTeamParticipant';
588
636
  member?: Maybe<CareTeamParticipantMember>;
589
637
  role?: Maybe<Array<Maybe<CodeableConcept>>>;
590
638
  };
639
+ export type CareTeamParticipantInput = {
640
+ id?: InputMaybe<Scalars['String']['input']>;
641
+ member: ReferenceInput;
642
+ period?: InputMaybe<PeriodInput>;
643
+ role?: InputMaybe<Array<InputMaybe<CodeableConceptInput>>>;
644
+ };
591
645
  export type CareTeamParticipantMember = Organization | Practitioner | PractitionerRole | RelatedPerson | ResourceReference;
592
646
  export type CareTeamQueryResults = PagedQueryResults & {
593
647
  __typename?: 'CareTeamQueryResults';
@@ -923,6 +977,8 @@ export type Connection = {
923
977
  created: Scalars['DateTime']['output'];
924
978
  /** Uniquely identifies a data source */
925
979
  id: Scalars['String']['output'];
980
+ /** Specifies whether the connection is direct or indirect or proa */
981
+ integrationType?: Maybe<Scalars['String']['output']>;
926
982
  /** Data source is direct or not */
927
983
  isDirect: Scalars['Boolean']['output'];
928
984
  /** Last sync datetime */
@@ -1260,6 +1316,8 @@ export type DataSource = {
1260
1316
  category: ConnectionCategory;
1261
1317
  /** Uniquely identifies a data source */
1262
1318
  id: Scalars['String']['output'];
1319
+ /** Specifies whether the connection is direct or indirect or proa */
1320
+ integrationType?: Maybe<Scalars['String']['output']>;
1263
1321
  /** Data source is direct or not */
1264
1322
  isDirect: Scalars['Boolean']['output'];
1265
1323
  /** Name of data source */
@@ -3348,6 +3406,7 @@ export type Mutation = {
3348
3406
  /** @deprecated Use `updateTaskStatus` instead. */
3349
3407
  taskUpdateStatus?: Maybe<TaskUpdateStatusResponse>;
3350
3408
  updateAppointment: Appointment;
3409
+ updateCareTeamMember: CareTeam;
3351
3410
  updateDeviceRegistration?: Maybe<OperationOutcome>;
3352
3411
  updatePersonAndPatient?: Maybe<UpdatedPersonMetadata>;
3353
3412
  updatePersonDetails: Array<UpdatePersonDetailsOutput>;
@@ -3527,6 +3586,9 @@ export type MutationTaskUpdateStatusArgs = {
3527
3586
  export type MutationUpdateAppointmentArgs = {
3528
3587
  appointment: UpdateAppointmentInput;
3529
3588
  };
3589
+ export type MutationUpdateCareTeamMemberArgs = {
3590
+ participant: Array<InputMaybe<CareTeamParticipantInput>>;
3591
+ };
3530
3592
  export type MutationUpdateDeviceRegistrationArgs = {
3531
3593
  input: UpdateDeviceRegistrationRequest;
3532
3594
  };
@@ -4750,6 +4812,14 @@ export type Query = {
4750
4812
  questionnaire?: Maybe<FhirFormQuestionnaire>;
4751
4813
  questionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
4752
4814
  questionnaireResponses?: Maybe<QuestionnaireResponseBundle>;
4815
+ /**
4816
+ * Questionnaire
4817
+ * A structured set of questions intended to guide the collection of answers from
4818
+ * end-users. Questionnaires provide detailed control over order, presentation,
4819
+ * phraseology and grouping to allow coherent, consistent data collection.
4820
+ * If the element is present, it must have either a @value, an @id, or extensions
4821
+ */
4822
+ questionnaires?: Maybe<QuestionnaireBundle>;
4753
4823
  refresh: RefreshToken;
4754
4824
  relatedPersons?: Maybe<RelatedPersonBundle>;
4755
4825
  requestConnection?: Maybe<RequestConnectionOutput>;
@@ -4761,6 +4831,8 @@ export type Query = {
4761
4831
  * Searches providers based on filters.
4762
4832
  */
4763
4833
  searchProviders: SearchProvidersResults;
4834
+ serviceRequests?: Maybe<ServiceRequestBundle>;
4835
+ specimens?: Maybe<SpecimenBundle>;
4764
4836
  status?: Maybe<Scalars['String']['output']>;
4765
4837
  subscription_subscription?: Maybe<Subscription_SubscriptionBundle>;
4766
4838
  userProfile?: Maybe<Person>;
@@ -5038,6 +5110,9 @@ export type QueryQuestionnaireResponsesArgs = {
5038
5110
  questionnaire?: InputMaybe<SearchReference>;
5039
5111
  status?: InputMaybe<SearchToken>;
5040
5112
  };
5113
+ export type QueryQuestionnairesArgs = {
5114
+ parameters: QuestionnaireSearchParameters;
5115
+ };
5041
5116
  export type QueryRelatedPersonsArgs = {
5042
5117
  _count?: InputMaybe<Scalars['Int']['input']>;
5043
5118
  _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
@@ -5059,6 +5134,24 @@ export type QuerySearchHealthResourcesArgs = {
5059
5134
  export type QuerySearchProvidersArgs = {
5060
5135
  searchProvidersInput?: InputMaybe<SearchProvidersInput>;
5061
5136
  };
5137
+ export type QueryServiceRequestsArgs = {
5138
+ _count?: InputMaybe<Scalars['Int']['input']>;
5139
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
5140
+ _lastUpdated?: InputMaybe<SearchDate>;
5141
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5142
+ _total?: InputMaybe<TotalType>;
5143
+ id?: InputMaybe<SearchString>;
5144
+ patient?: InputMaybe<SearchReference>;
5145
+ };
5146
+ export type QuerySpecimensArgs = {
5147
+ _count?: InputMaybe<Scalars['Int']['input']>;
5148
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
5149
+ _lastUpdated?: InputMaybe<SearchDate>;
5150
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5151
+ _total?: InputMaybe<TotalType>;
5152
+ id?: InputMaybe<SearchString>;
5153
+ patient?: InputMaybe<SearchReference>;
5154
+ };
5062
5155
  export type QuerySubscription_SubscriptionArgs = {
5063
5156
  _count?: InputMaybe<Scalars['Int']['input']>;
5064
5157
  _debug?: InputMaybe<Scalars['Boolean']['input']>;
@@ -5109,6 +5202,26 @@ export type QuestionnaireAnswerOptionValueReferenceReference = {
5109
5202
  reference?: Maybe<Scalars['String']['output']>;
5110
5203
  type?: Maybe<Scalars['URI']['output']>;
5111
5204
  };
5205
+ export type QuestionnaireBundle = {
5206
+ __typename?: 'QuestionnaireBundle';
5207
+ entry?: Maybe<Array<Maybe<QuestionnaireBundleEntry>>>;
5208
+ id?: Maybe<Scalars['String']['output']>;
5209
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
5210
+ meta?: Maybe<Meta>;
5211
+ timestamp?: Maybe<Scalars['Instant']['output']>;
5212
+ total?: Maybe<Scalars['Int']['output']>;
5213
+ type?: Maybe<Scalars['Code']['output']>;
5214
+ };
5215
+ export type QuestionnaireBundleEntry = {
5216
+ __typename?: 'QuestionnaireBundleEntry';
5217
+ fullUrl?: Maybe<Scalars['URI']['output']>;
5218
+ id?: Maybe<Scalars['String']['output']>;
5219
+ link?: Maybe<Array<Maybe<BundleLink>>>;
5220
+ request?: Maybe<BundleRequest>;
5221
+ resource?: Maybe<Questionnaire>;
5222
+ response?: Maybe<BundleResponse>;
5223
+ search?: Maybe<BundleSearch>;
5224
+ };
5112
5225
  export type QuestionnaireEnableWhen = {
5113
5226
  __typename?: 'QuestionnaireEnableWhen';
5114
5227
  answerBoolean?: Maybe<Scalars['Boolean']['output']>;
@@ -5320,6 +5433,134 @@ export type QuestionnaireResponse_Input = {
5320
5433
  source?: InputMaybe<Scalars['String']['input']>;
5321
5434
  subject?: InputMaybe<Scalars['String']['input']>;
5322
5435
  };
5436
+ export type QuestionnaireSearchParameters = {
5437
+ /** limit records to this count. Default is 10 */
5438
+ _count?: InputMaybe<Scalars['Int']['input']>;
5439
+ /** page number to retrieve */
5440
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
5441
+ /**
5442
+ * _id (FHIR type: token)
5443
+ * Logical id of this artifact
5444
+ */
5445
+ _id?: InputMaybe<SearchString>;
5446
+ /**
5447
+ * _lastUpdated (FHIR type: date)
5448
+ * When the resource version last changed
5449
+ */
5450
+ _lastUpdated?: InputMaybe<SearchDate>;
5451
+ /**
5452
+ * _profile (FHIR type: uri)
5453
+ * Profiles this resource claims to conform to
5454
+ */
5455
+ _profile?: InputMaybe<SearchString>;
5456
+ /**
5457
+ * _security (FHIR type: token)
5458
+ * Security Labels applied to this resource
5459
+ */
5460
+ _security?: InputMaybe<SearchToken>;
5461
+ /**
5462
+ * sort records by these fields. The fields can be nested fields. Prepend with "-" to indicate descending sort
5463
+ * Examples: ["id", "-meta.lastUpdated"]
5464
+ */
5465
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
5466
+ /**
5467
+ * _source (FHIR type: uri)
5468
+ * Identifies where the resource comes from
5469
+ */
5470
+ _source?: InputMaybe<SearchString>;
5471
+ /**
5472
+ * _tag (FHIR type: token)
5473
+ * Tags applied to this resource
5474
+ */
5475
+ _tag?: InputMaybe<SearchToken>;
5476
+ /** return total number of records that meet this query */
5477
+ _total?: InputMaybe<TotalType>;
5478
+ /**
5479
+ * code (FHIR type: token)
5480
+ * A code that corresponds to one of its items in the questionnaire
5481
+ */
5482
+ code?: InputMaybe<SearchToken>;
5483
+ /**
5484
+ * context (FHIR type: token)
5485
+ * A use context assigned to the questionnaire
5486
+ */
5487
+ context?: InputMaybe<SearchToken>;
5488
+ /**
5489
+ * context-quantity (FHIR type: quantity)
5490
+ * A quantity- or range-valued use context assigned to the questionnaire
5491
+ */
5492
+ context_quantity?: InputMaybe<SearchQuantity>;
5493
+ /**
5494
+ * context-type (FHIR type: token)
5495
+ * A type of use context assigned to the questionnaire
5496
+ */
5497
+ context_type?: InputMaybe<SearchToken>;
5498
+ /**
5499
+ * date (FHIR type: date)
5500
+ * The questionnaire publication date
5501
+ */
5502
+ date?: InputMaybe<SearchDate>;
5503
+ /**
5504
+ * definition (FHIR type: uri)
5505
+ * ElementDefinition - details for the item
5506
+ */
5507
+ definition?: InputMaybe<SearchString>;
5508
+ /**
5509
+ * description (FHIR type: string)
5510
+ * The description of the questionnaire
5511
+ */
5512
+ description?: InputMaybe<SearchString>;
5513
+ /**
5514
+ * effective (FHIR type: date)
5515
+ * The time during which the questionnaire is intended to be in use
5516
+ */
5517
+ effective?: InputMaybe<SearchDate>;
5518
+ /**
5519
+ * identifier (FHIR type: token)
5520
+ * External identifier for the questionnaire
5521
+ */
5522
+ identifier?: InputMaybe<SearchToken>;
5523
+ /**
5524
+ * jurisdiction (FHIR type: token)
5525
+ * Intended jurisdiction for the questionnaire
5526
+ */
5527
+ jurisdiction?: InputMaybe<SearchToken>;
5528
+ /**
5529
+ * name (FHIR type: string)
5530
+ * Computationally friendly name of the questionnaire
5531
+ */
5532
+ name?: InputMaybe<SearchString>;
5533
+ /**
5534
+ * publisher (FHIR type: string)
5535
+ * Name of the publisher of the questionnaire
5536
+ */
5537
+ publisher?: InputMaybe<SearchString>;
5538
+ /**
5539
+ * status (FHIR type: token)
5540
+ * The current status of the questionnaire
5541
+ */
5542
+ status?: InputMaybe<SearchToken>;
5543
+ /**
5544
+ * subject-type (FHIR type: token)
5545
+ * Resource that can be subject of QuestionnaireResponse
5546
+ */
5547
+ subject_type?: InputMaybe<SearchToken>;
5548
+ /**
5549
+ * title (FHIR type: string)
5550
+ * The human-friendly name of the questionnaire
5551
+ */
5552
+ title?: InputMaybe<SearchString>;
5553
+ /**
5554
+ * url (FHIR type: uri)
5555
+ * The uri that identifies the questionnaire
5556
+ */
5557
+ url?: InputMaybe<SearchString>;
5558
+ /**
5559
+ * version (FHIR type: token)
5560
+ * The business version of the questionnaire
5561
+ */
5562
+ version?: InputMaybe<SearchToken>;
5563
+ };
5323
5564
  export declare enum Questionnaire_Enum_Schema {
5324
5565
  QuestionnaireResponse = "QuestionnaireResponse"
5325
5566
  }
@@ -5721,6 +5962,21 @@ export type SearchProvidersResults = {
5721
5962
  pagingInfo?: Maybe<PagingInfoType>;
5722
5963
  results?: Maybe<Array<Maybe<SearchProvidersResult>>>;
5723
5964
  };
5965
+ export type SearchQuantity = {
5966
+ code?: InputMaybe<Scalars['String']['input']>;
5967
+ missing?: InputMaybe<Scalars['Boolean']['input']>;
5968
+ notEquals?: InputMaybe<SearchQuantityValue>;
5969
+ prefix?: InputMaybe<Scalars['String']['input']>;
5970
+ searchType?: InputMaybe<Scalars['String']['input']>;
5971
+ system?: InputMaybe<Scalars['String']['input']>;
5972
+ value?: InputMaybe<Scalars['Decimal']['input']>;
5973
+ };
5974
+ export type SearchQuantityValue = {
5975
+ code?: InputMaybe<Scalars['String']['input']>;
5976
+ prefix?: InputMaybe<Scalars['String']['input']>;
5977
+ system?: InputMaybe<Scalars['String']['input']>;
5978
+ value?: InputMaybe<Scalars['Decimal']['input']>;
5979
+ };
5724
5980
  export type SearchReference = {
5725
5981
  value?: InputMaybe<Scalars['String']['input']>;
5726
5982
  };
@@ -5935,9 +6191,20 @@ export type SpecimenCollectionCollectorReference = {
5935
6191
  export type SpecimenResource = {
5936
6192
  __typename?: 'SpecimenResource';
5937
6193
  accessionIdentifier?: Maybe<Identifier>;
6194
+ collection?: Maybe<SpecimenResourceCollection>;
6195
+ condition?: Maybe<Array<Maybe<CodeableConcept>>>;
6196
+ id: Scalars['ID']['output'];
5938
6197
  identifier?: Maybe<Array<Maybe<Identifier>>>;
6198
+ resourceType?: Maybe<Scalars['String']['output']>;
6199
+ status?: Maybe<Scalars['Code']['output']>;
6200
+ subject?: Maybe<SpecimenSubject>;
5939
6201
  type?: Maybe<CodeableConcept>;
5940
6202
  };
6203
+ export type SpecimenResourceCollection = {
6204
+ __typename?: 'SpecimenResourceCollection';
6205
+ bodySite?: Maybe<CodeableConcept>;
6206
+ };
6207
+ export type SpecimenSubject = Patient;
5941
6208
  export type SpecimenSubjectReference = {
5942
6209
  __typename?: 'SpecimenSubjectReference';
5943
6210
  display?: Maybe<Scalars['String']['output']>;
@@ -6083,6 +6350,8 @@ export type SyncErrorCoding = {
6083
6350
  };
6084
6351
  /** Defines the data sync statuses */
6085
6352
  export declare enum SyncStatus {
6353
+ DataDeleted = "DATA_DELETED",
6354
+ Deleting = "DELETING",
6086
6355
  Error = "ERROR",
6087
6356
  Pending = "PENDING",
6088
6357
  Retrieved = "RETRIEVED",
@@ -6349,8 +6618,14 @@ export type Variant = {
6349
6618
  percent: Scalars['Float']['output'];
6350
6619
  value: Scalars['Boolean']['output'];
6351
6620
  };
6621
+ /** Error codes for verification failures */
6622
+ export declare enum VerificationErrorCode {
6623
+ PersonMatchError = "PERSON_MATCH_ERROR",
6624
+ ServerError = "SERVER_ERROR"
6625
+ }
6352
6626
  export type VerificationResult = {
6353
6627
  __typename?: 'VerificationResult';
6628
+ errorCode?: Maybe<VerificationErrorCode>;
6354
6629
  failureAction?: Maybe<CodeableConcept>;
6355
6630
  id: Scalars['ID']['output'];
6356
6631
  implicitRules?: Maybe<Scalars['URI']['output']>;
@@ -413,6 +413,8 @@ export var SourceEnum;
413
413
  /** Defines the data sync statuses */
414
414
  export var SyncStatus;
415
415
  (function (SyncStatus) {
416
+ SyncStatus["DataDeleted"] = "DATA_DELETED";
417
+ SyncStatus["Deleting"] = "DELETING";
416
418
  SyncStatus["Error"] = "ERROR";
417
419
  SyncStatus["Pending"] = "PENDING";
418
420
  SyncStatus["Retrieved"] = "RETRIEVED";
@@ -438,3 +440,9 @@ export var TotalType;
438
440
  TotalType["Accurate"] = "accurate";
439
441
  TotalType["Estimate"] = "estimate";
440
442
  })(TotalType || (TotalType = {}));
443
+ /** Error codes for verification failures */
444
+ export var VerificationErrorCode;
445
+ (function (VerificationErrorCode) {
446
+ VerificationErrorCode["PersonMatchError"] = "PERSON_MATCH_ERROR";
447
+ VerificationErrorCode["ServerError"] = "SERVER_ERROR";
448
+ })(VerificationErrorCode || (VerificationErrorCode = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.44.0",
3
+ "version": "1.45.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",