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.
- package/LICENSE +21 -0
- package/dist/oro-sdk-apis.cjs.development.js +1854 -900
- 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 +1894 -905
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/diagnosis.d.ts +1 -0
- package/package.json +2 -2
- package/src/services/diagnosis.ts +5 -1
| @@ -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
    
    
| @@ -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 | 
            +
            }
         |