oro-sdk-apis 1.17.1 → 1.18.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/LICENSE +21 -0
- package/dist/models/practice.d.ts +7 -1
- package/dist/oro-sdk-apis.cjs.development.js +23 -0
- 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 +23 -0
- 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/services/teller.ts +19 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 ORO Health Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -90,7 +90,13 @@ export declare enum PracticeEmailKind {
|
|
|
90
90
|
ToAnswer = "ToAnswer",
|
|
91
91
|
FollowedUp = "FollowedUp",
|
|
92
92
|
Renewed = "Renewed",
|
|
93
|
-
DataRetrieved = "DataRetrieved"
|
|
93
|
+
DataRetrieved = "DataRetrieved",
|
|
94
|
+
Closed = "Closed",
|
|
95
|
+
PasswordRecovery = "PasswordRecovery",
|
|
96
|
+
FaxFailed = "FaxFailed",
|
|
97
|
+
ExamResult = "ExamResult",
|
|
98
|
+
Reassigned = "Reassigned",
|
|
99
|
+
OnlinePharmacyFaxSent = "OnlinePharmacyFaxSent"
|
|
94
100
|
}
|
|
95
101
|
export interface PracticeAccount {
|
|
96
102
|
id?: number;
|
|
@@ -1516,6 +1516,12 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
|
|
|
1516
1516
|
PracticeEmailKind["FollowedUp"] = "FollowedUp";
|
|
1517
1517
|
PracticeEmailKind["Renewed"] = "Renewed";
|
|
1518
1518
|
PracticeEmailKind["DataRetrieved"] = "DataRetrieved";
|
|
1519
|
+
PracticeEmailKind["Closed"] = "Closed";
|
|
1520
|
+
PracticeEmailKind["PasswordRecovery"] = "PasswordRecovery";
|
|
1521
|
+
PracticeEmailKind["FaxFailed"] = "FaxFailed";
|
|
1522
|
+
PracticeEmailKind["ExamResult"] = "ExamResult";
|
|
1523
|
+
PracticeEmailKind["Reassigned"] = "Reassigned";
|
|
1524
|
+
PracticeEmailKind["OnlinePharmacyFaxSent"] = "OnlinePharmacyFaxSent";
|
|
1519
1525
|
})(exports.PracticeEmailKind || (exports.PracticeEmailKind = {}));
|
|
1520
1526
|
|
|
1521
1527
|
(function (PracticeConfigKind) {
|
|
@@ -2899,6 +2905,7 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2899
2905
|
}
|
|
2900
2906
|
/**
|
|
2901
2907
|
* This function notifies teller that the fax sent for a specific consult did not get through
|
|
2908
|
+
* @todo - Make service only exposed route
|
|
2902
2909
|
* @param practiceUuid the practice uuid linked to the consult
|
|
2903
2910
|
* @param consultationUuid the consultation uuid
|
|
2904
2911
|
* @param consultationShortId the consultation short id
|
|
@@ -2920,6 +2927,7 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2920
2927
|
}
|
|
2921
2928
|
/**
|
|
2922
2929
|
* This function let's you reassign a practictioner to a consult and send a notification email
|
|
2930
|
+
* @todo - Make service only exposed route
|
|
2923
2931
|
* @param uuidConsult the uuid of the consult to reassign
|
|
2924
2932
|
* @param newPractitionerUuid the uuid of the practitioner that will get reassigned
|
|
2925
2933
|
*/
|
|
@@ -2929,6 +2937,21 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2929
2937
|
return this.api.post(this.baseURL + "/v1/consult/" + uuidConsult + "/reassignment-email", {
|
|
2930
2938
|
newPractitionerUuid: newPractitionerUuid
|
|
2931
2939
|
});
|
|
2940
|
+
}
|
|
2941
|
+
/**
|
|
2942
|
+
* This function will send an email to the patientUuid, saying that the online practice has been sent a fax successfully
|
|
2943
|
+
* @todo - Make service only exposed route
|
|
2944
|
+
* @param consult
|
|
2945
|
+
* @param patientUuid
|
|
2946
|
+
* @returns void
|
|
2947
|
+
*/
|
|
2948
|
+
;
|
|
2949
|
+
|
|
2950
|
+
_proto.sendOnlineFaxSuccessfulEmail = function sendOnlineFaxSuccessfulEmail(consult, patientUuid) {
|
|
2951
|
+
return this.api.post(this.baseURL + "/v1/online-fax-notify", {
|
|
2952
|
+
consult: consult,
|
|
2953
|
+
patient_uuid: patientUuid
|
|
2954
|
+
});
|
|
2932
2955
|
};
|
|
2933
2956
|
|
|
2934
2957
|
return TellerService;
|