@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1760371148 → 2.0.0-alpha.0-rc.1760723921

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 = "2.0.0-alpha.0-rc.1760371148";
4
+ export declare const VERSION = "2.0.0-alpha.0-rc.1760723921";
@@ -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 = "2.0.0-alpha.0-rc.1760371148";
4
+ export const VERSION = "2.0.0-alpha.0-rc.1760723921";
@@ -1,4 +1,4 @@
1
- import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, CareTeamBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportBundle, DiagnosticReportLabGroupBundle, EncounterBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabBundle, LabGroupBundle, MedicationDispenseBundle, MedicationGroupBundle, MedicationRequestBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
1
+ import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, CareTeamBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportBundle, DiagnosticReportLabGroupBundle, EncounterBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabBundle, LabGroupBundle, MedicationDispenseBundle, MedicationGroupBundle, MedicationRequestBundle, MedicationStatementBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
2
2
  import type { BWellQueryResult } from "../../../results/index.js";
3
3
  import type { BaseManagerError } from "../errors.js";
4
4
  import type { AllergyIntoleranceGroupsRequest, CarePlanGroupsRequest, ConditionGroupsRequest, DiagnosticReportLabGroupsRequest, EncounterGroupsRequest, HealthDataRequest, ImmunizationGroupsRequest, LabGroupsRequest, MedicationDispenseRequest, MedicationGroupsRequest, ProcedureGroupsRequest, VitalSignGroupsRequest } from "./health-data-request.js";
@@ -343,4 +343,17 @@ export interface HealthManager {
343
343
  * ```
344
344
  */
345
345
  getMedicationRequests(request?: HealthDataRequest): Promise<BWellQueryResult<MedicationRequestBundle, BaseManagerError>>;
346
+ /**
347
+ * Retrieves a list of medication statement resources.
348
+ *
349
+ * @param {HealthDataRequest} request - Optional request class instance for specifying the search criteria
350
+ *
351
+ * @returns {Promise<BWellQueryResult<MedicationStatementBundle>>} A promise resolving to an object representing the list of medication statements retrieved.
352
+ *
353
+ * @example
354
+ * ```typescript
355
+ * const medicationStatements = await sdk.health.getMedicationStatements();
356
+ * ```
357
+ */
358
+ getMedicationStatements(request?: HealthDataRequest): Promise<BWellQueryResult<MedicationStatementBundle, BaseManagerError>>;
346
359
  }
@@ -1,6 +1,6 @@
1
1
  import { ValidationError } from "../../../errors/index.js";
2
2
  import { LoggerProvider } from "../../../logger/index.js";
3
- import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, CareTeamBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportBundle, DiagnosticReportLabGroupBundle, EncounterBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabBundle, LabGroupBundle, MedicationDispenseBundle, MedicationGroupBundle, MedicationRequestBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
3
+ import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanBundle, CarePlanGroupBundle, CareTeamBundle, ConditionBundle, ConditionGroupBundle, DiagnosticReportBundle, DiagnosticReportLabGroupBundle, EncounterBundle, EncounterGroupBundle, HealthSummary, ImmunizationBundle, ImmunizationGroupBundle, LabBundle, LabGroupBundle, MedicationDispenseBundle, MedicationGroupBundle, MedicationRequestBundle, MedicationStatementBundle, ProcedureBundle, ProcedureGroupBundle, VitalSignBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
4
4
  import { BWellQueryResult } from "../../../results/index.js";
5
5
  import { BaseManagerError } from "../../base/errors.js";
6
6
  import * as health from "../../base/health-data/index.js";
@@ -32,5 +32,6 @@ export declare class GraphQLHealthManager extends GraphQLManager implements Heal
32
32
  getCareTeams(request?: health.HealthDataRequest): Promise<BWellQueryResult<CareTeamBundle, BaseManagerError>>;
33
33
  getMedicationDispenses(request?: health.MedicationDispenseRequest): Promise<BWellQueryResult<MedicationDispenseBundle, BaseManagerError>>;
34
34
  getMedicationRequests(request?: health.HealthDataRequest): Promise<BWellQueryResult<MedicationRequestBundle, BaseManagerError>>;
35
+ getMedicationStatements(request?: health.HealthDataRequest): Promise<BWellQueryResult<MedicationStatementBundle, BaseManagerError>>;
35
36
  getDiagnosticReports(request?: health.HealthDataRequest): Promise<BWellQueryResult<DiagnosticReportBundle, BaseManagerError>>;
36
37
  }
@@ -451,6 +451,26 @@ export class GraphQLHealthManager extends GraphQLManager {
451
451
  return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.medicationRequests, result.error);
452
452
  });
453
453
  }
454
+ getMedicationStatements(request) {
455
+ return __awaiter(this, void 0, void 0, function* () {
456
+ var _a;
457
+ const validationResult = this.validateRequest(request);
458
+ if (validationResult.failure()) {
459
+ return validationResult.toQueryResult();
460
+ }
461
+ let gqlRequest;
462
+ if (request !== undefined) {
463
+ gqlRequest = __classPrivateFieldGet(this, _GraphQLHealthManager_healthDataRequestFactory, "f").create(request);
464
+ }
465
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getMedicationStatements...");
466
+ const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getMedicationStatements(gqlRequest));
467
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getMedicationStatements complete");
468
+ if (result.hasError()) {
469
+ __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getMedicationStatements errors", result.error);
470
+ }
471
+ return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.medicationStatements, result.error);
472
+ });
473
+ }
454
474
  getDiagnosticReports(request) {
455
475
  return __awaiter(this, void 0, void 0, function* () {
456
476
  var _a;
@@ -115,6 +115,7 @@ export declare const GetLabsDocument = "\n query getLabs($page: Int, $pageSiz
115
115
  export declare const GetMedicationDispensesDocument = "\n query getMedicationDispenses($page: Int, $pageSize: Int, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $prescription: SearchReference, $total: TotalType) {\n medicationDispenses(\n _count: $pageSize\n _getpagesoffset: $page\n id: $id\n _lastUpdated: $lastUpdated\n _sort: $sort\n status: $status\n _total: $total\n prescription: $prescription\n ) {\n id\n entry {\n id\n resource {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n meta {\n ...MetaFields\n }\n status\n category {\n ...CodeableConceptFields\n }\n medicationCodeableConcept {\n ...CodeableConceptFields\n }\n medicationReference {\n id\n reference\n type\n resource {\n ...MedicationFields\n }\n }\n subject {\n id\n reference\n type\n resource {\n ...PatientFields\n }\n }\n context {\n id\n reference\n type\n resource {\n ...EncounterFields\n }\n }\n performer {\n actor {\n id\n reference\n type\n resource {\n ...MedicationDispensePerformerActorFields\n }\n }\n }\n daysSupply {\n ...QuantityFields\n }\n quantity {\n ...QuantityFields\n }\n whenPrepared\n whenHandedOver\n dosageInstruction {\n ...DosageFields\n }\n type {\n ...CodeableConceptFields\n }\n location {\n id\n reference\n type\n resource {\n ...LocationFields\n }\n }\n authorizingPrescription {\n reference\n type\n }\n }\n }\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n reference\n type\n resource {\n ...NestedMedicationReferenceFields\n ...SubstanceFields\n }\n }\n isActive\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 NestedMedicationReferenceFields 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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment SubstanceFields 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 ingredient {\n ...SubstanceIngredientFields\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 SubstanceIngredientFields on SubstanceIngredient {\n id\n quantity {\n ...RatioFields\n }\n substanceCodeableConcept {\n ...CodeableConceptFields\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 CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n ...CommunicationFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CommunicationFields on PatientCommunication {\n language {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment EncounterFields on Encounter {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n meta {\n ...MetaFields\n }\n text {\n ...NarrativeFields\n }\n type {\n ...CodeableConceptFields\n }\n status\n period {\n ...PeriodFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n class {\n ...CodingFields\n }\n hospitalization {\n dischargeDisposition {\n ...CodeableConceptFields\n }\n }\n location {\n location {\n id\n reference\n type\n resource {\n ...LocationFields\n }\n }\n status\n physicalType {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n }\n participant {\n ...ParticipantFields\n }\n serviceProvider {\n id\n reference\n type\n resource {\n ...OrganizationFields\n }\n }\n subject {\n id\n reference\n type\n resource {\n ...PatientFields\n }\n }\n reasonReference {\n id\n reference\n type\n resource {\n ...ConditionFields\n }\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment LocationFields on Location {\n id\n name\n identifier {\n ...IdentifierFields\n }\n alias\n description\n address {\n ...AddressFields\n }\n position {\n ...PositionFields\n }\n telecom {\n ...ContactPointFields\n }\n status\n managingOrganization {\n ...LocationManagingOrganizationReferenceFields\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 PositionFields on LocationPosition {\n latitude\n longitude\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ParticipantFields on EncounterParticipant {\n individual {\n id\n reference\n type\n resource {\n ...PractitionerFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment OrganizationFields on Organization {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n endpoint {\n id\n reference\n type\n resource {\n ...EndpointFields\n }\n }\n name\n telecom {\n ...ContactPointFields\n }\n address {\n ...AddressFields\n }\n active\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment EndpointFields on Endpoint {\n identifier {\n ...IdentifierFields\n }\n name\n status\n connectionType {\n ...CodingFields\n }\n address\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n ...CommunicationFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CommunicationFields on PatientCommunication {\n language {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ConditionFields on Condition {\n id\n meta {\n ...MetaFields\n }\n code {\n ...CodeableConceptFields\n }\n clinicalStatus {\n ...CodeableConceptFields\n }\n onsetDateTime\n recordedDate\n recorder {\n resource {\n ...RecorderFields\n }\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 id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment RecorderFields on ConditionRecorder {\n ...PatientFields\n ...PractitionerFields\n}\n \n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n ...CommunicationFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CommunicationFields on PatientCommunication {\n language {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment MedicationDispensePerformerActorFields on MedicationDispensePerformerActor {\n ...PractitionerFields\n ...PatientFields\n ... on Organization {\n organizationName: name\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n ...CommunicationFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CommunicationFields on PatientCommunication {\n language {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment DoseAndRateFields on DosageDoseAndRate {\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 duration\n durationMax\n durationUnit\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit\n timeOfDay\n when\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 LocationFields on Location {\n id\n name\n identifier {\n ...IdentifierFields\n }\n alias\n description\n address {\n ...AddressFields\n }\n position {\n ...PositionFields\n }\n telecom {\n ...ContactPointFields\n }\n status\n managingOrganization {\n ...LocationManagingOrganizationReferenceFields\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 PositionFields on LocationPosition {\n latitude\n longitude\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n ";
116
116
  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 id\n system\n code\n display\n}\n ";
117
117
  export declare const GetMedicationRequestDocument = "\n query getMedicationRequest($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {\n medicationRequests(\n _count: $pageSize\n _getpagesoffset: $page\n code: $code\n id: $id\n _lastUpdated: $lastUpdated\n _sort: $sort\n status: $status\n _total: $total\n ) {\n id\n entry {\n id\n resource {\n resourceType\n id\n meta {\n ...MetaFields\n }\n status\n category {\n ...CodeableConceptFields\n }\n identifier {\n ...IdentifierFields\n }\n intent\n language\n medicationCodeableConcept {\n ...CodeableConceptFields\n }\n medicationReference {\n id\n reference\n type\n resource {\n ...MedicationFields\n }\n }\n text {\n ...NarrativeFields\n }\n subject {\n id\n reference\n type\n resource {\n ...PatientFields\n }\n }\n requester {\n id\n reference\n type\n resource {\n ...PractitionerFields\n }\n }\n recorder {\n id\n reference\n type\n resource {\n ...PractitionerFields\n }\n }\n encounter {\n id\n reference\n type\n resource {\n ...EncounterFields\n }\n }\n authoredOn\n dosageInstruction {\n ...DosageFields\n }\n dispenseRequest {\n ...MedicationRequestDispenseRequestFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n courseOfTherapyType {\n ...CodeableConceptFields\n }\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n reference\n type\n resource {\n ...NestedMedicationReferenceFields\n ...SubstanceFields\n }\n }\n isActive\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 NestedMedicationReferenceFields 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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment SubstanceFields 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 ingredient {\n ...SubstanceIngredientFields\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 SubstanceIngredientFields on SubstanceIngredient {\n id\n quantity {\n ...RatioFields\n }\n substanceCodeableConcept {\n ...CodeableConceptFields\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 CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n ...CommunicationFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CommunicationFields on PatientCommunication {\n language {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment EncounterFields on Encounter {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n meta {\n ...MetaFields\n }\n text {\n ...NarrativeFields\n }\n type {\n ...CodeableConceptFields\n }\n status\n period {\n ...PeriodFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n class {\n ...CodingFields\n }\n hospitalization {\n dischargeDisposition {\n ...CodeableConceptFields\n }\n }\n location {\n location {\n id\n reference\n type\n resource {\n ...LocationFields\n }\n }\n status\n physicalType {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n }\n participant {\n ...ParticipantFields\n }\n serviceProvider {\n id\n reference\n type\n resource {\n ...OrganizationFields\n }\n }\n subject {\n id\n reference\n type\n resource {\n ...PatientFields\n }\n }\n reasonReference {\n id\n reference\n type\n resource {\n ...ConditionFields\n }\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment LocationFields on Location {\n id\n name\n identifier {\n ...IdentifierFields\n }\n alias\n description\n address {\n ...AddressFields\n }\n position {\n ...PositionFields\n }\n telecom {\n ...ContactPointFields\n }\n status\n managingOrganization {\n ...LocationManagingOrganizationReferenceFields\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 PositionFields on LocationPosition {\n latitude\n longitude\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ParticipantFields on EncounterParticipant {\n individual {\n id\n reference\n type\n resource {\n ...PractitionerFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment OrganizationFields on Organization {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n endpoint {\n id\n reference\n type\n resource {\n ...EndpointFields\n }\n }\n name\n telecom {\n ...ContactPointFields\n }\n address {\n ...AddressFields\n }\n active\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment EndpointFields on Endpoint {\n identifier {\n ...IdentifierFields\n }\n name\n status\n connectionType {\n ...CodingFields\n }\n address\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n ...CommunicationFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CommunicationFields on PatientCommunication {\n language {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ConditionFields on Condition {\n id\n meta {\n ...MetaFields\n }\n code {\n ...CodeableConceptFields\n }\n clinicalStatus {\n ...CodeableConceptFields\n }\n onsetDateTime\n recordedDate\n recorder {\n resource {\n ...RecorderFields\n }\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 id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment RecorderFields on ConditionRecorder {\n ...PatientFields\n ...PractitionerFields\n}\n \n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n ...CommunicationFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CommunicationFields on PatientCommunication {\n language {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment DoseAndRateFields on DosageDoseAndRate {\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 duration\n durationMax\n durationUnit\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit\n timeOfDay\n when\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 MedicationRequestDispenseRequestFields on MedicationRequestDispenseRequest {\n id\n dispenseInterval {\n ...QuantityFields\n }\n expectedSupplyDuration {\n ...QuantityFields\n }\n initialFill {\n ...MedicationRequestInitialFillFields\n }\n numberOfRepeatsAllowed\n performer {\n id\n reference\n type\n display\n resource {\n ...OrganizationFields\n }\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 MedicationRequestInitialFillFields on MedicationRequestInitialFill {\n id\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 OrganizationFields on Organization {\n resourceType\n id\n identifier {\n ...IdentifierFields\n }\n endpoint {\n id\n reference\n type\n resource {\n ...EndpointFields\n }\n }\n name\n telecom {\n ...ContactPointFields\n }\n address {\n ...AddressFields\n }\n active\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment EndpointFields on Endpoint {\n identifier {\n ...IdentifierFields\n }\n name\n status\n connectionType {\n ...CodingFields\n }\n address\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
118
+ export declare const GetMedicationStatementsDocument = "\n query getMedicationStatements($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {\n medicationStatements(\n _getpagesoffset: $page\n _count: $pageSize\n code: $code\n id: $id\n _lastUpdated: $lastUpdated\n _sort: $sort\n status: $status\n _total: $total\n category: {value: {system: \"https://fhir.icanbwell.com/4_0_0/CodeSystem/medicationstatement/category|derived_medication_statement\"}}\n ) {\n id\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n status\n medicationCodeableConcept {\n ...CodeableConceptFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n effectivePeriod {\n ...PeriodFields\n }\n dosage {\n ...DosageFields\n }\n derivedFrom {\n id\n reference\n type\n }\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\n system\n code\n display\n}\n \n\n fragment DoseAndRateFields on DosageDoseAndRate {\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 duration\n durationMax\n durationUnit\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit\n timeOfDay\n when\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 ";
118
119
  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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 id\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n id\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 ";
119
120
  export declare const CancelAppointmentDocument = "\n mutation cancelAppointment($appointment: UpdateAppointmentInput!) {\n updateAppointment(appointment: $appointment) {\n id\n status\n }\n}\n ";
120
121
  export declare const CancellationReasonsDocument = "\n query cancellationReasons($organization: SearchReference!) {\n cancelationReasons(organization: $organization) {\n id\n title\n url\n concept {\n code\n display\n }\n }\n}\n ";
@@ -347,6 +348,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
347
348
  headers: Headers;
348
349
  status: number;
349
350
  }>;
351
+ getMedicationStatements(variables?: Types.GetMedicationStatementsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
352
+ data: Types.GetMedicationStatementsQueryResults;
353
+ errors?: GraphQLError[];
354
+ extensions?: any;
355
+ headers: Headers;
356
+ status: number;
357
+ }>;
350
358
  appointments(variables?: Types.AppointmentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
351
359
  data: Types.AppointmentsQueryResults;
352
360
  errors?: GraphQLError[];
@@ -2814,6 +2814,53 @@ ${PractitionerFieldsFragmentDoc}
2814
2814
  ${EncounterFieldsFragmentDoc}
2815
2815
  ${DosageFieldsFragmentDoc}
2816
2816
  ${MedicationRequestDispenseRequestFieldsFragmentDoc}`;
2817
+ export const GetMedicationStatementsDocument = `
2818
+ query getMedicationStatements($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
2819
+ medicationStatements(
2820
+ _getpagesoffset: $page
2821
+ _count: $pageSize
2822
+ code: $code
2823
+ id: $id
2824
+ _lastUpdated: $lastUpdated
2825
+ _sort: $sort
2826
+ status: $status
2827
+ _total: $total
2828
+ category: {value: {system: "https://fhir.icanbwell.com/4_0_0/CodeSystem/medicationstatement/category|derived_medication_statement"}}
2829
+ ) {
2830
+ id
2831
+ entry {
2832
+ id
2833
+ resource {
2834
+ id
2835
+ meta {
2836
+ ...MetaFields
2837
+ }
2838
+ status
2839
+ medicationCodeableConcept {
2840
+ ...CodeableConceptFields
2841
+ }
2842
+ reasonCode {
2843
+ ...CodeableConceptFields
2844
+ }
2845
+ effectivePeriod {
2846
+ ...PeriodFields
2847
+ }
2848
+ dosage {
2849
+ ...DosageFields
2850
+ }
2851
+ derivedFrom {
2852
+ id
2853
+ reference
2854
+ type
2855
+ }
2856
+ }
2857
+ }
2858
+ }
2859
+ }
2860
+ ${MetaFieldsFragmentDoc}
2861
+ ${CodeableConceptFieldsFragmentDoc}
2862
+ ${PeriodFieldsFragmentDoc}
2863
+ ${DosageFieldsFragmentDoc}`;
2817
2864
  export const AppointmentsDocument = `
2818
2865
  query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String], $status: SearchToken) {
2819
2866
  appointments(
@@ -3396,6 +3443,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
3396
3443
  getMedicationRequest(variables, requestHeaders) {
3397
3444
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationRequestDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationRequest', 'query', variables);
3398
3445
  },
3446
+ getMedicationStatements(variables, requestHeaders) {
3447
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationStatementsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationStatements', 'query', variables);
3448
+ },
3399
3449
  appointments(variables, requestHeaders) {
3400
3450
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(AppointmentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'appointments', 'query', variables);
3401
3451
  },
@@ -17698,6 +17698,294 @@ export type GetMedicationRequestQueryResults = {
17698
17698
  } | null> | null;
17699
17699
  } | null;
17700
17700
  };
17701
+ export type GetMedicationStatementsQueryVariables = Types.Exact<{
17702
+ page: Types.InputMaybe<Types.Scalars['Int']['input']>;
17703
+ pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
17704
+ code: Types.InputMaybe<Types.SearchToken>;
17705
+ id: Types.InputMaybe<Types.SearchString>;
17706
+ lastUpdated: Types.InputMaybe<Types.SearchDate>;
17707
+ sort: Types.InputMaybe<Array<Types.InputMaybe<Types.Scalars['String']['input']>> | Types.InputMaybe<Types.Scalars['String']['input']>>;
17708
+ status: Types.InputMaybe<Types.SearchToken>;
17709
+ total: Types.InputMaybe<Types.TotalType>;
17710
+ }>;
17711
+ export type GetMedicationStatementsQueryResults = {
17712
+ medicationStatements: {
17713
+ id: string | null;
17714
+ entry: Array<{
17715
+ id: string | null;
17716
+ resource: {
17717
+ id: string;
17718
+ status: any | null;
17719
+ meta: {
17720
+ versionId: string | null;
17721
+ lastUpdated: any | null;
17722
+ source: any | null;
17723
+ security: Array<{
17724
+ id: string | null;
17725
+ system: any | null;
17726
+ code: any | null;
17727
+ display: string | null;
17728
+ } | null> | null;
17729
+ tag: Array<{
17730
+ id: string | null;
17731
+ system: any | null;
17732
+ code: any | null;
17733
+ display: string | null;
17734
+ } | null> | null;
17735
+ } | null;
17736
+ medicationCodeableConcept: {
17737
+ id: string | null;
17738
+ text: string | null;
17739
+ coding: Array<{
17740
+ id: string | null;
17741
+ system: any | null;
17742
+ code: any | null;
17743
+ display: string | null;
17744
+ } | null> | null;
17745
+ } | null;
17746
+ reasonCode: Array<{
17747
+ id: string | null;
17748
+ text: string | null;
17749
+ coding: Array<{
17750
+ id: string | null;
17751
+ system: any | null;
17752
+ code: any | null;
17753
+ display: string | null;
17754
+ } | null> | null;
17755
+ } | null> | null;
17756
+ effectivePeriod: {
17757
+ start: any | null;
17758
+ end: any | null;
17759
+ } | null;
17760
+ dosage: Array<{
17761
+ id: string | null;
17762
+ asNeededBoolean: boolean | null;
17763
+ patientInstruction: string | null;
17764
+ sequence: number | null;
17765
+ text: string | null;
17766
+ additionalInstruction: Array<{
17767
+ id: string | null;
17768
+ text: string | null;
17769
+ coding: Array<{
17770
+ id: string | null;
17771
+ system: any | null;
17772
+ code: any | null;
17773
+ display: string | null;
17774
+ } | null> | null;
17775
+ } | null> | null;
17776
+ asNeededCodeableConcept: {
17777
+ id: string | null;
17778
+ text: string | null;
17779
+ coding: Array<{
17780
+ id: string | null;
17781
+ system: any | null;
17782
+ code: any | null;
17783
+ display: string | null;
17784
+ } | null> | null;
17785
+ } | null;
17786
+ doseAndRate: Array<{
17787
+ id: string | null;
17788
+ type: {
17789
+ id: string | null;
17790
+ text: string | null;
17791
+ coding: Array<{
17792
+ id: string | null;
17793
+ system: any | null;
17794
+ code: any | null;
17795
+ display: string | null;
17796
+ } | null> | null;
17797
+ } | null;
17798
+ doseRange: {
17799
+ low: {
17800
+ value: number | null;
17801
+ unit: string | null;
17802
+ code: any | null;
17803
+ comparator: any | null;
17804
+ system: any | null;
17805
+ } | null;
17806
+ high: {
17807
+ value: number | null;
17808
+ unit: string | null;
17809
+ code: any | null;
17810
+ comparator: any | null;
17811
+ system: any | null;
17812
+ } | null;
17813
+ } | null;
17814
+ doseQuantity: {
17815
+ value: number | null;
17816
+ unit: string | null;
17817
+ code: any | null;
17818
+ comparator: any | null;
17819
+ system: any | null;
17820
+ } | null;
17821
+ rateQuantity: {
17822
+ value: number | null;
17823
+ unit: string | null;
17824
+ code: any | null;
17825
+ comparator: any | null;
17826
+ system: any | null;
17827
+ } | null;
17828
+ rateRange: {
17829
+ low: {
17830
+ value: number | null;
17831
+ unit: string | null;
17832
+ code: any | null;
17833
+ comparator: any | null;
17834
+ system: any | null;
17835
+ } | null;
17836
+ high: {
17837
+ value: number | null;
17838
+ unit: string | null;
17839
+ code: any | null;
17840
+ comparator: any | null;
17841
+ system: any | null;
17842
+ } | null;
17843
+ } | null;
17844
+ rateRatio: {
17845
+ numerator: {
17846
+ value: number | null;
17847
+ unit: string | null;
17848
+ code: any | null;
17849
+ comparator: any | null;
17850
+ system: any | null;
17851
+ } | null;
17852
+ denominator: {
17853
+ value: number | null;
17854
+ unit: string | null;
17855
+ code: any | null;
17856
+ comparator: any | null;
17857
+ system: any | null;
17858
+ } | null;
17859
+ } | null;
17860
+ } | null> | null;
17861
+ maxDosePerAdministration: {
17862
+ value: number | null;
17863
+ unit: string | null;
17864
+ code: any | null;
17865
+ comparator: any | null;
17866
+ system: any | null;
17867
+ } | null;
17868
+ maxDosePerLifetime: {
17869
+ value: number | null;
17870
+ unit: string | null;
17871
+ code: any | null;
17872
+ comparator: any | null;
17873
+ system: any | null;
17874
+ } | null;
17875
+ maxDosePerPeriod: {
17876
+ numerator: {
17877
+ value: number | null;
17878
+ unit: string | null;
17879
+ code: any | null;
17880
+ comparator: any | null;
17881
+ system: any | null;
17882
+ } | null;
17883
+ denominator: {
17884
+ value: number | null;
17885
+ unit: string | null;
17886
+ code: any | null;
17887
+ comparator: any | null;
17888
+ system: any | null;
17889
+ } | null;
17890
+ } | null;
17891
+ method: {
17892
+ id: string | null;
17893
+ text: string | null;
17894
+ coding: Array<{
17895
+ id: string | null;
17896
+ system: any | null;
17897
+ code: any | null;
17898
+ display: string | null;
17899
+ } | null> | null;
17900
+ } | null;
17901
+ route: {
17902
+ id: string | null;
17903
+ text: string | null;
17904
+ coding: Array<{
17905
+ id: string | null;
17906
+ system: any | null;
17907
+ code: any | null;
17908
+ display: string | null;
17909
+ } | null> | null;
17910
+ } | null;
17911
+ site: {
17912
+ id: string | null;
17913
+ text: string | null;
17914
+ coding: Array<{
17915
+ id: string | null;
17916
+ system: any | null;
17917
+ code: any | null;
17918
+ display: string | null;
17919
+ } | null> | null;
17920
+ } | null;
17921
+ timing: {
17922
+ id: string | null;
17923
+ event: Array<any | null> | null;
17924
+ code: {
17925
+ id: string | null;
17926
+ text: string | null;
17927
+ coding: Array<{
17928
+ id: string | null;
17929
+ system: any | null;
17930
+ code: any | null;
17931
+ display: string | null;
17932
+ } | null> | null;
17933
+ } | null;
17934
+ repeat: {
17935
+ id: string | null;
17936
+ count: number | null;
17937
+ countMax: number | null;
17938
+ dayOfWeek: Array<any | null> | null;
17939
+ duration: number | null;
17940
+ durationMax: number | null;
17941
+ durationUnit: any | null;
17942
+ frequency: number | null;
17943
+ frequencyMax: number | null;
17944
+ offset: number | null;
17945
+ period: number | null;
17946
+ periodMax: number | null;
17947
+ periodUnit: any | null;
17948
+ timeOfDay: Array<any | null> | null;
17949
+ when: Array<any | null> | null;
17950
+ boundsDuration: {
17951
+ value: number | null;
17952
+ unit: string | null;
17953
+ code: any | null;
17954
+ comparator: any | null;
17955
+ system: any | null;
17956
+ } | null;
17957
+ boundsPeriod: {
17958
+ start: any | null;
17959
+ end: any | null;
17960
+ } | null;
17961
+ boundsRange: {
17962
+ low: {
17963
+ value: number | null;
17964
+ unit: string | null;
17965
+ code: any | null;
17966
+ comparator: any | null;
17967
+ system: any | null;
17968
+ } | null;
17969
+ high: {
17970
+ value: number | null;
17971
+ unit: string | null;
17972
+ code: any | null;
17973
+ comparator: any | null;
17974
+ system: any | null;
17975
+ } | null;
17976
+ } | null;
17977
+ } | null;
17978
+ } | null;
17979
+ } | null> | null;
17980
+ derivedFrom: Array<{
17981
+ id: string | null;
17982
+ reference: string | null;
17983
+ type: any | null;
17984
+ } | null> | null;
17985
+ } | null;
17986
+ } | null> | null;
17987
+ } | null;
17988
+ };
17701
17989
  export type AppointmentsQueryVariables = Types.Exact<{
17702
17990
  source: Types.InputMaybe<Types.SearchString>;
17703
17991
  id: Types.InputMaybe<Types.SearchString>;
@@ -4226,6 +4226,11 @@ export type BodyStructurePatientReference = {
4226
4226
  resource?: Maybe<Patient>;
4227
4227
  type?: Maybe<Scalars['URI']['output']>;
4228
4228
  };
4229
+ export type Bookable = {
4230
+ __typename?: 'Bookable';
4231
+ online?: Maybe<Scalars['Boolean']['output']>;
4232
+ phone?: Maybe<Scalars['Boolean']['output']>;
4233
+ };
4229
4234
  export type BootstrapConfiguration = {
4230
4235
  __typename?: 'BootstrapConfiguration';
4231
4236
  apertureProxyPageUrl: Scalars['String']['output'];
@@ -31147,6 +31152,7 @@ export type GuidanceResponseSubjectReference = {
31147
31152
  /** Unified search result type */
31148
31153
  export type HealthResourceSearchResult = {
31149
31154
  __typename?: 'HealthResourceSearchResult';
31155
+ bookable?: Maybe<Bookable>;
31150
31156
  content?: Maybe<Scalars['String']['output']>;
31151
31157
  endpoint?: Maybe<Array<Maybe<EndpointType>>>;
31152
31158
  gender?: Maybe<GenderEnum>;
@@ -51656,6 +51662,7 @@ export type ProviderLocation = {
51656
51662
  */
51657
51663
  name?: Maybe<Scalars['String']['output']>;
51658
51664
  position?: Maybe<Position>;
51665
+ scheduling?: Maybe<ProviderSchedule>;
51659
51666
  telecom?: Maybe<Array<Maybe<ProviderContactPoint>>>;
51660
51667
  type?: Maybe<Array<Maybe<ProviderCodeableConcept>>>;
51661
51668
  };
@@ -51713,6 +51720,11 @@ export type ProviderResults = {
51713
51720
  paging_info?: Maybe<PagingInfo>;
51714
51721
  results?: Maybe<Array<Maybe<ProviderResult>>>;
51715
51722
  };
51723
+ export type ProviderSchedule = {
51724
+ __typename?: 'ProviderSchedule';
51725
+ bookable?: Maybe<Bookable>;
51726
+ identifier?: Maybe<Array<Maybe<ProviderIdentifier>>>;
51727
+ };
51716
51728
  export type ProviderType = 'practice' | 'practitioner';
51717
51729
  /**
51718
51730
  * Provider Type enum
@@ -52438,6 +52450,7 @@ export type Query = {
52438
52450
  * If the element is present, it must have either a @value, an @id, or extensions
52439
52451
  */
52440
52452
  tasks?: Maybe<TaskBundle>;
52453
+ temp?: Maybe<Temp>;
52441
52454
  userProfile?: Maybe<Person>;
52442
52455
  verificationStatus?: Maybe<VerificationResult>;
52443
52456
  /**
@@ -54632,6 +54645,9 @@ export type QueryTasksArgs = {
54632
54645
  status?: InputMaybe<SearchToken>;
54633
54646
  subject?: InputMaybe<SearchReference>;
54634
54647
  };
54648
+ export type QueryTempArgs = {
54649
+ id: Scalars['ID']['input'];
54650
+ };
54635
54651
  export type QueryVisionPrescriptionsArgs = {
54636
54652
  _count?: InputMaybe<Scalars['Int']['input']>;
54637
54653
  _debug?: InputMaybe<Scalars['Boolean']['input']>;
@@ -64913,6 +64929,10 @@ export type TelemetryConfig = {
64913
64929
  collectorUrl: Scalars['String']['output'];
64914
64930
  enabled?: Maybe<Scalars['Boolean']['output']>;
64915
64931
  };
64932
+ export type Temp = {
64933
+ __typename?: 'Temp';
64934
+ id: Scalars['ID']['output'];
64935
+ };
64916
64936
  /**
64917
64937
  * TerminologyCapabilities
64918
64938
  * A TerminologyCapabilities resource documents a set of capabilities (behaviors)
@@ -24,4 +24,5 @@ export { CareTeamBundle, CareTeam } from "./care-team.js";
24
24
  export { EncounterBundle, Encounter } from "./encounter.js";
25
25
  export { MedicationDispenseBundle, MedicationDispense, } from "./medication-dispense.js";
26
26
  export { MedicationRequestBundle, MedicationRequest, } from "./medication-request.js";
27
+ export type { MedicationStatementBundle, MedicationStatement, } from "./medication-statement.js";
27
28
  export { DiagnosticReportBundle, DiagnosticReport, } from "./diagnostic-report.js";
@@ -27,7 +27,7 @@ export type MedicationRequest = {
27
27
  /**
28
28
  * Indicates the type of medication request (for example, where the medication is expected to be consumed or administered).
29
29
  */
30
- category: CodeableConcept | null;
30
+ category: (CodeableConcept | null)[] | null;
31
31
  /**
32
32
  * Identifiers associated with this medication request.
33
33
  */
@@ -0,0 +1,68 @@
1
+ import type { CodeableConcept, Dosage, EntryBundle, IdentifiedResourceEntry, Meta, Period, Reference } from "../common/index.js";
2
+ /**
3
+ * Represents a medication statement resource.
4
+ * A record of a medication that is being consumed by a patient.
5
+ * A MedicationStatement may indicate that the patient may be taking the medication now
6
+ * or has taken the medication in the past or will be taking the medication in the future.
7
+ *
8
+ * @category Models
9
+ * @title MedicationStatement
10
+ * @excerpt Represents a medication statement resource indicating a patient's medication usage.
11
+ */
12
+ export type MedicationStatement = {
13
+ /** Resource type */
14
+ resourceType: string | null;
15
+ /**
16
+ * The logical id of the resource.
17
+ */
18
+ id: string;
19
+ /**
20
+ * The metadata about the resource.
21
+ */
22
+ meta: Meta | null;
23
+ /**
24
+ * A code representing the patient or other source's judgment about the state of
25
+ * the medication used that this statement is about. Generally, this will be
26
+ * active or completed.
27
+ */
28
+ status: string | null;
29
+ /**
30
+ * Identifies the medication being consumed.
31
+ */
32
+ medicationCodeableConcept: CodeableConcept | null;
33
+ /**
34
+ * A reason for why the medication is being/was taken.
35
+ */
36
+ reasonCode: (CodeableConcept | null)[] | null;
37
+ /**
38
+ * The interval of time during which it is being asserted that the patient
39
+ * is/was/will be taking the medication (or was not taking, when the
40
+ * MedicationStatement.taken element is No).
41
+ */
42
+ effectivePeriod: Period | null;
43
+ /**
44
+ * Indicates how the medication is/was or should be taken by the patient.
45
+ */
46
+ dosage: (Dosage | null)[] | null;
47
+ /**
48
+ * Allows linking the MedicationStatement to the underlying MedicationRequest,
49
+ * or to other information that supports or is used to derive the MedicationStatement.
50
+ */
51
+ derivedFrom: (Reference | null)[] | null;
52
+ };
53
+ /**
54
+ * Entry in medication statement bundle.
55
+ *
56
+ * @category Models
57
+ * @title MedicationStatementEntry
58
+ * @excerpt Entry in medication statement bundle.
59
+ */
60
+ export type MedicationStatementEntry = IdentifiedResourceEntry<MedicationStatement>;
61
+ /**
62
+ * Bundle of medication statement results.
63
+ *
64
+ * @category Models
65
+ * @title MedicationStatementBundle
66
+ * @excerpt Bundle of medication statement results.
67
+ */
68
+ export type MedicationStatementBundle = EntryBundle<MedicationStatementEntry>;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "2.0.0-alpha.0-rc.1760371148",
3
+ "version": "2.0.0-alpha.0-rc.1760723921",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",