@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1762170538 → 2.0.0-beta-rc.1762279183
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 +38 -0
- package/dist/api/base/financial/coverage-request.js +59 -0
- package/dist/api/base/financial/financial-manager.d.ts +34 -0
- package/dist/api/base/financial/financial-manager.js +1 -0
- package/dist/api/base/financial/index.d.ts +3 -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/coverage-request-factory.d.ts +9 -0
- package/dist/api/graphql-api/financial/coverage-request-factory.js +19 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +12 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.js +58 -0
- package/dist/api/graphql-api/financial/index.d.ts +3 -0
- package/dist/api/graphql-api/financial/index.js +3 -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 +9 -1
- package/dist/bwell-sdk/bwell-sdk.js +10 -0
- package/dist/graphql/operations/index.d.ts +8 -0
- package/dist/graphql/operations/index.js +72 -0
- package/dist/graphql/operations/types.d.ts +158 -21
- package/dist/models/financial/coverage-bundle.d.ts +18 -0
- package/dist/models/financial/coverage-bundle.js +1 -0
- package/dist/models/financial/coverage.d.ts +63 -0
- package/dist/models/financial/coverage.js +1 -0
- package/dist/models/financial/index.d.ts +2 -0
- package/dist/models/financial/index.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { LanguageManager } from "../../language/language-manager.js";
|
|
2
2
|
import { ConnectionManager } from "./connection/index.js";
|
|
3
3
|
import { DeviceManager } from "./device/index.js";
|
|
4
|
+
import { FinancialManager } from "./financial/index.js";
|
|
4
5
|
import { HealthManager } from "./health-data/index.js";
|
|
5
6
|
import { HealthSpaceManager } from "./health-space/index.js";
|
|
6
7
|
import { IdentityManager } from "./identity/identity-manager.js";
|
|
@@ -9,6 +10,7 @@ import { SearchManager } from "./search/search-manager.js";
|
|
|
9
10
|
import { UserManager } from "./user/index.js";
|
|
10
11
|
export interface ApiProvider {
|
|
11
12
|
readonly health: HealthManager;
|
|
13
|
+
readonly financial: FinancialManager;
|
|
12
14
|
readonly healthSpace: HealthSpaceManager;
|
|
13
15
|
readonly user: UserManager;
|
|
14
16
|
readonly device: DeviceManager;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { SearchDate, SearchReference, SearchString } 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
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Validator for Coverage request inputs.
|
|
18
|
+
* Validates the paged request properties as well as Coverage-specific search parameters.
|
|
19
|
+
*/
|
|
20
|
+
declare class CoverageRequestValidator extends PagedRequestValidator<CoverageRequestInput> {
|
|
21
|
+
#private;
|
|
22
|
+
/**
|
|
23
|
+
* Validates the paged request properties as well as Coverage-specific search parameters.
|
|
24
|
+
* @param data CoverageRequestInput to validate
|
|
25
|
+
* @param errors ErrorsCollector to collect validation errors
|
|
26
|
+
*/
|
|
27
|
+
validate(data: CoverageRequestInput, errors: ErrorsCollector): void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Request object for fetching Coverage FHIR resources.
|
|
31
|
+
* @category Requests
|
|
32
|
+
* @title CoveragesRequest
|
|
33
|
+
* @excerpt Request object for fetching Coverage FHIR resources with validation
|
|
34
|
+
*/
|
|
35
|
+
export declare class CoveragesRequest extends PagedRequest<CoverageRequestInput> {
|
|
36
|
+
protected validator: CoverageRequestValidator;
|
|
37
|
+
}
|
|
38
|
+
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 the paged request properties as well as 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 the paged request properties as well as Coverage-specific search parameters.
|
|
25
|
+
* @param data CoverageRequestInput to validate
|
|
26
|
+
* @param errors ErrorsCollector to collect validation errors
|
|
27
|
+
*/
|
|
28
|
+
validate(data, errors) {
|
|
29
|
+
super.validate(data, errors);
|
|
30
|
+
// Validate SearchString fields
|
|
31
|
+
if (isNotUndefined(data.id)) {
|
|
32
|
+
__classPrivateFieldGet(this, _CoverageRequestValidator_searchStringValidator, "f").validate(data.id, errors);
|
|
33
|
+
}
|
|
34
|
+
// Validate SearchDate fields
|
|
35
|
+
if (isNotUndefined(data.lastUpdated)) {
|
|
36
|
+
__classPrivateFieldGet(this, _CoverageRequestValidator_searchDateValidator, "f").validate(data.lastUpdated, errors);
|
|
37
|
+
}
|
|
38
|
+
// Validate SearchReference 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,34 @@
|
|
|
1
|
+
import { CoverageBundle } from "../../../models/index.js";
|
|
2
|
+
import type { BWellQueryResult } from "../../../results/index.js";
|
|
3
|
+
import type { BaseManagerError } from "../errors.js";
|
|
4
|
+
import { CoveragesRequest } from "./coverage-request.js";
|
|
5
|
+
/**
|
|
6
|
+
* Financial Manager for insurance coverage and financial data access.
|
|
7
|
+
* Provides methods for retrieving financial records including coverage information,
|
|
8
|
+
* insurance plans, and payment details.
|
|
9
|
+
* @see https://build.fhir.org/financial-module.html
|
|
10
|
+
* @category Managers
|
|
11
|
+
* @title FinancialManager
|
|
12
|
+
* @excerpt Financial Manager for insurance coverage and financial data access
|
|
13
|
+
*/
|
|
14
|
+
export interface FinancialManager {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves a list of coverage resources for the authenticated user.
|
|
17
|
+
* Gets individual coverage records including insurance plans and benefits.
|
|
18
|
+
*
|
|
19
|
+
* @param {CoveragesRequest} request - Request class instance for specifying the search criteria
|
|
20
|
+
*
|
|
21
|
+
* @returns {Promise<BWellQueryResult<CoverageBundle>>} A promise resolving to an object representing the list of coverages retrieved.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const paginatedCoverages = await sdk.financial.getCoverages(
|
|
26
|
+
* new CoveragesRequest({
|
|
27
|
+
* page: 0,
|
|
28
|
+
* pageSize: 10,
|
|
29
|
+
* })
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
getCoverages(request: CoveragesRequest): Promise<BWellQueryResult<CoverageBundle, BaseManagerError>>;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CoveragesRequest } from "./coverage-request.js";
|
package/dist/api/base/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
+
export * from "./financial/index.js";
|
|
4
5
|
export * from "./search/index.js";
|
|
5
6
|
export * from "./connection/index.js";
|
|
6
7
|
export * from "./device/index.js";
|
package/dist/api/base/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./requests/index.js";
|
|
2
2
|
export * from "./user/index.js";
|
|
3
3
|
export * from "./health-data/index.js";
|
|
4
|
+
export * from "./financial/index.js";
|
|
4
5
|
// export * from "./activity/index.js";
|
|
5
6
|
export * from "./search/index.js";
|
|
6
7
|
export * from "./connection/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,9 @@
|
|
|
1
|
+
import type { GetCoveragesQueryVariables } from "../../../graphql/operations/types.js";
|
|
2
|
+
import type { RequestFactory } from "../../../requests/request.js";
|
|
3
|
+
import { CoveragesRequest } from "../../base/financial/coverage-request.js";
|
|
4
|
+
/**
|
|
5
|
+
* Factory to create Coverage GraphQL variables from CoveragesRequest.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CoveragesRequestFactory implements RequestFactory<CoveragesRequest, GetCoveragesQueryVariables> {
|
|
8
|
+
create(request: CoveragesRequest): GetCoveragesQueryVariables;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factory to create Coverage GraphQL variables from CoveragesRequest.
|
|
3
|
+
*/
|
|
4
|
+
export class CoveragesRequestFactory {
|
|
5
|
+
create(request) {
|
|
6
|
+
var _a, _b, _c, _d, _e;
|
|
7
|
+
const input = request.data();
|
|
8
|
+
return {
|
|
9
|
+
page: input.page,
|
|
10
|
+
pageSize: input.pageSize,
|
|
11
|
+
id: (_a = input.id) !== null && _a !== void 0 ? _a : null,
|
|
12
|
+
beneficiary: (_b = input.beneficiary) !== null && _b !== void 0 ? _b : null,
|
|
13
|
+
lastUpdated: (_c = input.lastUpdated) !== null && _c !== void 0 ? _c : null,
|
|
14
|
+
patient: (_d = input.patient) !== null && _d !== void 0 ? _d : null,
|
|
15
|
+
sort: (_e = input.sort) !== null && _e !== void 0 ? _e : null,
|
|
16
|
+
total: "accurate",
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LoggerProvider } from "../../../logger/index.js";
|
|
2
|
+
import { CoverageBundle } from "../../../models/financial/index.js";
|
|
3
|
+
import { BWellQueryResult } from "../../../results/index.js";
|
|
4
|
+
import { BaseManagerError } from "../../base/errors.js";
|
|
5
|
+
import { CoveragesRequest, FinancialManager } from "../../base/financial/index.js";
|
|
6
|
+
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
7
|
+
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
8
|
+
export declare class GraphQLFinancialManager extends GraphQLManager implements FinancialManager {
|
|
9
|
+
#private;
|
|
10
|
+
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider);
|
|
11
|
+
getCoverages(request: CoveragesRequest): Promise<BWellQueryResult<CoverageBundle, BaseManagerError>>;
|
|
12
|
+
}
|
|
@@ -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_sdk, _GraphQLFinancialManager_logger, _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 { CoveragesRequestFactory } from "./coverage-request-factory.js";
|
|
26
|
+
export class GraphQLFinancialManager extends GraphQLManager {
|
|
27
|
+
constructor(sdk, loggerProvider = new ConsoleLoggerProvider()) {
|
|
28
|
+
super();
|
|
29
|
+
_GraphQLFinancialManager_sdk.set(this, void 0);
|
|
30
|
+
_GraphQLFinancialManager_logger.set(this, void 0);
|
|
31
|
+
_GraphQLFinancialManager_coveragesRequestFactory.set(this, new CoveragesRequestFactory());
|
|
32
|
+
__classPrivateFieldSet(this, _GraphQLFinancialManager_sdk, sdk, "f");
|
|
33
|
+
__classPrivateFieldSet(this, _GraphQLFinancialManager_logger, loggerProvider.getLogger("GraphQLFinancialManager"), "f");
|
|
34
|
+
}
|
|
35
|
+
getCoverages(request) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
var _a;
|
|
38
|
+
__classPrivateFieldGet(this, _GraphQLFinancialManager_logger, "f").verbose("calling getCoverages...");
|
|
39
|
+
// Validate request
|
|
40
|
+
const validationResult = this.validateRequest(request);
|
|
41
|
+
if (validationResult.failure()) {
|
|
42
|
+
return validationResult.toQueryResult();
|
|
43
|
+
}
|
|
44
|
+
// Convert to raw GraphQL variables before calling SDK
|
|
45
|
+
const variables = __classPrivateFieldGet(this, _GraphQLFinancialManager_coveragesRequestFactory, "f").create(request);
|
|
46
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLFinancialManager_sdk, "f").getCoverages(variables));
|
|
47
|
+
__classPrivateFieldGet(this, _GraphQLFinancialManager_logger, "f").verbose("getCoverages complete");
|
|
48
|
+
if (result.hasError()) {
|
|
49
|
+
__classPrivateFieldGet(this, _GraphQLFinancialManager_logger, "f").error("getCoverages failed", result.error);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
__classPrivateFieldGet(this, _GraphQLFinancialManager_logger, "f").info("successfully called getCoverages");
|
|
53
|
+
}
|
|
54
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.coverages, result.error);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
_GraphQLFinancialManager_sdk = new WeakMap(), _GraphQLFinancialManager_logger = new WeakMap(), _GraphQLFinancialManager_coveragesRequestFactory = new WeakMap();
|
|
@@ -2,12 +2,14 @@ import type { GraphQLClient } from "graphql-request";
|
|
|
2
2
|
import { LanguageManager } from "../../language/language-manager.js";
|
|
3
3
|
import type { LoggerProvider } from "../../logger/index.js";
|
|
4
4
|
import type { ApiProvider } from "../base/api-provider.js";
|
|
5
|
+
import { FinancialManager } from "../base/financial/index.js";
|
|
5
6
|
import { HealthManager } from "../base/health-data/index.js";
|
|
6
7
|
import { IdentityManager } from "../base/identity/index.js";
|
|
7
8
|
import { ConnectionManager, DeviceManager, HealthSpaceManager, QuestionnaireManager, SearchManager, UserManager } from "../base/index.js";
|
|
8
9
|
import type { GraphQLSdk } from "./graphql-sdk/index.js";
|
|
9
10
|
export declare class GraphQLApiProvider implements ApiProvider {
|
|
10
11
|
#private;
|
|
12
|
+
readonly financial: FinancialManager;
|
|
11
13
|
readonly health: HealthManager;
|
|
12
14
|
readonly healthSpace: HealthSpaceManager;
|
|
13
15
|
readonly user: UserManager;
|
|
@@ -13,6 +13,7 @@ var _GraphQLApiProvider_logger, _GraphQLApiProvider_graphqlSDK;
|
|
|
13
13
|
import { BwellSdkLanguageManager, } from "../../language/language-manager.js";
|
|
14
14
|
import { GraphQLConnectionManager } from "./connection/index.js";
|
|
15
15
|
import { GraphQLDeviceManager } from "./device/index.js";
|
|
16
|
+
import { GraphQLFinancialManager } from "./financial/index.js";
|
|
16
17
|
import { GraphQLHealthSpaceManager } from "./health-space/index.js";
|
|
17
18
|
import { GraphQLHealthManager } from "./healthdata/index.js";
|
|
18
19
|
import { GraphQLIdentityManager } from "./identity/index.js";
|
|
@@ -33,6 +34,7 @@ export class GraphQLApiProvider {
|
|
|
33
34
|
this.connection = new GraphQLConnectionManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
34
35
|
this.device = new GraphQLDeviceManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
35
36
|
// this.event = new GraphQLEventManager(this.#graphqlSDK, loggerProvider);
|
|
37
|
+
this.financial = new GraphQLFinancialManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
36
38
|
this.health = new GraphQLHealthManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
37
39
|
this.healthSpace = new GraphQLHealthSpaceManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
38
40
|
this.user = new GraphQLUserManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
|
|
@@ -3,7 +3,7 @@ import { HealthManager } from "../api/base/health-data/index.js";
|
|
|
3
3
|
import { type Credentials } from "../auth/index.js";
|
|
4
4
|
import { type BWellConfig } from "../config/index.js";
|
|
5
5
|
import { BWellError, type AuthenticationError, type InvalidClientKeyError, type InvalidTokenError, type OperationOutcomeError } from "../errors/index.js";
|
|
6
|
-
import { ConnectionManager, DeviceManager, HealthSpaceManager, QuestionnaireManager, SearchManager, UserManager } from "../index.js";
|
|
6
|
+
import { ConnectionManager, DeviceManager, FinancialManager, HealthSpaceManager, QuestionnaireManager, SearchManager, UserManager } from "../index.js";
|
|
7
7
|
import { type LanguageManager } from "../language/index.js";
|
|
8
8
|
import { AuthTokens, CreateGuestAccessTokenResults } from "../models/identity/index.js";
|
|
9
9
|
import { BWellTransactionResult } from "../results/index.js";
|
|
@@ -294,6 +294,14 @@ export declare class BWellSDK {
|
|
|
294
294
|
* ```
|
|
295
295
|
*/
|
|
296
296
|
createGuestAccessToken(): Promise<BWellTransactionResult<CreateGuestAccessTokenResults, BaseManagerError>>;
|
|
297
|
+
/**
|
|
298
|
+
* Financial manager for insurance coverage and financial data access.
|
|
299
|
+
*
|
|
300
|
+
* @see {@link FinancialManager} - Complete financial data operations and examples
|
|
301
|
+
* @returns {FinancialManager} The financial manager instance
|
|
302
|
+
* @category Managers
|
|
303
|
+
*/
|
|
304
|
+
get financial(): FinancialManager;
|
|
297
305
|
/**
|
|
298
306
|
* Health data manager for patient health records and clinical data access.
|
|
299
307
|
*
|
|
@@ -421,6 +421,16 @@ export class BWellSDK {
|
|
|
421
421
|
// =============================================================================
|
|
422
422
|
// The following getters provide access to the various manager instances that
|
|
423
423
|
// implement the SDK's functionality through a fluid API interface.
|
|
424
|
+
/**
|
|
425
|
+
* Financial manager for insurance coverage and financial data access.
|
|
426
|
+
*
|
|
427
|
+
* @see {@link FinancialManager} - Complete financial data operations and examples
|
|
428
|
+
* @returns {FinancialManager} The financial manager instance
|
|
429
|
+
* @category Managers
|
|
430
|
+
*/
|
|
431
|
+
get financial() {
|
|
432
|
+
return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).financial;
|
|
433
|
+
}
|
|
424
434
|
/**
|
|
425
435
|
* Health data manager for patient health records and clinical data access.
|
|
426
436
|
*
|
|
@@ -93,6 +93,7 @@ export declare const GetDataSourceDocument = "\n query getDataSource($connect
|
|
|
93
93
|
export declare const GetMemberConnectionsDocument = "\n query getMemberConnections {\n subscriptions(_source: {value: \"https://icanbwell.com/proa\"}) {\n entry {\n resource {\n id\n meta {\n source\n }\n subscriptionStatus {\n error {\n ...CodeableConceptFields\n }\n extension {\n id\n url\n valueString\n }\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
94
94
|
export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionId: String!) {\n getOauthUrl(connectionId: $connectionId) {\n redirectUrl\n }\n}\n ";
|
|
95
95
|
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 ";
|
|
96
|
+
export declare const GetCoveragesDocument = "\n query getCoverages($page: Int, $pageSize: Int, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $beneficiary: SearchReference, $patient: SearchReference, $total: TotalType) {\n coverages(\n _getpagesoffset: $page\n _count: $pageSize\n id: $id\n _lastUpdated: $lastUpdated\n _sort: $sort\n beneficiary: $beneficiary\n patient: $patient\n _total: $total\n ) {\n id\n total\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n identifier {\n ...IdentifierFields\n }\n subscriberId\n beneficiary {\n id\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n relationship {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n payor {\n id\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n class {\n id\n type {\n ...CodeableConceptFields\n }\n value\n name\n }\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 id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
96
97
|
export declare const GetAllergyIntoleranceGroupsDocument = "\n query getAllergyIntoleranceGroups($request: AllergyIntoleranceGroupQueryRequest) {\n getAllergyIntoleranceGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n coding {\n ...CodingFields\n }\n references\n criticality {\n ...CodingFields\n }\n recordedDate\n source\n sourceDisplay\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 CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
|
|
97
98
|
export declare const GetAllergyIntolerancesDocument = "\n query getAllergyIntolerances($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {\n allergyIntolerances(\n _count: $pageSize\n _getpagesoffset: $page\n code: $code\n id: $id\n _lastUpdated: $lastUpdated\n _sort: $sort\n verification_status: $status\n _total: $total\n ) {\n id\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n resourceType\n category\n code {\n ...CodeableConceptFields\n }\n criticality\n onsetDateTime\n onsetPeriod {\n ...PeriodFields\n }\n text {\n ...NarrativeFields\n }\n type\n recorder {\n id\n reference\n type\n resource {\n ...PractitionerFields\n }\n }\n lastOccurrence\n reaction {\n ...ReactionFields\n }\n recordedDate\n note {\n ...AnnotationFields\n }\n verificationStatus {\n ...CodeableConceptFields\n }\n clinicalStatus {\n ...CodeableConceptFields\n }\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 id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ReactionFields on AllergyIntoleranceReaction {\n id\n onset\n severity\n description\n manifestation {\n ...CodeableConceptFields\n }\n note {\n ...AnnotationFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment AnnotationFields on Annotation {\n id\n authorString\n time\n text\n}\n \n\n fragment AnnotationFields on Annotation {\n id\n authorString\n time\n text\n}\n ";
|
|
98
99
|
export declare const GetCarePlanGroupsDocument = "\n query getCarePlanGroups($request: CarePlanGroupQueryRequest) {\n getCarePlanGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n references\n coding {\n ...CodingFields\n }\n source\n period {\n ...PeriodFields\n }\n sourceDisplay\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 CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
@@ -190,6 +191,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
190
191
|
headers: Headers;
|
|
191
192
|
status: number;
|
|
192
193
|
}>;
|
|
194
|
+
getCoverages(variables?: Types.GetCoveragesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
195
|
+
data: Types.GetCoveragesQueryResults;
|
|
196
|
+
errors?: GraphQLError[];
|
|
197
|
+
extensions?: any;
|
|
198
|
+
headers: Headers;
|
|
199
|
+
status: number;
|
|
200
|
+
}>;
|
|
193
201
|
getAllergyIntoleranceGroups(variables?: Types.GetAllergyIntoleranceGroupsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
194
202
|
data: Types.GetAllergyIntoleranceGroupsQueryResults;
|
|
195
203
|
errors?: GraphQLError[];
|
|
@@ -1748,6 +1748,75 @@ export const UpdateDeviceRegistrationDocument = `
|
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
1750
|
`;
|
|
1751
|
+
export const GetCoveragesDocument = `
|
|
1752
|
+
query getCoverages($page: Int, $pageSize: Int, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $beneficiary: SearchReference, $patient: SearchReference, $total: TotalType) {
|
|
1753
|
+
coverages(
|
|
1754
|
+
_getpagesoffset: $page
|
|
1755
|
+
_count: $pageSize
|
|
1756
|
+
id: $id
|
|
1757
|
+
_lastUpdated: $lastUpdated
|
|
1758
|
+
_sort: $sort
|
|
1759
|
+
beneficiary: $beneficiary
|
|
1760
|
+
patient: $patient
|
|
1761
|
+
_total: $total
|
|
1762
|
+
) {
|
|
1763
|
+
id
|
|
1764
|
+
total
|
|
1765
|
+
entry {
|
|
1766
|
+
id
|
|
1767
|
+
resource {
|
|
1768
|
+
id
|
|
1769
|
+
meta {
|
|
1770
|
+
...MetaFields
|
|
1771
|
+
}
|
|
1772
|
+
status
|
|
1773
|
+
type {
|
|
1774
|
+
...CodeableConceptFields
|
|
1775
|
+
}
|
|
1776
|
+
identifier {
|
|
1777
|
+
...IdentifierFields
|
|
1778
|
+
}
|
|
1779
|
+
subscriberId
|
|
1780
|
+
beneficiary {
|
|
1781
|
+
id
|
|
1782
|
+
reference
|
|
1783
|
+
type
|
|
1784
|
+
identifier {
|
|
1785
|
+
...IdentifierFields
|
|
1786
|
+
}
|
|
1787
|
+
display
|
|
1788
|
+
}
|
|
1789
|
+
relationship {
|
|
1790
|
+
...CodeableConceptFields
|
|
1791
|
+
}
|
|
1792
|
+
period {
|
|
1793
|
+
...PeriodFields
|
|
1794
|
+
}
|
|
1795
|
+
payor {
|
|
1796
|
+
id
|
|
1797
|
+
reference
|
|
1798
|
+
type
|
|
1799
|
+
identifier {
|
|
1800
|
+
...IdentifierFields
|
|
1801
|
+
}
|
|
1802
|
+
display
|
|
1803
|
+
}
|
|
1804
|
+
class {
|
|
1805
|
+
id
|
|
1806
|
+
type {
|
|
1807
|
+
...CodeableConceptFields
|
|
1808
|
+
}
|
|
1809
|
+
value
|
|
1810
|
+
name
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
${MetaFieldsFragmentDoc}
|
|
1817
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
1818
|
+
${IdentifierFieldsFragmentDoc}
|
|
1819
|
+
${PeriodFieldsFragmentDoc}`;
|
|
1751
1820
|
export const GetAllergyIntoleranceGroupsDocument = `
|
|
1752
1821
|
query getAllergyIntoleranceGroups($request: AllergyIntoleranceGroupQueryRequest) {
|
|
1753
1822
|
getAllergyIntoleranceGroups(request: $request) {
|
|
@@ -3476,6 +3545,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3476
3545
|
updateDeviceRegistration(variables, requestHeaders) {
|
|
3477
3546
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateDeviceRegistrationDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateDeviceRegistration', 'mutation', variables);
|
|
3478
3547
|
},
|
|
3548
|
+
getCoverages(variables, requestHeaders) {
|
|
3549
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCoveragesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCoverages', 'query', variables);
|
|
3550
|
+
},
|
|
3479
3551
|
getAllergyIntoleranceGroups(variables, requestHeaders) {
|
|
3480
3552
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetAllergyIntoleranceGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getAllergyIntoleranceGroups', 'query', variables);
|
|
3481
3553
|
},
|
|
@@ -29,12 +29,6 @@ export type CodingFieldsFragment = {
|
|
|
29
29
|
code: any | null;
|
|
30
30
|
display: string | null;
|
|
31
31
|
};
|
|
32
|
-
export type PagingFieldsFragment = {
|
|
33
|
-
page_number: number;
|
|
34
|
-
page_size: number;
|
|
35
|
-
total_pages: number;
|
|
36
|
-
total_items: number;
|
|
37
|
-
};
|
|
38
32
|
export type MetaFieldsFragment = {
|
|
39
33
|
versionId: string | null;
|
|
40
34
|
lastUpdated: any | null;
|
|
@@ -52,10 +46,31 @@ export type MetaFieldsFragment = {
|
|
|
52
46
|
display: string | null;
|
|
53
47
|
} | null> | null;
|
|
54
48
|
};
|
|
49
|
+
export type IdentifierFieldsFragment = {
|
|
50
|
+
id: string | null;
|
|
51
|
+
system: any | null;
|
|
52
|
+
value: string | null;
|
|
53
|
+
type: {
|
|
54
|
+
id: string | null;
|
|
55
|
+
text: string | null;
|
|
56
|
+
coding: Array<{
|
|
57
|
+
id: string | null;
|
|
58
|
+
system: any | null;
|
|
59
|
+
code: any | null;
|
|
60
|
+
display: string | null;
|
|
61
|
+
} | null> | null;
|
|
62
|
+
} | null;
|
|
63
|
+
};
|
|
55
64
|
export type PeriodFieldsFragment = {
|
|
56
65
|
start: any | null;
|
|
57
66
|
end: any | null;
|
|
58
67
|
};
|
|
68
|
+
export type PagingFieldsFragment = {
|
|
69
|
+
page_number: number;
|
|
70
|
+
page_size: number;
|
|
71
|
+
total_pages: number;
|
|
72
|
+
total_items: number;
|
|
73
|
+
};
|
|
59
74
|
export type NarrativeFieldsFragment = {
|
|
60
75
|
div: any | null;
|
|
61
76
|
status: any | null;
|
|
@@ -92,21 +107,6 @@ export type HumanNameFieldsFragment = {
|
|
|
92
107
|
prefix: Array<string | null> | null;
|
|
93
108
|
suffix: Array<string | null> | null;
|
|
94
109
|
};
|
|
95
|
-
export type IdentifierFieldsFragment = {
|
|
96
|
-
id: string | null;
|
|
97
|
-
system: any | null;
|
|
98
|
-
value: string | null;
|
|
99
|
-
type: {
|
|
100
|
-
id: string | null;
|
|
101
|
-
text: string | null;
|
|
102
|
-
coding: Array<{
|
|
103
|
-
id: string | null;
|
|
104
|
-
system: any | null;
|
|
105
|
-
code: any | null;
|
|
106
|
-
display: string | null;
|
|
107
|
-
} | null> | null;
|
|
108
|
-
} | null;
|
|
109
|
-
};
|
|
110
110
|
export type ReactionFieldsFragment = {
|
|
111
111
|
id: string | null;
|
|
112
112
|
onset: any | null;
|
|
@@ -7702,6 +7702,143 @@ export type UpdateDeviceRegistrationMutationResults = {
|
|
|
7702
7702
|
id: string;
|
|
7703
7703
|
} | null;
|
|
7704
7704
|
};
|
|
7705
|
+
export type GetCoveragesQueryVariables = Types.Exact<{
|
|
7706
|
+
page: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
7707
|
+
pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
7708
|
+
id: Types.InputMaybe<Types.SearchString>;
|
|
7709
|
+
lastUpdated: Types.InputMaybe<Types.SearchDate>;
|
|
7710
|
+
sort: Types.InputMaybe<Array<Types.InputMaybe<Types.Scalars['String']['input']>> | Types.InputMaybe<Types.Scalars['String']['input']>>;
|
|
7711
|
+
beneficiary: Types.InputMaybe<Types.SearchReference>;
|
|
7712
|
+
patient: Types.InputMaybe<Types.SearchReference>;
|
|
7713
|
+
total: Types.InputMaybe<Types.TotalType>;
|
|
7714
|
+
}>;
|
|
7715
|
+
export type GetCoveragesQueryResults = {
|
|
7716
|
+
coverages: {
|
|
7717
|
+
id: string | null;
|
|
7718
|
+
total: number | null;
|
|
7719
|
+
entry: Array<{
|
|
7720
|
+
id: string | null;
|
|
7721
|
+
resource: {
|
|
7722
|
+
id: string;
|
|
7723
|
+
status: any | null;
|
|
7724
|
+
subscriberId: string | null;
|
|
7725
|
+
meta: {
|
|
7726
|
+
versionId: string | null;
|
|
7727
|
+
lastUpdated: any | null;
|
|
7728
|
+
source: any | null;
|
|
7729
|
+
security: Array<{
|
|
7730
|
+
id: string | null;
|
|
7731
|
+
system: any | null;
|
|
7732
|
+
code: any | null;
|
|
7733
|
+
display: string | null;
|
|
7734
|
+
} | null> | null;
|
|
7735
|
+
tag: Array<{
|
|
7736
|
+
id: string | null;
|
|
7737
|
+
system: any | null;
|
|
7738
|
+
code: any | null;
|
|
7739
|
+
display: string | null;
|
|
7740
|
+
} | null> | null;
|
|
7741
|
+
} | null;
|
|
7742
|
+
type: {
|
|
7743
|
+
id: string | null;
|
|
7744
|
+
text: string | null;
|
|
7745
|
+
coding: Array<{
|
|
7746
|
+
id: string | null;
|
|
7747
|
+
system: any | null;
|
|
7748
|
+
code: any | null;
|
|
7749
|
+
display: string | null;
|
|
7750
|
+
} | null> | null;
|
|
7751
|
+
} | null;
|
|
7752
|
+
identifier: Array<{
|
|
7753
|
+
id: string | null;
|
|
7754
|
+
system: any | null;
|
|
7755
|
+
value: string | null;
|
|
7756
|
+
type: {
|
|
7757
|
+
id: string | null;
|
|
7758
|
+
text: string | null;
|
|
7759
|
+
coding: Array<{
|
|
7760
|
+
id: string | null;
|
|
7761
|
+
system: any | null;
|
|
7762
|
+
code: any | null;
|
|
7763
|
+
display: string | null;
|
|
7764
|
+
} | null> | null;
|
|
7765
|
+
} | null;
|
|
7766
|
+
} | null> | null;
|
|
7767
|
+
beneficiary: {
|
|
7768
|
+
id: string | null;
|
|
7769
|
+
reference: string | null;
|
|
7770
|
+
type: any | null;
|
|
7771
|
+
display: string | null;
|
|
7772
|
+
identifier: {
|
|
7773
|
+
id: string | null;
|
|
7774
|
+
system: any | null;
|
|
7775
|
+
value: string | null;
|
|
7776
|
+
type: {
|
|
7777
|
+
id: string | null;
|
|
7778
|
+
text: string | null;
|
|
7779
|
+
coding: Array<{
|
|
7780
|
+
id: string | null;
|
|
7781
|
+
system: any | null;
|
|
7782
|
+
code: any | null;
|
|
7783
|
+
display: string | null;
|
|
7784
|
+
} | null> | null;
|
|
7785
|
+
} | null;
|
|
7786
|
+
} | null;
|
|
7787
|
+
} | null;
|
|
7788
|
+
relationship: {
|
|
7789
|
+
id: string | null;
|
|
7790
|
+
text: string | null;
|
|
7791
|
+
coding: Array<{
|
|
7792
|
+
id: string | null;
|
|
7793
|
+
system: any | null;
|
|
7794
|
+
code: any | null;
|
|
7795
|
+
display: string | null;
|
|
7796
|
+
} | null> | null;
|
|
7797
|
+
} | null;
|
|
7798
|
+
period: {
|
|
7799
|
+
start: any | null;
|
|
7800
|
+
end: any | null;
|
|
7801
|
+
} | null;
|
|
7802
|
+
payor: Array<{
|
|
7803
|
+
id: string | null;
|
|
7804
|
+
reference: string | null;
|
|
7805
|
+
type: any | null;
|
|
7806
|
+
display: string | null;
|
|
7807
|
+
identifier: {
|
|
7808
|
+
id: string | null;
|
|
7809
|
+
system: any | null;
|
|
7810
|
+
value: string | null;
|
|
7811
|
+
type: {
|
|
7812
|
+
id: string | null;
|
|
7813
|
+
text: string | null;
|
|
7814
|
+
coding: Array<{
|
|
7815
|
+
id: string | null;
|
|
7816
|
+
system: any | null;
|
|
7817
|
+
code: any | null;
|
|
7818
|
+
display: string | null;
|
|
7819
|
+
} | null> | null;
|
|
7820
|
+
} | null;
|
|
7821
|
+
} | null;
|
|
7822
|
+
} | null> | null;
|
|
7823
|
+
class: Array<{
|
|
7824
|
+
id: string | null;
|
|
7825
|
+
value: string | null;
|
|
7826
|
+
name: string | null;
|
|
7827
|
+
type: {
|
|
7828
|
+
id: string | null;
|
|
7829
|
+
text: string | null;
|
|
7830
|
+
coding: Array<{
|
|
7831
|
+
id: string | null;
|
|
7832
|
+
system: any | null;
|
|
7833
|
+
code: any | null;
|
|
7834
|
+
display: string | null;
|
|
7835
|
+
} | null> | null;
|
|
7836
|
+
} | null;
|
|
7837
|
+
} | null> | null;
|
|
7838
|
+
} | null;
|
|
7839
|
+
} | null> | null;
|
|
7840
|
+
} | null;
|
|
7841
|
+
};
|
|
7705
7842
|
export type GetAllergyIntoleranceGroupsQueryVariables = Types.Exact<{
|
|
7706
7843
|
request: Types.InputMaybe<Types.AllergyIntoleranceGroupQueryRequest>;
|
|
7707
7844
|
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EntryBundle, IdentifiedResourceEntry } from "../common/bundle.js";
|
|
2
|
+
import { Coverage } from "./coverage.js";
|
|
3
|
+
/**
|
|
4
|
+
* Entry in a coverage bundle with coverage resource and metadata.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title CoverageEntry
|
|
8
|
+
* @excerpt Entry in a coverage bundle
|
|
9
|
+
*/
|
|
10
|
+
export type CoverageEntry = IdentifiedResourceEntry<Coverage>;
|
|
11
|
+
/**
|
|
12
|
+
* Bundle of coverage search results.
|
|
13
|
+
*
|
|
14
|
+
* @category Models
|
|
15
|
+
* @title CoverageBundle
|
|
16
|
+
* @excerpt Bundle of coverage search results
|
|
17
|
+
*/
|
|
18
|
+
export type CoverageBundle = EntryBundle<Coverage>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CodeableConcept } from "../common/codeable-concept.js";
|
|
2
|
+
import { Identifier } from "../common/identifier.js";
|
|
3
|
+
import { Period } from "../common/period.js";
|
|
4
|
+
import { Reference } from "../common/reference.js";
|
|
5
|
+
import { Meta, Organization, Patient, RelatedPerson } from "../index.js";
|
|
6
|
+
/**
|
|
7
|
+
* A suite of underwriter specific classifiers.
|
|
8
|
+
*
|
|
9
|
+
* @category Models
|
|
10
|
+
* @title CoverageClass
|
|
11
|
+
* @excerpt A suite of underwriter specific classifiers for insurance coverage
|
|
12
|
+
*/
|
|
13
|
+
export type CoverageClass = {
|
|
14
|
+
/** Unique id for the coverage class */
|
|
15
|
+
id: string | null;
|
|
16
|
+
/** Type of class such as 'group', 'plan' */
|
|
17
|
+
type: CodeableConcept | null;
|
|
18
|
+
/** Value associated with the type */
|
|
19
|
+
value: string | null;
|
|
20
|
+
/** Human readable description of the value */
|
|
21
|
+
name: string | null;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Union type representing entities that can pay for coverage.
|
|
25
|
+
* Can be an Organization, Patient, or RelatedPerson.
|
|
26
|
+
*
|
|
27
|
+
* @category Models
|
|
28
|
+
* @title CoveragePayor
|
|
29
|
+
* @excerpt Entity that pays for insurance coverage
|
|
30
|
+
*/
|
|
31
|
+
export type CoveragePayor = Organization | Patient | RelatedPerson;
|
|
32
|
+
/**
|
|
33
|
+
* Coverage resource representing insurance or payment coverage.
|
|
34
|
+
* Contains US Core fields for insurance coverage information.
|
|
35
|
+
*
|
|
36
|
+
* @category Models
|
|
37
|
+
* @title Coverage
|
|
38
|
+
* @excerpt Coverage resource representing insurance or payment coverage
|
|
39
|
+
*/
|
|
40
|
+
export type Coverage = {
|
|
41
|
+
/** Logical id of this artifact */
|
|
42
|
+
id: string;
|
|
43
|
+
/** Metadata about the resource */
|
|
44
|
+
meta: Meta | null;
|
|
45
|
+
/** The status of the resource instance */
|
|
46
|
+
status: string | null;
|
|
47
|
+
/** The type of coverage */
|
|
48
|
+
type: CodeableConcept | null;
|
|
49
|
+
/** The party who benefits from the insurance coverage */
|
|
50
|
+
beneficiary: Reference<Patient> | null;
|
|
51
|
+
/** The program or plan underwriter or payor */
|
|
52
|
+
payor: (Reference<CoveragePayor> | null)[] | null;
|
|
53
|
+
/** A suite of underwriter specific classifiers */
|
|
54
|
+
class: (CoverageClass | null)[] | null;
|
|
55
|
+
/** Time period during which the coverage is in force */
|
|
56
|
+
period: Period | null;
|
|
57
|
+
/** Business identifiers for this coverage */
|
|
58
|
+
identifier: (Identifier | null)[] | null;
|
|
59
|
+
/** The insurer assigned ID for the Subscriber. */
|
|
60
|
+
subscriberId: string | null;
|
|
61
|
+
/** The relationship of beneficiary to the subscriber */
|
|
62
|
+
relationship: CodeableConcept | null;
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED