@icanbwell/bwell-sdk-ts 1.70.1 → 1.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/data-sharing/accept-data-sharing-invitation-request.d.ts +31 -0
- package/dist/api/base/data-sharing/accept-data-sharing-invitation-request.js +33 -0
- package/dist/api/base/data-sharing/data-sharing-manager.d.ts +12 -2
- package/dist/api/base/data-sharing/index.d.ts +1 -0
- package/dist/api/base/data-sharing/index.js +1 -0
- package/dist/api/graphql-api/data-sharing/graphql-data-sharing-manager.d.ts +4 -2
- package/dist/api/graphql-api/data-sharing/graphql-data-sharing-manager.js +18 -1
- package/dist/graphql/operations/index.d.ts +9 -1
- package/dist/graphql/operations/index.js +26 -0
- package/dist/graphql/operations/types.d.ts +24 -0
- package/dist/graphql/schema.d.ts +37 -20
- package/dist/graphql/schema.js +0 -5
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Error message for when the invitation code is not defined.
|
|
4
|
+
*/
|
|
5
|
+
export declare const UNDEFINED_CODE_ERROR = "code cannot be null or empty";
|
|
6
|
+
/**
|
|
7
|
+
* Input object for accepting a data sharing invitation.
|
|
8
|
+
*/
|
|
9
|
+
export type AcceptDataSharingInvitationRequestInput = {
|
|
10
|
+
code: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Validator for accept data sharing invitation requests.
|
|
14
|
+
* Ensures the invitation code is defined, not null, and not empty.
|
|
15
|
+
*/
|
|
16
|
+
export declare class AcceptDataSharingInvitationRequestValidator {
|
|
17
|
+
validate(data: AcceptDataSharingInvitationRequestInput, errors: ErrorsCollector): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Request object for accepting a data sharing invitation.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const request = new AcceptDataSharingInvitationRequest({
|
|
25
|
+
* code: "7f94a6cd-8b23-4845-9ea5-35b141fa2331",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class AcceptDataSharingInvitationRequest extends ValidationRequest<AcceptDataSharingInvitationRequestInput> {
|
|
30
|
+
protected validator: AcceptDataSharingInvitationRequestValidator;
|
|
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 invitation code is not defined.
|
|
5
|
+
*/
|
|
6
|
+
export const UNDEFINED_CODE_ERROR = "code cannot be null or empty";
|
|
7
|
+
/**
|
|
8
|
+
* Validator for accept data sharing invitation requests.
|
|
9
|
+
* Ensures the invitation code is defined, not null, and not empty.
|
|
10
|
+
*/
|
|
11
|
+
export class AcceptDataSharingInvitationRequestValidator {
|
|
12
|
+
validate(data, errors) {
|
|
13
|
+
if (isNullOrUndefinedOrEmptyString(data.code)) {
|
|
14
|
+
errors.add(UNDEFINED_CODE_ERROR);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Request object for accepting a data sharing invitation.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const request = new AcceptDataSharingInvitationRequest({
|
|
24
|
+
* code: "7f94a6cd-8b23-4845-9ea5-35b141fa2331",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export class AcceptDataSharingInvitationRequest extends ValidationRequest {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.validator = new AcceptDataSharingInvitationRequestValidator();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { GetDataSharingAccessQueryResults, GetDataSharingGrantsQueryResults } from "../../../graphql/operations/types.js";
|
|
2
|
-
import type { BWellQueryResult } from "../../../results/index.js";
|
|
1
|
+
import type { AcceptDataSharingInvitationMutationResults, GetDataSharingAccessQueryResults, GetDataSharingGrantsQueryResults } from "../../../graphql/operations/types.js";
|
|
2
|
+
import type { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
|
+
import type { AcceptDataSharingInvitationRequest } from "./accept-data-sharing-invitation-request.js";
|
|
4
5
|
export type GetDataSharingGrantsResults = GetDataSharingGrantsQueryResults["dataSharingGrants"];
|
|
5
6
|
export type GetDataSharingAccessResults = GetDataSharingAccessQueryResults["dataSharingAccess"];
|
|
7
|
+
export type AcceptDataSharingInvitationResults = AcceptDataSharingInvitationMutationResults["acceptDataSharingInvitation"];
|
|
6
8
|
/**
|
|
7
9
|
* The DataSharingManager interface provides methods for managing health circle consents.
|
|
8
10
|
*/
|
|
@@ -17,4 +19,12 @@ export interface DataSharingManager {
|
|
|
17
19
|
* @returns A promise that resolves to the list of grants given to the user.
|
|
18
20
|
*/
|
|
19
21
|
getDataSharingAccess(): Promise<BWellQueryResult<GetDataSharingAccessResults, BaseManagerError>>;
|
|
22
|
+
/**
|
|
23
|
+
* Accepts a data sharing invitation from a grantor using the provided invitation code.
|
|
24
|
+
* On success, a Consent resource is created linking the grantor and grantee.
|
|
25
|
+
*
|
|
26
|
+
* @param {AcceptDataSharingInvitationRequest} request - The request containing the invitation code.
|
|
27
|
+
* @returns A promise that resolves to the OperationOutcome result of accepting the invitation.
|
|
28
|
+
*/
|
|
29
|
+
acceptDataSharingInvitation(request: AcceptDataSharingInvitationRequest): Promise<BWellTransactionResult<AcceptDataSharingInvitationResults, BaseManagerError>>;
|
|
20
30
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LoggerProvider } from "../../../logger/index.js";
|
|
2
|
-
import { BWellQueryResult } from "../../../results/index.js";
|
|
2
|
+
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import type { DataSharingManager } from "../../base/data-sharing/data-sharing-manager.js";
|
|
4
|
-
import { GetDataSharingAccessResults, GetDataSharingGrantsResults } 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";
|
|
5
6
|
import { BaseManagerError } from "../../base/errors.js";
|
|
6
7
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
7
8
|
import type { GraphQLSdk } from "../graphql-sdk/index.js";
|
|
@@ -10,4 +11,5 @@ export declare class GraphQLDataSharingManager extends GraphQLManager implements
|
|
|
10
11
|
constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider);
|
|
11
12
|
getDataSharingGrants(): Promise<BWellQueryResult<GetDataSharingGrantsResults, BaseManagerError>>;
|
|
12
13
|
getDataSharingAccess(): Promise<BWellQueryResult<GetDataSharingAccessResults, BaseManagerError>>;
|
|
14
|
+
acceptDataSharingInvitation(request: AcceptDataSharingInvitationRequest): Promise<BWellTransactionResult<AcceptDataSharingInvitationResults, BaseManagerError>>;
|
|
13
15
|
}
|
|
@@ -20,7 +20,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
20
20
|
};
|
|
21
21
|
var _GraphQLDataSharingManager_sdk, _GraphQLDataSharingManager_logger;
|
|
22
22
|
import { ConsoleLoggerProvider, } from "../../../logger/index.js";
|
|
23
|
-
import { BWellQueryResult } from "../../../results/index.js";
|
|
23
|
+
import { BWellQueryResult, BWellTransactionResult, } from "../../../results/index.js";
|
|
24
24
|
import { GraphQLManager } from "../graphql-manager/index.js";
|
|
25
25
|
export class GraphQLDataSharingManager extends GraphQLManager {
|
|
26
26
|
constructor(sdk, loggerProvider = new ConsoleLoggerProvider()) {
|
|
@@ -54,5 +54,22 @@ export class GraphQLDataSharingManager extends GraphQLManager {
|
|
|
54
54
|
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.dataSharingAccess, result.error);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
+
acceptDataSharingInvitation(request) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const validationResult = this.validateRequest(request);
|
|
60
|
+
if (validationResult.failure()) {
|
|
61
|
+
return validationResult.intoFailure();
|
|
62
|
+
}
|
|
63
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").verbose("calling acceptDataSharingInvitation mutation...");
|
|
64
|
+
const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLDataSharingManager_sdk, "f").AcceptDataSharingInvitation(Object.assign({}, request.data())));
|
|
65
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").verbose("acceptDataSharingInvitation mutation complete.");
|
|
66
|
+
if (result.failure()) {
|
|
67
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").error("acceptDataSharingInvitation mutation failed", result);
|
|
68
|
+
return result.intoFailure();
|
|
69
|
+
}
|
|
70
|
+
__classPrivateFieldGet(this, _GraphQLDataSharingManager_logger, "f").info("successfully called acceptDataSharingInvitation mutation");
|
|
71
|
+
return BWellTransactionResult.success(result.data().acceptDataSharingInvitation);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
57
74
|
}
|
|
58
75
|
_GraphQLDataSharingManager_sdk = new WeakMap(), _GraphQLDataSharingManager_logger = new WeakMap();
|
|
@@ -101,6 +101,7 @@ export declare const DisconnectConnectionDocument = "\n mutation disconnectCo
|
|
|
101
101
|
export declare const GetDataSourceDocument = "\n query getDataSource($connectionId: String!) {\n getDataSource(connectionId: $connectionId) {\n id\n name\n category\n type\n isDirect\n }\n}\n ";
|
|
102
102
|
export declare const GetMemberConnectionsDocument = "\n query getMemberConnections($integrationType: [String!] = null) {\n getMemberConnections(integrationType: $integrationType) {\n id\n name\n category\n type\n status\n syncStatus\n statusUpdated\n lastSynced\n created\n isDirect\n integrationType\n }\n subscription_subscription {\n entry {\n resource {\n service_slug\n subscriptionStatus {\n error {\n ...CodeableConceptFields\n }\n extension {\n id\n url\n valueString\n }\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
103
103
|
export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionId: String!) {\n getOauthUrl(connectionId: $connectionId) {\n redirectUrl\n }\n}\n ";
|
|
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 ";
|
|
104
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 ";
|
|
105
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 ";
|
|
106
107
|
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 ";
|
|
@@ -163,7 +164,7 @@ export declare const GetQuestionnairesDocument = "\n query getQuestionnaires(
|
|
|
163
164
|
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 ";
|
|
164
165
|
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 ";
|
|
165
166
|
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 ";
|
|
166
|
-
export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n id\n content\n nextAvailableSlot {\n appointmentType\n start\n }\n specialty {\n code\n system\n display\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 ";
|
|
167
|
+
export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n 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 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 ";
|
|
167
168
|
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 ";
|
|
168
169
|
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 ";
|
|
169
170
|
export declare const DeleteSupportAttachmentDocument = "\n mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {\n deleteSupportAttachment(input: $input) {\n status\n }\n}\n ";
|
|
@@ -239,6 +240,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
239
240
|
headers: Headers;
|
|
240
241
|
status: number;
|
|
241
242
|
}>;
|
|
243
|
+
AcceptDataSharingInvitation(variables: Types.AcceptDataSharingInvitationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
244
|
+
data: Types.AcceptDataSharingInvitationMutationResults;
|
|
245
|
+
errors?: GraphQLError[];
|
|
246
|
+
extensions?: any;
|
|
247
|
+
headers: Headers;
|
|
248
|
+
status: number;
|
|
249
|
+
}>;
|
|
242
250
|
GetDataSharingAccess(variables?: Types.GetDataSharingAccessQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
243
251
|
data: Types.GetDataSharingAccessQueryResults;
|
|
244
252
|
errors?: GraphQLError[];
|
|
@@ -2003,6 +2003,26 @@ export const GetOauthUrlDocument = `
|
|
|
2003
2003
|
}
|
|
2004
2004
|
}
|
|
2005
2005
|
`;
|
|
2006
|
+
export const AcceptDataSharingInvitationDocument = `
|
|
2007
|
+
mutation AcceptDataSharingInvitation($code: String!) {
|
|
2008
|
+
acceptDataSharingInvitation(input: {code: $code}) {
|
|
2009
|
+
resourceType
|
|
2010
|
+
id
|
|
2011
|
+
issue {
|
|
2012
|
+
severity
|
|
2013
|
+
code
|
|
2014
|
+
details {
|
|
2015
|
+
text
|
|
2016
|
+
coding {
|
|
2017
|
+
system
|
|
2018
|
+
code
|
|
2019
|
+
display
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
`;
|
|
2006
2026
|
export const GetDataSharingAccessDocument = `
|
|
2007
2027
|
query GetDataSharingAccess {
|
|
2008
2028
|
dataSharingAccess {
|
|
@@ -4343,6 +4363,9 @@ export const SearchHealthResourcesDocument = `
|
|
|
4343
4363
|
}
|
|
4344
4364
|
results {
|
|
4345
4365
|
type
|
|
4366
|
+
photo {
|
|
4367
|
+
url
|
|
4368
|
+
}
|
|
4346
4369
|
id
|
|
4347
4370
|
content
|
|
4348
4371
|
nextAvailableSlot {
|
|
@@ -4882,6 +4905,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
4882
4905
|
getOauthUrl(variables, requestHeaders) {
|
|
4883
4906
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetOauthUrlDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getOauthUrl', 'query', variables);
|
|
4884
4907
|
},
|
|
4908
|
+
AcceptDataSharingInvitation(variables, requestHeaders) {
|
|
4909
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(AcceptDataSharingInvitationDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'AcceptDataSharingInvitation', 'mutation', variables);
|
|
4910
|
+
},
|
|
4885
4911
|
GetDataSharingAccess(variables, requestHeaders) {
|
|
4886
4912
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDataSharingAccessDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetDataSharingAccess', 'query', variables);
|
|
4887
4913
|
},
|
|
@@ -9051,6 +9051,27 @@ export type GetOauthUrlQueryResults = {
|
|
|
9051
9051
|
redirectUrl: string;
|
|
9052
9052
|
};
|
|
9053
9053
|
};
|
|
9054
|
+
export type AcceptDataSharingInvitationMutationVariables = Types.Exact<{
|
|
9055
|
+
code: Types.Scalars['String']['input'];
|
|
9056
|
+
}>;
|
|
9057
|
+
export type AcceptDataSharingInvitationMutationResults = {
|
|
9058
|
+
acceptDataSharingInvitation: {
|
|
9059
|
+
resourceType: string;
|
|
9060
|
+
id: string | null;
|
|
9061
|
+
issue: Array<{
|
|
9062
|
+
severity: any | null;
|
|
9063
|
+
code: any | null;
|
|
9064
|
+
details: {
|
|
9065
|
+
text: string | null;
|
|
9066
|
+
coding: Array<{
|
|
9067
|
+
system: any | null;
|
|
9068
|
+
code: any | null;
|
|
9069
|
+
display: string | null;
|
|
9070
|
+
} | null> | null;
|
|
9071
|
+
} | null;
|
|
9072
|
+
}>;
|
|
9073
|
+
};
|
|
9074
|
+
};
|
|
9054
9075
|
export type GetDataSharingAccessQueryVariables = Types.Exact<{
|
|
9055
9076
|
[key: string]: never;
|
|
9056
9077
|
}>;
|
|
@@ -28655,6 +28676,9 @@ export type SearchHealthResourcesQueryResults = {
|
|
|
28655
28676
|
iconString: string | null;
|
|
28656
28677
|
score: number | null;
|
|
28657
28678
|
acceptingNewPatients: boolean | null;
|
|
28679
|
+
photo: Array<{
|
|
28680
|
+
url: string | null;
|
|
28681
|
+
} | null> | null;
|
|
28658
28682
|
nextAvailableSlot: Array<{
|
|
28659
28683
|
appointmentType: Array<string | null> | null;
|
|
28660
28684
|
start: any | null;
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -162,6 +162,9 @@ export type Scalars = {
|
|
|
162
162
|
output: any;
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
+
export type AcceptDataSharingInvitationInput = {
|
|
166
|
+
code: Scalars['String']['input'];
|
|
167
|
+
};
|
|
165
168
|
export type AccessTokenPayload = {
|
|
166
169
|
__typename?: 'AccessTokenPayload';
|
|
167
170
|
jwtToken: Scalars['String']['output'];
|
|
@@ -1661,10 +1664,6 @@ export declare enum DataAccessInvitationResponse {
|
|
|
1661
1664
|
Accepted = "ACCEPTED",
|
|
1662
1665
|
Rejected = "REJECTED"
|
|
1663
1666
|
}
|
|
1664
|
-
export declare enum DataAccessInvitationType {
|
|
1665
|
-
Active = "ACTIVE",
|
|
1666
|
-
Pending = "PENDING"
|
|
1667
|
-
}
|
|
1668
1667
|
/** Defines the connection statuses */
|
|
1669
1668
|
export declare enum DataConnectionStatus {
|
|
1670
1669
|
AccessEnded = "ACCESS_ENDED",
|
|
@@ -1744,13 +1743,6 @@ export declare enum DaysOfWeekEnum {
|
|
|
1744
1743
|
Tue = "TUE",
|
|
1745
1744
|
Wed = "WED"
|
|
1746
1745
|
}
|
|
1747
|
-
export type DelegationTokenResponse = {
|
|
1748
|
-
__typename?: 'DelegationTokenResponse';
|
|
1749
|
-
expiresAt: Scalars['DateTime']['output'];
|
|
1750
|
-
message?: Maybe<Scalars['String']['output']>;
|
|
1751
|
-
success: Scalars['Boolean']['output'];
|
|
1752
|
-
token: Scalars['String']['output'];
|
|
1753
|
-
};
|
|
1754
1746
|
export type DeleteSupportAttachmentInput = {
|
|
1755
1747
|
attachmentId: Scalars['String']['input'];
|
|
1756
1748
|
};
|
|
@@ -1830,6 +1822,18 @@ export type DeviceMetricsGroupQueryResults = PagedQueryResults & {
|
|
|
1830
1822
|
paging_info?: Maybe<PagingResults>;
|
|
1831
1823
|
resources: Array<DeviceMetricsGroup>;
|
|
1832
1824
|
};
|
|
1825
|
+
/** Defines input parameters for querying Device Metrics resources. */
|
|
1826
|
+
export type DeviceMetricsRequest = {
|
|
1827
|
+
/** Filter for device metrics with the given code system */
|
|
1828
|
+
groupCode?: InputMaybe<SearchToken>;
|
|
1829
|
+
ids?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1830
|
+
/** Filters based on the meta.lastUpdated date of the resource */
|
|
1831
|
+
lastUpdated?: InputMaybe<SearchDate>;
|
|
1832
|
+
/** Page offset */
|
|
1833
|
+
page?: InputMaybe<Scalars['Int']['input']>;
|
|
1834
|
+
/** The maximum number of results to return (for pagination). */
|
|
1835
|
+
pageSize?: InputMaybe<Scalars['Int']['input']>;
|
|
1836
|
+
};
|
|
1833
1837
|
export type DevicePatientReference = {
|
|
1834
1838
|
__typename?: 'DevicePatientReference';
|
|
1835
1839
|
display?: Maybe<Scalars['String']['output']>;
|
|
@@ -3779,6 +3783,7 @@ export type Money = {
|
|
|
3779
3783
|
};
|
|
3780
3784
|
export type Mutation = {
|
|
3781
3785
|
__typename?: 'Mutation';
|
|
3786
|
+
acceptDataSharingInvitation: OperationOutcome;
|
|
3782
3787
|
/** Activate a direct connection */
|
|
3783
3788
|
activateDirectConnection: ActivateDirectConnection;
|
|
3784
3789
|
createAuthCode: AuthCode;
|
|
@@ -3993,7 +3998,6 @@ export type Mutation = {
|
|
|
3993
3998
|
exchangeAuthCode: AuthTokens;
|
|
3994
3999
|
findOrCreatePatient?: Maybe<Patient>;
|
|
3995
4000
|
interacted?: Maybe<Scalars['Boolean']['output']>;
|
|
3996
|
-
invitationResponse: PersonalAccessOperationResult;
|
|
3997
4001
|
itemInteracted?: Maybe<Scalars['Boolean']['output']>;
|
|
3998
4002
|
/**
|
|
3999
4003
|
* Utilizes the Adaptive Questionnaire workflow to determine the next question
|
|
@@ -4006,7 +4010,7 @@ export type Mutation = {
|
|
|
4006
4010
|
redisCacheClean: RedisCacheCleanResponse;
|
|
4007
4011
|
redisClearQuestionnairesCache: RedisCacheCleanResponse;
|
|
4008
4012
|
requestConnection?: Maybe<RequestConnectionOutput>;
|
|
4009
|
-
|
|
4013
|
+
requestDataSharingToken: TokenResponse;
|
|
4010
4014
|
retryConsentJob?: Maybe<Scalars['Void']['output']>;
|
|
4011
4015
|
revokeAccess: PersonalAccessOperationResult;
|
|
4012
4016
|
/** Saves a complete questionnaire response (create or update) */
|
|
@@ -4037,6 +4041,9 @@ export type Mutation = {
|
|
|
4037
4041
|
upsertPerson?: Maybe<PersonWithMetadata>;
|
|
4038
4042
|
upsertPersonWithRegCode?: Maybe<TaskWithMetadata>;
|
|
4039
4043
|
};
|
|
4044
|
+
export type MutationAcceptDataSharingInvitationArgs = {
|
|
4045
|
+
input: AcceptDataSharingInvitationInput;
|
|
4046
|
+
};
|
|
4040
4047
|
export type MutationActivateDirectConnectionArgs = {
|
|
4041
4048
|
connectionId: Scalars['String']['input'];
|
|
4042
4049
|
};
|
|
@@ -4175,9 +4182,6 @@ export type MutationInteractedArgs = {
|
|
|
4175
4182
|
result_id?: InputMaybe<Scalars['String']['input']>;
|
|
4176
4183
|
user?: InputMaybe<User>;
|
|
4177
4184
|
};
|
|
4178
|
-
export type MutationInvitationResponseArgs = {
|
|
4179
|
-
input: InvitationResponseInput;
|
|
4180
|
-
};
|
|
4181
4185
|
export type MutationItemInteractedArgs = {
|
|
4182
4186
|
interaction?: InputMaybe<InteractionTypeEnum>;
|
|
4183
4187
|
resultId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -4204,10 +4208,8 @@ export type MutationRequestConnectionArgs = {
|
|
|
4204
4208
|
provider?: InputMaybe<Scalars['String']['input']>;
|
|
4205
4209
|
state?: InputMaybe<Scalars['String']['input']>;
|
|
4206
4210
|
};
|
|
4207
|
-
export type
|
|
4208
|
-
|
|
4209
|
-
purpose?: InputMaybe<Scalars['String']['input']>;
|
|
4210
|
-
scope?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
4211
|
+
export type MutationRequestDataSharingTokenArgs = {
|
|
4212
|
+
input: RequestDataSharingTokenInput;
|
|
4211
4213
|
};
|
|
4212
4214
|
export type MutationRetryConsentJobArgs = {
|
|
4213
4215
|
jobID?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -5555,6 +5557,8 @@ export type Query = {
|
|
|
5555
5557
|
getCoverageSummary: CoverageSummaryQueryResults;
|
|
5556
5558
|
/** Data source information */
|
|
5557
5559
|
getDataSource: DataSource;
|
|
5560
|
+
/** Retrieves a list of device metrics based on the provided request parameters. */
|
|
5561
|
+
getDeviceMetrics: ObservationQueryResults;
|
|
5558
5562
|
getDeviceMetricsGroups: DeviceMetricsGroupQueryResults;
|
|
5559
5563
|
getDiagnosticReportLabGroups: DiagnosticReportLabGroupQueryResults;
|
|
5560
5564
|
getDocumentReferences: DocumentReferenceQueryResults;
|
|
@@ -5769,6 +5773,9 @@ export type QueryGetCoverageSummaryArgs = {
|
|
|
5769
5773
|
export type QueryGetDataSourceArgs = {
|
|
5770
5774
|
connectionId: Scalars['String']['input'];
|
|
5771
5775
|
};
|
|
5776
|
+
export type QueryGetDeviceMetricsArgs = {
|
|
5777
|
+
request?: InputMaybe<DeviceMetricsRequest>;
|
|
5778
|
+
};
|
|
5772
5779
|
export type QueryGetDeviceMetricsGroupsArgs = {
|
|
5773
5780
|
request?: InputMaybe<DeviceMetricsGroupQueryRequest>;
|
|
5774
5781
|
};
|
|
@@ -6560,6 +6567,9 @@ export type RequestConnectionOutput = {
|
|
|
6560
6567
|
issue?: Maybe<Array<Maybe<OperationOutcomeIssue>>>;
|
|
6561
6568
|
resourceType?: Maybe<Scalars['String']['output']>;
|
|
6562
6569
|
};
|
|
6570
|
+
export type RequestDataSharingTokenInput = {
|
|
6571
|
+
consentId: Scalars['String']['input'];
|
|
6572
|
+
};
|
|
6563
6573
|
export declare enum RequestStatus {
|
|
6564
6574
|
Closed = "CLOSED",
|
|
6565
6575
|
Hold = "HOLD",
|
|
@@ -7528,6 +7538,13 @@ export type TokenPayload = {
|
|
|
7528
7538
|
__typename?: 'TokenPayload';
|
|
7529
7539
|
jwtToken: Scalars['String']['output'];
|
|
7530
7540
|
};
|
|
7541
|
+
export type TokenResponse = {
|
|
7542
|
+
__typename?: 'TokenResponse';
|
|
7543
|
+
access_token: Scalars['String']['output'];
|
|
7544
|
+
expires_in: Scalars['Int']['output'];
|
|
7545
|
+
issued_token_type: Scalars['String']['output'];
|
|
7546
|
+
token_type: Scalars['String']['output'];
|
|
7547
|
+
};
|
|
7531
7548
|
export declare enum TotalType {
|
|
7532
7549
|
Accurate = "accurate",
|
|
7533
7550
|
Estimate = "estimate"
|
package/dist/graphql/schema.js
CHANGED
|
@@ -105,11 +105,6 @@ export var DataAccessInvitationResponse;
|
|
|
105
105
|
DataAccessInvitationResponse["Accepted"] = "ACCEPTED";
|
|
106
106
|
DataAccessInvitationResponse["Rejected"] = "REJECTED";
|
|
107
107
|
})(DataAccessInvitationResponse || (DataAccessInvitationResponse = {}));
|
|
108
|
-
export var DataAccessInvitationType;
|
|
109
|
-
(function (DataAccessInvitationType) {
|
|
110
|
-
DataAccessInvitationType["Active"] = "ACTIVE";
|
|
111
|
-
DataAccessInvitationType["Pending"] = "PENDING";
|
|
112
|
-
})(DataAccessInvitationType || (DataAccessInvitationType = {}));
|
|
113
108
|
/** Defines the connection statuses */
|
|
114
109
|
export var DataConnectionStatus;
|
|
115
110
|
(function (DataConnectionStatus) {
|