oro-sdk-apis 1.17.0 → 1.19.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.
- package/dist/models/practice.d.ts +7 -1
- package/dist/models/workflow.d.ts +42 -0
- package/dist/oro-sdk-apis.cjs.development.js +30 -2
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +30 -2
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/teller.d.ts +10 -0
- package/package.json +1 -1
- package/src/models/practice.ts +6 -0
- package/src/models/workflow.ts +64 -2
- package/src/services/apisPracticeManager.ts +3 -0
- package/src/services/teller.ts +19 -1
package/dist/oro-sdk-apis.esm.js
CHANGED
|
@@ -1239,14 +1239,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
|
1239
1239
|
return function authTokenFunc() {
|
|
1240
1240
|
return _ref.apply(this, arguments);
|
|
1241
1241
|
};
|
|
1242
|
-
}(); //
|
|
1242
|
+
}(); // Initialize the M2M token
|
|
1243
1243
|
|
|
1244
1244
|
|
|
1245
|
+
_context2.next = 7;
|
|
1246
|
+
return authTokenFunc();
|
|
1247
|
+
|
|
1248
|
+
case 7:
|
|
1249
|
+
// Set the refresh tokens callback
|
|
1245
1250
|
newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
|
|
1246
1251
|
this.practiceInstances.set(practiceUuid, newPracticeInstance);
|
|
1247
1252
|
return _context2.abrupt("return", newPracticeInstance);
|
|
1248
1253
|
|
|
1249
|
-
case
|
|
1254
|
+
case 10:
|
|
1250
1255
|
case "end":
|
|
1251
1256
|
return _context2.stop();
|
|
1252
1257
|
}
|
|
@@ -1547,6 +1552,12 @@ var PracticeEmailKind;
|
|
|
1547
1552
|
PracticeEmailKind["FollowedUp"] = "FollowedUp";
|
|
1548
1553
|
PracticeEmailKind["Renewed"] = "Renewed";
|
|
1549
1554
|
PracticeEmailKind["DataRetrieved"] = "DataRetrieved";
|
|
1555
|
+
PracticeEmailKind["Closed"] = "Closed";
|
|
1556
|
+
PracticeEmailKind["PasswordRecovery"] = "PasswordRecovery";
|
|
1557
|
+
PracticeEmailKind["FaxFailed"] = "FaxFailed";
|
|
1558
|
+
PracticeEmailKind["ExamResult"] = "ExamResult";
|
|
1559
|
+
PracticeEmailKind["Reassigned"] = "Reassigned";
|
|
1560
|
+
PracticeEmailKind["OnlinePharmacyFaxSent"] = "OnlinePharmacyFaxSent";
|
|
1550
1561
|
})(PracticeEmailKind || (PracticeEmailKind = {}));
|
|
1551
1562
|
|
|
1552
1563
|
var PracticeConfigKind;
|
|
@@ -2940,6 +2951,7 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2940
2951
|
}
|
|
2941
2952
|
/**
|
|
2942
2953
|
* This function notifies teller that the fax sent for a specific consult did not get through
|
|
2954
|
+
* @todo - Make service only exposed route
|
|
2943
2955
|
* @param practiceUuid the practice uuid linked to the consult
|
|
2944
2956
|
* @param consultationUuid the consultation uuid
|
|
2945
2957
|
* @param consultationShortId the consultation short id
|
|
@@ -2961,6 +2973,7 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2961
2973
|
}
|
|
2962
2974
|
/**
|
|
2963
2975
|
* This function let's you reassign a practictioner to a consult and send a notification email
|
|
2976
|
+
* @todo - Make service only exposed route
|
|
2964
2977
|
* @param uuidConsult the uuid of the consult to reassign
|
|
2965
2978
|
* @param newPractitionerUuid the uuid of the practitioner that will get reassigned
|
|
2966
2979
|
*/
|
|
@@ -2970,6 +2983,21 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2970
2983
|
return this.api.post(this.baseURL + "/v1/consult/" + uuidConsult + "/reassignment-email", {
|
|
2971
2984
|
newPractitionerUuid: newPractitionerUuid
|
|
2972
2985
|
});
|
|
2986
|
+
}
|
|
2987
|
+
/**
|
|
2988
|
+
* This function will send an email to the patientUuid, saying that the online practice has been sent a fax successfully
|
|
2989
|
+
* @todo - Make service only exposed route
|
|
2990
|
+
* @param consult
|
|
2991
|
+
* @param patientUuid
|
|
2992
|
+
* @returns void
|
|
2993
|
+
*/
|
|
2994
|
+
;
|
|
2995
|
+
|
|
2996
|
+
_proto.sendOnlineFaxSuccessfulEmail = function sendOnlineFaxSuccessfulEmail(consult, patientUuid) {
|
|
2997
|
+
return this.api.post(this.baseURL + "/v1/online-fax-notify", {
|
|
2998
|
+
consult: consult,
|
|
2999
|
+
patient_uuid: patientUuid
|
|
3000
|
+
});
|
|
2973
3001
|
};
|
|
2974
3002
|
|
|
2975
3003
|
return TellerService;
|