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
|
@@ -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;
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This type represents all the patient profile kind
|
|
3
|
+
*/
|
|
4
|
+
export declare type ProfileKind = 'myself' | 'child' | 'other';
|
|
5
|
+
/**
|
|
6
|
+
* this type is done as an example on how to add another data kind
|
|
7
|
+
*/
|
|
8
|
+
export declare type OtherKind = 'otherKindOfType';
|
|
9
|
+
/**
|
|
10
|
+
* This type represents all the kind a data that can define `ChoiceInputData` (`OtherKind` is here only as an example on how to add a new kind)
|
|
11
|
+
*/
|
|
12
|
+
export declare type AllChoiceInputDataKind = ProfileKind | OtherKind;
|
|
13
|
+
/**
|
|
14
|
+
* This interface represents a `StateTrigger` on selected profile kind
|
|
15
|
+
*/
|
|
16
|
+
export interface ProfileTrigger {
|
|
17
|
+
kind: 'profileTrigger';
|
|
18
|
+
value: ProfileKind;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* This interface is meant as an example of another kind of `StateTrigger`
|
|
22
|
+
*/
|
|
23
|
+
export interface OtherTrigger {
|
|
24
|
+
kind: 'otherTrigger';
|
|
25
|
+
field1: number;
|
|
26
|
+
field2: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* This type represents all the state triggers that are defined.
|
|
30
|
+
*
|
|
31
|
+
* A state trigger is triggered onto app states. In other words, it is for triggers that cannot be defined thanks to pure workflow answers.
|
|
32
|
+
*/
|
|
33
|
+
export declare type StateTrigger = ProfileTrigger | OtherTrigger;
|
|
1
34
|
export interface IndexedData<T> {
|
|
2
35
|
[key: string]: T;
|
|
3
36
|
}
|
|
@@ -7,6 +40,8 @@ export interface ChoiceInputData {
|
|
|
7
40
|
text: string;
|
|
8
41
|
className?: string;
|
|
9
42
|
order?: number;
|
|
43
|
+
/** If defined, the choice input contains a kind that can be used into app. For instance, to check if a specific `kind` of answer has been selected */
|
|
44
|
+
kind?: AllChoiceInputDataKind;
|
|
10
45
|
}
|
|
11
46
|
export interface RadioInputIconOptionsData {
|
|
12
47
|
variant: 'icon';
|
|
@@ -30,7 +65,14 @@ export interface EntryData {
|
|
|
30
65
|
summaryLabel?: string;
|
|
31
66
|
summaryHidden?: boolean;
|
|
32
67
|
className?: string;
|
|
68
|
+
/**
|
|
69
|
+
* This field represents a list of `selectedAnswers` that must be set for this entry to be displayed.
|
|
70
|
+
*/
|
|
33
71
|
triggers?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* This field represents a list of `StateTrigger` that must be fulfilled for this entry to be displayed.
|
|
74
|
+
*/
|
|
75
|
+
stateTriggers?: StateTrigger[];
|
|
34
76
|
}
|
|
35
77
|
export interface SlideData {
|
|
36
78
|
header: string;
|
|
@@ -1245,14 +1245,19 @@ var ApisPracticeManager = /*#__PURE__*/function () {
|
|
|
1245
1245
|
return function authTokenFunc() {
|
|
1246
1246
|
return _ref.apply(this, arguments);
|
|
1247
1247
|
};
|
|
1248
|
-
}(); //
|
|
1248
|
+
}(); // Initialize the M2M token
|
|
1249
1249
|
|
|
1250
1250
|
|
|
1251
|
+
_context2.next = 7;
|
|
1252
|
+
return authTokenFunc();
|
|
1253
|
+
|
|
1254
|
+
case 7:
|
|
1255
|
+
// Set the refresh tokens callback
|
|
1251
1256
|
newPracticeInstance.apiService.setAuthRefreshFn(authTokenFunc);
|
|
1252
1257
|
this.practiceInstances.set(practiceUuid, newPracticeInstance);
|
|
1253
1258
|
return _context2.abrupt("return", newPracticeInstance);
|
|
1254
1259
|
|
|
1255
|
-
case
|
|
1260
|
+
case 10:
|
|
1256
1261
|
case "end":
|
|
1257
1262
|
return _context2.stop();
|
|
1258
1263
|
}
|
|
@@ -1511,6 +1516,12 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
|
|
|
1511
1516
|
PracticeEmailKind["FollowedUp"] = "FollowedUp";
|
|
1512
1517
|
PracticeEmailKind["Renewed"] = "Renewed";
|
|
1513
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";
|
|
1514
1525
|
})(exports.PracticeEmailKind || (exports.PracticeEmailKind = {}));
|
|
1515
1526
|
|
|
1516
1527
|
(function (PracticeConfigKind) {
|
|
@@ -2894,6 +2905,7 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2894
2905
|
}
|
|
2895
2906
|
/**
|
|
2896
2907
|
* This function notifies teller that the fax sent for a specific consult did not get through
|
|
2908
|
+
* @todo - Make service only exposed route
|
|
2897
2909
|
* @param practiceUuid the practice uuid linked to the consult
|
|
2898
2910
|
* @param consultationUuid the consultation uuid
|
|
2899
2911
|
* @param consultationShortId the consultation short id
|
|
@@ -2915,6 +2927,7 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2915
2927
|
}
|
|
2916
2928
|
/**
|
|
2917
2929
|
* This function let's you reassign a practictioner to a consult and send a notification email
|
|
2930
|
+
* @todo - Make service only exposed route
|
|
2918
2931
|
* @param uuidConsult the uuid of the consult to reassign
|
|
2919
2932
|
* @param newPractitionerUuid the uuid of the practitioner that will get reassigned
|
|
2920
2933
|
*/
|
|
@@ -2924,6 +2937,21 @@ var TellerService = /*#__PURE__*/function () {
|
|
|
2924
2937
|
return this.api.post(this.baseURL + "/v1/consult/" + uuidConsult + "/reassignment-email", {
|
|
2925
2938
|
newPractitionerUuid: newPractitionerUuid
|
|
2926
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
|
+
});
|
|
2927
2955
|
};
|
|
2928
2956
|
|
|
2929
2957
|
return TellerService;
|