@oystehr/sdk 3.0.9 → 3.0.11
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.cjs +75 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.d.ts +2 -0
- package/dist/cjs/resources/classes/lab.d.ts +63 -0
- package/dist/cjs/resources/classes/project.d.ts +1 -1
- package/dist/cjs/resources/types/LabOrderSubmitParams.d.ts +11 -0
- package/dist/cjs/resources/types/LabOrderableItemListParams.d.ts +11 -0
- package/dist/cjs/resources/types/LabOrderableItemListResponse.d.ts +134 -0
- package/dist/cjs/resources/types/LabOrderableItemQuestionnaireGetParams.d.ts +6 -0
- package/dist/cjs/resources/types/LabOrderableItemQuestionnaireGetResponse.d.ts +5 -0
- package/dist/cjs/resources/types/LabRouteCreateParams.d.ts +41 -0
- package/dist/cjs/resources/types/LabRouteDeleteParams.d.ts +4 -0
- package/dist/cjs/resources/types/LabRouteListResponse.d.ts +17 -0
- package/dist/cjs/resources/types/ZambdaExecuteResult.d.ts +3 -1
- package/dist/cjs/resources/types/index.d.ts +8 -0
- 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/node_modules/tslib/package.json +1 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js +40 -0
- package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/esm/resources/classes/index.d.ts +2 -0
- package/dist/esm/resources/classes/index.js +2 -0
- package/dist/esm/resources/classes/index.js.map +1 -1
- package/dist/esm/resources/classes/lab.d.ts +63 -0
- package/dist/esm/resources/classes/lab.js +78 -0
- package/dist/esm/resources/classes/lab.js.map +1 -0
- package/dist/esm/resources/classes/project.d.ts +1 -1
- package/dist/esm/resources/classes/project.js +1 -1
- package/dist/esm/resources/classes/project.js.map +1 -1
- package/dist/esm/resources/types/LabOrderSubmitParams.d.ts +11 -0
- package/dist/esm/resources/types/LabOrderableItemListParams.d.ts +11 -0
- package/dist/esm/resources/types/LabOrderableItemListResponse.d.ts +134 -0
- package/dist/esm/resources/types/LabOrderableItemQuestionnaireGetParams.d.ts +6 -0
- package/dist/esm/resources/types/LabOrderableItemQuestionnaireGetResponse.d.ts +5 -0
- package/dist/esm/resources/types/LabRouteCreateParams.d.ts +41 -0
- package/dist/esm/resources/types/LabRouteDeleteParams.d.ts +4 -0
- package/dist/esm/resources/types/LabRouteListResponse.d.ts +17 -0
- package/dist/esm/resources/types/ZambdaExecuteResult.d.ts +3 -1
- package/dist/esm/resources/types/index.d.ts +8 -0
- package/package.json +2 -2
- package/src/config.ts +1 -0
- package/src/resources/classes/index.ts +3 -0
- package/src/resources/classes/lab.ts +113 -0
- package/src/resources/classes/project.ts +1 -1
- package/src/resources/types/LabOrderSubmitParams.ts +13 -0
- package/src/resources/types/LabOrderableItemListParams.ts +13 -0
- package/src/resources/types/LabOrderableItemListResponse.ts +136 -0
- package/src/resources/types/LabOrderableItemQuestionnaireGetParams.ts +8 -0
- package/src/resources/types/LabOrderableItemQuestionnaireGetResponse.ts +7 -0
- package/src/resources/types/LabRouteCreateParams.ts +43 -0
- package/src/resources/types/LabRouteDeleteParams.ts +6 -0
- package/src/resources/types/LabRouteListResponse.ts +19 -0
- package/src/resources/types/ZambdaExecuteResult.ts +8 -1
- package/src/resources/types/index.ts +8 -0
|
@@ -164,3 +164,11 @@ export * from './ZambdaLogStreamGetParams';
|
|
|
164
164
|
export * from './ZambdaLogStreamGetResponse';
|
|
165
165
|
export * from './FaxSendParams';
|
|
166
166
|
export * from './FaxSendResponse';
|
|
167
|
+
export * from './LabRouteListResponse';
|
|
168
|
+
export * from './LabRouteCreateParams';
|
|
169
|
+
export * from './LabRouteDeleteParams';
|
|
170
|
+
export * from './LabOrderableItemListParams';
|
|
171
|
+
export * from './LabOrderableItemListResponse';
|
|
172
|
+
export * from './LabOrderableItemQuestionnaireGetParams';
|
|
173
|
+
export * from './LabOrderableItemQuestionnaireGetResponse';
|
|
174
|
+
export * from './LabOrderSubmitParams';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oystehr/sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "Oystehr SDK",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"parser": "ts-node 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 scripts/generate-sdk-v3 project,fax src/resources"
|
|
17
|
+
"generate": "ts-node scripts/generate-sdk-v3 project,fax,lab src/resources"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"npm": ">=8.0.0",
|
package/src/config.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { Developer } from './developer';
|
|
|
8
8
|
import { Erx } from './erx';
|
|
9
9
|
import { Fax } from './fax';
|
|
10
10
|
import { Fhir } from './fhir';
|
|
11
|
+
import { Lab } from './lab';
|
|
11
12
|
import { M2m } from './m2m';
|
|
12
13
|
import { Messaging } from './messaging';
|
|
13
14
|
import { PaymentMethod } from './paymentMethod';
|
|
@@ -45,6 +46,7 @@ export class Oystehr {
|
|
|
45
46
|
readonly zambda: Zambda;
|
|
46
47
|
readonly zambdaLogStream: ZambdaLogStream;
|
|
47
48
|
readonly fax: Fax;
|
|
49
|
+
readonly lab: Lab;
|
|
48
50
|
readonly fhir: Fhir;
|
|
49
51
|
constructor(config: OystehrConfig) {
|
|
50
52
|
this.config = config;
|
|
@@ -71,6 +73,7 @@ export class Oystehr {
|
|
|
71
73
|
this.zambda = new Zambda(config);
|
|
72
74
|
this.zambdaLogStream = new ZambdaLogStream(config);
|
|
73
75
|
this.fax = new Fax(config);
|
|
76
|
+
this.lab = new Lab(config);
|
|
74
77
|
this.fhir = new Fhir(config);
|
|
75
78
|
}
|
|
76
79
|
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
LabOrderableItemListParams,
|
|
5
|
+
LabOrderableItemListResponse,
|
|
6
|
+
LabOrderableItemQuestionnaireGetParams,
|
|
7
|
+
LabOrderableItemQuestionnaireGetResponse,
|
|
8
|
+
LabOrderSubmitParams,
|
|
9
|
+
LabRouteCreateParams,
|
|
10
|
+
LabRouteDeleteParams,
|
|
11
|
+
LabRouteListResponse,
|
|
12
|
+
OystehrClientRequest,
|
|
13
|
+
} from '../..';
|
|
14
|
+
import { SDKResource } from '../../client/client';
|
|
15
|
+
import { OystehrConfig } from '../../config';
|
|
16
|
+
|
|
17
|
+
export class Lab extends SDKResource {
|
|
18
|
+
constructor(config: OystehrConfig) {
|
|
19
|
+
super(config);
|
|
20
|
+
}
|
|
21
|
+
#baseUrlThunk(): string {
|
|
22
|
+
return this.config.services?.['labApiUrl'] ?? 'https://labs-api.zapehr.com/v1';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Gets a list of Routes associated with the project. Returns an empty list if no Routes are found.
|
|
26
|
+
*
|
|
27
|
+
* Access Policy Requirements:
|
|
28
|
+
* Action: `Lab:GetRoutes`
|
|
29
|
+
* Access Policy Resource: `Lab:Route`
|
|
30
|
+
*/
|
|
31
|
+
routeList(request?: OystehrClientRequest): Promise<LabRouteListResponse> {
|
|
32
|
+
return this.request('/route', 'get', this.#baseUrlThunk.bind(this))(request);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create a route. A Route represents that a lab and particular customer have a relationship, and a Route is necessary to submit an order to a lab. See [Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
36
|
+
*
|
|
37
|
+
* Access Policy Requirements:
|
|
38
|
+
* Action: `Lab:CreateRoute`
|
|
39
|
+
* Access Policy Resource: `Lab:Route`
|
|
40
|
+
*/
|
|
41
|
+
routeCreate(params: LabRouteCreateParams, request?: OystehrClientRequest): Promise<void> {
|
|
42
|
+
return this.request('/route', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* 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.
|
|
46
|
+
*
|
|
47
|
+
* Access Policy Requirements:
|
|
48
|
+
* Action: `Lab:DeleteRoute`
|
|
49
|
+
* Access Policy Resource: `Lab:Route`
|
|
50
|
+
*/
|
|
51
|
+
routeDelete(params: LabRouteDeleteParams, request?: OystehrClientRequest): Promise<void> {
|
|
52
|
+
return this.request('/route/{routeGuid}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns list of active orderable items for the latest compendium version. Page size is default 25 and max 100 items. See [orderable item Search](https://docs.oystehr.com/oystehr/services/lab/explore-the-compendium/#orderable-item-search) for more details.
|
|
56
|
+
*
|
|
57
|
+
* Access Policy Requirements:
|
|
58
|
+
* Action: `Lab:SearchOrderableItems`
|
|
59
|
+
* Access Policy Resource: `Lab:OrderableItem`
|
|
60
|
+
*/
|
|
61
|
+
orderableItemList(
|
|
62
|
+
params: LabOrderableItemListParams,
|
|
63
|
+
request?: OystehrClientRequest
|
|
64
|
+
): Promise<LabOrderableItemListResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Returns list of active orderable items for the latest compendium version. Page size is default 25 and max 100 items. See [orderable item Search](https://docs.oystehr.com/oystehr/services/lab/explore-the-compendium/#orderable-item-search) for more details.
|
|
67
|
+
*
|
|
68
|
+
* Access Policy Requirements:
|
|
69
|
+
* Action: `Lab:SearchOrderableItems`
|
|
70
|
+
* Access Policy Resource: `Lab:OrderableItem`
|
|
71
|
+
*/
|
|
72
|
+
orderableItemList(request?: OystehrClientRequest): Promise<LabOrderableItemListResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Returns list of active orderable items for the latest compendium version. Page size is default 25 and max 100 items. See [orderable item Search](https://docs.oystehr.com/oystehr/services/lab/explore-the-compendium/#orderable-item-search) for more details.
|
|
75
|
+
*
|
|
76
|
+
* Access Policy Requirements:
|
|
77
|
+
* Action: `Lab:SearchOrderableItems`
|
|
78
|
+
* Access Policy Resource: `Lab:OrderableItem`
|
|
79
|
+
*/
|
|
80
|
+
orderableItemList(
|
|
81
|
+
params?: LabOrderableItemListParams | OystehrClientRequest,
|
|
82
|
+
request?: OystehrClientRequest
|
|
83
|
+
): Promise<LabOrderableItemListResponse> {
|
|
84
|
+
return this.request('/orderableItem', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Retrieve the AOE (Answer on Entry) Questionnaire for the given orderable item. The orderable item is defined by its labGuid, compendiumVersion, and itemCode. See [AOE](https://docs.oystehr.com/oystehr/services/lab/explore-the-compendium/#AOE) for more details.
|
|
88
|
+
*
|
|
89
|
+
* Access Policy Requirements:
|
|
90
|
+
* Action: `Lab:SearchOrderableItems`
|
|
91
|
+
* Access Policy Resource: `Lab:OrderableItem`
|
|
92
|
+
*/
|
|
93
|
+
orderableItemQuestionnaireGet(
|
|
94
|
+
params: LabOrderableItemQuestionnaireGetParams,
|
|
95
|
+
request?: OystehrClientRequest
|
|
96
|
+
): Promise<LabOrderableItemQuestionnaireGetResponse> {
|
|
97
|
+
return this.request(
|
|
98
|
+
'/canonical-questionnaire/lab/{labGuid}/compendium/{compendiumVersion}/item/{itemCode}/questionnaire',
|
|
99
|
+
'get',
|
|
100
|
+
this.#baseUrlThunk.bind(this)
|
|
101
|
+
)(params, request);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Submit a lab order. Oystehr's [Submit Lab](https://docs.oystehr.com/oystehr/services/lab/submit-an-order/) feature allows users to submit a well configured ServiceRequest to an external lab. In order to successfully submit an order, a [Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) to and Organization representing that lab must exist.
|
|
105
|
+
*
|
|
106
|
+
* Access Policy Requirements:
|
|
107
|
+
* Action: `Lab:SubmitOrder`
|
|
108
|
+
* Access Policy Resource: `Lab:Order`
|
|
109
|
+
*/
|
|
110
|
+
orderSubmit(params: LabOrderSubmitParams, request?: OystehrClientRequest): Promise<void> {
|
|
111
|
+
return this.request('/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -12,7 +12,7 @@ export class Project extends SDKResource {
|
|
|
12
12
|
return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-
|
|
15
|
+
* Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-oystehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/oystehr/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
|
|
16
16
|
*
|
|
17
17
|
* Access Policy Action: `Project:GetProjectInfo`
|
|
18
18
|
* Access Policy Resource: `Project:Settings`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface LabOrderSubmitParams {
|
|
4
|
+
primaryId?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
7
|
+
*/
|
|
8
|
+
accountNumber: string;
|
|
9
|
+
/**
|
|
10
|
+
* Valid ServiceRequest FHIR resource representing an order. See [Submit Lab](https://docs.oystehr.com/oystehr/services/lab/submit-an-order/) for more details.
|
|
11
|
+
*/
|
|
12
|
+
serviceRequest: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface LabOrderableItemListParams {
|
|
4
|
+
cursor?: string;
|
|
5
|
+
itemCodes?: string;
|
|
6
|
+
itemCptCodes?: string;
|
|
7
|
+
itemLoincs?: string;
|
|
8
|
+
itemNames?: string;
|
|
9
|
+
labIds?: string;
|
|
10
|
+
limit?: number;
|
|
11
|
+
sort?: 'itemCodes' | 'itemLoincs' | 'itemNames' | 'labIds';
|
|
12
|
+
sortOrder?: 'asc' | 'desc';
|
|
13
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import { Questionnaire } from 'fhir/r4b';
|
|
4
|
+
/**
|
|
5
|
+
* orderable item results
|
|
6
|
+
*/
|
|
7
|
+
export interface LabOrderableItemListResponse {
|
|
8
|
+
orderableItems?: {
|
|
9
|
+
/**
|
|
10
|
+
* Identifying lab information and compendium version
|
|
11
|
+
*/
|
|
12
|
+
lab?: {
|
|
13
|
+
/**
|
|
14
|
+
* Identifying labGuid pertaining to the specific result
|
|
15
|
+
*/
|
|
16
|
+
labGuid?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Name of lab
|
|
19
|
+
*/
|
|
20
|
+
labName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Description of lab
|
|
23
|
+
*/
|
|
24
|
+
labType?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Current compendium version for given lab
|
|
27
|
+
*/
|
|
28
|
+
compendiumVersion?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Specific orderable item details
|
|
32
|
+
*/
|
|
33
|
+
item?: {
|
|
34
|
+
/**
|
|
35
|
+
* Code uniquely identifying the orderable item for the given lab and compendium version
|
|
36
|
+
*/
|
|
37
|
+
itemCode?: string;
|
|
38
|
+
/**
|
|
39
|
+
* LOINC code associated with this orderable item.
|
|
40
|
+
*/
|
|
41
|
+
itemLoinc?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Type of orderable item
|
|
44
|
+
*/
|
|
45
|
+
itemType?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Name of the orderable item.
|
|
48
|
+
*/
|
|
49
|
+
itemName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Unique name of the orderable item. Typically a combination of the itemCode and itemName
|
|
52
|
+
*/
|
|
53
|
+
uniqueName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* List of the sample(s) that must be collected for this orderable item
|
|
56
|
+
*/
|
|
57
|
+
specimens?: {
|
|
58
|
+
/**
|
|
59
|
+
* Description of container necessary to store the sample.
|
|
60
|
+
*/
|
|
61
|
+
container?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Volume of the specimen to be collected
|
|
64
|
+
*/
|
|
65
|
+
volume?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Minimum volume of specimen below which teh test is not performable
|
|
68
|
+
*/
|
|
69
|
+
minimumVolume?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Instructions for storing the specimen after collection
|
|
72
|
+
*/
|
|
73
|
+
storageRequirements?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Instructions for how to collect the sample
|
|
76
|
+
*/
|
|
77
|
+
collectionInstructions?: string;
|
|
78
|
+
}[];
|
|
79
|
+
/**
|
|
80
|
+
* List of the component(s) comprising this orderable item
|
|
81
|
+
*/
|
|
82
|
+
components?: {
|
|
83
|
+
/**
|
|
84
|
+
* Description of container necessary to store the sample.
|
|
85
|
+
*/
|
|
86
|
+
componentItemCode?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Name of component
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
/**
|
|
92
|
+
* LOINC code identifying the component
|
|
93
|
+
*/
|
|
94
|
+
loinc?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Unit of measurement
|
|
97
|
+
*/
|
|
98
|
+
uom?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Reference range associated with the component
|
|
101
|
+
*/
|
|
102
|
+
range?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Type of the component, such as List, Numeric, Free Text
|
|
105
|
+
*/
|
|
106
|
+
type?: string;
|
|
107
|
+
}[];
|
|
108
|
+
/**
|
|
109
|
+
* Array of CPT codes associated with the orderable item
|
|
110
|
+
*/
|
|
111
|
+
cptCodes?: {
|
|
112
|
+
/**
|
|
113
|
+
* CPT Code used for billing for medical services and procedures
|
|
114
|
+
*/
|
|
115
|
+
cptCode?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Number of billable units
|
|
118
|
+
*/
|
|
119
|
+
serviceUnitsCount?: number;
|
|
120
|
+
}[];
|
|
121
|
+
/**
|
|
122
|
+
* Answer On Entry Questionnaire. See FHIR Questionnaire for schema
|
|
123
|
+
*/
|
|
124
|
+
aoe?: Questionnaire;
|
|
125
|
+
};
|
|
126
|
+
}[];
|
|
127
|
+
/**
|
|
128
|
+
* Pagination details
|
|
129
|
+
*/
|
|
130
|
+
metadata?: {
|
|
131
|
+
/**
|
|
132
|
+
* Cursor to include in subsequent request for next page of results. Will be null if there are no more results.
|
|
133
|
+
*/
|
|
134
|
+
nextCursor?: string;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface LabRouteCreateParams {
|
|
4
|
+
primaryId?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
7
|
+
*/
|
|
8
|
+
accountNumber: string;
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier of a lab. Searchable via orderable item Search.
|
|
11
|
+
*/
|
|
12
|
+
labGuid: string;
|
|
13
|
+
/**
|
|
14
|
+
* Name of the Primary (Practice or Provider depending on the Route). Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
15
|
+
*/
|
|
16
|
+
primaryName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Address of the Primary. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
19
|
+
*/
|
|
20
|
+
primaryAddress?: {
|
|
21
|
+
address1: string;
|
|
22
|
+
address2?: string;
|
|
23
|
+
city: string;
|
|
24
|
+
stateProvinceCode: string;
|
|
25
|
+
postalCode: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* String representing accepted End User License Agreement Version. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
29
|
+
*/
|
|
30
|
+
eulaVersion?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Name of individual who accepted the End User License Agreement. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
33
|
+
*/
|
|
34
|
+
eulaAccepterFullName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* ISO string representing when the End User License Agreement was accepted. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
37
|
+
*/
|
|
38
|
+
eulaAcceptanceDateTimeUtc?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Site ID for the Primary. ClientSiteID is assigned by the lab. This disambiguates instances where the same Account Number is used across multiple physical locations. Required for certain labs. See [Create Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
|
|
41
|
+
*/
|
|
42
|
+
clientSiteId?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* List of Routes associated with the calling projectId.
|
|
5
|
+
*/
|
|
6
|
+
export type LabRouteListResponse = {
|
|
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
|
+
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
17
|
+
*/
|
|
18
|
+
accountNumber?: string;
|
|
19
|
+
}[];
|
|
@@ -166,3 +166,11 @@ export * from './ZambdaLogStreamGetParams';
|
|
|
166
166
|
export * from './ZambdaLogStreamGetResponse';
|
|
167
167
|
export * from './FaxSendParams';
|
|
168
168
|
export * from './FaxSendResponse';
|
|
169
|
+
export * from './LabRouteListResponse';
|
|
170
|
+
export * from './LabRouteCreateParams';
|
|
171
|
+
export * from './LabRouteDeleteParams';
|
|
172
|
+
export * from './LabOrderableItemListParams';
|
|
173
|
+
export * from './LabOrderableItemListResponse';
|
|
174
|
+
export * from './LabOrderableItemQuestionnaireGetParams';
|
|
175
|
+
export * from './LabOrderableItemQuestionnaireGetResponse';
|
|
176
|
+
export * from './LabOrderSubmitParams';
|