@oystehr/sdk 4.0.0-alpha.2 → 4.0.0-alpha.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.cjs +26 -2
- 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 +19 -3
- package/dist/cjs/resources/types/ErxCancelPrescriptionParams.d.ts +4 -0
- package/dist/cjs/resources/types/ErxCheckPractitionerEnrollmentParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxCheckPractitionerEnrollmentResponse.d.ts +17 -0
- package/dist/cjs/resources/types/ErxEnrollPractitionerParams.d.ts +3 -0
- package/dist/cjs/resources/types/ErxUnenrollPractitionerParams.d.ts +3 -0
- package/dist/cjs/resources/types/index.d.ts +5 -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 +19 -3
- package/dist/esm/resources/classes/erx.js +26 -2
- package/dist/esm/resources/classes/erx.js.map +1 -1
- package/dist/esm/resources/types/ErxCancelPrescriptionParams.d.ts +4 -0
- package/dist/esm/resources/types/ErxCheckPractitionerEnrollmentParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxCheckPractitionerEnrollmentResponse.d.ts +17 -0
- package/dist/esm/resources/types/ErxEnrollPractitionerParams.d.ts +3 -0
- package/dist/esm/resources/types/ErxUnenrollPractitionerParams.d.ts +3 -0
- package/dist/esm/resources/types/index.d.ts +5 -0
- package/package.json +1 -1
- package/src/resources/classes/erx.ts +38 -2
- package/src/resources/types/ErxCancelPrescriptionParams.ts +6 -0
- package/src/resources/types/ErxCheckPractitionerEnrollmentParams.ts +5 -0
- package/src/resources/types/ErxCheckPractitionerEnrollmentResponse.ts +19 -0
- package/src/resources/types/ErxEnrollPractitionerParams.ts +5 -0
- package/src/resources/types/ErxUnenrollPractitionerParams.ts +5 -0
- package/src/resources/types/index.ts +5 -0
package/dist/cjs/index.cjs
CHANGED
|
@@ -649,13 +649,13 @@ class Erx extends SDKResource {
|
|
|
649
649
|
_Erx_instances.add(this);
|
|
650
650
|
}
|
|
651
651
|
/**
|
|
652
|
-
* Search for allergens
|
|
652
|
+
* Search for allergens.
|
|
653
653
|
*/
|
|
654
654
|
searchAllergens(params, request) {
|
|
655
655
|
return this.request('/allergen', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
656
656
|
}
|
|
657
657
|
/**
|
|
658
|
-
* Search for medications.
|
|
658
|
+
* Search for medications.
|
|
659
659
|
*/
|
|
660
660
|
searchMedications(params, request) {
|
|
661
661
|
return this.request('/medication', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
@@ -678,6 +678,12 @@ class Erx extends SDKResource {
|
|
|
678
678
|
checkPrecheckInteractions(params, request) {
|
|
679
679
|
return this.request('/patient/{patientId}/interactions/precheck/{drugId}', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
680
680
|
}
|
|
681
|
+
/**
|
|
682
|
+
* Cancel prescription for patient.
|
|
683
|
+
*/
|
|
684
|
+
cancelPrescription(params, request) {
|
|
685
|
+
return this.request('/patient/{patientId}/prescriptions/{medicationRequestId}', 'delete', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
686
|
+
}
|
|
681
687
|
/**
|
|
682
688
|
* Syncs demographic, allergy, and medication data for a patient with the upstream eRx provider.
|
|
683
689
|
*/
|
|
@@ -690,6 +696,24 @@ class Erx extends SDKResource {
|
|
|
690
696
|
connectPractitioner(params, request) {
|
|
691
697
|
return this.request('/practitioner/connect', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
692
698
|
}
|
|
699
|
+
/**
|
|
700
|
+
* Check eRx enrollment for a practitioner.
|
|
701
|
+
*/
|
|
702
|
+
checkPractitionerEnrollment(params, request) {
|
|
703
|
+
return this.request('/practitioner/{practitionerId}', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Enroll a practitioner in the eRx service.
|
|
707
|
+
*/
|
|
708
|
+
enrollPractitioner(params, request) {
|
|
709
|
+
return this.request('/practitioner/{practitionerId}', 'post', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Unenroll a practitioner from the eRx service.
|
|
713
|
+
*/
|
|
714
|
+
unenrollPractitioner(params, request) {
|
|
715
|
+
return this.request('/practitioner/{practitionerId}', 'delete', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
|
|
716
|
+
}
|
|
693
717
|
}
|
|
694
718
|
_Erx_instances = new WeakSet(), _Erx_baseUrlThunk = function _Erx_baseUrlThunk() {
|
|
695
719
|
var _a, _b;
|