@icanbwell/bwell-sdk-ts 1.45.0 → 1.46.0-rc.1764109541

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.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export declare const VERSION = "1.45.0";
4
+ export declare const VERSION = "1.46.0-rc.1764109541";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export const VERSION = "1.45.0";
4
+ export const VERSION = "1.46.0-rc.1764109541";
@@ -1,5 +1,5 @@
1
- import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetBinaryQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetCareTeamsQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDiagnosticReportLabGroupsQueryResults, GetDiagnosticReportsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationPricingQueryResults, GetMedicationStatementsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, GetVitalSignsQueryResults } from "../../../graphql/operations/types.js";
2
- import type { BWellQueryResult } from "../../../results/index.js";
1
+ import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetBinaryQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetCareTeamsQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDiagnosticReportLabGroupsQueryResults, GetDiagnosticReportsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationPricingQueryResults, GetMedicationStatementsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, GetVitalSignsQueryResults, UpdateMedicationStatementMutationResults } from "../../../graphql/operations/types.js";
2
+ import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
3
3
  import { MedicationDispenseResultsType } from "../../graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js";
4
4
  import { MedicationRequestResultsType } from "../../graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js";
5
5
  import type { BaseManagerError } from "../errors.js";
@@ -7,6 +7,7 @@ import { AllergyIntoleranceGroupsRequest, AllergyIntolerancesRequest, BinaryRequ
7
7
  import { LabKnowledgeRequest } from "./lab-knowledge-request.js";
8
8
  import { MedicationKnowledgeRequest } from "./medication-knowledge-request.js";
9
9
  import { MedicationPricingRequest } from "./medication-pricing-request.js";
10
+ import { UpdateMedicationStatementRequest } from "./medication-statement-request.js";
10
11
  type HealthSummaryResultsType = GetHealthSummaryQueryResults["getHealthSummary"];
11
12
  export interface HealthSummaryResults extends HealthSummaryResultsType {
12
13
  }
@@ -79,6 +80,9 @@ export interface MedicationRequestResults extends MedicationRequestResultsType {
79
80
  type MedicationStatementsResultsType = GetMedicationStatementsQueryResults["getMedicationStatements"];
80
81
  export interface MedicationStatementsResults extends MedicationStatementsResultsType {
81
82
  }
83
+ type UpdateMedicationStatementMutationResultsType = UpdateMedicationStatementMutationResults["updateMedicationStatement"];
84
+ export interface UpdateMedicationStatementResult extends UpdateMedicationStatementMutationResultsType {
85
+ }
82
86
  type MedicationKnowledgeResultsType = GetMedicationKnowledgeQueryResults["getMedicationKnowledge"];
83
87
  export interface MedicationKnowledgeResults extends MedicationKnowledgeResultsType {
84
88
  }
@@ -299,6 +303,13 @@ export interface HealthManager {
299
303
  * @returns {Promise<BWellQueryResult<MedicationStatementsResults>>} A promise resolving to an object representing the list of medication statements retrieved.
300
304
  */
301
305
  getMedicationStatements(request?: MedicationStatementsRequest): Promise<BWellQueryResult<MedicationStatementsResults>>;
306
+ /**
307
+ * Updates a medication statement resource.
308
+ *
309
+ * @param {UpdateMedicationStatementRequest} request The request object specifying the medication statement to update and the fields to update.
310
+ * @returns {Promise<BWellQueryResult<UpdateMedicationStatementResult>>} A promise resolving to the result of the update operation.
311
+ */
312
+ updateMedicationStatement(request: UpdateMedicationStatementRequest): Promise<BWellTransactionResult<UpdateMedicationStatementResult, BaseManagerError>>;
302
313
  /**
303
314
  * Retrieves a list of medication groups resources.
304
315
  *
@@ -2,4 +2,5 @@ export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceG
2
2
  export { MedicationPricingRequest, MedicationPricingRequestInput, } from "./medication-pricing-request.js";
3
3
  export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
4
4
  export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
5
- export { HealthSummaryResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, BinaryResults, ConditionsResults, ConditionGroupsResults, DiagnosticReportsResults, DocumentReferencesResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, CareTeamsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, MedicationDispenseResults, MedicationRequestResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, MedicationPricingResults, DiagnosticReportLabGroupsResults, } from "./health-manager.js";
5
+ export { UpdateMedicationStatementRequest, UpdateMedicationStatementInput, UpdateMedicationStatementStatus, } from "./medication-statement-request.js";
6
+ export { HealthSummaryResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, BinaryResults, ConditionsResults, ConditionGroupsResults, DiagnosticReportsResults, DocumentReferencesResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, CareTeamsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, MedicationDispenseResults, MedicationRequestResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, MedicationPricingResults, DiagnosticReportLabGroupsResults, UpdateMedicationStatementResult, } from "./health-manager.js";
@@ -2,3 +2,4 @@ export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, BinaryRequ
2
2
  export { MedicationPricingRequest, } from "./medication-pricing-request.js";
3
3
  export { MedicationKnowledgeRequest, } from "./medication-knowledge-request.js";
4
4
  export { LabKnowledgeRequest, } from "./lab-knowledge-request.js";
5
+ export { UpdateMedicationStatementRequest, UpdateMedicationStatementStatus, } from "./medication-statement-request.js";
@@ -0,0 +1,29 @@
1
+ import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
2
+ /**
3
+ * Enum representing possible statuses for updating a medication statement.
4
+ */
5
+ export declare enum UpdateMedicationStatementStatus {
6
+ Active = "ACTIVE",
7
+ Completed = "COMPLETED"
8
+ }
9
+ /**
10
+ * Input type for updating a medication statement.
11
+ * - `id`: The unique identifier of the medication statement.
12
+ * - `status`: The new status to set for the medication statement.
13
+ */
14
+ export type UpdateMedicationStatementInput = {
15
+ id: string;
16
+ status?: UpdateMedicationStatementStatus;
17
+ };
18
+ /**
19
+ * Validator for update medication statement requests.
20
+ */
21
+ export declare class UpdateMedicationStatementRequestValidator implements Validator<UpdateMedicationStatementInput> {
22
+ validate(data: UpdateMedicationStatementInput, errors: ErrorsCollector): void;
23
+ }
24
+ /**
25
+ * Request object for updating medication statement.
26
+ */
27
+ export declare class UpdateMedicationStatementRequest extends ValidationRequest<UpdateMedicationStatementInput> {
28
+ protected validator: UpdateMedicationStatementRequestValidator;
29
+ }
@@ -0,0 +1,35 @@
1
+ import { ValidationRequest, } from "../../../requests/index.js";
2
+ import { isNullOrUndefined, isNullOrUndefinedOrEmptyString, } from "../../../utils/index.js";
3
+ /**
4
+ * Enum representing possible statuses for updating a medication statement.
5
+ */
6
+ export var UpdateMedicationStatementStatus;
7
+ (function (UpdateMedicationStatementStatus) {
8
+ UpdateMedicationStatementStatus["Active"] = "ACTIVE";
9
+ UpdateMedicationStatementStatus["Completed"] = "COMPLETED";
10
+ })(UpdateMedicationStatementStatus || (UpdateMedicationStatementStatus = {}));
11
+ /**
12
+ * Validator for update medication statement requests.
13
+ */
14
+ export class UpdateMedicationStatementRequestValidator {
15
+ validate(data, errors) {
16
+ if (isNullOrUndefined(data)) {
17
+ errors.add("input must be provided.");
18
+ }
19
+ if (isNullOrUndefinedOrEmptyString(data.id)) {
20
+ errors.add("id must be a non-empty string.");
21
+ }
22
+ if (isNullOrUndefined(data.status)) {
23
+ errors.add("status is required.");
24
+ }
25
+ }
26
+ }
27
+ /**
28
+ * Request object for updating medication statement.
29
+ */
30
+ export class UpdateMedicationStatementRequest extends ValidationRequest {
31
+ constructor() {
32
+ super(...arguments);
33
+ this.validator = new UpdateMedicationStatementRequestValidator();
34
+ }
35
+ }
@@ -1,3 +1,4 @@
1
+ export { SearchContextEnum } from "../../../graphql/schema.js";
1
2
  export type { SearchResults, RequestConnectionResults, SearchManager, SearchHealthResourcesResults, } from "./search-manager.js";
2
3
  export { SearchRequest, SearchRequestInput, FilterField, OrganizationType, OrderBy, SortOrder, SortField, SearchPosition, } from "./search-request.js";
3
4
  export { RequestConnectionRequestInput, RequestConnectionRequest, } from "./request-connection-request.js";
@@ -1,3 +1,4 @@
1
+ export { SearchContextEnum } from "../../../graphql/schema.js";
1
2
  export { SearchRequest, } from "./search-request.js";
2
3
  export { RequestConnectionRequest, } from "./request-connection-request.js";
3
4
  export { SearchHealthResourcesRequest, } from "./search-health-resources-request.js";
@@ -1,5 +1,6 @@
1
1
  import { ClientInput, FilterField as GraphQLFilterField, OrganizationType as GraphQLOrganizationType, SortField as GraphQLSortField, SortOrder as GraphQLSortOrder, OrderByInput, SearchFiltersInput, SearchLocation, UserInput } from "../../../graphql/schema.js";
2
2
  import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
3
+ import { SearchContextEnum } from "./index.js";
3
4
  /**
4
5
  * Type representing the search filters for health resources.
5
6
  */
@@ -55,7 +56,7 @@ export type SearchHealthResourcesRequestInput = PagedRequestInput & {
55
56
  /**
56
57
  * The client configuration to search for health resources.
57
58
  */
58
- client: [ClientInput];
59
+ client?: [ClientInput];
59
60
  /**
60
61
  * The filters to apply to the search.
61
62
  */
@@ -77,6 +78,11 @@ export type SearchHealthResourcesRequestInput = PagedRequestInput & {
77
78
  * The user for whom the search is being performed.
78
79
  */
79
80
  user?: UserInput;
81
+ /**
82
+ * Defines the context in which a search is being performed, which determines
83
+ * which configurations are applied to the search results.
84
+ */
85
+ searchContext?: SearchContextEnum;
80
86
  };
81
87
  /**
82
88
  * Request for searching health resources.
@@ -1,6 +1,6 @@
1
1
  import { BWellError, ValidationError } from "../../../errors/index.js";
2
2
  import { LoggerProvider } from "../../../logger/index.js";
3
- import { BWellQueryResult } from "../../../results/index.js";
3
+ import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
4
4
  import { BaseManagerError } from "../../base/errors.js";
5
5
  import * as health from "../../base/health-data/index.js";
6
6
  import { HealthManager } from "../../base/index.js";
@@ -9,13 +9,14 @@ import type { GraphQLSdk } from "../graphql-sdk/index.js";
9
9
  import { GraphQLGetDiagnosticReportRequestFactory } from "./graphql-diagnostic-reports-bwell-request-factory.js";
10
10
  import { GraphQLGetMedicationDispenseBWellResponseFactory } from "./graphql-get-medication-dispense-bwell-response-factory.js";
11
11
  import { GraphQLGetMedicationRequestBWellResponseFactory } from "./graphql-get-medication-request-bwell-response-factory.js";
12
+ import { GraphqlUpdateMedicationStatementRequestFactory } from "./graphql-update-medication-statement-request-factory.js";
12
13
  export type RenameKey<T, OldKey extends string, NewKey extends string> = T extends unknown[] ? RenameKeyInArray<T, OldKey, NewKey> : T extends object ? {
13
14
  [K in keyof T as K extends OldKey ? NewKey : K]: RenameKey<T[K], OldKey, NewKey>;
14
15
  } : T;
15
16
  export type RenameKeyInArray<T extends unknown[], OldKey extends string, NewKey extends string> = Array<RenameKey<T[number], OldKey, NewKey>>;
16
17
  export declare class GraphQLHealthManager extends GraphQLManager implements HealthManager {
17
18
  #private;
18
- constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, medicationRequestResponseFactory?: GraphQLGetMedicationRequestBWellResponseFactory, medicationDispenseResponseFactory?: GraphQLGetMedicationDispenseBWellResponseFactory, diagnosticReportRequestFactory?: GraphQLGetDiagnosticReportRequestFactory);
19
+ constructor(sdk: GraphQLSdk, loggerProvider?: LoggerProvider, medicationRequestResponseFactory?: GraphQLGetMedicationRequestBWellResponseFactory, medicationDispenseResponseFactory?: GraphQLGetMedicationDispenseBWellResponseFactory, diagnosticReportRequestFactory?: GraphQLGetDiagnosticReportRequestFactory, updateMedicationStatementRequestFactory?: GraphqlUpdateMedicationStatementRequestFactory);
19
20
  getHealthSummary(): Promise<BWellQueryResult<health.HealthSummaryResults, BaseManagerError>>;
20
21
  getAllergyIntolerances(request?: health.AllergyIntolerancesRequest): Promise<BWellQueryResult<health.AllergyIntolerancesResults, ValidationError | BaseManagerError>>;
21
22
  getAllergyIntoleranceGroups(request?: health.AllergyIntoleranceGroupsRequest): Promise<BWellQueryResult<health.AllergyIntolerancesGroupsResults, ValidationError | BaseManagerError>>;
@@ -40,6 +41,7 @@ export declare class GraphQLHealthManager extends GraphQLManager implements Heal
40
41
  getMedicationDispense(request?: health.MedicationDispenseRequest): Promise<BWellQueryResult<health.MedicationDispenseResults, ValidationError | BaseManagerError>>;
41
42
  getMedicationRequest(request?: health.MedicationRequestRequest): Promise<BWellQueryResult<health.MedicationRequestResults, ValidationError | BaseManagerError>>;
42
43
  getMedicationStatements(request?: health.MedicationStatementsRequest): Promise<BWellQueryResult<health.MedicationStatementsResults, ValidationError | BaseManagerError>>;
44
+ updateMedicationStatement(request: health.UpdateMedicationStatementRequest): Promise<BWellTransactionResult<health.UpdateMedicationStatementResult, ValidationError | BaseManagerError>>;
43
45
  getMedicationGroups(request?: health.MedicationGroupsRequest): Promise<BWellQueryResult<health.MedicationGroupsResults, ValidationError | BaseManagerError>>;
44
46
  getMedicationKnowledge(request: health.MedicationKnowledgeRequest): Promise<BWellQueryResult<health.MedicationKnowledgeResults, ValidationError | BaseManagerError>>;
45
47
  getLabKnowledge(request: health.LabKnowledgeRequest): Promise<BWellQueryResult<health.LabKnowledgeResults, ValidationError | BaseManagerError>>;
@@ -18,26 +18,29 @@ 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 _GraphQLHealthManager_sdk, _GraphQLHealthManager_logger, _GraphQLHealthManager_medicationRequestResponseFactory, _GraphQLHealthManager_medicationDispenseResponseFactory, _GraphQLHealthManager_diagnosticReportRequestFactory;
21
+ var _GraphQLHealthManager_sdk, _GraphQLHealthManager_logger, _GraphQLHealthManager_medicationRequestResponseFactory, _GraphQLHealthManager_medicationDispenseResponseFactory, _GraphQLHealthManager_diagnosticReportRequestFactory, _GraphQLHealthManager_updateMedicationStatementRequestFactory;
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
  import { GraphQLGetDiagnosticReportRequestFactory } from "./graphql-diagnostic-reports-bwell-request-factory.js";
26
26
  import { GraphQLGetMedicationDispenseBWellResponseFactory } from "./graphql-get-medication-dispense-bwell-response-factory.js";
27
27
  import { GraphQLGetMedicationRequestBWellResponseFactory } from "./graphql-get-medication-request-bwell-response-factory.js";
28
+ import { GraphqlUpdateMedicationStatementRequestFactory } from "./graphql-update-medication-statement-request-factory.js";
28
29
  export class GraphQLHealthManager extends GraphQLManager {
29
- constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), medicationRequestResponseFactory = new GraphQLGetMedicationRequestBWellResponseFactory(), medicationDispenseResponseFactory = new GraphQLGetMedicationDispenseBWellResponseFactory(), diagnosticReportRequestFactory = new GraphQLGetDiagnosticReportRequestFactory()) {
30
+ constructor(sdk, loggerProvider = new ConsoleLoggerProvider(), medicationRequestResponseFactory = new GraphQLGetMedicationRequestBWellResponseFactory(), medicationDispenseResponseFactory = new GraphQLGetMedicationDispenseBWellResponseFactory(), diagnosticReportRequestFactory = new GraphQLGetDiagnosticReportRequestFactory(), updateMedicationStatementRequestFactory = new GraphqlUpdateMedicationStatementRequestFactory()) {
30
31
  super();
31
32
  _GraphQLHealthManager_sdk.set(this, void 0);
32
33
  _GraphQLHealthManager_logger.set(this, void 0);
33
34
  _GraphQLHealthManager_medicationRequestResponseFactory.set(this, void 0);
34
35
  _GraphQLHealthManager_medicationDispenseResponseFactory.set(this, void 0);
35
36
  _GraphQLHealthManager_diagnosticReportRequestFactory.set(this, void 0);
37
+ _GraphQLHealthManager_updateMedicationStatementRequestFactory.set(this, void 0);
36
38
  __classPrivateFieldSet(this, _GraphQLHealthManager_sdk, sdk, "f");
37
39
  __classPrivateFieldSet(this, _GraphQLHealthManager_logger, loggerProvider.getLogger("GraphQLHealthManager"), "f");
38
40
  __classPrivateFieldSet(this, _GraphQLHealthManager_medicationRequestResponseFactory, medicationRequestResponseFactory, "f");
39
41
  __classPrivateFieldSet(this, _GraphQLHealthManager_medicationDispenseResponseFactory, medicationDispenseResponseFactory, "f");
40
42
  __classPrivateFieldSet(this, _GraphQLHealthManager_diagnosticReportRequestFactory, diagnosticReportRequestFactory, "f");
43
+ __classPrivateFieldSet(this, _GraphQLHealthManager_updateMedicationStatementRequestFactory, updateMedicationStatementRequestFactory, "f");
41
44
  }
42
45
  getHealthSummary() {
43
46
  return __awaiter(this, void 0, void 0, function* () {
@@ -458,6 +461,22 @@ export class GraphQLHealthManager extends GraphQLManager {
458
461
  return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getMedicationStatements, result.error);
459
462
  });
460
463
  }
464
+ updateMedicationStatement(request) {
465
+ return __awaiter(this, void 0, void 0, function* () {
466
+ const validationResult = this.validateRequest(request);
467
+ if (validationResult.failure()) {
468
+ return validationResult.intoFailure();
469
+ }
470
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling updateMedicationStatement...");
471
+ const result = yield this.handleTransaction(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").updateMedicationStatement(__classPrivateFieldGet(this, _GraphQLHealthManager_updateMedicationStatementRequestFactory, "f").create(request)));
472
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("updateMedicationStatement complete");
473
+ if (result.failure()) {
474
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("updateMedicationStatement failed", result.error);
475
+ return result.intoFailure();
476
+ }
477
+ return BWellTransactionResult.success(result.data().updateMedicationStatement);
478
+ });
479
+ }
461
480
  getMedicationGroups(request) {
462
481
  return __awaiter(this, void 0, void 0, function* () {
463
482
  var _a, _b;
@@ -549,4 +568,4 @@ export class GraphQLHealthManager extends GraphQLManager {
549
568
  });
550
569
  }
551
570
  }
552
- _GraphQLHealthManager_sdk = new WeakMap(), _GraphQLHealthManager_logger = new WeakMap(), _GraphQLHealthManager_medicationRequestResponseFactory = new WeakMap(), _GraphQLHealthManager_medicationDispenseResponseFactory = new WeakMap(), _GraphQLHealthManager_diagnosticReportRequestFactory = new WeakMap();
571
+ _GraphQLHealthManager_sdk = new WeakMap(), _GraphQLHealthManager_logger = new WeakMap(), _GraphQLHealthManager_medicationRequestResponseFactory = new WeakMap(), _GraphQLHealthManager_medicationDispenseResponseFactory = new WeakMap(), _GraphQLHealthManager_diagnosticReportRequestFactory = new WeakMap(), _GraphQLHealthManager_updateMedicationStatementRequestFactory = new WeakMap();
@@ -0,0 +1,6 @@
1
+ import * as Types from "../../../graphql/operations/types.js";
2
+ import { RequestFactory } from "../../../requests/index.js";
3
+ import { UpdateMedicationStatementRequest } from "../../base/index.js";
4
+ export declare class GraphqlUpdateMedicationStatementRequestFactory implements RequestFactory<UpdateMedicationStatementRequest, Types.UpdateMedicationStatementMutationVariables> {
5
+ create(request: UpdateMedicationStatementRequest): Types.UpdateMedicationStatementMutationVariables;
6
+ }
@@ -0,0 +1,11 @@
1
+ export class GraphqlUpdateMedicationStatementRequestFactory {
2
+ create(request) {
3
+ const data = request.data();
4
+ return {
5
+ input: {
6
+ id: data.id,
7
+ status: data.status,
8
+ },
9
+ };
10
+ }
11
+ }
@@ -13,6 +13,7 @@ export class SearchHealthResourcesRequestFactory {
13
13
  return {
14
14
  searchInput: {
15
15
  client: input.client,
16
+ searchContext: input.searchContext,
16
17
  filters: (_a = input.filters) !== null && _a !== void 0 ? _a : null,
17
18
  orderBy: (_b = input.orderBy) !== null && _b !== void 0 ? _b : null,
18
19
  paging: {
@@ -127,6 +127,7 @@ export declare const GetMedicationKnowledgeDocument = "\n query getMedication
127
127
  export declare const GetMedicationPricingDocument = "\n query getMedicationPricing($request: MedicationPricingRequest) {\n getMedicationPricing(request: $request) {\n resources {\n pharmacy\n couponUrl\n drugUrl\n price {\n ...MoneyResourceFields\n }\n }\n }\n}\n \n fragment MoneyResourceFields on Money {\n value\n currency\n}\n ";
128
128
  export declare const GetMedicationRequestDocument = "\n query getMedicationRequest($request: MedicationRequestQueryRequest) {\n getMedicationRequest(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n resourceType\n id\n meta {\n ...MetaFields\n }\n status {\n code\n display\n }\n category {\n ...CodeableConceptFields\n }\n identifier {\n ...IdentifierFields\n }\n intent {\n code\n display\n }\n language\n medicationCodeableConcept {\n ...CodeableConceptFields\n }\n medicationReference {\n ...MedicationReferenceFields\n }\n medication {\n ...MedicationReferenceResourceFields\n }\n text {\n ...NarrativeFields\n }\n subject {\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n }\n requester {\n ... on Practitioner {\n ...PractitionerFields\n }\n }\n recorder {\n ... on Practitioner {\n ...PractitionerFields\n }\n }\n encounter {\n ...EncounterFields\n }\n authoredOn\n dosageInstruction {\n ...DosageFields\n }\n dispenseRequest {\n ...MedicationDispenseFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n courseOfTherapyType {\n ...CodeableConceptFields\n }\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment 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 MedicationReferenceFields on USCoreMedicationProfile {\n resourceType\n identifier {\n ...IdentifierFields\n }\n form {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\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 MedicationReferenceResourceFields on MedicationReference {\n resource {\n ...MedicationFields\n }\n}\n \n fragment MedicationFields on Medication {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n code {\n ...CodeableConceptFields\n }\n ingredient {\n ...MedicationIngredientFields\n }\n form {\n ...CodeableConceptFields\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 MedicationIngredientFields on MedicationIngredient {\n itemCodeableConcept {\n ...CodeableConceptFields\n }\n strength {\n ...RatioFields\n }\n itemReference {\n ...MedicationIngredientItemReferenceResourceFields\n }\n isActive\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 RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment MedicationIngredientItemReferenceResourceFields on MedicationIngredientItemReferenceReference {\n itemReferenceResource: resource {\n ...MedicationIngredientItemReferenceFields\n }\n}\n \n fragment MedicationIngredientItemReferenceFields on MedicationIngredientItemReference {\n ... on Medication {\n ...MedicationIngredientItemReferenceMedicationFields\n }\n ... on Substance {\n ...MedicationIngredientItemReferenceSubstanceFields\n }\n}\n \n fragment MedicationIngredientItemReferenceMedicationFields on Medication {\n resourceType\n identifier {\n ...IdentifierFields\n }\n code {\n ...CodeableConceptFields\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 MedicationIngredientItemReferenceSubstanceFields on Substance {\n resourceType\n id\n text {\n ...NarrativeFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n description\n instance {\n ...SubstanceInstanceFields\n }\n}\n \n fragment NarrativeFields on Narrative {\n div\n status\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 SubstanceInstanceFields on SubstanceInstance {\n identifier {\n ...IdentifierFields\n }\n expiry\n quantity {\n ...QuantityFields\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 NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\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 EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\n resourceType\n text {\n ...NarrativeFields\n }\n encounterLocations: locations {\n location {\n ...LocationFields\n }\n status\n physicalType {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n }\n identifier {\n ...IdentifierFields\n }\n type {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n participant {\n ...ParticipantFields\n }\n period {\n ...PeriodFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n class {\n system\n code\n display\n }\n location {\n ...LocationFields\n }\n serviceProvider {\n name\n endpoint {\n name\n status\n connectionType {\n system\n code\n display\n }\n address\n }\n }\n subject {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n language {\n ...CodeableConceptFields\n }\n }\n }\n reasonReference {\n ...ConditionFields\n }\n hospitalization {\n dischargeDisposition {\n ...CodeableConceptFields\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 NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment LocationFields on Location {\n name\n identifier {\n ...IdentifierFields\n }\n alias\n description\n address {\n ...AddressFields\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n ...ContactPointFields\n }\n type {\n ...CodeableConceptFields\n }\n status\n managingOrganization {\n ...LocationManagingOrganizationReferenceFields\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 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 LocationManagingOrganizationReferenceFields on LocationManagingOrganizationReference {\n id\n reference\n identifier {\n ...IdentifierFields\n }\n display\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 PeriodFields on Period {\n start\n end\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 ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\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 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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ConditionFields on ConditionResource {\n id\n meta {\n ...MetaFields\n }\n code {\n ...CodeableConceptFields\n }\n clinicalStatus {\n ...CodeableConceptFields\n }\n onsetDateTime\n recordedDate\n recorder {\n ...RecorderFields\n }\n note {\n authorString\n time\n text\n }\n onsetPeriod {\n ...PeriodFields\n }\n abatementDateTime\n abatementPeriod {\n ...PeriodFields\n }\n category {\n ...CodeableConceptFields\n }\n severity {\n ...CodeableConceptFields\n }\n verificationStatus {\n ...CodeableConceptFields\n }\n bodySite {\n ...CodeableConceptFields\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 RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment DosageFields on Dosage {\n id\n additionalInstruction {\n ...CodeableConceptFields\n }\n asNeededBoolean\n asNeededCodeableConcept {\n ...CodeableConceptFields\n }\n doseAndRate {\n ...DoseAndRateFields\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n ...RatioFields\n }\n method {\n ...CodeableConceptFields\n }\n patientInstruction\n route {\n ...CodeableConceptFields\n }\n sequence\n site {\n ...CodeableConceptFields\n }\n text\n timing {\n ...TimingFields\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 DoseAndRateFields on DoseAndRate {\n id\n type {\n ...CodeableConceptFields\n }\n doseRange {\n ...RangeFields\n }\n doseQuantity {\n ...QuantityFields\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n ...RangeFields\n }\n rateRatio {\n ...RatioFields\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 RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\n ...TimingRepeatFields\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 TimingRepeatFields on TimingRepeat {\n id\n boundsDuration {\n ...QuantityFields\n }\n boundsPeriod {\n ...PeriodFields\n }\n boundsRange {\n ...RangeFields\n }\n count\n countMax\n dayOfWeek {\n code\n display\n }\n duration\n durationMax\n durationUnit {\n code\n display\n }\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit {\n display\n code\n }\n timeOfDay\n when {\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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment MedicationDispenseFields on DispenseRequest {\n id\n dispenseInterval {\n ...QuantityFields\n }\n expectedSupplyDuration {\n ...QuantityFields\n }\n initialFill {\n ...InitialFillFields\n }\n numberOfRepeatsAllowed\n performer {\n name\n }\n validityPeriod {\n ...PeriodFields\n }\n quantity {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment InitialFillFields on InitialFill {\n duration {\n ...QuantityFields\n }\n quantity {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
129
129
  export declare const GetMedicationStatementsDocument = "\n query getMedicationStatements($request: MedicationStatementQueryRequest) {\n getMedicationStatements(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n meta {\n ...MetaFields\n }\n status {\n code\n display\n }\n medication {\n ...CodeableConceptFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n authoredOn\n requester {\n ...ActorFields\n }\n effectiveDate {\n start\n end\n }\n dosageInstruction {\n ...DosageFields\n }\n dispenseRequest {\n id\n dispenseInterval {\n ...QuantityFields\n }\n expectedSupplyDuration {\n ...QuantityFields\n }\n initialFill {\n duration {\n ...QuantityFields\n }\n quantity {\n ...QuantityFields\n }\n }\n numberOfRepeatsAllowed\n performer {\n name\n }\n validityPeriod {\n start\n end\n }\n quantity {\n ...QuantityFields\n }\n }\n source\n derivedFrom {\n reference\n type\n }\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment 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 ActorFields on Actor {\n __typename\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Organization {\n organizationName: name\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 DosageFields on Dosage {\n id\n additionalInstruction {\n ...CodeableConceptFields\n }\n asNeededBoolean\n asNeededCodeableConcept {\n ...CodeableConceptFields\n }\n doseAndRate {\n ...DoseAndRateFields\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n ...RatioFields\n }\n method {\n ...CodeableConceptFields\n }\n patientInstruction\n route {\n ...CodeableConceptFields\n }\n sequence\n site {\n ...CodeableConceptFields\n }\n text\n timing {\n ...TimingFields\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 DoseAndRateFields on DoseAndRate {\n id\n type {\n ...CodeableConceptFields\n }\n doseRange {\n ...RangeFields\n }\n doseQuantity {\n ...QuantityFields\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n ...RangeFields\n }\n rateRatio {\n ...RatioFields\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 RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\n ...TimingRepeatFields\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 TimingRepeatFields on TimingRepeat {\n id\n boundsDuration {\n ...QuantityFields\n }\n boundsPeriod {\n ...PeriodFields\n }\n boundsRange {\n ...RangeFields\n }\n count\n countMax\n dayOfWeek {\n code\n display\n }\n duration\n durationMax\n durationUnit {\n code\n display\n }\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit {\n display\n code\n }\n timeOfDay\n when {\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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
130
+ export declare const UpdateMedicationStatementDocument = "\n mutation updateMedicationStatement($input: MedicationStatementInput!) {\n updateMedicationStatement(input: $input) {\n id\n status\n }\n}\n ";
130
131
  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 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 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 }\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 \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 ";
131
132
  export declare const CancelAppointmentDocument = "\n mutation cancelAppointment($appointment: UpdateAppointmentInput!) {\n updateAppointment(appointment: $appointment) {\n id\n status\n }\n}\n ";
132
133
  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 ";
@@ -142,7 +143,7 @@ export declare const GetQuestionnairesDocument = "\n query getQuestionnaires(
142
143
  export declare const SaveQuestionnaireResponseDocument = "\n mutation saveQuestionnaireResponse($questionnaireResponse: QuestionnaireResponseInput!) {\n saveQuestionnaireResponse(input: $questionnaireResponse) {\n ...QuestionnaireResponseFields\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 }\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 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 }\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 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 ";
143
144
  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 ";
144
145
  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 ";
145
- 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 specialty {\n code\n system\n display\n }\n location {\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 }\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 }\n }\n}\n ";
146
+ 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 specialty {\n code\n system\n display\n }\n bookable {\n online\n phone\n }\n location {\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 }\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 }\n }\n}\n ";
146
147
  export declare const CreateConsentDocument = "\n mutation createConsent($consentInput: ConsentInput!) {\n createConsent(consentInput: $consentInput) {\n id\n meta {\n source\n versionId\n lastUpdated\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n }\n status\n scope {\n coding {\n code\n system\n display\n }\n text\n }\n category {\n coding {\n code\n system\n display\n }\n text\n }\n patient {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n dateTime\n performer {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n organization {\n reference\n identifier {\n id\n system\n value\n }\n type\n display\n }\n policy {\n authority\n uri\n }\n policyRule {\n coding {\n code\n system\n display\n }\n text\n }\n provision {\n type\n period {\n ...PeriodFields\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
147
148
  export declare const CreateDataExportDirectDownloadUrlDocument = "\n mutation CreateDataExportDirectDownloadUrl($exportId: String!, $password: String!) {\n createDataExportDirectDownloadUrl(exportId: $exportId, password: $password)\n}\n ";
148
149
  export declare const CreateVerificationUrlDocument = "\n mutation CreateVerificationUrl($callbackURL: String, $includeAttributeMatchingCheck: Boolean) {\n createVerificationUrl(\n callbackURL: $callbackURL\n includeAttributeMatchingCheck: $includeAttributeMatchingCheck\n )\n}\n ";
@@ -440,6 +441,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
440
441
  headers: Headers;
441
442
  status: number;
442
443
  }>;
444
+ updateMedicationStatement(variables: Types.UpdateMedicationStatementMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
445
+ data: Types.UpdateMedicationStatementMutationResults;
446
+ errors?: GraphQLError[];
447
+ extensions?: any;
448
+ headers: Headers;
449
+ status: number;
450
+ }>;
443
451
  appointments(variables?: Types.AppointmentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
444
452
  data: Types.AppointmentsQueryResults;
445
453
  errors?: GraphQLError[];
@@ -2941,6 +2941,14 @@ ${CodeableConceptFieldsFragmentDoc}
2941
2941
  ${ActorFieldsFragmentDoc}
2942
2942
  ${DosageFieldsFragmentDoc}
2943
2943
  ${QuantityFieldsFragmentDoc}`;
2944
+ export const UpdateMedicationStatementDocument = `
2945
+ mutation updateMedicationStatement($input: MedicationStatementInput!) {
2946
+ updateMedicationStatement(input: $input) {
2947
+ id
2948
+ status
2949
+ }
2950
+ }
2951
+ `;
2944
2952
  export const AppointmentsDocument = `
2945
2953
  query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String], $status: SearchToken) {
2946
2954
  appointments(
@@ -3426,7 +3434,21 @@ export const SearchHealthResourcesDocument = `
3426
3434
  system
3427
3435
  display
3428
3436
  }
3437
+ bookable {
3438
+ online
3439
+ phone
3440
+ }
3429
3441
  location {
3442
+ scheduling {
3443
+ identifier {
3444
+ value
3445
+ system
3446
+ }
3447
+ bookable {
3448
+ online
3449
+ phone
3450
+ }
3451
+ }
3430
3452
  name
3431
3453
  address {
3432
3454
  line
@@ -3821,6 +3843,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
3821
3843
  getMedicationStatements(variables, requestHeaders) {
3822
3844
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationStatementsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationStatements', 'query', variables);
3823
3845
  },
3846
+ updateMedicationStatement(variables, requestHeaders) {
3847
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateMedicationStatementDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateMedicationStatement', 'mutation', variables);
3848
+ },
3824
3849
  appointments(variables, requestHeaders) {
3825
3850
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(AppointmentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'appointments', 'query', variables);
3826
3851
  },
@@ -17588,6 +17588,15 @@ export type GetMedicationStatementsQueryResults = {
17588
17588
  }>;
17589
17589
  };
17590
17590
  };
17591
+ export type UpdateMedicationStatementMutationVariables = Types.Exact<{
17592
+ input: Types.MedicationStatementInput;
17593
+ }>;
17594
+ export type UpdateMedicationStatementMutationResults = {
17595
+ updateMedicationStatement: {
17596
+ id: string;
17597
+ status: any | null;
17598
+ };
17599
+ };
17591
17600
  export type AppointmentsQueryVariables = Types.Exact<{
17592
17601
  source: Types.InputMaybe<Types.SearchString>;
17593
17602
  id: Types.InputMaybe<Types.SearchString>;
@@ -21504,9 +21513,23 @@ export type SearchHealthResourcesQueryResults = {
21504
21513
  system: string | null;
21505
21514
  display: string | null;
21506
21515
  } | null> | null;
21516
+ bookable: {
21517
+ online: boolean | null;
21518
+ phone: boolean | null;
21519
+ } | null;
21507
21520
  location: Array<{
21508
21521
  name: string | null;
21509
21522
  distanceInMiles: number | null;
21523
+ scheduling: {
21524
+ identifier: Array<{
21525
+ value: string | null;
21526
+ system: string | null;
21527
+ } | null> | null;
21528
+ bookable: {
21529
+ online: boolean | null;
21530
+ phone: boolean | null;
21531
+ } | null;
21532
+ } | null;
21510
21533
  address: {
21511
21534
  line: Array<string | null> | null;
21512
21535
  city: string | null;
@@ -491,6 +491,7 @@ export type BootstrapConfiguration = {
491
491
  frontendEnvironment: FrontendEnvironment;
492
492
  googleGeo: GoogleGeo;
493
493
  jwksKid: Scalars['String']['output'];
494
+ mcp: McpMap;
494
495
  prefetchAssets: PrefetchAssets;
495
496
  telemetry: Telemetry;
496
497
  userProfileSvcUrl: Scalars['String']['output'];
@@ -1832,7 +1833,9 @@ export type ExplanationOfBenefit = {
1832
1833
  patient?: Maybe<ExplanationOfBenefitPatientReference>;
1833
1834
  payee?: Maybe<ExplanationOfBenefitPayee>;
1834
1835
  payment?: Maybe<ExplanationOfBenefitPayment>;
1836
+ processNote?: Maybe<Array<Maybe<ExplanationOfBenefitProcessNote>>>;
1835
1837
  provider?: Maybe<ExplanationOfBenefitProviderReference>;
1838
+ related?: Maybe<Array<Maybe<ExplanationOfBenefitRelated>>>;
1836
1839
  resourceType?: Maybe<Scalars['String']['output']>;
1837
1840
  status?: Maybe<Scalars['Code']['output']>;
1838
1841
  subType?: Maybe<CodeableConcept>;
@@ -1845,6 +1848,7 @@ export type ExplanationOfBenefitAdjudication = {
1845
1848
  __typename?: 'ExplanationOfBenefitAdjudication';
1846
1849
  amount?: Maybe<Money>;
1847
1850
  category?: Maybe<CodeableConcept>;
1851
+ id?: Maybe<Scalars['String']['output']>;
1848
1852
  reason?: Maybe<CodeableConcept>;
1849
1853
  value?: Maybe<Scalars['Float']['output']>;
1850
1854
  };
@@ -1863,7 +1867,9 @@ export type ExplanationOfBenefitBundleEntry = {
1863
1867
  };
1864
1868
  export type ExplanationOfBenefitCareTeam = {
1865
1869
  __typename?: 'ExplanationOfBenefitCareTeam';
1870
+ id?: Maybe<Scalars['String']['output']>;
1866
1871
  provider?: Maybe<ExplanationOfBenefitCareTeamProviderReference>;
1872
+ qualification?: Maybe<CodeableConcept>;
1867
1873
  role?: Maybe<CodeableConcept>;
1868
1874
  sequence?: Maybe<Scalars['Int']['output']>;
1869
1875
  };
@@ -1877,6 +1883,7 @@ export type ExplanationOfBenefitDiagnosis = {
1877
1883
  __typename?: 'ExplanationOfBenefitDiagnosis';
1878
1884
  diagnosisCodeableConcept?: Maybe<CodeableConcept>;
1879
1885
  diagnosisReference?: Maybe<ExplanationOfBenefitDiagnosisDiagnosisReferenceReference>;
1886
+ id?: Maybe<Scalars['String']['output']>;
1880
1887
  onAdmission?: Maybe<CodeableConcept>;
1881
1888
  packageCode?: Maybe<CodeableConcept>;
1882
1889
  sequence?: Maybe<Scalars['Int']['output']>;
@@ -1908,9 +1915,18 @@ export type ExplanationOfBenefitInsurerReference = {
1908
1915
  export type ExplanationOfBenefitItem = {
1909
1916
  __typename?: 'ExplanationOfBenefitItem';
1910
1917
  adjudication?: Maybe<Array<Maybe<ExplanationOfBenefitAdjudication>>>;
1918
+ bodySite?: Maybe<CodeableConcept>;
1919
+ id?: Maybe<Scalars['String']['output']>;
1920
+ locationCodeableConcept?: Maybe<CodeableConcept>;
1921
+ modifier?: Maybe<Array<Maybe<CodeableConcept>>>;
1922
+ net?: Maybe<Money>;
1911
1923
  noteNumber?: Maybe<Array<Maybe<Scalars['Int']['output']>>>;
1912
1924
  productOrService?: Maybe<CodeableConcept>;
1925
+ quantity?: Maybe<Quantity>;
1926
+ revenue?: Maybe<CodeableConcept>;
1913
1927
  sequence?: Maybe<Scalars['Int']['output']>;
1928
+ servicedDate?: Maybe<Scalars['Date']['output']>;
1929
+ servicedPeriod?: Maybe<Period>;
1914
1930
  };
1915
1931
  export type ExplanationOfBenefitPatientReference = {
1916
1932
  __typename?: 'ExplanationOfBenefitPatientReference';
@@ -1938,14 +1954,25 @@ export type ExplanationOfBenefitPayment = {
1938
1954
  adjustmentReason?: Maybe<CodeableConcept>;
1939
1955
  amount?: Maybe<Money>;
1940
1956
  date?: Maybe<Scalars['Date']['output']>;
1957
+ id?: Maybe<Scalars['String']['output']>;
1941
1958
  type?: Maybe<CodeableConcept>;
1942
1959
  };
1960
+ export type ExplanationOfBenefitProcessNote = {
1961
+ __typename?: 'ExplanationOfBenefitProcessNote';
1962
+ text?: Maybe<Scalars['String']['output']>;
1963
+ type?: Maybe<Scalars['Code']['output']>;
1964
+ };
1943
1965
  export type ExplanationOfBenefitProviderReference = {
1944
1966
  __typename?: 'ExplanationOfBenefitProviderReference';
1945
1967
  display?: Maybe<Scalars['String']['output']>;
1946
1968
  reference?: Maybe<Scalars['String']['output']>;
1947
1969
  type?: Maybe<Scalars['URI']['output']>;
1948
1970
  };
1971
+ export type ExplanationOfBenefitRelated = {
1972
+ __typename?: 'ExplanationOfBenefitRelated';
1973
+ reference?: Maybe<Identifier>;
1974
+ relationship?: Maybe<CodeableConcept>;
1975
+ };
1949
1976
  export type ExplanationOfBenefitSupportingInfo = {
1950
1977
  __typename?: 'ExplanationOfBenefitSupportingInfo';
1951
1978
  category?: Maybe<CodeableConcept>;
@@ -2795,6 +2822,13 @@ export type LocationManagingOrganizationReference = {
2795
2822
  identifier?: Maybe<Identifier>;
2796
2823
  reference?: Maybe<Scalars['String']['output']>;
2797
2824
  };
2825
+ export type LocationQueryResults = {
2826
+ __typename?: 'LocationQueryResults';
2827
+ resources: Array<Location>;
2828
+ };
2829
+ export type LocationsRequest = {
2830
+ ids: Array<Scalars['UUID']['input']>;
2831
+ };
2798
2832
  export type LogInResponse = {
2799
2833
  __typename?: 'LogInResponse';
2800
2834
  accessToken: AccessTokenPayload;
@@ -2812,6 +2846,10 @@ export type Logging = {
2812
2846
  __typename?: 'Logging';
2813
2847
  enabled: Scalars['Boolean']['output'];
2814
2848
  };
2849
+ export type McpMap = {
2850
+ __typename?: 'McpMap';
2851
+ bailey: Scalars['String']['output'];
2852
+ };
2815
2853
  export type MedStatementCodeableConceptResource = {
2816
2854
  __typename?: 'MedStatementCodeableConceptResource';
2817
2855
  medicationCodeableConcept?: Maybe<CodeableConcept>;
@@ -3042,6 +3080,32 @@ export type MedicationRequestQueryResults = PagedQueryResults & {
3042
3080
  paging_info?: Maybe<PagingResults>;
3043
3081
  resources: Array<MedicationRequest>;
3044
3082
  };
3083
+ export type MedicationStatement = {
3084
+ __typename?: 'MedicationStatement';
3085
+ /** Unique identifier for the medication statement */
3086
+ id: Scalars['ID']['output'];
3087
+ resourceType?: Maybe<Scalars['String']['output']>;
3088
+ status?: Maybe<Scalars['Code']['output']>;
3089
+ };
3090
+ export type MedicationStatementBundle = {
3091
+ __typename?: 'MedicationStatementBundle';
3092
+ entry?: Maybe<Array<Maybe<MedicationStatementBundleEntry>>>;
3093
+ };
3094
+ export type MedicationStatementBundleEntry = {
3095
+ __typename?: 'MedicationStatementBundleEntry';
3096
+ resource?: Maybe<MedicationStatement>;
3097
+ };
3098
+ /**
3099
+ * Input type for updating a MedicationStatement resource.
3100
+ * All fields are optional except for id.
3101
+ * Based on FHIR R4B MedicationStatement profile.
3102
+ */
3103
+ export type MedicationStatementInput = {
3104
+ /** The logical id of the resource (required) */
3105
+ id: Scalars['ID']['input'];
3106
+ /** Status of the statement: active | completed */
3107
+ status?: InputMaybe<UpdateMedicationStatementStatus>;
3108
+ };
3045
3109
  export type MedicationStatementQueryRequest = {
3046
3110
  groupCode?: InputMaybe<SearchToken>;
3047
3111
  ids?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -3408,6 +3472,15 @@ export type Mutation = {
3408
3472
  updateAppointment: Appointment;
3409
3473
  updateCareTeamMember: CareTeam;
3410
3474
  updateDeviceRegistration?: Maybe<OperationOutcome>;
3475
+ /**
3476
+ * Updates a MedicationStatement resource.
3477
+ *
3478
+ * All fields in the input are optional except for the id field.
3479
+ * Only the fields provided in the input will be updated.
3480
+ *
3481
+ * Returns the updated MedicationStatement resource.
3482
+ */
3483
+ updateMedicationStatement: MedicationStatement;
3411
3484
  updatePersonAndPatient?: Maybe<UpdatedPersonMetadata>;
3412
3485
  updatePersonDetails: Array<UpdatePersonDetailsOutput>;
3413
3486
  updatePersonWithClientId?: Maybe<PersonWithMetadata>;
@@ -3592,6 +3665,9 @@ export type MutationUpdateCareTeamMemberArgs = {
3592
3665
  export type MutationUpdateDeviceRegistrationArgs = {
3593
3666
  input: UpdateDeviceRegistrationRequest;
3594
3667
  };
3668
+ export type MutationUpdateMedicationStatementArgs = {
3669
+ input: MedicationStatementInput;
3670
+ };
3595
3671
  export type MutationUpdatePersonAndPatientArgs = {
3596
3672
  bwellPersonId?: InputMaybe<Scalars['String']['input']>;
3597
3673
  clientPersonId?: InputMaybe<Scalars['String']['input']>;
@@ -3906,6 +3982,10 @@ export type Organization = {
3906
3982
  /** The kind(s) of organization (e.g., hospital, clinic, manufacturer) as coded concepts. */
3907
3983
  type?: Maybe<Array<CodeableConcept>>;
3908
3984
  };
3985
+ export type OrganizationQueryResults = {
3986
+ __typename?: 'OrganizationQueryResults';
3987
+ resources: Array<Organization>;
3988
+ };
3909
3989
  export declare enum OrganizationType {
3910
3990
  C19Vaccine = "C19Vaccine",
3911
3991
  Device = "Device",
@@ -3959,6 +4039,9 @@ export type OrganizationTypeNew = {
3959
4039
  endpoint?: Maybe<Array<Maybe<EndpointType>>>;
3960
4040
  name?: Maybe<Scalars['String']['output']>;
3961
4041
  };
4042
+ export type OrganizationsRequest = {
4043
+ ids: Array<Scalars['UUID']['input']>;
4044
+ };
3962
4045
  /** All queries that return a list of resources return a type that implements this interface. */
3963
4046
  export type PagedQueryResults = {
3964
4047
  paging_info?: Maybe<PagingResults>;
@@ -4291,12 +4374,30 @@ export type Position = {
4291
4374
  /** Type representing a practitioner with a human name */
4292
4375
  export type Practitioner = {
4293
4376
  __typename?: 'Practitioner';
4377
+ /** Whether this practitioner's record is in active use. */
4378
+ active?: Maybe<Scalars['Boolean']['output']>;
4379
+ /**
4380
+ * Address(es) of the practitioner that are not role specific (typically home
4381
+ * address).
4382
+ * Work addresses are not typically entered in this property as they are usually
4383
+ * role dependent.
4384
+ */
4385
+ address?: Maybe<Array<Maybe<Address>>>;
4294
4386
  id?: Maybe<Scalars['ID']['output']>;
4295
4387
  /** The identifier of the practitioner. */
4296
4388
  identifier?: Maybe<Array<Maybe<Identifier>>>;
4297
4389
  /** The human name of the practitioner */
4298
4390
  name?: Maybe<Array<Maybe<HumanName>>>;
4299
4391
  resourceType?: Maybe<Scalars['String']['output']>;
4392
+ /**
4393
+ * A contact detail for the practitioner, e.g. a telephone number or an email
4394
+ * address.
4395
+ */
4396
+ telecom?: Maybe<Array<Maybe<ContactPoint>>>;
4397
+ };
4398
+ export type PractitionerQueryResults = {
4399
+ __typename?: 'PractitionerQueryResults';
4400
+ resources: Array<Practitioner>;
4300
4401
  };
4301
4402
  /** A reference to a practitioner who may be involved in an encounter. */
4302
4403
  export type PractitionerReference = {
@@ -4323,6 +4424,16 @@ export type PractitionerRole = {
4323
4424
  specialty?: Maybe<Array<CodeableConcept>>;
4324
4425
  telecom?: Maybe<Array<Maybe<ContactPoint>>>;
4325
4426
  };
4427
+ export type PractitionerRoleQueryResults = {
4428
+ __typename?: 'PractitionerRoleQueryResults';
4429
+ resources: Array<PractitionerRole>;
4430
+ };
4431
+ export type PractitionersRequest = {
4432
+ ids: Array<Scalars['UUID']['input']>;
4433
+ };
4434
+ export type PractitionersRoleRequest = {
4435
+ ids: Array<Scalars['UUID']['input']>;
4436
+ };
4326
4437
  export type PrefetchAssets = {
4327
4438
  __typename?: 'PrefetchAssets';
4328
4439
  translations: PrefetchTranslations;
@@ -4798,10 +4909,14 @@ export type Query = {
4798
4909
  goals?: Maybe<GoalBundle>;
4799
4910
  healthLinks?: Maybe<Array<DocumentReference>>;
4800
4911
  initSdk: SdkConfiguration;
4912
+ locations: LocationQueryResults;
4801
4913
  login: LogInResponse;
4914
+ organizations: OrganizationQueryResults;
4802
4915
  patients?: Maybe<PatientBundle>;
4803
4916
  person?: Maybe<Person>;
4804
4917
  placeholderQuery?: Maybe<Scalars['String']['output']>;
4918
+ practitionerRoles: PractitionerRoleQueryResults;
4919
+ practitioners: PractitionerQueryResults;
4805
4920
  profile?: Maybe<Profile>;
4806
4921
  provenances?: Maybe<ProvenanceBundle>;
4807
4922
  /**
@@ -5044,10 +5159,16 @@ export type QueryInitSdkArgs = {
5044
5159
  clientKey: Scalars['String']['input'];
5045
5160
  organizationId?: InputMaybe<Scalars['String']['input']>;
5046
5161
  };
5162
+ export type QueryLocationsArgs = {
5163
+ request: LocationsRequest;
5164
+ };
5047
5165
  export type QueryLoginArgs = {
5048
5166
  email: Scalars['String']['input'];
5049
5167
  password: Scalars['String']['input'];
5050
5168
  };
5169
+ export type QueryOrganizationsArgs = {
5170
+ request: OrganizationsRequest;
5171
+ };
5051
5172
  export type QueryPatientsArgs = {
5052
5173
  _count?: InputMaybe<Scalars['Int']['input']>;
5053
5174
  _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
@@ -5059,6 +5180,12 @@ export type QueryPatientsArgs = {
5059
5180
  export type QueryPersonArgs = {
5060
5181
  id: Scalars['ID']['input'];
5061
5182
  };
5183
+ export type QueryPractitionerRolesArgs = {
5184
+ request: PractitionersRoleRequest;
5185
+ };
5186
+ export type QueryPractitionersArgs = {
5187
+ request: PractitionersRequest;
5188
+ };
5062
5189
  export type QueryProfileArgs = {
5063
5190
  id: Scalars['ID']['input'];
5064
5191
  };
@@ -5797,8 +5924,8 @@ export type SdkConfiguration = {
5797
5924
  * which configurations and filters are applied to the search results.
5798
5925
  */
5799
5926
  export declare enum SearchContextEnum {
5800
- CareSearch = "CARE_SEARCH",
5801
- Proa = "PROA"
5927
+ DataConnections = "DATA_CONNECTIONS",
5928
+ FindCare = "FIND_CARE"
5802
5929
  }
5803
5930
  export type SearchDate = {
5804
5931
  missing?: InputMaybe<Scalars['Boolean']['input']>;
@@ -6529,6 +6656,16 @@ export type UpdateDeviceRegistrationRequest = {
6529
6656
  notificationPreference: Scalars['Boolean']['input'];
6530
6657
  platform?: InputMaybe<Scalars['String']['input']>;
6531
6658
  };
6659
+ export type UpdateMedicationStatementResponse = {
6660
+ __typename?: 'UpdateMedicationStatementResponse';
6661
+ id: Scalars['ID']['output'];
6662
+ resourceType: Scalars['String']['output'];
6663
+ status?: Maybe<Scalars['String']['output']>;
6664
+ };
6665
+ export declare enum UpdateMedicationStatementStatus {
6666
+ Active = "ACTIVE",
6667
+ Completed = "COMPLETED"
6668
+ }
6532
6669
  export type UpdateTaskStatusInput = {
6533
6670
  id: Scalars['String']['input'];
6534
6671
  status: TaskStatus;
@@ -6692,6 +6829,7 @@ export type Zendesk = {
6692
6829
  };
6693
6830
  export type UpdatePersonDetailsOutput = {
6694
6831
  __typename?: 'updatePersonDetailsOutput';
6832
+ empiType: Scalars['String']['output'];
6695
6833
  id: Scalars['String']['output'];
6696
6834
  resourceType: Scalars['String']['output'];
6697
6835
  };
@@ -359,8 +359,8 @@ export var ResourceType;
359
359
  */
360
360
  export var SearchContextEnum;
361
361
  (function (SearchContextEnum) {
362
- SearchContextEnum["CareSearch"] = "CARE_SEARCH";
363
- SearchContextEnum["Proa"] = "PROA";
362
+ SearchContextEnum["DataConnections"] = "DATA_CONNECTIONS";
363
+ SearchContextEnum["FindCare"] = "FIND_CARE";
364
364
  })(SearchContextEnum || (SearchContextEnum = {}));
365
365
  export var SearchResultTypeEnum;
366
366
  (function (SearchResultTypeEnum) {
@@ -440,6 +440,11 @@ export var TotalType;
440
440
  TotalType["Accurate"] = "accurate";
441
441
  TotalType["Estimate"] = "estimate";
442
442
  })(TotalType || (TotalType = {}));
443
+ export var UpdateMedicationStatementStatus;
444
+ (function (UpdateMedicationStatementStatus) {
445
+ UpdateMedicationStatementStatus["Active"] = "ACTIVE";
446
+ UpdateMedicationStatementStatus["Completed"] = "COMPLETED";
447
+ })(UpdateMedicationStatementStatus || (UpdateMedicationStatementStatus = {}));
443
448
  /** Error codes for verification failures */
444
449
  export var VerificationErrorCode;
445
450
  (function (VerificationErrorCode) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.45.0",
3
+ "version": "1.46.0-rc.1764109541",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",