@icanbwell/bwell-sdk-ts 1.5.0 → 1.6.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.5.0";
4
+ export declare const VERSION = "1.6.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.5.0";
4
+ export const VERSION = "1.6.0";
@@ -2,7 +2,7 @@ import { graphQLSDKFactory } from "./graphql-api/graphql-sdk/index.js";
2
2
  import { GraphQLApiProvider } from "./graphql-api/index.js";
3
3
  export class ApiProviderFactory {
4
4
  createApiProvider(config, tokenManager, loggerProvider) {
5
- const { sdk } = graphQLSDKFactory(config.graphQL.apiUrl, tokenManager);
6
- return new GraphQLApiProvider(sdk, loggerProvider);
5
+ const { sdk, client } = graphQLSDKFactory(config.graphQL.apiUrl, tokenManager, config.bwellConfig.language);
6
+ return new GraphQLApiProvider(sdk, loggerProvider, client);
7
7
  }
8
8
  }
@@ -1,3 +1,4 @@
1
+ import type { LanguageManager } from "../../language/language-manager.js";
1
2
  import type { ActivityManager } from "./activity/activity-manager.js";
2
3
  import type { ConnectionManager } from "./connection/connection-manager.js";
3
4
  import type { DeviceManager } from "./device/device-manager.js";
@@ -13,4 +14,5 @@ export interface ApiProvider {
13
14
  readonly activity: ActivityManager;
14
15
  readonly event: EventManager;
15
16
  readonly search: SearchManager;
17
+ readonly language: LanguageManager;
16
18
  }
@@ -1,4 +1,4 @@
1
- import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
1
+ import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator, Validator } from "../../../requests/index.js";
2
2
  import { SearchDate } from "../requests/search-date.js";
3
3
  import { SearchToken } from "../requests/search-token.js";
4
4
  export type HealthDataRequestInput = PagedRequestInput & {
@@ -21,6 +21,21 @@ export declare class HealthDataRequestValidator extends PagedRequestValidator<He
21
21
  */
22
22
  validate(data: HealthDataRequestInput, errors: ErrorsCollector): void;
23
23
  }
24
+ export declare class PrescriptionValidator implements Validator<string[]> {
25
+ validate(data: string[], errors: ErrorsCollector): void;
26
+ }
27
+ /**
28
+ * Validator for health data requests.
29
+ */
30
+ export declare class MedicationDispenseRequestValidator extends PagedRequestValidator<MedicationDispenseRequestInput> {
31
+ #private;
32
+ /**
33
+ * Validates the paged request properties, as well as prescription and lastUpdated.
34
+ * @param data
35
+ * @param errors
36
+ */
37
+ validate(data: MedicationDispenseRequestInput, errors: ErrorsCollector): void;
38
+ }
24
39
  /**
25
40
  * Base request object for fetching health data.
26
41
  */
@@ -117,6 +132,27 @@ export declare class VitalSignsRequest extends HealthDataRequest {
117
132
  */
118
133
  export declare class VitalSignGroupsRequest extends PagedRequest {
119
134
  }
135
+ type MedicationDispenseRequestInput = PagedRequestInput & {
136
+ prescription?: string[];
137
+ ids?: string[];
138
+ lastUpdated?: SearchDate;
139
+ sort?: string[];
140
+ };
141
+ type MedicationRequestRequestInput = MedicationDispenseRequestInput;
142
+ export declare class MedicationRequestRequestValidator extends MedicationDispenseRequestValidator {
143
+ }
144
+ /**
145
+ * Request object for fetching medication dispense data.
146
+ */
147
+ export declare class MedicationDispenseRequest extends PagedRequest<MedicationDispenseRequestInput> {
148
+ protected validator: MedicationDispenseRequestValidator;
149
+ }
150
+ /**
151
+ * Request object for fetching medication request data.
152
+ */
153
+ export declare class MedicationRequestRequest extends PagedRequest<MedicationRequestRequestInput> {
154
+ protected validator: MedicationRequestRequestValidator;
155
+ }
120
156
  /**
121
157
  * Request object for fetching medication statement data.
122
158
  */
@@ -127,3 +163,4 @@ export declare class MedicationStatementsRequest extends HealthDataRequest {
127
163
  */
128
164
  export declare class MedicationGroupsRequest extends PagedRequest {
129
165
  }
166
+ export {};
@@ -3,7 +3,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
3
3
  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");
4
4
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
5
  };
6
- var _HealthDataRequestValidator_groupCodeValidator, _HealthDataRequestValidator_searchDateValidator;
6
+ var _HealthDataRequestValidator_groupCodeValidator, _HealthDataRequestValidator_searchDateValidator, _MedicationDispenseRequestValidator_prescriptionValidator, _MedicationDispenseRequestValidator_searchDateValidator;
7
7
  import { PagedRequest, PagedRequestValidator, } from "../../../requests/index.js";
8
8
  import { SearchDateValidator } from "../requests/search-date.js";
9
9
  import { SearchTokenValidator } from "../requests/search-token.js";
@@ -32,6 +32,38 @@ export class HealthDataRequestValidator extends PagedRequestValidator {
32
32
  }
33
33
  }
34
34
  _HealthDataRequestValidator_groupCodeValidator = new WeakMap(), _HealthDataRequestValidator_searchDateValidator = new WeakMap();
35
+ export class PrescriptionValidator {
36
+ validate(data, errors) {
37
+ if (data.length === 0) {
38
+ errors.add("Prescription array must not be empty.");
39
+ }
40
+ }
41
+ }
42
+ /**
43
+ * Validator for health data requests.
44
+ */
45
+ export class MedicationDispenseRequestValidator extends PagedRequestValidator {
46
+ constructor() {
47
+ super(...arguments);
48
+ _MedicationDispenseRequestValidator_prescriptionValidator.set(this, new PrescriptionValidator());
49
+ _MedicationDispenseRequestValidator_searchDateValidator.set(this, new SearchDateValidator());
50
+ }
51
+ /**
52
+ * Validates the paged request properties, as well as prescription and lastUpdated.
53
+ * @param data
54
+ * @param errors
55
+ */
56
+ validate(data, errors) {
57
+ super.validate(data, errors);
58
+ if (data.lastUpdated !== undefined) {
59
+ __classPrivateFieldGet(this, _MedicationDispenseRequestValidator_searchDateValidator, "f").validate(data.lastUpdated, errors);
60
+ }
61
+ if (data.prescription !== undefined) {
62
+ __classPrivateFieldGet(this, _MedicationDispenseRequestValidator_prescriptionValidator, "f").validate(data.prescription, errors);
63
+ }
64
+ }
65
+ }
66
+ _MedicationDispenseRequestValidator_prescriptionValidator = new WeakMap(), _MedicationDispenseRequestValidator_searchDateValidator = new WeakMap();
35
67
  /**
36
68
  * Base request object for fetching health data.
37
69
  */
@@ -131,6 +163,26 @@ export class VitalSignsRequest extends HealthDataRequest {
131
163
  */
132
164
  export class VitalSignGroupsRequest extends PagedRequest {
133
165
  }
166
+ export class MedicationRequestRequestValidator extends MedicationDispenseRequestValidator {
167
+ }
168
+ /**
169
+ * Request object for fetching medication dispense data.
170
+ */
171
+ export class MedicationDispenseRequest extends PagedRequest {
172
+ constructor() {
173
+ super(...arguments);
174
+ this.validator = new MedicationDispenseRequestValidator();
175
+ }
176
+ }
177
+ /**
178
+ * Request object for fetching medication request data.
179
+ */
180
+ export class MedicationRequestRequest extends PagedRequest {
181
+ constructor() {
182
+ super(...arguments);
183
+ this.validator = new MedicationRequestRequestValidator();
184
+ }
185
+ }
134
186
  /**
135
187
  * Request object for fetching medication statement data.
136
188
  */
@@ -1,7 +1,7 @@
1
- import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetCareTeamsQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationStatementsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, GetVitalSignsQueryResults } from "../../../graphql/operations/types.js";
1
+ import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetCareTeamsQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationDispenseQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationRequestQueryResults, GetMedicationStatementsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, GetVitalSignsQueryResults } from "../../../graphql/operations/types.js";
2
2
  import type { BWellQueryResult } from "../../../results/index.js";
3
3
  import type { BaseManagerError } from "../errors.js";
4
- import { AllergyIntoleranceGroupsRequest, AllergyIntolerancesRequest, CarePlanGroupsRequest, CarePlansRequest, CareTeamsRequest, ConditionGroupsRequest, ConditionsRequest, DocumentReferencesRequest, EncounterGroupsRequest, EncountersRequest, ImmunizationGroupsRequest, ImmunizationsRequest, LabGroupsRequest, LabsRequest, MedicationGroupsRequest, MedicationStatementsRequest, ProcedureGroupsRequest, ProceduresRequest, VitalSignGroupsRequest, VitalSignsRequest } from "./health-data-request.js";
4
+ import { AllergyIntoleranceGroupsRequest, AllergyIntolerancesRequest, CarePlanGroupsRequest, CarePlansRequest, CareTeamsRequest, ConditionGroupsRequest, ConditionsRequest, DocumentReferencesRequest, EncounterGroupsRequest, EncountersRequest, ImmunizationGroupsRequest, ImmunizationsRequest, LabGroupsRequest, LabsRequest, MedicationDispenseRequest, MedicationGroupsRequest, MedicationRequestRequest, MedicationStatementsRequest, ProcedureGroupsRequest, ProceduresRequest, VitalSignGroupsRequest, VitalSignsRequest } from "./health-data-request.js";
5
5
  import { LabKnowledgeRequest } from "./lab-knowledge-request.js";
6
6
  import { MedicationKnowledgeRequest } from "./medication-knowledge-request.js";
7
7
  type HealthSummaryResultsType = GetHealthSummaryQueryResults["getHealthSummary"];
@@ -61,6 +61,12 @@ export interface VitalSignsResults extends VitalSignsResultsType {
61
61
  type VitalSignGroupsResultsType = GetVitalSignGroupsQueryResults["getVitalSignGroups"];
62
62
  export interface VitalSignGroupsResults extends VitalSignGroupsResultsType {
63
63
  }
64
+ type MedicationDispenseResultsType = GetMedicationDispenseQueryResults["getMedicationDispense"];
65
+ export interface MedicationDispenseResults extends MedicationDispenseResultsType {
66
+ }
67
+ type MedicationRequestResultsType = GetMedicationRequestQueryResults["getMedicationRequest"];
68
+ export interface MedicationRequestResults extends MedicationRequestResultsType {
69
+ }
64
70
  type MedicationStatementsResultsType = GetMedicationStatementsQueryResults["getMedicationStatements"];
65
71
  export interface MedicationStatementsResults extends MedicationStatementsResultsType {
66
72
  }
@@ -245,6 +251,24 @@ export interface HealthManager {
245
251
  * @returns {Promise<BWellQueryResult<VitalSignGroupsResults>>} A promise resolving to an object representing the list of vital sign groups retrieved.
246
252
  */
247
253
  getVitalSignGroups(request?: VitalSignGroupsRequest): Promise<BWellQueryResult<VitalSignGroupsResults>>;
254
+ /**
255
+ * Retrieves a list of medication dispense resources.
256
+ * See also https://build.fhir.org/medicationdispense.html
257
+ *
258
+ * @param {MedicationDispenseRequest} request An optional request class for specifying the search criteria, for the retrieval of medication dispense resources.
259
+ *
260
+ * @returns {Promise<BWellQueryResult<MedicationDispenseResults>>} A promise resolving to an object representing the list of medication dispense retrieved.
261
+ */
262
+ getMedicationDispense(request?: MedicationDispenseRequest): Promise<BWellQueryResult<MedicationDispenseResults>>;
263
+ /**
264
+ * Retrieves a list of medication request resources.
265
+ * See also https://build.fhir.org/medicationrequest.html
266
+ *
267
+ * @param {MedicationRequestRequest} request An optional request class for specifying the search criteria, for the retrieval of medication request resources.
268
+ *
269
+ * @returns {Promise<BWellQueryResult<MedicationRequestResults>>} A promise resolving to an object representing the list of medication request retrieved.
270
+ */
271
+ getMedicationRequest(request?: MedicationRequestRequest): Promise<BWellQueryResult<MedicationRequestResults>>;
248
272
  /**
249
273
  * Retrieves a list of medication statements resources.
250
274
  * See also https://build.fhir.org/medicationstatement.html
@@ -1,4 +1,4 @@
1
- export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
1
+ export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
2
2
  export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
3
3
  export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
4
- export { HealthSummaryResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, ConditionsResults, ConditionGroupsResults, DocumentReferencesResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, CareTeamsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, } from "./health-manager.js";
4
+ export { HealthSummaryResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, ConditionsResults, ConditionGroupsResults, DocumentReferencesResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, CareTeamsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, MedicationDispenseResults, MedicationRequestResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, } from "./health-manager.js";
@@ -1,3 +1,3 @@
1
- export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
1
+ export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
2
2
  export { MedicationKnowledgeRequest, } from "./medication-knowledge-request.js";
3
3
  export { LabKnowledgeRequest, } from "./lab-knowledge-request.js";
@@ -1,3 +1,5 @@
1
+ import type { GraphQLClient } from "graphql-request";
2
+ import { LanguageManager } from "../../language/language-manager.js";
1
3
  import type { LoggerProvider } from "../../logger/index.js";
2
4
  import type { ActivityManager } from "../base/activity/activity-manager.js";
3
5
  import type { ApiProvider } from "../base/api-provider.js";
@@ -17,5 +19,6 @@ export declare class GraphQLApiProvider implements ApiProvider {
17
19
  readonly activity: ActivityManager;
18
20
  readonly event: EventManager;
19
21
  readonly search: SearchManager;
20
- constructor(graphqlSDK: GraphQLSdk, loggerProvider: LoggerProvider);
22
+ readonly language: LanguageManager;
23
+ constructor(graphqlSDK: GraphQLSdk, loggerProvider: LoggerProvider, graphqlClient: GraphQLClient);
21
24
  }
@@ -10,6 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
12
  var _GraphQLApiProvider_logger, _GraphQLApiProvider_graphqlSDK;
13
+ import { BwellSdkLanguageManager, } from "../../language/language-manager.js";
13
14
  import { GraphQLActivityManager } from "./activity/index.js";
14
15
  import { GraphQLConnectionManager } from "./connection/index.js";
15
16
  import { GraphQLDeviceManager } from "./device/index.js";
@@ -18,7 +19,7 @@ import { GraphQLHealthManager } from "./healthdata/index.js";
18
19
  import { GraphQLSearchManager } from "./search/index.js";
19
20
  import { GraphQLUserManager } from "./user/index.js";
20
21
  export class GraphQLApiProvider {
21
- constructor(graphqlSDK, loggerProvider) {
22
+ constructor(graphqlSDK, loggerProvider, graphqlClient) {
22
23
  _GraphQLApiProvider_logger.set(this, void 0);
23
24
  _GraphQLApiProvider_graphqlSDK.set(this, void 0);
24
25
  __classPrivateFieldSet(this, _GraphQLApiProvider_logger, loggerProvider.getLogger("GraphQLAPIProvider"), "f");
@@ -31,6 +32,7 @@ export class GraphQLApiProvider {
31
32
  this.health = new GraphQLHealthManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
32
33
  this.user = new GraphQLUserManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
33
34
  this.search = new GraphQLSearchManager(__classPrivateFieldGet(this, _GraphQLApiProvider_graphqlSDK, "f"), loggerProvider);
35
+ this.language = new BwellSdkLanguageManager(graphqlClient);
34
36
  }
35
37
  }
36
38
  _GraphQLApiProvider_logger = new WeakMap(), _GraphQLApiProvider_graphqlSDK = new WeakMap();
@@ -1,7 +1,9 @@
1
1
  import { GraphQLError } from "graphql";
2
2
  import { GraphQLClient, RequestMiddleware } from "graphql-request";
3
3
  import { Sdk } from "../../../graphql/index.js";
4
+ import type { Language } from "../../../language/language-manager.js";
4
5
  import { TokenManager } from "../../../tokens/index.js";
6
+ import type { Nullable } from "../../../utils/type-utils.js";
5
7
  export type GraphQLSdk<K extends keyof Sdk = keyof Sdk> = Pick<Sdk, K>;
6
8
  export type GraphQLSdkResponse<T> = {
7
9
  data: T;
@@ -14,7 +16,7 @@ export type GraphQLClientInitializeResult = {
14
16
  client: GraphQLClient;
15
17
  sdk: GraphQLSdk;
16
18
  };
17
- export declare function graphQLSDKFactory(endpoint: string, tokenManager?: TokenManager): GraphQLClientInitializeResult;
19
+ export declare function graphQLSDKFactory(endpoint: string, tokenManager?: TokenManager, language?: Nullable<Language>): GraphQLClientInitializeResult;
18
20
  /**
19
21
  * Create a graphql-request request middleware that uses the provided token manager
20
22
  * to get the authed user's accessToken
@@ -9,15 +9,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { GraphQLClient } from "graphql-request";
11
11
  import { getSdk } from "../../../graphql/index.js";
12
- export function graphQLSDKFactory(endpoint, tokenManager) {
12
+ export function graphQLSDKFactory(endpoint, tokenManager, language) {
13
13
  let requestMiddleware = undefined;
14
14
  if (tokenManager !== undefined) {
15
15
  requestMiddleware = createAuthMiddleware(tokenManager);
16
16
  }
17
+ const headers = {};
18
+ if (language !== undefined && language !== null) {
19
+ headers["accept-language"] = language;
20
+ }
17
21
  const client = new GraphQLClient(endpoint, {
18
22
  errorPolicy: "all",
19
23
  mode: "cors",
20
24
  requestMiddleware,
25
+ headers,
21
26
  });
22
27
  return { client, sdk: getSdk(client) };
23
28
  }
@@ -28,6 +28,8 @@ export declare class GraphQLHealthManager extends GraphQLManager implements Heal
28
28
  getProcedureGroups(request?: health.ProcedureGroupsRequest): Promise<BWellQueryResult<health.ProcedureGroupsResults, ValidationError | BaseManagerError>>;
29
29
  getVitalSigns(request?: health.VitalSignsRequest): Promise<BWellQueryResult<health.VitalSignsResults, ValidationError | BaseManagerError>>;
30
30
  getVitalSignGroups(request?: health.VitalSignGroupsRequest): Promise<BWellQueryResult<health.VitalSignGroupsResults, ValidationError | BaseManagerError>>;
31
+ getMedicationDispense(request?: health.MedicationDispenseRequest): Promise<BWellQueryResult<health.MedicationDispenseResults, ValidationError | BaseManagerError>>;
32
+ getMedicationRequest(request?: health.MedicationRequestRequest): Promise<BWellQueryResult<health.MedicationRequestResults, ValidationError | BaseManagerError>>;
31
33
  getMedicationStatements(request?: health.MedicationStatementsRequest): Promise<BWellQueryResult<health.MedicationStatementsResults, ValidationError | BaseManagerError>>;
32
34
  getMedicationGroups(request?: health.MedicationGroupsRequest): Promise<BWellQueryResult<health.MedicationGroupsResults, ValidationError | BaseManagerError>>;
33
35
  getMedicationKnowledge(request: health.MedicationKnowledgeRequest): Promise<BWellQueryResult<health.MedicationKnowledgeResults, ValidationError | BaseManagerError>>;
@@ -363,6 +363,42 @@ export class GraphQLHealthManager extends GraphQLManager {
363
363
  return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getVitalSignGroups, result.error);
364
364
  });
365
365
  }
366
+ getMedicationDispense(request) {
367
+ return __awaiter(this, void 0, void 0, function* () {
368
+ var _a, _b;
369
+ const validationResult = this.validateRequest(request);
370
+ if (validationResult.failure()) {
371
+ return validationResult.toQueryResult();
372
+ }
373
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getMedicationDispense...");
374
+ const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getMedicationDispense({
375
+ request: (_a = request === null || request === void 0 ? void 0 : request.data()) !== null && _a !== void 0 ? _a : null,
376
+ }));
377
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getMedicationDispense complete");
378
+ if (result.hasError()) {
379
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getMedicationDispense errors", result.error);
380
+ }
381
+ return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getMedicationDispense, result.error);
382
+ });
383
+ }
384
+ getMedicationRequest(request) {
385
+ return __awaiter(this, void 0, void 0, function* () {
386
+ var _a, _b;
387
+ const validationResult = this.validateRequest(request);
388
+ if (validationResult.failure()) {
389
+ return validationResult.toQueryResult();
390
+ }
391
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getMedicationRequest...");
392
+ const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getMedicationRequest({
393
+ request: (_a = request === null || request === void 0 ? void 0 : request.data()) !== null && _a !== void 0 ? _a : null,
394
+ }));
395
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getMedicationRequest complete");
396
+ if (result.hasError()) {
397
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getMedicationRequest errors", result.error);
398
+ }
399
+ return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getMedicationRequest, result.error);
400
+ });
401
+ }
366
402
  getMedicationStatements(request) {
367
403
  return __awaiter(this, void 0, void 0, function* () {
368
404
  var _a, _b;
@@ -82,4 +82,5 @@ export declare class BWellSDK {
82
82
  get device(): DeviceManager;
83
83
  get event(): EventManager;
84
84
  get search(): SearchManager;
85
+ get language(): import("../language/language-manager.js").LanguageManager;
85
86
  }
@@ -178,6 +178,9 @@ export class BWellSDK {
178
178
  get search() {
179
179
  return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).search;
180
180
  }
181
+ get language() {
182
+ return __classPrivateFieldGet(this, _BWellSDK_instances, "m", _BWellSDK_getApiProvider).call(this).language;
183
+ }
181
184
  }
182
185
  _BWellSDK_config = new WeakMap(), _BWellSDK_sdkConfig = new WeakMap(), _BWellSDK_telemetry = new WeakMap(), _BWellSDK_loggerFactory = new WeakMap(), _BWellSDK_apiProviderFactory = new WeakMap(), _BWellSDK_identityManagerFactory = new WeakMap(), _BWellSDK_authStrategyFactory = new WeakMap(), _BWellSDK_loggerProvider = new WeakMap(), _BWellSDK_apiProvider = new WeakMap(), _BWellSDK_logger = new WeakMap(), _BWellSDK_identityManager = new WeakMap(), _BWellSDK_configManager = new WeakMap(), _BWellSDK_tokenManager = new WeakMap(), _BWellSDK_instances = new WeakSet(), _BWellSDK_bootstrapAuth = function _BWellSDK_bootstrapAuth(identityTokens) {
183
186
  return __awaiter(this, void 0, void 0, function* () {
@@ -1,5 +1,7 @@
1
1
  import { LogLevel, Retry } from "../graphql/schema.js";
2
+ import type { Language } from "../language/language-manager.js";
2
3
  import { TokenStorage } from "../tokens/token-storage.js";
4
+ import type { Nullable } from "../utils/type-utils.js";
3
5
  export { LogLevel } from "../graphql/schema.js";
4
6
  export type BWellConfig = {
5
7
  clientKey: string;
@@ -8,5 +10,21 @@ export type BWellConfig = {
8
10
  retryPolicy?: Retry;
9
11
  telemetryEnabled?: boolean;
10
12
  tokenStorage?: TokenStorage;
13
+ /**
14
+ * Language to be passed into the `accept-language` header into the sdk requests.
15
+ * Supported values:
16
+ * - **"en"**: English [accept-language: 'en'].
17
+ * - **"es"**: Spanish. [accept-language: 'es']
18
+ * - **`null`**: Indicates no specific language preference. [no `accept-language` wil be set explicitly]
19
+ *
20
+ * Limitation:
21
+ * - Setting the language does not guarantee a response in the specified language, as not all queries support translation at the moment.
22
+ *
23
+ * If `null` or the `language` property is not provided, the browser will automatically set the `Accept-Language`
24
+ * header based on the user's language preferences
25
+ *
26
+ * @default null
27
+ */
28
+ language?: Nullable<Language>;
11
29
  };
12
30
  export declare const DEFAULT_BWELL_CONFIG: Required<Omit<BWellConfig, "clientKey">>;
@@ -10,4 +10,5 @@ export const DEFAULT_BWELL_CONFIG = {
10
10
  },
11
11
  telemetryEnabled: false,
12
12
  tokenStorage: new InMemoryTokenStorage(),
13
+ language: null,
13
14
  };
@@ -19,12 +19,15 @@ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
19
19
  export declare const CodingFieldsFragmentDoc = "\n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
20
20
  export declare const CodeableConceptFieldsFragmentDoc = "\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 ";
21
21
  export declare const ExtensionFieldsFragmentDoc = "\n fragment ExtensionFields on Extension {\n id\n url\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueInteger\n valueExpression\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 ";
22
- export declare const PagingFieldsFragmentDoc = "\n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
23
- export declare const ProtocolAppliedFieldsFragmentDoc = "\n fragment ProtocolAppliedFields on ProtocolApplied {\n doseNumberString\n doseNumberPositiveInt\n}\n ";
24
- export declare const PeriodFieldsFragmentDoc = "\n fragment PeriodFields on Period {\n start\n end\n}\n ";
22
+ export declare const CodeFieldsFragmentDoc = "\n fragment CodeFields on Code {\n code\n display\n}\n ";
25
23
  export declare const QuantityFieldsFragmentDoc = "\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
24
+ export declare const PeriodFieldsFragmentDoc = "\n fragment PeriodFields on Period {\n start\n end\n}\n ";
26
25
  export declare const RangeFieldsFragmentDoc = "\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 ";
27
26
  export declare const TimingFieldsFragmentDoc = "\n fragment TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\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 \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 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 ";
27
+ export declare const DosageFieldsFragmentDoc = "\n fragment DosageFields on Dosage {\n id\n additionalInstruction {\n ...CodeableConceptFields\n }\n asNeededBoolean\n asNeededCodeableConcept {\n ...CodeableConceptFields\n }\n doseAndRate {\n id\n doseQuantity {\n ...QuantityFields\n }\n doseRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateRatio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\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 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 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 \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 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 ";
28
+ export declare const PagingFieldsFragmentDoc = "\n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
29
+ export declare const MoneyResourceFieldsFragmentDoc = "\n fragment MoneyResourceFields on Money {\n value\n currency\n}\n ";
30
+ export declare const ProtocolAppliedFieldsFragmentDoc = "\n fragment ProtocolAppliedFields on ProtocolApplied {\n doseNumberString\n doseNumberPositiveInt\n}\n ";
28
31
  export declare const DetailFieldsFragmentDoc = "\n fragment DetailFields on Detail {\n kind {\n display\n code\n }\n code {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n scheduledPeriod {\n ...PeriodFields\n }\n scheduledString\n scheduledTiming {\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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\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 \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 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 ";
29
32
  export declare const ActivityFieldsFragmentDoc = "\n fragment ActivityFields on Activity {\n detail {\n ...DetailFields\n }\n}\n \n fragment DetailFields on Detail {\n kind {\n display\n code\n }\n code {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n scheduledPeriod {\n ...PeriodFields\n }\n scheduledString\n scheduledTiming {\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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\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 \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 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 ";
30
33
  export declare const MetaFieldsFragmentDoc = "\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 ";
@@ -73,9 +76,12 @@ export declare const GetVitalSignsDocument = "\n query getVitalSigns($request
73
76
  export declare const GetLabGroupsDocument = "\n query getLabGroups($request: LabGroupQueryRequest) {\n getLabGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n source\n sourceDisplay\n category {\n ...CodeableConceptFields\n }\n coding {\n ...CodingFields\n }\n effectiveDateTime\n referenceRange {\n ...ReferenceRangeFields\n }\n value {\n ...ValueFields\n }\n interpretation {\n ...CodeableConceptFields\n }\n component {\n ...ComponentFields\n }\n references\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 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 ReferenceRangeFields on ReferenceRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n text\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment ValueFields on Value {\n valueQuantity {\n ...QuantityFields\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueBoolean\n valueInteger\n valueRatio {\n ...RatioFields\n }\n valueRange {\n ...RangeFields\n }\n valueTime\n valueDateTime\n valuePeriod {\n ...PeriodFields\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 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 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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment ComponentFields on Component {\n code {\n ...CodeableConceptFields\n }\n value {\n ...ValueFields\n }\n referenceRange {\n ...ReferenceRangeFields\n }\n interpretation {\n ...CodeableConceptFields\n }\n dataAbsentReason {\n ...CodeableConceptFields\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 ValueFields on Value {\n valueQuantity {\n ...QuantityFields\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueBoolean\n valueInteger\n valueRatio {\n ...RatioFields\n }\n valueRange {\n ...RangeFields\n }\n valueTime\n valueDateTime\n valuePeriod {\n ...PeriodFields\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 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 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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment ReferenceRangeFields on ReferenceRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n text\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
74
77
  export declare const GetLabKnowledgeDocument = "\n query getLabKnowledge($request: LabKnowledgeRequest) {\n getLabKnowledge(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n content\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
75
78
  export declare const GetLabsDocument = "\n query getLabs($request: LabRequest) {\n getLabs(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n ...ObservationFields\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 ObservationFields on ObservationResource {\n id\n meta {\n ...MetaFields\n }\n code {\n ...CodeableConceptFields\n }\n category {\n ...CodeableConceptFields\n }\n value {\n ...ValueFields\n }\n referenceRange {\n ...ReferenceRangeFields\n }\n interpretation {\n ...CodeableConceptFields\n }\n component {\n ...ComponentFields\n }\n effectiveDateTime\n effectivePeriod {\n ...PeriodFields\n }\n note {\n authorString\n time\n text\n }\n encounter {\n ...EncounterFields\n }\n performer {\n ...PerformerFields\n }\n hasMember {\n ... on ObservationResource {\n id\n code {\n ...CodeableConceptFields\n }\n }\n }\n specimen {\n ...SpecimenResourceFields\n }\n status {\n display\n code\n }\n dataAbsentReason {\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 ValueFields on Value {\n valueQuantity {\n ...QuantityFields\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueBoolean\n valueInteger\n valueRatio {\n ...RatioFields\n }\n valueRange {\n ...RangeFields\n }\n valueTime\n valueDateTime\n valuePeriod {\n ...PeriodFields\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 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 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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment ReferenceRangeFields on ReferenceRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n text\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment ComponentFields on Component {\n code {\n ...CodeableConceptFields\n }\n value {\n ...ValueFields\n }\n referenceRange {\n ...ReferenceRangeFields\n }\n interpretation {\n ...CodeableConceptFields\n }\n dataAbsentReason {\n ...CodeableConceptFields\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 ValueFields on Value {\n valueQuantity {\n ...QuantityFields\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueBoolean\n valueInteger\n valueRatio {\n ...RatioFields\n }\n valueRange {\n ...RangeFields\n }\n valueTime\n valueDateTime\n valuePeriod {\n ...PeriodFields\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 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 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 PeriodFields on Period {\n start\n end\n}\n \n\n fragment ReferenceRangeFields on ReferenceRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n text\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 EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\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 name\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 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 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 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 ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\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 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 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 RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment PerformerFields on Performer {\n actor {\n ...ActorFields\n }\n}\n \n fragment ActorFields on Actor {\n __typename\n ... on Practitioner {\n name {\n ...HumanNameFields\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 SpecimenResourceFields on SpecimenResource {\n identifier {\n ...IdentifierFields\n }\n accessionIdentifier {\n ...IdentifierFields\n }\n type {\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 ";
79
+ export declare const GetMedicationDispenseDocument = "\n query getMedicationDispense($request: MedicationDispenseQueryRequest) {\n getMedicationDispense(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n meta {\n ...MetaFields\n }\n status {\n ...CodeFields\n }\n identifier {\n ...IdentifierFields\n }\n medicationCodeableConcept {\n ...CodeableConceptFields\n }\n medicationReference {\n code {\n ...CodeableConceptFields\n }\n }\n subject {\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n }\n context {\n ...EncounterFields\n }\n performer {\n ...PerformerFields\n }\n type {\n ...CodeableConceptFields\n }\n quantity {\n ...QuantityFields\n }\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 whenPrepared\n whenHandedOver\n dosageInstruction {\n ...DosageFields\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 CodeFields on Code {\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\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 name\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 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 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 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 ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\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 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 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 RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment PerformerFields on Performer {\n actor {\n ...ActorFields\n }\n}\n \n fragment ActorFields on Actor {\n __typename\n ... on Practitioner {\n name {\n ...HumanNameFields\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 QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\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 id\n doseQuantity {\n ...QuantityFields\n }\n doseRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateRatio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\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 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 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 \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 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 ";
76
80
  export declare const GetMedicationGroupsDocument = "\n query getMedicationGroups($request: MedicationGroupQueryRequest) {\n getMedicationGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n source\n sourceDisplay\n coding {\n ...CodingFields\n }\n references\n status {\n code\n display\n }\n authoredOn\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 CodingFields on Coding {\n system\n code\n display\n}\n ";
77
81
  export declare const GetMedicationKnowledgeDocument = "\n query getMedicationKnowledge($request: MedicationKnowledgeRequest) {\n getMedicationKnowledge(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n __typename\n title\n content\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
78
- 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 id\n additionalInstruction {\n ...CodeableConceptFields\n }\n asNeededBoolean\n asNeededCodeableConcept {\n ...CodeableConceptFields\n }\n doseAndRate {\n id\n doseQuantity {\n ...QuantityFields\n }\n doseRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateRatio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\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 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 }\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 }\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 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 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 \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 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 ";
82
+ 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 ";
83
+ export declare const GetMedicationRequestDocument = "\n query getMedicationRequest($request: MedicationRequestQueryRequest) {\n getMedicationRequest(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n meta {\n ...MetaFields\n }\n status {\n ...CodeFields\n }\n category {\n ...CodeableConceptFields\n }\n identifier {\n ...IdentifierFields\n }\n intent {\n ...CodeFields\n }\n language\n medicationCodeableConcept {\n ...CodeableConceptFields\n }\n text {\n div\n status\n }\n subject {\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n }\n requester {\n ... on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n }\n }\n recorder {\n ... on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n }\n }\n encounter {\n ...EncounterFields\n }\n authoredOn\n dosageInstruction {\n ...DosageFields\n }\n dispenseRequest {\n id\n numberOfRepeatsAllowed\n quantity {\n ...QuantityFields\n }\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 CodeFields on Code {\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 HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\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 name\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 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 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 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 ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\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 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 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 RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\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 id\n doseQuantity {\n ...QuantityFields\n }\n doseRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateRatio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\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 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 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 \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 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 ";
84
+ 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 }\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 }\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 DosageFields on Dosage {\n id\n additionalInstruction {\n ...CodeableConceptFields\n }\n asNeededBoolean\n asNeededCodeableConcept {\n ...CodeableConceptFields\n }\n doseAndRate {\n id\n doseQuantity {\n ...QuantityFields\n }\n doseRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateQuantity {\n ...QuantityFields\n }\n rateRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n }\n rateRatio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n }\n maxDosePerAdministration {\n ...QuantityFields\n }\n maxDosePerLifetime {\n ...QuantityFields\n }\n maxDosePerPeriod {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\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 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 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 \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 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 ";
79
85
  export declare const AuthenticateDocument = "\n query authenticate {\n getToken {\n accessToken {\n jwtToken\n }\n idToken {\n jwtToken\n }\n refreshToken {\n token\n }\n }\n}\n ";
80
86
  export declare const ExchangeAuthCodeDocument = "\n mutation ExchangeAuthCode($authCode: String!) {\n exchangeAuthCode(authCode: $authCode) {\n accessToken {\n jwtToken\n }\n idToken {\n jwtToken\n }\n refreshToken {\n token\n }\n }\n}\n ";
81
87
  export declare const InitializeDocument = "\n query initialize($clientKey: String!) {\n initSdk(clientKey: $clientKey) {\n httpClient {\n requestTimeout\n retry {\n interval\n attempts\n }\n }\n graphQLClient {\n url\n authUrl\n fetchPolicy\n cache {\n maxSizeBytes\n }\n }\n logLevel\n telemetry {\n enabled\n collectorUrl\n }\n }\n}\n ";
@@ -308,6 +314,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
308
314
  headers: Headers;
309
315
  status: number;
310
316
  }>;
317
+ getMedicationDispense(variables?: Types.GetMedicationDispenseQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
318
+ data: Types.GetMedicationDispenseQueryResults;
319
+ errors?: GraphQLError[];
320
+ extensions?: any;
321
+ headers: Headers;
322
+ status: number;
323
+ }>;
311
324
  getMedicationGroups(variables?: Types.GetMedicationGroupsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
312
325
  data: Types.GetMedicationGroupsQueryResults;
313
326
  errors?: GraphQLError[];
@@ -322,6 +335,20 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
322
335
  headers: Headers;
323
336
  status: number;
324
337
  }>;
338
+ getMedicationPricing(variables?: Types.GetMedicationPricingQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
339
+ data: Types.GetMedicationPricingQueryResults;
340
+ errors?: GraphQLError[];
341
+ extensions?: any;
342
+ headers: Headers;
343
+ status: number;
344
+ }>;
345
+ getMedicationRequest(variables?: Types.GetMedicationRequestQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
346
+ data: Types.GetMedicationRequestQueryResults;
347
+ errors?: GraphQLError[];
348
+ extensions?: any;
349
+ headers: Headers;
350
+ status: number;
351
+ }>;
325
352
  getMedicationStatements(variables?: Types.GetMedicationStatementsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
326
353
  data: Types.GetMedicationStatementsQueryResults;
327
354
  errors?: GraphQLError[];