@icanbwell/bwell-sdk-ts 1.46.0 → 1.47.0-rc.1764872852
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.
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/api-provider.d.ts +2 -0
- package/dist/api/base/financial/explanation-of-benefit.d.ts +32 -0
- package/dist/api/base/financial/explanation-of-benefit.js +66 -0
- package/dist/api/base/financial/financial-manager.d.ts +4 -1
- package/dist/api/base/health-data/health-manager.d.ts +13 -2
- package/dist/api/base/health-data/index.d.ts +2 -1
- package/dist/api/base/health-data/index.js +1 -0
- package/dist/api/base/health-data/medication-statement-request.d.ts +29 -0
- package/dist/api/base/health-data/medication-statement-request.js +35 -0
- package/dist/api/base/index.d.ts +1 -0
- package/dist/api/base/index.js +1 -0
- package/dist/api/base/support/get-support-requests-request.d.ts +16 -0
- package/dist/api/base/support/get-support-requests-request.js +14 -0
- package/dist/api/base/support/index.d.ts +2 -0
- package/dist/api/base/support/index.js +2 -0
- package/dist/api/base/support/support-manager.d.ts +16 -0
- package/dist/api/base/support/support-manager.js +1 -0
- package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.d.ts +9 -0
- package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.js +23 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +3 -1
- package/dist/api/graphql-api/financial/graphql-financial-manager.js +20 -2
- package/dist/api/graphql-api/graphql-api-provider.d.ts +2 -0
- package/dist/api/graphql-api/graphql-api-provider.js +2 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +4 -2
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +23 -4
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.js +11 -0
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.js +16 -0
- package/dist/api/graphql-api/support/graphql-support-manager.d.ts +15 -0
- package/dist/api/graphql-api/support/graphql-support-manager.js +54 -0
- package/dist/api/graphql-api/support/index.d.ts +1 -0
- package/dist/api/graphql-api/support/index.js +1 -0
- package/dist/bwell-sdk/bwell-sdk.d.ts +2 -0
- package/dist/bwell-sdk/bwell-sdk.js +3 -0
- package/dist/graphql/operations/index.d.ts +27 -1
- package/dist/graphql/operations/index.js +290 -6
- package/dist/graphql/operations/types.d.ts +475 -11
- package/dist/graphql/schema.d.ts +199 -5
- package/dist/graphql/schema.js +17 -0
- package/package.json +1 -1
|
@@ -206,12 +206,6 @@ export const PagingFieldsFragmentDoc = `
|
|
|
206
206
|
total_items
|
|
207
207
|
}
|
|
208
208
|
`;
|
|
209
|
-
export const MoneyResourceFieldsFragmentDoc = `
|
|
210
|
-
fragment MoneyResourceFields on Money {
|
|
211
|
-
value
|
|
212
|
-
currency
|
|
213
|
-
}
|
|
214
|
-
`;
|
|
215
209
|
export const InitialFillFieldsFragmentDoc = `
|
|
216
210
|
fragment InitialFillFields on InitialFill {
|
|
217
211
|
duration {
|
|
@@ -593,6 +587,36 @@ ${CoverageBeneficiaryReferenceFieldsFragmentDoc}
|
|
|
593
587
|
${PeriodFieldsFragmentDoc}
|
|
594
588
|
${CoveragePayorReferenceFieldsFragmentDoc}
|
|
595
589
|
${CoverageClassFieldsFragmentDoc}`;
|
|
590
|
+
export const MoneyResourceFieldsFragmentDoc = `
|
|
591
|
+
fragment MoneyResourceFields on Money {
|
|
592
|
+
value
|
|
593
|
+
currency
|
|
594
|
+
}
|
|
595
|
+
`;
|
|
596
|
+
export const ExplanationOfBenefitAdjudicationFieldsFragmentDoc = `
|
|
597
|
+
fragment ExplanationOfBenefitAdjudicationFields on ExplanationOfBenefitAdjudication {
|
|
598
|
+
id
|
|
599
|
+
category {
|
|
600
|
+
...CodeableConceptFields
|
|
601
|
+
}
|
|
602
|
+
reason {
|
|
603
|
+
...CodeableConceptFields
|
|
604
|
+
}
|
|
605
|
+
amount {
|
|
606
|
+
...MoneyResourceFields
|
|
607
|
+
}
|
|
608
|
+
value
|
|
609
|
+
}
|
|
610
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
611
|
+
${MoneyResourceFieldsFragmentDoc}`;
|
|
612
|
+
export const AttachmentFieldsFragmentDoc = `
|
|
613
|
+
fragment AttachmentFields on Attachment {
|
|
614
|
+
contentType
|
|
615
|
+
data
|
|
616
|
+
url
|
|
617
|
+
title
|
|
618
|
+
}
|
|
619
|
+
`;
|
|
596
620
|
export const ProtocolAppliedFieldsFragmentDoc = `
|
|
597
621
|
fragment ProtocolAppliedFields on ProtocolApplied {
|
|
598
622
|
doseNumberString
|
|
@@ -1795,6 +1819,229 @@ export const GetCoveragesDocument = `
|
|
|
1795
1819
|
}
|
|
1796
1820
|
}
|
|
1797
1821
|
${CoverageFieldsFragmentDoc}`;
|
|
1822
|
+
export const GetExplanationOfBenefitsDocument = `
|
|
1823
|
+
query getExplanationOfBenefits($id: SearchString, $lastUpdated: SearchDate, $page: Int, $pageSize: Int, $patient: SearchReference, $provider: SearchReference, $coverage: SearchReference, $status: SearchToken, $created: SearchDate, $sort: [String], $total: TotalType) {
|
|
1824
|
+
explanationOfBenefits(
|
|
1825
|
+
id: $id
|
|
1826
|
+
_count: $pageSize
|
|
1827
|
+
_lastUpdated: $lastUpdated
|
|
1828
|
+
_getpagesoffset: $page
|
|
1829
|
+
patient: $patient
|
|
1830
|
+
provider: $provider
|
|
1831
|
+
coverage: $coverage
|
|
1832
|
+
status: $status
|
|
1833
|
+
created: $created
|
|
1834
|
+
_sort: $sort
|
|
1835
|
+
_total: $total
|
|
1836
|
+
) {
|
|
1837
|
+
id
|
|
1838
|
+
total
|
|
1839
|
+
entry {
|
|
1840
|
+
id
|
|
1841
|
+
resource {
|
|
1842
|
+
id
|
|
1843
|
+
meta {
|
|
1844
|
+
...MetaFields
|
|
1845
|
+
}
|
|
1846
|
+
identifier {
|
|
1847
|
+
...IdentifierFields
|
|
1848
|
+
}
|
|
1849
|
+
status
|
|
1850
|
+
type {
|
|
1851
|
+
...CodeableConceptFields
|
|
1852
|
+
}
|
|
1853
|
+
use
|
|
1854
|
+
patient {
|
|
1855
|
+
reference
|
|
1856
|
+
type
|
|
1857
|
+
display
|
|
1858
|
+
}
|
|
1859
|
+
adjudication {
|
|
1860
|
+
...ExplanationOfBenefitAdjudicationFields
|
|
1861
|
+
}
|
|
1862
|
+
billablePeriod {
|
|
1863
|
+
...PeriodFields
|
|
1864
|
+
}
|
|
1865
|
+
benefitPeriod {
|
|
1866
|
+
...PeriodFields
|
|
1867
|
+
}
|
|
1868
|
+
insurer {
|
|
1869
|
+
reference
|
|
1870
|
+
type
|
|
1871
|
+
display
|
|
1872
|
+
}
|
|
1873
|
+
provider {
|
|
1874
|
+
reference
|
|
1875
|
+
type
|
|
1876
|
+
display
|
|
1877
|
+
}
|
|
1878
|
+
related {
|
|
1879
|
+
relationship {
|
|
1880
|
+
...CodeableConceptFields
|
|
1881
|
+
}
|
|
1882
|
+
reference {
|
|
1883
|
+
...IdentifierFields
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
payee {
|
|
1887
|
+
type {
|
|
1888
|
+
...CodeableConceptFields
|
|
1889
|
+
}
|
|
1890
|
+
party {
|
|
1891
|
+
reference
|
|
1892
|
+
type
|
|
1893
|
+
display
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
outcome
|
|
1897
|
+
careTeam {
|
|
1898
|
+
id
|
|
1899
|
+
sequence
|
|
1900
|
+
provider {
|
|
1901
|
+
reference
|
|
1902
|
+
type
|
|
1903
|
+
display
|
|
1904
|
+
}
|
|
1905
|
+
qualification {
|
|
1906
|
+
...CodeableConceptFields
|
|
1907
|
+
}
|
|
1908
|
+
role {
|
|
1909
|
+
...CodeableConceptFields
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
supportingInfo {
|
|
1913
|
+
sequence
|
|
1914
|
+
category {
|
|
1915
|
+
...CodeableConceptFields
|
|
1916
|
+
}
|
|
1917
|
+
code {
|
|
1918
|
+
...CodeableConceptFields
|
|
1919
|
+
}
|
|
1920
|
+
timingDate
|
|
1921
|
+
timingPeriod {
|
|
1922
|
+
...PeriodFields
|
|
1923
|
+
}
|
|
1924
|
+
valueBoolean
|
|
1925
|
+
valueString
|
|
1926
|
+
valueQuantity {
|
|
1927
|
+
...QuantityFields
|
|
1928
|
+
}
|
|
1929
|
+
valueAttachment {
|
|
1930
|
+
...AttachmentFields
|
|
1931
|
+
}
|
|
1932
|
+
valueReference {
|
|
1933
|
+
reference
|
|
1934
|
+
type
|
|
1935
|
+
display
|
|
1936
|
+
}
|
|
1937
|
+
reason {
|
|
1938
|
+
...CodingFields
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
insurance {
|
|
1942
|
+
focal
|
|
1943
|
+
coverage {
|
|
1944
|
+
reference
|
|
1945
|
+
type
|
|
1946
|
+
display
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
payment {
|
|
1950
|
+
id
|
|
1951
|
+
adjustment {
|
|
1952
|
+
...MoneyResourceFields
|
|
1953
|
+
}
|
|
1954
|
+
amount {
|
|
1955
|
+
...MoneyResourceFields
|
|
1956
|
+
}
|
|
1957
|
+
date
|
|
1958
|
+
type {
|
|
1959
|
+
...CodeableConceptFields
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
processNote {
|
|
1963
|
+
type
|
|
1964
|
+
text
|
|
1965
|
+
}
|
|
1966
|
+
created
|
|
1967
|
+
diagnosis {
|
|
1968
|
+
id
|
|
1969
|
+
sequence
|
|
1970
|
+
diagnosisCodeableConcept {
|
|
1971
|
+
...CodeableConceptFields
|
|
1972
|
+
}
|
|
1973
|
+
diagnosisReference {
|
|
1974
|
+
reference
|
|
1975
|
+
type
|
|
1976
|
+
display
|
|
1977
|
+
}
|
|
1978
|
+
type {
|
|
1979
|
+
...CodeableConceptFields
|
|
1980
|
+
}
|
|
1981
|
+
onAdmission {
|
|
1982
|
+
...CodeableConceptFields
|
|
1983
|
+
}
|
|
1984
|
+
packageCode {
|
|
1985
|
+
...CodeableConceptFields
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
item {
|
|
1989
|
+
id
|
|
1990
|
+
sequence
|
|
1991
|
+
bodySite {
|
|
1992
|
+
...CodeableConceptFields
|
|
1993
|
+
}
|
|
1994
|
+
adjudication {
|
|
1995
|
+
...ExplanationOfBenefitAdjudicationFields
|
|
1996
|
+
}
|
|
1997
|
+
locationCodeableConcept {
|
|
1998
|
+
...CodeableConceptFields
|
|
1999
|
+
}
|
|
2000
|
+
modifier {
|
|
2001
|
+
...CodeableConceptFields
|
|
2002
|
+
}
|
|
2003
|
+
net {
|
|
2004
|
+
...MoneyResourceFields
|
|
2005
|
+
}
|
|
2006
|
+
noteNumber
|
|
2007
|
+
productOrService {
|
|
2008
|
+
...CodeableConceptFields
|
|
2009
|
+
}
|
|
2010
|
+
quantity {
|
|
2011
|
+
...QuantityFields
|
|
2012
|
+
}
|
|
2013
|
+
revenue {
|
|
2014
|
+
...CodeableConceptFields
|
|
2015
|
+
}
|
|
2016
|
+
servicedDate
|
|
2017
|
+
servicedPeriod {
|
|
2018
|
+
...PeriodFields
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
subType {
|
|
2022
|
+
...CodeableConceptFields
|
|
2023
|
+
}
|
|
2024
|
+
total {
|
|
2025
|
+
amount {
|
|
2026
|
+
...MoneyResourceFields
|
|
2027
|
+
}
|
|
2028
|
+
category {
|
|
2029
|
+
...CodeableConceptFields
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
${MetaFieldsFragmentDoc}
|
|
2037
|
+
${IdentifierFieldsFragmentDoc}
|
|
2038
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
2039
|
+
${ExplanationOfBenefitAdjudicationFieldsFragmentDoc}
|
|
2040
|
+
${PeriodFieldsFragmentDoc}
|
|
2041
|
+
${QuantityFieldsFragmentDoc}
|
|
2042
|
+
${AttachmentFieldsFragmentDoc}
|
|
2043
|
+
${CodingFieldsFragmentDoc}
|
|
2044
|
+
${MoneyResourceFieldsFragmentDoc}`;
|
|
1798
2045
|
export const GetBinaryDocument = `
|
|
1799
2046
|
query getBinary($request: BinaryRequest!) {
|
|
1800
2047
|
getBinary(request: $request) {
|
|
@@ -2941,6 +3188,14 @@ ${CodeableConceptFieldsFragmentDoc}
|
|
|
2941
3188
|
${ActorFieldsFragmentDoc}
|
|
2942
3189
|
${DosageFieldsFragmentDoc}
|
|
2943
3190
|
${QuantityFieldsFragmentDoc}`;
|
|
3191
|
+
export const UpdateMedicationStatementDocument = `
|
|
3192
|
+
mutation updateMedicationStatement($input: MedicationStatementInput!) {
|
|
3193
|
+
updateMedicationStatement(input: $input) {
|
|
3194
|
+
id
|
|
3195
|
+
status
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
`;
|
|
2944
3199
|
export const AppointmentsDocument = `
|
|
2945
3200
|
query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String], $status: SearchToken) {
|
|
2946
3201
|
appointments(
|
|
@@ -3502,6 +3757,26 @@ export const SearchHealthResourcesDocument = `
|
|
|
3502
3757
|
}
|
|
3503
3758
|
}
|
|
3504
3759
|
`;
|
|
3760
|
+
export const GetSupportRequestsDocument = `
|
|
3761
|
+
query getSupportRequests($input: SupportRequestsInput) {
|
|
3762
|
+
getSupportRequests(input: $input) {
|
|
3763
|
+
paging_info {
|
|
3764
|
+
page_number
|
|
3765
|
+
page_size
|
|
3766
|
+
total_items
|
|
3767
|
+
total_pages
|
|
3768
|
+
}
|
|
3769
|
+
data {
|
|
3770
|
+
category
|
|
3771
|
+
created
|
|
3772
|
+
id
|
|
3773
|
+
lastActivity
|
|
3774
|
+
status
|
|
3775
|
+
subject
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
`;
|
|
3505
3780
|
export const CreateConsentDocument = `
|
|
3506
3781
|
mutation createConsent($consentInput: ConsentInput!) {
|
|
3507
3782
|
createConsent(consentInput: $consentInput) {
|
|
@@ -3745,6 +4020,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3745
4020
|
getCoverages(variables, requestHeaders) {
|
|
3746
4021
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCoveragesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCoverages', 'query', variables);
|
|
3747
4022
|
},
|
|
4023
|
+
getExplanationOfBenefits(variables, requestHeaders) {
|
|
4024
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetExplanationOfBenefitsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getExplanationOfBenefits', 'query', variables);
|
|
4025
|
+
},
|
|
3748
4026
|
getBinary(variables, requestHeaders) {
|
|
3749
4027
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetBinaryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getBinary', 'query', variables);
|
|
3750
4028
|
},
|
|
@@ -3835,6 +4113,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3835
4113
|
getMedicationStatements(variables, requestHeaders) {
|
|
3836
4114
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationStatementsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationStatements', 'query', variables);
|
|
3837
4115
|
},
|
|
4116
|
+
updateMedicationStatement(variables, requestHeaders) {
|
|
4117
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(UpdateMedicationStatementDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'updateMedicationStatement', 'mutation', variables);
|
|
4118
|
+
},
|
|
3838
4119
|
appointments(variables, requestHeaders) {
|
|
3839
4120
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(AppointmentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'appointments', 'query', variables);
|
|
3840
4121
|
},
|
|
@@ -3883,6 +4164,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
3883
4164
|
SearchHealthResources(variables, requestHeaders) {
|
|
3884
4165
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(SearchHealthResourcesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'SearchHealthResources', 'query', variables);
|
|
3885
4166
|
},
|
|
4167
|
+
getSupportRequests(variables, requestHeaders) {
|
|
4168
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetSupportRequestsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getSupportRequests', 'query', variables);
|
|
4169
|
+
},
|
|
3886
4170
|
createConsent(variables, requestHeaders) {
|
|
3887
4171
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(CreateConsentDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'createConsent', 'mutation', variables);
|
|
3888
4172
|
},
|