oro-sdk-apis 1.23.1 → 1.24.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/index.d.ts +1 -0
- package/dist/models/practice.d.ts +2 -1
- package/dist/models/teller.d.ts +5 -0
- package/dist/oro-sdk-apis.cjs.development.js +12 -1
- 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 +12 -1
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/teller.d.ts +7 -1
- package/package.json +1 -1
- package/src/models/index.ts +1 -0
- package/src/models/practice.ts +1 -0
- package/src/models/teller.ts +5 -0
- package/src/services/teller.ts +22 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIService } from './api';
|
|
2
|
-
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid } from '../models';
|
|
2
|
+
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest } from '../models';
|
|
3
3
|
export declare class TellerService {
|
|
4
4
|
private api;
|
|
5
5
|
private baseURL;
|
|
@@ -31,4 +31,10 @@ export declare class TellerService {
|
|
|
31
31
|
* @returns void
|
|
32
32
|
*/
|
|
33
33
|
sendOnlineFaxSuccessfulEmail(consult: Consult, patientUuid: Uuid): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* This function will send an email to patient to allow them to resume the consult.
|
|
36
|
+
* @param req the body of the resume consult request
|
|
37
|
+
* @returns void
|
|
38
|
+
*/
|
|
39
|
+
sendResumeConsultEmail(req: ResumeConsultEmailRequest): Promise<void>;
|
|
34
40
|
}
|
package/package.json
CHANGED
package/src/models/index.ts
CHANGED
package/src/models/practice.ts
CHANGED
package/src/services/teller.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { APIService } from './api'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Consult,
|
|
4
|
+
DataCreateResponse,
|
|
5
|
+
LockboxDataRequest,
|
|
6
|
+
MedicalStatus,
|
|
7
|
+
Uuid,
|
|
8
|
+
ResumeConsultEmailRequest,
|
|
9
|
+
} from '../models'
|
|
3
10
|
export class TellerService {
|
|
4
|
-
constructor(private api: APIService, private baseURL: string) {
|
|
11
|
+
constructor(private api: APIService, private baseURL: string) {}
|
|
5
12
|
|
|
6
13
|
public async lockboxDataStore(
|
|
7
14
|
lockboxUuid: Uuid,
|
|
@@ -68,16 +75,20 @@ export class TellerService {
|
|
|
68
75
|
/**
|
|
69
76
|
* This function will send an email to the patientUuid, saying that the online practice has been sent a fax successfully
|
|
70
77
|
* @todo - Make service only exposed route
|
|
71
|
-
* @param consult
|
|
72
|
-
* @param patientUuid
|
|
78
|
+
* @param consult
|
|
79
|
+
* @param patientUuid
|
|
73
80
|
* @returns void
|
|
74
81
|
*/
|
|
75
|
-
public sendOnlineFaxSuccessfulEmail(
|
|
76
|
-
consult
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
public sendOnlineFaxSuccessfulEmail(consult: Consult, patientUuid: Uuid): Promise<void> {
|
|
83
|
+
return this.api.post(`${this.baseURL}/v1/online-fax-notify`, { consult, patientUuid })
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* This function will send an email to patient to allow them to resume the consult.
|
|
88
|
+
* @param req the body of the resume consult request
|
|
89
|
+
* @returns void
|
|
90
|
+
*/
|
|
91
|
+
public sendResumeConsultEmail(req: ResumeConsultEmailRequest): Promise<void> {
|
|
92
|
+
return this.api.post(`${this.baseURL}/v1/resume-consult-email`, req)
|
|
82
93
|
}
|
|
83
94
|
}
|