@icanbwell/bwell-sdk-ts 1.51.0 → 1.52.0-rc.1765552726

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.
Files changed (37) hide show
  1. package/dist/__version__.d.ts +1 -1
  2. package/dist/__version__.js +1 -1
  3. package/dist/api/base/health-space/add-care-team-member-request.d.ts +33 -0
  4. package/dist/api/base/health-space/add-care-team-member-request.js +36 -0
  5. package/dist/api/base/health-space/add-care-team-members-request.d.ts +35 -0
  6. package/dist/api/base/health-space/add-care-team-members-request.js +61 -0
  7. package/dist/api/base/health-space/health-space-manager.d.ts +86 -1
  8. package/dist/api/base/health-space/index.d.ts +4 -0
  9. package/dist/api/base/health-space/index.js +4 -0
  10. package/dist/api/base/health-space/remove-care-team-member-request.d.ts +34 -0
  11. package/dist/api/base/health-space/remove-care-team-member-request.js +36 -0
  12. package/dist/api/base/health-space/update-care-team-member-request.d.ts +55 -0
  13. package/dist/api/base/health-space/update-care-team-member-request.js +71 -0
  14. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.d.ts +20 -0
  15. package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.js +29 -0
  16. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.d.ts +16 -0
  17. package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.js +23 -0
  18. package/dist/api/graphql-api/health-space/care-team-factory-utils.d.ts +23 -0
  19. package/dist/api/graphql-api/health-space/care-team-factory-utils.js +30 -0
  20. package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +58 -1
  21. package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +131 -2
  22. package/dist/api/graphql-api/health-space/index.d.ts +4 -0
  23. package/dist/api/graphql-api/health-space/index.js +4 -0
  24. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.d.ts +16 -0
  25. package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.js +24 -0
  26. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.d.ts +16 -0
  27. package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.js +20 -0
  28. package/dist/graphql/operations/index.d.ts +36 -4
  29. package/dist/graphql/operations/index.js +77 -1
  30. package/dist/graphql/operations/types.d.ts +168 -17
  31. package/dist/graphql/schema.d.ts +43 -2
  32. package/dist/graphql/schema.js +29 -0
  33. package/dist/utils/date-utils.d.ts +6 -0
  34. package/dist/utils/date-utils.js +8 -0
  35. package/dist/utils/index.d.ts +1 -0
  36. package/dist/utils/index.js +1 -0
  37. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
1
  import { ValidationError } from "../../../errors/index.js";
2
+ import type { AddCareTeamMemberMutationResults, AddCareTeamMembersMutationResults, RemoveCareTeamMemberMutationResults, UpdateCareTeamMemberMutationResults } from "../../../graphql/operations/types.js";
2
3
  import { type LoggerProvider } from "../../../logger/index.js";
3
4
  import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
4
5
  import type { BaseManagerError } from "../../base/errors.js";
5
- import { AppointmentsRequest, AppointmentsResults, CancelAppointmentRequest, CancelAppointmentResults, CancelationReasonsRequest, CancelationReasonsResults, HealthSpaceManager } from "../../base/index.js";
6
+ import { AddCareTeamMemberRequest, AddCareTeamMembersRequest, AppointmentsRequest, AppointmentsResults, CancelAppointmentRequest, CancelAppointmentResults, CancelationReasonsRequest, CancelationReasonsResults, HealthSpaceManager, RemoveCareTeamMemberRequest, UpdateCareTeamMemberRequest } from "../../base/index.js";
6
7
  import { GraphQLManager } from "../graphql-manager/index.js";
7
8
  import type { GraphQLSdk } from "../graphql-sdk/index.js";
8
9
  export declare class GraphQLHealthSpaceManager extends GraphQLManager implements HealthSpaceManager {
@@ -24,4 +25,60 @@ export declare class GraphQLHealthSpaceManager extends GraphQLManager implements
24
25
  */
25
26
  cancelAppointment(request: CancelAppointmentRequest): Promise<BWellTransactionResult<CancelAppointmentResults, BaseManagerError>>;
26
27
  getCancelationReasons(request: CancelationReasonsRequest): Promise<BWellQueryResult<CancelationReasonsResults, ValidationError | BaseManagerError>>;
28
+ /**
29
+ * Removes a care team member by validating the request and calling the GraphQL mutation.
30
+ *
31
+ * @param request - The RemoveCareTeamMemberRequest containing participant details with member reference and period.
32
+ * @returns A BWellTransactionResult containing the updated CareTeam resource or an error.
33
+ *
34
+ * The method performs the following steps:
35
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
36
+ * 2. Calls the remove care team member mutation using the GraphQL SDK.
37
+ * 3. Handles the transaction result:
38
+ * - If the mutation fails, logs the error and returns a failure result.
39
+ * - If successful, returns a success result with the updated CareTeam resource.
40
+ */
41
+ removeCareTeamMember(request: RemoveCareTeamMemberRequest): Promise<BWellTransactionResult<RemoveCareTeamMemberMutationResults, ValidationError | BaseManagerError>>;
42
+ /**
43
+ * Adds a care team member by validating the request and calling the GraphQL mutation.
44
+ *
45
+ * @param request - The AddCareTeamMemberRequest containing participant details with member reference and roles.
46
+ * @returns A BWellTransactionResult containing the updated CareTeam resource or an error.
47
+ *
48
+ * The method performs the following steps:
49
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
50
+ * 2. Calls the add care team member mutation using the GraphQL SDK.
51
+ * 3. Handles the transaction result:
52
+ * - If the mutation fails, logs the error and returns a failure result.
53
+ * - If successful, returns a success result with the updated CareTeam resource.
54
+ */
55
+ addCareTeamMember(request: AddCareTeamMemberRequest): Promise<BWellTransactionResult<AddCareTeamMemberMutationResults, ValidationError | BaseManagerError>>;
56
+ /**
57
+ * Adds multiple care team members by validating the request and calling the GraphQL mutation.
58
+ *
59
+ * @param request - The AddCareTeamMembersRequest containing multiple participant details.
60
+ * @returns A BWellTransactionResult containing an array with the updated CareTeam resource or an error.
61
+ *
62
+ * The method performs the following steps:
63
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
64
+ * 2. Calls the add care team members mutation using the GraphQL SDK.
65
+ * 3. Handles the transaction result:
66
+ * - If the mutation fails, logs the error and returns a failure result.
67
+ * - If successful, returns a success result with the updated CareTeam resource in an array.
68
+ */
69
+ addCareTeamMembers(request: AddCareTeamMembersRequest): Promise<BWellTransactionResult<AddCareTeamMembersMutationResults, ValidationError | BaseManagerError>>;
70
+ /**
71
+ * Updates a care team member by validating the request and calling the GraphQL mutation.
72
+ *
73
+ * @param request - The UpdateCareTeamMemberRequest containing participant details to update.
74
+ * @returns A BWellTransactionResult containing the updated CareTeam resource or an error.
75
+ *
76
+ * The method performs the following steps:
77
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
78
+ * 2. Calls the update care team member mutation using the GraphQL SDK.
79
+ * 3. Handles the transaction result:
80
+ * - If the mutation fails, logs the error and returns a failure result.
81
+ * - If successful, returns a success result with the updated CareTeam resource.
82
+ */
83
+ updateCareTeamMember(request: UpdateCareTeamMemberRequest): Promise<BWellTransactionResult<UpdateCareTeamMemberMutationResults, ValidationError | BaseManagerError>>;
27
84
  }
@@ -18,12 +18,16 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
18
18
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
19
19
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
20
20
  };
21
- var _GraphQLHealthSpaceManager_logger, _GraphQLHealthSpaceManager_sdk, _GraphQLHealthSpaceManager_appointments, _GraphQLHealthSpaceManager_cancelAppointment;
21
+ var _GraphQLHealthSpaceManager_logger, _GraphQLHealthSpaceManager_sdk, _GraphQLHealthSpaceManager_appointments, _GraphQLHealthSpaceManager_cancelAppointment, _GraphQLHealthSpaceManager_removeCareTeamMember, _GraphQLHealthSpaceManager_addCareTeamMember, _GraphQLHealthSpaceManager_addCareTeamMembers, _GraphQLHealthSpaceManager_updateCareTeamMember;
22
22
  import { ConsoleLoggerProvider, } from "../../../logger/index.js";
23
23
  import { BWellQueryResult, BWellTransactionResult, } from "../../../results/index.js";
24
24
  import { GraphQLManager } from "../graphql-manager/index.js";
25
+ import { AddCareTeamMemberRequestFactory } from "./add-care-team-member-request-factory.js";
26
+ import { AddCareTeamMembersRequestFactory } from "./add-care-team-members-request-factory.js";
25
27
  import { AppointmentsRequestFactory } from "./appointments-request-factory.js";
26
28
  import { CancelAppointmentRequestFactory } from "./cancel-appointment-request-factory.js";
29
+ import { RemoveCareTeamMemberRequestFactory } from "./remove-care-team-member-request-factory.js";
30
+ import { UpdateCareTeamMemberRequestFactory } from "./update-care-team-member-request-factory.js";
27
31
  export class GraphQLHealthSpaceManager extends GraphQLManager {
28
32
  constructor(sdk, loggerProvider = new ConsoleLoggerProvider()) {
29
33
  super();
@@ -31,6 +35,10 @@ export class GraphQLHealthSpaceManager extends GraphQLManager {
31
35
  _GraphQLHealthSpaceManager_sdk.set(this, void 0);
32
36
  _GraphQLHealthSpaceManager_appointments.set(this, new AppointmentsRequestFactory());
33
37
  _GraphQLHealthSpaceManager_cancelAppointment.set(this, new CancelAppointmentRequestFactory());
38
+ _GraphQLHealthSpaceManager_removeCareTeamMember.set(this, new RemoveCareTeamMemberRequestFactory());
39
+ _GraphQLHealthSpaceManager_addCareTeamMember.set(this, new AddCareTeamMemberRequestFactory());
40
+ _GraphQLHealthSpaceManager_addCareTeamMembers.set(this, new AddCareTeamMembersRequestFactory());
41
+ _GraphQLHealthSpaceManager_updateCareTeamMember.set(this, new UpdateCareTeamMemberRequestFactory());
34
42
  __classPrivateFieldSet(this, _GraphQLHealthSpaceManager_sdk, sdk, "f");
35
43
  __classPrivateFieldSet(this, _GraphQLHealthSpaceManager_logger, loggerProvider.getLogger("GraphQLHealthSpaceManager"), "f");
36
44
  }
@@ -102,5 +110,126 @@ export class GraphQLHealthSpaceManager extends GraphQLManager {
102
110
  return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.cancelationReasons, result.error);
103
111
  });
104
112
  }
113
+ /**
114
+ * Removes a care team member by validating the request and calling the GraphQL mutation.
115
+ *
116
+ * @param request - The RemoveCareTeamMemberRequest containing participant details with member reference and period.
117
+ * @returns A BWellTransactionResult containing the updated CareTeam resource or an error.
118
+ *
119
+ * The method performs the following steps:
120
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
121
+ * 2. Calls the remove care team member mutation using the GraphQL SDK.
122
+ * 3. Handles the transaction result:
123
+ * - If the mutation fails, logs the error and returns a failure result.
124
+ * - If successful, returns a success result with the updated CareTeam resource.
125
+ */
126
+ removeCareTeamMember(request) {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ const validationResult = this.validateRequest(request);
129
+ if (validationResult.failure()) {
130
+ return validationResult.intoFailure();
131
+ }
132
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("calling removeCareTeamMember mutation...");
133
+ // For now, prepare the mutation variables and simulate the transaction pattern
134
+ const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_sdk, "f").removeCareTeamMember(__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_removeCareTeamMember, "f").create(request)));
135
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("removeCareTeamMember mutation completed");
136
+ if (result.failure()) {
137
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").error("removeCareTeamMember mutation error", result);
138
+ return result.intoFailure();
139
+ }
140
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").info("successfully called removeCareTeamMember mutation");
141
+ return BWellTransactionResult.success(result.data());
142
+ });
143
+ }
144
+ /**
145
+ * Adds a care team member by validating the request and calling the GraphQL mutation.
146
+ *
147
+ * @param request - The AddCareTeamMemberRequest containing participant details with member reference and roles.
148
+ * @returns A BWellTransactionResult containing the updated CareTeam resource or an error.
149
+ *
150
+ * The method performs the following steps:
151
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
152
+ * 2. Calls the add care team member mutation using the GraphQL SDK.
153
+ * 3. Handles the transaction result:
154
+ * - If the mutation fails, logs the error and returns a failure result.
155
+ * - If successful, returns a success result with the updated CareTeam resource.
156
+ */
157
+ addCareTeamMember(request) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ const validationResult = this.validateRequest(request);
160
+ if (validationResult.failure()) {
161
+ return validationResult.intoFailure();
162
+ }
163
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("calling addCareTeamMember mutation...");
164
+ const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_sdk, "f").addCareTeamMember(__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_addCareTeamMember, "f").create(request)));
165
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("addCareTeamMember mutation completed");
166
+ if (result.failure()) {
167
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").error("addCareTeamMember mutation error", result);
168
+ return result.intoFailure();
169
+ }
170
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").info("successfully called addCareTeamMember mutation");
171
+ return BWellTransactionResult.success(result.data());
172
+ });
173
+ }
174
+ /**
175
+ * Adds multiple care team members by validating the request and calling the GraphQL mutation.
176
+ *
177
+ * @param request - The AddCareTeamMembersRequest containing multiple participant details.
178
+ * @returns A BWellTransactionResult containing an array with the updated CareTeam resource or an error.
179
+ *
180
+ * The method performs the following steps:
181
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
182
+ * 2. Calls the add care team members mutation using the GraphQL SDK.
183
+ * 3. Handles the transaction result:
184
+ * - If the mutation fails, logs the error and returns a failure result.
185
+ * - If successful, returns a success result with the updated CareTeam resource in an array.
186
+ */
187
+ addCareTeamMembers(request) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ const validationResult = this.validateRequest(request);
190
+ if (validationResult.failure()) {
191
+ return validationResult.intoFailure();
192
+ }
193
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("calling addCareTeamMembers mutation...");
194
+ const mutationVariables = __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_addCareTeamMembers, "f").create(request);
195
+ const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_sdk, "f").addCareTeamMembers(mutationVariables));
196
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("addCareTeamMembers mutation completed");
197
+ if (result.failure()) {
198
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").error("addCareTeamMembers mutation error", result);
199
+ return result.intoFailure();
200
+ }
201
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").info("successfully called addCareTeamMembers mutation");
202
+ return BWellTransactionResult.success(result.data());
203
+ });
204
+ }
205
+ /**
206
+ * Updates a care team member by validating the request and calling the GraphQL mutation.
207
+ *
208
+ * @param request - The UpdateCareTeamMemberRequest containing participant details to update.
209
+ * @returns A BWellTransactionResult containing the updated CareTeam resource or an error.
210
+ *
211
+ * The method performs the following steps:
212
+ * 1. Validates the request. If validation fails, returns a failure result with validation errors.
213
+ * 2. Calls the update care team member mutation using the GraphQL SDK.
214
+ * 3. Handles the transaction result:
215
+ * - If the mutation fails, logs the error and returns a failure result.
216
+ * - If successful, returns a success result with the updated CareTeam resource.
217
+ */
218
+ updateCareTeamMember(request) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const validationResult = this.validateRequest(request);
221
+ if (validationResult.failure()) {
222
+ return validationResult.intoFailure();
223
+ }
224
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("calling updateCareTeamMember mutation...");
225
+ const mutationVariables = __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_updateCareTeamMember, "f").create(request);
226
+ const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLHealthSpaceManager_sdk, "f").updateCareTeamMember(mutationVariables));
227
+ __classPrivateFieldGet(this, _GraphQLHealthSpaceManager_logger, "f").verbose("updateCareTeamMember mutation completed");
228
+ if (result.failure()) {
229
+ return result.intoFailure();
230
+ }
231
+ return BWellTransactionResult.success(result.data());
232
+ });
233
+ }
105
234
  }
106
- _GraphQLHealthSpaceManager_logger = new WeakMap(), _GraphQLHealthSpaceManager_sdk = new WeakMap(), _GraphQLHealthSpaceManager_appointments = new WeakMap(), _GraphQLHealthSpaceManager_cancelAppointment = new WeakMap();
235
+ _GraphQLHealthSpaceManager_logger = new WeakMap(), _GraphQLHealthSpaceManager_sdk = new WeakMap(), _GraphQLHealthSpaceManager_appointments = new WeakMap(), _GraphQLHealthSpaceManager_cancelAppointment = new WeakMap(), _GraphQLHealthSpaceManager_removeCareTeamMember = new WeakMap(), _GraphQLHealthSpaceManager_addCareTeamMember = new WeakMap(), _GraphQLHealthSpaceManager_addCareTeamMembers = new WeakMap(), _GraphQLHealthSpaceManager_updateCareTeamMember = new WeakMap();
@@ -1,3 +1,7 @@
1
1
  export * from "./graphql-health-space-manager.js";
2
2
  export * from "./appointments-request-factory.js";
3
3
  export * from "./cancel-appointment-request-factory.js";
4
+ export * from "./remove-care-team-member-request-factory.js";
5
+ export * from "./add-care-team-member-request-factory.js";
6
+ export * from "./add-care-team-members-request-factory.js";
7
+ export * from "./update-care-team-member-request-factory.js";
@@ -1,3 +1,7 @@
1
1
  export * from "./graphql-health-space-manager.js";
2
2
  export * from "./appointments-request-factory.js";
3
3
  export * from "./cancel-appointment-request-factory.js";
4
+ export * from "./remove-care-team-member-request-factory.js";
5
+ export * from "./add-care-team-member-request-factory.js";
6
+ export * from "./add-care-team-members-request-factory.js";
7
+ export * from "./update-care-team-member-request-factory.js";
@@ -0,0 +1,16 @@
1
+ import { RemoveCareTeamMemberMutationVariables } from "../../../graphql/operations/types.js";
2
+ import { RequestFactory } from "../../../requests/index.js";
3
+ import { RemoveCareTeamMemberRequest } from "../../base/health-space/remove-care-team-member-request.js";
4
+ /**
5
+ * Factory class for transforming RemoveCareTeamMemberRequest objects into GraphQL mutation variables.
6
+ */
7
+ export declare class RemoveCareTeamMemberRequestFactory implements RequestFactory<RemoveCareTeamMemberRequest, RemoveCareTeamMemberMutationVariables> {
8
+ /**
9
+ * Creates GraphQL mutation variables from a RemoveCareTeamMemberRequest.
10
+ * Sets the end date to the current time to mark membership termination.
11
+ *
12
+ * @param request - The RemoveCareTeamMemberRequest to transform
13
+ * @returns RemoveCareTeamMemberMutationVariables suitable for the GraphQL mutation
14
+ */
15
+ create(request: RemoveCareTeamMemberRequest): RemoveCareTeamMemberMutationVariables;
16
+ }
@@ -0,0 +1,24 @@
1
+ import { getCurrentDateTime } from "../../../utils/index.js";
2
+ import { buildCareTeamParticipant } from "./care-team-factory-utils.js";
3
+ /**
4
+ * Factory class for transforming RemoveCareTeamMemberRequest objects into GraphQL mutation variables.
5
+ */
6
+ export class RemoveCareTeamMemberRequestFactory {
7
+ /**
8
+ * Creates GraphQL mutation variables from a RemoveCareTeamMemberRequest.
9
+ * Sets the end date to the current time to mark membership termination.
10
+ *
11
+ * @param request - The RemoveCareTeamMemberRequest to transform
12
+ * @returns RemoveCareTeamMemberMutationVariables suitable for the GraphQL mutation
13
+ */
14
+ create(request) {
15
+ const input = request.data();
16
+ // Use shared participant builder with period.end for remove operation
17
+ const participant = buildCareTeamParticipant(input, {
18
+ end: getCurrentDateTime(),
19
+ });
20
+ return {
21
+ participant,
22
+ };
23
+ }
24
+ }
@@ -0,0 +1,16 @@
1
+ import { UpdateCareTeamMemberMutationVariables } from "../../../graphql/operations/types.js";
2
+ import { RequestFactory } from "../../../requests/index.js";
3
+ import { UpdateCareTeamMemberRequest } from "../../base/health-space/update-care-team-member-request.js";
4
+ /**
5
+ * Factory class for transforming UpdateCareTeamMemberRequest objects into GraphQL mutation variables.
6
+ */
7
+ export declare class UpdateCareTeamMemberRequestFactory implements RequestFactory<UpdateCareTeamMemberRequest, UpdateCareTeamMemberMutationVariables> {
8
+ /**
9
+ * Creates GraphQL mutation variables from an UpdateCareTeamMemberRequest.
10
+ * Preserves existing period information while updating participant details.
11
+ *
12
+ * @param request - The UpdateCareTeamMemberRequest to transform
13
+ * @returns UpdateCareTeamMemberMutationVariables suitable for the GraphQL mutation
14
+ */
15
+ create(request: UpdateCareTeamMemberRequest): UpdateCareTeamMemberMutationVariables;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { buildCareTeamParticipant } from "./care-team-factory-utils.js";
2
+ /**
3
+ * Factory class for transforming UpdateCareTeamMemberRequest objects into GraphQL mutation variables.
4
+ */
5
+ export class UpdateCareTeamMemberRequestFactory {
6
+ /**
7
+ * Creates GraphQL mutation variables from an UpdateCareTeamMemberRequest.
8
+ * Preserves existing period information while updating participant details.
9
+ *
10
+ * @param request - The UpdateCareTeamMemberRequest to transform
11
+ * @returns UpdateCareTeamMemberMutationVariables suitable for the GraphQL mutation
12
+ */
13
+ create(request) {
14
+ const input = request.data();
15
+ const participant = buildCareTeamParticipant(input);
16
+ return {
17
+ participant,
18
+ };
19
+ }
20
+ }
@@ -51,9 +51,9 @@ export declare const CoveragePolicyHolderReferenceFieldsFragmentDoc = "\n fra
51
51
  export declare const HumanNameFieldsFragmentDoc = "\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
52
52
  export declare const PatientFieldsFragmentDoc = "\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 ";
53
53
  export declare const CoverageBeneficiaryReferenceFieldsFragmentDoc = "\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 ";
54
- export declare const CoveragePayorReferenceFieldsFragmentDoc = "\n fragment CoveragePayorReferenceFields on CoveragePayorReference {\n reference\n display\n type\n}\n ";
54
+ export declare const CoveragePayorReferenceFieldsFragmentDoc = "\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 ";
55
55
  export declare const CoverageClassFieldsFragmentDoc = "\n fragment CoverageClassFields on CoverageClass {\n id\n type {\n ...CodeableConceptFields\n }\n value\n name\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
56
- export declare const CoverageFieldsFragmentDoc = "\n fragment CoverageFields on Coverage {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n policyHolder {\n ...CoveragePolicyHolderReferenceFields\n }\n subscriberId\n beneficiary {\n ...CoverageBeneficiaryReferenceFields\n }\n relationship {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n payor {\n ...CoveragePayorReferenceFields\n }\n class {\n ...CoverageClassFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CoveragePolicyHolderReferenceFields on CoveragePolicyHolderReference {\n reference\n display\n type\n}\n \n\n fragment CoverageBeneficiaryReferenceFields on CoverageBeneficiaryReference {\n reference\n display\n type\n 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}\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 ";
56
+ export declare const CoverageFieldsFragmentDoc = "\n fragment CoverageFields on Coverage {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n policyHolder {\n ...CoveragePolicyHolderReferenceFields\n }\n subscriberId\n beneficiary {\n ...CoverageBeneficiaryReferenceFields\n }\n relationship {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n payor {\n ...CoveragePayorReferenceFields\n }\n class {\n ...CoverageClassFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CoveragePolicyHolderReferenceFields on CoveragePolicyHolderReference {\n reference\n display\n type\n}\n \n\n fragment CoverageBeneficiaryReferenceFields on CoverageBeneficiaryReference {\n reference\n display\n type\n 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 ";
57
57
  export declare const MoneyResourceFieldsFragmentDoc = "\n fragment MoneyResourceFields on Money {\n value\n currency\n}\n ";
58
58
  export declare const ExplanationOfBenefitAdjudicationFieldsFragmentDoc = "\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 ";
59
59
  export declare const AttachmentFieldsFragmentDoc = "\n fragment AttachmentFields on Attachment {\n contentType\n data\n url\n title\n}\n ";
@@ -98,8 +98,8 @@ export declare const GetMemberConnectionsDocument = "\n query getMemberConnec
98
98
  export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionId: String!) {\n getOauthUrl(connectionId: $connectionId) {\n redirectUrl\n }\n}\n ";
99
99
  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 ";
100
100
  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 ";
101
- 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}\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 ";
102
- 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 }\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 }\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 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 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 ";
101
+ 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 ";
102
+ 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 ";
103
103
  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 ";
104
104
  export declare const GetFhirDocument = "\n query getFHIR($request: ResourceRequest!) {\n getFHIR(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
105
105
  export declare const GetDiagnosticReportsDocument = "\n query getDiagnosticReports($pageSize: Int = null, $page: Int = null, $id: SearchString = null, $sort: [String] = null) {\n diagnosticReports(\n _count: $pageSize\n _getpagesoffset: $page\n id: $id\n _sort: $sort\n ) {\n entry {\n resource {\n id\n meta {\n ...MetaFields\n }\n basedOn {\n reference\n display\n }\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n effectiveDateTime\n encounter {\n reference\n display\n }\n issued\n performer {\n reference\n display\n }\n presentedForm {\n data\n }\n resourceType\n result {\n ... on DiagnosticReportResultReference {\n display\n reference\n }\n }\n status\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
@@ -134,6 +134,10 @@ export declare const UpdateMedicationStatementDocument = "\n mutation updateM
134
134
  export declare const AppointmentsDocument = "\n query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String], $status: SearchToken) {\n appointments(\n _source: $source\n id: $id\n _count: $count\n _getpagesoffset: $getPagesOffset\n date: $date\n supporting_info: $supportingInformation\n _sort: $sort\n status: $status\n ) {\n entry {\n resource {\n id\n status\n meta {\n ...MetaFields\n }\n cancelationReason {\n ...CodeableConceptFields\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 serviceType {\n ...CodeableConceptFields\n }\n start\n end\n supportingInformation {\n id\n reference\n display\n }\n participant {\n id\n type {\n ...CodeableConceptFields\n }\n actor {\n reference\n resource {\n ... on Location {\n resourceType\n __typename\n id\n name\n description\n identifier {\n ...IdentifierFields\n }\n telecom {\n id\n system\n value\n }\n address {\n ...AddressFields\n }\n position {\n latitude\n longitude\n }\n managingOrganization {\n reference\n }\n }\n ... on RelatedPerson {\n __typename\n resourceType\n identifier {\n ...IdentifierFields\n }\n relationship {\n ...CodeableConceptFields\n }\n telecom {\n ...ContactPointFields\n }\n personName: name {\n ...HumanNameFields\n }\n gender\n birthDate\n }\n ... on Practitioner {\n __typename\n practitionerId: id\n practitionerName: name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n telecom {\n ...ContactPointFields\n }\n practitionerAddress: address {\n ...AddressFields\n }\n }\n }\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 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 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 ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
135
135
  export declare const CancelAppointmentDocument = "\n mutation cancelAppointment($appointment: UpdateAppointmentInput!) {\n updateAppointment(appointment: $appointment) {\n id\n status\n }\n}\n ";
136
136
  export declare const CancelationReasonsDocument = "\n query cancelationReasons($organization: SearchReference!) {\n cancelationReasons(organization: $organization) {\n id\n title\n url\n concept {\n code\n display\n }\n }\n}\n ";
137
+ export declare const AddCareTeamMemberDocument = "\n mutation addCareTeamMember($participant: CareTeamParticipantInput!) {\n updateCareTeamMember(participant: [$participant]) {\n id\n }\n}\n ";
138
+ export declare const AddCareTeamMembersDocument = "\n mutation addCareTeamMembers($participant: [CareTeamParticipantInput]!) {\n updateCareTeamMember(participant: $participant) {\n id\n }\n}\n ";
139
+ export declare const RemoveCareTeamMemberDocument = "\n mutation removeCareTeamMember($participant: CareTeamParticipantInput!) {\n updateCareTeamMember(participant: [$participant]) {\n id\n }\n}\n ";
140
+ export declare const UpdateCareTeamMemberDocument = "\n mutation updateCareTeamMember($participant: CareTeamParticipantInput!) {\n updateCareTeamMember(participant: [$participant]) {\n id\n }\n}\n ";
137
141
  export declare const AuthenticateDocument = "\n query authenticate {\n getToken {\n accessToken {\n jwtToken\n }\n idToken {\n jwtToken\n }\n refreshToken {\n token\n }\n }\n}\n ";
138
142
  export declare const CreateGuestAccessTokenDocument = "\n mutation createGuestAccessToken($clientKey: String!) {\n createGuestAccessToken(clientKey: $clientKey) {\n accessToken\n refreshToken\n identityToken\n tokenType\n issuedAt\n expiresIn\n }\n}\n ";
139
143
  export declare const ExchangeAuthCodeDocument = "\n mutation ExchangeAuthCode($authCode: String!) {\n exchangeAuthCode(authCode: $authCode) {\n accessToken {\n jwtToken\n }\n idToken {\n jwtToken\n }\n refreshToken {\n token\n }\n }\n}\n ";
@@ -480,6 +484,34 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
480
484
  headers: Headers;
481
485
  status: number;
482
486
  }>;
487
+ addCareTeamMember(variables: Types.AddCareTeamMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
488
+ data: Types.AddCareTeamMemberMutationResults;
489
+ errors?: GraphQLError[];
490
+ extensions?: any;
491
+ headers: Headers;
492
+ status: number;
493
+ }>;
494
+ addCareTeamMembers(variables: Types.AddCareTeamMembersMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
495
+ data: Types.AddCareTeamMembersMutationResults;
496
+ errors?: GraphQLError[];
497
+ extensions?: any;
498
+ headers: Headers;
499
+ status: number;
500
+ }>;
501
+ removeCareTeamMember(variables: Types.RemoveCareTeamMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
502
+ data: Types.RemoveCareTeamMemberMutationResults;
503
+ errors?: GraphQLError[];
504
+ extensions?: any;
505
+ headers: Headers;
506
+ status: number;
507
+ }>;
508
+ updateCareTeamMember(variables: Types.UpdateCareTeamMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
509
+ data: Types.UpdateCareTeamMemberMutationResults;
510
+ errors?: GraphQLError[];
511
+ extensions?: any;
512
+ headers: Headers;
513
+ status: number;
514
+ }>;
483
515
  authenticate(variables?: Types.AuthenticateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
484
516
  data: Types.AuthenticateQueryResults;
485
517
  errors?: GraphQLError[];
@@ -554,8 +554,26 @@ export const CoveragePayorReferenceFieldsFragmentDoc = `
554
554
  reference
555
555
  display
556
556
  type
557
+ resource {
558
+ ... on Organization {
559
+ __typename
560
+ organizationName: name
561
+ }
562
+ ... on RelatedPerson {
563
+ __typename
564
+ name {
565
+ ...HumanNameFields
566
+ }
567
+ }
568
+ ... on Patient {
569
+ __typename
570
+ name {
571
+ ...HumanNameFields
572
+ }
573
+ }
574
+ }
557
575
  }
558
- `;
576
+ ${HumanNameFieldsFragmentDoc}`;
559
577
  export const CoverageClassFieldsFragmentDoc = `
560
578
  fragment CoverageClassFields on CoverageClass {
561
579
  id
@@ -1859,6 +1877,9 @@ export const GetExplanationOfBenefitsDocument = `
1859
1877
  reference
1860
1878
  type
1861
1879
  display
1880
+ resource {
1881
+ ...PatientFields
1882
+ }
1862
1883
  }
1863
1884
  adjudication {
1864
1885
  ...ExplanationOfBenefitAdjudicationFields
@@ -1878,6 +1899,19 @@ export const GetExplanationOfBenefitsDocument = `
1878
1899
  reference
1879
1900
  type
1880
1901
  display
1902
+ resource {
1903
+ ... on Practitioner {
1904
+ __typename
1905
+ ...PractitionerFields
1906
+ }
1907
+ ... on Organization {
1908
+ __typename
1909
+ organizationName: name
1910
+ meta {
1911
+ ...MetaFields
1912
+ }
1913
+ }
1914
+ }
1881
1915
  }
1882
1916
  related {
1883
1917
  relationship {
@@ -2040,8 +2074,10 @@ export const GetExplanationOfBenefitsDocument = `
2040
2074
  ${MetaFieldsFragmentDoc}
2041
2075
  ${IdentifierFieldsFragmentDoc}
2042
2076
  ${CodeableConceptFieldsFragmentDoc}
2077
+ ${PatientFieldsFragmentDoc}
2043
2078
  ${ExplanationOfBenefitAdjudicationFieldsFragmentDoc}
2044
2079
  ${PeriodFieldsFragmentDoc}
2080
+ ${PractitionerFieldsFragmentDoc}
2045
2081
  ${QuantityFieldsFragmentDoc}
2046
2082
  ${AttachmentFieldsFragmentDoc}
2047
2083
  ${CodingFieldsFragmentDoc}
@@ -3357,6 +3393,34 @@ export const CancelationReasonsDocument = `
3357
3393
  }
3358
3394
  }
3359
3395
  `;
3396
+ export const AddCareTeamMemberDocument = `
3397
+ mutation addCareTeamMember($participant: CareTeamParticipantInput!) {
3398
+ updateCareTeamMember(participant: [$participant]) {
3399
+ id
3400
+ }
3401
+ }
3402
+ `;
3403
+ export const AddCareTeamMembersDocument = `
3404
+ mutation addCareTeamMembers($participant: [CareTeamParticipantInput]!) {
3405
+ updateCareTeamMember(participant: $participant) {
3406
+ id
3407
+ }
3408
+ }
3409
+ `;
3410
+ export const RemoveCareTeamMemberDocument = `
3411
+ mutation removeCareTeamMember($participant: CareTeamParticipantInput!) {
3412
+ updateCareTeamMember(participant: [$participant]) {
3413
+ id
3414
+ }
3415
+ }
3416
+ `;
3417
+ export const UpdateCareTeamMemberDocument = `
3418
+ mutation updateCareTeamMember($participant: CareTeamParticipantInput!) {
3419
+ updateCareTeamMember(participant: [$participant]) {
3420
+ id
3421
+ }
3422
+ }
3423
+ `;
3360
3424
  export const AuthenticateDocument = `
3361
3425
  query authenticate {
3362
3426
  getToken {
@@ -4171,6 +4235,18 @@ export function getSdk(client, withWrapper = defaultWrapper) {
4171
4235
  cancelationReasons(variables, requestHeaders) {
4172
4236
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(CancelationReasonsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'cancelationReasons', 'query', variables);
4173
4237
  },
4238
+ addCareTeamMember(variables, requestHeaders) {
4239
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(AddCareTeamMemberDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'addCareTeamMember', 'mutation', variables);
4240
+ },
4241
+ addCareTeamMembers(variables, requestHeaders) {
4242
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(AddCareTeamMembersDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'addCareTeamMembers', 'mutation', variables);
4243
+ },
4244
+ removeCareTeamMember(variables, requestHeaders) {
4245
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(RemoveCareTeamMemberDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'removeCareTeamMember', 'mutation', variables);
4246
+ },
4247
+ updateCareTeamMember(variables, requestHeaders) {
4248
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateCareTeamMemberDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateCareTeamMember', 'mutation', variables);
4249
+ },
4174
4250
  authenticate(variables, requestHeaders) {
4175
4251
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(AuthenticateDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'authenticate', 'query', variables);
4176
4252
  },