oro-sdk-apis 3.6.0 → 3.7.0-dev1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/models/diagnosis.d.ts +1 -4
- package/dist/oro-sdk-apis.cjs.development.js +1327 -441
- 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 +1348 -427
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +6 -0
- package/package.json +2 -2
- package/src/models/diagnosis.ts +1 -4
- package/src/services/practice.ts +13 -4
@@ -5,6 +5,12 @@ export declare class PracticeService {
|
|
5
5
|
private api;
|
6
6
|
private baseURL;
|
7
7
|
constructor(api: APIService, baseURL: string);
|
8
|
+
/**
|
9
|
+
* This function will only work if the service is initialized with
|
10
|
+
* an M2M with the scope `practice.practices.get`
|
11
|
+
* @returns an array of practices
|
12
|
+
*/
|
13
|
+
practiceGetAll(): Promise<Practice[]>;
|
8
14
|
/**
|
9
15
|
* This function get the practice from the URL of a practice
|
10
16
|
* It is the entry point of our web apps
|
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
@@ -33,6 +33,7 @@ export interface TreatmentRequest {
|
|
33
33
|
name: string
|
34
34
|
description: string
|
35
35
|
refillable?: boolean
|
36
|
+
noteToPharmacy?: string
|
36
37
|
urlMultimedia?: string
|
37
38
|
type?: TreatmentType
|
38
39
|
}
|
@@ -105,7 +106,6 @@ export interface TreatmentPlan {
|
|
105
106
|
uuidConsult: string
|
106
107
|
uuidDiagnosis: string
|
107
108
|
uuidTreatment?: string
|
108
|
-
notes?: string
|
109
109
|
status: PlanStatus
|
110
110
|
decidedAt: string
|
111
111
|
createdAt: string
|
@@ -118,7 +118,6 @@ export interface DrugPrescription {
|
|
118
118
|
|
119
119
|
export interface TreatmentAndDrugPrescription {
|
120
120
|
treatmentsHistory?: TreatmentHistory[]
|
121
|
-
notes?: string
|
122
121
|
status: PlanStatus
|
123
122
|
uuidTreatmentPlan: string
|
124
123
|
/**
|
@@ -153,7 +152,6 @@ export interface TreatmentAndDrugPrescriptionRequest {
|
|
153
152
|
trackingId: string
|
154
153
|
treatment: TreatmentRequest
|
155
154
|
prescriptionsAndDrugs?: DrugPrescriptionRequest[]
|
156
|
-
notes?: string
|
157
155
|
}
|
158
156
|
|
159
157
|
export interface TreatmentPlansRequest {
|
@@ -165,7 +163,6 @@ export interface TreatmentPlansRequest {
|
|
165
163
|
export interface TreatmentAndDrugPrescriptionUpdateRequest {
|
166
164
|
treatment: Treatment
|
167
165
|
prescriptionsAndDrugs?: DrugPrescriptionRequest[]
|
168
|
-
notes?: string
|
169
166
|
}
|
170
167
|
|
171
168
|
export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
|
package/src/services/practice.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { hashToBase64String } from '../helpers'
|
2
|
-
import {PaymentStatus, PracticeAccount, Uuid} from '../models'
|
2
|
+
import { PaymentStatus, PracticeAccount, Uuid } from '../models'
|
3
3
|
import {
|
4
4
|
Assignment,
|
5
5
|
AssignmentRequest,
|
@@ -27,6 +27,15 @@ import { APIService } from './api'
|
|
27
27
|
export class PracticeService {
|
28
28
|
constructor(private api: APIService, private baseURL: string) {}
|
29
29
|
|
30
|
+
/**
|
31
|
+
* This function will only work if the service is initialized with
|
32
|
+
* an M2M with the scope `practice.practices.get`
|
33
|
+
* @returns an array of practices
|
34
|
+
*/
|
35
|
+
public practiceGetAll(): Promise<Practice[]> {
|
36
|
+
return this.api.get<Practice[]>(`${this.baseURL}/v1/practices`)
|
37
|
+
}
|
38
|
+
|
30
39
|
/**
|
31
40
|
* This function get the practice from the URL of a practice
|
32
41
|
* It is the entry point of our web apps
|
@@ -154,14 +163,14 @@ export class PracticeService {
|
|
154
163
|
statusPayment?: PaymentStatus,
|
155
164
|
withConsultUUIDNULL?: boolean,
|
156
165
|
perPage?: number,
|
157
|
-
indexPage?: number
|
158
|
-
|
166
|
+
indexPage?: number
|
167
|
+
): Promise<PracticePayment[]> {
|
159
168
|
return this.api.get<PracticePayment[]>(`${this.baseURL}/v1/practices/${practiceUuid}/payments`, {
|
160
169
|
params: {
|
161
170
|
status: statusPayment,
|
162
171
|
withConsultUUIDNULL,
|
163
172
|
perPage,
|
164
|
-
indexPage
|
173
|
+
indexPage,
|
165
174
|
},
|
166
175
|
})
|
167
176
|
}
|