@oystehr/sdk 4.1.9 → 4.2.0
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/cjs/config.d.ts +1 -0
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/fhir-ext.cjs +14 -1
- package/dist/cjs/resources/classes/fhir-ext.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.cjs +3 -6
- package/dist/cjs/resources/classes/index.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.d.ts +2 -4
- package/dist/cjs/resources/classes/lab.cjs +10 -0
- package/dist/cjs/resources/classes/lab.cjs.map +1 -1
- package/dist/cjs/resources/classes/lab.d.ts +9 -1
- package/dist/cjs/resources/classes/terminology.cjs +34 -0
- package/dist/cjs/resources/classes/terminology.cjs.map +1 -0
- package/dist/cjs/resources/classes/terminology.d.ts +21 -0
- 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/LabRouteGetResponse.d.ts +21 -0
- package/dist/cjs/resources/types/LabRouteListResponse.d.ts +3 -3
- package/dist/cjs/resources/types/TerminologySearchCptParams.d.ts +7 -0
- package/dist/cjs/resources/types/TerminologySearchCptResponse.d.ts +27 -0
- package/dist/cjs/resources/types/TerminologySearchHcpcsParams.d.ts +7 -0
- package/dist/cjs/resources/types/TerminologySearchHcpcsResponse.d.ts +27 -0
- package/dist/cjs/resources/types/UserResetPasswordLinkParams.d.ts +7 -0
- package/dist/cjs/resources/types/index.d.ts +6 -12
- package/dist/esm/config.d.ts +1 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/fhir-ext.js +14 -1
- package/dist/esm/resources/classes/fhir-ext.js.map +1 -1
- package/dist/esm/resources/classes/index.d.ts +2 -4
- package/dist/esm/resources/classes/index.js +3 -6
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/lab.d.ts +9 -1
- package/dist/esm/resources/classes/lab.js +10 -0
- package/dist/esm/resources/classes/lab.js.map +1 -1
- package/dist/esm/resources/classes/terminology.d.ts +21 -0
- package/dist/esm/resources/classes/terminology.js +32 -0
- package/dist/esm/resources/classes/terminology.js.map +1 -0
- 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/LabRouteGetResponse.d.ts +21 -0
- package/dist/esm/resources/types/LabRouteListResponse.d.ts +3 -3
- package/dist/esm/resources/types/TerminologySearchCptParams.d.ts +7 -0
- package/dist/esm/resources/types/TerminologySearchCptResponse.d.ts +27 -0
- package/dist/esm/resources/types/TerminologySearchHcpcsParams.d.ts +7 -0
- package/dist/esm/resources/types/TerminologySearchHcpcsResponse.d.ts +27 -0
- package/dist/esm/resources/types/UserResetPasswordLinkParams.d.ts +7 -0
- package/dist/esm/resources/types/index.d.ts +6 -12
- package/package.json +6 -4
- package/src/config.ts +1 -0
- package/src/resources/classes/fhir-ext.ts +16 -1
- package/src/resources/classes/index.ts +3 -6
- package/src/resources/classes/lab.ts +11 -0
- package/src/resources/classes/terminology.ts +41 -0
- package/src/resources/classes/user.ts +10 -0
- package/src/resources/types/LabRouteGetResponse.ts +23 -0
- package/src/resources/types/LabRouteListResponse.ts +3 -3
- package/src/resources/types/TerminologySearchCptParams.ts +9 -0
- package/src/resources/types/TerminologySearchCptResponse.ts +29 -0
- package/src/resources/types/TerminologySearchHcpcsParams.ts +9 -0
- package/src/resources/types/TerminologySearchHcpcsResponse.ts +29 -0
- package/src/resources/types/UserResetPasswordLinkParams.ts +9 -0
- package/src/resources/types/index.ts +6 -12
- package/dist/cjs/resources/classes/erxV1.cjs +0 -46
- package/dist/cjs/resources/classes/erxV1.cjs.map +0 -1
- package/dist/cjs/resources/classes/erxV1.d.ts +0 -31
- package/dist/cjs/resources/classes/erxV2.cjs +0 -22
- package/dist/cjs/resources/classes/erxV2.cjs.map +0 -1
- package/dist/cjs/resources/classes/erxV2.d.ts +0 -15
- package/dist/cjs/resources/types/ErxV1AllergySearchParams.d.ts +0 -3
- package/dist/cjs/resources/types/ErxV1AllergySearchResponse.d.ts +0 -19
- package/dist/cjs/resources/types/ErxV1CancelOrderParams.d.ts +0 -6
- package/dist/cjs/resources/types/ErxV1CancelOrderResponse.d.ts +0 -6
- package/dist/cjs/resources/types/ErxV1CancelPrescriptionParams.d.ts +0 -6
- package/dist/cjs/resources/types/ErxV1CancelPrescriptionResponse.d.ts +0 -6
- package/dist/cjs/resources/types/ErxV1MedicationSearchParams.d.ts +0 -6
- package/dist/cjs/resources/types/ErxV1MedicationSearchResponse.d.ts +0 -38
- package/dist/cjs/resources/types/ErxV1SyncPatientParams.d.ts +0 -3
- package/dist/cjs/resources/types/ErxV1SyncPatientResponse.d.ts +0 -9
- package/dist/cjs/resources/types/ErxV2MedicationSearchParams.d.ts +0 -4
- package/dist/cjs/resources/types/ErxV2MedicationSearchResponse.d.ts +0 -38
- package/dist/esm/resources/classes/erxV1.d.ts +0 -31
- package/dist/esm/resources/classes/erxV1.js +0 -44
- package/dist/esm/resources/classes/erxV1.js.map +0 -1
- package/dist/esm/resources/classes/erxV2.d.ts +0 -15
- package/dist/esm/resources/classes/erxV2.js +0 -20
- package/dist/esm/resources/classes/erxV2.js.map +0 -1
- package/dist/esm/resources/types/ErxV1AllergySearchParams.d.ts +0 -3
- package/dist/esm/resources/types/ErxV1AllergySearchResponse.d.ts +0 -19
- package/dist/esm/resources/types/ErxV1CancelOrderParams.d.ts +0 -6
- package/dist/esm/resources/types/ErxV1CancelOrderResponse.d.ts +0 -6
- package/dist/esm/resources/types/ErxV1CancelPrescriptionParams.d.ts +0 -6
- package/dist/esm/resources/types/ErxV1CancelPrescriptionResponse.d.ts +0 -6
- package/dist/esm/resources/types/ErxV1MedicationSearchParams.d.ts +0 -6
- package/dist/esm/resources/types/ErxV1MedicationSearchResponse.d.ts +0 -38
- package/dist/esm/resources/types/ErxV1SyncPatientParams.d.ts +0 -3
- package/dist/esm/resources/types/ErxV1SyncPatientResponse.d.ts +0 -9
- package/dist/esm/resources/types/ErxV2MedicationSearchParams.d.ts +0 -4
- package/dist/esm/resources/types/ErxV2MedicationSearchResponse.d.ts +0 -38
- package/src/resources/classes/erxV1.ts +0 -73
- package/src/resources/classes/erxV2.ts +0 -34
- package/src/resources/types/ErxV1AllergySearchParams.ts +0 -5
- package/src/resources/types/ErxV1AllergySearchResponse.ts +0 -21
- package/src/resources/types/ErxV1CancelOrderParams.ts +0 -8
- package/src/resources/types/ErxV1CancelOrderResponse.ts +0 -8
- package/src/resources/types/ErxV1CancelPrescriptionParams.ts +0 -8
- package/src/resources/types/ErxV1CancelPrescriptionResponse.ts +0 -8
- package/src/resources/types/ErxV1MedicationSearchParams.ts +0 -8
- package/src/resources/types/ErxV1MedicationSearchResponse.ts +0 -40
- package/src/resources/types/ErxV1SyncPatientParams.ts +0 -5
- package/src/resources/types/ErxV1SyncPatientResponse.ts +0 -11
- package/src/resources/types/ErxV2MedicationSearchParams.ts +0 -6
- package/src/resources/types/ErxV2MedicationSearchResponse.ts +0 -40
|
@@ -92,18 +92,6 @@ export * from './RcmValidateProfessionalClaimParams';
|
|
|
92
92
|
export * from './RcmValidateProfessionalClaimResponse';
|
|
93
93
|
export * from './RcmSubmitProfessionalClaimParams';
|
|
94
94
|
export * from './RcmSubmitProfessionalClaimResponse';
|
|
95
|
-
export * from './ErxV1SyncPatientParams';
|
|
96
|
-
export * from './ErxV1SyncPatientResponse';
|
|
97
|
-
export * from './ErxV1AllergySearchParams';
|
|
98
|
-
export * from './ErxV1AllergySearchResponse';
|
|
99
|
-
export * from './ErxV1CancelOrderParams';
|
|
100
|
-
export * from './ErxV1CancelOrderResponse';
|
|
101
|
-
export * from './ErxV1CancelPrescriptionParams';
|
|
102
|
-
export * from './ErxV1CancelPrescriptionResponse';
|
|
103
|
-
export * from './ErxV1MedicationSearchParams';
|
|
104
|
-
export * from './ErxV1MedicationSearchResponse';
|
|
105
|
-
export * from './ErxV2MedicationSearchParams';
|
|
106
|
-
export * from './ErxV2MedicationSearchResponse';
|
|
107
95
|
export * from './RoleListResponse';
|
|
108
96
|
export * from './RoleCreateParams';
|
|
109
97
|
export * from './RoleCreateResponse';
|
|
@@ -129,6 +117,7 @@ export * from './UserUpdateParams';
|
|
|
129
117
|
export * from './UserUpdateResponse';
|
|
130
118
|
export * from './UserDeleteParams';
|
|
131
119
|
export * from './UserResetMfaParams';
|
|
120
|
+
export * from './UserResetPasswordLinkParams';
|
|
132
121
|
export * from './UserInviteParams';
|
|
133
122
|
export * from './UserInviteResponse';
|
|
134
123
|
export * from './UserListResponse';
|
|
@@ -171,6 +160,7 @@ export * from './FaxSendResponse';
|
|
|
171
160
|
export * from './LabRouteListResponse';
|
|
172
161
|
export * from './LabRouteCreateParams';
|
|
173
162
|
export * from './LabRouteCreateResponse';
|
|
163
|
+
export * from './LabRouteGetResponse';
|
|
174
164
|
export * from './LabRouteDeleteParams';
|
|
175
165
|
export * from './LabOrderableItemListParams';
|
|
176
166
|
export * from './LabOrderableItemListResponse';
|
|
@@ -197,3 +187,7 @@ export * from './ErxCheckPractitionerEnrollmentParams';
|
|
|
197
187
|
export * from './ErxCheckPractitionerEnrollmentResponse';
|
|
198
188
|
export * from './ErxEnrollPractitionerParams';
|
|
199
189
|
export * from './ErxUnenrollPractitionerParams';
|
|
190
|
+
export * from './TerminologySearchCptParams';
|
|
191
|
+
export * from './TerminologySearchCptResponse';
|
|
192
|
+
export * from './TerminologySearchHcpcsParams';
|
|
193
|
+
export * from './TerminologySearchHcpcsResponse';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oystehr/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Oystehr SDK",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"parser": "tsx debug-parser.ts",
|
|
15
15
|
"publish-to-npmjs": "npm run build && npm publish",
|
|
16
16
|
"publish-to-npmjs-next": "npm run build && npm publish --tag next",
|
|
17
|
-
"generate": "ts-node --project scripts/tsconfig.json scripts/generate-sdk-v3 project,fax,lab,erx src/resources"
|
|
17
|
+
"generate": "ts-node --project scripts/tsconfig.json scripts/generate-sdk-v3 project,fax,lab,erx,terminology src/resources"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"npm": ">=8.0.0",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@types/fhir": "0.0.41",
|
|
39
|
-
"@types/node": "20.17.58",
|
|
40
39
|
"fast-json-patch": "3.1.1",
|
|
41
40
|
"tslib": "2.8.1",
|
|
42
41
|
"uuid": "11.0.5"
|
|
@@ -56,5 +55,8 @@
|
|
|
56
55
|
"dstu2",
|
|
57
56
|
"stu3",
|
|
58
57
|
"hl7"
|
|
59
|
-
]
|
|
58
|
+
],
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/node": "22.18.10"
|
|
61
|
+
}
|
|
60
62
|
}
|
package/src/config.ts
CHANGED
|
@@ -19,6 +19,20 @@ import {
|
|
|
19
19
|
} from '../..';
|
|
20
20
|
import { addParamsToSearch, FhirFetcherResponse, OystehrClientRequest, SDKResource } from '../../client/client';
|
|
21
21
|
|
|
22
|
+
// Code adapted from https://github.com/sindresorhus/uint8array-extras
|
|
23
|
+
const MAX_BLOCK_SIZE = 65_535;
|
|
24
|
+
function stringToBase64(input: string): string {
|
|
25
|
+
const data: Uint8Array<ArrayBuffer> = new globalThis.TextEncoder().encode(input);
|
|
26
|
+
let base64 = '';
|
|
27
|
+
|
|
28
|
+
for (let index = 0; index < data.length; index += MAX_BLOCK_SIZE) {
|
|
29
|
+
const chunk = data.subarray(index, index + MAX_BLOCK_SIZE);
|
|
30
|
+
// Required as `btoa` and `atob` don't properly support Unicode: https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem
|
|
31
|
+
base64 += globalThis.btoa(String.fromCodePoint.apply(undefined, chunk as unknown as number[]));
|
|
32
|
+
}
|
|
33
|
+
return base64;
|
|
34
|
+
}
|
|
35
|
+
|
|
22
36
|
/**
|
|
23
37
|
* Optional parameter that can be passed to the client methods. It allows
|
|
24
38
|
* overriding the access token or project ID, and setting various headers,
|
|
@@ -202,12 +216,13 @@ function batchInputRequestToBundleEntryItem<T extends FhirResource>(
|
|
|
202
216
|
resource: request.resource,
|
|
203
217
|
} as BundleEntry<Binary<T>>;
|
|
204
218
|
}
|
|
219
|
+
const data = stringToBase64(JSON.stringify(request.operations));
|
|
205
220
|
return {
|
|
206
221
|
...baseRequest,
|
|
207
222
|
resource: {
|
|
208
223
|
resourceType: 'Binary',
|
|
209
224
|
contentType: 'application/json-patch+json',
|
|
210
|
-
data
|
|
225
|
+
data,
|
|
211
226
|
},
|
|
212
227
|
} as BundleEntry<Binary<T>>;
|
|
213
228
|
}
|
|
@@ -6,8 +6,6 @@ import { Charge } from './charge';
|
|
|
6
6
|
import { Conversation } from './conversation';
|
|
7
7
|
import { Developer } from './developer';
|
|
8
8
|
import { Erx } from './erx';
|
|
9
|
-
import { ErxV1 } from './erxV1';
|
|
10
|
-
import { ErxV2 } from './erxV2';
|
|
11
9
|
import { Fax } from './fax';
|
|
12
10
|
import { Fhir } from './fhir';
|
|
13
11
|
import { Lab } from './lab';
|
|
@@ -19,6 +17,7 @@ import { Rcm } from './rcm';
|
|
|
19
17
|
import { Role } from './role';
|
|
20
18
|
import { Secret } from './secret';
|
|
21
19
|
import { Telemed } from './telemed';
|
|
20
|
+
import { Terminology } from './terminology';
|
|
22
21
|
import { TransactionalSMS } from './transactionalSMS';
|
|
23
22
|
import { User } from './user';
|
|
24
23
|
import { Version } from './version';
|
|
@@ -38,8 +37,6 @@ export class Oystehr {
|
|
|
38
37
|
readonly charge: Charge;
|
|
39
38
|
readonly project: Project;
|
|
40
39
|
readonly rcm: Rcm;
|
|
41
|
-
readonly erxV1: ErxV1;
|
|
42
|
-
readonly erxV2: ErxV2;
|
|
43
40
|
readonly role: Role;
|
|
44
41
|
readonly secret: Secret;
|
|
45
42
|
readonly telemed: Telemed;
|
|
@@ -51,6 +48,7 @@ export class Oystehr {
|
|
|
51
48
|
readonly fax: Fax;
|
|
52
49
|
readonly lab: Lab;
|
|
53
50
|
readonly erx: Erx;
|
|
51
|
+
readonly terminology: Terminology;
|
|
54
52
|
readonly fhir: Fhir;
|
|
55
53
|
constructor(config: OystehrConfig) {
|
|
56
54
|
this.config = config;
|
|
@@ -67,8 +65,6 @@ export class Oystehr {
|
|
|
67
65
|
this.charge = new Charge(config);
|
|
68
66
|
this.project = new Project(config);
|
|
69
67
|
this.rcm = new Rcm(config);
|
|
70
|
-
this.erxV1 = new ErxV1(config);
|
|
71
|
-
this.erxV2 = new ErxV2(config);
|
|
72
68
|
this.role = new Role(config);
|
|
73
69
|
this.secret = new Secret(config);
|
|
74
70
|
this.telemed = new Telemed(config);
|
|
@@ -80,6 +76,7 @@ export class Oystehr {
|
|
|
80
76
|
this.fax = new Fax(config);
|
|
81
77
|
this.lab = new Lab(config);
|
|
82
78
|
this.erx = new Erx(config);
|
|
79
|
+
this.terminology = new Terminology(config);
|
|
83
80
|
this.fhir = new Fhir(config);
|
|
84
81
|
}
|
|
85
82
|
}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
LabRouteCreateParams,
|
|
11
11
|
LabRouteCreateResponse,
|
|
12
12
|
LabRouteDeleteParams,
|
|
13
|
+
LabRouteGetResponse,
|
|
13
14
|
LabRouteListResponse,
|
|
14
15
|
OystehrClientRequest,
|
|
15
16
|
} from '../..';
|
|
@@ -43,6 +44,16 @@ export class Lab extends SDKResource {
|
|
|
43
44
|
routeCreate(params: LabRouteCreateParams, request?: OystehrClientRequest): Promise<LabRouteCreateResponse> {
|
|
44
45
|
return this.request('/route', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
45
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Gets a Route associated with the project by specified Guid.
|
|
49
|
+
*
|
|
50
|
+
* Access Policy Requirements:
|
|
51
|
+
* Action: `Lab:GetSingleRoute`
|
|
52
|
+
* Access Policy Resource: `Lab:Route`
|
|
53
|
+
*/
|
|
54
|
+
routeGet(request?: OystehrClientRequest): Promise<LabRouteGetResponse> {
|
|
55
|
+
return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(request);
|
|
56
|
+
}
|
|
46
57
|
/**
|
|
47
58
|
* Delete a route. Deleting a Route will permanently remove the `routeGuid`. Orders can no longer be submitted to this lab until a new Route is created. See [Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#delete-route) for more details.
|
|
48
59
|
*
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
OystehrClientRequest,
|
|
5
|
+
TerminologySearchCptParams,
|
|
6
|
+
TerminologySearchCptResponse,
|
|
7
|
+
TerminologySearchHcpcsParams,
|
|
8
|
+
TerminologySearchHcpcsResponse,
|
|
9
|
+
} from '../..';
|
|
10
|
+
import { SDKResource } from '../../client/client';
|
|
11
|
+
import { OystehrConfig } from '../../config';
|
|
12
|
+
|
|
13
|
+
export class Terminology extends SDKResource {
|
|
14
|
+
constructor(config: OystehrConfig) {
|
|
15
|
+
super(config);
|
|
16
|
+
}
|
|
17
|
+
#baseUrlThunk(): string {
|
|
18
|
+
return this.config.services?.['terminologyApiUrl'] ?? 'https://terminology-api.zapehr.com/v1';
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Search CPT (Current Procedural Terminology) codes by code or description. Supports exact matches, prefix searches, and full-text search with BM25 ranking.
|
|
22
|
+
*
|
|
23
|
+
* Access Policy Action: `Terminology:SearchCodes`
|
|
24
|
+
* Access Policy Resource: `Terminology:Code:*`
|
|
25
|
+
*/
|
|
26
|
+
searchCpt(params: TerminologySearchCptParams, request?: OystehrClientRequest): Promise<TerminologySearchCptResponse> {
|
|
27
|
+
return this.request('/cpt/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Search HCPCS (Healthcare Common Procedure Coding System) Level II codes by code or description. Supports exact matches, prefix searches, and full-text search with BM25 ranking.
|
|
31
|
+
*
|
|
32
|
+
* Access Policy Action: `Terminology:SearchCodes`
|
|
33
|
+
* Access Policy Resource: `Terminology:Code:*`
|
|
34
|
+
*/
|
|
35
|
+
searchHcpcs(
|
|
36
|
+
params: TerminologySearchHcpcsParams,
|
|
37
|
+
request?: OystehrClientRequest
|
|
38
|
+
): Promise<TerminologySearchHcpcsResponse> {
|
|
39
|
+
return this.request('/hcpcs/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
UserListV2Response,
|
|
13
13
|
UserMeResponse,
|
|
14
14
|
UserResetMfaParams,
|
|
15
|
+
UserResetPasswordLinkParams,
|
|
15
16
|
UserUpdateParams,
|
|
16
17
|
UserUpdateResponse,
|
|
17
18
|
} from '../..';
|
|
@@ -69,6 +70,15 @@ export class User extends SDKResource {
|
|
|
69
70
|
resetMfa(params: UserResetMfaParams, request?: OystehrClientRequest): Promise<void> {
|
|
70
71
|
return this.request('/user/{id}/reset-mfa', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
71
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates a password reset link for the User with the provided ID. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
75
|
+
*
|
|
76
|
+
* Access Policy Action: `App:GetUserPasswordResetLink`
|
|
77
|
+
* Access Policy Resource: `App:User`
|
|
78
|
+
*/
|
|
79
|
+
resetPasswordLink(params: UserResetPasswordLinkParams, request?: OystehrClientRequest): Promise<void> {
|
|
80
|
+
return this.request('/user/{id}/reset-password-link', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
81
|
+
}
|
|
72
82
|
/**
|
|
73
83
|
* Invite a User to the Project. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
|
|
74
84
|
*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Information about a specific route.
|
|
5
|
+
*/
|
|
6
|
+
export interface LabRouteGetResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of the created Route.
|
|
9
|
+
*/
|
|
10
|
+
routeGuid: string;
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier of a lab. Searchable via orderable item Search
|
|
13
|
+
*/
|
|
14
|
+
labGuid: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of lab
|
|
17
|
+
*/
|
|
18
|
+
labName: string;
|
|
19
|
+
/**
|
|
20
|
+
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
21
|
+
*/
|
|
22
|
+
accountNumber: string;
|
|
23
|
+
}
|
|
@@ -7,13 +7,13 @@ export type LabRouteListResponse = {
|
|
|
7
7
|
/**
|
|
8
8
|
* Unique identifier of the created Route.
|
|
9
9
|
*/
|
|
10
|
-
routeGuid
|
|
10
|
+
routeGuid: string;
|
|
11
11
|
/**
|
|
12
12
|
* Unique identifier of a lab. Searchable via orderable item Search
|
|
13
13
|
*/
|
|
14
|
-
labGuid
|
|
14
|
+
labGuid: string;
|
|
15
15
|
/**
|
|
16
16
|
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
17
17
|
*/
|
|
18
|
-
accountNumber
|
|
18
|
+
accountNumber: string;
|
|
19
19
|
}[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* CPT code search results
|
|
5
|
+
*/
|
|
6
|
+
export interface TerminologySearchCptResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Array of CPT codes matching the search.
|
|
9
|
+
*/
|
|
10
|
+
codes: {
|
|
11
|
+
/**
|
|
12
|
+
* CPT code.
|
|
13
|
+
*/
|
|
14
|
+
code: string;
|
|
15
|
+
/**
|
|
16
|
+
* Human-readable description of the CPT code.
|
|
17
|
+
*/
|
|
18
|
+
display: string;
|
|
19
|
+
}[];
|
|
20
|
+
/**
|
|
21
|
+
* Pagination metadata.
|
|
22
|
+
*/
|
|
23
|
+
metadata: {
|
|
24
|
+
/**
|
|
25
|
+
* Cursor for the next page of results. Null if no more results.
|
|
26
|
+
*/
|
|
27
|
+
nextCursor: string | null;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* HCPCS code search results
|
|
5
|
+
*/
|
|
6
|
+
export interface TerminologySearchHcpcsResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Array of HCPCS codes matching the search.
|
|
9
|
+
*/
|
|
10
|
+
codes: {
|
|
11
|
+
/**
|
|
12
|
+
* HCPCS code.
|
|
13
|
+
*/
|
|
14
|
+
code: string;
|
|
15
|
+
/**
|
|
16
|
+
* Human-readable description of the HCPCS code.
|
|
17
|
+
*/
|
|
18
|
+
display: string;
|
|
19
|
+
}[];
|
|
20
|
+
/**
|
|
21
|
+
* Pagination metadata.
|
|
22
|
+
*/
|
|
23
|
+
metadata: {
|
|
24
|
+
/**
|
|
25
|
+
* Cursor for the next page of results. Null if no more results.
|
|
26
|
+
*/
|
|
27
|
+
nextCursor: string | null;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -94,18 +94,6 @@ export * from './RcmValidateProfessionalClaimParams';
|
|
|
94
94
|
export * from './RcmValidateProfessionalClaimResponse';
|
|
95
95
|
export * from './RcmSubmitProfessionalClaimParams';
|
|
96
96
|
export * from './RcmSubmitProfessionalClaimResponse';
|
|
97
|
-
export * from './ErxV1SyncPatientParams';
|
|
98
|
-
export * from './ErxV1SyncPatientResponse';
|
|
99
|
-
export * from './ErxV1AllergySearchParams';
|
|
100
|
-
export * from './ErxV1AllergySearchResponse';
|
|
101
|
-
export * from './ErxV1CancelOrderParams';
|
|
102
|
-
export * from './ErxV1CancelOrderResponse';
|
|
103
|
-
export * from './ErxV1CancelPrescriptionParams';
|
|
104
|
-
export * from './ErxV1CancelPrescriptionResponse';
|
|
105
|
-
export * from './ErxV1MedicationSearchParams';
|
|
106
|
-
export * from './ErxV1MedicationSearchResponse';
|
|
107
|
-
export * from './ErxV2MedicationSearchParams';
|
|
108
|
-
export * from './ErxV2MedicationSearchResponse';
|
|
109
97
|
export * from './RoleListResponse';
|
|
110
98
|
export * from './RoleCreateParams';
|
|
111
99
|
export * from './RoleCreateResponse';
|
|
@@ -131,6 +119,7 @@ export * from './UserUpdateParams';
|
|
|
131
119
|
export * from './UserUpdateResponse';
|
|
132
120
|
export * from './UserDeleteParams';
|
|
133
121
|
export * from './UserResetMfaParams';
|
|
122
|
+
export * from './UserResetPasswordLinkParams';
|
|
134
123
|
export * from './UserInviteParams';
|
|
135
124
|
export * from './UserInviteResponse';
|
|
136
125
|
export * from './UserListResponse';
|
|
@@ -173,6 +162,7 @@ export * from './FaxSendResponse';
|
|
|
173
162
|
export * from './LabRouteListResponse';
|
|
174
163
|
export * from './LabRouteCreateParams';
|
|
175
164
|
export * from './LabRouteCreateResponse';
|
|
165
|
+
export * from './LabRouteGetResponse';
|
|
176
166
|
export * from './LabRouteDeleteParams';
|
|
177
167
|
export * from './LabOrderableItemListParams';
|
|
178
168
|
export * from './LabOrderableItemListResponse';
|
|
@@ -199,3 +189,7 @@ export * from './ErxCheckPractitionerEnrollmentParams';
|
|
|
199
189
|
export * from './ErxCheckPractitionerEnrollmentResponse';
|
|
200
190
|
export * from './ErxEnrollPractitionerParams';
|
|
201
191
|
export * from './ErxUnenrollPractitionerParams';
|
|
192
|
+
export * from './TerminologySearchCptParams';
|
|
193
|
+
export * from './TerminologySearchCptResponse';
|
|
194
|
+
export * from './TerminologySearchHcpcsParams';
|
|
195
|
+
export * from './TerminologySearchHcpcsResponse';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var client = require('../../client/client.cjs');
|
|
4
|
-
|
|
5
|
-
// AUTOGENERATED -- DO NOT EDIT
|
|
6
|
-
class ErxV1 extends client.SDKResource {
|
|
7
|
-
constructor(config) {
|
|
8
|
-
super(config);
|
|
9
|
-
}
|
|
10
|
-
#baseUrlThunk() {
|
|
11
|
-
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
15
|
-
*/
|
|
16
|
-
syncPatient(params, request) {
|
|
17
|
-
return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Search for allergies
|
|
21
|
-
*/
|
|
22
|
-
allergySearch(params, request) {
|
|
23
|
-
return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Cancel photon order
|
|
27
|
-
*/
|
|
28
|
-
cancelOrder(params, request) {
|
|
29
|
-
return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Cancel photon prescription
|
|
33
|
-
*/
|
|
34
|
-
cancelPrescription(params, request) {
|
|
35
|
-
return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Search for medications. Provide at least one of code or name filters
|
|
39
|
-
*/
|
|
40
|
-
medicationSearch(params, request) {
|
|
41
|
-
return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
exports.ErxV1 = ErxV1;
|
|
46
|
-
//# sourceMappingURL=erxV1.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"erxV1.cjs","sources":["../../../../src/resources/classes/erxV1.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n ErxV1AllergySearchParams,\n ErxV1AllergySearchResponse,\n ErxV1CancelOrderParams,\n ErxV1CancelOrderResponse,\n ErxV1CancelPrescriptionParams,\n ErxV1CancelPrescriptionResponse,\n ErxV1MedicationSearchParams,\n ErxV1MedicationSearchResponse,\n ErxV1SyncPatientParams,\n ErxV1SyncPatientResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ErxV1 extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Retrieve patient properties from FHIR service and sync them with eRx service\n */\n syncPatient(params: ErxV1SyncPatientParams, request?: OystehrClientRequest): Promise<ErxV1SyncPatientResponse> {\n return this.request('/erx/sync-patient/{patientId}', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for allergies\n */\n allergySearch(params: ErxV1AllergySearchParams, request?: OystehrClientRequest): Promise<ErxV1AllergySearchResponse> {\n return this.request('/erx/allergy/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Cancel photon order\n */\n cancelOrder(params: ErxV1CancelOrderParams, request?: OystehrClientRequest): Promise<ErxV1CancelOrderResponse> {\n return this.request('/erx/cancel-order', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Cancel photon prescription\n */\n cancelPrescription(\n params: ErxV1CancelPrescriptionParams,\n request?: OystehrClientRequest\n ): Promise<ErxV1CancelPrescriptionResponse> {\n return this.request('/erx/cancel-prescription', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxV1MedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxV1MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params?: ErxV1MedicationSearchParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxV1MedicationSearchResponse> {\n return this.request('/erx/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAkBM,MAAO,KAAM,SAAQA,kBAAW,CAAA;AACpC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC;IACvF;AACA;;AAEG;IACH,WAAW,CAAC,MAA8B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,+BAA+B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9G;AACA;;AAEG;IACH,aAAa,CAAC,MAAgC,EAAE,OAA8B,EAAA;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACnG;AACA;;AAEG;IACH,WAAW,CAAC,MAA8B,EAAE,OAA8B,EAAA;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAClG;AACA;;AAEG;IACH,kBAAkB,CAChB,MAAqC,EACrC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACzG;AAYA;;AAEG;IACH,gBAAgB,CACd,MAA2D,EAC3D,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACtG;AACD;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ErxV1AllergySearchParams, ErxV1AllergySearchResponse, ErxV1CancelOrderParams, ErxV1CancelOrderResponse, ErxV1CancelPrescriptionParams, ErxV1CancelPrescriptionResponse, ErxV1MedicationSearchParams, ErxV1MedicationSearchResponse, ErxV1SyncPatientParams, ErxV1SyncPatientResponse, OystehrClientRequest } from '../..';
|
|
2
|
-
import { SDKResource } from '../../client/client';
|
|
3
|
-
import { OystehrConfig } from '../../config';
|
|
4
|
-
export declare class ErxV1 extends SDKResource {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(config: OystehrConfig);
|
|
7
|
-
/**
|
|
8
|
-
* Retrieve patient properties from FHIR service and sync them with eRx service
|
|
9
|
-
*/
|
|
10
|
-
syncPatient(params: ErxV1SyncPatientParams, request?: OystehrClientRequest): Promise<ErxV1SyncPatientResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Search for allergies
|
|
13
|
-
*/
|
|
14
|
-
allergySearch(params: ErxV1AllergySearchParams, request?: OystehrClientRequest): Promise<ErxV1AllergySearchResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Cancel photon order
|
|
17
|
-
*/
|
|
18
|
-
cancelOrder(params: ErxV1CancelOrderParams, request?: OystehrClientRequest): Promise<ErxV1CancelOrderResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Cancel photon prescription
|
|
21
|
-
*/
|
|
22
|
-
cancelPrescription(params: ErxV1CancelPrescriptionParams, request?: OystehrClientRequest): Promise<ErxV1CancelPrescriptionResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Search for medications. Provide at least one of code or name filters
|
|
25
|
-
*/
|
|
26
|
-
medicationSearch(params: ErxV1MedicationSearchParams, request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;
|
|
27
|
-
/**
|
|
28
|
-
* Search for medications. Provide at least one of code or name filters
|
|
29
|
-
*/
|
|
30
|
-
medicationSearch(request?: OystehrClientRequest): Promise<ErxV1MedicationSearchResponse>;
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var client = require('../../client/client.cjs');
|
|
4
|
-
|
|
5
|
-
// AUTOGENERATED -- DO NOT EDIT
|
|
6
|
-
class ErxV2 extends client.SDKResource {
|
|
7
|
-
constructor(config) {
|
|
8
|
-
super(config);
|
|
9
|
-
}
|
|
10
|
-
#baseUrlThunk() {
|
|
11
|
-
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Search for medications. Provide at least one of code or name filters
|
|
15
|
-
*/
|
|
16
|
-
medicationSearch(params, request) {
|
|
17
|
-
return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
exports.ErxV2 = ErxV2;
|
|
22
|
-
//# sourceMappingURL=erxV2.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"erxV2.cjs","sources":["../../../../src/resources/classes/erxV2.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { ErxV2MedicationSearchParams, ErxV2MedicationSearchResponse, OystehrClientRequest } from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class ErxV2 extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';\n }\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params: ErxV2MedicationSearchParams,\n request?: OystehrClientRequest\n ): Promise<ErxV2MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;\n /**\n * Search for medications. Provide at least one of code or name filters\n */\n medicationSearch(\n params?: ErxV2MedicationSearchParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<ErxV2MedicationSearchResponse> {\n return this.request('/erx/v2/medication/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":["SDKResource"],"mappings":";;;;AAAA;AAMM,MAAO,KAAM,SAAQA,kBAAW,CAAA;AACpC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,eAAe,CAAC,IAAI,mCAAmC;IACvF;AAYA;;AAEG;IACH,gBAAgB,CACd,MAA2D,EAC3D,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,2BAA2B,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACzG;AACD;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ErxV2MedicationSearchParams, ErxV2MedicationSearchResponse, OystehrClientRequest } from '../..';
|
|
2
|
-
import { SDKResource } from '../../client/client';
|
|
3
|
-
import { OystehrConfig } from '../../config';
|
|
4
|
-
export declare class ErxV2 extends SDKResource {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(config: OystehrConfig);
|
|
7
|
-
/**
|
|
8
|
-
* Search for medications. Provide at least one of code or name filters
|
|
9
|
-
*/
|
|
10
|
-
medicationSearch(params: ErxV2MedicationSearchParams, request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Search for medications. Provide at least one of code or name filters
|
|
13
|
-
*/
|
|
14
|
-
medicationSearch(request?: OystehrClientRequest): Promise<ErxV2MedicationSearchResponse>;
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Allergens
|
|
3
|
-
*/
|
|
4
|
-
export interface ErxV1AllergySearchResponse {
|
|
5
|
-
allergens?: {
|
|
6
|
-
/**
|
|
7
|
-
* The Photon identifier for the allergen.
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Human readible name of allergen.
|
|
12
|
-
*/
|
|
13
|
-
name?: string;
|
|
14
|
-
/**
|
|
15
|
-
* RxNorm Concept Unique (RxCUI) identifier of allergen.
|
|
16
|
-
*/
|
|
17
|
-
rxcui?: string;
|
|
18
|
-
}[];
|
|
19
|
-
}
|