UNPKG

@vidal-community/vidal-web-components

Version:

Vidal Web Components

15 lines 912 B
import { Drug } from '../model/drug'; import { Prescribable } from '../model/prescribable'; import { Unit } from '../model/unit'; export declare function usePrescribableService(): PrescribablesService; declare class PrescribablesService { associatePrescribablesWithUcd(drug: Drug, prescribableFetchingSupplier: (url: string) => Promise<Response>): Promise<Prescribable[]>; getPrescribablesFromDrug(drug: Drug, prescribableFetchingSupplier: (url: string) => Promise<Response>): Promise<Prescribable[]>; getUcdsFromPrescribables(prescribablesId: string, prescribableFetchingSupplier: (url: string) => Promise<Response>): Promise<Drug[]>; getPrescribableRefUnit(prescribableId: string, fetchingSupplier: (url: string) => Promise<Response>): Promise<Unit>; private callPrescribablesApi; private buildUri; private getDrugId; } export {}; //# sourceMappingURL=prescribables-service.d.ts.map