@icanbwell/bwell-sdk-ts 1.43.0 → 1.44.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/api-provider.d.ts +2 -0
- package/dist/api/base/financial/coverage-request.d.ts +39 -0
- package/dist/api/base/financial/coverage-request.js +59 -0
- package/dist/api/base/financial/financial-manager.d.ts +19 -0
- package/dist/api/base/financial/financial-manager.js +1 -0
- package/dist/api/base/financial/index.d.ts +1 -0
- package/dist/api/base/financial/index.js +1 -0
- package/dist/api/base/index.d.ts +1 -0
- package/dist/api/base/index.js +1 -0
- package/dist/api/base/requests/search-reference.d.ts +18 -0
- package/dist/api/base/requests/search-reference.js +24 -0
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.js +17 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +19 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.js +58 -0
- package/dist/api/graphql-api/financial/index.d.ts +1 -0
- package/dist/api/graphql-api/financial/index.js +1 -0
- 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/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 -0
- package/dist/graphql/operations/index.js +98 -0
- package/dist/graphql/operations/types.d.ts +223 -13
- package/dist/graphql/schema.d.ts +209 -32
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -3,6 +3,7 @@ import type { ActivityManager } from "./activity/activity-manager.js";
|
|
|
3
3
|
import type { ConnectionManager } from "./connection/connection-manager.js";
|
|
4
4
|
import type { DeviceManager } from "./device/device-manager.js";
|
|
5
5
|
import type { EventManager } from "./event/event-manager.js";
|
|
6
|
+
import type { FinancialManager } from "./financial/financial-manager.js";
|
|
6
7
|
import type { HealthManager } from "./health-data/health-manager.js";
|
|
7
8
|
import type { HealthSpaceManager } from "./health-space/health-space-manager.js";
|
|
8
9
|
import type { QuestionnaireManager } from "./questionnaire/questionnaire-manager.js";
|
|
@@ -10,6 +11,7 @@ import type { SearchManager } from "./search/search-manager.js";
|
|
|
10
11
|
import type { UserManager } from "./user/user-manager.js";
|
|
11
12
|
export interface ApiProvider {
|
|
12
13
|
readonly health: HealthManager;
|
|
14
|
+
readonly financial: FinancialManager;
|
|
13
15
|
readonly healthSpace: HealthSpaceManager;
|
|
14
16
|
readonly user: UserManager;
|
|
15
17
|
readonly device: DeviceManager;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { SearchDate, SearchReference, SearchString, TotalType } from "../../../graphql/schema.js";
|
|
2
|
+
import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Input type for Coverage FHIR resource requests.
|
|
5
|
+
* @category Inputs
|
|
6
|
+
* @title CoverageRequestInput
|
|
7
|
+
* @excerpt Input for Coverage query with filters and pagination
|
|
8
|
+
*/
|
|
9
|
+
export type CoverageRequestInput = PagedRequestInput & {
|
|
10
|
+
id?: SearchString;
|
|
11
|
+
lastUpdated?: SearchDate;
|
|
12
|
+
sort?: Array<string | null> | string;
|
|
13
|
+
patient?: SearchReference;
|
|
14
|
+
beneficiary?: SearchReference;
|
|
15
|
+
total?: TotalType | null;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Validator for Coverage request inputs.
|
|
19
|
+
* Validates Coverage-specific search parameters.
|
|
20
|
+
*/
|
|
21
|
+
declare class CoverageRequestValidator extends PagedRequestValidator<CoverageRequestInput> {
|
|
22
|
+
#private;
|
|
23
|
+
/**
|
|
24
|
+
* Validates Coverage-specific search parameters.
|
|
25
|
+
* @param data
|
|
26
|
+
* @param errors
|
|
27
|
+
*/
|
|
28
|
+
validate(data: CoverageRequestInput, errors: ErrorsCollector): void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Request object for fetching Coverage FHIR resources.
|
|
32
|
+
* @category Requests
|
|
33
|
+
* @title CoveragesRequest
|
|
34
|
+
* @excerpt Request object for fetching Coverage FHIR resources with validation
|
|
35
|
+
*/
|
|
36
|
+
export declare class CoveragesRequest extends PagedRequest<CoverageRequestInput> {
|
|
37
|
+
protected validator: CoverageRequestValidator;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
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
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
+
};
|
|
6
|
+
var _CoverageRequestValidator_searchStringValidator, _CoverageRequestValidator_searchDateValidator, _CoverageRequestValidator_searchReferenceValidator;
|
|
7
|
+
import { PagedRequest, PagedRequestValidator, } from "../../../requests/index.js";
|
|
8
|
+
import { isNotUndefined } from "../../../utils/type-utils.js";
|
|
9
|
+
import { SearchDateValidator } from "../requests/search-date.js";
|
|
10
|
+
import { SearchReferenceValidator } from "../requests/search-reference.js";
|
|
11
|
+
import { SearchStringValidator } from "../requests/search-string.js";
|
|
12
|
+
/**
|
|
13
|
+
* Validator for Coverage request inputs.
|
|
14
|
+
* Validates Coverage-specific search parameters.
|
|
15
|
+
*/
|
|
16
|
+
class CoverageRequestValidator extends PagedRequestValidator {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
_CoverageRequestValidator_searchStringValidator.set(this, new SearchStringValidator());
|
|
20
|
+
_CoverageRequestValidator_searchDateValidator.set(this, new SearchDateValidator());
|
|
21
|
+
_CoverageRequestValidator_searchReferenceValidator.set(this, new SearchReferenceValidator());
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Validates Coverage-specific search parameters.
|
|
25
|
+
* @param data
|
|
26
|
+
* @param errors
|
|
27
|
+
*/
|
|
28
|
+
validate(data, errors) {
|
|
29
|
+
super.validate(data, errors);
|
|
30
|
+
// Validate the id fields
|
|
31
|
+
if (isNotUndefined(data.id)) {
|
|
32
|
+
__classPrivateFieldGet(this, _CoverageRequestValidator_searchStringValidator, "f").validate(data.id, errors);
|
|
33
|
+
}
|
|
34
|
+
// Validate the lastUpdated fields
|
|
35
|
+
if (isNotUndefined(data.lastUpdated)) {
|
|
36
|
+
__classPrivateFieldGet(this, _CoverageRequestValidator_searchDateValidator, "f").validate(data.lastUpdated, errors);
|
|
37
|
+
}
|
|
38
|
+
// Validate the patient and beneficiary fields
|
|
39
|
+
if (isNotUndefined(data.beneficiary)) {
|
|
40
|
+
__classPrivateFieldGet(this, _CoverageRequestValidator_searchReferenceValidator, "f").validate(data.beneficiary, errors);
|
|
41
|
+
}
|
|
42
|
+
if (isNotUndefined(data.patient)) {
|
|
43
|
+
__classPrivateFieldGet(this, _CoverageRequestValidator_searchReferenceValidator, "f").validate(data.patient, errors);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
_CoverageRequestValidator_searchStringValidator = new WeakMap(), _CoverageRequestValidator_searchDateValidator = new WeakMap(), _CoverageRequestValidator_searchReferenceValidator = new WeakMap();
|
|
48
|
+
/**
|
|
49
|
+
* Request object for fetching Coverage FHIR resources.
|
|
50
|
+
* @category Requests
|
|
51
|
+
* @title CoveragesRequest
|
|
52
|
+
* @excerpt Request object for fetching Coverage FHIR resources with validation
|
|
53
|
+
*/
|
|
54
|
+
export class CoveragesRequest extends PagedRequest {
|
|
55
|
+
constructor() {
|
|
56
|
+
super(...arguments);
|
|
57
|
+
this.validator = new CoverageRequestValidator();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ValidationError } from "../../../errors/index.js";
|
|
2
|
+
import { GetCoveragesQueryResults } from "../../../graphql/operations/types.js";
|
|
3
|
+
import { BWellQueryResult } from "../../../results/index.js";
|
|
4
|
+
import { BaseManagerError } from "../errors.js";
|
|
5
|
+
import { CoveragesRequest } from "./coverage-request.js";
|
|
6
|
+
export type CoveragesResults = GetCoveragesQueryResults["coverages"];
|
|
7
|
+
/**
|
|
8
|
+
* Interface representing a manager for handling operations related to financial resources.
|
|
9
|
+
*/
|
|
10
|
+
export interface FinancialManager {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves coverage resources based on the provided request parameters.
|
|
13
|
+
*
|
|
14
|
+
* @param request - The request object containing parameters for filtering coverages.
|
|
15
|
+
* @returns A promise that resolves to a `BWellQueryResult` containing the coverage resources
|
|
16
|
+
* or an error of type `ValidationError` or `BaseManagerError`.
|
|
17
|
+
*/
|
|
18
|
+
getCoverages(request: CoveragesRequest): Promise<BWellQueryResult<CoveragesResults, ValidationError | BaseManagerError>>;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./coverage-request.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./coverage-request.js";
|
package/dist/api/base/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ export * from "./search/index.js";
|
|
|
6
6
|
export * from "./connection/index.js";
|
|
7
7
|
export * from "./device/index.js";
|
|
8
8
|
export * from "./event/index.js";
|
|
9
|
+
export * from "./financial/index.js";
|
|
9
10
|
export * from "./health-space/index.js";
|
|
10
11
|
export * from "./questionnaire/index.js";
|
package/dist/api/base/index.js
CHANGED
|
@@ -6,5 +6,6 @@ export * from "./search/index.js";
|
|
|
6
6
|
export * from "./connection/index.js";
|
|
7
7
|
export * from "./device/index.js";
|
|
8
8
|
export * from "./event/index.js";
|
|
9
|
+
export * from "./financial/index.js";
|
|
9
10
|
export * from "./health-space/index.js";
|
|
10
11
|
export * from "./questionnaire/index.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SearchReference } from "../../../graphql/schema.js";
|
|
2
|
+
import { ErrorsCollector, Validator } from "../../../requests/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Error message for when reference value is empty
|
|
5
|
+
*/
|
|
6
|
+
export declare const EMPTY_REFERENCE_VALUE_ERROR = "SearchReference value should be a non-empty string";
|
|
7
|
+
/**
|
|
8
|
+
* Validator for SearchReference objects.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SearchReferenceValidator implements Validator<SearchReference> {
|
|
11
|
+
/**
|
|
12
|
+
* Ensures that the SearchReference value is a non-empty string if provided
|
|
13
|
+
* @param data
|
|
14
|
+
* @param errors
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
validate(data: SearchReference, errors: ErrorsCollector): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isBlank, isNullOrUndefined } from "../../../utils/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Error message for when reference value is empty
|
|
4
|
+
*/
|
|
5
|
+
export const EMPTY_REFERENCE_VALUE_ERROR = "SearchReference value should be a non-empty string";
|
|
6
|
+
/**
|
|
7
|
+
* Validator for SearchReference objects.
|
|
8
|
+
*/
|
|
9
|
+
export class SearchReferenceValidator {
|
|
10
|
+
/**
|
|
11
|
+
* Ensures that the SearchReference value is a non-empty string if provided
|
|
12
|
+
* @param data
|
|
13
|
+
* @param errors
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
validate(data, errors) {
|
|
17
|
+
if (isNullOrUndefined(data.value)) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (typeof data.value !== "string" || isBlank(data.value)) {
|
|
21
|
+
errors.add(EMPTY_REFERENCE_VALUE_ERROR);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Types from "../../../graphql/operations/types.js";
|
|
2
|
+
import { RequestFactory } from "../../../requests/index.js";
|
|
3
|
+
import { CoveragesRequest } from "../../base/financial/coverage-request.js";
|
|
4
|
+
export declare class GraphQLGetCoveragesRequestFactory implements RequestFactory<CoveragesRequest, Types.GetCoveragesQueryVariables> {
|
|
5
|
+
create(request?: CoveragesRequest): Types.GetCoveragesQueryVariables;
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TotalType } from "../../../graphql/schema.js";
|
|
2
|
+
export class GraphQLGetCoveragesRequestFactory {
|
|
3
|
+
create(request) {
|
|
4
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
5
|
+
const data = request === null || request === void 0 ? void 0 : request.data();
|
|
6
|
+
return {
|
|
7
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
8
|
+
lastUpdated: (_b = data === null || data === void 0 ? void 0 : data.lastUpdated) !== null && _b !== void 0 ? _b : null,
|
|
9
|
+
sort: (_c = data === null || data === void 0 ? void 0 : data.sort) !== null && _c !== void 0 ? _c : null,
|
|
10
|
+
page: (_d = data === null || data === void 0 ? void 0 : data.page) !== null && _d !== void 0 ? _d : null,
|
|
11
|
+
pageSize: (_e = data === null || data === void 0 ? void 0 : data.pageSize) !== null && _e !== void 0 ? _e : null,
|
|
12
|
+
patient: (_f = data === null || data === void 0 ? void 0 : data.patient) !== null && _f !== void 0 ? _f : null,
|
|
13
|
+
beneficiary: (_g = data === null || data === void 0 ? void 0 : data.beneficiary) !== null && _g !== void 0 ? _g : null,
|
|
14
|
+
total: (_h = data === null || data === void 0 ? void 0 : data.total) !== null && _h !== void 0 ? _h : TotalType.Accurate,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ValidationError } from "../../../errors/index.js";
|
|
2
|
+
import { LoggerProvider } from "../../../logger/index.js";
|
|
3
|
+
import { BWellQueryResult } from "../../../results/index.js";
|
|
4
|
+
import { BaseManagerError } from "../../base/errors.js";
|
|
5
|
+
import { CoveragesRequest } from "../../base/financial/coverage-request.js";
|
|
6
|
+
import { CoveragesResults, FinancialManager } from "../../base/financial/financial-manager.js";
|
|
7
|
+
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
8
|
+
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
9
|
+
export declare class GraphQLFinancialManager extends GraphQLManager implements FinancialManager {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves coverage resources based on the provided request parameters.
|
|
14
|
+
*
|
|
15
|
+
* @param request - The request object containing parameters for filtering coverages
|
|
16
|
+
* @returns Promise resolving to coverage resources results or an error
|
|
17
|
+
*/
|
|
18
|
+
getCoverages(request: CoveragesRequest): Promise<BWellQueryResult<CoveragesResults, ValidationError | BaseManagerError>>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 _GraphQLFinancialManager_logger, _GraphQLFinancialManager_sdk, _GraphQLFinancialManager_coveragesRequestFactory;
|
|
22
|
+
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
|
+
import { BWellQueryResult } from "../../../results/index.js";
|
|
24
|
+
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
|
+
import { GraphQLGetCoveragesRequestFactory } from "./graphql-coverages-bwell-request-factory.js";
|
|
26
|
+
export class GraphQLFinancialManager extends GraphQLManager {
|
|
27
|
+
constructor(sdk, loggerProvider = new ConsoleLoggerProvider()) {
|
|
28
|
+
super();
|
|
29
|
+
_GraphQLFinancialManager_logger.set(this, void 0);
|
|
30
|
+
_GraphQLFinancialManager_sdk.set(this, void 0);
|
|
31
|
+
_GraphQLFinancialManager_coveragesRequestFactory.set(this, new GraphQLGetCoveragesRequestFactory());
|
|
32
|
+
__classPrivateFieldSet(this, _GraphQLFinancialManager_sdk, sdk, "f");
|
|
33
|
+
__classPrivateFieldSet(this, _GraphQLFinancialManager_logger, loggerProvider.getLogger("GraphQLFinancialManager"), "f");
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves coverage resources based on the provided request parameters.
|
|
37
|
+
*
|
|
38
|
+
* @param request - The request object containing parameters for filtering coverages
|
|
39
|
+
* @returns Promise resolving to coverage resources results or an error
|
|
40
|
+
*/
|
|
41
|
+
getCoverages(request) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a;
|
|
44
|
+
const validationResult = this.validateRequest(request);
|
|
45
|
+
if (validationResult.failure()) {
|
|
46
|
+
return validationResult.toQueryResult();
|
|
47
|
+
}
|
|
48
|
+
__classPrivateFieldGet(this, _GraphQLFinancialManager_logger, "f").verbose("calling getCoverages...");
|
|
49
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLFinancialManager_sdk, "f").getCoverages(__classPrivateFieldGet(this, _GraphQLFinancialManager_coveragesRequestFactory, "f").create(request)));
|
|
50
|
+
__classPrivateFieldGet(this, _GraphQLFinancialManager_logger, "f").verbose("getCoverages complete");
|
|
51
|
+
if (result.hasError()) {
|
|
52
|
+
__classPrivateFieldGet(this, _GraphQLFinancialManager_logger, "f").error("getCoverages errors", result.error);
|
|
53
|
+
}
|
|
54
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.coverages, result.error);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
_GraphQLFinancialManager_logger = new WeakMap(), _GraphQLFinancialManager_sdk = new WeakMap(), _GraphQLFinancialManager_coveragesRequestFactory = new WeakMap();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./graphql-financial-manager.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./graphql-financial-manager.js";
|
|
@@ -6,6 +6,7 @@ import type { ApiProvider } from "../base/api-provider.js";
|
|
|
6
6
|
import type { ConnectionManager } from "../base/connection/connection-manager.js";
|
|
7
7
|
import type { DeviceManager } from "../base/device/device-manager.js";
|
|
8
8
|
import type { EventManager } from "../base/event/event-manager.js";
|
|
9
|
+
import type { FinancialManager } from "../base/financial/financial-manager.js";
|
|
9
10
|
import type { HealthManager } from "../base/health-data/health-manager.js";
|
|
10
11
|
import { HealthSpaceManager } from "../base/health-space/health-space-manager.js";
|
|
11
12
|
import { QuestionnaireManager } from "../base/questionnaire/questionnaire-manager.js";
|
|
@@ -15,6 +16,7 @@ import type { GraphQLSdk } from "./graphql-sdk/index.js";
|
|
|
15
16
|
export declare class GraphQLApiProvider implements ApiProvider {
|
|
16
17
|
#private;
|
|
17
18
|
readonly health: HealthManager;
|
|
19
|
+
readonly financial: FinancialManager;
|
|
18
20
|
readonly healthSpace: HealthSpaceManager;
|
|
19
21
|
readonly user: UserManager;
|
|
20
22
|
readonly device: DeviceManager;
|
|
@@ -15,6 +15,7 @@ import { GraphQLActivityManager } from "./activity/index.js";
|
|
|
15
15
|
import { GraphQLConnectionManager } from "./connection/index.js";
|
|
16
16
|
import { GraphQLDeviceManager } from "./device/index.js";
|
|
17
17
|
import { GraphQLEventManager } from "./event/index.js";
|
|
18
|
+
import { GraphQLFinancialManager } from "./financial/index.js";
|
|
18
19
|
import { GraphQLHealthSpaceManager } from "./health-space/index.js";
|
|
19
20
|
import { GraphQLHealthManager } from "./healthdata/index.js";
|
|
20
21
|
import { GraphQLQuestionnaireManager } from "./questionnaire/index.js";
|
|
@@ -32,6 +33,7 @@ export class GraphQLApiProvider {
|
|
|
32
33
|
this.device = new GraphQLDeviceManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
33
34
|
this.event = new GraphQLEventManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
34
35
|
this.health = new GraphQLHealthManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
36
|
+
this.financial = new GraphQLFinancialManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
35
37
|
this.healthSpace = new GraphQLHealthSpaceManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
36
38
|
this.user = new GraphQLUserManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
37
39
|
this.search = new GraphQLSearchManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
@@ -3,6 +3,7 @@ import type { ConnectionManager } from "../api/base/connection/connection-manage
|
|
|
3
3
|
import type { DeviceManager } from "../api/base/device/device-manager.js";
|
|
4
4
|
import { BaseManagerError } from "../api/base/errors.js";
|
|
5
5
|
import type { EventManager } from "../api/base/event/event-manager.js";
|
|
6
|
+
import type { FinancialManager } from "../api/base/financial/financial-manager.js";
|
|
6
7
|
import type { HealthManager } from "../api/base/health-data/health-manager.js";
|
|
7
8
|
import type { AuthTokens, CreateGuestAccessTokenResults } from "../api/base/identity/index.js";
|
|
8
9
|
import { QuestionnaireManager } from "../api/base/questionnaire/questionnaire-manager.js";
|
|
@@ -91,6 +92,7 @@ export declare class BWellSDK {
|
|
|
91
92
|
get device(): DeviceManager;
|
|
92
93
|
get event(): EventManager;
|
|
93
94
|
get search(): SearchManager;
|
|
95
|
+
get financial(): FinancialManager;
|
|
94
96
|
get language(): import("../language/language-manager.js").LanguageManager;
|
|
95
97
|
get questionnaire(): QuestionnaireManager;
|
|
96
98
|
}
|
|
@@ -192,6 +192,9 @@ export class BWellSDK {
|
|
|
192
192
|
get search() {
|
|
193
193
|
return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).search;
|
|
194
194
|
}
|
|
195
|
+
get financial() {
|
|
196
|
+
return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).financial;
|
|
197
|
+
}
|
|
195
198
|
get language() {
|
|
196
199
|
return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).language;
|
|
197
200
|
}
|
|
@@ -48,6 +48,11 @@ export declare const SubstanceFieldsFragmentDoc = "\n fragment SubstanceField
|
|
|
48
48
|
export declare const MetaFieldsFragmentDoc = "\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 ";
|
|
49
49
|
export declare const DocumentReferenceContextFieldsFragmentDoc = "\n fragment DocumentReferenceContextFields on DocumentReferenceContext {\n encounter {\n reference\n display\n }\n period {\n ...PeriodFields\n }\n}\n \n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
50
50
|
export declare const DocumentReferenceFieldsFragmentDoc = "\n fragment DocumentReferenceFields on DocumentReferenceResource {\n id\n resourceType\n meta {\n ...MetaFields\n }\n language\n text {\n div\n status\n }\n identifier {\n ...IdentifierFields\n }\n status\n subject {\n reference\n display\n }\n type {\n ...CodeableConceptFields\n }\n category {\n ...CodeableConceptFields\n }\n date\n author {\n reference\n display\n }\n description\n content {\n attachment {\n contentType\n data\n url\n title\n }\n format {\n ...CodingFields\n }\n }\n context {\n ...DocumentReferenceContextFields\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 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 DocumentReferenceContextFields on DocumentReferenceContext {\n encounter {\n reference\n display\n }\n period {\n ...PeriodFields\n }\n}\n \n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
51
|
+
export declare const CoveragePolicyHolderReferenceFieldsFragmentDoc = "\n fragment CoveragePolicyHolderReferenceFields on CoveragePolicyHolderReference {\n reference\n display\n type\n}\n ";
|
|
52
|
+
export declare const CoverageBeneficiaryReferenceFieldsFragmentDoc = "\n fragment CoverageBeneficiaryReferenceFields on CoverageBeneficiaryReference {\n reference\n display\n type\n}\n ";
|
|
53
|
+
export declare const CoveragePayorReferenceFieldsFragmentDoc = "\n fragment CoveragePayorReferenceFields on CoveragePayorReference {\n reference\n display\n type\n}\n ";
|
|
54
|
+
export declare const CoverageClassFieldsFragmentDoc = "\n fragment CoverageClassFields on CoverageClass {\n id\n type {\n ...CodeableConceptFields\n }\n value\n name\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 ";
|
|
55
|
+
export declare const CoverageFieldsFragmentDoc = "\n fragment CoverageFields on Coverage {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n policyHolder {\n ...CoveragePolicyHolderReferenceFields\n }\n subscriberId\n beneficiary {\n ...CoverageBeneficiaryReferenceFields\n }\n relationship {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n payor {\n ...CoveragePayorReferenceFields\n }\n class {\n ...CoverageClassFields\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 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 CoveragePolicyHolderReferenceFields on CoveragePolicyHolderReference {\n reference\n display\n type\n}\n \n\n fragment CoverageBeneficiaryReferenceFields on CoverageBeneficiaryReference {\n reference\n display\n type\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment CoveragePayorReferenceFields on CoveragePayorReference {\n reference\n display\n type\n}\n \n\n fragment CoverageClassFields on CoverageClass {\n id\n type {\n ...CodeableConceptFields\n }\n value\n name\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 ";
|
|
51
56
|
export declare const ProtocolAppliedFieldsFragmentDoc = "\n fragment ProtocolAppliedFields on ProtocolApplied {\n doseNumberString\n doseNumberPositiveInt\n}\n ";
|
|
52
57
|
export declare const DetailFieldsFragmentDoc = "\n fragment DetailFields on Detail {\n kind {\n display\n code\n }\n code {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n scheduledPeriod {\n ...PeriodFields\n }\n scheduledString\n scheduledTiming {\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 PeriodFields on Period {\n start\n end\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 ";
|
|
53
58
|
export declare const ActivityFieldsFragmentDoc = "\n fragment ActivityFields on Activity {\n detail {\n ...DetailFields\n }\n}\n \n fragment DetailFields on Detail {\n kind {\n display\n code\n }\n code {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n scheduledPeriod {\n ...PeriodFields\n }\n scheduledString\n scheduledTiming {\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 PeriodFields on Period {\n start\n end\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 ";
|
|
@@ -91,6 +96,7 @@ export declare const GetMemberConnectionsDocument = "\n query getMemberConnec
|
|
|
91
96
|
export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionId: String!) {\n getOauthUrl(connectionId: $connectionId) {\n redirectUrl\n }\n}\n ";
|
|
92
97
|
export declare const UpdateDeviceRegistrationDocument = "\n mutation updateDeviceRegistration($deviceToken: String!, $platformName: String!, $applicationName: String!, $notificationPreference: Boolean!) {\n updateDeviceRegistration(\n input: {deviceToken: $deviceToken, platform: $platformName, applicationName: $applicationName, notificationPreference: $notificationPreference}\n ) {\n id\n }\n}\n ";
|
|
93
98
|
export declare const PublishEventDocument = "\n mutation publishEvent($eventType: EventType!, $messageId: String, $notificationId: String) {\n publishEvent(\n input: {eventType: $eventType, campaignId: $notificationId, messageId: $messageId}\n ) {\n id\n }\n}\n ";
|
|
99
|
+
export declare const GetCoveragesDocument = "\n query getCoverages($id: SearchString, $lastUpdated: SearchDate, $sort: [String], $pageSize: Int, $page: Int, $patient: SearchReference, $beneficiary: SearchReference, $total: TotalType) {\n coverages(\n id: $id\n _lastUpdated: $lastUpdated\n _sort: $sort\n _count: $pageSize\n _getpagesoffset: $page\n patient: $patient\n beneficiary: $beneficiary\n _total: $total\n ) {\n total\n entry {\n id\n resource {\n ...CoverageFields\n }\n }\n }\n}\n \n fragment CoverageFields on Coverage {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n policyHolder {\n ...CoveragePolicyHolderReferenceFields\n }\n subscriberId\n beneficiary {\n ...CoverageBeneficiaryReferenceFields\n }\n relationship {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n payor {\n ...CoveragePayorReferenceFields\n }\n class {\n ...CoverageClassFields\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 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 CoveragePolicyHolderReferenceFields on CoveragePolicyHolderReference {\n reference\n display\n type\n}\n \n\n fragment CoverageBeneficiaryReferenceFields on CoverageBeneficiaryReference {\n reference\n display\n type\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment CoveragePayorReferenceFields on CoveragePayorReference {\n reference\n display\n type\n}\n \n\n fragment CoverageClassFields on CoverageClass {\n id\n type {\n ...CodeableConceptFields\n }\n value\n name\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 ";
|
|
94
100
|
export declare const GetBinaryDocument = "\n query getBinary($request: BinaryRequest!) {\n getBinary(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n resourceType\n id\n data\n contentType\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
|
|
95
101
|
export declare const GetFhirDocument = "\n query getFHIR($request: ResourceRequest!) {\n getFHIR(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
|
|
96
102
|
export declare const GetDiagnosticReportsDocument = "\n query getDiagnosticReports($pageSize: Int = null, $page: Int = null, $id: SearchString = null, $sort: [String] = null) {\n diagnosticReports(\n _count: $pageSize\n _getpagesoffset: $page\n id: $id\n _sort: $sort\n ) {\n entry {\n resource {\n id\n meta {\n ...MetaFields\n }\n basedOn {\n reference\n display\n }\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n effectiveDateTime\n encounter {\n reference\n display\n }\n issued\n performer {\n reference\n display\n }\n presentedForm {\n data\n }\n resourceType\n result {\n ... on DiagnosticReportResultReference {\n display\n reference\n }\n }\n status\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 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 ";
|
|
@@ -216,6 +222,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
216
222
|
headers: Headers;
|
|
217
223
|
status: number;
|
|
218
224
|
}>;
|
|
225
|
+
getCoverages(variables?: Types.GetCoveragesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
226
|
+
data: Types.GetCoveragesQueryResults;
|
|
227
|
+
errors?: GraphQLError[];
|
|
228
|
+
extensions?: any;
|
|
229
|
+
headers: Headers;
|
|
230
|
+
status: number;
|
|
231
|
+
}>;
|
|
219
232
|
getBinary(variables: Types.GetBinaryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
220
233
|
data: Types.GetBinaryQueryResults;
|
|
221
234
|
errors?: GraphQLError[];
|
|
@@ -520,6 +520,79 @@ ${IdentifierFieldsFragmentDoc}
|
|
|
520
520
|
${CodeableConceptFieldsFragmentDoc}
|
|
521
521
|
${CodingFieldsFragmentDoc}
|
|
522
522
|
${DocumentReferenceContextFieldsFragmentDoc}`;
|
|
523
|
+
export const CoveragePolicyHolderReferenceFieldsFragmentDoc = `
|
|
524
|
+
fragment CoveragePolicyHolderReferenceFields on CoveragePolicyHolderReference {
|
|
525
|
+
reference
|
|
526
|
+
display
|
|
527
|
+
type
|
|
528
|
+
}
|
|
529
|
+
`;
|
|
530
|
+
export const CoverageBeneficiaryReferenceFieldsFragmentDoc = `
|
|
531
|
+
fragment CoverageBeneficiaryReferenceFields on CoverageBeneficiaryReference {
|
|
532
|
+
reference
|
|
533
|
+
display
|
|
534
|
+
type
|
|
535
|
+
}
|
|
536
|
+
`;
|
|
537
|
+
export const CoveragePayorReferenceFieldsFragmentDoc = `
|
|
538
|
+
fragment CoveragePayorReferenceFields on CoveragePayorReference {
|
|
539
|
+
reference
|
|
540
|
+
display
|
|
541
|
+
type
|
|
542
|
+
}
|
|
543
|
+
`;
|
|
544
|
+
export const CoverageClassFieldsFragmentDoc = `
|
|
545
|
+
fragment CoverageClassFields on CoverageClass {
|
|
546
|
+
id
|
|
547
|
+
type {
|
|
548
|
+
...CodeableConceptFields
|
|
549
|
+
}
|
|
550
|
+
value
|
|
551
|
+
name
|
|
552
|
+
}
|
|
553
|
+
${CodeableConceptFieldsFragmentDoc}`;
|
|
554
|
+
export const CoverageFieldsFragmentDoc = `
|
|
555
|
+
fragment CoverageFields on Coverage {
|
|
556
|
+
resourceType
|
|
557
|
+
id
|
|
558
|
+
meta {
|
|
559
|
+
...MetaFields
|
|
560
|
+
}
|
|
561
|
+
identifier {
|
|
562
|
+
...IdentifierFields
|
|
563
|
+
}
|
|
564
|
+
status
|
|
565
|
+
type {
|
|
566
|
+
...CodeableConceptFields
|
|
567
|
+
}
|
|
568
|
+
policyHolder {
|
|
569
|
+
...CoveragePolicyHolderReferenceFields
|
|
570
|
+
}
|
|
571
|
+
subscriberId
|
|
572
|
+
beneficiary {
|
|
573
|
+
...CoverageBeneficiaryReferenceFields
|
|
574
|
+
}
|
|
575
|
+
relationship {
|
|
576
|
+
...CodeableConceptFields
|
|
577
|
+
}
|
|
578
|
+
period {
|
|
579
|
+
...PeriodFields
|
|
580
|
+
}
|
|
581
|
+
payor {
|
|
582
|
+
...CoveragePayorReferenceFields
|
|
583
|
+
}
|
|
584
|
+
class {
|
|
585
|
+
...CoverageClassFields
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
${MetaFieldsFragmentDoc}
|
|
589
|
+
${IdentifierFieldsFragmentDoc}
|
|
590
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
591
|
+
${CoveragePolicyHolderReferenceFieldsFragmentDoc}
|
|
592
|
+
${CoverageBeneficiaryReferenceFieldsFragmentDoc}
|
|
593
|
+
${PeriodFieldsFragmentDoc}
|
|
594
|
+
${CoveragePayorReferenceFieldsFragmentDoc}
|
|
595
|
+
${CoverageClassFieldsFragmentDoc}`;
|
|
523
596
|
export const ProtocolAppliedFieldsFragmentDoc = `
|
|
524
597
|
fragment ProtocolAppliedFields on ProtocolApplied {
|
|
525
598
|
doseNumberString
|
|
@@ -1700,6 +1773,28 @@ export const PublishEventDocument = `
|
|
|
1700
1773
|
}
|
|
1701
1774
|
}
|
|
1702
1775
|
`;
|
|
1776
|
+
export const GetCoveragesDocument = `
|
|
1777
|
+
query getCoverages($id: SearchString, $lastUpdated: SearchDate, $sort: [String], $pageSize: Int, $page: Int, $patient: SearchReference, $beneficiary: SearchReference, $total: TotalType) {
|
|
1778
|
+
coverages(
|
|
1779
|
+
id: $id
|
|
1780
|
+
_lastUpdated: $lastUpdated
|
|
1781
|
+
_sort: $sort
|
|
1782
|
+
_count: $pageSize
|
|
1783
|
+
_getpagesoffset: $page
|
|
1784
|
+
patient: $patient
|
|
1785
|
+
beneficiary: $beneficiary
|
|
1786
|
+
_total: $total
|
|
1787
|
+
) {
|
|
1788
|
+
total
|
|
1789
|
+
entry {
|
|
1790
|
+
id
|
|
1791
|
+
resource {
|
|
1792
|
+
...CoverageFields
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
${CoverageFieldsFragmentDoc}`;
|
|
1703
1798
|
export const GetBinaryDocument = `
|
|
1704
1799
|
query getBinary($request: BinaryRequest!) {
|
|
1705
1800
|
getBinary(request: $request) {
|
|
@@ -3619,6 +3714,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3619
3714
|
publishEvent(variables, requestHeaders) {
|
|
3620
3715
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(PublishEventDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'publishEvent', 'mutation', variables);
|
|
3621
3716
|
},
|
|
3717
|
+
getCoverages(variables, requestHeaders) {
|
|
3718
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCoveragesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCoverages', 'query', variables);
|
|
3719
|
+
},
|
|
3622
3720
|
getBinary(variables, requestHeaders) {
|
|
3623
3721
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetBinaryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getBinary', 'query', variables);
|
|
3624
3722
|
},
|
|
@@ -65,6 +65,129 @@ export type ExtensionFieldsFragment = {
|
|
|
65
65
|
} | null> | null;
|
|
66
66
|
} | null;
|
|
67
67
|
};
|
|
68
|
+
export type CoverageFieldsFragment = {
|
|
69
|
+
resourceType: string | null;
|
|
70
|
+
id: string;
|
|
71
|
+
status: any | null;
|
|
72
|
+
subscriberId: string | null;
|
|
73
|
+
meta: {
|
|
74
|
+
versionId: string | null;
|
|
75
|
+
lastUpdated: any | null;
|
|
76
|
+
source: any | null;
|
|
77
|
+
security: Array<{
|
|
78
|
+
system: any | null;
|
|
79
|
+
code: any | null;
|
|
80
|
+
display: string | null;
|
|
81
|
+
} | null> | null;
|
|
82
|
+
tag: Array<{
|
|
83
|
+
system: any | null;
|
|
84
|
+
code: any | null;
|
|
85
|
+
display: string | null;
|
|
86
|
+
} | null> | null;
|
|
87
|
+
} | null;
|
|
88
|
+
identifier: Array<{
|
|
89
|
+
id: string | null;
|
|
90
|
+
system: any | null;
|
|
91
|
+
value: string | null;
|
|
92
|
+
type: {
|
|
93
|
+
text: string | null;
|
|
94
|
+
coding: Array<{
|
|
95
|
+
system: any | null;
|
|
96
|
+
code: any | null;
|
|
97
|
+
display: string | null;
|
|
98
|
+
} | null> | null;
|
|
99
|
+
} | null;
|
|
100
|
+
} | null> | null;
|
|
101
|
+
type: {
|
|
102
|
+
text: string | null;
|
|
103
|
+
coding: Array<{
|
|
104
|
+
system: any | null;
|
|
105
|
+
code: any | null;
|
|
106
|
+
display: string | null;
|
|
107
|
+
} | null> | null;
|
|
108
|
+
} | null;
|
|
109
|
+
policyHolder: {
|
|
110
|
+
reference: string | null;
|
|
111
|
+
display: string | null;
|
|
112
|
+
type: any | null;
|
|
113
|
+
} | null;
|
|
114
|
+
beneficiary: {
|
|
115
|
+
reference: string | null;
|
|
116
|
+
display: string | null;
|
|
117
|
+
type: any | null;
|
|
118
|
+
} | null;
|
|
119
|
+
relationship: {
|
|
120
|
+
text: string | null;
|
|
121
|
+
coding: Array<{
|
|
122
|
+
system: any | null;
|
|
123
|
+
code: any | null;
|
|
124
|
+
display: string | null;
|
|
125
|
+
} | null> | null;
|
|
126
|
+
} | null;
|
|
127
|
+
period: {
|
|
128
|
+
start: any | null;
|
|
129
|
+
end: any | null;
|
|
130
|
+
} | null;
|
|
131
|
+
payor: Array<{
|
|
132
|
+
reference: string | null;
|
|
133
|
+
display: string | null;
|
|
134
|
+
type: any | null;
|
|
135
|
+
} | null> | null;
|
|
136
|
+
class: Array<{
|
|
137
|
+
id: string | null;
|
|
138
|
+
value: string | null;
|
|
139
|
+
name: string | null;
|
|
140
|
+
type: {
|
|
141
|
+
text: string | null;
|
|
142
|
+
coding: Array<{
|
|
143
|
+
system: any | null;
|
|
144
|
+
code: any | null;
|
|
145
|
+
display: string | null;
|
|
146
|
+
} | null> | null;
|
|
147
|
+
} | null;
|
|
148
|
+
} | null> | null;
|
|
149
|
+
};
|
|
150
|
+
export type IdentifierFieldsFragment = {
|
|
151
|
+
id: string | null;
|
|
152
|
+
system: any | null;
|
|
153
|
+
value: string | null;
|
|
154
|
+
type: {
|
|
155
|
+
text: string | null;
|
|
156
|
+
coding: Array<{
|
|
157
|
+
system: any | null;
|
|
158
|
+
code: any | null;
|
|
159
|
+
display: string | null;
|
|
160
|
+
} | null> | null;
|
|
161
|
+
} | null;
|
|
162
|
+
};
|
|
163
|
+
export type CoveragePolicyHolderReferenceFieldsFragment = {
|
|
164
|
+
reference: string | null;
|
|
165
|
+
display: string | null;
|
|
166
|
+
type: any | null;
|
|
167
|
+
};
|
|
168
|
+
export type CoverageBeneficiaryReferenceFieldsFragment = {
|
|
169
|
+
reference: string | null;
|
|
170
|
+
display: string | null;
|
|
171
|
+
type: any | null;
|
|
172
|
+
};
|
|
173
|
+
export type CoveragePayorReferenceFieldsFragment = {
|
|
174
|
+
reference: string | null;
|
|
175
|
+
display: string | null;
|
|
176
|
+
type: any | null;
|
|
177
|
+
};
|
|
178
|
+
export type CoverageClassFieldsFragment = {
|
|
179
|
+
id: string | null;
|
|
180
|
+
value: string | null;
|
|
181
|
+
name: string | null;
|
|
182
|
+
type: {
|
|
183
|
+
text: string | null;
|
|
184
|
+
coding: Array<{
|
|
185
|
+
system: any | null;
|
|
186
|
+
code: any | null;
|
|
187
|
+
display: string | null;
|
|
188
|
+
} | null> | null;
|
|
189
|
+
} | null;
|
|
190
|
+
};
|
|
68
191
|
export type NarrativeFieldsFragment = {
|
|
69
192
|
div: any | null;
|
|
70
193
|
status: any | null;
|
|
@@ -99,19 +222,6 @@ export type HumanNameFieldsFragment = {
|
|
|
99
222
|
prefix: Array<string | null> | null;
|
|
100
223
|
suffix: Array<string | null> | null;
|
|
101
224
|
};
|
|
102
|
-
export type IdentifierFieldsFragment = {
|
|
103
|
-
id: string | null;
|
|
104
|
-
system: any | null;
|
|
105
|
-
value: string | null;
|
|
106
|
-
type: {
|
|
107
|
-
text: string | null;
|
|
108
|
-
coding: Array<{
|
|
109
|
-
system: any | null;
|
|
110
|
-
code: any | null;
|
|
111
|
-
display: string | null;
|
|
112
|
-
} | null> | null;
|
|
113
|
-
} | null;
|
|
114
|
-
};
|
|
115
225
|
export type ReactionFieldsFragment = {
|
|
116
226
|
description: string | null;
|
|
117
227
|
onset: any | null;
|
|
@@ -7067,6 +7177,106 @@ export type PublishEventMutationResults = {
|
|
|
7067
7177
|
id: string;
|
|
7068
7178
|
} | null;
|
|
7069
7179
|
};
|
|
7180
|
+
export type GetCoveragesQueryVariables = Types.Exact<{
|
|
7181
|
+
id: Types.InputMaybe<Types.SearchString>;
|
|
7182
|
+
lastUpdated: Types.InputMaybe<Types.SearchDate>;
|
|
7183
|
+
sort: Types.InputMaybe<Array<Types.InputMaybe<Types.Scalars['String']['input']>> | Types.InputMaybe<Types.Scalars['String']['input']>>;
|
|
7184
|
+
pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
7185
|
+
page: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
7186
|
+
patient: Types.InputMaybe<Types.SearchReference>;
|
|
7187
|
+
beneficiary: Types.InputMaybe<Types.SearchReference>;
|
|
7188
|
+
total: Types.InputMaybe<Types.TotalType>;
|
|
7189
|
+
}>;
|
|
7190
|
+
export type GetCoveragesQueryResults = {
|
|
7191
|
+
coverages: {
|
|
7192
|
+
total: number | null;
|
|
7193
|
+
entry: Array<{
|
|
7194
|
+
id: string | null;
|
|
7195
|
+
resource: {
|
|
7196
|
+
resourceType: string | null;
|
|
7197
|
+
id: string;
|
|
7198
|
+
status: any | null;
|
|
7199
|
+
subscriberId: string | null;
|
|
7200
|
+
meta: {
|
|
7201
|
+
versionId: string | null;
|
|
7202
|
+
lastUpdated: any | null;
|
|
7203
|
+
source: any | null;
|
|
7204
|
+
security: Array<{
|
|
7205
|
+
system: any | null;
|
|
7206
|
+
code: any | null;
|
|
7207
|
+
display: string | null;
|
|
7208
|
+
} | null> | null;
|
|
7209
|
+
tag: Array<{
|
|
7210
|
+
system: any | null;
|
|
7211
|
+
code: any | null;
|
|
7212
|
+
display: string | null;
|
|
7213
|
+
} | null> | null;
|
|
7214
|
+
} | null;
|
|
7215
|
+
identifier: Array<{
|
|
7216
|
+
id: string | null;
|
|
7217
|
+
system: any | null;
|
|
7218
|
+
value: string | null;
|
|
7219
|
+
type: {
|
|
7220
|
+
text: string | null;
|
|
7221
|
+
coding: Array<{
|
|
7222
|
+
system: any | null;
|
|
7223
|
+
code: any | null;
|
|
7224
|
+
display: string | null;
|
|
7225
|
+
} | null> | null;
|
|
7226
|
+
} | null;
|
|
7227
|
+
} | null> | null;
|
|
7228
|
+
type: {
|
|
7229
|
+
text: string | null;
|
|
7230
|
+
coding: Array<{
|
|
7231
|
+
system: any | null;
|
|
7232
|
+
code: any | null;
|
|
7233
|
+
display: string | null;
|
|
7234
|
+
} | null> | null;
|
|
7235
|
+
} | null;
|
|
7236
|
+
policyHolder: {
|
|
7237
|
+
reference: string | null;
|
|
7238
|
+
display: string | null;
|
|
7239
|
+
type: any | null;
|
|
7240
|
+
} | null;
|
|
7241
|
+
beneficiary: {
|
|
7242
|
+
reference: string | null;
|
|
7243
|
+
display: string | null;
|
|
7244
|
+
type: any | null;
|
|
7245
|
+
} | null;
|
|
7246
|
+
relationship: {
|
|
7247
|
+
text: string | null;
|
|
7248
|
+
coding: Array<{
|
|
7249
|
+
system: any | null;
|
|
7250
|
+
code: any | null;
|
|
7251
|
+
display: string | null;
|
|
7252
|
+
} | null> | null;
|
|
7253
|
+
} | null;
|
|
7254
|
+
period: {
|
|
7255
|
+
start: any | null;
|
|
7256
|
+
end: any | null;
|
|
7257
|
+
} | null;
|
|
7258
|
+
payor: Array<{
|
|
7259
|
+
reference: string | null;
|
|
7260
|
+
display: string | null;
|
|
7261
|
+
type: any | null;
|
|
7262
|
+
} | null> | null;
|
|
7263
|
+
class: Array<{
|
|
7264
|
+
id: string | null;
|
|
7265
|
+
value: string | null;
|
|
7266
|
+
name: string | null;
|
|
7267
|
+
type: {
|
|
7268
|
+
text: string | null;
|
|
7269
|
+
coding: Array<{
|
|
7270
|
+
system: any | null;
|
|
7271
|
+
code: any | null;
|
|
7272
|
+
display: string | null;
|
|
7273
|
+
} | null> | null;
|
|
7274
|
+
} | null;
|
|
7275
|
+
} | null> | null;
|
|
7276
|
+
} | null;
|
|
7277
|
+
} | null> | null;
|
|
7278
|
+
} | null;
|
|
7279
|
+
};
|
|
7070
7280
|
export type GetBinaryQueryVariables = Types.Exact<{
|
|
7071
7281
|
request: Types.BinaryRequest;
|
|
7072
7282
|
}>;
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -1215,6 +1215,11 @@ export type CoveragePolicyHolderReference = {
|
|
|
1215
1215
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1216
1216
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1217
1217
|
};
|
|
1218
|
+
export type CreateHealthLinkInput = {
|
|
1219
|
+
label?: InputMaybe<Scalars['String']['input']>;
|
|
1220
|
+
resources?: InputMaybe<Array<ResourceInput>>;
|
|
1221
|
+
securityConfig: SecurityConfigInput;
|
|
1222
|
+
};
|
|
1218
1223
|
/** Supported ISO 4217 CurrencyCodes */
|
|
1219
1224
|
export declare enum CurrencyCode {
|
|
1220
1225
|
Usd = "USD"
|
|
@@ -1338,12 +1343,18 @@ export type DiagnosticReport = Resource & {
|
|
|
1338
1343
|
/** Resource type for the diagnostic report */
|
|
1339
1344
|
resourceType?: Maybe<Scalars['String']['output']>;
|
|
1340
1345
|
result?: Maybe<Array<Maybe<DiagnosticReportResultReference>>>;
|
|
1346
|
+
resultsInterpreter?: Maybe<Array<Maybe<DiagnosticReportResultsInterpreterReference>>>;
|
|
1341
1347
|
status?: Maybe<Scalars['Code']['output']>;
|
|
1348
|
+
subject?: Maybe<DiagnosticReportSubjectReference>;
|
|
1342
1349
|
};
|
|
1343
1350
|
export type DiagnosticReportBasedOnReference = {
|
|
1344
1351
|
__typename?: 'DiagnosticReportBasedOnReference';
|
|
1345
1352
|
display?: Maybe<Scalars['String']['output']>;
|
|
1353
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
1354
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1355
|
+
identifier?: Maybe<Identifier>;
|
|
1346
1356
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1357
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
1347
1358
|
};
|
|
1348
1359
|
export type DiagnosticReportBundle = {
|
|
1349
1360
|
__typename?: 'DiagnosticReportBundle';
|
|
@@ -1357,7 +1368,11 @@ export type DiagnosticReportBundleEntry = {
|
|
|
1357
1368
|
export type DiagnosticReportEncounterReference = {
|
|
1358
1369
|
__typename?: 'DiagnosticReportEncounterReference';
|
|
1359
1370
|
display?: Maybe<Scalars['String']['output']>;
|
|
1371
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
1372
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1373
|
+
identifier?: Maybe<Identifier>;
|
|
1360
1374
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1375
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
1361
1376
|
};
|
|
1362
1377
|
export type DiagnosticReportLabGroup = ResourceGroup & {
|
|
1363
1378
|
__typename?: 'DiagnosticReportLabGroup';
|
|
@@ -1392,12 +1407,38 @@ export type DiagnosticReportLabGroupQueryResults = PagedQueryResults & {
|
|
|
1392
1407
|
export type DiagnosticReportPerformerReference = {
|
|
1393
1408
|
__typename?: 'DiagnosticReportPerformerReference';
|
|
1394
1409
|
display?: Maybe<Scalars['String']['output']>;
|
|
1410
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
1411
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1412
|
+
identifier?: Maybe<Identifier>;
|
|
1395
1413
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1414
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
1396
1415
|
};
|
|
1397
1416
|
export type DiagnosticReportResultReference = {
|
|
1398
1417
|
__typename?: 'DiagnosticReportResultReference';
|
|
1399
1418
|
display?: Maybe<Scalars['String']['output']>;
|
|
1419
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
1420
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1421
|
+
identifier?: Maybe<Identifier>;
|
|
1400
1422
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1423
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
1424
|
+
};
|
|
1425
|
+
export type DiagnosticReportResultsInterpreterReference = {
|
|
1426
|
+
__typename?: 'DiagnosticReportResultsInterpreterReference';
|
|
1427
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
1428
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
1429
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1430
|
+
identifier?: Maybe<Identifier>;
|
|
1431
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
1432
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
1433
|
+
};
|
|
1434
|
+
export type DiagnosticReportSubjectReference = {
|
|
1435
|
+
__typename?: 'DiagnosticReportSubjectReference';
|
|
1436
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
1437
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
1438
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1439
|
+
identifier?: Maybe<Identifier>;
|
|
1440
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
1441
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
1401
1442
|
};
|
|
1402
1443
|
/** Defines connection information after disconnection */
|
|
1403
1444
|
export type DisconnectConnection = {
|
|
@@ -1432,6 +1473,10 @@ export type DispenseRequest = {
|
|
|
1432
1473
|
/** Period A time period defined by a start and end date and optionally time. If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions */
|
|
1433
1474
|
validityPeriod?: Maybe<Period>;
|
|
1434
1475
|
};
|
|
1476
|
+
export type DocumentReference = {
|
|
1477
|
+
__typename?: 'DocumentReference';
|
|
1478
|
+
id: Scalars['ID']['output'];
|
|
1479
|
+
};
|
|
1435
1480
|
/** Where to access the document */
|
|
1436
1481
|
export type DocumentReferenceAttachment = {
|
|
1437
1482
|
__typename?: 'DocumentReferenceAttachment';
|
|
@@ -1740,7 +1785,7 @@ export type ExplanationOfBenefit = {
|
|
|
1740
1785
|
};
|
|
1741
1786
|
export type ExplanationOfBenefitAdjudication = {
|
|
1742
1787
|
__typename?: 'ExplanationOfBenefitAdjudication';
|
|
1743
|
-
amount?: Maybe<
|
|
1788
|
+
amount?: Maybe<Money>;
|
|
1744
1789
|
category?: Maybe<CodeableConcept>;
|
|
1745
1790
|
reason?: Maybe<CodeableConcept>;
|
|
1746
1791
|
value?: Maybe<Scalars['Float']['output']>;
|
|
@@ -1770,32 +1815,32 @@ export type ExplanationOfBenefitCareTeamProviderReference = {
|
|
|
1770
1815
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1771
1816
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1772
1817
|
};
|
|
1773
|
-
export type ExplanationOfBenefitCoverageReference = {
|
|
1774
|
-
__typename?: 'ExplanationOfBenefitCoverageReference';
|
|
1775
|
-
display?: Maybe<Scalars['String']['output']>;
|
|
1776
|
-
reference?: Maybe<Scalars['String']['output']>;
|
|
1777
|
-
type?: Maybe<Scalars['URI']['output']>;
|
|
1778
|
-
};
|
|
1779
1818
|
export type ExplanationOfBenefitDiagnosis = {
|
|
1780
1819
|
__typename?: 'ExplanationOfBenefitDiagnosis';
|
|
1781
1820
|
diagnosisCodeableConcept?: Maybe<CodeableConcept>;
|
|
1782
|
-
diagnosisReference?: Maybe<
|
|
1821
|
+
diagnosisReference?: Maybe<ExplanationOfBenefitDiagnosisDiagnosisReferenceReference>;
|
|
1783
1822
|
onAdmission?: Maybe<CodeableConcept>;
|
|
1784
1823
|
packageCode?: Maybe<CodeableConcept>;
|
|
1785
1824
|
sequence?: Maybe<Scalars['Int']['output']>;
|
|
1786
1825
|
type?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
1787
1826
|
};
|
|
1788
|
-
export type
|
|
1789
|
-
__typename?: '
|
|
1827
|
+
export type ExplanationOfBenefitDiagnosisDiagnosisReferenceReference = {
|
|
1828
|
+
__typename?: 'ExplanationOfBenefitDiagnosisDiagnosisReferenceReference';
|
|
1790
1829
|
display?: Maybe<Scalars['String']['output']>;
|
|
1791
1830
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1792
1831
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1793
1832
|
};
|
|
1794
1833
|
export type ExplanationOfBenefitInsurance = {
|
|
1795
1834
|
__typename?: 'ExplanationOfBenefitInsurance';
|
|
1796
|
-
coverage?: Maybe<
|
|
1835
|
+
coverage?: Maybe<ExplanationOfBenefitInsuranceCoverageReference>;
|
|
1797
1836
|
focal?: Maybe<Scalars['Boolean']['output']>;
|
|
1798
1837
|
};
|
|
1838
|
+
export type ExplanationOfBenefitInsuranceCoverageReference = {
|
|
1839
|
+
__typename?: 'ExplanationOfBenefitInsuranceCoverageReference';
|
|
1840
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
1841
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
1842
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
1843
|
+
};
|
|
1799
1844
|
export type ExplanationOfBenefitInsurerReference = {
|
|
1800
1845
|
__typename?: 'ExplanationOfBenefitInsurerReference';
|
|
1801
1846
|
display?: Maybe<Scalars['String']['output']>;
|
|
@@ -1831,9 +1876,9 @@ export type ExplanationOfBenefitPayeePartyReference = {
|
|
|
1831
1876
|
};
|
|
1832
1877
|
export type ExplanationOfBenefitPayment = {
|
|
1833
1878
|
__typename?: 'ExplanationOfBenefitPayment';
|
|
1834
|
-
adjustment?: Maybe<
|
|
1879
|
+
adjustment?: Maybe<Money>;
|
|
1835
1880
|
adjustmentReason?: Maybe<CodeableConcept>;
|
|
1836
|
-
amount?: Maybe<
|
|
1881
|
+
amount?: Maybe<Money>;
|
|
1837
1882
|
date?: Maybe<Scalars['Date']['output']>;
|
|
1838
1883
|
type?: Maybe<CodeableConcept>;
|
|
1839
1884
|
};
|
|
@@ -1865,7 +1910,7 @@ export type ExplanationOfBenefitSupportingInfoValueReferenceReference = {
|
|
|
1865
1910
|
};
|
|
1866
1911
|
export type ExplanationOfBenefitTotal = {
|
|
1867
1912
|
__typename?: 'ExplanationOfBenefitTotal';
|
|
1868
|
-
amount?: Maybe<
|
|
1913
|
+
amount?: Maybe<Money>;
|
|
1869
1914
|
category?: Maybe<CodeableConcept>;
|
|
1870
1915
|
};
|
|
1871
1916
|
/**
|
|
@@ -2174,6 +2219,9 @@ export type GuestAccessToken = {
|
|
|
2174
2219
|
refreshToken: Scalars['String']['output'];
|
|
2175
2220
|
tokenType: Scalars['String']['output'];
|
|
2176
2221
|
};
|
|
2222
|
+
export type HealthLinkFilter = {
|
|
2223
|
+
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
2224
|
+
};
|
|
2177
2225
|
/** Unified search result type */
|
|
2178
2226
|
export type HealthResourceSearchResult = {
|
|
2179
2227
|
__typename?: 'HealthResourceSearchResult';
|
|
@@ -3079,6 +3127,7 @@ export type Mutation = {
|
|
|
3079
3127
|
createConsent?: Maybe<Consent>;
|
|
3080
3128
|
createDataExportDirectDownloadUrl?: Maybe<Scalars['String']['output']>;
|
|
3081
3129
|
createGuestAccessToken: GuestAccessToken;
|
|
3130
|
+
createHealthLink: DocumentReference;
|
|
3082
3131
|
createMissingConsents?: Maybe<Scalars['String']['output']>;
|
|
3083
3132
|
createPersonWithClientId?: Maybe<PersonWithMetadata>;
|
|
3084
3133
|
createQuestionnaireResponse?: Maybe<ConsentQuestionnaireResponse>;
|
|
@@ -3334,6 +3383,9 @@ export type MutationCreateDataExportDirectDownloadUrlArgs = {
|
|
|
3334
3383
|
export type MutationCreateGuestAccessTokenArgs = {
|
|
3335
3384
|
clientKey: Scalars['String']['input'];
|
|
3336
3385
|
};
|
|
3386
|
+
export type MutationCreateHealthLinkArgs = {
|
|
3387
|
+
input: CreateHealthLinkInput;
|
|
3388
|
+
};
|
|
3337
3389
|
export type MutationCreateMissingConsentsArgs = {
|
|
3338
3390
|
endDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
3339
3391
|
patientId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4682,6 +4734,7 @@ export type Query = {
|
|
|
4682
4734
|
/** Retrieves a list of vital signs based on the provided request parameters. */
|
|
4683
4735
|
getVitalSigns: ObservationQueryResults;
|
|
4684
4736
|
goals?: Maybe<GoalBundle>;
|
|
4737
|
+
healthLinks?: Maybe<Array<DocumentReference>>;
|
|
4685
4738
|
initSdk: SdkConfiguration;
|
|
4686
4739
|
login: LogInResponse;
|
|
4687
4740
|
patients?: Maybe<PatientBundle>;
|
|
@@ -4710,7 +4763,6 @@ export type Query = {
|
|
|
4710
4763
|
searchProviders: SearchProvidersResults;
|
|
4711
4764
|
status?: Maybe<Scalars['String']['output']>;
|
|
4712
4765
|
subscription_subscription?: Maybe<Subscription_SubscriptionBundle>;
|
|
4713
|
-
temp?: Maybe<Temp>;
|
|
4714
4766
|
userProfile?: Maybe<Person>;
|
|
4715
4767
|
verificationStatus?: Maybe<VerificationResult>;
|
|
4716
4768
|
who?: Maybe<Scalars['String']['output']>;
|
|
@@ -4868,6 +4920,11 @@ export type QueryGetMedicationRequestArgs = {
|
|
|
4868
4920
|
export type QueryGetMedicationStatementsArgs = {
|
|
4869
4921
|
request?: InputMaybe<MedicationStatementQueryRequest>;
|
|
4870
4922
|
};
|
|
4923
|
+
export type QueryGetMemberConnectionsArgs = {
|
|
4924
|
+
integrationType?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
4925
|
+
status?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
4926
|
+
syncStatus?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
4927
|
+
};
|
|
4871
4928
|
export type QueryGetOauthUrlArgs = {
|
|
4872
4929
|
connectionId: Scalars['String']['input'];
|
|
4873
4930
|
};
|
|
@@ -4908,6 +4965,9 @@ export type QueryGoalsArgs = {
|
|
|
4908
4965
|
id?: InputMaybe<SearchString>;
|
|
4909
4966
|
subject?: InputMaybe<SearchReference>;
|
|
4910
4967
|
};
|
|
4968
|
+
export type QueryHealthLinksArgs = {
|
|
4969
|
+
input?: InputMaybe<HealthLinkFilter>;
|
|
4970
|
+
};
|
|
4911
4971
|
export type QueryInitSdkArgs = {
|
|
4912
4972
|
clientKey: Scalars['String']['input'];
|
|
4913
4973
|
organizationId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5008,9 +5068,6 @@ export type QuerySubscription_SubscriptionArgs = {
|
|
|
5008
5068
|
_sort?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
5009
5069
|
_total?: InputMaybe<TotalType>;
|
|
5010
5070
|
};
|
|
5011
|
-
export type QueryTempArgs = {
|
|
5012
|
-
id: Scalars['ID']['input'];
|
|
5013
|
-
};
|
|
5014
5071
|
export type Questionnaire = Resource & {
|
|
5015
5072
|
__typename?: 'Questionnaire';
|
|
5016
5073
|
contained?: Maybe<Array<Maybe<Resource>>>;
|
|
@@ -5413,6 +5470,9 @@ export type ResourceGroup = {
|
|
|
5413
5470
|
/** Array of Strings representing the source of the data */
|
|
5414
5471
|
source?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
5415
5472
|
};
|
|
5473
|
+
export type ResourceInput = {
|
|
5474
|
+
resourceType: Scalars['String']['input'];
|
|
5475
|
+
};
|
|
5416
5476
|
export type ResourceReference = {
|
|
5417
5477
|
__typename?: 'ResourceReference';
|
|
5418
5478
|
reference?: Maybe<Scalars['String']['output']>;
|
|
@@ -5708,20 +5768,92 @@ export type Security = {
|
|
|
5708
5768
|
id?: Maybe<Scalars['String']['output']>;
|
|
5709
5769
|
system?: Maybe<Scalars['String']['output']>;
|
|
5710
5770
|
};
|
|
5711
|
-
export type
|
|
5771
|
+
export type SecurityConfigInput = {
|
|
5772
|
+
passcode: Scalars['String']['input'];
|
|
5773
|
+
};
|
|
5774
|
+
export type ServiceRequest = Resource & {
|
|
5712
5775
|
__typename?: 'ServiceRequest';
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5776
|
+
authoredOn?: Maybe<Scalars['DateTime']['output']>;
|
|
5777
|
+
category?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
5778
|
+
code?: Maybe<CodeableConcept>;
|
|
5779
|
+
doNotPerform?: Maybe<Scalars['Boolean']['output']>;
|
|
5780
|
+
encounter?: Maybe<ServiceRequestEncounterReference>;
|
|
5717
5781
|
id: Scalars['ID']['output'];
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5782
|
+
identifier?: Maybe<Array<Maybe<Identifier>>>;
|
|
5783
|
+
implicitRules?: Maybe<Scalars['URI']['output']>;
|
|
5784
|
+
intent?: Maybe<Scalars['Code']['output']>;
|
|
5785
|
+
language?: Maybe<Scalars['Code']['output']>;
|
|
5786
|
+
locationReference?: Maybe<Array<Maybe<ServiceRequestLocationReferenceReference>>>;
|
|
5787
|
+
meta?: Maybe<Meta>;
|
|
5788
|
+
occurrenceDateTime?: Maybe<Scalars['DateTime']['output']>;
|
|
5789
|
+
performer?: Maybe<Array<Maybe<ServiceRequestPerformerReference>>>;
|
|
5723
5790
|
reasonCode?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
5791
|
+
reasonReference?: Maybe<Array<Maybe<ServiceRequestReasonReferenceReference>>>;
|
|
5792
|
+
requester?: Maybe<ServiceRequestRequesterReference>;
|
|
5724
5793
|
resourceType?: Maybe<Scalars['String']['output']>;
|
|
5794
|
+
status?: Maybe<Scalars['Code']['output']>;
|
|
5795
|
+
subject?: Maybe<ServiceRequestSubjectReference>;
|
|
5796
|
+
};
|
|
5797
|
+
export type ServiceRequestBundle = {
|
|
5798
|
+
__typename?: 'ServiceRequestBundle';
|
|
5799
|
+
entry?: Maybe<Array<Maybe<ServiceRequestBundleEntry>>>;
|
|
5800
|
+
total?: Maybe<Scalars['Int']['output']>;
|
|
5801
|
+
};
|
|
5802
|
+
export type ServiceRequestBundleEntry = {
|
|
5803
|
+
__typename?: 'ServiceRequestBundleEntry';
|
|
5804
|
+
resource?: Maybe<ServiceRequest>;
|
|
5805
|
+
};
|
|
5806
|
+
export type ServiceRequestEncounterReference = {
|
|
5807
|
+
__typename?: 'ServiceRequestEncounterReference';
|
|
5808
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5809
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5810
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5811
|
+
identifier?: Maybe<Identifier>;
|
|
5812
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5813
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5814
|
+
};
|
|
5815
|
+
export type ServiceRequestLocationReferenceReference = {
|
|
5816
|
+
__typename?: 'ServiceRequestLocationReferenceReference';
|
|
5817
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5818
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5819
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5820
|
+
identifier?: Maybe<Identifier>;
|
|
5821
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5822
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5823
|
+
};
|
|
5824
|
+
export type ServiceRequestPerformerReference = {
|
|
5825
|
+
__typename?: 'ServiceRequestPerformerReference';
|
|
5826
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5827
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5828
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5829
|
+
identifier?: Maybe<Identifier>;
|
|
5830
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5831
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5832
|
+
};
|
|
5833
|
+
export type ServiceRequestReasonReferenceReference = {
|
|
5834
|
+
__typename?: 'ServiceRequestReasonReferenceReference';
|
|
5835
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5836
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5837
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5838
|
+
identifier?: Maybe<Identifier>;
|
|
5839
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5840
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5841
|
+
};
|
|
5842
|
+
export type ServiceRequestRequesterReference = {
|
|
5843
|
+
__typename?: 'ServiceRequestRequesterReference';
|
|
5844
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5845
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5846
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5847
|
+
identifier?: Maybe<Identifier>;
|
|
5848
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5849
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5850
|
+
};
|
|
5851
|
+
export type ServiceRequestSubjectReference = {
|
|
5852
|
+
__typename?: 'ServiceRequestSubjectReference';
|
|
5853
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5854
|
+
identifier?: Maybe<Identifier>;
|
|
5855
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5856
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5725
5857
|
};
|
|
5726
5858
|
export declare enum SortField {
|
|
5727
5859
|
Content = "content",
|
|
@@ -5758,12 +5890,61 @@ export declare enum SourceEnum {
|
|
|
5758
5890
|
Sayt = "SAYT",
|
|
5759
5891
|
Unspecified = "UNSPECIFIED"
|
|
5760
5892
|
}
|
|
5893
|
+
export type Specimen = Resource & {
|
|
5894
|
+
__typename?: 'Specimen';
|
|
5895
|
+
accessionIdentifier?: Maybe<Identifier>;
|
|
5896
|
+
collection?: Maybe<SpecimenCollection>;
|
|
5897
|
+
condition?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
5898
|
+
id: Scalars['ID']['output'];
|
|
5899
|
+
identifier?: Maybe<Array<Maybe<Identifier>>>;
|
|
5900
|
+
implicitRules?: Maybe<Scalars['URI']['output']>;
|
|
5901
|
+
language?: Maybe<Scalars['Code']['output']>;
|
|
5902
|
+
meta?: Maybe<Meta>;
|
|
5903
|
+
resourceType?: Maybe<Scalars['String']['output']>;
|
|
5904
|
+
status?: Maybe<Scalars['Code']['output']>;
|
|
5905
|
+
subject?: Maybe<SpecimenSubjectReference>;
|
|
5906
|
+
type?: Maybe<CodeableConcept>;
|
|
5907
|
+
};
|
|
5908
|
+
export type SpecimenBundle = {
|
|
5909
|
+
__typename?: 'SpecimenBundle';
|
|
5910
|
+
entry?: Maybe<Array<Maybe<SpecimenBundleEntry>>>;
|
|
5911
|
+
total?: Maybe<Scalars['Int']['output']>;
|
|
5912
|
+
};
|
|
5913
|
+
export type SpecimenBundleEntry = {
|
|
5914
|
+
__typename?: 'SpecimenBundleEntry';
|
|
5915
|
+
resource?: Maybe<Specimen>;
|
|
5916
|
+
};
|
|
5917
|
+
export type SpecimenCollection = {
|
|
5918
|
+
__typename?: 'SpecimenCollection';
|
|
5919
|
+
bodySite?: Maybe<CodeableConcept>;
|
|
5920
|
+
collectedDateTime?: Maybe<Scalars['DateTime']['output']>;
|
|
5921
|
+
collector?: Maybe<SpecimenCollectionCollectorReference>;
|
|
5922
|
+
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5923
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
5924
|
+
method?: Maybe<CodeableConcept>;
|
|
5925
|
+
modifierExtension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
5926
|
+
quantity?: Maybe<Quantity>;
|
|
5927
|
+
};
|
|
5928
|
+
export type SpecimenCollectionCollectorReference = {
|
|
5929
|
+
__typename?: 'SpecimenCollectionCollectorReference';
|
|
5930
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5931
|
+
identifier?: Maybe<Identifier>;
|
|
5932
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5933
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5934
|
+
};
|
|
5761
5935
|
export type SpecimenResource = {
|
|
5762
5936
|
__typename?: 'SpecimenResource';
|
|
5763
5937
|
accessionIdentifier?: Maybe<Identifier>;
|
|
5764
5938
|
identifier?: Maybe<Array<Maybe<Identifier>>>;
|
|
5765
5939
|
type?: Maybe<CodeableConcept>;
|
|
5766
5940
|
};
|
|
5941
|
+
export type SpecimenSubjectReference = {
|
|
5942
|
+
__typename?: 'SpecimenSubjectReference';
|
|
5943
|
+
display?: Maybe<Scalars['String']['output']>;
|
|
5944
|
+
identifier?: Maybe<Identifier>;
|
|
5945
|
+
reference?: Maybe<Scalars['String']['output']>;
|
|
5946
|
+
type?: Maybe<Scalars['URI']['output']>;
|
|
5947
|
+
};
|
|
5767
5948
|
/** Represents the subject (patient or group) of the care plan. */
|
|
5768
5949
|
export type Subject = {
|
|
5769
5950
|
__typename?: 'Subject';
|
|
@@ -6013,10 +6194,6 @@ export type TelemetryConfig = {
|
|
|
6013
6194
|
collectorUrl: Scalars['String']['output'];
|
|
6014
6195
|
enabled?: Maybe<Scalars['Boolean']['output']>;
|
|
6015
6196
|
};
|
|
6016
|
-
export type Temp = {
|
|
6017
|
-
__typename?: 'Temp';
|
|
6018
|
-
id: Scalars['ID']['output'];
|
|
6019
|
-
};
|
|
6020
6197
|
export type Timing = {
|
|
6021
6198
|
__typename?: 'Timing';
|
|
6022
6199
|
code?: Maybe<CodeableConcept>;
|