oro-sdk-apis 7.4.0 → 7.4.2
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/teller.d.ts +5 -0
- package/dist/oro-sdk-apis.cjs.development.js +20 -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 +20 -0
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/diagnosis.d.ts +3 -1
- package/dist/services/teller.d.ts +7 -1
- package/package.json +1 -1
- package/src/models/teller.ts +6 -0
- package/src/services/diagnosis.ts +20 -2
- package/src/services/teller.ts +10 -1
@@ -42,13 +42,15 @@ export declare class DiagnosisService {
|
|
42
42
|
* @param dateDecidedBefore the date before which the treatment must have been decided
|
43
43
|
* @returns a TreatmentPlans object
|
44
44
|
*/
|
45
|
-
getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids(arrUuidsConsults: string[], arrStatusesToInclude?: PlanStatus[], dateDecidedAfter?: Date, dateDecidedBefore?: Date): Promise<
|
45
|
+
getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids(arrUuidsConsults: string[], arrStatusesToInclude?: PlanStatus[], dateDecidedAfter?: Date, dateDecidedBefore?: Date): Promise<TreatmentPlan[]>;
|
46
46
|
postPlans(plans: TreatmentPlansRequest): Promise<TreatmentPlansResponse>;
|
47
47
|
updateTreatmentPlan(uuidPlan: string, uuidConsult: string, diagnosisRequest: DiagnosisRequest, plan: TreatmentAndDrugPrescriptionUpdateRequest, refill?: boolean): Promise<TreatmentPlan>;
|
48
48
|
setAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
49
49
|
updateAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
50
50
|
getAssociatedConsultsOfTreatment(diagnosisUuid: string, treatmentUuid: string): Promise<TreatmentAssociatedConsultData[]>;
|
51
51
|
acceptTreatmentPlan(uuidPlan: string, uuidConsult: string): Promise<TreatmentPlan>;
|
52
|
+
updateTreatmentPlanStatusOnly(uuidPlan: string, uuidConsult: string, newStatus: PlanStatus): Promise<TreatmentPlan>;
|
53
|
+
updateTreatmentPlanNotesOnly(uuidPlan: string, uuidConsult: string, newNotes: string): Promise<TreatmentPlan>;
|
52
54
|
/**
|
53
55
|
* retrieves all the drugs of the specified practice
|
54
56
|
* @param uuidPractice
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { APIService } from './api';
|
2
|
-
import { ClosedReasonType, Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, ResumeConsultEmailRequest, Uuid } from '../models';
|
2
|
+
import { ClosedReasonType, Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, ResumeConsultEmailRequest, ResumeTransmissionEmailRequest, Uuid } from '../models';
|
3
3
|
export declare class TellerService {
|
4
4
|
private api;
|
5
5
|
private baseURL;
|
@@ -47,4 +47,10 @@ export declare class TellerService {
|
|
47
47
|
* @returns void
|
48
48
|
*/
|
49
49
|
sendResumeConsultEmail(req: ResumeConsultEmailRequest): Promise<void>;
|
50
|
+
/**
|
51
|
+
* This function will send an email to patient to allow them to resume the transmission of their prescription.
|
52
|
+
* @param req the body of the resume consult request
|
53
|
+
* @returns void
|
54
|
+
*/
|
55
|
+
sendResumeTransmissionEmail(req: ResumeTransmissionEmailRequest): Promise<void>;
|
50
56
|
}
|
package/package.json
CHANGED
package/src/models/teller.ts
CHANGED
@@ -93,8 +93,8 @@ export class DiagnosisService {
|
|
93
93
|
arrStatusesToInclude?: PlanStatus[],
|
94
94
|
dateDecidedAfter?: Date,
|
95
95
|
dateDecidedBefore?: Date,
|
96
|
-
): Promise<
|
97
|
-
return this.api.get<
|
96
|
+
): Promise<TreatmentPlan[]> {
|
97
|
+
return this.api.get<TreatmentPlan[]>(`${this.baseURL}/v1/treatment-plans/`, {
|
98
98
|
params: {
|
99
99
|
filterByConsultsUuids : arrUuidsConsults,
|
100
100
|
statusesTreatmentPlanIncluded: arrStatusesToInclude,
|
@@ -160,6 +160,24 @@ export class DiagnosisService {
|
|
160
160
|
return this.api.put<TreatmentPlan>(`${this.baseURL}/v1/treatment-plans/${uuidPlan}/accept`, { uuidConsult })
|
161
161
|
}
|
162
162
|
|
163
|
+
public updateTreatmentPlanStatusOnly(uuidPlan: string, uuidConsult: string, newStatus: PlanStatus): Promise<TreatmentPlan> {
|
164
|
+
return this.api.put<TreatmentPlan>(
|
165
|
+
`${this.baseURL}/v1/treatment-plans/${uuidPlan}`,
|
166
|
+
{
|
167
|
+
uuidConsult,
|
168
|
+
status: newStatus
|
169
|
+
})
|
170
|
+
}
|
171
|
+
|
172
|
+
public updateTreatmentPlanNotesOnly(uuidPlan: string, uuidConsult: string, newNotes: string): Promise<TreatmentPlan> {
|
173
|
+
return this.api.put<TreatmentPlan>(
|
174
|
+
`${this.baseURL}/v1/treatment-plans/${uuidPlan}`,
|
175
|
+
{
|
176
|
+
uuidConsult,
|
177
|
+
notes: newNotes
|
178
|
+
})
|
179
|
+
}
|
180
|
+
|
163
181
|
/**
|
164
182
|
* retrieves all the drugs of the specified practice
|
165
183
|
* @param uuidPractice
|
package/src/services/teller.ts
CHANGED
@@ -5,7 +5,7 @@ import {
|
|
5
5
|
DataCreateResponse,
|
6
6
|
LockboxDataRequest,
|
7
7
|
MedicalStatus,
|
8
|
-
ResumeConsultEmailRequest,
|
8
|
+
ResumeConsultEmailRequest, ResumeTransmissionEmailRequest,
|
9
9
|
Uuid,
|
10
10
|
} from '../models'
|
11
11
|
export class TellerService {
|
@@ -111,4 +111,13 @@ export class TellerService {
|
|
111
111
|
public sendResumeConsultEmail(req: ResumeConsultEmailRequest): Promise<void> {
|
112
112
|
return this.api.post(`${this.baseURL}/v1/resume-consult-email`, req)
|
113
113
|
}
|
114
|
+
|
115
|
+
/**
|
116
|
+
* This function will send an email to patient to allow them to resume the transmission of their prescription.
|
117
|
+
* @param req the body of the resume consult request
|
118
|
+
* @returns void
|
119
|
+
*/
|
120
|
+
public sendResumeTransmissionEmail(req: ResumeTransmissionEmailRequest): Promise<void> {
|
121
|
+
return this.api.post(`${this.baseURL}/v1/resume-transmission-email`, req)
|
122
|
+
}
|
114
123
|
}
|