oro-sdk-apis 5.14.0-dev1.0 → 5.14.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/models/consult.d.ts +2 -0
- package/dist/models/practice.d.ts +2 -1
- package/dist/oro-sdk-apis.cjs.development.js +926 -1866
- 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 +911 -1886
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +1 -0
- package/dist/services/diagnosis.d.ts +1 -1
- package/package.json +2 -2
- package/src/models/consult.ts +2 -0
- package/src/models/practice.ts +1 -0
- package/src/services/consult.ts +9 -3
- package/src/services/diagnosis.ts +3 -3
- package/LICENSE +0 -21
@@ -41,6 +41,7 @@ export declare class ConsultService {
|
|
41
41
|
*/
|
42
42
|
getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[], uuidParent?: Uuid, typesConsult?: ConsultType[]): Promise<Consult[]>;
|
43
43
|
getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
|
44
|
+
getConsultByPracticePaymentID(idPracticePayment: Number, uuidPractice?: Uuid): Promise<Consult>;
|
44
45
|
updateConsultByUUID(uuidConsult: Uuid, consult: {
|
45
46
|
statusMedical?: MedicalStatus;
|
46
47
|
closedReasonType?: ClosedReasonType;
|
@@ -14,7 +14,7 @@ export declare class DiagnosisService {
|
|
14
14
|
getDiagnosisByUuid(uuidDiagnosis: Uuid): Promise<Diagnosis>;
|
15
15
|
createDiagnosis(diagnosis: DiagnosisRequest): Promise<Diagnosis>;
|
16
16
|
updateDiagnosis(uuid: string, diagnosis: DiagnosisRequest): Promise<Diagnosis>;
|
17
|
-
getTreatmentByUuid(uuidDiagnosis: Uuid, uuidTreatment: Uuid): Promise<Treatment
|
17
|
+
getTreatmentByUuid(uuidDiagnosis: Uuid, uuidTreatment: Uuid): Promise<Treatment>;
|
18
18
|
getTreatmentsFromDiagnosisUuid(diagnosisUuid: Uuid): Promise<Treatment[]>;
|
19
19
|
/**
|
20
20
|
* This function returns treatment plans associated to a consult
|
package/package.json
CHANGED
package/src/models/consult.ts
CHANGED
package/src/models/practice.ts
CHANGED
package/src/services/consult.ts
CHANGED
@@ -12,7 +12,7 @@ import {
|
|
12
12
|
} from '../models'
|
13
13
|
|
14
14
|
export class ConsultService {
|
15
|
-
constructor(private api: APIService, private baseURL: string) {
|
15
|
+
constructor(private api: APIService, private baseURL: string) {}
|
16
16
|
|
17
17
|
public consultCreate(c: ConsultRequest): Promise<Consult> {
|
18
18
|
return this.api.post<Consult>(`${this.baseURL}/v1/consults`, c)
|
@@ -71,7 +71,7 @@ export class ConsultService {
|
|
71
71
|
filterIsoLocality,
|
72
72
|
filterAssignee,
|
73
73
|
typesConsult,
|
74
|
-
uuidParent
|
74
|
+
uuidParent,
|
75
75
|
},
|
76
76
|
},
|
77
77
|
'Content-Range'
|
@@ -120,7 +120,7 @@ export class ConsultService {
|
|
120
120
|
filterIsoLocality?: string[],
|
121
121
|
filterAssignee?: string[],
|
122
122
|
uuidParent?: Uuid,
|
123
|
-
typesConsult?: ConsultType[]
|
123
|
+
typesConsult?: ConsultType[]
|
124
124
|
): Promise<Consult[]> {
|
125
125
|
return this.api.get<Consult[]>(`${this.baseURL}/v1/consults`, {
|
126
126
|
params: {
|
@@ -147,6 +147,12 @@ export class ConsultService {
|
|
147
147
|
return this.api.get<Consult>(`${this.baseURL}/v1/consults/${uuidConsult}`, { params: { uuidPractice } })
|
148
148
|
}
|
149
149
|
|
150
|
+
public getConsultByPracticePaymentID(idPracticePayment: Number, uuidPractice?: Uuid): Promise<Consult> {
|
151
|
+
return this.api.get<Consult>(`${this.baseURL}/v1/consults/payment-${idPracticePayment}`, {
|
152
|
+
params: { uuidPractice },
|
153
|
+
})
|
154
|
+
}
|
155
|
+
|
150
156
|
public updateConsultByUUID(
|
151
157
|
uuidConsult: Uuid,
|
152
158
|
consult: {
|
@@ -42,8 +42,8 @@ export class DiagnosisService {
|
|
42
42
|
return this.api.put<Diagnosis>(`${this.baseURL}/v1/diagnoses/${uuid}`, diagnosis)
|
43
43
|
}
|
44
44
|
|
45
|
-
public getTreatmentByUuid(uuidDiagnosis: Uuid, uuidTreatment: Uuid): Promise<Treatment
|
46
|
-
return this.api.get<Treatment
|
45
|
+
public getTreatmentByUuid(uuidDiagnosis: Uuid, uuidTreatment: Uuid): Promise<Treatment> {
|
46
|
+
return this.api.get<Treatment>(`${this.baseURL}/v1/diagnoses/${uuidDiagnosis}/treatments/${uuidTreatment}`)
|
47
47
|
}
|
48
48
|
|
49
49
|
public getTreatmentsFromDiagnosisUuid(diagnosisUuid: Uuid): Promise<Treatment[]> {
|
@@ -135,4 +135,4 @@ export class DiagnosisService {
|
|
135
135
|
if (res && res.foundDrugs) return res.foundDrugs
|
136
136
|
return undefined
|
137
137
|
}
|
138
|
-
}
|
138
|
+
}
|
package/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
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.
|