@icanbwell/bwell-sdk-ts 1.39.0 → 1.40.0-rc.1758880937

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.
@@ -163,6 +163,14 @@ export type AccessTokenPayload = {
163
163
  jwtToken: Scalars['String']['output'];
164
164
  payload?: Maybe<PayloadGql>;
165
165
  };
166
+ /** Defines connection information after activating a direct connection */
167
+ export type ActivateDirectConnection = {
168
+ __typename?: 'ActivateDirectConnection';
169
+ /** Status of connection */
170
+ status?: Maybe<DataConnectionStatus>;
171
+ /** Datetime when status updated */
172
+ statusUpdated: Scalars['DateTime']['output'];
173
+ };
166
174
  export type Activity = {
167
175
  __typename?: 'Activity';
168
176
  detail?: Maybe<Detail>;
@@ -2759,6 +2767,8 @@ export type Money = {
2759
2767
  };
2760
2768
  export type Mutation = {
2761
2769
  __typename?: 'Mutation';
2770
+ /** Activate a direct connection */
2771
+ activateDirectConnection: ActivateDirectConnection;
2762
2772
  createAuthCode: AuthCode;
2763
2773
  /** Create a connection */
2764
2774
  createConnection: Connection;
@@ -2968,6 +2978,7 @@ export type Mutation = {
2968
2978
  findOrCreatePatient?: Maybe<Patient>;
2969
2979
  interacted?: Maybe<Scalars['Boolean']['output']>;
2970
2980
  itemInteracted?: Maybe<Scalars['Boolean']['output']>;
2981
+ makeOnboardingCompositionFinal?: Maybe<OnboardingComposition>;
2971
2982
  /**
2972
2983
  * Utilizes the Adaptive Questionnaire workflow to determine the next question
2973
2984
  * and contains the questionnaire within the QuestionnaireResponse
@@ -2980,6 +2991,8 @@ export type Mutation = {
2980
2991
  redisClearQuestionnairesCache: RedisCacheCleanResponse;
2981
2992
  requestConnection?: Maybe<RequestConnectionOutput>;
2982
2993
  retryConsentJob?: Maybe<Scalars['Void']['output']>;
2994
+ /** Saves a complete questionnaire response (create or update) */
2995
+ saveQuestionnaireResponse?: Maybe<QuestionnaireResponse>;
2983
2996
  /** @deprecated Use `updateTaskStatus` instead. */
2984
2997
  taskUpdateStatus?: Maybe<TaskUpdateStatusResponse>;
2985
2998
  updateAppointment: Appointment;
@@ -2995,6 +3008,9 @@ export type Mutation = {
2995
3008
  upsertPerson?: Maybe<PersonWithMetadata>;
2996
3009
  upsertPersonWithRegCode?: Maybe<TaskWithMetadata>;
2997
3010
  };
3011
+ export type MutationActivateDirectConnectionArgs = {
3012
+ connectionId: Scalars['String']['input'];
3013
+ };
2998
3014
  export type MutationCreateAuthCodeArgs = {
2999
3015
  clientKey: Scalars['String']['input'];
3000
3016
  clientPersonId: Scalars['String']['input'];
@@ -3147,6 +3163,9 @@ export type MutationRequestConnectionArgs = {
3147
3163
  export type MutationRetryConsentJobArgs = {
3148
3164
  jobID?: InputMaybe<Scalars['String']['input']>;
3149
3165
  };
3166
+ export type MutationSaveQuestionnaireResponseArgs = {
3167
+ input?: InputMaybe<QuestionnaireResponseInput>;
3168
+ };
3150
3169
  export type MutationTaskUpdateStatusArgs = {
3151
3170
  input: TaskUpdateStatusRequest;
3152
3171
  };
@@ -3335,6 +3354,26 @@ export type ObservationResource = {
3335
3354
  /** Various types of values that an Observation can have, only one of these would typically be populated. */
3336
3355
  value?: Maybe<Value>;
3337
3356
  };
3357
+ export type OnboardingComposition = {
3358
+ __typename?: 'OnboardingComposition';
3359
+ id?: Maybe<Scalars['String']['output']>;
3360
+ patientId?: Maybe<Scalars['String']['output']>;
3361
+ sections?: Maybe<Array<Maybe<OnboardingSection>>>;
3362
+ status?: Maybe<Scalars['String']['output']>;
3363
+ };
3364
+ export declare enum OnboardingCompositionStatus {
3365
+ Amended = "amended",
3366
+ EnteredInError = "entered_in_error",
3367
+ Final = "final",
3368
+ Preliminary = "preliminary"
3369
+ }
3370
+ export type OnboardingSection = {
3371
+ __typename?: 'OnboardingSection';
3372
+ id?: Maybe<Scalars['String']['output']>;
3373
+ isStepCompleted?: Maybe<Scalars['Boolean']['output']>;
3374
+ questionnaireResponseId?: Maybe<Scalars['String']['output']>;
3375
+ title?: Maybe<Scalars['String']['output']>;
3376
+ };
3338
3377
  export declare enum Operation {
3339
3378
  CancelDelete = "CANCEL_DELETE",
3340
3379
  ConfirmDelete = "CONFIRM_DELETE",
@@ -3457,16 +3496,16 @@ export type Organization = {
3457
3496
  __typename?: 'Organization';
3458
3497
  /** Whether the organization's record is currently active. */
3459
3498
  active?: Maybe<Scalars['Boolean']['output']>;
3460
- address?: Maybe<Array<Address>>;
3499
+ address?: Maybe<Array<Maybe<Address>>>;
3461
3500
  alias?: Maybe<Scalars['String']['output']>;
3462
3501
  endpoint?: Maybe<Array<Maybe<Endpoint>>>;
3463
- id?: Maybe<Scalars['ID']['output']>;
3464
- identifier?: Maybe<Array<Identifier>>;
3502
+ id: Scalars['ID']['output'];
3503
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3465
3504
  meta?: Maybe<Meta>;
3466
3505
  /** The name of the organization. */
3467
3506
  name?: Maybe<Scalars['String']['output']>;
3468
3507
  resourceType?: Maybe<Scalars['String']['output']>;
3469
- telecom?: Maybe<Array<ContactPoint>>;
3508
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
3470
3509
  /** The kind(s) of organization (e.g., hospital, clinic, manufacturer) as coded concepts. */
3471
3510
  type?: Maybe<Array<CodeableConcept>>;
3472
3511
  };
@@ -3585,9 +3624,19 @@ export type Patient = {
3585
3624
  communication?: Maybe<Array<Maybe<PatientCommunication>>>;
3586
3625
  gender?: Maybe<Scalars['Code']['output']>;
3587
3626
  id: Scalars['ID']['output'];
3627
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3588
3628
  name?: Maybe<Array<Maybe<HumanName>>>;
3589
3629
  telecom?: Maybe<Array<Maybe<ContactPoint>>>;
3590
3630
  };
3631
+ export type PatientBundle = {
3632
+ __typename?: 'PatientBundle';
3633
+ entry?: Maybe<Array<Maybe<PatientBundleEntry>>>;
3634
+ total?: Maybe<Scalars['Int']['output']>;
3635
+ };
3636
+ export type PatientBundleEntry = {
3637
+ __typename?: 'PatientBundleEntry';
3638
+ resource?: Maybe<Patient>;
3639
+ };
3591
3640
  export type PatientCommunication = {
3592
3641
  __typename?: 'PatientCommunication';
3593
3642
  extension?: Maybe<Array<Maybe<FhirExtension>>>;
@@ -3843,9 +3892,9 @@ export type Position = {
3843
3892
  /** Type representing a practitioner with a human name */
3844
3893
  export type Practitioner = {
3845
3894
  __typename?: 'Practitioner';
3846
- id?: Maybe<Scalars['ID']['output']>;
3895
+ id: Scalars['ID']['output'];
3847
3896
  /** The identifier of the practitioner. */
3848
- identifier?: Maybe<Array<Identifier>>;
3897
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3849
3898
  /** The human name of the practitioner */
3850
3899
  name?: Maybe<Array<Maybe<HumanName>>>;
3851
3900
  resourceType?: Maybe<Scalars['String']['output']>;
@@ -3853,27 +3902,27 @@ export type Practitioner = {
3853
3902
  /** A reference to a practitioner who may be involved in an encounter. */
3854
3903
  export type PractitionerReference = {
3855
3904
  __typename?: 'PractitionerReference';
3856
- address?: Maybe<Array<Address>>;
3905
+ address?: Maybe<Array<Maybe<Address>>>;
3857
3906
  id?: Maybe<Scalars['ID']['output']>;
3858
- identifier?: Maybe<Array<Identifier>>;
3907
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3859
3908
  /** The human name of the practitioner. */
3860
3909
  name?: Maybe<Array<Maybe<HumanName>>>;
3861
- telecom?: Maybe<Array<ContactPoint>>;
3910
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
3862
3911
  };
3863
3912
  export type PractitionerRole = {
3864
3913
  __typename?: 'PractitionerRole';
3865
3914
  active?: Maybe<Scalars['Boolean']['output']>;
3866
3915
  code?: Maybe<Array<CodeableConcept>>;
3867
3916
  endpoint?: Maybe<Array<Maybe<Endpoint>>>;
3868
- id?: Maybe<Scalars['ID']['output']>;
3869
- identifier?: Maybe<Array<Identifier>>;
3917
+ id: Scalars['ID']['output'];
3918
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3870
3919
  location?: Maybe<Location>;
3871
3920
  organization?: Maybe<Organization>;
3872
3921
  period?: Maybe<Period>;
3873
3922
  practitioner?: Maybe<Practitioner>;
3874
3923
  resourceType?: Maybe<Scalars['String']['output']>;
3875
3924
  specialty?: Maybe<Array<CodeableConcept>>;
3876
- telecom?: Maybe<Array<ContactPoint>>;
3925
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
3877
3926
  };
3878
3927
  export type PrefetchAssets = {
3879
3928
  __typename?: 'PrefetchAssets';
@@ -4297,6 +4346,8 @@ export type Query = {
4297
4346
  getVitalSigns: ObservationQueryResults;
4298
4347
  initSdk: SdkConfiguration;
4299
4348
  login: LogInResponse;
4349
+ onboardingComposition?: Maybe<OnboardingComposition>;
4350
+ patients?: Maybe<PatientBundle>;
4300
4351
  person?: Maybe<Person>;
4301
4352
  placeholderQuery?: Maybe<Scalars['String']['output']>;
4302
4353
  profile?: Maybe<Profile>;
@@ -4309,6 +4360,7 @@ export type Query = {
4309
4360
  questionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
4310
4361
  questionnaireResponses?: Maybe<QuestionnaireResponseBundle>;
4311
4362
  refresh: RefreshToken;
4363
+ relatedPersons?: Maybe<RelatedPersonBundle>;
4312
4364
  requestConnection?: Maybe<RequestConnectionOutput>;
4313
4365
  search?: Maybe<Array<Maybe<Consent>>>;
4314
4366
  /** Unified search returns a hybrid set of any search results matching search and filter criteria */
@@ -4364,6 +4416,7 @@ export type QueryConsentAsyncTasksArgs = {
4364
4416
  export type QueryDiagnosticReportsArgs = {
4365
4417
  _count?: InputMaybe<Scalars['Int']['input']>;
4366
4418
  _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
4419
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4367
4420
  _total?: InputMaybe<TotalType>;
4368
4421
  id?: InputMaybe<SearchString>;
4369
4422
  };
@@ -4487,6 +4540,14 @@ export type QueryLoginArgs = {
4487
4540
  email: Scalars['String']['input'];
4488
4541
  password: Scalars['String']['input'];
4489
4542
  };
4543
+ export type QueryPatientsArgs = {
4544
+ _count?: InputMaybe<Scalars['Int']['input']>;
4545
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
4546
+ _lastUpdated?: InputMaybe<SearchDate>;
4547
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4548
+ _total?: InputMaybe<TotalType>;
4549
+ id?: InputMaybe<SearchString>;
4550
+ };
4490
4551
  export type QueryPersonArgs = {
4491
4552
  id: Scalars['ID']['input'];
4492
4553
  };
@@ -4530,6 +4591,15 @@ export type QueryQuestionnaireResponsesArgs = {
4530
4591
  questionnaire?: InputMaybe<SearchReference>;
4531
4592
  status?: InputMaybe<SearchToken>;
4532
4593
  };
4594
+ export type QueryRelatedPersonsArgs = {
4595
+ _count?: InputMaybe<Scalars['Int']['input']>;
4596
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
4597
+ _lastUpdated?: InputMaybe<SearchDate>;
4598
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4599
+ _total?: InputMaybe<TotalType>;
4600
+ id?: InputMaybe<SearchString>;
4601
+ patient?: InputMaybe<SearchReference>;
4602
+ };
4533
4603
  export type QueryRequestConnectionArgs = {
4534
4604
  input?: InputMaybe<RequestConnectionInput>;
4535
4605
  };
@@ -4894,14 +4964,27 @@ export type RegCodePersonDto = {
4894
4964
  export type RelatedPerson = {
4895
4965
  __typename?: 'RelatedPerson';
4896
4966
  active?: Maybe<Scalars['Boolean']['output']>;
4897
- address?: Maybe<Array<Address>>;
4898
- id?: Maybe<Scalars['ID']['output']>;
4899
- identifier?: Maybe<Array<Identifier>>;
4967
+ address?: Maybe<Array<Maybe<Address>>>;
4968
+ id: Scalars['ID']['output'];
4969
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
4900
4970
  name?: Maybe<Array<Maybe<HumanName>>>;
4901
- patient?: Maybe<Patient>;
4902
- relationship?: Maybe<Array<CodeableConcept>>;
4971
+ patient?: Maybe<RelatedPersonPatientReference>;
4972
+ relationship?: Maybe<Array<Maybe<CodeableConcept>>>;
4903
4973
  resourceType?: Maybe<Scalars['String']['output']>;
4904
- telecom?: Maybe<Array<ContactPoint>>;
4974
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
4975
+ };
4976
+ export type RelatedPersonBundle = {
4977
+ __typename?: 'RelatedPersonBundle';
4978
+ entry?: Maybe<Array<Maybe<RelatedPersonBundleEntry>>>;
4979
+ total?: Maybe<Scalars['Int']['output']>;
4980
+ };
4981
+ export type RelatedPersonBundleEntry = {
4982
+ __typename?: 'RelatedPersonBundleEntry';
4983
+ resource?: Maybe<RelatedPerson>;
4984
+ };
4985
+ export type RelatedPersonPatientReference = {
4986
+ __typename?: 'RelatedPersonPatientReference';
4987
+ resource?: Maybe<Patient>;
4905
4988
  };
4906
4989
  export type RequestConnectionInput = {
4907
4990
  bwellFhirPersonId?: InputMaybe<Scalars['String']['input']>;
@@ -5271,7 +5354,7 @@ export declare enum SourceEnum {
5271
5354
  export type SpecimenResource = {
5272
5355
  __typename?: 'SpecimenResource';
5273
5356
  accessionIdentifier?: Maybe<Identifier>;
5274
- identifier?: Maybe<Array<Identifier>>;
5357
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
5275
5358
  type?: Maybe<CodeableConcept>;
5276
5359
  };
5277
5360
  /** Represents the subject (patient or group) of the care plan. */
@@ -5439,6 +5522,12 @@ export type TaskForV2 = {
5439
5522
  __typename?: 'TaskForV2';
5440
5523
  id?: Maybe<Scalars['String']['output']>;
5441
5524
  };
5525
+ export type TaskOutput = {
5526
+ __typename?: 'TaskOutput';
5527
+ type?: Maybe<CodeableConcept>;
5528
+ valueCodeableConcept?: Maybe<CodeableConcept>;
5529
+ valueString?: Maybe<Scalars['String']['output']>;
5530
+ };
5442
5531
  export type TaskQueryResults = PagedQueryResults & {
5443
5532
  __typename?: 'TaskQueryResults';
5444
5533
  paging_info?: Maybe<PagingResults>;
@@ -5452,6 +5541,7 @@ export type TaskRequest = {
5452
5541
  identifier?: InputMaybe<SearchToken>;
5453
5542
  page?: InputMaybe<Scalars['Int']['input']>;
5454
5543
  pageSize?: InputMaybe<Scalars['Int']['input']>;
5544
+ performer?: InputMaybe<SearchToken>;
5455
5545
  sortMethod?: InputMaybe<Scalars['String']['input']>;
5456
5546
  status?: InputMaybe<SearchToken>;
5457
5547
  subject?: InputMaybe<SearchToken>;
@@ -5459,17 +5549,21 @@ export type TaskRequest = {
5459
5549
  };
5460
5550
  export type TaskResource = {
5461
5551
  __typename?: 'TaskResource';
5552
+ basedOn?: Maybe<Array<Maybe<Reference>>>;
5462
5553
  businessStatus?: Maybe<CodeableConcept>;
5463
5554
  code?: Maybe<CodeableConcept>;
5464
5555
  description?: Maybe<Scalars['String']['output']>;
5465
5556
  executionPeriod?: Maybe<Period>;
5466
5557
  extension?: Maybe<Array<Maybe<Extension>>>;
5558
+ focus?: Maybe<Reference>;
5467
5559
  for?: Maybe<Reference>;
5468
5560
  id: Scalars['ID']['output'];
5469
5561
  identifier?: Maybe<Array<Maybe<Identifier>>>;
5470
5562
  instantiatesCanonical?: Maybe<Scalars['String']['output']>;
5471
5563
  lastModified?: Maybe<Scalars['Date']['output']>;
5472
5564
  meta?: Maybe<Meta>;
5565
+ output?: Maybe<Array<Maybe<TaskOutput>>>;
5566
+ priority?: Maybe<Coding>;
5473
5567
  resourceType?: Maybe<Scalars['String']['output']>;
5474
5568
  status?: Maybe<Coding>;
5475
5569
  statusReason?: Maybe<CodeableConcept>;
@@ -252,6 +252,13 @@ export var ObservationCategory;
252
252
  ObservationCategory["Therapy"] = "THERAPY";
253
253
  ObservationCategory["VitalSigns"] = "VITAL_SIGNS";
254
254
  })(ObservationCategory || (ObservationCategory = {}));
255
+ export var OnboardingCompositionStatus;
256
+ (function (OnboardingCompositionStatus) {
257
+ OnboardingCompositionStatus["Amended"] = "amended";
258
+ OnboardingCompositionStatus["EnteredInError"] = "entered_in_error";
259
+ OnboardingCompositionStatus["Final"] = "final";
260
+ OnboardingCompositionStatus["Preliminary"] = "preliminary";
261
+ })(OnboardingCompositionStatus || (OnboardingCompositionStatus = {}));
255
262
  export var Operation;
256
263
  (function (Operation) {
257
264
  Operation["CancelDelete"] = "CANCEL_DELETE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.39.0",
3
+ "version": "1.40.0-rc.1758880937",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",