@oystehr/sdk 3.0.5 → 3.0.6
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.cjs +51 -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/erx.d.ts +9 -1
- package/dist/cjs/resources/classes/fax.d.ts +30 -0
- package/dist/cjs/resources/classes/index.d.ts +2 -0
- package/dist/cjs/resources/classes/rcm.d.ts +1 -1
- package/dist/cjs/resources/types/ErxCancelOrderParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelOrderResponse.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
- package/dist/cjs/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
- package/dist/cjs/resources/types/FaxSendParams.d.ts +18 -0
- package/dist/cjs/resources/types/FaxSendResponse.d.ts +10 -0
- package/dist/cjs/resources/types/index.d.ts +6 -0
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/resources/classes/erx.d.ts +9 -1
- package/dist/esm/resources/classes/erx.js +12 -0
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/classes/fax.d.ts +30 -0
- package/dist/esm/resources/classes/fax.js +41 -0
- package/dist/esm/resources/classes/fax.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/rcm.d.ts +1 -1
- package/dist/esm/resources/classes/rcm.js +1 -1
- package/dist/esm/resources/classes/rcm.js.map +1 -1
- package/dist/esm/resources/types/ErxCancelOrderParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelOrderResponse.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelPrescriptionParams.d.ts +6 -0
- package/dist/esm/resources/types/ErxCancelPrescriptionResponse.d.ts +6 -0
- package/dist/esm/resources/types/FaxSendParams.d.ts +18 -0
- package/dist/esm/resources/types/FaxSendResponse.d.ts +10 -0
- package/dist/esm/resources/types/index.d.ts +6 -0
- package/package.json +2 -2
- package/src/resources/classes/erx.ts +19 -0
- package/src/resources/classes/fax.ts +41 -0
- package/src/resources/classes/index.ts +3 -0
- package/src/resources/classes/rcm.ts +1 -1
- package/src/resources/types/ErxCancelOrderParams.ts +8 -0
- package/src/resources/types/ErxCancelOrderResponse.ts +8 -0
- package/src/resources/types/ErxCancelPrescriptionParams.ts +8 -0
- package/src/resources/types/ErxCancelPrescriptionResponse.ts +8 -0
- package/src/resources/types/FaxSendParams.ts +20 -0
- package/src/resources/types/FaxSendResponse.ts +12 -0
- package/src/resources/types/index.ts +6 -0
- /package/dist/cjs/tests/{common.d.ts → integrational/common.d.ts} +0 -0
- /package/dist/esm/tests/{common.d.ts → integrational/common.d.ts} +0 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -612,6 +612,18 @@ class Erx extends SDKResource {
|
|
|
612
612
|
allergySearch(params, request) {
|
|
613
613
|
return this.request('/erx/allergy/search', 'get')(params, request);
|
|
614
614
|
}
|
|
615
|
+
/**
|
|
616
|
+
* Cancel photon order
|
|
617
|
+
*/
|
|
618
|
+
cancelOrder(params, request) {
|
|
619
|
+
return this.request('/erx/cancel-order', 'post')(params, request);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Cancel photon prescription
|
|
623
|
+
*/
|
|
624
|
+
cancelPrescription(params, request) {
|
|
625
|
+
return this.request('/erx/cancel-prescription', 'post')(params, request);
|
|
626
|
+
}
|
|
615
627
|
/**
|
|
616
628
|
* Search for medications. Provide at least one of code or name filters
|
|
617
629
|
*/
|
|
@@ -626,6 +638,43 @@ class Erx extends SDKResource {
|
|
|
626
638
|
}
|
|
627
639
|
}
|
|
628
640
|
|
|
641
|
+
// AUTOGENERATED -- DO NOT EDIT
|
|
642
|
+
class Fax extends SDKResource {
|
|
643
|
+
constructor(config) {
|
|
644
|
+
super(config);
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
|
|
648
|
+
*
|
|
649
|
+
* Access Policy Requirements:
|
|
650
|
+
* Action: `Fax:Offboard`
|
|
651
|
+
* Access Policy Resource: `Fax:Number`
|
|
652
|
+
*/
|
|
653
|
+
offboard(request) {
|
|
654
|
+
return this.request('/fax/offboard', 'post')(request);
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
|
|
658
|
+
*
|
|
659
|
+
* Access Policy Requirements:
|
|
660
|
+
* Action: `Fax:Onboard`
|
|
661
|
+
* Access Policy Resource: `Fax:Number`
|
|
662
|
+
*/
|
|
663
|
+
onboard(request) {
|
|
664
|
+
return this.request('/fax/onboard', 'post')(request);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
|
|
668
|
+
*
|
|
669
|
+
* Access Policy Requirements:
|
|
670
|
+
* Action: `Fax:Send`
|
|
671
|
+
* Access Policy Resource: `Fax:Fax`
|
|
672
|
+
*/
|
|
673
|
+
send(params, request) {
|
|
674
|
+
return this.request('/fax/send', 'post')(params, request);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
629
678
|
/**
|
|
630
679
|
* Performs a FHIR search and returns the results as a Bundle resource
|
|
631
680
|
*
|
|
@@ -1024,7 +1073,7 @@ class Rcm extends SDKResource {
|
|
|
1024
1073
|
* Access Policy Action: `RCM:CheckInsuranceEligibility`
|
|
1025
1074
|
* Access Policy Resource: `RCM:InsuranceEligibility`
|
|
1026
1075
|
*
|
|
1027
|
-
*
|
|
1076
|
+
* Access Policy Action: `FHIR:Create`
|
|
1028
1077
|
* Access Policy Resource: `FHIR:CoverageEligibilityResponse`
|
|
1029
1078
|
*/
|
|
1030
1079
|
eligibilityCheck(params, request) {
|
|
@@ -1590,6 +1639,7 @@ let Oystehr$1 = class Oystehr {
|
|
|
1590
1639
|
this.project = new Project(config);
|
|
1591
1640
|
this.rcm = new Rcm(config);
|
|
1592
1641
|
this.erx = new Erx(config);
|
|
1642
|
+
this.fax = new Fax(config);
|
|
1593
1643
|
this.role = new Role(config);
|
|
1594
1644
|
this.secret = new Secret(config);
|
|
1595
1645
|
this.telemed = new Telemed(config);
|