@oystehr/sdk 4.3.2 → 4.3.4
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/README.md +1 -1
- package/dist/cjs/client/client.cjs +87 -13
- package/dist/cjs/client/client.cjs.map +1 -1
- package/dist/cjs/client/client.d.ts +3 -0
- package/dist/cjs/config.d.ts +19 -0
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/logger.cjs +36 -0
- package/dist/cjs/logger.cjs.map +1 -0
- package/dist/cjs/logger.d.ts +11 -0
- package/dist/cjs/resources/classes/erx.cjs +8 -0
- package/dist/cjs/resources/classes/erx.cjs.map +1 -1
- package/dist/cjs/resources/classes/erx.d.ts +7 -1
- package/dist/cjs/resources/classes/fhir-ext.cjs +290 -19
- package/dist/cjs/resources/classes/fhir-ext.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.cjs +9 -2
- package/dist/cjs/resources/classes/index.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.d.ts +1 -1
- package/dist/cjs/resources/classes/rcm.cjs +18 -0
- package/dist/cjs/resources/classes/rcm.cjs.map +1 -1
- package/dist/cjs/resources/classes/rcm.d.ts +22 -1
- package/dist/cjs/resources/classes/user.cjs +9 -0
- package/dist/cjs/resources/classes/user.cjs.map +1 -1
- package/dist/cjs/resources/classes/user.d.ts +8 -1
- package/dist/cjs/resources/types/ErxGetMedicationHistoryParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxGetMedicationHistoryResponse.d.ts +43 -0
- package/dist/cjs/resources/types/ErxGetMedicationResponse.d.ts +1 -1
- package/dist/cjs/resources/types/RcmGetPayerParams.d.ts +3 -0
- package/dist/cjs/resources/types/RcmGetPayerResponse.d.ts +5 -0
- package/dist/cjs/resources/types/RcmListPayersParams.d.ts +9 -0
- package/dist/cjs/resources/types/RcmListPayersResponse.d.ts +13 -0
- package/dist/cjs/resources/types/UserChangePasswordParams.d.ts +7 -0
- package/dist/cjs/resources/types/fhir.d.ts +13 -3
- package/dist/cjs/resources/types/index.d.ts +13 -6
- package/dist/esm/client/client.d.ts +3 -0
- package/dist/esm/client/client.js +88 -15
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/config.d.ts +19 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/logger.d.ts +11 -0
- package/dist/esm/logger.js +34 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/resources/classes/erx.d.ts +7 -1
- package/dist/esm/resources/classes/erx.js +8 -0
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fhir-ext.js +290 -19
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
- package/dist/esm/resources/classes/index.d.ts +1 -1
- package/dist/esm/resources/classes/index.js +9 -2
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/rcm.d.ts +22 -1
- package/dist/esm/resources/classes/rcm.js +18 -0
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/classes/user.d.ts +8 -1
- package/dist/esm/resources/classes/user.js +9 -0
- package/dist/esm/resources/classes/user.js.map +1 -1
- package/dist/esm/resources/types/ErxGetMedicationHistoryParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxGetMedicationHistoryResponse.d.ts +43 -0
- package/dist/esm/resources/types/ErxGetMedicationResponse.d.ts +1 -1
- package/dist/esm/resources/types/RcmGetPayerParams.d.ts +3 -0
- package/dist/esm/resources/types/RcmGetPayerResponse.d.ts +5 -0
- package/dist/esm/resources/types/RcmListPayersParams.d.ts +9 -0
- package/dist/esm/resources/types/RcmListPayersResponse.d.ts +13 -0
- package/dist/esm/resources/types/UserChangePasswordParams.d.ts +7 -0
- package/dist/esm/resources/types/fhir.d.ts +13 -3
- package/dist/esm/resources/types/index.d.ts +13 -6
- package/package.json +1 -1
- package/src/client/client.ts +95 -15
- package/src/config.ts +20 -0
- package/src/logger.ts +36 -0
- package/src/resources/classes/erx.ts +17 -0
- package/src/resources/classes/fhir-ext.ts +322 -19
- package/src/resources/classes/index.ts +9 -2
- package/src/resources/classes/rcm.ts +39 -0
- package/src/resources/classes/user.ts +10 -0
- package/src/resources/types/ErxGetMedicationHistoryParams.ts +5 -0
- package/src/resources/types/ErxGetMedicationHistoryResponse.ts +45 -0
- package/src/resources/types/ErxGetMedicationResponse.ts +1 -1
- package/src/resources/types/RcmGetPayerParams.ts +5 -0
- package/src/resources/types/RcmGetPayerResponse.ts +7 -0
- package/src/resources/types/RcmListPayersParams.ts +11 -0
- package/src/resources/types/RcmListPayersResponse.ts +15 -0
- package/src/resources/types/UserChangePasswordParams.ts +9 -0
- package/src/resources/types/fhir.ts +16 -0
- package/src/resources/types/index.ts +13 -6
|
@@ -3,15 +3,19 @@ import type {
|
|
|
3
3
|
Binary as BinaryR4B,
|
|
4
4
|
Bundle as BundleR4B,
|
|
5
5
|
BundleEntry as BundleEntryR4B,
|
|
6
|
+
Coding as CodingR4B,
|
|
6
7
|
FhirResource as FhirResourceR4B,
|
|
7
8
|
OperationOutcome as OperationOutcomeR4B,
|
|
9
|
+
Resource as ResourceR4B,
|
|
8
10
|
} from 'fhir/r4b';
|
|
9
11
|
import type {
|
|
10
12
|
Binary as BinaryR5,
|
|
11
13
|
Bundle as BundleR5,
|
|
12
14
|
BundleEntry as BundleEntryR5,
|
|
15
|
+
Coding as CodingR5,
|
|
13
16
|
FhirResource as FhirResourceR5,
|
|
14
17
|
OperationOutcome as OperationOutcomeR5,
|
|
18
|
+
Resource as ResourceR5,
|
|
15
19
|
} from 'fhir/r5';
|
|
16
20
|
|
|
17
21
|
export type FhirResource = FhirResourceR4B | FhirResourceR5;
|
|
@@ -46,6 +50,8 @@ export type TransactionBundle<F extends FhirResource> = EntrylessFhirBundle<F> &
|
|
|
46
50
|
export type BundleEntry<F extends FhirResource> = F extends FhirResourceR4B ? BundleEntryR4B<F> : BundleEntryR5<F>;
|
|
47
51
|
export type Binary<F extends FhirResource> = F extends FhirResourceR4B ? BinaryR4B : BinaryR5;
|
|
48
52
|
export type OperationOutcome = OperationOutcomeR4B | OperationOutcomeR5;
|
|
53
|
+
export type Coding = CodingR4B | CodingR5;
|
|
54
|
+
export type Resource = ResourceR4B | ResourceR5;
|
|
49
55
|
|
|
50
56
|
export type SearchParam = { name: string; value: string | number };
|
|
51
57
|
|
|
@@ -119,6 +125,15 @@ export interface BatchInputPostRequest<F extends FhirResource> extends BatchInpu
|
|
|
119
125
|
fullUrl?: string;
|
|
120
126
|
}
|
|
121
127
|
|
|
128
|
+
/**
|
|
129
|
+
* A batch POST to a `_search` endpoint (e.g. `Patient/_search`). Search parameters
|
|
130
|
+
* may be appended to the URL as query parameters. Unlike a create POST there is no
|
|
131
|
+
* resource body.
|
|
132
|
+
*/
|
|
133
|
+
export interface BatchInputSearchPostRequest extends BatchInputBaseRequest {
|
|
134
|
+
method: 'POST';
|
|
135
|
+
}
|
|
136
|
+
|
|
122
137
|
export interface BatchInputBinaryPatchRequest<F extends FhirResource> extends BatchInputBaseRequest {
|
|
123
138
|
method: 'PATCH';
|
|
124
139
|
ifMatch?: string;
|
|
@@ -141,6 +156,7 @@ export type BatchInputRequest<F extends FhirResource> =
|
|
|
141
156
|
| BatchInputPutRequest<F>
|
|
142
157
|
| BatchInputPatchRequest<F>
|
|
143
158
|
| BatchInputPostRequest<F>
|
|
159
|
+
| BatchInputSearchPostRequest
|
|
144
160
|
| BatchInputDeleteRequest;
|
|
145
161
|
|
|
146
162
|
export interface BatchInput<F extends FhirResource> {
|
|
@@ -112,6 +112,7 @@ export * from './UserUpdateResponse';
|
|
|
112
112
|
export * from './UserDeleteParams';
|
|
113
113
|
export * from './UserResetMfaParams';
|
|
114
114
|
export * from './UserResetPasswordLinkParams';
|
|
115
|
+
export * from './UserChangePasswordParams';
|
|
115
116
|
export * from './UserInviteParams';
|
|
116
117
|
export * from './UserInviteResponse';
|
|
117
118
|
export * from './UserListResponse';
|
|
@@ -157,6 +158,8 @@ export * from './ErxCheckMedicationInteractionsParams';
|
|
|
157
158
|
export * from './ErxCheckMedicationInteractionsResponse';
|
|
158
159
|
export * from './ErxCheckPrecheckInteractionsParams';
|
|
159
160
|
export * from './ErxCheckPrecheckInteractionsResponse';
|
|
161
|
+
export * from './ErxGetMedicationHistoryParams';
|
|
162
|
+
export * from './ErxGetMedicationHistoryResponse';
|
|
160
163
|
export * from './ErxAddPatientPharmacyParams';
|
|
161
164
|
export * from './ErxCancelPrescriptionParams';
|
|
162
165
|
export * from './ErxSyncPatientParams';
|
|
@@ -168,12 +171,6 @@ export * from './ErxCheckPractitionerEnrollmentParams';
|
|
|
168
171
|
export * from './ErxCheckPractitionerEnrollmentResponse';
|
|
169
172
|
export * from './ErxEnrollPractitionerParams';
|
|
170
173
|
export * from './ErxUnenrollPractitionerParams';
|
|
171
|
-
export * from './RcmEligibilityCheckParams';
|
|
172
|
-
export * from './RcmEligibilityCheckResponse';
|
|
173
|
-
export * from './RcmSubmitClaimParams';
|
|
174
|
-
export * from './RcmSubmitClaimResponse';
|
|
175
|
-
export * from './RcmSetClaimStatusParams';
|
|
176
|
-
export * from './RcmSetClaimStatusResponse';
|
|
177
174
|
export * from './TerminologySearchCptParams';
|
|
178
175
|
export * from './TerminologySearchCptResponse';
|
|
179
176
|
export * from './TerminologySearchHcpcsParams';
|
|
@@ -201,3 +198,13 @@ export * from './ZambdaLogStreamSearchParams';
|
|
|
201
198
|
export * from './ZambdaLogStreamSearchResponse';
|
|
202
199
|
export * from './ZambdaLogStreamGetParams';
|
|
203
200
|
export * from './ZambdaLogStreamGetResponse';
|
|
201
|
+
export * from './RcmEligibilityCheckParams';
|
|
202
|
+
export * from './RcmEligibilityCheckResponse';
|
|
203
|
+
export * from './RcmSubmitClaimParams';
|
|
204
|
+
export * from './RcmSubmitClaimResponse';
|
|
205
|
+
export * from './RcmSetClaimStatusParams';
|
|
206
|
+
export * from './RcmSetClaimStatusResponse';
|
|
207
|
+
export * from './RcmListPayersParams';
|
|
208
|
+
export * from './RcmListPayersResponse';
|
|
209
|
+
export * from './RcmGetPayerParams';
|
|
210
|
+
export * from './RcmGetPayerResponse';
|