@icanbwell/bwell-sdk-ts 1.76.0 → 1.77.0-rc.1776260353
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/bwell-sdk/bwell-sdk.d.ts +3 -2
- package/dist/bwell-sdk/bwell-sdk.js +8 -2
- package/dist/graphql/operations/index.d.ts +10 -2
- package/dist/graphql/operations/index.js +32 -0
- package/dist/graphql/operations/types.d.ts +30 -0
- package/dist/graphql/schema.d.ts +93 -15
- package/dist/graphql/schema.js +17 -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();
|
|
@@ -71,8 +71,9 @@ export declare class BWellSDK {
|
|
|
71
71
|
*/
|
|
72
72
|
authenticate(credentials: Credentials): Promise<BWellTransactionResult<null, AuthenticationError | InvalidTokenError>>;
|
|
73
73
|
/**
|
|
74
|
-
* Sets auth tokens for a pre-authenticated user.
|
|
75
|
-
* validate the provided tokens
|
|
74
|
+
* Sets auth tokens for a pre-authenticated user. When `refreshToken` is non-empty,
|
|
75
|
+
* performs a token refresh to validate the provided tokens; if it is empty or
|
|
76
|
+
* whitespace-only, that round-trip is skipped (e.g. external IdP session JWT only).
|
|
76
77
|
*
|
|
77
78
|
* This can be used in place of `authenticate` for times when a user has been
|
|
78
79
|
* authenticated through means other than the SDK.
|
|
@@ -129,8 +129,9 @@ export class BWellSDK {
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
* Sets auth tokens for a pre-authenticated user.
|
|
133
|
-
* validate the provided tokens
|
|
132
|
+
* Sets auth tokens for a pre-authenticated user. When `refreshToken` is non-empty,
|
|
133
|
+
* performs a token refresh to validate the provided tokens; if it is empty or
|
|
134
|
+
* whitespace-only, that round-trip is skipped (e.g. external IdP session JWT only).
|
|
134
135
|
*
|
|
135
136
|
* This can be used in place of `authenticate` for times when a user has been
|
|
136
137
|
* authenticated through means other than the SDK.
|
|
@@ -150,6 +151,11 @@ export class BWellSDK {
|
|
|
150
151
|
/* istanbul ignore next */
|
|
151
152
|
throw new Error("TokenManager not set");
|
|
152
153
|
}
|
|
154
|
+
const refreshJwt = authTokens.refreshToken;
|
|
155
|
+
const hasBwellRefresh = typeof refreshJwt === "string" && refreshJwt.trim().length > 0;
|
|
156
|
+
if (!hasBwellRefresh) {
|
|
157
|
+
return BWellTransactionResult.success(null);
|
|
158
|
+
}
|
|
153
159
|
const refreshResult = yield __classPrivateFieldGet(this, _BWellSDK_tokenManager, "f").refreshAccessToken();
|
|
154
160
|
if (refreshResult.failure()) {
|
|
155
161
|
return refreshResult.intoFailure();
|
|
@@ -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 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
|
+
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 ";
|
|
@@ -165,7 +166,7 @@ export declare const GetQuestionnairesDocument = "\n query getQuestionnaires(
|
|
|
165
166
|
export declare const SaveQuestionnaireResponseDocument = "\n mutation saveQuestionnaireResponse($questionnaireResponse: QuestionnaireResponseInput!, $summary: Boolean = false) {\n saveQuestionnaireResponse(input: $questionnaireResponse) {\n ...QuestionnaireResponseSummary @include(if: $summary)\n ...QuestionnaireResponseFields @skip(if: $summary)\n }\n}\n \n fragment QuestionnaireResponseSummary on QuestionnaireResponse {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n questionnaire\n status\n subject {\n reference\n type\n display\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 QuestionnaireResponseFields on QuestionnaireResponse {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n questionnaire\n status\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n }\n }\n }\n }\n }\n contained {\n ...QuestionnaireFields\n }\n subject {\n reference\n type\n display\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {\n linkId\n text\n answer {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n id\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireFields on Questionnaire {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n name\n title\n useContext {\n id\n code {\n ...CodingFields\n }\n valueReference {\n id\n reference\n identifier {\n ...IdentifierFields\n }\n display\n }\n }\n status\n description\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\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 CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireItemFields on QuestionnaireItem {\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n valueInteger\n valueDate\n valueString\n valueCoding {\n ...CodingFields\n }\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
|
|
166
167
|
export declare const ProviderSearchDocument = "\n query providerSearch($client: [Client], $searchTerm: String, $includePopulatedPROAonly: Boolean, $specialtyFilters: [InputCoding], $organizationTypeFilters: [OrganizationType], $gender: Gender, $location: SearchPosition, $sortBy: [OrderBy], $filterFields: [FilterField], $page: Int, $pageSize: Int) {\n providers(\n client: $client\n search: $searchTerm\n specialty: $specialtyFilters\n organization_type: $organizationTypeFilters\n include_populated_PROA_only: $includePopulatedPROAonly\n gender: $gender\n search_position: $location\n order_by: $sortBy\n filter_values: $filterFields\n page_number: $page\n page_size: $pageSize\n ) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n filter_values {\n field\n values {\n value\n count\n }\n }\n results {\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n iconString\n organization_type {\n coding {\n code\n system\n display\n }\n text\n }\n content\n gender\n location {\n name\n identifier {\n type {\n text\n coding {\n system\n code\n display\n }\n }\n value\n system\n }\n alias\n description\n address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n system\n value\n rank\n }\n }\n specialty {\n code\n system\n display\n }\n id\n photo {\n contentType\n url\n title\n }\n name {\n ...HumanNameFields\n }\n telecom {\n system\n value\n rank\n }\n practitioner_qualification {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n code {\n coding {\n code\n system\n display\n }\n text\n }\n period {\n start\n end\n }\n issuer {\n reference\n display\n }\n }\n provider_type\n characteristic {\n code\n system\n display\n }\n organization {\n name\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n }\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
|
|
167
168
|
export declare const RequestConnectionDocument = "\n mutation requestConnection($city: String, $institution: String, $provider: String, $state: String) {\n requestConnection(\n city: $city\n institution: $institution\n provider: $provider\n state: $state\n ) {\n resourceType\n issue {\n severity\n code\n details {\n text\n }\n }\n }\n}\n ";
|
|
168
|
-
export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n extension {\n url\n valueString\n }\n }\n }\n results {\n type\n photo {\n url\n }\n id\n content\n nextAvailableSlot {\n appointmentType\n start\n }\n specialty {\n code\n system\n display\n }\n meta {\n security {\n code\n system\n display\n }\n }\n insurancePlan {\n id\n ownedBy {\n display\n }\n plan {\n identifier {\n value\n }\n }\n }\n bookable {\n online\n phone\n }\n location {\n identifier {\n value\n system\n }\n description\n scheduling {\n identifier {\n value\n system\n }\n bookable {\n online\n phone\n }\n }\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n telecom {\n system\n value\n }\n distanceInMiles\n hoursOfOperation {\n daysOfWeek\n openingTime\n closingTime\n }\n organizationName\n parkingInformation\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n score\n scores {\n value\n description\n calculation\n }\n communication {\n coding {\n code\n system\n display\n }\n text\n }\n acceptingNewPatients\n acceptedAgeRanges {\n years {\n gt\n gte\n lt\n lte\n }\n months {\n gt\n gte\n lt\n lte\n }\n }\n partOf {\n id\n content\n endpointName\n }\n reviewScore {\n group {\n population {\n count\n }\n measureScore {\n value\n }\n }\n }\n practitionerQualification {\n code {\n coding {\n code\n system\n }\n }\n period {\n start\n }\n issuer {\n reference\n display\n }\n }\n }\n }\n}\n ";
|
|
169
|
+
export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n extension {\n url\n valueString\n }\n }\n }\n results {\n type\n photo {\n url\n }\n id\n content\n nextAvailableSlot {\n appointmentType\n start\n }\n specialty {\n code\n system\n display\n }\n meta {\n security {\n code\n system\n display\n }\n }\n insurancePlan {\n id\n ownedBy {\n display\n }\n plan {\n identifier {\n value\n }\n }\n }\n isVirtualCare\n bookable {\n online\n phone\n }\n location {\n identifier {\n value\n system\n }\n facilityId\n description\n scheduling {\n identifier {\n value\n system\n }\n bookable {\n online\n phone\n }\n }\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n telecom {\n system\n value\n }\n distanceInMiles\n hoursOfOperation {\n daysOfWeek\n openingTime\n closingTime\n }\n organizationName\n parkingInformation\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n score\n scores {\n value\n description\n calculation\n }\n communication {\n coding {\n code\n system\n display\n }\n text\n }\n acceptingNewPatients\n acceptedAgeRanges {\n years {\n gt\n gte\n lt\n lte\n }\n months {\n gt\n gte\n lt\n lte\n }\n }\n partOf {\n id\n content\n endpointName\n }\n reviewScore {\n group {\n population {\n count\n }\n measureScore {\n value\n }\n }\n }\n practitionerQualification {\n code {\n coding {\n code\n system\n }\n }\n period {\n start\n }\n issuer {\n reference\n display\n }\n }\n }\n }\n}\n ";
|
|
169
170
|
export declare const CreateSupportCommentDocument = "\n mutation CreateSupportComment($input: CreateSupportCommentInput!) {\n createSupportComment(input: $input) {\n comment {\n id\n body\n htmlBody\n author {\n name\n email\n }\n attachments {\n id\n fileName\n contentType\n size\n }\n createdAt\n }\n }\n}\n ";
|
|
170
171
|
export declare const CreateSupportRequestDocument = "\n mutation CreateSupportRequest($input: CreateSupportRequestInput!) {\n createSupportRequest(input: $input) {\n data {\n id\n subject\n category\n created\n lastActivity\n status\n }\n }\n}\n ";
|
|
171
172
|
export declare const DeleteSupportAttachmentDocument = "\n mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {\n deleteSupportAttachment(input: $input) {\n status\n }\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,23 @@ 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
|
+
}
|
|
2283
2310
|
prescriptionResources {
|
|
2284
2311
|
formularyDocument
|
|
2285
2312
|
drugCoverageDocument
|
|
@@ -4417,6 +4444,7 @@ export const SearchHealthResourcesDocument = `
|
|
|
4417
4444
|
}
|
|
4418
4445
|
}
|
|
4419
4446
|
}
|
|
4447
|
+
isVirtualCare
|
|
4420
4448
|
bookable {
|
|
4421
4449
|
online
|
|
4422
4450
|
phone
|
|
@@ -4426,6 +4454,7 @@ export const SearchHealthResourcesDocument = `
|
|
|
4426
4454
|
value
|
|
4427
4455
|
system
|
|
4428
4456
|
}
|
|
4457
|
+
facilityId
|
|
4429
4458
|
description
|
|
4430
4459
|
scheduling {
|
|
4431
4460
|
identifier {
|
|
@@ -4943,6 +4972,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4943
4972
|
GetDataSharingGrants(variables, requestHeaders) {
|
|
4944
4973
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDataSharingGrantsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetDataSharingGrants', 'query', variables);
|
|
4945
4974
|
},
|
|
4975
|
+
RequestDataSharingToken(variables, requestHeaders) {
|
|
4976
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(RequestDataSharingTokenDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'RequestDataSharingToken', 'mutation', variables);
|
|
4977
|
+
},
|
|
4946
4978
|
updateDeviceRegistration(variables, requestHeaders) {
|
|
4947
4979
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateDeviceRegistrationDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateDeviceRegistration', 'mutation', variables);
|
|
4948
4980
|
},
|
|
@@ -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,23 @@ 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;
|
|
10012
10040
|
prescriptionResources: {
|
|
10013
10041
|
formularyDocument: string | null;
|
|
10014
10042
|
drugCoverageDocument: string | null;
|
|
@@ -29470,6 +29498,7 @@ export type SearchHealthResourcesQueryResults = {
|
|
|
29470
29498
|
type: Types.SearchResultTypeEnum | null;
|
|
29471
29499
|
id: string | null;
|
|
29472
29500
|
content: string | null;
|
|
29501
|
+
isVirtualCare: boolean | null;
|
|
29473
29502
|
npi: Array<string | null> | null;
|
|
29474
29503
|
gender: Types.GenderEnum | null;
|
|
29475
29504
|
iconString: string | null;
|
|
@@ -29510,6 +29539,7 @@ export type SearchHealthResourcesQueryResults = {
|
|
|
29510
29539
|
phone: boolean | null;
|
|
29511
29540
|
} | null;
|
|
29512
29541
|
location: Array<{
|
|
29542
|
+
facilityId: string | null;
|
|
29513
29543
|
description: string | null;
|
|
29514
29544
|
name: string | null;
|
|
29515
29545
|
distanceInMiles: number | null;
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -379,6 +379,7 @@ export type Appointment = Resource & {
|
|
|
379
379
|
language?: Maybe<Scalars['Code']['output']>;
|
|
380
380
|
meta?: Maybe<Meta>;
|
|
381
381
|
participant?: Maybe<Array<Maybe<AppointmentParticipant>>>;
|
|
382
|
+
reasonCode?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
382
383
|
requestedPeriod?: Maybe<Array<Maybe<Period>>>;
|
|
383
384
|
resourceType?: Maybe<Scalars['String']['output']>;
|
|
384
385
|
serviceType?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
@@ -721,6 +722,7 @@ export declare enum CategoryCode {
|
|
|
721
722
|
CmsNetworkShareMyRecords = "CMS_NETWORK_SHARE_MY_RECORDS",
|
|
722
723
|
CommunicationPreferencesPhi = "COMMUNICATION_PREFERENCES_PHI",
|
|
723
724
|
DataSharing = "DATA_SHARING",
|
|
725
|
+
DirectImportRecords = "DIRECT_IMPORT_RECORDS",
|
|
724
726
|
HealthCircleAdolescent = "HEALTH_CIRCLE_ADOLESCENT",
|
|
725
727
|
HealthCircleMinor = "HEALTH_CIRCLE_MINOR",
|
|
726
728
|
HealthMatch = "HEALTH_MATCH",
|
|
@@ -1177,6 +1179,8 @@ export type Connection = {
|
|
|
1177
1179
|
category: ConnectionCategory;
|
|
1178
1180
|
/** Token creation datetime */
|
|
1179
1181
|
created: Scalars['DateTime']['output'];
|
|
1182
|
+
/** URL to disconnect this device connection */
|
|
1183
|
+
disconnectUrl?: Maybe<Scalars['String']['output']>;
|
|
1180
1184
|
/** Uniquely identifies a data source */
|
|
1181
1185
|
id: Scalars['String']['output'];
|
|
1182
1186
|
/** Specifies whether the connection is direct or indirect or proa */
|
|
@@ -1361,7 +1365,6 @@ export type ConsentQuestionnaireResponse = {
|
|
|
1361
1365
|
};
|
|
1362
1366
|
export type ConsentSearch = {
|
|
1363
1367
|
category?: InputMaybe<CategoryCode>;
|
|
1364
|
-
organizationId?: InputMaybe<Scalars['String']['input']>;
|
|
1365
1368
|
patientId?: InputMaybe<Scalars['String']['input']>;
|
|
1366
1369
|
};
|
|
1367
1370
|
export type ConsentSourceInput = {
|
|
@@ -1401,13 +1404,6 @@ export type ConsentVerificationVerifiedWithReference = {
|
|
|
1401
1404
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1402
1405
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1403
1406
|
};
|
|
1404
|
-
export type ContactInfoInput = {
|
|
1405
|
-
birthDate?: InputMaybe<Scalars['String']['input']>;
|
|
1406
|
-
email: Scalars['String']['input'];
|
|
1407
|
-
firstName: Scalars['String']['input'];
|
|
1408
|
-
lastName: Scalars['String']['input'];
|
|
1409
|
-
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1410
|
-
};
|
|
1411
1407
|
export type ContactPoint = {
|
|
1412
1408
|
__typename?: 'ContactPoint';
|
|
1413
1409
|
extension?: Maybe<Array<Maybe<FhirExtension>>>;
|
|
@@ -1455,6 +1451,23 @@ export type CoverageBeneficiaryReference = {
|
|
|
1455
1451
|
resource?: Maybe<Patient>;
|
|
1456
1452
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1457
1453
|
};
|
|
1454
|
+
/** A single plan benefit entry (from cost-sharing / supplemental benefits section). */
|
|
1455
|
+
export type CoverageBenefit = {
|
|
1456
|
+
__typename?: 'CoverageBenefit';
|
|
1457
|
+
/** Benefit code from section coding */
|
|
1458
|
+
code?: Maybe<Scalars['String']['output']>;
|
|
1459
|
+
/** Narrative/html text from section.text.div */
|
|
1460
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
1461
|
+
/** Display title of the benefit */
|
|
1462
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1463
|
+
/** Benefit type used to distinguish medical vs pharmacy */
|
|
1464
|
+
type?: Maybe<CoverageBenefitType>;
|
|
1465
|
+
};
|
|
1466
|
+
/** Discriminates between medical and pharmacy plan benefit entries. */
|
|
1467
|
+
export declare enum CoverageBenefitType {
|
|
1468
|
+
Medical = "MEDICAL",
|
|
1469
|
+
Pharmacy = "PHARMACY"
|
|
1470
|
+
}
|
|
1458
1471
|
/** Breakdown of benefits by type of care. */
|
|
1459
1472
|
export type CoverageBenefitTypes = {
|
|
1460
1473
|
__typename?: 'CoverageBenefitTypes';
|
|
@@ -1538,6 +1551,12 @@ export type CoverageMember = {
|
|
|
1538
1551
|
/** Reference to the FHIR Patient resource */
|
|
1539
1552
|
reference?: Maybe<Scalars['String']['output']>;
|
|
1540
1553
|
};
|
|
1554
|
+
/** Member forms document links for a coverage plan. */
|
|
1555
|
+
export type CoverageMemberForms = {
|
|
1556
|
+
__typename?: 'CoverageMemberForms';
|
|
1557
|
+
/** URL to the member forms document */
|
|
1558
|
+
memberFormsDocument?: Maybe<Scalars['String']['output']>;
|
|
1559
|
+
};
|
|
1541
1560
|
/** Cost information broken down by network type. */
|
|
1542
1561
|
export type CoverageNetworkBenefits = {
|
|
1543
1562
|
__typename?: 'CoverageNetworkBenefits';
|
|
@@ -1560,6 +1579,18 @@ export type CoveragePayorReference = {
|
|
|
1560
1579
|
resource?: Maybe<CoveragePayor>;
|
|
1561
1580
|
type?: Maybe<Scalars['URI']['output']>;
|
|
1562
1581
|
};
|
|
1582
|
+
/** A document associated with plan benefits. */
|
|
1583
|
+
export type CoveragePlanDocument = {
|
|
1584
|
+
__typename?: 'CoveragePlanDocument';
|
|
1585
|
+
/** Document code */
|
|
1586
|
+
code?: Maybe<Scalars['String']['output']>;
|
|
1587
|
+
/** Stable identifier for the document code */
|
|
1588
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
1589
|
+
/** Document display title */
|
|
1590
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1591
|
+
/** Document URL */
|
|
1592
|
+
url?: Maybe<Scalars['String']['output']>;
|
|
1593
|
+
};
|
|
1563
1594
|
/** Information about the insurance coverage plan including identifiers and dates. */
|
|
1564
1595
|
export type CoveragePlanInfo = {
|
|
1565
1596
|
__typename?: 'CoveragePlanInfo';
|
|
@@ -1611,22 +1642,30 @@ export type CoveragePrescriptionResources = {
|
|
|
1611
1642
|
/** A comprehensive summary of coverage plan information including benefits, members, and documents. */
|
|
1612
1643
|
export type CoverageSummary = {
|
|
1613
1644
|
__typename?: 'CoverageSummary';
|
|
1645
|
+
/** Plan benefits and cost-sharing entries grouped by category */
|
|
1646
|
+
benefits?: Maybe<Array<CoverageBenefit>>;
|
|
1614
1647
|
/** Aggregated claim information across all types */
|
|
1615
1648
|
claimsSummary?: Maybe<CoverageClaimsSummary>;
|
|
1616
1649
|
/** Additional members covered under this plan */
|
|
1617
1650
|
dependents?: Maybe<CoverageDependents>;
|
|
1651
|
+
/** Plan-related document links */
|
|
1652
|
+
documents?: Maybe<Array<CoveragePlanDocument>>;
|
|
1618
1653
|
/** Cost sharing details for family coverage (deductibles, out-of-pocket maximums) */
|
|
1619
1654
|
familyInsuranceDetails?: Maybe<CoverageFinancialDetails>;
|
|
1620
1655
|
/** Unique identifier for the coverage summary */
|
|
1621
1656
|
id?: Maybe<Scalars['ID']['output']>;
|
|
1622
1657
|
/** Cost sharing details for individual coverage (deductibles, out-of-pocket maximums) */
|
|
1623
1658
|
individualInsuranceDetails?: Maybe<CoverageFinancialDetails>;
|
|
1659
|
+
/** Member forms document links */
|
|
1660
|
+
memberForms?: Maybe<CoverageMemberForms>;
|
|
1624
1661
|
/** Details about the insurance plan */
|
|
1625
1662
|
planInfo?: Maybe<CoveragePlanInfo>;
|
|
1626
1663
|
/** Prescription-related resource documents (formulary, drug coverage, pharmacy directory) */
|
|
1627
1664
|
prescriptionResources?: Maybe<CoveragePrescriptionResources>;
|
|
1628
1665
|
/** Primary account holder and plan subscriber */
|
|
1629
1666
|
subscriber?: Maybe<CoverageMember>;
|
|
1667
|
+
/** Plan supplemental benefits entries */
|
|
1668
|
+
supplementalBenefits?: Maybe<Array<CoverageSupplementalBenefit>>;
|
|
1630
1669
|
};
|
|
1631
1670
|
export type CoverageSummaryQueryRequest = {
|
|
1632
1671
|
page?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1644,10 +1683,20 @@ export type CoverageSummaryQueryResults = PagedQueryResults & {
|
|
|
1644
1683
|
/** List of coverage summary resources */
|
|
1645
1684
|
resources: Array<CoverageSummary>;
|
|
1646
1685
|
};
|
|
1686
|
+
/** A single supplemental plan benefit entry. */
|
|
1687
|
+
export type CoverageSupplementalBenefit = {
|
|
1688
|
+
__typename?: 'CoverageSupplementalBenefit';
|
|
1689
|
+
/** Benefit code from section coding */
|
|
1690
|
+
code?: Maybe<Scalars['String']['output']>;
|
|
1691
|
+
/** Narrative/html text from section.text.div */
|
|
1692
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
1693
|
+
/** Display title of the benefit */
|
|
1694
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
1695
|
+
};
|
|
1647
1696
|
export type CreateHealthLinkInput = {
|
|
1648
1697
|
label?: InputMaybe<Scalars['String']['input']>;
|
|
1649
1698
|
resources?: InputMaybe<Array<ResourceInput>>;
|
|
1650
|
-
securityConfig
|
|
1699
|
+
securityConfig?: InputMaybe<SecurityConfigInput>;
|
|
1651
1700
|
};
|
|
1652
1701
|
export type CreateSupportCommentInput = {
|
|
1653
1702
|
body: Scalars['String']['input'];
|
|
@@ -1689,6 +1738,7 @@ export declare enum DataConnectionStatus {
|
|
|
1689
1738
|
/** Defines the source type of connection */
|
|
1690
1739
|
export declare enum DataConnectionType {
|
|
1691
1740
|
Clinical = "CLINICAL",
|
|
1741
|
+
Device = "DEVICE",
|
|
1692
1742
|
Insurance = "INSURANCE",
|
|
1693
1743
|
Lab = "LAB",
|
|
1694
1744
|
Pharmacy = "PHARMACY",
|
|
@@ -2833,6 +2883,7 @@ export type HealthResourceSearchResult = {
|
|
|
2833
2883
|
iconString?: Maybe<Scalars['String']['output']>;
|
|
2834
2884
|
id?: Maybe<Scalars['String']['output']>;
|
|
2835
2885
|
insurancePlan?: Maybe<Array<Maybe<ProviderInsurancePlan>>>;
|
|
2886
|
+
isVirtualCare?: Maybe<Scalars['Boolean']['output']>;
|
|
2836
2887
|
location?: Maybe<Array<Maybe<ProviderLocation>>>;
|
|
2837
2888
|
meta?: Maybe<MetaType>;
|
|
2838
2889
|
name?: Maybe<Array<Maybe<HumanName>>>;
|
|
@@ -3235,10 +3286,18 @@ export type InputProfileName = {
|
|
|
3235
3286
|
};
|
|
3236
3287
|
export type InsurancePlanInput = {
|
|
3237
3288
|
/** Insurance plan issuer/owner organization name */
|
|
3238
|
-
owner
|
|
3289
|
+
owner?: InputMaybe<Scalars['String']['input']>;
|
|
3239
3290
|
/** The specific plan identifier within the owner's offerings */
|
|
3240
|
-
plan
|
|
3241
|
-
};
|
|
3291
|
+
plan?: InputMaybe<Scalars['String']['input']>;
|
|
3292
|
+
};
|
|
3293
|
+
/** Defines the integration type of a connection */
|
|
3294
|
+
export declare enum IntegrationType {
|
|
3295
|
+
Direct = "DIRECT",
|
|
3296
|
+
DirectIas = "DIRECT_IAS",
|
|
3297
|
+
Ial2 = "IAL2",
|
|
3298
|
+
IndirectIas = "INDIRECT_IAS",
|
|
3299
|
+
Proa = "PROA"
|
|
3300
|
+
}
|
|
3242
3301
|
export declare enum InteractionType {
|
|
3243
3302
|
Clicked = "clicked"
|
|
3244
3303
|
}
|
|
@@ -3367,6 +3426,11 @@ export type Location = Resource & {
|
|
|
3367
3426
|
telecom?: Maybe<Array<Maybe<ContactPoint>>>;
|
|
3368
3427
|
type?: Maybe<Array<Maybe<CodeableConcept>>>;
|
|
3369
3428
|
};
|
|
3429
|
+
/** Input for filtering providers by location attributes. */
|
|
3430
|
+
export type LocationInput = {
|
|
3431
|
+
/** Filter by Facility ID values from the location facility_id field */
|
|
3432
|
+
facilityId?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
3433
|
+
};
|
|
3370
3434
|
export type LocationManagingOrganizationReference = {
|
|
3371
3435
|
__typename?: 'LocationManagingOrganizationReference';
|
|
3372
3436
|
display?: Maybe<Scalars['String']['output']>;
|
|
@@ -3790,6 +3854,8 @@ export type MobileSyncCredentials = {
|
|
|
3790
3854
|
deviceUserId: Scalars['String']['output'];
|
|
3791
3855
|
/** Device mobile token */
|
|
3792
3856
|
mobileToken: Scalars['String']['output'];
|
|
3857
|
+
/** Device provider organization identifier */
|
|
3858
|
+
orgId?: Maybe<Scalars['String']['output']>;
|
|
3793
3859
|
};
|
|
3794
3860
|
export type Model = {
|
|
3795
3861
|
__typename?: 'Model';
|
|
@@ -4075,8 +4141,9 @@ export type MutationCreateAuthCodeArgs = {
|
|
|
4075
4141
|
};
|
|
4076
4142
|
export type MutationCreateConnectionArgs = {
|
|
4077
4143
|
connectionId: Scalars['String']['input'];
|
|
4078
|
-
|
|
4079
|
-
|
|
4144
|
+
integrationType?: InputMaybe<IntegrationType>;
|
|
4145
|
+
password?: InputMaybe<Scalars['String']['input']>;
|
|
4146
|
+
username?: InputMaybe<Scalars['String']['input']>;
|
|
4080
4147
|
};
|
|
4081
4148
|
export type MutationCreateConsentArgs = {
|
|
4082
4149
|
consentInput: ConsentInput;
|
|
@@ -5331,6 +5398,7 @@ export type ProviderCoding = {
|
|
|
5331
5398
|
};
|
|
5332
5399
|
export type ProviderConfig = {
|
|
5333
5400
|
__typename?: 'ProviderConfig';
|
|
5401
|
+
authDomain?: Maybe<Scalars['String']['output']>;
|
|
5334
5402
|
flows?: Maybe<Array<FlowMetadata>>;
|
|
5335
5403
|
tenantId?: Maybe<Scalars['String']['output']>;
|
|
5336
5404
|
};
|
|
@@ -5379,6 +5447,7 @@ export type ProviderInsurancePlan = {
|
|
|
5379
5447
|
* and adds distanceInMiles
|
|
5380
5448
|
* and adds https://www.hl7.org/fhir/schedule.html
|
|
5381
5449
|
* and adds organizationName for managing organization
|
|
5450
|
+
* and adds facilityId for location-level facility identifier
|
|
5382
5451
|
*/
|
|
5383
5452
|
export type ProviderLocation = {
|
|
5384
5453
|
__typename?: 'ProviderLocation';
|
|
@@ -5386,6 +5455,7 @@ export type ProviderLocation = {
|
|
|
5386
5455
|
alias?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
5387
5456
|
description?: Maybe<Scalars['String']['output']>;
|
|
5388
5457
|
distanceInMiles?: Maybe<Scalars['Float']['output']>;
|
|
5458
|
+
facilityId?: Maybe<Scalars['String']['output']>;
|
|
5389
5459
|
hoursOfOperation?: Maybe<Array<Maybe<HoursOfOperationType>>>;
|
|
5390
5460
|
identifier?: Maybe<Array<Maybe<ProviderIdentifier>>>;
|
|
5391
5461
|
name?: Maybe<Scalars['String']['output']>;
|
|
@@ -5628,6 +5698,7 @@ export type Query = {
|
|
|
5628
5698
|
initSdk: SdkConfiguration;
|
|
5629
5699
|
locations: LocationQueryResults;
|
|
5630
5700
|
login: LogInResponse;
|
|
5701
|
+
memberPlanIdentifiers?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
5631
5702
|
organizations: OrganizationQueryResults;
|
|
5632
5703
|
patients?: Maybe<PatientBundle>;
|
|
5633
5704
|
person?: Maybe<Person>;
|
|
@@ -6759,6 +6830,8 @@ export type SearchFiltersInput = {
|
|
|
6759
6830
|
includePopulatedProaOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6760
6831
|
/** Return providers/practices who accept specified insurance plans */
|
|
6761
6832
|
insurancePlan?: InputMaybe<Array<InsurancePlanInput>>;
|
|
6833
|
+
/** Filter by location fields */
|
|
6834
|
+
location?: InputMaybe<LocationInput>;
|
|
6762
6835
|
/** Return only providers with available appointment slots matching these criteria */
|
|
6763
6836
|
nextAvailableSlot?: InputMaybe<Array<InputMaybe<NextAvailableSlotInput>>>;
|
|
6764
6837
|
/** Return only providers who accept this type of patient (new, existing, or both) */
|
|
@@ -6963,7 +7036,12 @@ export type Security = {
|
|
|
6963
7036
|
system?: Maybe<Scalars['String']['output']>;
|
|
6964
7037
|
};
|
|
6965
7038
|
export type SecurityConfigInput = {
|
|
6966
|
-
|
|
7039
|
+
/** Maximum number of times the SHL can be accessed. Default: 2. Max: 3. */
|
|
7040
|
+
accessLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
7041
|
+
/** Expiration time in minutes. Default: 5. Max: 2880 (2 days). */
|
|
7042
|
+
expirationMinutes?: InputMaybe<Scalars['Int']['input']>;
|
|
7043
|
+
/** PIN/passcode for accessing the SHL. If set, uses manifest flow (P flag). If omitted, uses passcode-less flow (U flag). */
|
|
7044
|
+
passcode?: InputMaybe<Scalars['String']['input']>;
|
|
6967
7045
|
};
|
|
6968
7046
|
export declare enum SensitiveDataTag {
|
|
6969
7047
|
Abortion = "ABORTION",
|
package/dist/graphql/schema.js
CHANGED
|
@@ -36,6 +36,7 @@ export var CategoryCode;
|
|
|
36
36
|
CategoryCode["CmsNetworkShareMyRecords"] = "CMS_NETWORK_SHARE_MY_RECORDS";
|
|
37
37
|
CategoryCode["CommunicationPreferencesPhi"] = "COMMUNICATION_PREFERENCES_PHI";
|
|
38
38
|
CategoryCode["DataSharing"] = "DATA_SHARING";
|
|
39
|
+
CategoryCode["DirectImportRecords"] = "DIRECT_IMPORT_RECORDS";
|
|
39
40
|
CategoryCode["HealthCircleAdolescent"] = "HEALTH_CIRCLE_ADOLESCENT";
|
|
40
41
|
CategoryCode["HealthCircleMinor"] = "HEALTH_CIRCLE_MINOR";
|
|
41
42
|
CategoryCode["HealthMatch"] = "HEALTH_MATCH";
|
|
@@ -96,6 +97,12 @@ export var ConsentStatus;
|
|
|
96
97
|
ConsentStatus["Proposed"] = "PROPOSED";
|
|
97
98
|
ConsentStatus["Rejected"] = "REJECTED";
|
|
98
99
|
})(ConsentStatus || (ConsentStatus = {}));
|
|
100
|
+
/** Discriminates between medical and pharmacy plan benefit entries. */
|
|
101
|
+
export var CoverageBenefitType;
|
|
102
|
+
(function (CoverageBenefitType) {
|
|
103
|
+
CoverageBenefitType["Medical"] = "MEDICAL";
|
|
104
|
+
CoverageBenefitType["Pharmacy"] = "PHARMACY";
|
|
105
|
+
})(CoverageBenefitType || (CoverageBenefitType = {}));
|
|
99
106
|
/** Supported ISO 4217 CurrencyCodes */
|
|
100
107
|
export var CurrencyCode;
|
|
101
108
|
(function (CurrencyCode) {
|
|
@@ -120,6 +127,7 @@ export var DataConnectionStatus;
|
|
|
120
127
|
export var DataConnectionType;
|
|
121
128
|
(function (DataConnectionType) {
|
|
122
129
|
DataConnectionType["Clinical"] = "CLINICAL";
|
|
130
|
+
DataConnectionType["Device"] = "DEVICE";
|
|
123
131
|
DataConnectionType["Insurance"] = "INSURANCE";
|
|
124
132
|
DataConnectionType["Lab"] = "LAB";
|
|
125
133
|
DataConnectionType["Pharmacy"] = "PHARMACY";
|
|
@@ -278,6 +286,15 @@ export var IdpProvider;
|
|
|
278
286
|
IdpProvider["Cognito"] = "COGNITO";
|
|
279
287
|
IdpProvider["Descope"] = "DESCOPE";
|
|
280
288
|
})(IdpProvider || (IdpProvider = {}));
|
|
289
|
+
/** Defines the integration type of a connection */
|
|
290
|
+
export var IntegrationType;
|
|
291
|
+
(function (IntegrationType) {
|
|
292
|
+
IntegrationType["Direct"] = "DIRECT";
|
|
293
|
+
IntegrationType["DirectIas"] = "DIRECT_IAS";
|
|
294
|
+
IntegrationType["Ial2"] = "IAL2";
|
|
295
|
+
IntegrationType["IndirectIas"] = "INDIRECT_IAS";
|
|
296
|
+
IntegrationType["Proa"] = "PROA";
|
|
297
|
+
})(IntegrationType || (IntegrationType = {}));
|
|
281
298
|
export var InteractionType;
|
|
282
299
|
(function (InteractionType) {
|
|
283
300
|
InteractionType["Clicked"] = "clicked";
|