@icanbwell/bwell-sdk-ts 1.61.0 → 1.62.0-rc.1771245003

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export declare const VERSION = "1.61.0";
4
+ export declare const VERSION = "1.62.0-rc.1771245003";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export const VERSION = "1.61.0";
4
+ export const VERSION = "1.62.0-rc.1771245003";
@@ -1,4 +1,4 @@
1
- import { ClaimStatus, ClaimType } from "../../../graphql/schema.js";
1
+ import { ClaimStatus, ClaimType, SortOrder } from "../../../graphql/schema.js";
2
2
  import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
3
3
  import { SearchDate } from "../requests/search-date.js";
4
4
  /**
@@ -32,6 +32,19 @@ export type ClaimSummaryRequestInput = PagedRequestInput & {
32
32
  * Only claims where the service start date >= this value will be returned.
33
33
  */
34
34
  servicePeriod?: SearchDate;
35
+ /**
36
+ * Specifies sort options for the search.
37
+ */
38
+ sortBy?: Array<{
39
+ /**
40
+ * The provider search field to sort by
41
+ */
42
+ field: string;
43
+ /**
44
+ * The direction to sort by
45
+ */
46
+ order?: SortOrder;
47
+ }>;
35
48
  };
36
49
  /**
37
50
  * Validator for ClaimSummary request inputs.
@@ -1,19 +1,26 @@
1
+ import { SortOrder } from "../../../graphql/schema.js";
1
2
  /**
2
3
  * Factory to create ClaimSummary GraphQL variables from ClaimSummaryRequest.
3
4
  */
4
5
  export class GraphQLClaimSummaryRequestFactory {
5
6
  create(request) {
6
- var _a, _b;
7
+ var _a, _b, _c, _d;
7
8
  const input = request.data();
9
+ // Convert sortBy array to sort string array format
10
+ // If order is 'desc', prefix the field with '-'
11
+ const sort = (_b = (_a = input.sortBy) === null || _a === void 0 ? void 0 : _a.map((sortItem) => sortItem.order === SortOrder.Desc
12
+ ? `-${sortItem.field}`
13
+ : sortItem.field)) !== null && _b !== void 0 ? _b : null;
8
14
  return {
9
15
  request: {
10
16
  coverage: input.coverage,
11
- claimType: (_a = input.claimType) !== null && _a !== void 0 ? _a : null,
12
- claimStatus: (_b = input.claimStatus) !== null && _b !== void 0 ? _b : null,
17
+ claimType: (_c = input.claimType) !== null && _c !== void 0 ? _c : null,
18
+ claimStatus: (_d = input.claimStatus) !== null && _d !== void 0 ? _d : null,
13
19
  dateReceived: input.dateReceived,
14
20
  servicePeriod: input.servicePeriod,
15
21
  page: input.page,
16
22
  pageSize: input.pageSize,
23
+ sort: sort,
17
24
  },
18
25
  };
19
26
  }
@@ -99,7 +99,7 @@ export declare const GetMemberConnectionsDocument = "\n query getMemberConnec
99
99
  export declare const GetOauthUrlDocument = "\n query getOauthUrl($connectionId: String!) {\n getOauthUrl(connectionId: $connectionId) {\n redirectUrl\n }\n}\n ";
100
100
  export declare const UpdateDeviceRegistrationDocument = "\n mutation updateDeviceRegistration($deviceToken: String!, $platformName: String!, $applicationName: String!, $notificationPreference: Boolean!) {\n updateDeviceRegistration(\n input: {deviceToken: $deviceToken, platform: $platformName, applicationName: $applicationName, notificationPreference: $notificationPreference}\n ) {\n id\n }\n}\n ";
101
101
  export declare const PublishEventDocument = "\n mutation publishEvent($eventType: EventType!, $messageId: String, $notificationId: String) {\n publishEvent(\n input: {eventType: $eventType, campaignId: $notificationId, messageId: $messageId}\n ) {\n id\n }\n}\n ";
102
- export declare const GetClaimSummaryDocument = "\n query getClaimSummary($request: ClaimSummaryQueryRequest!) {\n getClaimSummary(request: $request) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n resources {\n id\n claimNumber\n claimType\n claimStatus\n dateReceived\n dateProcessed\n serviceDateStart\n serviceDateEnd\n networkStatus\n provider {\n name\n specialty\n }\n costBreakdown {\n ...ClaimCostBreakdownFields\n }\n services {\n lineNumber\n procedure {\n code\n system\n description\n }\n serviceDateStart\n serviceDateEnd\n costBreakdown {\n ...ClaimCostBreakdownFields\n }\n }\n }\n }\n}\n \n fragment ClaimCostBreakdownFields on ClaimCostBreakdown {\n billedAmount\n allowedAmount\n patientResponsibility\n insurancePaid\n discount\n copay\n coinsurance\n otherInsurancePaid\n appliedToDeductible\n}\n ";
102
+ export declare const GetClaimSummaryDocument = "\n query getClaimSummary($request: ClaimSummaryQueryRequest!) {\n getClaimSummary(request: $request) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n resources {\n id\n claimNumber\n claimType\n claimStatus\n servicedDate\n dateReceived\n dateProcessed\n serviceDateStart\n serviceDateEnd\n networkStatus\n provider {\n name\n specialty\n }\n costBreakdown {\n ...ClaimCostBreakdownFields\n }\n services {\n lineNumber\n servicedDate\n procedure {\n code\n system\n description\n }\n serviceDateStart\n serviceDateEnd\n costBreakdown {\n ...ClaimCostBreakdownFields\n }\n }\n }\n }\n}\n \n fragment ClaimCostBreakdownFields on ClaimCostBreakdown {\n billedAmount\n allowedAmount\n patientResponsibility\n insurancePaid\n discount\n copay\n coinsurance\n otherInsurancePaid\n appliedToDeductible\n}\n ";
103
103
  export declare const GetCoverageSummaryDocument = "\n query getCoverageSummary($request: CoverageSummaryQueryRequest) {\n getCoverageSummary(request: $request) {\n resources {\n id\n planInfo {\n productId\n productName\n planId\n planName\n memberId\n groupId\n subscriberId\n lineOfBusiness\n effectiveDate\n terminationDate\n status\n insurer\n reference\n }\n subscriber {\n name\n reference\n }\n dependents {\n total\n members {\n name\n reference\n }\n }\n individualInsuranceDetails {\n references\n deductibles {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n outOfPocket {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n }\n familyInsuranceDetails {\n references\n deductibles {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n outOfPocket {\n medical {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n dental {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n vision {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n pharmacy {\n inNetwork\n inNetworkMax\n outOfNetwork\n outOfNetworkMax\n }\n }\n }\n claimsSummary {\n references\n medical {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n vision {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n dental {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n pharmacy {\n totalBilled\n insurancePaid\n patientResponsibility\n }\n }\n }\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n }\n}\n ";
104
104
  export declare const GetCoveragesDocument = "\n query getCoverages($id: SearchString, $lastUpdated: SearchDate, $sort: [String], $pageSize: Int, $page: Int, $patient: SearchReference, $beneficiary: SearchReference, $total: TotalType) {\n coverages(\n id: $id\n _lastUpdated: $lastUpdated\n _sort: $sort\n _count: $pageSize\n _getpagesoffset: $page\n patient: $patient\n beneficiary: $beneficiary\n _total: $total\n ) {\n total\n entry {\n id\n resource {\n ...CoverageFields\n }\n }\n }\n}\n \n fragment CoverageFields on Coverage {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n policyHolder {\n ...CoveragePolicyHolderReferenceFields\n }\n subscriberId\n beneficiary {\n ...CoverageBeneficiaryReferenceFields\n }\n relationship {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n payor {\n ...CoveragePayorReferenceFields\n }\n class {\n ...CoverageClassFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CoveragePolicyHolderReferenceFields on CoveragePolicyHolderReference {\n reference\n display\n type\n}\n \n\n fragment CoverageBeneficiaryReferenceFields on CoverageBeneficiaryReference {\n reference\n display\n type\n resource {\n ...PatientFields\n }\n}\n \n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n birthDate\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment CoveragePayorReferenceFields on CoveragePayorReference {\n reference\n display\n type\n resource {\n ... on Organization {\n __typename\n organizationName: name\n }\n ... on RelatedPerson {\n __typename\n name {\n ...HumanNameFields\n }\n }\n ... on Patient {\n __typename\n name {\n ...HumanNameFields\n }\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment CoverageClassFields on CoverageClass {\n id\n type {\n ...CodeableConceptFields\n }\n value\n name\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
105
105
  export declare const GetExplanationOfBenefitsDocument = "\n query getExplanationOfBenefits($id: SearchString, $lastUpdated: SearchDate, $page: Int, $pageSize: Int, $patient: SearchReference, $provider: SearchReference, $coverage: SearchReference, $status: SearchToken, $created: SearchDate, $sort: [String], $total: TotalType) {\n explanationOfBenefits(\n id: $id\n _count: $pageSize\n _lastUpdated: $lastUpdated\n _getpagesoffset: $page\n patient: $patient\n provider: $provider\n coverage: $coverage\n status: $status\n created: $created\n _sort: $sort\n _total: $total\n ) {\n id\n total\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n use\n patient {\n reference\n type\n display\n resource {\n ...PatientFields\n }\n }\n adjudication {\n ...ExplanationOfBenefitAdjudicationFields\n }\n billablePeriod {\n ...PeriodFields\n }\n benefitPeriod {\n ...PeriodFields\n }\n insurer {\n reference\n type\n display\n }\n provider {\n reference\n type\n display\n resource {\n ... on Practitioner {\n __typename\n ...PractitionerFields\n }\n ... on Organization {\n __typename\n organizationName: name\n meta {\n ...MetaFields\n }\n }\n }\n }\n related {\n relationship {\n ...CodeableConceptFields\n }\n reference {\n ...IdentifierFields\n }\n }\n payee {\n type {\n ...CodeableConceptFields\n }\n party {\n reference\n type\n display\n }\n }\n outcome\n careTeam {\n id\n sequence\n provider {\n reference\n type\n display\n }\n qualification {\n ...CodeableConceptFields\n }\n role {\n ...CodeableConceptFields\n }\n }\n supportingInfo {\n sequence\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n timingDate\n timingPeriod {\n ...PeriodFields\n }\n valueBoolean\n valueString\n valueQuantity {\n ...QuantityFields\n }\n valueAttachment {\n ...AttachmentFields\n }\n valueReference {\n reference\n type\n display\n }\n reason {\n ...CodingFields\n }\n }\n insurance {\n focal\n coverage {\n reference\n type\n display\n }\n }\n payment {\n id\n adjustment {\n ...MoneyResourceFields\n }\n amount {\n ...MoneyResourceFields\n }\n date\n type {\n ...CodeableConceptFields\n }\n }\n processNote {\n type\n text\n }\n created\n diagnosis {\n id\n sequence\n diagnosisCodeableConcept {\n ...CodeableConceptFields\n }\n diagnosisReference {\n reference\n type\n display\n }\n type {\n ...CodeableConceptFields\n }\n onAdmission {\n ...CodeableConceptFields\n }\n packageCode {\n ...CodeableConceptFields\n }\n }\n item {\n id\n sequence\n bodySite {\n ...CodeableConceptFields\n }\n adjudication {\n ...ExplanationOfBenefitAdjudicationFields\n }\n locationCodeableConcept {\n ...CodeableConceptFields\n }\n modifier {\n ...CodeableConceptFields\n }\n net {\n ...MoneyResourceFields\n }\n noteNumber\n productOrService {\n ...CodeableConceptFields\n }\n quantity {\n ...QuantityFields\n }\n revenue {\n ...CodeableConceptFields\n }\n servicedDate\n servicedPeriod {\n ...PeriodFields\n }\n }\n subType {\n ...CodeableConceptFields\n }\n total {\n amount {\n ...MoneyResourceFields\n }\n category {\n ...CodeableConceptFields\n }\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 system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n birthDate\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ExplanationOfBenefitAdjudicationFields on ExplanationOfBenefitAdjudication {\n id\n category {\n ...CodeableConceptFields\n }\n reason {\n ...CodeableConceptFields\n }\n amount {\n ...MoneyResourceFields\n }\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment MoneyResourceFields on Money {\n value\n currency\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment AttachmentFields on Attachment {\n contentType\n data\n url\n title\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment MoneyResourceFields on Money {\n value\n currency\n}\n ";
@@ -154,7 +154,7 @@ export declare const GetQuestionnairesDocument = "\n query getQuestionnaires(
154
154
  export declare const SaveQuestionnaireResponseDocument = "\n mutation saveQuestionnaireResponse($questionnaireResponse: QuestionnaireResponseInput!) {\n saveQuestionnaireResponse(input: $questionnaireResponse) {\n ...QuestionnaireResponseFields\n }\n}\n \n fragment QuestionnaireResponseFields on QuestionnaireResponse {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n questionnaire\n status\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n item {\n ...QuestionnaireResponseItemFields\n }\n }\n }\n }\n }\n contained {\n ...QuestionnaireFields\n }\n subject {\n reference\n type\n display\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {\n linkId\n text\n answer {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireFields on Questionnaire {\n resourceType\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n name\n title\n useContext {\n id\n code {\n ...CodingFields\n }\n valueReference {\n id\n reference\n identifier {\n ...IdentifierFields\n }\n display\n }\n }\n status\n description\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n item {\n ...QuestionnaireItemFields\n }\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 system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuestionnaireItemFields on QuestionnaireItem {\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n linkId\n prefix\n text\n type\n enableWhen {\n question\n operator\n answerBoolean\n answerDecimal\n answerInteger\n answerDate\n answerDateTime\n answerTime\n answerString\n answerCoding {\n ...CodingFields\n }\n answerQuantity {\n ...QuantityFields\n }\n answerReference {\n reference\n type\n display\n }\n }\n enableBehavior\n required\n repeats\n readOnly\n maxLength\n answerOption {\n valueInteger\n valueDate\n valueString\n valueCoding {\n ...CodingFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n initialSelected\n }\n initial {\n valueBoolean\n valueDecimal\n valueInteger\n valueDate\n valueDateTime\n valueString\n valueUri\n valueAttachment {\n contentType\n data\n url\n title\n }\n valueCoding {\n ...CodingFields\n }\n valueQuantity {\n ...QuantityFields\n }\n valueReference {\n reference\n type\n display\n extension {\n url\n valueBoolean\n valueInteger\n valueString\n valueExpression {\n description\n name\n language\n expression\n reference\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueDateTime\n valueCode\n valueUri\n valueReference {\n reference\n type\n display\n }\n }\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n ";
155
155
  export declare const ProviderSearchDocument = "\n query providerSearch($client: [Client], $searchTerm: String, $includePopulatedPROAonly: Boolean, $specialtyFilters: [InputCoding], $organizationTypeFilters: [OrganizationType], $gender: Gender, $location: SearchPosition, $sortBy: [OrderBy], $filterFields: [FilterField], $page: Int, $pageSize: Int) {\n providers(\n client: $client\n search: $searchTerm\n specialty: $specialtyFilters\n organization_type: $organizationTypeFilters\n include_populated_PROA_only: $includePopulatedPROAonly\n gender: $gender\n search_position: $location\n order_by: $sortBy\n filter_values: $filterFields\n page_number: $page\n page_size: $pageSize\n ) {\n paging_info {\n page_number\n page_size\n total_items\n total_pages\n }\n filter_values {\n field\n values {\n value\n count\n }\n }\n results {\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n iconString\n organization_type {\n coding {\n code\n system\n display\n }\n text\n }\n content\n gender\n location {\n name\n identifier {\n type {\n text\n coding {\n system\n code\n display\n }\n }\n value\n system\n }\n alias\n description\n address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n system\n value\n rank\n }\n }\n specialty {\n code\n system\n display\n }\n id\n photo {\n contentType\n url\n title\n }\n name {\n ...HumanNameFields\n }\n telecom {\n system\n value\n rank\n }\n practitioner_qualification {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n code {\n coding {\n code\n system\n display\n }\n text\n }\n period {\n start\n end\n }\n issuer {\n reference\n display\n }\n }\n provider_type\n characteristic {\n code\n system\n display\n }\n organization {\n name\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n }\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
156
156
  export declare const RequestConnectionDocument = "\n mutation requestConnection($city: String, $institution: String, $provider: String, $state: String) {\n requestConnection(\n city: $city\n institution: $institution\n provider: $provider\n state: $state\n ) {\n resourceType\n issue {\n severity\n code\n details {\n text\n }\n }\n }\n}\n ";
157
- export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n id\n content\n specialty {\n code\n system\n display\n }\n bookable {\n online\n phone\n }\n location {\n identifier {\n value\n system\n }\n description\n scheduling {\n identifier {\n value\n system\n }\n bookable {\n online\n phone\n }\n }\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n telecom {\n system\n value\n }\n distanceInMiles\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n score\n scores {\n value\n description\n calculation\n }\n communication {\n coding {\n code\n system\n display\n }\n text\n }\n acceptingNewPatients\n acceptedAgeRanges {\n years {\n gt\n gte\n lt\n lte\n }\n months {\n gt\n gte\n lt\n lte\n }\n }\n partOf {\n id\n content\n endpointName\n }\n }\n }\n}\n ";
157
+ export declare const SearchHealthResourcesDocument = "\n query SearchHealthResources($searchInput: SearchHealthResourcesInput) {\n searchHealthResources(searchInput: $searchInput) {\n pagingInfo {\n pageNumber\n pageSize\n totalItems\n totalPages\n }\n filterValues {\n field\n values {\n value\n count\n }\n }\n results {\n type\n id\n content\n specialty {\n code\n system\n display\n }\n bookable {\n online\n phone\n }\n location {\n identifier {\n value\n system\n }\n description\n scheduling {\n identifier {\n value\n system\n }\n bookable {\n online\n phone\n }\n }\n name\n address {\n line\n city\n state\n postalCode\n country\n }\n position {\n latitude\n longitude\n }\n telecom {\n system\n value\n }\n distanceInMiles\n hoursOfOperation {\n daysOfWeek\n openingTime\n closingTime\n }\n organizationName\n }\n organization {\n name\n endpoint {\n name\n status\n address\n }\n }\n npi\n gender\n iconString\n endpoint {\n identifier {\n type {\n coding {\n code\n system\n display\n }\n text\n }\n value\n system\n }\n name\n status\n connectionType {\n code\n system\n display\n }\n address\n }\n score\n scores {\n value\n description\n calculation\n }\n communication {\n coding {\n code\n system\n display\n }\n text\n }\n acceptingNewPatients\n acceptedAgeRanges {\n years {\n gt\n gte\n lt\n lte\n }\n months {\n gt\n gte\n lt\n lte\n }\n }\n partOf {\n id\n content\n endpointName\n }\n reviewScore {\n group {\n population {\n count\n }\n measureScore {\n value\n }\n }\n }\n practitionerQualification {\n code {\n coding {\n code\n system\n }\n }\n period {\n start\n }\n issuer {\n reference\n display\n }\n }\n }\n }\n}\n ";
158
158
  export declare const CreateSupportCommentDocument = "\n mutation CreateSupportComment($input: CreateSupportCommentInput!) {\n createSupportComment(input: $input) {\n comment {\n id\n body\n htmlBody\n author {\n name\n email\n }\n attachments {\n id\n fileName\n contentType\n size\n }\n createdAt\n }\n }\n}\n ";
159
159
  export declare const CreateSupportRequestDocument = "\n mutation CreateSupportRequest($input: CreateSupportRequestInput!) {\n createSupportRequest(input: $input) {\n data {\n id\n subject\n category\n created\n lastActivity\n status\n }\n }\n}\n ";
160
160
  export declare const DeleteSupportAttachmentDocument = "\n mutation DeleteSupportAttachment($input: DeleteSupportAttachmentInput!) {\n deleteSupportAttachment(input: $input) {\n status\n }\n}\n ";
@@ -1859,6 +1859,7 @@ export const GetClaimSummaryDocument = `
1859
1859
  claimNumber
1860
1860
  claimType
1861
1861
  claimStatus
1862
+ servicedDate
1862
1863
  dateReceived
1863
1864
  dateProcessed
1864
1865
  serviceDateStart
@@ -1873,6 +1874,7 @@ export const GetClaimSummaryDocument = `
1873
1874
  }
1874
1875
  services {
1875
1876
  lineNumber
1877
+ servicedDate
1876
1878
  procedure {
1877
1879
  code
1878
1880
  system
@@ -4100,6 +4102,12 @@ export const SearchHealthResourcesDocument = `
4100
4102
  value
4101
4103
  }
4102
4104
  distanceInMiles
4105
+ hoursOfOperation {
4106
+ daysOfWeek
4107
+ openingTime
4108
+ closingTime
4109
+ }
4110
+ organizationName
4103
4111
  }
4104
4112
  organization {
4105
4113
  name
@@ -4168,6 +4176,31 @@ export const SearchHealthResourcesDocument = `
4168
4176
  content
4169
4177
  endpointName
4170
4178
  }
4179
+ reviewScore {
4180
+ group {
4181
+ population {
4182
+ count
4183
+ }
4184
+ measureScore {
4185
+ value
4186
+ }
4187
+ }
4188
+ }
4189
+ practitionerQualification {
4190
+ code {
4191
+ coding {
4192
+ code
4193
+ system
4194
+ }
4195
+ }
4196
+ period {
4197
+ start
4198
+ }
4199
+ issuer {
4200
+ reference
4201
+ display
4202
+ }
4203
+ }
4171
4204
  }
4172
4205
  }
4173
4206
  }
@@ -8246,6 +8246,7 @@ export type GetClaimSummaryQueryResults = {
8246
8246
  claimNumber: string | null;
8247
8247
  claimType: string | null;
8248
8248
  claimStatus: string | null;
8249
+ servicedDate: string | null;
8249
8250
  dateReceived: string | null;
8250
8251
  dateProcessed: string | null;
8251
8252
  serviceDateStart: string | null;
@@ -8268,6 +8269,7 @@ export type GetClaimSummaryQueryResults = {
8268
8269
  } | null;
8269
8270
  services: Array<{
8270
8271
  lineNumber: number;
8272
+ servicedDate: string | null;
8271
8273
  serviceDateStart: string | null;
8272
8274
  serviceDateEnd: string | null;
8273
8275
  procedure: {
@@ -25474,6 +25476,7 @@ export type SearchHealthResourcesQueryResults = {
25474
25476
  description: string | null;
25475
25477
  name: string | null;
25476
25478
  distanceInMiles: number | null;
25479
+ organizationName: string | null;
25477
25480
  identifier: Array<{
25478
25481
  value: string | null;
25479
25482
  system: string | null;
@@ -25503,6 +25506,11 @@ export type SearchHealthResourcesQueryResults = {
25503
25506
  system: string | null;
25504
25507
  value: string | null;
25505
25508
  } | null> | null;
25509
+ hoursOfOperation: Array<{
25510
+ daysOfWeek: Array<Types.DaysOfWeekEnum | null> | null;
25511
+ openingTime: any | null;
25512
+ closingTime: any | null;
25513
+ } | null> | null;
25506
25514
  } | null> | null;
25507
25515
  organization: Array<{
25508
25516
  name: string | null;
@@ -25566,6 +25574,31 @@ export type SearchHealthResourcesQueryResults = {
25566
25574
  content: string | null;
25567
25575
  endpointName: string | null;
25568
25576
  } | null;
25577
+ reviewScore: Array<{
25578
+ group: Array<{
25579
+ population: Array<{
25580
+ count: number | null;
25581
+ } | null> | null;
25582
+ measureScore: {
25583
+ value: number | null;
25584
+ } | null;
25585
+ } | null> | null;
25586
+ } | null> | null;
25587
+ practitionerQualification: Array<{
25588
+ code: {
25589
+ coding: Array<{
25590
+ code: string | null;
25591
+ system: string | null;
25592
+ } | null> | null;
25593
+ } | null;
25594
+ period: {
25595
+ start: any | null;
25596
+ } | null;
25597
+ issuer: {
25598
+ reference: string | null;
25599
+ display: string | null;
25600
+ } | null;
25601
+ } | null> | null;
25569
25602
  } | null> | null;
25570
25603
  };
25571
25604
  };
@@ -762,6 +762,8 @@ export type ClaimInfo = {
762
762
  serviceDateEnd?: Maybe<Scalars['String']['output']>;
763
763
  /** Service start date */
764
764
  serviceDateStart?: Maybe<Scalars['String']['output']>;
765
+ /** Serviced date for the claim */
766
+ servicedDate?: Maybe<Scalars['String']['output']>;
765
767
  /** List of services/line items in the claim */
766
768
  services: Array<ClaimService>;
767
769
  };
@@ -796,6 +798,8 @@ export type ClaimService = {
796
798
  serviceDateEnd?: Maybe<Scalars['String']['output']>;
797
799
  /** Service start date */
798
800
  serviceDateStart?: Maybe<Scalars['String']['output']>;
801
+ /** Serviced date for the service/line item */
802
+ servicedDate?: Maybe<Scalars['String']['output']>;
799
803
  };
800
804
  /** Claim status enumeration */
801
805
  export declare enum ClaimStatus {
@@ -820,6 +824,8 @@ export type ClaimSummaryQueryRequest = {
820
824
  * Accepts a coverage ID (for example, "coverage-123").
821
825
  */
822
826
  coverage: Scalars['String']['input'];
827
+ /** Date range filter for claims by the date the claim was processed. */
828
+ dateProcessed?: InputMaybe<SearchDate>;
823
829
  /** Date range filter for claims by the date the claim was received. */
824
830
  dateReceived?: InputMaybe<SearchDate>;
825
831
  /** Page number for claims pagination (0-indexed, default: 0) */
@@ -828,6 +834,13 @@ export type ClaimSummaryQueryRequest = {
828
834
  pageSize?: InputMaybe<Scalars['Int']['input']>;
829
835
  /** Date range filter for claims by their service period. */
830
836
  servicePeriod?: InputMaybe<SearchDate>;
837
+ /** Date range filter for claims by their serviced date. */
838
+ servicedDate?: InputMaybe<SearchDate>;
839
+ /**
840
+ * Sort order for claims. Accepts an array of sort parameters.
841
+ * Currently only supports 'servicedDate' (ascending) or '-servicedDate' (descending).
842
+ */
843
+ sort?: InputMaybe<Array<Scalars['String']['input']>>;
831
844
  };
832
845
  /** Query results containing a single claim summary with paginated claims. */
833
846
  export type ClaimSummaryQueryResult = {
@@ -1633,10 +1646,17 @@ export type DataAccessGranteesBundleEntry = {
1633
1646
  fullUrl: Scalars['String']['output'];
1634
1647
  resource: DataAccessResource;
1635
1648
  };
1649
+ export type DataAccessGrantorsInput = {
1650
+ invitationStatus?: InputMaybe<DataAccessInvitationType>;
1651
+ };
1636
1652
  export declare enum DataAccessInvitationResponse {
1637
1653
  Accepted = "ACCEPTED",
1638
1654
  Rejected = "REJECTED"
1639
1655
  }
1656
+ export declare enum DataAccessInvitationType {
1657
+ Active = "ACTIVE",
1658
+ Pending = "PENDING"
1659
+ }
1640
1660
  export type DataAccessResource = CareTeamResource | Consent | RelatedPerson;
1641
1661
  /** Defines the connection statuses */
1642
1662
  export declare enum DataConnectionStatus {
@@ -1683,6 +1703,16 @@ export type DataSource = {
1683
1703
  /** Type of data source */
1684
1704
  type: DataConnectionType;
1685
1705
  };
1706
+ /** Enum for days of the week */
1707
+ export declare enum DaysOfWeekEnum {
1708
+ Fri = "FRI",
1709
+ Mon = "MON",
1710
+ Sat = "SAT",
1711
+ Sun = "SUN",
1712
+ Thu = "THU",
1713
+ Tue = "TUE",
1714
+ Wed = "WED"
1715
+ }
1686
1716
  export type DelegationTokenResponse = {
1687
1717
  __typename?: 'DelegationTokenResponse';
1688
1718
  expiresAt: Scalars['DateTime']['output'];
@@ -2714,6 +2744,8 @@ export type HealthResourceSearchResult = {
2714
2744
  organization?: Maybe<Array<Maybe<OrganizationTypeNew>>>;
2715
2745
  partOf?: Maybe<PartOf>;
2716
2746
  photo?: Maybe<Array<Maybe<ProviderAttachment>>>;
2747
+ practitionerQualification?: Maybe<Array<Maybe<Qualification>>>;
2748
+ reviewScore?: Maybe<Array<Maybe<ReviewScore>>>;
2717
2749
  score?: Maybe<Scalars['Float']['output']>;
2718
2750
  scores?: Maybe<Array<Maybe<Score>>>;
2719
2751
  specialty?: Maybe<Array<Maybe<ProviderCoding>>>;
@@ -2769,6 +2801,14 @@ export type HealthcareServiceProvidedByReference = {
2769
2801
  reference?: Maybe<Scalars['String']['output']>;
2770
2802
  type?: Maybe<Scalars['URI']['output']>;
2771
2803
  };
2804
+ /** Follows https://www.hl7.org/fhir/location-definitions.html#Location.hoursOfOperation */
2805
+ export type HoursOfOperationType = {
2806
+ __typename?: 'HoursOfOperationType';
2807
+ allDay?: Maybe<Scalars['Boolean']['output']>;
2808
+ closingTime?: Maybe<Scalars['Time']['output']>;
2809
+ daysOfWeek?: Maybe<Array<Maybe<DaysOfWeekEnum>>>;
2810
+ openingTime?: Maybe<Scalars['Time']['output']>;
2811
+ };
2772
2812
  export type HttpClientConfig = {
2773
2813
  __typename?: 'HttpClientConfig';
2774
2814
  requestTimeout?: Maybe<Scalars['Float']['output']>;
@@ -5162,30 +5202,56 @@ export type ProviderIdentifier = {
5162
5202
  type?: Maybe<ProviderCodeableConcept>;
5163
5203
  value?: Maybe<Scalars['String']['output']>;
5164
5204
  };
5205
+ /**
5206
+ * Follows https://www.hl7.org/fhir/location.html#location
5207
+ * and adds https://www.hl7.org/fhir/datatypes.html#Address
5208
+ * and adds distanceInMiles
5209
+ * and adds https://www.hl7.org/fhir/schedule.html
5210
+ * and adds organizationName for managing organization
5211
+ */
5165
5212
  export type ProviderLocation = {
5166
5213
  __typename?: 'ProviderLocation';
5167
5214
  address?: Maybe<ProviderAddress>;
5168
5215
  alias?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
5169
5216
  description?: Maybe<Scalars['String']['output']>;
5170
5217
  distanceInMiles?: Maybe<Scalars['Float']['output']>;
5218
+ hoursOfOperation?: Maybe<Array<Maybe<HoursOfOperationType>>>;
5171
5219
  identifier?: Maybe<Array<Maybe<ProviderIdentifier>>>;
5172
- /**
5173
- * Follows https://www.hl7.org/fhir/location.html#location
5174
- * and adds https://www.hl7.org/fhir/datatypes.html#Address
5175
- * and adds distance_in_miles
5176
- * and adds https://www.hl7.org/fhir/schedule.html
5177
- */
5178
5220
  name?: Maybe<Scalars['String']['output']>;
5221
+ organizationName?: Maybe<Scalars['String']['output']>;
5179
5222
  position?: Maybe<Position>;
5180
5223
  scheduling?: Maybe<ProviderSchedule>;
5181
5224
  telecom?: Maybe<Array<Maybe<ProviderContactPoint>>>;
5182
5225
  type?: Maybe<Array<Maybe<ProviderCodeableConcept>>>;
5183
5226
  };
5227
+ /** Uses selected fields from https://hl7.org/fhir/measurereport-definitions.html#MeasureReport.group */
5228
+ export type ProviderMeasureReportGroup = {
5229
+ __typename?: 'ProviderMeasureReportGroup';
5230
+ /** The measure score for the group */
5231
+ measureScore?: Maybe<ProviderQuantity>;
5232
+ /** The populations in the group */
5233
+ population?: Maybe<Array<Maybe<ProviderMeasureReportPopulation>>>;
5234
+ };
5235
+ /** Uses selected fields from https://hl7.org/fhir/measurereport-definitions.html#MeasureReport.group.population */
5236
+ export type ProviderMeasureReportPopulation = {
5237
+ __typename?: 'ProviderMeasureReportPopulation';
5238
+ /** Size of the population */
5239
+ count?: Maybe<Scalars['Int']['output']>;
5240
+ };
5184
5241
  export type ProviderPeriod = {
5185
5242
  __typename?: 'ProviderPeriod';
5186
5243
  end?: Maybe<Scalars['DateTime']['output']>;
5187
5244
  start?: Maybe<Scalars['DateTime']['output']>;
5188
5245
  };
5246
+ /** Follows https://www.hl7.org/fhir/datatypes.html#Quantity */
5247
+ export type ProviderQuantity = {
5248
+ __typename?: 'ProviderQuantity';
5249
+ code?: Maybe<Scalars['Code']['output']>;
5250
+ comparator?: Maybe<Scalars['Code']['output']>;
5251
+ system?: Maybe<Scalars['URI']['output']>;
5252
+ unit?: Maybe<Scalars['String']['output']>;
5253
+ value?: Maybe<Scalars['Float']['output']>;
5254
+ };
5189
5255
  export type ProviderReference = {
5190
5256
  __typename?: 'ProviderReference';
5191
5257
  display?: Maybe<Scalars['String']['output']>;
@@ -5480,6 +5546,9 @@ export type QueryCoveragesArgs = {
5480
5546
  id?: InputMaybe<SearchString>;
5481
5547
  patient?: InputMaybe<SearchReference>;
5482
5548
  };
5549
+ export type QueryDataAccessGrantorsArgs = {
5550
+ input: DataAccessGrantorsInput;
5551
+ };
5483
5552
  export type QueryDevicesArgs = {
5484
5553
  _count?: InputMaybe<Scalars['Int']['input']>;
5485
5554
  _getpagesoffset?: InputMaybe<Scalars['Int']['input']>;
@@ -6400,6 +6469,12 @@ export type Retry = {
6400
6469
  attempts: Scalars['Float']['output'];
6401
6470
  interval: Scalars['Float']['output'];
6402
6471
  };
6472
+ /** ReviewScore type */
6473
+ export type ReviewScore = {
6474
+ __typename?: 'ReviewScore';
6475
+ /** Measure results for each group */
6476
+ group?: Maybe<Array<Maybe<ProviderMeasureReportGroup>>>;
6477
+ };
6403
6478
  export type RouteDefinition = {
6404
6479
  __typename?: 'RouteDefinition';
6405
6480
  children?: Maybe<Array<Maybe<RouteDefinition>>>;
@@ -105,6 +105,11 @@ export var DataAccessInvitationResponse;
105
105
  DataAccessInvitationResponse["Accepted"] = "ACCEPTED";
106
106
  DataAccessInvitationResponse["Rejected"] = "REJECTED";
107
107
  })(DataAccessInvitationResponse || (DataAccessInvitationResponse = {}));
108
+ export var DataAccessInvitationType;
109
+ (function (DataAccessInvitationType) {
110
+ DataAccessInvitationType["Active"] = "ACTIVE";
111
+ DataAccessInvitationType["Pending"] = "PENDING";
112
+ })(DataAccessInvitationType || (DataAccessInvitationType = {}));
108
113
  /** Defines the connection statuses */
109
114
  export var DataConnectionStatus;
110
115
  (function (DataConnectionStatus) {
@@ -138,6 +143,17 @@ export var DataSetsEnum;
138
143
  DataSetsEnum["Connecthub"] = "CONNECTHUB";
139
144
  DataSetsEnum["Nppes"] = "NPPES";
140
145
  })(DataSetsEnum || (DataSetsEnum = {}));
146
+ /** Enum for days of the week */
147
+ export var DaysOfWeekEnum;
148
+ (function (DaysOfWeekEnum) {
149
+ DaysOfWeekEnum["Fri"] = "FRI";
150
+ DaysOfWeekEnum["Mon"] = "MON";
151
+ DaysOfWeekEnum["Sat"] = "SAT";
152
+ DaysOfWeekEnum["Sun"] = "SUN";
153
+ DaysOfWeekEnum["Thu"] = "THU";
154
+ DaysOfWeekEnum["Tue"] = "TUE";
155
+ DaysOfWeekEnum["Wed"] = "WED";
156
+ })(DaysOfWeekEnum || (DaysOfWeekEnum = {}));
141
157
  export var DeletionStatus;
142
158
  (function (DeletionStatus) {
143
159
  DeletionStatus["Deleted"] = "DELETED";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "1.61.0",
3
+ "version": "1.62.0-rc.1771245003",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",