@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1764141671 → 2.0.0-beta-rc.1764702350

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-beta-rc.1764141671";
4
+ export declare const VERSION = "2.0.0-beta-rc.1764702350";
@@ -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-beta-rc.1764141671";
4
+ export const VERSION = "2.0.0-beta-rc.1764702350";
@@ -1,10 +1,9 @@
1
- import type { AllergyIntoleranceGroupsResponse, AllergyIntoleranceResponse, CarePlanGroupsResponse, CarePlanResponse, CareTeamResponse, ConditionGroupsResponse, ConditionResponse, DiagnosticReportLabGroupsResponse, DiagnosticReportResponse, EncounterGroupsResponse, EncounterResponse, HealthSummary, ImmunizationGroupsResponse, ImmunizationResponse, LabGroupsResponse, LabKnowledgeResponse, LabResponse, MedicationDispenseResponse, MedicationGroupsResponse, MedicationKnowledgeResponse, MedicationPricingResponse, MedicationRequestResponse, MedicationStatementResponse, ProcedureGroupsResponse, ProcedureResponse, VitalSignGroupsResponse, VitalSignResponse } from "../../../models/health-data/index.js";
1
+ import type { AllergyIntoleranceGroupsResponse, AllergyIntoleranceResponse, CarePlanGroupsResponse, CarePlanResponse, CareTeamResponse, ConditionGroupsResponse, ConditionResponse, DiagnosticReportLabGroupsResponse, DiagnosticReportResponse, EncounterGroupsResponse, EncounterResponse, HealthSummary, ImmunizationGroupsResponse, ImmunizationResponse, LabGroupsResponse, LabKnowledgeResponse, LabResponse, MedicationDispenseResponse, MedicationGroupsResponse, MedicationKnowledgeResponse, MedicationRequestResponse, MedicationStatementResponse, ProcedureGroupsResponse, ProcedureResponse, VitalSignGroupsResponse, VitalSignResponse } 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";
5
5
  import { LabKnowledgeRequest } from "./lab-knowledge-request.js";
6
6
  import { MedicationKnowledgeRequest } from "./medication-knowledge-request.js";
7
- import { MedicationPricingRequest } from "./medication-pricing-request.js";
8
7
  /**
9
8
  * Health Manager for patient health records and clinical data access.
10
9
  * Provides methods for retrieving health care records including conditions, medications,
@@ -405,20 +404,4 @@ export interface HealthManager {
405
404
  * ```
406
405
  */
407
406
  getLabKnowledge(request?: LabKnowledgeRequest): Promise<BWellQueryResult<LabKnowledgeResponse, BaseManagerError>>;
408
- /**
409
- * Retrieves medication pricing information.
410
- *
411
- * @param request {MedicationPricingRequest} - Request class instance for specifying medication pricing parameters.
412
- * @returns {Promise<BWellQueryResult<MedicationPricingResponse>>} A promise resolving to an object representing the medication pricing information.
413
- *
414
- * @example
415
- * ```typescript
416
- * const medicationPricing = await sdk.health.getMedicationPricing(
417
- * new MedicationPricingRequest({
418
- * medicationStatementId: '123',
419
- * })
420
- * );
421
- * ```
422
- */
423
- getMedicationPricing(request: MedicationPricingRequest): Promise<BWellQueryResult<MedicationPricingResponse, BaseManagerError>>;
424
407
  }
@@ -1,5 +1,4 @@
1
1
  export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, BinaryRequest, ConditionsRequest, ConditionGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, DiagnosticReportLabGroupsRequest, } from "./health-data-request.js";
2
- export { MedicationPricingRequest, MedicationPricingRequestInput, } from "./medication-pricing-request.js";
3
2
  export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
4
3
  export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
5
4
  export { HealthManager } from "./health-manager.js";
@@ -1,4 +1,3 @@
1
1
  export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, BinaryRequest, ConditionsRequest, ConditionGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, DiagnosticReportLabGroupsRequest, } from "./health-data-request.js";
2
- export { MedicationPricingRequest, } from "./medication-pricing-request.js";
3
2
  export { MedicationKnowledgeRequest, } from "./medication-knowledge-request.js";
4
3
  export { LabKnowledgeRequest, } from "./lab-knowledge-request.js";
@@ -36,5 +36,4 @@ export declare class GraphQLHealthManager extends GraphQLManager implements Heal
36
36
  getDiagnosticReports(request?: health.HealthDataRequest): Promise<BWellQueryResult<models.DiagnosticReportResponse, BaseManagerError>>;
37
37
  getMedicationKnowledge(request: health.MedicationKnowledgeRequest): Promise<BWellQueryResult<models.MedicationKnowledgeResponse, BaseManagerError>>;
38
38
  getLabKnowledge(request?: health.LabKnowledgeRequest): Promise<BWellQueryResult<models.LabKnowledgeResponse, BaseManagerError>>;
39
- getMedicationPricing(request: health.MedicationPricingRequest): Promise<BWellQueryResult<models.MedicationPricingResponse, BaseManagerError>>;
40
39
  }
@@ -622,28 +622,5 @@ export class GraphQLHealthManager extends GraphQLManager {
622
622
  return new BWellQueryResult(__classPrivateFieldGet(this, _GraphQLHealthManager_healthDataResponseFactory, "f").transformGroupQueryResult(bundle), result.error);
623
623
  });
624
624
  }
625
- getMedicationPricing(request) {
626
- return __awaiter(this, void 0, void 0, function* () {
627
- var _a;
628
- const validationResult = this.validateRequest(request);
629
- if (validationResult.failure()) {
630
- return validationResult.toQueryResult();
631
- }
632
- __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getMedicationPricing...");
633
- const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getMedicationPricing({
634
- request: request.data(),
635
- }));
636
- __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getMedicationPricing complete");
637
- if (result.hasError()) {
638
- __classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getMedicationPricing errors", result.error);
639
- }
640
- if (isNullOrUndefined((_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.getMedicationPricing)) {
641
- return new BWellQueryResult(undefined, result.error);
642
- }
643
- const bundle = result.data
644
- .getMedicationPricing;
645
- return new BWellQueryResult(bundle, result.error);
646
- });
647
- }
648
625
  }
649
626
  _GraphQLHealthManager_sdk = new WeakMap(), _GraphQLHealthManager_logger = new WeakMap(), _GraphQLHealthManager_healthDataRequestFactory = new WeakMap(), _GraphQLHealthManager_healthDataResponseFactory = new WeakMap(), _GraphQLHealthManager_getEncountersRequestFactory = new WeakMap(), _GraphQLHealthManager_getMedicationDispenseRequestFactory = new WeakMap();
@@ -122,7 +122,6 @@ export declare const GetLabsDocument = "\n query getLabs($page: Int, $pageSiz
122
122
  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 ";
123
123
  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 ";
124
124
  export declare const GetMedicationKnowledgeDocument = "\n query getMedicationKnowledge($request: MedicationKnowledgeRequest) {\n getMedicationKnowledge(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\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 ";
125
- 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 currency\n value\n}\n ";
126
125
  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 ";
127
126
  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 ";
128
127
  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 ";
@@ -378,13 +377,6 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
378
377
  headers: Headers;
379
378
  status: number;
380
379
  }>;
381
- getMedicationPricing(variables?: Types.GetMedicationPricingQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
382
- data: Types.GetMedicationPricingQueryResults;
383
- errors?: GraphQLError[];
384
- extensions?: any;
385
- headers: Headers;
386
- status: number;
387
- }>;
388
380
  getMedicationRequest(variables?: Types.GetMedicationRequestQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
389
381
  data: Types.GetMedicationRequestQueryResults;
390
382
  errors?: GraphQLError[];
@@ -3164,20 +3164,6 @@ export const GetMedicationKnowledgeDocument = `
3164
3164
  }
3165
3165
  }
3166
3166
  ${PagingFieldsFragmentDoc}`;
3167
- export const GetMedicationPricingDocument = `
3168
- query getMedicationPricing($request: MedicationPricingRequest) {
3169
- getMedicationPricing(request: $request) {
3170
- resources {
3171
- pharmacy
3172
- couponUrl
3173
- drugUrl
3174
- price {
3175
- ...MoneyResourceFields
3176
- }
3177
- }
3178
- }
3179
- }
3180
- ${MoneyResourceFieldsFragmentDoc}`;
3181
3167
  export const GetMedicationRequestDocument = `
3182
3168
  query getMedicationRequest($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
3183
3169
  medicationRequests(
@@ -3931,9 +3917,6 @@ export function getSdk(client, withWrapper = defaultWrapper) {
3931
3917
  getMedicationKnowledge(variables, requestHeaders) {
3932
3918
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationKnowledgeDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationKnowledge', 'query', variables);
3933
3919
  },
3934
- getMedicationPricing(variables, requestHeaders) {
3935
- return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationPricingDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationPricing', 'query', variables);
3936
- },
3937
3920
  getMedicationRequest(variables, requestHeaders) {
3938
3921
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationRequestDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationRequest', 'query', variables);
3939
3922
  },
@@ -17482,22 +17482,6 @@ export type GetMedicationKnowledgeQueryResults = {
17482
17482
  }>;
17483
17483
  };
17484
17484
  };
17485
- export type GetMedicationPricingQueryVariables = Types.Exact<{
17486
- request: Types.InputMaybe<Types.MedicationPricingRequest>;
17487
- }>;
17488
- export type GetMedicationPricingQueryResults = {
17489
- getMedicationPricing: {
17490
- resources: Array<{
17491
- pharmacy: string;
17492
- couponUrl: string;
17493
- drugUrl: string;
17494
- price: {
17495
- currency: any | null;
17496
- value: number | null;
17497
- } | null;
17498
- }>;
17499
- };
17500
- };
17501
17485
  export type GetMedicationRequestQueryVariables = Types.Exact<{
17502
17486
  page: Types.InputMaybe<Types.Scalars['Int']['input']>;
17503
17487
  pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
@@ -6,4 +6,4 @@
6
6
  * @title DataConnectionStatus
7
7
  * @excerpt DataConnectionStatus enum representing the current status of a data connection...
8
8
  */
9
- export type DataConnectionStatus = "CONNECTED" | "DELETED" | "DISCONNECTED" | "ERROR" | "EXPIRED";
9
+ export type DataConnectionStatus = "CONNECTED" | "DELETED" | "DISCONNECTED" | "ERROR" | "EXPIRED" | "ACCESS_ENDED";
@@ -6,4 +6,4 @@
6
6
  * @title SyncStatus
7
7
  * @excerpt SyncStatus enum representing the synchronization status of a connection...
8
8
  */
9
- export type SyncStatus = "ERROR" | "PENDING" | "RETRIEVED" | "RETRIEVING";
9
+ export type SyncStatus = "ERROR" | "PENDING" | "RETRIEVED" | "RETRIEVING" | "DELETING" | "DATA_DELETED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "2.0.0-beta-rc.1764141671",
3
+ "version": "2.0.0-beta-rc.1764702350",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,30 +0,0 @@
1
- import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
2
- /**
3
- * Input type for medication pricing requests. Used to fetch pricing information for medications.
4
- * @category Inputs
5
- * @title MedicationPricingRequestInput
6
- * @excerpt Input for fetching medication pricing information
7
- */
8
- export type MedicationPricingRequestInput = {
9
- medicationStatementId: string;
10
- };
11
- /**
12
- * Validator for medication pricing requests.
13
- */
14
- export declare class MedicationPricingRequestValidator implements Validator<MedicationPricingRequestInput> {
15
- /**
16
- * Validates the paged request properties, as well as the medication statement id.
17
- * @param data
18
- * @param errors
19
- */
20
- validate(data: MedicationPricingRequestInput, errors: ErrorsCollector): void;
21
- }
22
- /**
23
- * Request object for fetching medication pricing data.
24
- * @category Requests
25
- * @title MedicationPricingRequest
26
- * @excerpt Request object for fetching medication pricing data
27
- */
28
- export declare class MedicationPricingRequest extends ValidationRequest<MedicationPricingRequestInput> {
29
- protected validator: MedicationPricingRequestValidator;
30
- }
@@ -1,29 +0,0 @@
1
- import { ValidationRequest, } from "../../../requests/index.js";
2
- import { isBlank } from "../../../utils/string-utils.js";
3
- /**
4
- * Validator for medication pricing requests.
5
- */
6
- export class MedicationPricingRequestValidator {
7
- /**
8
- * Validates the paged request properties, as well as the medication statement id.
9
- * @param data
10
- * @param errors
11
- */
12
- validate(data, errors) {
13
- if (isBlank(data.medicationStatementId)) {
14
- errors.add("The medication pricing request must possess a medication statement id.");
15
- }
16
- }
17
- }
18
- /**
19
- * Request object for fetching medication pricing data.
20
- * @category Requests
21
- * @title MedicationPricingRequest
22
- * @excerpt Request object for fetching medication pricing data
23
- */
24
- export class MedicationPricingRequest extends ValidationRequest {
25
- constructor() {
26
- super(...arguments);
27
- this.validator = new MedicationPricingRequestValidator();
28
- }
29
- }