@oystehr/sdk 4.0.0-alpha.3 → 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.
@@ -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. Provide at least one of code or name filters
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);
@@ -702,6 +702,18 @@ class Erx extends SDKResource {
702
702
  checkPractitionerEnrollment(params, request) {
703
703
  return this.request('/practitioner/{practitionerId}', 'get', __classPrivateFieldGet(this, _Erx_instances, "m", _Erx_baseUrlThunk).bind(this))(params, request);
704
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
+ }
705
717
  }
706
718
  _Erx_instances = new WeakSet(), _Erx_baseUrlThunk = function _Erx_baseUrlThunk() {
707
719
  var _a, _b;