oro-sdk 2.1.4 → 2.2.0

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.
@@ -1873,6 +1873,16 @@ var DiagnosisService = /*#__PURE__*/function () {
1873
1873
  }
1874
1874
  });
1875
1875
  }
1876
+ /**
1877
+ * creates a new treatment for the specified diagnosis
1878
+ * @param diagnosisUuid uuid of the diagnosis that the treatment is linked to
1879
+ * @param treatmentRequest the treatment to be inserted
1880
+ */
1881
+ ;
1882
+
1883
+ _proto.createTreatment = function createTreatment(diagnosisUuid, treatmentRequest) {
1884
+ return this.api.post(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments", treatmentRequest);
1885
+ }
1876
1886
  /**
1877
1887
  * This function returns populated treatment plans associated to a consult
1878
1888
  * @param uuidConsult the consult uuid to fetch