@oystehr/sdk 4.1.10 → 4.2.1
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/index.cjs +3 -0
- package/dist/cjs/resources/classes/index.cjs.map +1 -1
- package/dist/cjs/resources/classes/index.d.ts +2 -0
- 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/types/LabRouteGetResponse.d.ts +21 -0
- package/dist/cjs/resources/types/LabRouteListResponse.d.ts +3 -3
- package/dist/cjs/resources/types/M2mListV2Item.d.ts +11 -0
- package/dist/cjs/resources/types/M2mListV2Response.d.ts +2 -2
- 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/index.d.ts +6 -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/resources/classes/index.d.ts +2 -0
- package/dist/esm/resources/classes/index.js +3 -0
- 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/types/LabRouteGetResponse.d.ts +21 -0
- package/dist/esm/resources/types/LabRouteListResponse.d.ts +3 -3
- package/dist/esm/resources/types/M2mListV2Item.d.ts +11 -0
- package/dist/esm/resources/types/M2mListV2Response.d.ts +2 -2
- 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/index.d.ts +6 -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 +11 -0
- package/src/resources/classes/terminology.ts +41 -0
- package/src/resources/types/LabRouteGetResponse.ts +23 -0
- package/src/resources/types/LabRouteListResponse.ts +3 -3
- package/src/resources/types/M2mListV2Item.ts +13 -0
- package/src/resources/types/M2mListV2Response.ts +2 -2
- 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/index.ts +6 -0
|
@@ -15,6 +15,7 @@ import { Rcm } from './rcm';
|
|
|
15
15
|
import { Role } from './role';
|
|
16
16
|
import { Secret } from './secret';
|
|
17
17
|
import { Telemed } from './telemed';
|
|
18
|
+
import { Terminology } from './terminology';
|
|
18
19
|
import { TransactionalSMS } from './transactionalSMS';
|
|
19
20
|
import { User } from './user';
|
|
20
21
|
import { Version } from './version';
|
|
@@ -44,6 +45,7 @@ export declare class Oystehr {
|
|
|
44
45
|
readonly fax: Fax;
|
|
45
46
|
readonly lab: Lab;
|
|
46
47
|
readonly erx: Erx;
|
|
48
|
+
readonly terminology: Terminology;
|
|
47
49
|
readonly fhir: Fhir;
|
|
48
50
|
constructor(config: OystehrConfig);
|
|
49
51
|
}
|
|
@@ -14,6 +14,7 @@ import { Rcm } from './rcm.js';
|
|
|
14
14
|
import { Role } from './role.js';
|
|
15
15
|
import { Secret } from './secret.js';
|
|
16
16
|
import { Telemed } from './telemed.js';
|
|
17
|
+
import { Terminology } from './terminology.js';
|
|
17
18
|
import { TransactionalSMS } from './transactionalSMS.js';
|
|
18
19
|
import { User } from './user.js';
|
|
19
20
|
import { Version } from './version.js';
|
|
@@ -45,6 +46,7 @@ let Oystehr$1 = class Oystehr {
|
|
|
45
46
|
fax;
|
|
46
47
|
lab;
|
|
47
48
|
erx;
|
|
49
|
+
terminology;
|
|
48
50
|
fhir;
|
|
49
51
|
constructor(config) {
|
|
50
52
|
this.config = config;
|
|
@@ -72,6 +74,7 @@ let Oystehr$1 = class Oystehr {
|
|
|
72
74
|
this.fax = new Fax(config);
|
|
73
75
|
this.lab = new Lab(config);
|
|
74
76
|
this.erx = new Erx(config);
|
|
77
|
+
this.terminology = new Terminology(config);
|
|
75
78
|
this.fhir = new Fhir(config);
|
|
76
79
|
}
|
|
77
80
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/resources/classes/index.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrConfig } from '../../config';\nimport { Application } from './application';\nimport { Charge } from './charge';\nimport { Conversation } from './conversation';\nimport { Developer } from './developer';\nimport { Erx } from './erx';\nimport { Fax } from './fax';\nimport { Fhir } from './fhir';\nimport { Lab } from './lab';\nimport { M2m } from './m2m';\nimport { Messaging } from './messaging';\nimport { PaymentMethod } from './paymentMethod';\nimport { Project } from './project';\nimport { Rcm } from './rcm';\nimport { Role } from './role';\nimport { Secret } from './secret';\nimport { Telemed } from './telemed';\nimport { TransactionalSMS } from './transactionalSMS';\nimport { User } from './user';\nimport { Version } from './version';\nimport { Z3 } from './z3';\nimport { Zambda } from './zambda';\nimport { ZambdaLogStream } from './zambdaLogStream';\n\nexport class Oystehr {\n readonly config: OystehrConfig;\n readonly application: Application;\n readonly developer: Developer;\n readonly m2m: M2m;\n readonly messaging: Messaging;\n readonly conversation: Conversation;\n readonly transactionalSMS: TransactionalSMS;\n readonly paymentMethod: PaymentMethod;\n readonly charge: Charge;\n readonly project: Project;\n readonly rcm: Rcm;\n readonly role: Role;\n readonly secret: Secret;\n readonly telemed: Telemed;\n readonly user: User;\n readonly version: Version;\n readonly z3: Z3;\n readonly zambda: Zambda;\n readonly zambdaLogStream: ZambdaLogStream;\n readonly fax: Fax;\n readonly lab: Lab;\n readonly erx: Erx;\n readonly fhir: Fhir;\n constructor(config: OystehrConfig) {\n this.config = config;\n this.config.services ??= {};\n this.config.services['projectApiUrl'] ??= config.projectApiUrl;\n this.config.services['fhirApiUrl'] ??= config.fhirApiUrl;\n this.application = new Application(config);\n this.developer = new Developer(config);\n this.m2m = new M2m(config);\n this.messaging = new Messaging(config);\n this.conversation = new Conversation(config);\n this.transactionalSMS = new TransactionalSMS(config);\n this.paymentMethod = new PaymentMethod(config);\n this.charge = new Charge(config);\n this.project = new Project(config);\n this.rcm = new Rcm(config);\n this.role = new Role(config);\n this.secret = new Secret(config);\n this.telemed = new Telemed(config);\n this.user = new User(config);\n this.version = new Version(config);\n this.z3 = new Z3(config);\n this.zambda = new Zambda(config);\n this.zambdaLogStream = new ZambdaLogStream(config);\n this.fax = new Fax(config);\n this.lab = new Lab(config);\n this.erx = new Erx(config);\n this.fhir = new Fhir(config);\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/resources/classes/index.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { OystehrConfig } from '../../config';\nimport { Application } from './application';\nimport { Charge } from './charge';\nimport { Conversation } from './conversation';\nimport { Developer } from './developer';\nimport { Erx } from './erx';\nimport { Fax } from './fax';\nimport { Fhir } from './fhir';\nimport { Lab } from './lab';\nimport { M2m } from './m2m';\nimport { Messaging } from './messaging';\nimport { PaymentMethod } from './paymentMethod';\nimport { Project } from './project';\nimport { Rcm } from './rcm';\nimport { Role } from './role';\nimport { Secret } from './secret';\nimport { Telemed } from './telemed';\nimport { Terminology } from './terminology';\nimport { TransactionalSMS } from './transactionalSMS';\nimport { User } from './user';\nimport { Version } from './version';\nimport { Z3 } from './z3';\nimport { Zambda } from './zambda';\nimport { ZambdaLogStream } from './zambdaLogStream';\n\nexport class Oystehr {\n readonly config: OystehrConfig;\n readonly application: Application;\n readonly developer: Developer;\n readonly m2m: M2m;\n readonly messaging: Messaging;\n readonly conversation: Conversation;\n readonly transactionalSMS: TransactionalSMS;\n readonly paymentMethod: PaymentMethod;\n readonly charge: Charge;\n readonly project: Project;\n readonly rcm: Rcm;\n readonly role: Role;\n readonly secret: Secret;\n readonly telemed: Telemed;\n readonly user: User;\n readonly version: Version;\n readonly z3: Z3;\n readonly zambda: Zambda;\n readonly zambdaLogStream: ZambdaLogStream;\n readonly fax: Fax;\n readonly lab: Lab;\n readonly erx: Erx;\n readonly terminology: Terminology;\n readonly fhir: Fhir;\n constructor(config: OystehrConfig) {\n this.config = config;\n this.config.services ??= {};\n this.config.services['projectApiUrl'] ??= config.projectApiUrl;\n this.config.services['fhirApiUrl'] ??= config.fhirApiUrl;\n this.application = new Application(config);\n this.developer = new Developer(config);\n this.m2m = new M2m(config);\n this.messaging = new Messaging(config);\n this.conversation = new Conversation(config);\n this.transactionalSMS = new TransactionalSMS(config);\n this.paymentMethod = new PaymentMethod(config);\n this.charge = new Charge(config);\n this.project = new Project(config);\n this.rcm = new Rcm(config);\n this.role = new Role(config);\n this.secret = new Secret(config);\n this.telemed = new Telemed(config);\n this.user = new User(config);\n this.version = new Version(config);\n this.z3 = new Z3(config);\n this.zambda = new Zambda(config);\n this.zambdaLogStream = new ZambdaLogStream(config);\n this.fax = new Fax(config);\n this.lab = new Lab(config);\n this.erx = new Erx(config);\n this.terminology = new Terminology(config);\n this.fhir = new Fhir(config);\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;sBA2Ba,OAAO,CAAA;AACT,IAAA,MAAM;AACN,IAAA,WAAW;AACX,IAAA,SAAS;AACT,IAAA,GAAG;AACH,IAAA,SAAS;AACT,IAAA,YAAY;AACZ,IAAA,gBAAgB;AAChB,IAAA,aAAa;AACb,IAAA,MAAM;AACN,IAAA,OAAO;AACP,IAAA,GAAG;AACH,IAAA,IAAI;AACJ,IAAA,MAAM;AACN,IAAA,OAAO;AACP,IAAA,IAAI;AACJ,IAAA,OAAO;AACP,IAAA,EAAE;AACF,IAAA,MAAM;AACN,IAAA,eAAe;AACf,IAAA,GAAG;AACH,IAAA,GAAG;AACH,IAAA,GAAG;AACH,IAAA,WAAW;AACX,IAAA,IAAI;AACb,IAAA,WAAA,CAAY,MAAqB,EAAA;AAC/B,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM;AACpB,QAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,EAAE;QAC3B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,MAAM,CAAC,aAAa;QAC9D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,MAAM,CAAC,UAAU;QACxD,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC;QACtC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC;QACtC,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC;QAC5C,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,MAAM,CAAC;QACpD,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC;QAClC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC;QAClD,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC;IAC9B;AACD;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LabOrderableItemListParams, LabOrderableItemListResponse, LabOrderableItemQuestionnaireGetParams, LabOrderableItemQuestionnaireGetResponse, LabOrderSubmitParams, LabOrderSubmitResponse, LabRouteCreateParams, LabRouteCreateResponse, LabRouteDeleteParams, LabRouteListResponse, OystehrClientRequest } from '../..';
|
|
1
|
+
import { LabOrderableItemListParams, LabOrderableItemListResponse, LabOrderableItemQuestionnaireGetParams, LabOrderableItemQuestionnaireGetResponse, LabOrderSubmitParams, LabOrderSubmitResponse, LabRouteCreateParams, LabRouteCreateResponse, LabRouteDeleteParams, 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 {
|
|
@@ -20,6 +20,14 @@ export declare class Lab extends SDKResource {
|
|
|
20
20
|
* Access Policy Resource: `Lab:Route`
|
|
21
21
|
*/
|
|
22
22
|
routeCreate(params: LabRouteCreateParams, request?: OystehrClientRequest): Promise<LabRouteCreateResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets a Route associated with the project by specified Guid.
|
|
25
|
+
*
|
|
26
|
+
* Access Policy Requirements:
|
|
27
|
+
* Action: `Lab:GetSingleRoute`
|
|
28
|
+
* Access Policy Resource: `Lab:Route`
|
|
29
|
+
*/
|
|
30
|
+
routeGet(request?: OystehrClientRequest): Promise<LabRouteGetResponse>;
|
|
23
31
|
/**
|
|
24
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.
|
|
25
33
|
*
|
|
@@ -28,6 +28,16 @@ class Lab extends SDKResource {
|
|
|
28
28
|
routeCreate(params, request) {
|
|
29
29
|
return this.request('/route', 'post', this.#baseUrlThunk.bind(this))(params, request);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Gets a Route associated with the project by specified Guid.
|
|
33
|
+
*
|
|
34
|
+
* Access Policy Requirements:
|
|
35
|
+
* Action: `Lab:GetSingleRoute`
|
|
36
|
+
* Access Policy Resource: `Lab:Route`
|
|
37
|
+
*/
|
|
38
|
+
routeGet(request) {
|
|
39
|
+
return this.request('/route/{routeGuid}', 'get', this.#baseUrlThunk.bind(this))(request);
|
|
40
|
+
}
|
|
31
41
|
/**
|
|
32
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.
|
|
33
43
|
*
|
|
@@ -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 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 * 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 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;AAmBM,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;AACH,IAAA,QAAQ,CAAC,OAA8B,EAAA;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IAC1F;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,21 @@
|
|
|
1
|
+
import { OystehrClientRequest, TerminologySearchCptParams, TerminologySearchCptResponse, TerminologySearchHcpcsParams, TerminologySearchHcpcsResponse } from '../..';
|
|
2
|
+
import { SDKResource } from '../../client/client';
|
|
3
|
+
import { OystehrConfig } from '../../config';
|
|
4
|
+
export declare class Terminology extends SDKResource {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(config: OystehrConfig);
|
|
7
|
+
/**
|
|
8
|
+
* Search CPT (Current Procedural Terminology) codes by code or description. Supports exact matches, prefix searches, and full-text search with BM25 ranking.
|
|
9
|
+
*
|
|
10
|
+
* Access Policy Action: `Terminology:SearchCodes`
|
|
11
|
+
* Access Policy Resource: `Terminology:Code:*`
|
|
12
|
+
*/
|
|
13
|
+
searchCpt(params: TerminologySearchCptParams, request?: OystehrClientRequest): Promise<TerminologySearchCptResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* 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.
|
|
16
|
+
*
|
|
17
|
+
* Access Policy Action: `Terminology:SearchCodes`
|
|
18
|
+
* Access Policy Resource: `Terminology:Code:*`
|
|
19
|
+
*/
|
|
20
|
+
searchHcpcs(params: TerminologySearchHcpcsParams, request?: OystehrClientRequest): Promise<TerminologySearchHcpcsResponse>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SDKResource } from '../../client/client.js';
|
|
2
|
+
|
|
3
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
4
|
+
class Terminology extends SDKResource {
|
|
5
|
+
constructor(config) {
|
|
6
|
+
super(config);
|
|
7
|
+
}
|
|
8
|
+
#baseUrlThunk() {
|
|
9
|
+
return this.config.services?.['terminologyApiUrl'] ?? 'https://terminology-api.zapehr.com/v1';
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Search CPT (Current Procedural Terminology) codes by code or description. Supports exact matches, prefix searches, and full-text search with BM25 ranking.
|
|
13
|
+
*
|
|
14
|
+
* Access Policy Action: `Terminology:SearchCodes`
|
|
15
|
+
* Access Policy Resource: `Terminology:Code:*`
|
|
16
|
+
*/
|
|
17
|
+
searchCpt(params, request) {
|
|
18
|
+
return this.request('/cpt/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 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.
|
|
22
|
+
*
|
|
23
|
+
* Access Policy Action: `Terminology:SearchCodes`
|
|
24
|
+
* Access Policy Resource: `Terminology:Code:*`
|
|
25
|
+
*/
|
|
26
|
+
searchHcpcs(params, request) {
|
|
27
|
+
return this.request('/hcpcs/search', 'get', this.#baseUrlThunk.bind(this))(params, request);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Terminology };
|
|
32
|
+
//# sourceMappingURL=terminology.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminology.js","sources":["../../../../src/resources/classes/terminology.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport {\n OystehrClientRequest,\n TerminologySearchCptParams,\n TerminologySearchCptResponse,\n TerminologySearchHcpcsParams,\n TerminologySearchHcpcsResponse,\n} from '../..';\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\n\nexport class Terminology extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['terminologyApiUrl'] ?? 'https://terminology-api.zapehr.com/v1';\n }\n /**\n * Search CPT (Current Procedural Terminology) codes by code or description. Supports exact matches, prefix searches, and full-text search with BM25 ranking.\n *\n * Access Policy Action: `Terminology:SearchCodes`\n * Access Policy Resource: `Terminology:Code:*`\n */\n searchCpt(params: TerminologySearchCptParams, request?: OystehrClientRequest): Promise<TerminologySearchCptResponse> {\n return this.request('/cpt/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n /**\n * 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.\n *\n * Access Policy Action: `Terminology:SearchCodes`\n * Access Policy Resource: `Terminology:Code:*`\n */\n searchHcpcs(\n params: TerminologySearchHcpcsParams,\n request?: OystehrClientRequest\n ): Promise<TerminologySearchHcpcsResponse> {\n return this.request('/hcpcs/search', 'get', this.#baseUrlThunk.bind(this))(params, request);\n }\n}\n"],"names":[],"mappings":";;AAAA;AAYM,MAAO,WAAY,SAAQ,WAAW,CAAA;AAC1C,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,mBAAmB,CAAC,IAAI,uCAAuC;IAC/F;AACA;;;;;AAKG;IACH,SAAS,CAAC,MAAkC,EAAE,OAA8B,EAAA;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3F;AACA;;;;;AAKG;IACH,WAAW,CACT,MAAoC,EACpC,OAA8B,EAAA;QAE9B,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7F;AACD;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about a specific route.
|
|
3
|
+
*/
|
|
4
|
+
export interface LabRouteGetResponse {
|
|
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,13 +5,13 @@ export type LabRouteListResponse = {
|
|
|
5
5
|
/**
|
|
6
6
|
* Unique identifier of the created Route.
|
|
7
7
|
*/
|
|
8
|
-
routeGuid
|
|
8
|
+
routeGuid: string;
|
|
9
9
|
/**
|
|
10
10
|
* Unique identifier of a lab. Searchable via orderable item Search
|
|
11
11
|
*/
|
|
12
|
-
labGuid
|
|
12
|
+
labGuid: string;
|
|
13
13
|
/**
|
|
14
14
|
* Provided by the lab, indicates a financial relationship between the lab and the customer.
|
|
15
15
|
*/
|
|
16
|
-
accountNumber
|
|
16
|
+
accountNumber: string;
|
|
17
17
|
}[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface M2mListV2Item {
|
|
2
|
+
id: string;
|
|
3
|
+
/**
|
|
4
|
+
* A name for the M2M Client to help you differentiate it from other M2M Clients in the project.
|
|
5
|
+
*/
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* A description of the M2M Client to help you differentiate it from other M2M Clients in the project.
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M2mListV2Item } from './M2mListV2Item';
|
|
2
2
|
/**
|
|
3
3
|
* List of all M2M clients with pagination details.
|
|
4
4
|
*/
|
|
@@ -6,7 +6,7 @@ export interface M2mListV2Response {
|
|
|
6
6
|
/**
|
|
7
7
|
* An array of M2M Client objects. This array is empty if no M2M Clients match the query criteria.
|
|
8
8
|
*/
|
|
9
|
-
data:
|
|
9
|
+
data: M2mListV2Item[];
|
|
10
10
|
metadata: {
|
|
11
11
|
/**
|
|
12
12
|
* Cursor to fetch the next page of results. Null if there are no further pages.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CPT code search results
|
|
3
|
+
*/
|
|
4
|
+
export interface TerminologySearchCptResponse {
|
|
5
|
+
/**
|
|
6
|
+
* Array of CPT codes matching the search.
|
|
7
|
+
*/
|
|
8
|
+
codes: {
|
|
9
|
+
/**
|
|
10
|
+
* CPT code.
|
|
11
|
+
*/
|
|
12
|
+
code: string;
|
|
13
|
+
/**
|
|
14
|
+
* Human-readable description of the CPT code.
|
|
15
|
+
*/
|
|
16
|
+
display: string;
|
|
17
|
+
}[];
|
|
18
|
+
/**
|
|
19
|
+
* Pagination metadata.
|
|
20
|
+
*/
|
|
21
|
+
metadata: {
|
|
22
|
+
/**
|
|
23
|
+
* Cursor for the next page of results. Null if no more results.
|
|
24
|
+
*/
|
|
25
|
+
nextCursor: string | null;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HCPCS code search results
|
|
3
|
+
*/
|
|
4
|
+
export interface TerminologySearchHcpcsResponse {
|
|
5
|
+
/**
|
|
6
|
+
* Array of HCPCS codes matching the search.
|
|
7
|
+
*/
|
|
8
|
+
codes: {
|
|
9
|
+
/**
|
|
10
|
+
* HCPCS code.
|
|
11
|
+
*/
|
|
12
|
+
code: string;
|
|
13
|
+
/**
|
|
14
|
+
* Human-readable description of the HCPCS code.
|
|
15
|
+
*/
|
|
16
|
+
display: string;
|
|
17
|
+
}[];
|
|
18
|
+
/**
|
|
19
|
+
* Pagination metadata.
|
|
20
|
+
*/
|
|
21
|
+
metadata: {
|
|
22
|
+
/**
|
|
23
|
+
* Cursor for the next page of results. Null if no more results.
|
|
24
|
+
*/
|
|
25
|
+
nextCursor: string | null;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -24,6 +24,7 @@ export * from './ClaimDateWithQualifier';
|
|
|
24
24
|
export * from './ClaimAddress';
|
|
25
25
|
export * from './ClaimId';
|
|
26
26
|
export * from './ClaimCMS1500';
|
|
27
|
+
export * from './M2mListV2Item';
|
|
27
28
|
export * from './M2mListItem';
|
|
28
29
|
export * from './M2m';
|
|
29
30
|
export * from './AccessPolicy';
|
|
@@ -160,6 +161,7 @@ export * from './FaxSendResponse';
|
|
|
160
161
|
export * from './LabRouteListResponse';
|
|
161
162
|
export * from './LabRouteCreateParams';
|
|
162
163
|
export * from './LabRouteCreateResponse';
|
|
164
|
+
export * from './LabRouteGetResponse';
|
|
163
165
|
export * from './LabRouteDeleteParams';
|
|
164
166
|
export * from './LabOrderableItemListParams';
|
|
165
167
|
export * from './LabOrderableItemListResponse';
|
|
@@ -186,3 +188,7 @@ export * from './ErxCheckPractitionerEnrollmentParams';
|
|
|
186
188
|
export * from './ErxCheckPractitionerEnrollmentResponse';
|
|
187
189
|
export * from './ErxEnrollPractitionerParams';
|
|
188
190
|
export * from './ErxUnenrollPractitionerParams';
|
|
191
|
+
export * from './TerminologySearchCptParams';
|
|
192
|
+
export * from './TerminologySearchCptResponse';
|
|
193
|
+
export * from './TerminologySearchHcpcsParams';
|
|
194
|
+
export * from './TerminologySearchHcpcsResponse';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oystehr/sdk",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
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",
|
package/src/config.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { Rcm } from './rcm';
|
|
|
17
17
|
import { Role } from './role';
|
|
18
18
|
import { Secret } from './secret';
|
|
19
19
|
import { Telemed } from './telemed';
|
|
20
|
+
import { Terminology } from './terminology';
|
|
20
21
|
import { TransactionalSMS } from './transactionalSMS';
|
|
21
22
|
import { User } from './user';
|
|
22
23
|
import { Version } from './version';
|
|
@@ -47,6 +48,7 @@ export class Oystehr {
|
|
|
47
48
|
readonly fax: Fax;
|
|
48
49
|
readonly lab: Lab;
|
|
49
50
|
readonly erx: Erx;
|
|
51
|
+
readonly terminology: Terminology;
|
|
50
52
|
readonly fhir: Fhir;
|
|
51
53
|
constructor(config: OystehrConfig) {
|
|
52
54
|
this.config = config;
|
|
@@ -74,6 +76,7 @@ export class Oystehr {
|
|
|
74
76
|
this.fax = new Fax(config);
|
|
75
77
|
this.lab = new Lab(config);
|
|
76
78
|
this.erx = new Erx(config);
|
|
79
|
+
this.terminology = new Terminology(config);
|
|
77
80
|
this.fhir = new Fhir(config);
|
|
78
81
|
}
|
|
79
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
|
+
}
|
|
@@ -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,13 @@
|
|
|
1
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
export interface M2mListV2Item {
|
|
4
|
+
id: string;
|
|
5
|
+
/**
|
|
6
|
+
* A name for the M2M Client to help you differentiate it from other M2M Clients in the project.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* A description of the M2M Client to help you differentiate it from other M2M Clients in the project.
|
|
11
|
+
*/
|
|
12
|
+
description?: string;
|
|
13
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AUTOGENERATED -- DO NOT EDIT
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { M2mListV2Item } from './M2mListV2Item';
|
|
4
4
|
/**
|
|
5
5
|
* List of all M2M clients with pagination details.
|
|
6
6
|
*/
|
|
@@ -8,7 +8,7 @@ export interface M2mListV2Response {
|
|
|
8
8
|
/**
|
|
9
9
|
* An array of M2M Client objects. This array is empty if no M2M Clients match the query criteria.
|
|
10
10
|
*/
|
|
11
|
-
data:
|
|
11
|
+
data: M2mListV2Item[];
|
|
12
12
|
metadata: {
|
|
13
13
|
/**
|
|
14
14
|
* Cursor to fetch the next page of results. Null if there are no further pages.
|
|
@@ -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
|
+
}
|