@oystehr/sdk 4.2.1 → 4.2.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/dist/cjs/index.min.cjs +1 -1
- package/dist/cjs/index.min.cjs.map +1 -1
- package/dist/cjs/resources/classes/lab.cjs +2 -2
- package/dist/cjs/resources/classes/lab.cjs.map +1 -1
- package/dist/cjs/resources/classes/lab.d.ts +2 -2
- package/dist/cjs/resources/types/LabRoute.d.ts +52 -0
- package/dist/cjs/resources/types/LabRouteCreateParams.d.ts +4 -0
- package/dist/cjs/resources/types/LabRouteGetParams.d.ts +3 -0
- package/dist/cjs/resources/types/LabRouteGetResponse.d.ts +2 -18
- package/dist/cjs/resources/types/LabRouteListResponse.d.ts +2 -14
- package/dist/cjs/resources/types/index.d.ts +2 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/lab.d.ts +2 -2
- package/dist/esm/resources/classes/lab.js +2 -2
- package/dist/esm/resources/classes/lab.js.map +1 -1
- package/dist/esm/resources/types/LabRoute.d.ts +52 -0
- package/dist/esm/resources/types/LabRouteCreateParams.d.ts +4 -0
- package/dist/esm/resources/types/LabRouteGetParams.d.ts +3 -0
- package/dist/esm/resources/types/LabRouteGetResponse.d.ts +2 -18
- package/dist/esm/resources/types/LabRouteListResponse.d.ts +2 -14
- package/dist/esm/resources/types/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/resources/classes/lab.ts +3 -2
- package/src/resources/types/LabRoute.ts +54 -0
- package/src/resources/types/LabRouteCreateParams.ts +4 -0
- package/src/resources/types/LabRouteGetParams.ts +5 -0
- package/src/resources/types/LabRouteGetResponse.ts +2 -18
- package/src/resources/types/LabRouteListResponse.ts +2 -14
- package/src/resources/types/index.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LabOrderableItemListParams, LabOrderableItemListResponse, LabOrderableItemQuestionnaireGetParams, LabOrderableItemQuestionnaireGetResponse, LabOrderSubmitParams, LabOrderSubmitResponse, LabRouteCreateParams, LabRouteCreateResponse, LabRouteDeleteParams, LabRouteGetResponse, LabRouteListResponse, OystehrClientRequest } from '../..';
|
|
1
|
+
import { LabOrderableItemListParams, LabOrderableItemListResponse, LabOrderableItemQuestionnaireGetParams, LabOrderableItemQuestionnaireGetResponse, LabOrderSubmitParams, LabOrderSubmitResponse, LabRouteCreateParams, LabRouteCreateResponse, LabRouteDeleteParams, LabRouteGetParams, LabRouteGetResponse, LabRouteListResponse, OystehrClientRequest } from '../..';
|
|
2
2
|
import { SDKResource } from '../../client/client';
|
|
3
3
|
import { OystehrConfig } from '../../config';
|
|
4
4
|
export declare class Lab extends SDKResource {
|
|
@@ -27,7 +27,7 @@ export declare class Lab extends SDKResource {
|
|
|
27
27
|
* Action: `Lab:GetSingleRoute`
|
|
28
28
|
* Access Policy Resource: `Lab:Route`
|
|
29
29
|
*/
|
|
30
|
-
routeGet(request?: OystehrClientRequest): Promise<LabRouteGetResponse>;
|
|
30
|
+
routeGet(params: LabRouteGetParams, request?: OystehrClientRequest): Promise<LabRouteGetResponse>;
|
|
31
31
|
/**
|
|
32
32
|
* 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.
|
|
33
33
|
*
|
|
@@ -35,8 +35,8 @@ class Lab extends SDKResource {
|
|
|
35
35
|
* Action: `Lab:GetSingleRoute`
|
|
36
36
|
* Access Policy Resource: `Lab:Route`
|
|
37
37
|
*/
|
|
38
|
-
routeGet(request) {
|
|
39
|
-
return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(request);
|
|
38
|
+
routeGet(params, request) {
|
|
39
|
+
return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* 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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lab.js","sources":["../../../../src/resources/classes/lab.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n LabOrderableItemListParams,\n LabOrderableItemListResponse,\n LabOrderableItemQuestionnaireGetParams,\n LabOrderableItemQuestionnaireGetResponse,\n LabOrderSubmitParams,\n LabOrderSubmitResponse,\n LabRouteCreateParams,\n LabRouteCreateResponse,\n LabRouteDeleteParams,\n LabRouteGetResponse,\n LabRouteListResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Lab extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['labApiUrl'] ?? 'https://labs-api.zapehr.com/v1';\n }\n /**\n * Gets a list of Routes associated with the project. Returns an empty list if no Routes are found.\n *\n * Access Policy Requirements:\n * Action: `Lab:GetRoutes`\n * Access Policy Resource: `Lab:Route`\n */\n routeList(request?: OystehrClientRequest): Promise<LabRouteListResponse> {\n return this.request('/route', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:CreateRoute`\n * Access Policy Resource: `Lab:Route`\n */\n routeCreate(params: LabRouteCreateParams, request?: OystehrClientRequest): Promise<LabRouteCreateResponse> {\n return this.request('/route', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Gets a Route associated with the project by specified Guid.\n *\n * Access Policy Requirements:\n * Action: `Lab:GetSingleRoute`\n * Access Policy Resource: `Lab:Route`\n */\n routeGet(request?: OystehrClientRequest): Promise<LabRouteGetResponse> {\n return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:DeleteRoute`\n * Access Policy Resource: `Lab:Route`\n */\n routeDelete(params: LabRouteDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/route/{routeGuid}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemList(\n params: LabOrderableItemListParams,\n request?: OystehrClientRequest\n ): Promise<LabOrderableItemListResponse>;\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemList(request?: OystehrClientRequest): Promise<LabOrderableItemListResponse>;\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemList(\n params?: LabOrderableItemListParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<LabOrderableItemListResponse> {\n return this.request('/orderableItem', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemQuestionnaireGet(\n params: LabOrderableItemQuestionnaireGetParams,\n request?: OystehrClientRequest\n ): Promise<LabOrderableItemQuestionnaireGetResponse> {\n return this.request(\n '/canonical-questionnaire/lab/{labGuid}/compendium/{compendiumVersion}/item/{itemCode}/questionnaire',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Submit a lab order. Oystehr's [Submit Lab](https://docs.oystehr.com/oystehr/services/lab/submit-an-order/) feature allows users to submit an order consisting of one or more well-configured ServiceRequests 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. If the lab requires its own requisition document (eReq) or an Advance Beneficiary Notice (ABN), the appropriate DocumentReferences will be included in the response.\n *\n * Access Policy Requirements:\n * Action: `Lab:SubmitOrder`\n * Access Policy Resource: `Lab:Order`\n */\n orderSubmit(params: LabOrderSubmitParams, request?: OystehrClientRequest): Promise<LabOrderSubmitResponse> {\n return this.request('/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;
|
|
1
|
+
{"version":3,"file":"lab.js","sources":["../../../../src/resources/classes/lab.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n LabOrderableItemListParams,\n LabOrderableItemListResponse,\n LabOrderableItemQuestionnaireGetParams,\n LabOrderableItemQuestionnaireGetResponse,\n LabOrderSubmitParams,\n LabOrderSubmitResponse,\n LabRouteCreateParams,\n LabRouteCreateResponse,\n LabRouteDeleteParams,\n LabRouteGetParams,\n LabRouteGetResponse,\n LabRouteListResponse,\n OystehrClientRequest,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Lab extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['labApiUrl'] ?? 'https://labs-api.zapehr.com/v1';\n }\n /**\n * Gets a list of Routes associated with the project. Returns an empty list if no Routes are found.\n *\n * Access Policy Requirements:\n * Action: `Lab:GetRoutes`\n * Access Policy Resource: `Lab:Route`\n */\n routeList(request?: OystehrClientRequest): Promise<LabRouteListResponse> {\n return this.request('/route', 'get', this.#baseUrlThunk.bind(this))(request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:CreateRoute`\n * Access Policy Resource: `Lab:Route`\n */\n routeCreate(params: LabRouteCreateParams, request?: OystehrClientRequest): Promise<LabRouteCreateResponse> {\n return this.request('/route', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * Gets a Route associated with the project by specified Guid.\n *\n * Access Policy Requirements:\n * Action: `Lab:GetSingleRoute`\n * Access Policy Resource: `Lab:Route`\n */\n routeGet(params: LabRouteGetParams, request?: OystehrClientRequest): Promise<LabRouteGetResponse> {\n return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:DeleteRoute`\n * Access Policy Resource: `Lab:Route`\n */\n routeDelete(params: LabRouteDeleteParams, request?: OystehrClientRequest): Promise<void> {\n return this.request('/route/{routeGuid}', 'delete', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemList(\n params: LabOrderableItemListParams,\n request?: OystehrClientRequest\n ): Promise<LabOrderableItemListResponse>;\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemList(request?: OystehrClientRequest): Promise<LabOrderableItemListResponse>;\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemList(\n params?: LabOrderableItemListParams | OystehrClientRequest,\n request?: OystehrClientRequest\n ): Promise<LabOrderableItemListResponse> {\n return this.request('/orderableItem', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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.\n *\n * Access Policy Requirements:\n * Action: `Lab:SearchOrderableItems`\n * Access Policy Resource: `Lab:OrderableItem`\n */\n orderableItemQuestionnaireGet(\n params: LabOrderableItemQuestionnaireGetParams,\n request?: OystehrClientRequest\n ): Promise<LabOrderableItemQuestionnaireGetResponse> {\n return this.request(\n '/canonical-questionnaire/lab/{labGuid}/compendium/{compendiumVersion}/item/{itemCode}/questionnaire',\n 'get',\n this.#baseUrlThunk.bind(this)\n )(params, request);\n }\n /**\n * Submit a lab order. Oystehr's [Submit Lab](https://docs.oystehr.com/oystehr/services/lab/submit-an-order/) feature allows users to submit an order consisting of one or more well-configured ServiceRequests 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. If the lab requires its own requisition document (eReq) or an Advance Beneficiary Notice (ABN), the appropriate DocumentReferences will be included in the response.\n *\n * Access Policy Requirements:\n * Action: `Lab:SubmitOrder`\n * Access Policy Resource: `Lab:Order`\n */\n orderSubmit(params: LabOrderSubmitParams, request?: OystehrClientRequest): Promise<LabOrderSubmitResponse> {\n return this.request('/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAoBM,MAAO,GAAI,SAAQ,WAAW,CAAA;AAClC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,WAAW,CAAC,IAAI,gCAAgC;IAChF;AACA;;;;;;AAMG;AACH,IAAA,SAAS,CAAC,OAA8B,EAAA;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9E;AACA;;;;;;AAMG;IACH,WAAW,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACvF;AACA;;;;;;AAMG;IACH,QAAQ,CAAC,MAAyB,EAAE,OAA8B,EAAA;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAClG;AACA;;;;;;AAMG;IACH,WAAW,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACrG;AAoBA;;;;;;AAMG;IACH,iBAAiB,CACf,MAA0D,EAC1D,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9F;AACA;;;;;;AAMG;IACH,6BAA6B,CAC3B,MAA8C,EAC9C,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CACjB,qGAAqG,EACrG,KAAK,EACL,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B,CAAC,MAAM,EAAE,OAAO,CAAC;IACpB;AACA;;;;;;AAMG;IACH,WAAW,CAAC,MAA4B,EAAE,OAA8B,EAAA;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IACxF;AACD;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface LabRoute {
|
|
2
|
+
/**
|
|
3
|
+
* Unique identifier of the created Route.
|
|
4
|
+
*/
|
|
5
|
+
routeGuid: string;
|
|
6
|
+
/**
|
|
7
|
+
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
8
|
+
*/
|
|
9
|
+
accountNumber: string;
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier of a lab. Searchable via orderable item Search
|
|
12
|
+
*/
|
|
13
|
+
labGuid: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of lab
|
|
16
|
+
*/
|
|
17
|
+
labName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 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.
|
|
20
|
+
*/
|
|
21
|
+
primaryName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
primaryAddress?: {
|
|
26
|
+
address1: string;
|
|
27
|
+
address2?: string;
|
|
28
|
+
city: string;
|
|
29
|
+
stateProvinceCode: string;
|
|
30
|
+
postalCode: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Primary phone number of the Primary.
|
|
34
|
+
*/
|
|
35
|
+
primaryPhone?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Site ID for the Primary
|
|
38
|
+
*/
|
|
39
|
+
clientSiteId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* 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.
|
|
42
|
+
*/
|
|
43
|
+
eulaVersion?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Full name of the person 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.
|
|
46
|
+
*/
|
|
47
|
+
eulaAccepterFullName?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Date and time (in UTC) 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.
|
|
50
|
+
*/
|
|
51
|
+
eulaAcceptanceDateTimeUtc?: string;
|
|
52
|
+
}
|
|
@@ -22,6 +22,10 @@ export interface LabRouteCreateParams {
|
|
|
22
22
|
stateProvinceCode: string;
|
|
23
23
|
postalCode: string;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Primary phone number of the Primary.
|
|
27
|
+
*/
|
|
28
|
+
primaryPhone?: string;
|
|
25
29
|
/**
|
|
26
30
|
* 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.
|
|
27
31
|
*/
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
+
import { LabRoute } from './LabRoute';
|
|
1
2
|
/**
|
|
2
3
|
* Information about a specific route.
|
|
3
4
|
*/
|
|
4
|
-
export
|
|
5
|
-
/**
|
|
6
|
-
* Unique identifier of the created Route.
|
|
7
|
-
*/
|
|
8
|
-
routeGuid: string;
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier of a lab. Searchable via orderable item Search
|
|
11
|
-
*/
|
|
12
|
-
labGuid: string;
|
|
13
|
-
/**
|
|
14
|
-
* Name of lab
|
|
15
|
-
*/
|
|
16
|
-
labName: string;
|
|
17
|
-
/**
|
|
18
|
-
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
19
|
-
*/
|
|
20
|
-
accountNumber: string;
|
|
21
|
-
}
|
|
5
|
+
export type LabRouteGetResponse = LabRoute;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
+
import { LabRoute } from './LabRoute';
|
|
1
2
|
/**
|
|
2
3
|
* List of Routes associated with the calling projectId.
|
|
3
4
|
*/
|
|
4
|
-
export type LabRouteListResponse =
|
|
5
|
-
/**
|
|
6
|
-
* Unique identifier of the created Route.
|
|
7
|
-
*/
|
|
8
|
-
routeGuid: string;
|
|
9
|
-
/**
|
|
10
|
-
* Unique identifier of a lab. Searchable via orderable item Search
|
|
11
|
-
*/
|
|
12
|
-
labGuid: string;
|
|
13
|
-
/**
|
|
14
|
-
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
15
|
-
*/
|
|
16
|
-
accountNumber: string;
|
|
17
|
-
}[];
|
|
5
|
+
export type LabRouteListResponse = LabRoute[];
|
|
@@ -158,9 +158,11 @@ export * from './FaxOnboardResponse';
|
|
|
158
158
|
export * from './FaxGetConfigurationResponse';
|
|
159
159
|
export * from './FaxSendParams';
|
|
160
160
|
export * from './FaxSendResponse';
|
|
161
|
+
export * from './LabRoute';
|
|
161
162
|
export * from './LabRouteListResponse';
|
|
162
163
|
export * from './LabRouteCreateParams';
|
|
163
164
|
export * from './LabRouteCreateResponse';
|
|
165
|
+
export * from './LabRouteGetParams';
|
|
164
166
|
export * from './LabRouteGetResponse';
|
|
165
167
|
export * from './LabRouteDeleteParams';
|
|
166
168
|
export * from './LabOrderableItemListParams';
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
LabRouteCreateParams,
|
|
11
11
|
LabRouteCreateResponse,
|
|
12
12
|
LabRouteDeleteParams,
|
|
13
|
+
LabRouteGetParams,
|
|
13
14
|
LabRouteGetResponse,
|
|
14
15
|
LabRouteListResponse,
|
|
15
16
|
OystehrClientRequest,
|
|
@@ -51,8 +52,8 @@ export class Lab extends SDKResource {
|
|
|
51
52
|
* Action: `Lab:GetSingleRoute`
|
|
52
53
|
* Access Policy Resource: `Lab:Route`
|
|
53
54
|
*/
|
|
54
|
-
routeGet(request?: OystehrClientRequest): Promise<LabRouteGetResponse> {
|
|
55
|
-
return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(request);
|
|
55
|
+
routeGet(params: LabRouteGetParams, request?: OystehrClientRequest): Promise<LabRouteGetResponse> {
|
|
56
|
+
return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
59
|
* 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.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface LabRoute {
|
|
4
|
+
/**
|
|
5
|
+
* Unique identifier of the created Route.
|
|
6
|
+
*/
|
|
7
|
+
routeGuid: string;
|
|
8
|
+
/**
|
|
9
|
+
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
10
|
+
*/
|
|
11
|
+
accountNumber: string;
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier of a lab. Searchable via orderable item Search
|
|
14
|
+
*/
|
|
15
|
+
labGuid: string;
|
|
16
|
+
/**
|
|
17
|
+
* Name of lab
|
|
18
|
+
*/
|
|
19
|
+
labName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
*/
|
|
23
|
+
primaryName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
*/
|
|
27
|
+
primaryAddress?: {
|
|
28
|
+
address1: string;
|
|
29
|
+
address2?: string;
|
|
30
|
+
city: string;
|
|
31
|
+
stateProvinceCode: string;
|
|
32
|
+
postalCode: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Primary phone number of the Primary.
|
|
36
|
+
*/
|
|
37
|
+
primaryPhone?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Site ID for the Primary
|
|
40
|
+
*/
|
|
41
|
+
clientSiteId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 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.
|
|
44
|
+
*/
|
|
45
|
+
eulaVersion?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Full name of the person 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.
|
|
48
|
+
*/
|
|
49
|
+
eulaAccepterFullName?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Date and time (in UTC) 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.
|
|
52
|
+
*/
|
|
53
|
+
eulaAcceptanceDateTimeUtc?: string;
|
|
54
|
+
}
|
|
@@ -24,6 +24,10 @@ export interface LabRouteCreateParams {
|
|
|
24
24
|
stateProvinceCode: string;
|
|
25
25
|
postalCode: string;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Primary phone number of the Primary.
|
|
29
|
+
*/
|
|
30
|
+
primaryPhone?: string;
|
|
27
31
|
/**
|
|
28
32
|
* 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
33
|
*/
|
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
// AUTOGENERATED -- DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import { LabRoute } from './LabRoute';
|
|
3
4
|
/**
|
|
4
5
|
* Information about a specific route.
|
|
5
6
|
*/
|
|
6
|
-
export
|
|
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
|
+
export type LabRouteGetResponse = LabRoute;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
// AUTOGENERATED -- DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
import { LabRoute } from './LabRoute';
|
|
3
4
|
/**
|
|
4
5
|
* List of Routes associated with the calling projectId.
|
|
5
6
|
*/
|
|
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
|
-
}[];
|
|
7
|
+
export type LabRouteListResponse = LabRoute[];
|
|
@@ -160,9 +160,11 @@ export * from './FaxOnboardResponse';
|
|
|
160
160
|
export * from './FaxGetConfigurationResponse';
|
|
161
161
|
export * from './FaxSendParams';
|
|
162
162
|
export * from './FaxSendResponse';
|
|
163
|
+
export * from './LabRoute';
|
|
163
164
|
export * from './LabRouteListResponse';
|
|
164
165
|
export * from './LabRouteCreateParams';
|
|
165
166
|
export * from './LabRouteCreateResponse';
|
|
167
|
+
export * from './LabRouteGetParams';
|
|
166
168
|
export * from './LabRouteGetResponse';
|
|
167
169
|
export * from './LabRouteDeleteParams';
|
|
168
170
|
export * from './LabOrderableItemListParams';
|