oro-sdk-apis 5.13.7 → 5.14.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.
@@ -14,6 +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
18
  getTreatmentsFromDiagnosisUuid(diagnosisUuid: Uuid): Promise<Treatment[]>;
18
19
  /**
19
20
  * This function returns treatment plans associated to a consult
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.13.7",
2
+ "version": "5.14.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -55,4 +55,4 @@
55
55
  "buffer": "^6.0.3",
56
56
  "hash.js": "^1.1.7"
57
57
  }
58
- }
58
+ }
@@ -42,6 +42,10 @@ 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[]>(`${this.baseURL}/v1/diagnoses/${uuidDiagnosis}/treatments/${uuidTreatment}`)
47
+ }
48
+
45
49
  public getTreatmentsFromDiagnosisUuid(diagnosisUuid: Uuid): Promise<Treatment[]> {
46
50
  return this.api.get<Treatment[]>(`${this.baseURL}/v1/diagnoses/${diagnosisUuid}/treatments`)
47
51
  }
@@ -131,4 +135,4 @@ export class DiagnosisService {
131
135
  if (res && res.foundDrugs) return res.foundDrugs
132
136
  return undefined
133
137
  }
134
- }
138
+ }