@icanbwell/bwell-sdk-ts 1.40.0 → 1.41.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.
@@ -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,21 @@ 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>>>;
3628
+ meta?: Maybe<Meta>;
3588
3629
  name?: Maybe<Array<Maybe<HumanName>>>;
3630
+ resourceType?: Maybe<Scalars['String']['output']>;
3589
3631
  telecom?: Maybe<Array<Maybe<ContactPoint>>>;
3590
3632
  };
3633
+ export type PatientBundle = {
3634
+ __typename?: 'PatientBundle';
3635
+ entry?: Maybe<Array<Maybe<PatientBundleEntry>>>;
3636
+ total?: Maybe<Scalars['Int']['output']>;
3637
+ };
3638
+ export type PatientBundleEntry = {
3639
+ __typename?: 'PatientBundleEntry';
3640
+ resource?: Maybe<Patient>;
3641
+ };
3591
3642
  export type PatientCommunication = {
3592
3643
  __typename?: 'PatientCommunication';
3593
3644
  extension?: Maybe<Array<Maybe<FhirExtension>>>;
@@ -3843,9 +3894,9 @@ export type Position = {
3843
3894
  /** Type representing a practitioner with a human name */
3844
3895
  export type Practitioner = {
3845
3896
  __typename?: 'Practitioner';
3846
- id?: Maybe<Scalars['ID']['output']>;
3897
+ id: Scalars['ID']['output'];
3847
3898
  /** The identifier of the practitioner. */
3848
- identifier?: Maybe<Array<Identifier>>;
3899
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3849
3900
  /** The human name of the practitioner */
3850
3901
  name?: Maybe<Array<Maybe<HumanName>>>;
3851
3902
  resourceType?: Maybe<Scalars['String']['output']>;
@@ -3853,27 +3904,27 @@ export type Practitioner = {
3853
3904
  /** A reference to a practitioner who may be involved in an encounter. */
3854
3905
  export type PractitionerReference = {
3855
3906
  __typename?: 'PractitionerReference';
3856
- address?: Maybe<Array<Address>>;
3907
+ address?: Maybe<Array<Maybe<Address>>>;
3857
3908
  id?: Maybe<Scalars['ID']['output']>;
3858
- identifier?: Maybe<Array<Identifier>>;
3909
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3859
3910
  /** The human name of the practitioner. */
3860
3911
  name?: Maybe<Array<Maybe<HumanName>>>;
3861
- telecom?: Maybe<Array<ContactPoint>>;
3912
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
3862
3913
  };
3863
3914
  export type PractitionerRole = {
3864
3915
  __typename?: 'PractitionerRole';
3865
3916
  active?: Maybe<Scalars['Boolean']['output']>;
3866
3917
  code?: Maybe<Array<CodeableConcept>>;
3867
3918
  endpoint?: Maybe<Array<Maybe<Endpoint>>>;
3868
- id?: Maybe<Scalars['ID']['output']>;
3869
- identifier?: Maybe<Array<Identifier>>;
3919
+ id: Scalars['ID']['output'];
3920
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
3870
3921
  location?: Maybe<Location>;
3871
3922
  organization?: Maybe<Organization>;
3872
3923
  period?: Maybe<Period>;
3873
3924
  practitioner?: Maybe<Practitioner>;
3874
3925
  resourceType?: Maybe<Scalars['String']['output']>;
3875
3926
  specialty?: Maybe<Array<CodeableConcept>>;
3876
- telecom?: Maybe<Array<ContactPoint>>;
3927
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
3877
3928
  };
3878
3929
  export type PrefetchAssets = {
3879
3930
  __typename?: 'PrefetchAssets';
@@ -4297,6 +4348,8 @@ export type Query = {
4297
4348
  getVitalSigns: ObservationQueryResults;
4298
4349
  initSdk: SdkConfiguration;
4299
4350
  login: LogInResponse;
4351
+ onboardingComposition?: Maybe<OnboardingComposition>;
4352
+ patients?: Maybe<PatientBundle>;
4300
4353
  person?: Maybe<Person>;
4301
4354
  placeholderQuery?: Maybe<Scalars['String']['output']>;
4302
4355
  profile?: Maybe<Profile>;
@@ -4309,6 +4362,7 @@ export type Query = {
4309
4362
  questionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
4310
4363
  questionnaireResponses?: Maybe<QuestionnaireResponseBundle>;
4311
4364
  refresh: RefreshToken;
4365
+ relatedPersons?: Maybe<RelatedPersonBundle>;
4312
4366
  requestConnection?: Maybe<RequestConnectionOutput>;
4313
4367
  search?: Maybe<Array<Maybe<Consent>>>;
4314
4368
  /** Unified search returns a hybrid set of any search results matching search and filter criteria */
@@ -4364,6 +4418,7 @@ export type QueryConsentAsyncTasksArgs = {
4364
4418
  export type QueryDiagnosticReportsArgs = {
4365
4419
  _count?: InputMaybe<Scalars['Int']['input']>;
4366
4420
  _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
4421
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4367
4422
  _total?: InputMaybe<TotalType>;
4368
4423
  id?: InputMaybe<SearchString>;
4369
4424
  };
@@ -4487,6 +4542,14 @@ export type QueryLoginArgs = {
4487
4542
  email: Scalars['String']['input'];
4488
4543
  password: Scalars['String']['input'];
4489
4544
  };
4545
+ export type QueryPatientsArgs = {
4546
+ _count?: InputMaybe<Scalars['Int']['input']>;
4547
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
4548
+ _lastUpdated?: InputMaybe<SearchDate>;
4549
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4550
+ _total?: InputMaybe<TotalType>;
4551
+ id?: InputMaybe<SearchString>;
4552
+ };
4490
4553
  export type QueryPersonArgs = {
4491
4554
  id: Scalars['ID']['input'];
4492
4555
  };
@@ -4530,6 +4593,15 @@ export type QueryQuestionnaireResponsesArgs = {
4530
4593
  questionnaire?: InputMaybe<SearchReference>;
4531
4594
  status?: InputMaybe<SearchToken>;
4532
4595
  };
4596
+ export type QueryRelatedPersonsArgs = {
4597
+ _count?: InputMaybe<Scalars['Int']['input']>;
4598
+ _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
4599
+ _lastUpdated?: InputMaybe<SearchDate>;
4600
+ _sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
4601
+ _total?: InputMaybe<TotalType>;
4602
+ id?: InputMaybe<SearchString>;
4603
+ patient?: InputMaybe<SearchReference>;
4604
+ };
4533
4605
  export type QueryRequestConnectionArgs = {
4534
4606
  input?: InputMaybe<RequestConnectionInput>;
4535
4607
  };
@@ -4894,14 +4966,28 @@ export type RegCodePersonDto = {
4894
4966
  export type RelatedPerson = {
4895
4967
  __typename?: 'RelatedPerson';
4896
4968
  active?: Maybe<Scalars['Boolean']['output']>;
4897
- address?: Maybe<Array<Address>>;
4898
- id?: Maybe<Scalars['ID']['output']>;
4899
- identifier?: Maybe<Array<Identifier>>;
4969
+ address?: Maybe<Array<Maybe<Address>>>;
4970
+ id: Scalars['ID']['output'];
4971
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
4972
+ meta?: Maybe<Meta>;
4900
4973
  name?: Maybe<Array<Maybe<HumanName>>>;
4901
- patient?: Maybe<Patient>;
4902
- relationship?: Maybe<Array<CodeableConcept>>;
4974
+ patient?: Maybe<RelatedPersonPatientReference>;
4975
+ relationship?: Maybe<Array<Maybe<CodeableConcept>>>;
4903
4976
  resourceType?: Maybe<Scalars['String']['output']>;
4904
- telecom?: Maybe<Array<ContactPoint>>;
4977
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
4978
+ };
4979
+ export type RelatedPersonBundle = {
4980
+ __typename?: 'RelatedPersonBundle';
4981
+ entry?: Maybe<Array<Maybe<RelatedPersonBundleEntry>>>;
4982
+ total?: Maybe<Scalars['Int']['output']>;
4983
+ };
4984
+ export type RelatedPersonBundleEntry = {
4985
+ __typename?: 'RelatedPersonBundleEntry';
4986
+ resource?: Maybe<RelatedPerson>;
4987
+ };
4988
+ export type RelatedPersonPatientReference = {
4989
+ __typename?: 'RelatedPersonPatientReference';
4990
+ resource?: Maybe<Patient>;
4905
4991
  };
4906
4992
  export type RequestConnectionInput = {
4907
4993
  bwellFhirPersonId?: InputMaybe<Scalars['String']['input']>;
@@ -5271,7 +5357,7 @@ export declare enum SourceEnum {
5271
5357
  export type SpecimenResource = {
5272
5358
  __typename?: 'SpecimenResource';
5273
5359
  accessionIdentifier?: Maybe<Identifier>;
5274
- identifier?: Maybe<Array<Identifier>>;
5360
+ identifier?: Maybe<Array<Maybe<Identifier>>>;
5275
5361
  type?: Maybe<CodeableConcept>;
5276
5362
  };
5277
5363
  /** Represents the subject (patient or group) of the care plan. */
@@ -5439,6 +5525,12 @@ export type TaskForV2 = {
5439
5525
  __typename?: 'TaskForV2';
5440
5526
  id?: Maybe<Scalars['String']['output']>;
5441
5527
  };
5528
+ export type TaskOutput = {
5529
+ __typename?: 'TaskOutput';
5530
+ type?: Maybe<CodeableConcept>;
5531
+ valueCodeableConcept?: Maybe<CodeableConcept>;
5532
+ valueString?: Maybe<Scalars['String']['output']>;
5533
+ };
5442
5534
  export type TaskQueryResults = PagedQueryResults & {
5443
5535
  __typename?: 'TaskQueryResults';
5444
5536
  paging_info?: Maybe<PagingResults>;
@@ -5452,6 +5544,7 @@ export type TaskRequest = {
5452
5544
  identifier?: InputMaybe<SearchToken>;
5453
5545
  page?: InputMaybe<Scalars['Int']['input']>;
5454
5546
  pageSize?: InputMaybe<Scalars['Int']['input']>;
5547
+ performer?: InputMaybe<SearchToken>;
5455
5548
  sortMethod?: InputMaybe<Scalars['String']['input']>;
5456
5549
  status?: InputMaybe<SearchToken>;
5457
5550
  subject?: InputMaybe<SearchToken>;
@@ -5459,17 +5552,21 @@ export type TaskRequest = {
5459
5552
  };
5460
5553
  export type TaskResource = {
5461
5554
  __typename?: 'TaskResource';
5555
+ basedOn?: Maybe<Array<Maybe<Reference>>>;
5462
5556
  businessStatus?: Maybe<CodeableConcept>;
5463
5557
  code?: Maybe<CodeableConcept>;
5464
5558
  description?: Maybe<Scalars['String']['output']>;
5465
5559
  executionPeriod?: Maybe<Period>;
5466
5560
  extension?: Maybe<Array<Maybe<Extension>>>;
5561
+ focus?: Maybe<Reference>;
5467
5562
  for?: Maybe<Reference>;
5468
5563
  id: Scalars['ID']['output'];
5469
5564
  identifier?: Maybe<Array<Maybe<Identifier>>>;
5470
5565
  instantiatesCanonical?: Maybe<Scalars['String']['output']>;
5471
5566
  lastModified?: Maybe<Scalars['Date']['output']>;
5472
5567
  meta?: Maybe<Meta>;
5568
+ output?: Maybe<Array<Maybe<TaskOutput>>>;
5569
+ priority?: Maybe<Coding>;
5473
5570
  resourceType?: Maybe<Scalars['String']['output']>;
5474
5571
  status?: Maybe<Coding>;
5475
5572
  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.40.0",
3
+ "version": "1.41.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",