@icanbwell/bwell-sdk-ts 1.37.0 → 1.38.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.
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/questionnaire/index.d.ts +2 -1
- package/dist/api/base/questionnaire/index.js +1 -0
- package/dist/api/base/questionnaire/questionnaire-manager.d.ts +13 -2
- package/dist/api/base/questionnaire/questionnaire-responses-request.d.ts +28 -0
- package/dist/api/base/questionnaire/questionnaire-responses-request.js +46 -0
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.d.ts +9 -0
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.js +20 -0
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +11 -2
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +27 -3
- package/dist/api/graphql-api/questionnaire/index.d.ts +1 -0
- package/dist/api/graphql-api/questionnaire/index.js +1 -0
- package/dist/graphql/operations/index.d.ts +12 -4
- package/dist/graphql/operations/index.js +29 -1
- package/dist/graphql/operations/types.d.ts +939 -0
- package/dist/graphql/schema.d.ts +44 -49
- package/dist/graphql/schema.js +1 -15
- package/package.json +1 -1
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -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,6 +573,7 @@ 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
578
|
export type CareTeamParticipantMember = Organization | Practitioner | ResourceReference;
|
|
592
579
|
export type CareTeamQueryResults = PagedQueryResults & {
|
|
@@ -938,6 +925,7 @@ export type Connection = {
|
|
|
938
925
|
/** Defines the type of connection */
|
|
939
926
|
export declare enum ConnectionCategory {
|
|
940
927
|
Basic = "BASIC",
|
|
928
|
+
Identity = "IDENTITY",
|
|
941
929
|
Oauth = "OAUTH"
|
|
942
930
|
}
|
|
943
931
|
/** Defines connection after making updates */
|
|
@@ -1125,10 +1113,6 @@ export type ConsentVerificationVerifiedWithReference = {
|
|
|
1125
1113
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1126
1114
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1127
1115
|
};
|
|
1128
|
-
export type ContactField = {
|
|
1129
|
-
use: ContactUseType;
|
|
1130
|
-
value: Scalars['String']['input'];
|
|
1131
|
-
};
|
|
1132
1116
|
export type ContactPoint = {
|
|
1133
1117
|
__typename?: 'ContactPoint';
|
|
1134
1118
|
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
@@ -1151,12 +1135,6 @@ export type ContactPointInput = {
|
|
|
1151
1135
|
/** Can define enum */
|
|
1152
1136
|
value?: InputMaybe<Scalars['String']['input']>;
|
|
1153
1137
|
};
|
|
1154
|
-
/** Contact.use options */
|
|
1155
|
-
export declare enum ContactUseType {
|
|
1156
|
-
Home = "home",
|
|
1157
|
-
Mobile = "mobile",
|
|
1158
|
-
Work = "work"
|
|
1159
|
-
}
|
|
1160
1138
|
/** Supported ISO 4217 CurrencyCodes */
|
|
1161
1139
|
export declare enum CurrencyCode {
|
|
1162
1140
|
Usd = "USD"
|
|
@@ -1342,6 +1320,8 @@ export type DocumentReferenceAttachment = {
|
|
|
1342
1320
|
contentType?: Maybe<Scalars['String']['output']>;
|
|
1343
1321
|
/** Data inline, base64ed */
|
|
1344
1322
|
data?: Maybe<Scalars['String']['output']>;
|
|
1323
|
+
/** Title of the document */
|
|
1324
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1345
1325
|
/** Uri where the data can be found */
|
|
1346
1326
|
url?: Maybe<Scalars['String']['output']>;
|
|
1347
1327
|
};
|
|
@@ -1842,13 +1822,6 @@ export declare enum GenderEnum {
|
|
|
1842
1822
|
Other = "OTHER",
|
|
1843
1823
|
Unknown = "UNKNOWN"
|
|
1844
1824
|
}
|
|
1845
|
-
/** Gender options */
|
|
1846
|
-
export declare enum GenderType {
|
|
1847
|
-
Female = "female",
|
|
1848
|
-
Male = "male",
|
|
1849
|
-
Other = "other",
|
|
1850
|
-
Unknown = "unknown"
|
|
1851
|
-
}
|
|
1852
1825
|
/** Generate an oauth url */
|
|
1853
1826
|
export type GenerateUrl = {
|
|
1854
1827
|
__typename?: 'GenerateUrl';
|
|
@@ -1863,15 +1836,6 @@ export type GetFhirSearchDateValue = {
|
|
|
1863
1836
|
/** the value for the parameter in the resource is greater than the provided value */
|
|
1864
1837
|
greaterThan?: InputMaybe<Scalars['Date']['input']>;
|
|
1865
1838
|
};
|
|
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
1839
|
export type GoogleGeo = {
|
|
1876
1840
|
__typename?: 'GoogleGeo';
|
|
1877
1841
|
key: Scalars['String']['output'];
|
|
@@ -1979,6 +1943,8 @@ export type HumanName = {
|
|
|
1979
1943
|
suffix?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
1980
1944
|
/** Follows https://www.hl7.org/fhir/datatypes.html#HumanName */
|
|
1981
1945
|
text?: Maybe<Scalars['String']['output']>;
|
|
1946
|
+
/** Identifies the purpose for this name. */
|
|
1947
|
+
use?: Maybe<Scalars['Code']['output']>;
|
|
1982
1948
|
};
|
|
1983
1949
|
export type HumanNameInput = {
|
|
1984
1950
|
/** The family name or surname. */
|
|
@@ -2492,11 +2458,27 @@ export type MedicationGroup = ResourceGroup & {
|
|
|
2492
2458
|
authoredOn?: Maybe<Scalars['DateTime']['output']>;
|
|
2493
2459
|
/** Coding representing the kind of Conditions in this ResourceGroup */
|
|
2494
2460
|
coding?: Maybe<Coding>;
|
|
2461
|
+
/** Supply duration for the medication */
|
|
2462
|
+
daysOfSupply?: Maybe<Value>;
|
|
2495
2463
|
id?: Maybe<Scalars['ID']['output']>;
|
|
2464
|
+
/** Reference to the last encounter associated with this medication */
|
|
2465
|
+
lastEncounter?: Maybe<Reference>;
|
|
2466
|
+
/** Date when the medication was last filled */
|
|
2467
|
+
lastFilled?: Maybe<Scalars['DateTime']['output']>;
|
|
2496
2468
|
/** Human readable name of the Medication */
|
|
2497
2469
|
name?: Maybe<Scalars['String']['output']>;
|
|
2470
|
+
/** Pharmacy instruction for the medication */
|
|
2471
|
+
pharmacyInstruction?: Maybe<Scalars['String']['output']>;
|
|
2472
|
+
/** Name of the pharmacy associated with this medication dispense */
|
|
2473
|
+
pharmacyName?: Maybe<Scalars['String']['output']>;
|
|
2474
|
+
/** Name or identifier of the prescriber */
|
|
2475
|
+
prescriber?: Maybe<Scalars['String']['output']>;
|
|
2476
|
+
/** Prescriber instruction for the medication */
|
|
2477
|
+
prescriberInstruction?: Maybe<Scalars['String']['output']>;
|
|
2498
2478
|
/** Array of medication id references in the resource group */
|
|
2499
2479
|
references?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2480
|
+
/** Number of refills remaining for this medication */
|
|
2481
|
+
refillsRemaining?: Maybe<Value>;
|
|
2500
2482
|
/** Array of Strings representing the source of the data */
|
|
2501
2483
|
source?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2502
2484
|
/** Array of Strings representing the source of the data */
|
|
@@ -2504,6 +2486,8 @@ export type MedicationGroup = ResourceGroup & {
|
|
|
2504
2486
|
/** @deprecated Migrating for FHIR compliance. Use `statusCoding` instead. */
|
|
2505
2487
|
status?: Maybe<Coding>;
|
|
2506
2488
|
statusCoding?: Maybe<Coding>;
|
|
2489
|
+
/** Total number of refills for this medication */
|
|
2490
|
+
totalRefills?: Maybe<Value>;
|
|
2507
2491
|
};
|
|
2508
2492
|
export type MedicationGroupQueryRequest = {
|
|
2509
2493
|
page?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2975,7 +2959,6 @@ export type Mutation = {
|
|
|
2975
2959
|
disconnectConnection: DisconnectConnection;
|
|
2976
2960
|
exchangeAuthCode: AuthTokens;
|
|
2977
2961
|
findOrCreatePatient?: Maybe<Patient>;
|
|
2978
|
-
getTokenFromDemographics: AuthTokens;
|
|
2979
2962
|
interacted?: Maybe<Scalars['Boolean']['output']>;
|
|
2980
2963
|
itemInteracted?: Maybe<Scalars['Boolean']['output']>;
|
|
2981
2964
|
/**
|
|
@@ -3123,9 +3106,6 @@ export type MutationFindOrCreatePatientArgs = {
|
|
|
3123
3106
|
clientSlug?: InputMaybe<Scalars['String']['input']>;
|
|
3124
3107
|
patient?: InputMaybe<PatientInput>;
|
|
3125
3108
|
};
|
|
3126
|
-
export type MutationGetTokenFromDemographicsArgs = {
|
|
3127
|
-
userInfo: GetTokenFromDemographicsInput;
|
|
3128
|
-
};
|
|
3129
3109
|
export type MutationInteractedArgs = {
|
|
3130
3110
|
interaction?: InputMaybe<InteractionType>;
|
|
3131
3111
|
result_id?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -3232,11 +3212,6 @@ export type NameInput = {
|
|
|
3232
3212
|
text?: InputMaybe<Scalars['String']['input']>;
|
|
3233
3213
|
use?: InputMaybe<Scalars['String']['input']>;
|
|
3234
3214
|
};
|
|
3235
|
-
export type NamedField = {
|
|
3236
|
-
firstName: Scalars['String']['input'];
|
|
3237
|
-
lastName: Scalars['String']['input'];
|
|
3238
|
-
middleName?: InputMaybe<Scalars['String']['input']>;
|
|
3239
|
-
};
|
|
3240
3215
|
export type Narrative = {
|
|
3241
3216
|
__typename?: 'Narrative';
|
|
3242
3217
|
div?: Maybe<Scalars['XHTML']['output']>;
|
|
@@ -4306,6 +4281,7 @@ export type Query = {
|
|
|
4306
4281
|
providers: ProviderResults;
|
|
4307
4282
|
questionnaire?: Maybe<FhirFormQuestionnaire>;
|
|
4308
4283
|
questionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
|
|
4284
|
+
questionnaireResponses?: Maybe<QuestionnaireResponseBundle>;
|
|
4309
4285
|
refresh: RefreshToken;
|
|
4310
4286
|
requestConnection?: Maybe<RequestConnectionOutput>;
|
|
4311
4287
|
search?: Maybe<Array<Maybe<Consent>>>;
|
|
@@ -4518,6 +4494,16 @@ export type QueryQuestionnaireResponseArgs = {
|
|
|
4518
4494
|
questionnaireName?: InputMaybe<Scalars['String']['input']>;
|
|
4519
4495
|
searchParams?: InputMaybe<Scalars['String']['input']>;
|
|
4520
4496
|
};
|
|
4497
|
+
export type QueryQuestionnaireResponsesArgs = {
|
|
4498
|
+
_count?: InputMaybe<Scalars['Int']['input']>;
|
|
4499
|
+
_getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
|
|
4500
|
+
_lastUpdated?: InputMaybe<SearchDate>;
|
|
4501
|
+
_sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
4502
|
+
id?: InputMaybe<SearchString>;
|
|
4503
|
+
patient?: InputMaybe<SearchReference>;
|
|
4504
|
+
questionnaire?: InputMaybe<SearchReference>;
|
|
4505
|
+
status?: InputMaybe<SearchToken>;
|
|
4506
|
+
};
|
|
4521
4507
|
export type QueryRequestConnectionArgs = {
|
|
4522
4508
|
input?: InputMaybe<RequestConnectionInput>;
|
|
4523
4509
|
};
|
|
@@ -4708,6 +4694,14 @@ export type QuestionnaireResponseAnswerValueReferenceReference = {
|
|
|
4708
4694
|
reference?: Maybe<Scalars['String']['output']>;
|
|
4709
4695
|
type?: Maybe<Scalars['URI']['output']>;
|
|
4710
4696
|
};
|
|
4697
|
+
export type QuestionnaireResponseBundle = {
|
|
4698
|
+
__typename?: 'QuestionnaireResponseBundle';
|
|
4699
|
+
entry?: Maybe<Array<Maybe<QuestionnaireResponseBundleEntry>>>;
|
|
4700
|
+
};
|
|
4701
|
+
export type QuestionnaireResponseBundleEntry = {
|
|
4702
|
+
__typename?: 'QuestionnaireResponseBundleEntry';
|
|
4703
|
+
resource?: Maybe<QuestionnaireResponse>;
|
|
4704
|
+
};
|
|
4711
4705
|
export type QuestionnaireResponseInput = {
|
|
4712
4706
|
author?: InputMaybe<FhirReferenceInput>;
|
|
4713
4707
|
authored?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -4752,6 +4746,7 @@ export type QuestionnaireResponseItemAnswerInput = {
|
|
|
4752
4746
|
export type QuestionnaireResponseItemInput = {
|
|
4753
4747
|
answer?: InputMaybe<Array<InputMaybe<QuestionnaireResponseItemAnswerInput>>>;
|
|
4754
4748
|
definition?: InputMaybe<Scalars['String']['input']>;
|
|
4749
|
+
extension?: InputMaybe<Array<InputMaybe<FhirExtensionInput>>>;
|
|
4755
4750
|
item?: InputMaybe<Array<InputMaybe<QuestionnaireResponseItemInput>>>;
|
|
4756
4751
|
linkId: Scalars['String']['input'];
|
|
4757
4752
|
text?: InputMaybe<Scalars['String']['input']>;
|
package/dist/graphql/schema.js
CHANGED
|
@@ -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";
|