@icanbwell/bwell-sdk-ts 1.31.0-rc.1750098835 → 1.31.0-rc.1750169150
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/api-provider.d.ts +2 -0
- package/dist/api/base/health-space/appointments-request.d.ts +6 -1
- package/dist/api/base/health-space/appointments-request.js +8 -2
- package/dist/api/base/index.d.ts +1 -0
- package/dist/api/base/index.js +1 -0
- package/dist/api/base/questionnaire/index.d.ts +2 -0
- package/dist/api/base/questionnaire/index.js +1 -0
- package/dist/api/base/questionnaire/next-question-request.d.ts +10 -0
- package/dist/api/base/questionnaire/next-question-request.js +51 -0
- package/dist/api/base/questionnaire/questionnaire-manager.d.ts +18 -0
- package/dist/api/base/questionnaire/questionnaire-manager.js +1 -0
- package/dist/api/base/requests/search-token.d.ts +8 -4
- package/dist/api/base/requests/search-token.js +24 -2
- package/dist/api/graphql-api/graphql-api-provider.d.ts +2 -0
- package/dist/api/graphql-api/graphql-api-provider.js +2 -0
- package/dist/api/graphql-api/health-space/appointments-request-factory.js +2 -1
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +12 -0
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +51 -0
- package/dist/api/graphql-api/questionnaire/index.d.ts +1 -0
- package/dist/api/graphql-api/questionnaire/index.js +1 -0
- package/dist/bwell-sdk/bwell-sdk.d.ts +2 -0
- package/dist/bwell-sdk/bwell-sdk.js +3 -0
- package/dist/graphql/operations/index.d.ts +13 -1
- package/dist/graphql/operations/index.js +328 -1
- package/dist/graphql/operations/types.d.ts +3724 -882
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -5,6 +5,7 @@ import type { DeviceManager } from "./device/device-manager.js";
|
|
|
5
5
|
import type { EventManager } from "./event/event-manager.js";
|
|
6
6
|
import type { HealthManager } from "./health-data/health-manager.js";
|
|
7
7
|
import type { HealthSpaceManager } from "./health-space/health-space-manager.js";
|
|
8
|
+
import type { QuestionnaireManager } from "./questionnaire/questionnaire-manager.js";
|
|
8
9
|
import type { SearchManager } from "./search/search-manager.js";
|
|
9
10
|
import type { UserManager } from "./user/user-manager.js";
|
|
10
11
|
export interface ApiProvider {
|
|
@@ -17,4 +18,5 @@ export interface ApiProvider {
|
|
|
17
18
|
readonly event: EventManager;
|
|
18
19
|
readonly search: SearchManager;
|
|
19
20
|
readonly language: LanguageManager;
|
|
21
|
+
readonly questionnaire: QuestionnaireManager;
|
|
20
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchReference } from "../../../graphql/schema.js";
|
|
2
2
|
import { ErrorsCollector, ValidationRequest } from "../../../requests/index.js";
|
|
3
|
-
import { SearchDate, SearchString } from "../requests/index.js";
|
|
3
|
+
import { SearchDate, SearchString, SearchToken } from "../requests/index.js";
|
|
4
4
|
export type AppointmentsRequestInput = {
|
|
5
5
|
/**
|
|
6
6
|
* The source[s] of the appointments to search for
|
|
@@ -30,6 +30,10 @@ export type AppointmentsRequestInput = {
|
|
|
30
30
|
* Keys to sort the results by
|
|
31
31
|
*/
|
|
32
32
|
_sort?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Keys to sort the results by status
|
|
35
|
+
*/
|
|
36
|
+
status?: SearchToken;
|
|
33
37
|
};
|
|
34
38
|
/**
|
|
35
39
|
* A validator class for validating appointment request inputs.
|
|
@@ -51,6 +55,7 @@ declare class AppointmentsRequestValidator {
|
|
|
51
55
|
* - Both `_count` and `_getpagesoffset` must either be provided together or omitted together.
|
|
52
56
|
* - If `_count` is provided, its value must not be less than 0.
|
|
53
57
|
* - If `_getpagesoffset` is provided, its value must not be less than 0.
|
|
58
|
+
* - If `status` is provided, its value should not be null or undefined.
|
|
54
59
|
*
|
|
55
60
|
* @throws This method does not throw exceptions directly but collects errors in the `ErrorsCollector` instance.
|
|
56
61
|
*/
|
|
@@ -3,12 +3,13 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _AppointmentsRequestValidator_searchDateValidator, _AppointmentsRequestValidator_searchStringValidator;
|
|
6
|
+
var _AppointmentsRequestValidator_searchDateValidator, _AppointmentsRequestValidator_searchStringValidator, _AppointmentsRequestValidator_searchTokenValidator;
|
|
7
7
|
import { ValidationRequest, } from "../../../requests/index.js";
|
|
8
8
|
import { isBlank } from "../../../utils/string-utils.js";
|
|
9
9
|
import { isNotNullOrUndefined } from "../../../utils/type-utils.js";
|
|
10
10
|
import { SearchDateValidator } from "../requests/search-date.js";
|
|
11
11
|
import { SearchStringValidator } from "../requests/search-string.js";
|
|
12
|
+
import { SearchTokenValidator } from "../requests/search-token.js";
|
|
12
13
|
/**
|
|
13
14
|
* A validator class for validating appointment request inputs.
|
|
14
15
|
* This class ensures that the provided data adheres to the expected structure
|
|
@@ -19,6 +20,7 @@ class AppointmentsRequestValidator {
|
|
|
19
20
|
constructor() {
|
|
20
21
|
_AppointmentsRequestValidator_searchDateValidator.set(this, new SearchDateValidator());
|
|
21
22
|
_AppointmentsRequestValidator_searchStringValidator.set(this, new SearchStringValidator());
|
|
23
|
+
_AppointmentsRequestValidator_searchTokenValidator.set(this, new SearchTokenValidator());
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* Validates the provided `AppointmentsRequestInput` data and collects any validation errors.
|
|
@@ -32,6 +34,7 @@ class AppointmentsRequestValidator {
|
|
|
32
34
|
* - Both `_count` and `_getpagesoffset` must either be provided together or omitted together.
|
|
33
35
|
* - If `_count` is provided, its value must not be less than 0.
|
|
34
36
|
* - If `_getpagesoffset` is provided, its value must not be less than 0.
|
|
37
|
+
* - If `status` is provided, its value should not be null or undefined.
|
|
35
38
|
*
|
|
36
39
|
* @throws This method does not throw exceptions directly but collects errors in the `ErrorsCollector` instance.
|
|
37
40
|
*/
|
|
@@ -54,9 +57,12 @@ class AppointmentsRequestValidator {
|
|
|
54
57
|
isBlank(data.supporting_info.value)) {
|
|
55
58
|
errors.add("Supporting Information must have a non-empty value.");
|
|
56
59
|
}
|
|
60
|
+
if (isNotNullOrUndefined(data.status)) {
|
|
61
|
+
__classPrivateFieldGet(this, _AppointmentsRequestValidator_searchTokenValidator, "f").validate(data.status, errors);
|
|
62
|
+
}
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
|
-
_AppointmentsRequestValidator_searchDateValidator = new WeakMap(), _AppointmentsRequestValidator_searchStringValidator = new WeakMap();
|
|
65
|
+
_AppointmentsRequestValidator_searchDateValidator = new WeakMap(), _AppointmentsRequestValidator_searchStringValidator = new WeakMap(), _AppointmentsRequestValidator_searchTokenValidator = new WeakMap();
|
|
60
66
|
/**
|
|
61
67
|
* Represents a request for appointments within the health space.
|
|
62
68
|
* This class extends the `ValidationRequest` to provide validation
|
package/dist/api/base/index.d.ts
CHANGED
package/dist/api/base/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NextQuestionRequest, } from "./next-question-request.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NextQuestionMutationVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
3
|
+
export type NextQuestionRequestInput = NextQuestionMutationVariables;
|
|
4
|
+
declare class NextQuestionRequestValidator implements Validator<NextQuestionRequestInput> {
|
|
5
|
+
validate(data: NextQuestionRequestInput, errors: ErrorsCollector): void;
|
|
6
|
+
}
|
|
7
|
+
export declare class NextQuestionRequest extends ValidationRequest<NextQuestionRequestInput> {
|
|
8
|
+
protected validator: NextQuestionRequestValidator;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
import { isNullOrUndefined, isNullOrUndefinedOrEmptyString, } from "../../../utils/type-utils.js";
|
|
3
|
+
class NextQuestionRequestValidator {
|
|
4
|
+
validate(data, errors) {
|
|
5
|
+
const questionnaireResponse = data.questionnaireResponse;
|
|
6
|
+
if (isNullOrUndefined(questionnaireResponse)) {
|
|
7
|
+
errors.add("questionnaireResponse is required");
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (isNullOrUndefinedOrEmptyString(questionnaireResponse.resourceType) ||
|
|
11
|
+
questionnaireResponse.resourceType !== "QuestionnaireResponse") {
|
|
12
|
+
errors.add('questionnaireResponse.resourceType must be "QuestionnaireResponse"');
|
|
13
|
+
}
|
|
14
|
+
if (isNullOrUndefinedOrEmptyString(questionnaireResponse.status)) {
|
|
15
|
+
errors.add("questionnaireResponse.status is required");
|
|
16
|
+
}
|
|
17
|
+
if (isNullOrUndefinedOrEmptyString(questionnaireResponse.questionnaire)) {
|
|
18
|
+
errors.add("questionnaireResponse.questionnaire is required");
|
|
19
|
+
}
|
|
20
|
+
if (isNullOrUndefined(questionnaireResponse.contained) ||
|
|
21
|
+
questionnaireResponse.contained.length === 0) {
|
|
22
|
+
errors.add("questionnaireResponse.contained must have at least one item");
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
let questionnaire = null;
|
|
26
|
+
for (const resource of questionnaireResponse.contained) {
|
|
27
|
+
if (isNullOrUndefined(resource)) {
|
|
28
|
+
errors.add("questionnaireResponse.contained item cannot be null or undefined");
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
if (resource.resourceType === "Questionnaire") {
|
|
32
|
+
questionnaire = resource;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (isNullOrUndefined(questionnaire)) {
|
|
37
|
+
errors.add("questionnaireResponse.contained must contain a Questionnaire resource");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
if (isNullOrUndefinedOrEmptyString(questionnaire.id)) {
|
|
41
|
+
errors.add("questionnaireResponse.contained Questionnaire resource must have an id");
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export class NextQuestionRequest extends ValidationRequest {
|
|
47
|
+
constructor() {
|
|
48
|
+
super(...arguments);
|
|
49
|
+
this.validator = new NextQuestionRequestValidator();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NextQuestionMutationResults } from "../../../graphql/operations/types.js";
|
|
2
|
+
import { BWellTransactionResult } from "../../../results/index.js";
|
|
3
|
+
import { NextQuestionRequest } from "../../base/questionnaire/next-question-request.js";
|
|
4
|
+
import { BaseManagerError } from "../errors.js";
|
|
5
|
+
export type NextQuestionResults = NextQuestionMutationResults["nextQuestion"];
|
|
6
|
+
/**
|
|
7
|
+
* Interface representing a manager for handling operations related to questionnaires.
|
|
8
|
+
*/
|
|
9
|
+
export interface QuestionnaireManager {
|
|
10
|
+
/**
|
|
11
|
+
* Calls the nextQuestion mutation with the provided request.
|
|
12
|
+
*
|
|
13
|
+
* @param request - The request object containing parameters for the mutation.
|
|
14
|
+
* @returns A promise that resolves to a `BWellTransactionResult` containing the mutation results
|
|
15
|
+
* or an error of type `BaseManagerError`.
|
|
16
|
+
*/
|
|
17
|
+
nextQuestion(request: NextQuestionRequest): Promise<BWellTransactionResult<NextQuestionResults, BaseManagerError>>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { ErrorsCollector, Validator } from "../../../requests/index.js";
|
|
2
|
-
export type SearchToken = {
|
|
3
|
-
values?: SearchTokenValue[];
|
|
4
|
-
value?: SearchTokenValue;
|
|
5
|
-
};
|
|
6
2
|
export type SearchTokenValue = {
|
|
7
3
|
system?: string;
|
|
8
4
|
code?: string;
|
|
9
5
|
value?: string;
|
|
10
6
|
};
|
|
7
|
+
export type NotSearchTokenValue = SearchTokenValue & {
|
|
8
|
+
values?: SearchTokenValue[];
|
|
9
|
+
};
|
|
10
|
+
export type SearchToken = {
|
|
11
|
+
values?: SearchTokenValue[];
|
|
12
|
+
value?: SearchTokenValue;
|
|
13
|
+
notEquals?: NotSearchTokenValue;
|
|
14
|
+
};
|
|
11
15
|
/**
|
|
12
16
|
* Validator for group codes.
|
|
13
17
|
*/
|
|
@@ -19,8 +19,10 @@ export class SearchTokenValidator {
|
|
|
19
19
|
*/
|
|
20
20
|
validate(data, errors) {
|
|
21
21
|
var _a;
|
|
22
|
-
if (data.value === undefined &&
|
|
23
|
-
|
|
22
|
+
if (data.value === undefined &&
|
|
23
|
+
data.values === undefined &&
|
|
24
|
+
data.notEquals === undefined) {
|
|
25
|
+
errors.add("Either SearchToken value or values or notEquals must be provided");
|
|
24
26
|
return;
|
|
25
27
|
}
|
|
26
28
|
if (data.value !== undefined) {
|
|
@@ -33,6 +35,26 @@ export class SearchTokenValidator {
|
|
|
33
35
|
for (const value of (_a = data.values) !== null && _a !== void 0 ? _a : []) {
|
|
34
36
|
__classPrivateFieldGet(this, _SearchTokenValidator_searchTokenValueValidator, "f").validate(value, errors);
|
|
35
37
|
}
|
|
38
|
+
// Add validation for notEquals
|
|
39
|
+
if (data.notEquals !== undefined) {
|
|
40
|
+
// Validate notEquals values array if present
|
|
41
|
+
if (data.notEquals.values !== undefined) {
|
|
42
|
+
if (data.notEquals.values.length === 0) {
|
|
43
|
+
errors.add("If notEquals values are provided, at least one Coding must be set");
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
for (const value of data.notEquals.values) {
|
|
47
|
+
__classPrivateFieldGet(this, _SearchTokenValidator_searchTokenValueValidator, "f").validate(value, errors);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Ensure at least one property is set in notEquals
|
|
51
|
+
if (data.notEquals.code === undefined &&
|
|
52
|
+
data.notEquals.value === undefined &&
|
|
53
|
+
data.notEquals.system === undefined &&
|
|
54
|
+
data.notEquals.values === undefined) {
|
|
55
|
+
errors.add("NotEquals must have at least one non-null property (code, value, system, or values)");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
36
58
|
}
|
|
37
59
|
}
|
|
38
60
|
_SearchTokenValidator_searchTokenValueValidator = new WeakMap();
|
|
@@ -8,6 +8,7 @@ import type { DeviceManager } from "../base/device/device-manager.js";
|
|
|
8
8
|
import type { EventManager } from "../base/event/event-manager.js";
|
|
9
9
|
import type { HealthManager } from "../base/health-data/health-manager.js";
|
|
10
10
|
import { HealthSpaceManager } from "../base/health-space/health-space-manager.js";
|
|
11
|
+
import { QuestionnaireManager } from "../base/questionnaire/questionnaire-manager.js";
|
|
11
12
|
import type { SearchManager } from "../base/search/search-manager.js";
|
|
12
13
|
import type { UserManager } from "../base/user/user-manager.js";
|
|
13
14
|
import type { GraphQLSdk } from "./graphql-sdk/index.js";
|
|
@@ -21,6 +22,7 @@ export declare class GraphQLApiProvider implements ApiProvider {
|
|
|
21
22
|
readonly activity: ActivityManager;
|
|
22
23
|
readonly event: EventManager;
|
|
23
24
|
readonly search: SearchManager;
|
|
25
|
+
readonly questionnaire: QuestionnaireManager;
|
|
24
26
|
readonly language: LanguageManager;
|
|
25
27
|
constructor(graphqlSDK: GraphQLSdk, loggerProvider: LoggerProvider, graphqlClient: GraphQLClient);
|
|
26
28
|
}
|
|
@@ -17,6 +17,7 @@ import { GraphQLDeviceManager } from "./device/index.js";
|
|
|
17
17
|
import { GraphQLEventManager } from "./event/index.js";
|
|
18
18
|
import { GraphQLHealthSpaceManager } from "./health-space/index.js";
|
|
19
19
|
import { GraphQLHealthManager } from "./healthdata/index.js";
|
|
20
|
+
import { GraphQLQuestionnaireManager } from "./questionnaire/index.js";
|
|
20
21
|
import { GraphQLSearchManager } from "./search/index.js";
|
|
21
22
|
import { GraphQLUserManager } from "./user/index.js";
|
|
22
23
|
export class GraphQLApiProvider {
|
|
@@ -34,6 +35,7 @@ export class GraphQLApiProvider {
|
|
|
34
35
|
this.healthSpace = new GraphQLHealthSpaceManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
35
36
|
this.user = new GraphQLUserManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
36
37
|
this.search = new GraphQLSearchManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
38
|
+
this.questionnaire = new GraphQLQuestionnaireManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
37
39
|
this.language = new BwellSdkLanguageManager(graphqlClient);
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export class AppointmentsRequestFactory {
|
|
8
8
|
create(request) {
|
|
9
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
9
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
10
10
|
const input = request.data();
|
|
11
11
|
return {
|
|
12
12
|
source: (_a = input._source) !== null && _a !== void 0 ? _a : null,
|
|
@@ -16,6 +16,7 @@ export class AppointmentsRequestFactory {
|
|
|
16
16
|
date: (_e = input.date) !== null && _e !== void 0 ? _e : null,
|
|
17
17
|
sort: (_f = input._sort) !== null && _f !== void 0 ? _f : null,
|
|
18
18
|
supportingInformation: (_g = input.supporting_info) !== null && _g !== void 0 ? _g : null,
|
|
19
|
+
status: (_h = input.status) !== null && _h !== void 0 ? _h : null,
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LoggerProvider } from "../../../logger/index.js";
|
|
2
|
+
import { BWellTransactionResult } from "../../../results/index.js";
|
|
3
|
+
import { BaseManagerError } from "../../base/errors.js";
|
|
4
|
+
import { NextQuestionRequest } from "../../base/questionnaire/next-question-request.js";
|
|
5
|
+
import { NextQuestionResults, QuestionnaireManager } from "../../base/questionnaire/questionnaire-manager.js";
|
|
6
|
+
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
7
|
+
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
8
|
+
export declare class GraphQLQuestionnaireManager extends GraphQLManager implements QuestionnaireManager {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider);
|
|
11
|
+
nextQuestion(request: NextQuestionRequest): Promise<BWellTransactionResult<NextQuestionResults, BaseManagerError>>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
11
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
14
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
15
|
+
};
|
|
16
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
17
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
18
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
|
+
};
|
|
21
|
+
var _GraphQLQuestionnaireManager_logger, _GraphQLQuestionnaireManager_sdk;
|
|
22
|
+
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
|
+
import { BWellTransactionResult } from "../../../results/index.js";
|
|
24
|
+
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
|
+
export class GraphQLQuestionnaireManager extends GraphQLManager {
|
|
26
|
+
constructor(sdk, loggerProvider = new ConsoleLoggerProvider()) {
|
|
27
|
+
super();
|
|
28
|
+
_GraphQLQuestionnaireManager_logger.set(this, void 0);
|
|
29
|
+
_GraphQLQuestionnaireManager_sdk.set(this, void 0);
|
|
30
|
+
__classPrivateFieldSet(this, _GraphQLQuestionnaireManager_sdk, sdk, "f");
|
|
31
|
+
__classPrivateFieldSet(this, _GraphQLQuestionnaireManager_logger, loggerProvider.getLogger("GraphQLQuestionnaireManager"), "f");
|
|
32
|
+
}
|
|
33
|
+
nextQuestion(request) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const validationResult = request.validate();
|
|
36
|
+
if (validationResult.failure()) {
|
|
37
|
+
return validationResult.intoFailure();
|
|
38
|
+
}
|
|
39
|
+
__classPrivateFieldGet(this, _GraphQLQuestionnaireManager_logger, "f").verbose("calling nextQuestion mutation...");
|
|
40
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLQuestionnaireManager_sdk, "f").nextQuestion(request.data()));
|
|
41
|
+
__classPrivateFieldGet(this, _GraphQLQuestionnaireManager_logger, "f").verbose("nextQuestion mutation complete");
|
|
42
|
+
if (result.failure()) {
|
|
43
|
+
__classPrivateFieldGet(this, _GraphQLQuestionnaireManager_logger, "f").error("nextQuestion mutation failed", result.error());
|
|
44
|
+
return result.intoFailure();
|
|
45
|
+
}
|
|
46
|
+
__classPrivateFieldGet(this, _GraphQLQuestionnaireManager_logger, "f").info("successfully called nextQuestion mutation");
|
|
47
|
+
return BWellTransactionResult.success(result.data().nextQuestion);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
_GraphQLQuestionnaireManager_logger = new WeakMap(), _GraphQLQuestionnaireManager_sdk = new WeakMap();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./graphql-questionnaire-manager.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./graphql-questionnaire-manager.js";
|
|
@@ -5,6 +5,7 @@ import { BaseManagerError } from "../api/base/errors.js";
|
|
|
5
5
|
import type { EventManager } from "../api/base/event/event-manager.js";
|
|
6
6
|
import type { HealthManager } from "../api/base/health-data/health-manager.js";
|
|
7
7
|
import type { AuthTokens, CreateGuestAccessTokenResults } from "../api/base/identity/index.js";
|
|
8
|
+
import { QuestionnaireManager } from "../api/base/questionnaire/questionnaire-manager.js";
|
|
8
9
|
import type { SearchManager } from "../api/base/search/search-manager.js";
|
|
9
10
|
import type { UserManager } from "../api/base/user/user-manager.js";
|
|
10
11
|
import { HealthSpaceManager } from "../api/index.js";
|
|
@@ -91,4 +92,5 @@ export declare class BWellSDK {
|
|
|
91
92
|
get event(): EventManager;
|
|
92
93
|
get search(): SearchManager;
|
|
93
94
|
get language(): import("../language/language-manager.js").LanguageManager;
|
|
95
|
+
get questionnaire(): QuestionnaireManager;
|
|
94
96
|
}
|
|
@@ -195,6 +195,9 @@ export class BWellSDK {
|
|
|
195
195
|
get language() {
|
|
196
196
|
return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).language;
|
|
197
197
|
}
|
|
198
|
+
get questionnaire() {
|
|
199
|
+
return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).questionnaire;
|
|
200
|
+
}
|
|
198
201
|
}
|
|
199
202
|
_BWellSDK_config = new WeakMap(), _BWellSDK_sdkConfig = new WeakMap(), _BWellSDK_telemetry = new WeakMap(), _BWellSDK_loggerFactory = new WeakMap(), _BWellSDK_apiProviderFactory = new WeakMap(), _BWellSDK_identityManagerFactory = new WeakMap(), _BWellSDK_authStrategyFactory = new WeakMap(), _BWellSDK_loggerProvider = new WeakMap(), _BWellSDK_apiProvider = new WeakMap(), _BWellSDK_logger = new WeakMap(), _BWellSDK_identityManager = new WeakMap(), _BWellSDK_configManager = new WeakMap(), _BWellSDK_tokenManager = new WeakMap(), _BWellSDK_instances = new WeakSet(), _BWellSDK_bootstrapAuth = function _BWellSDK_bootstrapAuth(identityTokens) {
|
|
200
203
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -67,6 +67,10 @@ export declare const ReactionFieldsFragmentDoc = "\n fragment ReactionFields
|
|
|
67
67
|
export declare const PractitionerFieldsFragmentDoc = "\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
68
68
|
export declare const CareTeamParticipantFieldsFragmentDoc = "\n fragment CareTeamParticipantFields on CareTeamParticipant {\n member {\n __typename\n ... on Organization {\n id\n organizationName: name\n alias\n meta {\n ...MetaFields\n }\n }\n ... on Practitioner {\n ...PractitionerFields\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
69
69
|
export declare const AsserterFieldsFragmentDoc = "\n fragment AsserterFields on Asserter {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
70
|
+
export declare const QuestionnaireResponseItemFieldsFragmentDoc = "\n fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {\n id\n linkId\n text\n answer {\n id\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
71
|
+
export declare const QuestionnaireItemFieldsFragmentDoc = "\n fragment QuestionnaireItemFields on QuestionnaireItem {\n id\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n id\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n id\n valueInteger\n valueDate\n valueTime\n valueString\n valueCoding {\n ...CodingFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n id\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
|
|
72
|
+
export declare const QuestionnaireFieldsFragmentDoc = "\n fragment QuestionnaireFields on Questionnaire {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n name\n title\n status\n description\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireItemFields on QuestionnaireItem {\n id\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n id\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n id\n valueInteger\n valueDate\n valueTime\n valueString\n valueCoding {\n ...CodingFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n id\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
|
|
73
|
+
export declare const QuestionnaireResponseFieldsFragmentDoc = "\n fragment QuestionnaireResponseFields on QuestionnaireResponse {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n questionnaire\n status\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n }\n }\n }\n contained {\n ...QuestionnaireFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {\n id\n linkId\n text\n answer {\n id\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireFields on Questionnaire {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n name\n title\n status\n description\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireItemFields on QuestionnaireItem {\n id\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n id\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n id\n valueInteger\n valueDate\n valueTime\n valueString\n valueCoding {\n ...CodingFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n id\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
|
|
70
74
|
export declare const GetTasksDocument = "\n query getTasks($request: TaskRequest) {\n getTasks(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n meta {\n ...MetaFields\n }\n identifier {\n id\n system\n value\n }\n code {\n ...CodeableConceptFields\n }\n instantiatesCanonical\n description\n executionPeriod {\n ...PeriodFields\n }\n status {\n code\n display\n }\n lastModified\n for {\n reference\n }\n extension {\n ...ExtensionFields\n }\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment ExtensionFields on Extension {\n id\n url\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueInteger\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
71
75
|
export declare const TaskUpdateStatusDocument = "\n mutation taskUpdateStatus($taskId: String!, $newStatus: TaskStatus!) {\n taskUpdateStatus(input: {taskId: $taskId, newStatus: $newStatus}) {\n id\n status\n }\n}\n ";
|
|
72
76
|
export declare const CreateConnectionDocument = "\n mutation createConnection($connectionId: String!, $username: String!, $password: String!) {\n createConnection(\n connectionId: $connectionId\n username: $username\n password: $password\n ) {\n id\n status\n name\n category\n type\n isDirect\n syncStatus\n statusUpdated\n lastSynced\n created\n }\n}\n ";
|
|
@@ -107,7 +111,7 @@ export declare const GetMedicationKnowledgeDocument = "\n query getMedication
|
|
|
107
111
|
export declare const GetMedicationPricingDocument = "\n query getMedicationPricing($request: MedicationPricingRequest) {\n getMedicationPricing(request: $request) {\n resources {\n pharmacy\n couponUrl\n drugUrl\n price {\n ...MoneyResourceFields\n }\n }\n }\n}\n \n fragment MoneyResourceFields on Money {\n value\n currency\n}\n ";
|
|
108
112
|
export declare const GetMedicationRequestDocument = "\n query getMedicationRequest($request: MedicationRequestQueryRequest) {\n getMedicationRequest(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n resourceType\n id\n meta {\n ...MetaFields\n }\n status {\n code\n display\n }\n category {\n ...CodeableConceptFields\n }\n identifier {\n ...IdentifierFields\n }\n intent {\n code\n display\n }\n language\n medicationCodeableConcept {\n ...CodeableConceptFields\n }\n medicationReference {\n ...MedicationReferenceFields\n }\n medication {\n ...MedicationReferenceResourceFields\n }\n text {\n ...NarrativeFields\n }\n subject {\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n }\n requester {\n ... on Practitioner {\n ...PractitionerFields\n }\n }\n recorder {\n ... on Practitioner {\n ...PractitionerFields\n }\n }\n encounter {\n ...EncounterFields\n }\n authoredOn\n dosageInstruction {\n ...DosageFields\n }\n dispenseRequest {\n ...MedicationDispenseFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n courseOfTherapyType {\n ...CodeableConceptFields\n }\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment MedicationReferenceFields on USCoreMedicationProfile {\n resourceType\n identifier {\n ...IdentifierFields\n }\n form {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment MedicationReferenceResourceFields on MedicationReference {\n resource {\n ...MedicationFields\n }\n}\n \n fragment MedicationFields on Medication {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n code {\n ...CodeableConceptFields\n }\n ingredient {\n itemCodeableConcept {\n ...CodeableConceptFields\n }\n strength {\n ...RatioFields\n }\n itemReference {\n resource {\n __typename\n ... on Medication {\n resourceType\n identifier {\n ...IdentifierFields\n }\n code {\n ...CodeableConceptFields\n }\n }\n ... on Substance {\n ...SubstanceFields\n }\n }\n }\n isActive\n }\n form {\n ...CodeableConceptFields\n }\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment SubstanceFields on Substance {\n resourceType\n id\n text {\n ...NarrativeFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n description\n instance {\n ...SubstanceInstanceFields\n }\n ingredient {\n ...SubstanceIngredientFields\n }\n}\n \n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment SubstanceInstanceFields on SubstanceInstance {\n identifier {\n ...IdentifierFields\n }\n expiry\n quantity {\n ...QuantityFields\n }\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment SubstanceIngredientFields on SubstanceIngredient {\n id\n quantity {\n ...RatioFields\n }\n substanceCodeableConcept {\n ...CodeableConceptFields\n }\n substanceReference {\n ...SubstanceIngredientSubstanceReferenceFields\n }\n}\n \n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment SubstanceIngredientSubstanceReferenceFields on SubstanceIngredientSubstanceReferenceReference {\n resource {\n resourceType\n id\n text {\n ...NarrativeFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n description\n instance {\n ...SubstanceInstanceFields\n }\n }\n}\n \n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment SubstanceInstanceFields on SubstanceInstance {\n identifier {\n ...IdentifierFields\n }\n expiry\n quantity {\n ...QuantityFields\n }\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\n resourceType\n text {\n ...NarrativeFields\n }\n encounterLocations: locations {\n location {\n ...LocationFields\n }\n status\n physicalType {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n }\n identifier {\n ...IdentifierFields\n }\n type {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n participant {\n ...ParticipantFields\n }\n period {\n ...PeriodFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n class {\n system\n code\n display\n }\n location {\n ...LocationFields\n }\n serviceProvider {\n name\n endpoint {\n name\n status\n connectionType {\n system\n code\n display\n }\n address\n }\n }\n subject {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n language {\n ...CodeableConceptFields\n }\n }\n }\n reasonReference {\n ...ConditionFields\n }\n hospitalization {\n dischargeDisposition {\n ...CodeableConceptFields\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment LocationFields on Location {\n name\n identifier {\n ...IdentifierFields\n }\n alias\n description\n address {\n ...AddressFields\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n system\n value\n rank\n }\n type {\n ...CodeableConceptFields\n }\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ConditionFields on ConditionResource {\n id\n meta {\n ...MetaFields\n }\n code {\n ...CodeableConceptFields\n }\n clinicalStatus {\n ...CodeableConceptFields\n }\n onsetDateTime\n recordedDate\n recorder {\n ...RecorderFields\n }\n note {\n authorString\n time\n text\n }\n onsetPeriod {\n ...PeriodFields\n }\n abatementDateTime\n abatementPeriod {\n ...PeriodFields\n }\n category {\n ...CodeableConceptFields\n }\n severity {\n ...CodeableConceptFields\n }\n verificationStatus {\n ...CodeableConceptFields\n }\n bodySite {\n ...CodeableConceptFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment DosageFields on Dosage {\n id\n additionalInstruction {\n ...CodeableConceptFields\n }\n asNeededBoolean\n asNeededCodeableConcept {\n ...CodeableConceptFields\n }\n doseAndRate {\n ...DoseAndRateFields\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n ...RatioFields\n }\n method {\n ...CodeableConceptFields\n }\n patientInstruction\n route {\n ...CodeableConceptFields\n }\n sequence\n site {\n ...CodeableConceptFields\n }\n text\n timing {\n ...TimingFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment DoseAndRateFields on DoseAndRate {\n id\n type {\n ...CodeableConceptFields\n }\n doseRange {\n ...RangeFields\n }\n doseQuantity {\n ...QuantityFields\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n ...RangeFields\n }\n rateRatio {\n ...RatioFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\n ...TimingRepeatFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment TimingRepeatFields on TimingRepeat {\n id\n boundsDuration {\n ...QuantityFields\n }\n boundsPeriod {\n ...PeriodFields\n }\n boundsRange {\n ...RangeFields\n }\n count\n countMax\n dayOfWeek {\n code\n display\n }\n duration\n durationMax\n durationUnit {\n code\n display\n }\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit {\n display\n code\n }\n timeOfDay\n when {\n code\n display\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment MedicationDispenseFields on DispenseRequest {\n id\n dispenseInterval {\n ...QuantityFields\n }\n expectedSupplyDuration {\n ...QuantityFields\n }\n initialFill {\n ...InitialFillFields\n }\n numberOfRepeatsAllowed\n performer {\n name\n }\n validityPeriod {\n ...PeriodFields\n }\n quantity {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment InitialFillFields on InitialFill {\n duration {\n ...QuantityFields\n }\n quantity {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
109
113
|
export declare const GetMedicationStatementsDocument = "\n query getMedicationStatements($request: MedicationStatementQueryRequest) {\n getMedicationStatements(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n meta {\n ...MetaFields\n }\n status {\n code\n display\n }\n medication {\n ...CodeableConceptFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n authoredOn\n requester {\n ...ActorFields\n }\n effectiveDate {\n start\n end\n }\n dosageInstruction {\n ...DosageFields\n }\n dispenseRequest {\n id\n dispenseInterval {\n ...QuantityFields\n }\n expectedSupplyDuration {\n ...QuantityFields\n }\n initialFill {\n duration {\n ...QuantityFields\n }\n quantity {\n ...QuantityFields\n }\n }\n numberOfRepeatsAllowed\n performer {\n name\n }\n validityPeriod {\n start\n end\n }\n quantity {\n ...QuantityFields\n }\n }\n source\n derivedFrom {\n reference\n type\n }\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ActorFields on Actor {\n __typename\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Organization {\n organizationName: name\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment DosageFields on Dosage {\n id\n additionalInstruction {\n ...CodeableConceptFields\n }\n asNeededBoolean\n asNeededCodeableConcept {\n ...CodeableConceptFields\n }\n doseAndRate {\n ...DoseAndRateFields\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n ...RatioFields\n }\n method {\n ...CodeableConceptFields\n }\n patientInstruction\n route {\n ...CodeableConceptFields\n }\n sequence\n site {\n ...CodeableConceptFields\n }\n text\n timing {\n ...TimingFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment DoseAndRateFields on DoseAndRate {\n id\n type {\n ...CodeableConceptFields\n }\n doseRange {\n ...RangeFields\n }\n doseQuantity {\n ...QuantityFields\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n ...RangeFields\n }\n rateRatio {\n ...RatioFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\n ...TimingRepeatFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment TimingRepeatFields on TimingRepeat {\n id\n boundsDuration {\n ...QuantityFields\n }\n boundsPeriod {\n ...PeriodFields\n }\n boundsRange {\n ...RangeFields\n }\n count\n countMax\n dayOfWeek {\n code\n display\n }\n duration\n durationMax\n durationUnit {\n code\n display\n }\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit {\n display\n code\n }\n timeOfDay\n when {\n code\n display\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
|
|
110
|
-
export declare const AppointmentsDocument = "\n query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String]) {\n appointments(\n _source: $source\n id: $id\n _count: $count\n _getpagesoffset: $getPagesOffset\n date: $date\n supporting_info: $supportingInformation\n _sort: $sort\n ) {\n entry {\n resource {\n id\n status\n cancelationReason {\n ...CodeableConceptFields\n }\n serviceType {\n ...CodeableConceptFields\n }\n start\n end\n supportingInformation {\n id\n reference\n display\n }\n participant {\n id\n type {\n ...CodeableConceptFields\n }\n actor {\n reference\n resource {\n ... on Location {\n id\n name\n description\n identifier {\n ...IdentifierFields\n }\n telecom {\n id\n system\n value\n }\n address {\n ...AddressFields\n }\n position {\n latitude\n longitude\n }\n managingOrganization {\n reference\n }\n }\n }\n }\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n ";
|
|
114
|
+
export declare const AppointmentsDocument = "\n query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String], $status: SearchToken) {\n appointments(\n _source: $source\n id: $id\n _count: $count\n _getpagesoffset: $getPagesOffset\n date: $date\n supporting_info: $supportingInformation\n _sort: $sort\n status: $status\n ) {\n entry {\n resource {\n id\n status\n cancelationReason {\n ...CodeableConceptFields\n }\n serviceType {\n ...CodeableConceptFields\n }\n start\n end\n supportingInformation {\n id\n reference\n display\n }\n participant {\n id\n type {\n ...CodeableConceptFields\n }\n actor {\n reference\n resource {\n ... on Location {\n id\n name\n description\n identifier {\n ...IdentifierFields\n }\n telecom {\n id\n system\n value\n }\n address {\n ...AddressFields\n }\n position {\n latitude\n longitude\n }\n managingOrganization {\n reference\n }\n }\n }\n }\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n ";
|
|
111
115
|
export declare const CancelAppointmentDocument = "\n mutation cancelAppointment($appointment: UpdateAppointmentInput!) {\n updateAppointment(appointment: $appointment) {\n id\n status\n }\n}\n ";
|
|
112
116
|
export declare const CancelationReasonsDocument = "\n query cancelationReasons($organization: SearchReference!) {\n cancelationReasons(organization: $organization) {\n id\n title\n url\n concept {\n code\n display\n }\n }\n}\n ";
|
|
113
117
|
export declare const AuthenticateDocument = "\n query authenticate {\n getToken {\n accessToken {\n jwtToken\n }\n idToken {\n jwtToken\n }\n refreshToken {\n token\n }\n }\n}\n ";
|
|
@@ -116,6 +120,7 @@ export declare const ExchangeAuthCodeDocument = "\n mutation ExchangeAuthCode
|
|
|
116
120
|
export declare const InitializeDocument = "\n query initialize($clientKey: String!) {\n initSdk(clientKey: $clientKey) {\n httpClient {\n requestTimeout\n retry {\n interval\n attempts\n }\n }\n graphQLClient {\n url\n authUrl\n fetchPolicy\n cache {\n maxSizeBytes\n }\n }\n logLevel\n telemetry {\n enabled\n collectorUrl\n }\n }\n}\n ";
|
|
117
121
|
export declare const LoginDocument = "\n query login($email: String!, $password: String!) {\n login(email: $email, password: $password) {\n accessToken {\n jwtToken\n }\n idToken {\n jwtToken\n }\n refreshToken {\n token\n }\n }\n}\n ";
|
|
118
122
|
export declare const RefreshTokensDocument = "\n query refreshTokens {\n refresh {\n accessToken\n idToken\n }\n}\n ";
|
|
123
|
+
export declare const NextQuestionDocument = "\n mutation nextQuestion($questionnaireResponse: QuestionnaireResponseInput!) {\n nextQuestion(input: $questionnaireResponse) {\n ...QuestionnaireResponseFields\n }\n}\n \n fragment QuestionnaireResponseFields on QuestionnaireResponse {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n questionnaire\n status\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n }\n }\n }\n contained {\n ...QuestionnaireFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {\n id\n linkId\n text\n answer {\n id\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireFields on Questionnaire {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n name\n title\n status\n description\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireItemFields on QuestionnaireItem {\n id\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n id\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n id\n valueInteger\n valueDate\n valueTime\n valueString\n valueCoding {\n ...CodingFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n id\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n id\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n coding {\n id\n }\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
|
|
119
124
|
export declare const ProviderSearchDocument = "\n query providerSearch($client: [Client], $searchTerm: String, $includePopulatedPROAonly: Boolean, $specialtyFilters: [InputCoding], $organizationTypeFilters: [OrganizationType], $gender: Gender, $location: SearchPosition, $sortBy: [OrderBy], $filterFields: [FilterField], $page: Int, $pageSize: Int) {\n providers(\n client: $client\n search: $searchTerm\n specialty: $specialtyFilters\n organization_type: $organizationTypeFilters\n include_populated_PROA_only: $includePopulatedPROAonly\n gender: $gender\n search_position: $location\n order_by: $sortBy\n filter_values: $filterFields\n page_number: $page\n page_size: $pageSize\n ) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n filter_values {\n field\n values {\n value\n count\n }\n }\n results {\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n iconString\n organization_type {\n coding {\n code\n system\n display\n }\n text\n }\n content\n gender\n location {\n name\n identifier {\n type {\n text\n coding {\n system\n code\n display\n }\n }\n value\n system\n }\n alias\n description\n address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n system\n value\n rank\n }\n }\n specialty {\n code\n system\n display\n }\n id\n photo {\n contentType\n url\n title\n }\n name {\n ...HumanNameFields\n }\n telecom {\n system\n value\n rank\n }\n practitioner_qualification {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n code {\n coding {\n code\n system\n display\n }\n text\n }\n period {\n start\n end\n }\n issuer {\n reference\n display\n }\n }\n provider_type\n characteristic {\n code\n system\n display\n }\n organization {\n name\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n }\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
|
|
120
125
|
export declare const RequestConnectionDocument = "\n mutation requestConnection($city: String, $institution: String, $provider: String, $state: String) {\n requestConnection(\n city: $city\n institution: $institution\n provider: $provider\n state: $state\n ) {\n resourceType\n issue {\n severity\n code\n details {\n text\n }\n }\n }\n}\n ";
|
|
121
126
|
export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n id\n content\n specialty {\n code\n system\n display\n }\n location {\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n }\n }\n}\n ";
|
|
@@ -472,6 +477,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
472
477
|
headers: Headers;
|
|
473
478
|
status: number;
|
|
474
479
|
}>;
|
|
480
|
+
nextQuestion(variables: Types.NextQuestionMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
481
|
+
data: Types.NextQuestionMutationResults;
|
|
482
|
+
errors?: GraphQLError[];
|
|
483
|
+
extensions?: any;
|
|
484
|
+
headers: Headers;
|
|
485
|
+
status: number;
|
|
486
|
+
}>;
|
|
475
487
|
providerSearch(variables?: Types.ProviderSearchQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
476
488
|
data: Types.ProviderSearchQueryResults;
|
|
477
489
|
errors?: GraphQLError[];
|