@icanbwell/bwell-sdk-ts 1.75.0 → 1.76.0-rc.1775398285
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/data-sharing/data-sharing-manager.d.ts +10 -1
- package/dist/api/base/data-sharing/index.d.ts +1 -0
- package/dist/api/base/data-sharing/index.js +1 -0
- package/dist/api/base/data-sharing/request-data-sharing-token-request.d.ts +31 -0
- package/dist/api/base/data-sharing/request-data-sharing-token-request.js +33 -0
- package/dist/api/graphql-api/data-sharing/graphql-data-sharing-manager.d.ts +3 -2
- package/dist/api/graphql-api/data-sharing/graphql-data-sharing-manager.js +17 -0
- package/dist/graphql/operations/index.d.ts +9 -1
- package/dist/graphql/operations/index.js +35 -0
- package/dist/graphql/operations/types.d.ts +33 -0
- package/dist/graphql/schema.d.ts +59 -5
- package/dist/graphql/schema.js +7 -0
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { AcceptDataSharingInvitationMutationResults, GetDataSharingAccessQueryResults, GetDataSharingGrantsQueryResults } from "../../../graphql/operations/types.js";
|
|
1
|
+
import type { AcceptDataSharingInvitationMutationResults, GetDataSharingAccessQueryResults, GetDataSharingGrantsQueryResults, RequestDataSharingTokenMutationResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import type { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
4
|
import type { AcceptDataSharingInvitationRequest } from "./accept-data-sharing-invitation-request.js";
|
|
5
|
+
import type { RequestDataSharingTokenRequest } from "./request-data-sharing-token-request.js";
|
|
5
6
|
export type GetDataSharingGrantsResults = GetDataSharingGrantsQueryResults["dataSharingGrants"];
|
|
6
7
|
export type GetDataSharingAccessResults = GetDataSharingAccessQueryResults["dataSharingAccess"];
|
|
7
8
|
export type AcceptDataSharingInvitationResults = AcceptDataSharingInvitationMutationResults["acceptDataSharingInvitation"];
|
|
9
|
+
export type RequestDataSharingTokenResults = RequestDataSharingTokenMutationResults["requestDataSharingToken"];
|
|
8
10
|
/**
|
|
9
11
|
* The DataSharingManager interface provides methods for managing health circle consents.
|
|
10
12
|
*/
|
|
@@ -27,4 +29,11 @@ export interface DataSharingManager {
|
|
|
27
29
|
* @returns A promise that resolves to the OperationOutcome result of accepting the invitation.
|
|
28
30
|
*/
|
|
29
31
|
acceptDataSharingInvitation(request: AcceptDataSharingInvitationRequest): Promise<BWellTransactionResult<AcceptDataSharingInvitationResults, BaseManagerError>>;
|
|
32
|
+
/**
|
|
33
|
+
* Requests a delegation token for impersonating a grantor.
|
|
34
|
+
*
|
|
35
|
+
* @param {RequestDataSharingTokenRequest} request - The request containing the consentId.
|
|
36
|
+
* @returns A promise that resolves to a TokenResponse with the access token.
|
|
37
|
+
*/
|
|
38
|
+
requestDataSharingToken(request: RequestDataSharingTokenRequest): Promise<BWellTransactionResult<RequestDataSharingTokenResults, BaseManagerError>>;
|
|
30
39
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Error message for when the consent ID is not defined.
|
|
4
|
+
*/
|
|
5
|
+
export declare const UNDEFINED_CONSENT_ID_ERROR = "consentId cannot be null or empty";
|
|
6
|
+
/**
|
|
7
|
+
* Input object for requesting a data sharing token.
|
|
8
|
+
*/
|
|
9
|
+
export type RequestDataSharingTokenRequestInput = {
|
|
10
|
+
consentId: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Validator for request data sharing token requests.
|
|
14
|
+
* Ensures the consent ID is defined, not null, and not empty.
|
|
15
|
+
*/
|
|
16
|
+
export declare class RequestDataSharingTokenRequestValidator {
|
|
17
|
+
validate(data: RequestDataSharingTokenRequestInput, errors: ErrorsCollector): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Request object for requesting a data sharing token.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const request = new RequestDataSharingTokenRequest({
|
|
25
|
+
* consentId: "a1b2c3d4-5678-90ab-cdef-1234567890ab",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class RequestDataSharingTokenRequest extends ValidationRequest<RequestDataSharingTokenRequestInput> {
|
|
30
|
+
protected validator: RequestDataSharingTokenRequestValidator;
|
|
31
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ValidationRequest } from "../../../requests/index.js";
|
|
2
|
+
import { isNullOrUndefinedOrEmptyString } from "../../../utils/type-utils.js";
|
|
3
|
+
/**
|
|
4
|
+
* Error message for when the consent ID is not defined.
|
|
5
|
+
*/
|
|
6
|
+
export const UNDEFINED_CONSENT_ID_ERROR = "consentId cannot be null or empty";
|
|
7
|
+
/**
|
|
8
|
+
* Validator for request data sharing token requests.
|
|
9
|
+
* Ensures the consent ID is defined, not null, and not empty.
|
|
10
|
+
*/
|
|
11
|
+
export class RequestDataSharingTokenRequestValidator {
|
|
12
|
+
validate(data, errors) {
|
|
13
|
+
if (isNullOrUndefinedOrEmptyString(data.consentId)) {
|
|
14
|
+
errors.add(UNDEFINED_CONSENT_ID_ERROR);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Request object for requesting a data sharing token.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const request = new RequestDataSharingTokenRequest({
|
|
24
|
+
* consentId: "a1b2c3d4-5678-90ab-cdef-1234567890ab",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export class RequestDataSharingTokenRequest extends ValidationRequest {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.validator = new RequestDataSharingTokenRequestValidator();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LoggerProvider } from "../../../logger/index.js";
|
|
2
2
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { DataSharingManager } from "../../base/data-sharing/data-sharing-manager.js";
|
|
4
|
-
import { AcceptDataSharingInvitationResults, GetDataSharingAccessResults, GetDataSharingGrantsResults } from "../../base/data-sharing/data-sharing-manager.js";
|
|
5
|
-
import { AcceptDataSharingInvitationRequest } from "../../base/data-sharing/index.js";
|
|
4
|
+
import { AcceptDataSharingInvitationResults, GetDataSharingAccessResults, GetDataSharingGrantsResults, RequestDataSharingTokenResults } from "../../base/data-sharing/data-sharing-manager.js";
|
|
5
|
+
import { AcceptDataSharingInvitationRequest, RequestDataSharingTokenRequest } from "../../base/data-sharing/index.js";
|
|
6
6
|
import { BaseManagerError } from "../../base/errors.js";
|
|
7
7
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
8
8
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
@@ -12,4 +12,5 @@ export declare class GraphQLDataSharingManager extends GraphQLManager implements
|
|
|
12
12
|
getDataSharingGrants(): Promise<BWellQueryResult<GetDataSharingGrantsResults, BaseManagerError>>;
|
|
13
13
|
getDataSharingAccess(): Promise<BWellQueryResult<GetDataSharingAccessResults, BaseManagerError>>;
|
|
14
14
|
acceptDataSharingInvitation(request: AcceptDataSharingInvitationRequest): Promise<BWellTransactionResult<AcceptDataSharingInvitationResults, BaseManagerError>>;
|
|
15
|
+
requestDataSharingToken(request: RequestDataSharingTokenRequest): Promise<BWellTransactionResult<RequestDataSharingTokenResults, BaseManagerError>>;
|
|
15
16
|
}
|
|
@@ -71,5 +71,22 @@ export class GraphQLDataSharingManager extends GraphQLManager {
|
|
|
71
71
|
return BWellTransactionResult.success(result.data().acceptDataSharingInvitation);
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
+
requestDataSharingToken(request) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const validationResult = this.validateRequest(request);
|
|
77
|
+
if (validationResult.failure()) {
|
|
78
|
+
return validationResult.intoFailure();
|
|
79
|
+
}
|
|
80
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").verbose("calling requestDataSharingToken mutation...");
|
|
81
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLDataSharingManager_sdk, "f").RequestDataSharingToken({ input: request.data() }));
|
|
82
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").verbose("requestDataSharingToken mutation complete.");
|
|
83
|
+
if (result.failure()) {
|
|
84
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").error("requestDataSharingToken mutation failed", result);
|
|
85
|
+
return result.intoFailure();
|
|
86
|
+
}
|
|
87
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").info("successfully called requestDataSharingToken mutation");
|
|
88
|
+
return BWellTransactionResult.success(result.data().requestDataSharingToken);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
74
91
|
}
|
|
75
92
|
_GraphQLDataSharingManager_sdk = new WeakMap(), _GraphQLDataSharingManager_logger = new WeakMap();
|
|
@@ -104,10 +104,11 @@ export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionI
|
|
|
104
104
|
export declare const AcceptDataSharingInvitationDocument = "\n mutation AcceptDataSharingInvitation($code: String!) {\n acceptDataSharingInvitation(input: {code: $code}) {\n resourceType\n id\n issue {\n severity\n code\n details {\n text\n coding {\n system\n code\n display\n }\n }\n }\n }\n}\n ";
|
|
105
105
|
export declare const GetDataSharingAccessDocument = "\n query GetDataSharingAccess {\n dataSharingAccess {\n resourceType\n type\n total\n entry {\n fullUrl\n resource {\n ...DataSharingConsentFields\n }\n }\n }\n}\n \n fragment DataSharingConsentFields on Consent {\n id\n resourceType\n status\n scope {\n ...CodeableConceptFields\n }\n category {\n ...CodeableConceptFields\n }\n patient {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n resource {\n id\n name {\n ...HumanNameFields\n }\n telecom {\n ...ContactPointFields\n }\n }\n }\n dateTime\n performer {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n dataPeriod {\n ...PeriodFields\n }\n actor {\n ...DataSharingConsentActorFields\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n dataPeriod {\n ...PeriodFields\n }\n actor {\n ...DataSharingConsentActorFields\n }\n }\n }\n sourceReference {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment DataSharingConsentActorFields on ConsentActor {\n role {\n ...CodeableConceptFields\n }\n reference {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n resource {\n ... on RelatedPerson {\n __typename\n ...RelatedPersonFields\n }\n ... on Patient {\n __typename\n patientId: id\n name {\n ...HumanNameFields\n }\n telecom {\n ...ContactPointFields\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RelatedPersonFields on RelatedPerson {\n resourceType\n id\n active\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n telecom {\n ...ContactPointFields\n }\n address {\n ...AddressFields\n }\n relationship {\n ...CodeableConceptFields\n }\n patient {\n ...PatientFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n birthDate\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n ";
|
|
106
106
|
export declare const GetDataSharingGrantsDocument = "\n query GetDataSharingGrants {\n dataSharingGrants {\n resourceType\n type\n total\n entry {\n fullUrl\n resource {\n ...DataSharingConsentFields\n }\n }\n }\n}\n \n fragment DataSharingConsentFields on Consent {\n id\n resourceType\n status\n scope {\n ...CodeableConceptFields\n }\n category {\n ...CodeableConceptFields\n }\n patient {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n resource {\n id\n name {\n ...HumanNameFields\n }\n telecom {\n ...ContactPointFields\n }\n }\n }\n dateTime\n performer {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n dataPeriod {\n ...PeriodFields\n }\n actor {\n ...DataSharingConsentActorFields\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n dataPeriod {\n ...PeriodFields\n }\n actor {\n ...DataSharingConsentActorFields\n }\n }\n }\n sourceReference {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment DataSharingConsentActorFields on ConsentActor {\n role {\n ...CodeableConceptFields\n }\n reference {\n reference\n type\n identifier {\n ...IdentifierFields\n }\n display\n resource {\n ... on RelatedPerson {\n __typename\n ...RelatedPersonFields\n }\n ... on Patient {\n __typename\n patientId: id\n name {\n ...HumanNameFields\n }\n telecom {\n ...ContactPointFields\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RelatedPersonFields on RelatedPerson {\n resourceType\n id\n active\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n telecom {\n ...ContactPointFields\n }\n address {\n ...AddressFields\n }\n relationship {\n ...CodeableConceptFields\n }\n patient {\n ...PatientFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n birthDate\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n ";
|
|
107
|
+
export declare const RequestDataSharingTokenDocument = "\n mutation RequestDataSharingToken($input: RequestDataSharingTokenInput!) {\n requestDataSharingToken(input: $input) {\n access_token\n issued_token_type\n token_type\n expires_in\n }\n}\n ";
|
|
107
108
|
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 ";
|
|
108
109
|
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 ";
|
|
109
110
|
export declare const GetClaimSummaryDocument = "\n query getClaimSummary($request: ClaimSummaryQueryRequest!) {\n getClaimSummary(request: $request) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n resources {\n id\n claimNumber\n claimType\n claimStatus\n servicedDate\n dateReceived\n dateProcessed\n serviceDateStart\n serviceDateEnd\n networkStatus\n provider {\n name\n specialty\n }\n costBreakdown {\n ...ClaimCostBreakdownFields\n }\n services {\n lineNumber\n servicedDate\n procedure {\n code\n system\n description\n }\n serviceDateStart\n serviceDateEnd\n costBreakdown {\n ...ClaimCostBreakdownFields\n }\n }\n }\n }\n}\n \n fragment ClaimCostBreakdownFields on ClaimCostBreakdown {\n billedAmount\n allowedAmount\n patientResponsibility\n insurancePaid\n discount\n copay\n coinsurance\n otherInsurancePaid\n appliedToDeductible\n}\n ";
|
|
110
|
-
export declare const GetCoverageSummaryDocument = "\n query getCoverageSummary($request: CoverageSummaryQueryRequest) {\n getCoverageSummary(request: $request) {\n resources {\n id\n planInfo {\n productId\n productName\n planId\n planName\n memberId\n groupId\n subscriberId\n lineOfBusiness\n effectiveDate\n terminationDate\n status\n insurer\n reference\n }\n subscriber {\n name\n reference\n }\n dependents {\n total\n members {\n name\n reference\n }\n }\n individualInsuranceDetails {\n references\n deductibles {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n outOfPocket {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n }\n familyInsuranceDetails {\n references\n deductibles {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n outOfPocket {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n }\n claimsSummary {\n references\n medical {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n vision {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n dental {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n pharmacy {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n }\n }\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n }\n}\n ";
|
|
111
|
+
export declare const GetCoverageSummaryDocument = "\n query getCoverageSummary($request: CoverageSummaryQueryRequest) {\n getCoverageSummary(request: $request) {\n resources {\n id\n planInfo {\n productId\n productName\n planId\n planName\n memberId\n groupId\n subscriberId\n lineOfBusiness\n effectiveDate\n terminationDate\n status\n insurer\n reference\n }\n subscriber {\n name\n reference\n }\n dependents {\n total\n members {\n name\n reference\n }\n }\n individualInsuranceDetails {\n references\n deductibles {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n outOfPocket {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n }\n familyInsuranceDetails {\n references\n deductibles {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n outOfPocket {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n }\n claimsSummary {\n references\n medical {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n vision {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n dental {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n pharmacy {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n }\n benefits {\n type\n code\n title\n text\n }\n supplementalBenefits {\n code\n title\n text\n }\n documents {\n id\n code\n title\n url\n }\n prescriptionResources {\n formularyDocument\n drugCoverageDocument\n pharmacyDirectoryDocument\n }\n }\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n }\n}\n ";
|
|
111
112
|
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 resource {\n ...PatientFields\n }\n}\n \n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n birthDate\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\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 resource {\n ... on Organization {\n __typename\n organizationName: name\n }\n ... on RelatedPerson {\n __typename\n name {\n ...HumanNameFields\n }\n }\n ... on Patient {\n __typename\n name {\n ...HumanNameFields\n }\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\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 ";
|
|
112
113
|
export declare const GetExplanationOfBenefitsDocument = "\n query getExplanationOfBenefits($id: SearchString, $lastUpdated: SearchDate, $page: Int, $pageSize: Int, $patient: SearchReference, $provider: SearchReference, $coverage: SearchReference, $status: SearchToken, $created: SearchDate, $sort: [String], $total: TotalType) {\n explanationOfBenefits(\n id: $id\n _count: $pageSize\n _lastUpdated: $lastUpdated\n _getpagesoffset: $page\n patient: $patient\n provider: $provider\n coverage: $coverage\n status: $status\n created: $created\n _sort: $sort\n _total: $total\n ) {\n id\n total\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n use\n patient {\n reference\n type\n display\n resource {\n ...PatientFields\n }\n }\n adjudication {\n ...ExplanationOfBenefitAdjudicationFields\n }\n billablePeriod {\n ...PeriodFields\n }\n benefitPeriod {\n ...PeriodFields\n }\n insurer {\n reference\n type\n display\n }\n provider {\n reference\n type\n display\n resource {\n ... on Practitioner {\n __typename\n ...PractitionerFields\n }\n ... on Organization {\n __typename\n organizationName: name\n meta {\n ...MetaFields\n }\n }\n }\n }\n related {\n relationship {\n ...CodeableConceptFields\n }\n reference {\n ...IdentifierFields\n }\n }\n payee {\n type {\n ...CodeableConceptFields\n }\n party {\n reference\n type\n display\n }\n }\n outcome\n careTeam {\n id\n sequence\n provider {\n reference\n type\n display\n }\n qualification {\n ...CodeableConceptFields\n }\n role {\n ...CodeableConceptFields\n }\n }\n supportingInfo {\n sequence\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n timingDate\n timingPeriod {\n ...PeriodFields\n }\n valueBoolean\n valueString\n valueQuantity {\n ...QuantityFields\n }\n valueAttachment {\n ...AttachmentFields\n }\n valueReference {\n reference\n type\n display\n }\n reason {\n ...CodingFields\n }\n }\n insurance {\n focal\n coverage {\n reference\n type\n display\n }\n }\n payment {\n id\n adjustment {\n ...MoneyResourceFields\n }\n amount {\n ...MoneyResourceFields\n }\n date\n type {\n ...CodeableConceptFields\n }\n }\n processNote {\n type\n text\n }\n created\n diagnosis {\n id\n sequence\n diagnosisCodeableConcept {\n ...CodeableConceptFields\n }\n diagnosisReference {\n reference\n type\n display\n }\n type {\n ...CodeableConceptFields\n }\n onAdmission {\n ...CodeableConceptFields\n }\n packageCode {\n ...CodeableConceptFields\n }\n }\n item {\n id\n sequence\n bodySite {\n ...CodeableConceptFields\n }\n adjudication {\n ...ExplanationOfBenefitAdjudicationFields\n }\n locationCodeableConcept {\n ...CodeableConceptFields\n }\n modifier {\n ...CodeableConceptFields\n }\n net {\n ...MoneyResourceFields\n }\n noteNumber\n productOrService {\n ...CodeableConceptFields\n }\n quantity {\n ...QuantityFields\n }\n revenue {\n ...CodeableConceptFields\n }\n servicedDate\n servicedPeriod {\n ...PeriodFields\n }\n }\n subType {\n ...CodeableConceptFields\n }\n total {\n amount {\n ...MoneyResourceFields\n }\n category {\n ...CodeableConceptFields\n }\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 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 PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n birthDate\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ExplanationOfBenefitAdjudicationFields on ExplanationOfBenefitAdjudication {\n id\n category {\n ...CodeableConceptFields\n }\n reason {\n ...CodeableConceptFields\n }\n amount {\n ...MoneyResourceFields\n }\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 MoneyResourceFields on Money {\n value\n currency\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment AttachmentFields on Attachment {\n contentType\n data\n url\n title\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment MoneyResourceFields on Money {\n value\n currency\n}\n ";
|
|
113
114
|
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 ";
|
|
@@ -262,6 +263,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
262
263
|
headers: Headers;
|
|
263
264
|
status: number;
|
|
264
265
|
}>;
|
|
266
|
+
RequestDataSharingToken(variables: Types.RequestDataSharingTokenMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
267
|
+
data: Types.RequestDataSharingTokenMutationResults;
|
|
268
|
+
errors?: GraphQLError[];
|
|
269
|
+
extensions?: any;
|
|
270
|
+
headers: Headers;
|
|
271
|
+
status: number;
|
|
272
|
+
}>;
|
|
265
273
|
updateDeviceRegistration(variables: Types.UpdateDeviceRegistrationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
266
274
|
data: Types.UpdateDeviceRegistrationMutationResults;
|
|
267
275
|
errors?: GraphQLError[];
|
|
@@ -2053,6 +2053,16 @@ export const GetDataSharingGrantsDocument = `
|
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
${DataSharingConsentFieldsFragmentDoc}`;
|
|
2056
|
+
export const RequestDataSharingTokenDocument = `
|
|
2057
|
+
mutation RequestDataSharingToken($input: RequestDataSharingTokenInput!) {
|
|
2058
|
+
requestDataSharingToken(input: $input) {
|
|
2059
|
+
access_token
|
|
2060
|
+
issued_token_type
|
|
2061
|
+
token_type
|
|
2062
|
+
expires_in
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
`;
|
|
2056
2066
|
export const UpdateDeviceRegistrationDocument = `
|
|
2057
2067
|
mutation updateDeviceRegistration($deviceToken: String!, $platformName: String!, $applicationName: String!, $notificationPreference: Boolean!) {
|
|
2058
2068
|
updateDeviceRegistration(
|
|
@@ -2280,6 +2290,28 @@ export const GetCoverageSummaryDocument = `
|
|
|
2280
2290
|
patientResponsibility
|
|
2281
2291
|
}
|
|
2282
2292
|
}
|
|
2293
|
+
benefits {
|
|
2294
|
+
type
|
|
2295
|
+
code
|
|
2296
|
+
title
|
|
2297
|
+
text
|
|
2298
|
+
}
|
|
2299
|
+
supplementalBenefits {
|
|
2300
|
+
code
|
|
2301
|
+
title
|
|
2302
|
+
text
|
|
2303
|
+
}
|
|
2304
|
+
documents {
|
|
2305
|
+
id
|
|
2306
|
+
code
|
|
2307
|
+
title
|
|
2308
|
+
url
|
|
2309
|
+
}
|
|
2310
|
+
prescriptionResources {
|
|
2311
|
+
formularyDocument
|
|
2312
|
+
drugCoverageDocument
|
|
2313
|
+
pharmacyDirectoryDocument
|
|
2314
|
+
}
|
|
2283
2315
|
}
|
|
2284
2316
|
paging_info {
|
|
2285
2317
|
page_number
|
|
@@ -4938,6 +4970,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4938
4970
|
GetDataSharingGrants(variables, requestHeaders) {
|
|
4939
4971
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDataSharingGrantsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetDataSharingGrants', 'query', variables);
|
|
4940
4972
|
},
|
|
4973
|
+
RequestDataSharingToken(variables, requestHeaders) {
|
|
4974
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(RequestDataSharingTokenDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'RequestDataSharingToken', 'mutation', variables);
|
|
4975
|
+
},
|
|
4941
4976
|
updateDeviceRegistration(variables, requestHeaders) {
|
|
4942
4977
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateDeviceRegistrationDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateDeviceRegistration', 'mutation', variables);
|
|
4943
4978
|
},
|
|
@@ -9760,6 +9760,17 @@ export type GetDataSharingGrantsQueryResults = {
|
|
|
9760
9760
|
}>;
|
|
9761
9761
|
};
|
|
9762
9762
|
};
|
|
9763
|
+
export type RequestDataSharingTokenMutationVariables = Types.Exact<{
|
|
9764
|
+
input: Types.RequestDataSharingTokenInput;
|
|
9765
|
+
}>;
|
|
9766
|
+
export type RequestDataSharingTokenMutationResults = {
|
|
9767
|
+
requestDataSharingToken: {
|
|
9768
|
+
access_token: string;
|
|
9769
|
+
issued_token_type: string;
|
|
9770
|
+
token_type: string;
|
|
9771
|
+
expires_in: number;
|
|
9772
|
+
};
|
|
9773
|
+
};
|
|
9763
9774
|
export type UpdateDeviceRegistrationMutationVariables = Types.Exact<{
|
|
9764
9775
|
deviceToken: Types.Scalars['String']['input'];
|
|
9765
9776
|
platformName: Types.Scalars['String']['input'];
|
|
@@ -10009,6 +10020,28 @@ export type GetCoverageSummaryQueryResults = {
|
|
|
10009
10020
|
patientResponsibility: string | null;
|
|
10010
10021
|
} | null;
|
|
10011
10022
|
} | null;
|
|
10023
|
+
benefits: Array<{
|
|
10024
|
+
type: Types.CoverageBenefitType | null;
|
|
10025
|
+
code: string | null;
|
|
10026
|
+
title: string | null;
|
|
10027
|
+
text: string | null;
|
|
10028
|
+
}> | null;
|
|
10029
|
+
supplementalBenefits: Array<{
|
|
10030
|
+
code: string | null;
|
|
10031
|
+
title: string | null;
|
|
10032
|
+
text: string | null;
|
|
10033
|
+
}> | null;
|
|
10034
|
+
documents: Array<{
|
|
10035
|
+
id: string | null;
|
|
10036
|
+
code: string | null;
|
|
10037
|
+
title: string | null;
|
|
10038
|
+
url: string | null;
|
|
10039
|
+
}> | null;
|
|
10040
|
+
prescriptionResources: {
|
|
10041
|
+
formularyDocument: string | null;
|
|
10042
|
+
drugCoverageDocument: string | null;
|
|
10043
|
+
pharmacyDirectoryDocument: string | null;
|
|
10044
|
+
} | null;
|
|
10012
10045
|
}>;
|
|
10013
10046
|
paging_info: {
|
|
10014
10047
|
page_number: number;
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -1177,6 +1177,8 @@ export type Connection = {
|
|
|
1177
1177
|
category: ConnectionCategory;
|
|
1178
1178
|
/** Token creation datetime */
|
|
1179
1179
|
created: Scalars['DateTime']['output'];
|
|
1180
|
+
/** URL to disconnect this device connection */
|
|
1181
|
+
disconnectUrl?: Maybe<Scalars['String']['output']>;
|
|
1180
1182
|
/** Uniquely identifies a data source */
|
|
1181
1183
|
id: Scalars['String']['output'];
|
|
1182
1184
|
/** Specifies whether the connection is direct or indirect or proa */
|
|
@@ -1361,7 +1363,6 @@ export type ConsentQuestionnaireResponse = {
|
|
|
1361
1363
|
};
|
|
1362
1364
|
export type ConsentSearch = {
|
|
1363
1365
|
category?: InputMaybe<CategoryCode>;
|
|
1364
|
-
organizationId?: InputMaybe<Scalars['String']['input']>;
|
|
1365
1366
|
patientId?: InputMaybe<Scalars['String']['input']>;
|
|
1366
1367
|
};
|
|
1367
1368
|
export type ConsentSourceInput = {
|
|
@@ -1455,6 +1456,23 @@ export type CoverageBeneficiaryReference = {
|
|
|
1455
1456
|
resource?: Maybe<Patient>;
|
|
1456
1457
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1457
1458
|
};
|
|
1459
|
+
/** A single plan benefit entry (from cost-sharing / supplemental benefits section). */
|
|
1460
|
+
export type CoverageBenefit = {
|
|
1461
|
+
__typename?: 'CoverageBenefit';
|
|
1462
|
+
/** Benefit code from section coding */
|
|
1463
|
+
code?: Maybe<Scalars['String']['output']>;
|
|
1464
|
+
/** Narrative/html text from section.text.div */
|
|
1465
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
1466
|
+
/** Display title of the benefit */
|
|
1467
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1468
|
+
/** Benefit type used to distinguish medical vs pharmacy */
|
|
1469
|
+
type?: Maybe<CoverageBenefitType>;
|
|
1470
|
+
};
|
|
1471
|
+
/** Discriminates between medical and pharmacy plan benefit entries. */
|
|
1472
|
+
export declare enum CoverageBenefitType {
|
|
1473
|
+
Medical = "MEDICAL",
|
|
1474
|
+
Pharmacy = "PHARMACY"
|
|
1475
|
+
}
|
|
1458
1476
|
/** Breakdown of benefits by type of care. */
|
|
1459
1477
|
export type CoverageBenefitTypes = {
|
|
1460
1478
|
__typename?: 'CoverageBenefitTypes';
|
|
@@ -1560,6 +1578,18 @@ export type CoveragePayorReference = {
|
|
|
1560
1578
|
resource?: Maybe<CoveragePayor>;
|
|
1561
1579
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1562
1580
|
};
|
|
1581
|
+
/** A document associated with plan benefits. */
|
|
1582
|
+
export type CoveragePlanDocument = {
|
|
1583
|
+
__typename?: 'CoveragePlanDocument';
|
|
1584
|
+
/** Document code */
|
|
1585
|
+
code?: Maybe<Scalars['String']['output']>;
|
|
1586
|
+
/** Stable identifier for the document code */
|
|
1587
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1588
|
+
/** Document display title */
|
|
1589
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1590
|
+
/** Document URL */
|
|
1591
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
1592
|
+
};
|
|
1563
1593
|
/** Information about the insurance coverage plan including identifiers and dates. */
|
|
1564
1594
|
export type CoveragePlanInfo = {
|
|
1565
1595
|
__typename?: 'CoveragePlanInfo';
|
|
@@ -1611,10 +1641,14 @@ export type CoveragePrescriptionResources = {
|
|
|
1611
1641
|
/** A comprehensive summary of coverage plan information including benefits, members, and documents. */
|
|
1612
1642
|
export type CoverageSummary = {
|
|
1613
1643
|
__typename?: 'CoverageSummary';
|
|
1644
|
+
/** Plan benefits and cost-sharing entries grouped by category */
|
|
1645
|
+
benefits?: Maybe<Array<CoverageBenefit>>;
|
|
1614
1646
|
/** Aggregated claim information across all types */
|
|
1615
1647
|
claimsSummary?: Maybe<CoverageClaimsSummary>;
|
|
1616
1648
|
/** Additional members covered under this plan */
|
|
1617
1649
|
dependents?: Maybe<CoverageDependents>;
|
|
1650
|
+
/** Plan-related document links */
|
|
1651
|
+
documents?: Maybe<Array<CoveragePlanDocument>>;
|
|
1618
1652
|
/** Cost sharing details for family coverage (deductibles, out-of-pocket maximums) */
|
|
1619
1653
|
familyInsuranceDetails?: Maybe<CoverageFinancialDetails>;
|
|
1620
1654
|
/** Unique identifier for the coverage summary */
|
|
@@ -1627,6 +1661,8 @@ export type CoverageSummary = {
|
|
|
1627
1661
|
prescriptionResources?: Maybe<CoveragePrescriptionResources>;
|
|
1628
1662
|
/** Primary account holder and plan subscriber */
|
|
1629
1663
|
subscriber?: Maybe<CoverageMember>;
|
|
1664
|
+
/** Plan supplemental benefits entries */
|
|
1665
|
+
supplementalBenefits?: Maybe<Array<CoverageSupplementalBenefit>>;
|
|
1630
1666
|
};
|
|
1631
1667
|
export type CoverageSummaryQueryRequest = {
|
|
1632
1668
|
page?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1644,10 +1680,20 @@ export type CoverageSummaryQueryResults = PagedQueryResults & {
|
|
|
1644
1680
|
/** List of coverage summary resources */
|
|
1645
1681
|
resources: Array<CoverageSummary>;
|
|
1646
1682
|
};
|
|
1683
|
+
/** A single supplemental plan benefit entry. */
|
|
1684
|
+
export type CoverageSupplementalBenefit = {
|
|
1685
|
+
__typename?: 'CoverageSupplementalBenefit';
|
|
1686
|
+
/** Benefit code from section coding */
|
|
1687
|
+
code?: Maybe<Scalars['String']['output']>;
|
|
1688
|
+
/** Narrative/html text from section.text.div */
|
|
1689
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
1690
|
+
/** Display title of the benefit */
|
|
1691
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1692
|
+
};
|
|
1647
1693
|
export type CreateHealthLinkInput = {
|
|
1648
1694
|
label?: InputMaybe<Scalars['String']['input']>;
|
|
1649
1695
|
resources?: InputMaybe<Array<ResourceInput>>;
|
|
1650
|
-
securityConfig
|
|
1696
|
+
securityConfig?: InputMaybe<SecurityConfigInput>;
|
|
1651
1697
|
};
|
|
1652
1698
|
export type CreateSupportCommentInput = {
|
|
1653
1699
|
body: Scalars['String']['input'];
|
|
@@ -1689,6 +1735,7 @@ export declare enum DataConnectionStatus {
|
|
|
1689
1735
|
/** Defines the source type of connection */
|
|
1690
1736
|
export declare enum DataConnectionType {
|
|
1691
1737
|
Clinical = "CLINICAL",
|
|
1738
|
+
Device = "DEVICE",
|
|
1692
1739
|
Insurance = "INSURANCE",
|
|
1693
1740
|
Lab = "LAB",
|
|
1694
1741
|
Pharmacy = "PHARMACY",
|
|
@@ -2833,6 +2880,7 @@ export type HealthResourceSearchResult = {
|
|
|
2833
2880
|
iconString?: Maybe<Scalars['String']['output']>;
|
|
2834
2881
|
id?: Maybe<Scalars['String']['output']>;
|
|
2835
2882
|
insurancePlan?: Maybe<Array<Maybe<ProviderInsurancePlan>>>;
|
|
2883
|
+
isVirtualCare?: Maybe<Scalars['Boolean']['output']>;
|
|
2836
2884
|
location?: Maybe<Array<Maybe<ProviderLocation>>>;
|
|
2837
2885
|
meta?: Maybe<MetaType>;
|
|
2838
2886
|
name?: Maybe<Array<Maybe<HumanName>>>;
|
|
@@ -4075,8 +4123,9 @@ export type MutationCreateAuthCodeArgs = {
|
|
|
4075
4123
|
};
|
|
4076
4124
|
export type MutationCreateConnectionArgs = {
|
|
4077
4125
|
connectionId: Scalars['String']['input'];
|
|
4078
|
-
|
|
4079
|
-
|
|
4126
|
+
integrationType?: InputMaybe<Scalars['String']['input']>;
|
|
4127
|
+
password?: InputMaybe<Scalars['String']['input']>;
|
|
4128
|
+
username?: InputMaybe<Scalars['String']['input']>;
|
|
4080
4129
|
};
|
|
4081
4130
|
export type MutationCreateConsentArgs = {
|
|
4082
4131
|
consentInput: ConsentInput;
|
|
@@ -6963,7 +7012,12 @@ export type Security = {
|
|
|
6963
7012
|
system?: Maybe<Scalars['String']['output']>;
|
|
6964
7013
|
};
|
|
6965
7014
|
export type SecurityConfigInput = {
|
|
6966
|
-
|
|
7015
|
+
/** Maximum number of times the SHL can be accessed. Default: 2. Max: 3. */
|
|
7016
|
+
accessLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
7017
|
+
/** Expiration time in minutes. Default: 5. Max: 2880 (2 days). */
|
|
7018
|
+
expirationMinutes?: InputMaybe<Scalars['Int']['input']>;
|
|
7019
|
+
/** PIN/passcode for accessing the SHL. If set, uses manifest flow (P flag). If omitted, uses passcode-less flow (U flag). */
|
|
7020
|
+
passcode?: InputMaybe<Scalars['String']['input']>;
|
|
6967
7021
|
};
|
|
6968
7022
|
export declare enum SensitiveDataTag {
|
|
6969
7023
|
Abortion = "ABORTION",
|
package/dist/graphql/schema.js
CHANGED
|
@@ -96,6 +96,12 @@ export var ConsentStatus;
|
|
|
96
96
|
ConsentStatus["Proposed"] = "PROPOSED";
|
|
97
97
|
ConsentStatus["Rejected"] = "REJECTED";
|
|
98
98
|
})(ConsentStatus || (ConsentStatus = {}));
|
|
99
|
+
/** Discriminates between medical and pharmacy plan benefit entries. */
|
|
100
|
+
export var CoverageBenefitType;
|
|
101
|
+
(function (CoverageBenefitType) {
|
|
102
|
+
CoverageBenefitType["Medical"] = "MEDICAL";
|
|
103
|
+
CoverageBenefitType["Pharmacy"] = "PHARMACY";
|
|
104
|
+
})(CoverageBenefitType || (CoverageBenefitType = {}));
|
|
99
105
|
/** Supported ISO 4217 CurrencyCodes */
|
|
100
106
|
export var CurrencyCode;
|
|
101
107
|
(function (CurrencyCode) {
|
|
@@ -120,6 +126,7 @@ export var DataConnectionStatus;
|
|
|
120
126
|
export var DataConnectionType;
|
|
121
127
|
(function (DataConnectionType) {
|
|
122
128
|
DataConnectionType["Clinical"] = "CLINICAL";
|
|
129
|
+
DataConnectionType["Device"] = "DEVICE";
|
|
123
130
|
DataConnectionType["Insurance"] = "INSURANCE";
|
|
124
131
|
DataConnectionType["Lab"] = "LAB";
|
|
125
132
|
DataConnectionType["Pharmacy"] = "PHARMACY";
|