@icanbwell/bwell-sdk-ts 1.46.0 → 1.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.46.0";
4
+ export declare const VERSION = "1.47.0";
@@ -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.46.0";
4
+ export const VERSION = "1.47.0";
@@ -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,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
+ }
@@ -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 ";
@@ -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(
@@ -3835,6 +3843,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
3835
3843
  getMedicationStatements(variables, requestHeaders) {
3836
3844
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationStatementsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationStatements', 'query', variables);
3837
3845
  },
3846
+ updateMedicationStatement(variables, requestHeaders) {
3847
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateMedicationStatementDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateMedicationStatement', 'mutation', variables);
3848
+ },
3838
3849
  appointments(variables, requestHeaders) {
3839
3850
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(AppointmentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'appointments', 'query', variables);
3840
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>;
@@ -1833,7 +1833,9 @@ export type ExplanationOfBenefit = {
1833
1833
  patient?: Maybe<ExplanationOfBenefitPatientReference>;
1834
1834
  payee?: Maybe<ExplanationOfBenefitPayee>;
1835
1835
  payment?: Maybe<ExplanationOfBenefitPayment>;
1836
+ processNote?: Maybe<Array<Maybe<ExplanationOfBenefitProcessNote>>>;
1836
1837
  provider?: Maybe<ExplanationOfBenefitProviderReference>;
1838
+ related?: Maybe<Array<Maybe<ExplanationOfBenefitRelated>>>;
1837
1839
  resourceType?: Maybe<Scalars['String']['output']>;
1838
1840
  status?: Maybe<Scalars['Code']['output']>;
1839
1841
  subType?: Maybe<CodeableConcept>;
@@ -1846,6 +1848,7 @@ export type ExplanationOfBenefitAdjudication = {
1846
1848
  __typename?: 'ExplanationOfBenefitAdjudication';
1847
1849
  amount?: Maybe<Money>;
1848
1850
  category?: Maybe<CodeableConcept>;
1851
+ id?: Maybe<Scalars['String']['output']>;
1849
1852
  reason?: Maybe<CodeableConcept>;
1850
1853
  value?: Maybe<Scalars['Float']['output']>;
1851
1854
  };
@@ -1864,7 +1867,9 @@ export type ExplanationOfBenefitBundleEntry = {
1864
1867
  };
1865
1868
  export type ExplanationOfBenefitCareTeam = {
1866
1869
  __typename?: 'ExplanationOfBenefitCareTeam';
1870
+ id?: Maybe<Scalars['String']['output']>;
1867
1871
  provider?: Maybe<ExplanationOfBenefitCareTeamProviderReference>;
1872
+ qualification?: Maybe<CodeableConcept>;
1868
1873
  role?: Maybe<CodeableConcept>;
1869
1874
  sequence?: Maybe<Scalars['Int']['output']>;
1870
1875
  };
@@ -1878,6 +1883,7 @@ export type ExplanationOfBenefitDiagnosis = {
1878
1883
  __typename?: 'ExplanationOfBenefitDiagnosis';
1879
1884
  diagnosisCodeableConcept?: Maybe<CodeableConcept>;
1880
1885
  diagnosisReference?: Maybe<ExplanationOfBenefitDiagnosisDiagnosisReferenceReference>;
1886
+ id?: Maybe<Scalars['String']['output']>;
1881
1887
  onAdmission?: Maybe<CodeableConcept>;
1882
1888
  packageCode?: Maybe<CodeableConcept>;
1883
1889
  sequence?: Maybe<Scalars['Int']['output']>;
@@ -1909,9 +1915,18 @@ export type ExplanationOfBenefitInsurerReference = {
1909
1915
  export type ExplanationOfBenefitItem = {
1910
1916
  __typename?: 'ExplanationOfBenefitItem';
1911
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>;
1912
1923
  noteNumber?: Maybe<Array<Maybe<Scalars['Int']['output']>>>;
1913
1924
  productOrService?: Maybe<CodeableConcept>;
1925
+ quantity?: Maybe<Quantity>;
1926
+ revenue?: Maybe<CodeableConcept>;
1914
1927
  sequence?: Maybe<Scalars['Int']['output']>;
1928
+ servicedDate?: Maybe<Scalars['Date']['output']>;
1929
+ servicedPeriod?: Maybe<Period>;
1915
1930
  };
1916
1931
  export type ExplanationOfBenefitPatientReference = {
1917
1932
  __typename?: 'ExplanationOfBenefitPatientReference';
@@ -1939,14 +1954,25 @@ export type ExplanationOfBenefitPayment = {
1939
1954
  adjustmentReason?: Maybe<CodeableConcept>;
1940
1955
  amount?: Maybe<Money>;
1941
1956
  date?: Maybe<Scalars['Date']['output']>;
1957
+ id?: Maybe<Scalars['String']['output']>;
1942
1958
  type?: Maybe<CodeableConcept>;
1943
1959
  };
1960
+ export type ExplanationOfBenefitProcessNote = {
1961
+ __typename?: 'ExplanationOfBenefitProcessNote';
1962
+ text?: Maybe<Scalars['String']['output']>;
1963
+ type?: Maybe<Scalars['Code']['output']>;
1964
+ };
1944
1965
  export type ExplanationOfBenefitProviderReference = {
1945
1966
  __typename?: 'ExplanationOfBenefitProviderReference';
1946
1967
  display?: Maybe<Scalars['String']['output']>;
1947
1968
  reference?: Maybe<Scalars['String']['output']>;
1948
1969
  type?: Maybe<Scalars['URI']['output']>;
1949
1970
  };
1971
+ export type ExplanationOfBenefitRelated = {
1972
+ __typename?: 'ExplanationOfBenefitRelated';
1973
+ reference?: Maybe<Identifier>;
1974
+ relationship?: Maybe<CodeableConcept>;
1975
+ };
1950
1976
  export type ExplanationOfBenefitSupportingInfo = {
1951
1977
  __typename?: 'ExplanationOfBenefitSupportingInfo';
1952
1978
  category?: Maybe<CodeableConcept>;
@@ -2796,6 +2822,13 @@ export type LocationManagingOrganizationReference = {
2796
2822
  identifier?: Maybe<Identifier>;
2797
2823
  reference?: Maybe<Scalars['String']['output']>;
2798
2824
  };
2825
+ export type LocationQueryResults = {
2826
+ __typename?: 'LocationQueryResults';
2827
+ resources: Array<Location>;
2828
+ };
2829
+ export type LocationsRequest = {
2830
+ ids: Array<Scalars['UUID']['input']>;
2831
+ };
2799
2832
  export type LogInResponse = {
2800
2833
  __typename?: 'LogInResponse';
2801
2834
  accessToken: AccessTokenPayload;
@@ -3051,6 +3084,16 @@ export type MedicationStatement = {
3051
3084
  __typename?: 'MedicationStatement';
3052
3085
  /** Unique identifier for the medication statement */
3053
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>;
3054
3097
  };
3055
3098
  /**
3056
3099
  * Input type for updating a MedicationStatement resource.
@@ -3939,6 +3982,10 @@ export type Organization = {
3939
3982
  /** The kind(s) of organization (e.g., hospital, clinic, manufacturer) as coded concepts. */
3940
3983
  type?: Maybe<Array<CodeableConcept>>;
3941
3984
  };
3985
+ export type OrganizationQueryResults = {
3986
+ __typename?: 'OrganizationQueryResults';
3987
+ resources: Array<Organization>;
3988
+ };
3942
3989
  export declare enum OrganizationType {
3943
3990
  C19Vaccine = "C19Vaccine",
3944
3991
  Device = "Device",
@@ -3992,6 +4039,9 @@ export type OrganizationTypeNew = {
3992
4039
  endpoint?: Maybe<Array<Maybe<EndpointType>>>;
3993
4040
  name?: Maybe<Scalars['String']['output']>;
3994
4041
  };
4042
+ export type OrganizationsRequest = {
4043
+ ids: Array<Scalars['UUID']['input']>;
4044
+ };
3995
4045
  /** All queries that return a list of resources return a type that implements this interface. */
3996
4046
  export type PagedQueryResults = {
3997
4047
  paging_info?: Maybe<PagingResults>;
@@ -4324,12 +4374,30 @@ export type Position = {
4324
4374
  /** Type representing a practitioner with a human name */
4325
4375
  export type Practitioner = {
4326
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>>>;
4327
4386
  id?: Maybe<Scalars['ID']['output']>;
4328
4387
  /** The identifier of the practitioner. */
4329
4388
  identifier?: Maybe<Array<Maybe<Identifier>>>;
4330
4389
  /** The human name of the practitioner */
4331
4390
  name?: Maybe<Array<Maybe<HumanName>>>;
4332
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>;
4333
4401
  };
4334
4402
  /** A reference to a practitioner who may be involved in an encounter. */
4335
4403
  export type PractitionerReference = {
@@ -4356,6 +4424,16 @@ export type PractitionerRole = {
4356
4424
  specialty?: Maybe<Array<CodeableConcept>>;
4357
4425
  telecom?: Maybe<Array<Maybe<ContactPoint>>>;
4358
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
+ };
4359
4437
  export type PrefetchAssets = {
4360
4438
  __typename?: 'PrefetchAssets';
4361
4439
  translations: PrefetchTranslations;
@@ -4831,10 +4909,14 @@ export type Query = {
4831
4909
  goals?: Maybe<GoalBundle>;
4832
4910
  healthLinks?: Maybe<Array<DocumentReference>>;
4833
4911
  initSdk: SdkConfiguration;
4912
+ locations: LocationQueryResults;
4834
4913
  login: LogInResponse;
4914
+ organizations: OrganizationQueryResults;
4835
4915
  patients?: Maybe<PatientBundle>;
4836
4916
  person?: Maybe<Person>;
4837
4917
  placeholderQuery?: Maybe<Scalars['String']['output']>;
4918
+ practitionerRoles: PractitionerRoleQueryResults;
4919
+ practitioners: PractitionerQueryResults;
4838
4920
  profile?: Maybe<Profile>;
4839
4921
  provenances?: Maybe<ProvenanceBundle>;
4840
4922
  /**
@@ -5077,10 +5159,16 @@ export type QueryInitSdkArgs = {
5077
5159
  clientKey: Scalars['String']['input'];
5078
5160
  organizationId?: InputMaybe<Scalars['String']['input']>;
5079
5161
  };
5162
+ export type QueryLocationsArgs = {
5163
+ request: LocationsRequest;
5164
+ };
5080
5165
  export type QueryLoginArgs = {
5081
5166
  email: Scalars['String']['input'];
5082
5167
  password: Scalars['String']['input'];
5083
5168
  };
5169
+ export type QueryOrganizationsArgs = {
5170
+ request: OrganizationsRequest;
5171
+ };
5084
5172
  export type QueryPatientsArgs = {
5085
5173
  _count?: InputMaybe<Scalars['Int']['input']>;
5086
5174
  _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
@@ -5092,6 +5180,12 @@ export type QueryPatientsArgs = {
5092
5180
  export type QueryPersonArgs = {
5093
5181
  id: Scalars['ID']['input'];
5094
5182
  };
5183
+ export type QueryPractitionerRolesArgs = {
5184
+ request: PractitionersRoleRequest;
5185
+ };
5186
+ export type QueryPractitionersArgs = {
5187
+ request: PractitionersRequest;
5188
+ };
5095
5189
  export type QueryProfileArgs = {
5096
5190
  id: Scalars['ID']['input'];
5097
5191
  };
@@ -6735,6 +6829,7 @@ export type Zendesk = {
6735
6829
  };
6736
6830
  export type UpdatePersonDetailsOutput = {
6737
6831
  __typename?: 'updatePersonDetailsOutput';
6832
+ empiType: Scalars['String']['output'];
6738
6833
  id: Scalars['String']['output'];
6739
6834
  resourceType: Scalars['String']['output'];
6740
6835
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.46.0",
3
+ "version": "1.47.0",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",