UNPKG

ng-smart-on-fhir

Version:

[![SRDC](https://www.srdc.com.tr/wp-content/uploads/2014/12/srdc-wp.png)](https://srdc.com.tr/en)

49 lines (48 loc) 1.85 kB
import Client from "fhirclient/lib/Client"; import { SmartAuthService } from "./smart-auth.service"; import { SmartOnFhirConfig } from "../model/smart-on-fhir.config"; import * as i0 from "@angular/core"; /** * Authenticated FHIR client */ export declare class SmartOnFhirService { config: SmartOnFhirConfig; private auth; private importedSHCards; private _importedResources; get importedResources(): { [rtype: string]: import("fhir/r4").Resource[]; }; constructor(config: SmartOnFhirConfig, auth: SmartAuthService); getClient(): Promise<Client | undefined>; private ready; getPatient(): Promise<import("fhir/r4").Patient | undefined>; search<T>(resourceType: string, ...params: any[]): Promise<fhir4.Bundle<T>>; create<T>(resource: T, id?: string): Promise<T>; delete(resourceType: string, id?: string, params?: { [key: string]: string | number; }[]): Promise<void>; operation<T>(options: { operationName: string; resourceType?: string; resourceId?: string; params?: fhir4.Parameters; queryParams?: { [key: string]: string | number; }[]; }): Promise<T>; transaction(bundle: (fhir4.Bundle & { type: 'transaction'; }) | fhir4.Resource[], method?: 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'): Promise<import("fhir/r4").Bundle<import("fhir/r4").FhirResource>>; query<T>(url: string): Promise<fhir4.Bundle<T>>; logout(): void; private constructQueryURL; importSHCData(param: { label?: string; shc: string[]; bundle: fhir4.Bundle; }): void; getAllImportedResources(): import("fhir/r4").Resource[]; static ɵfac: i0.ɵɵFactoryDeclaration<SmartOnFhirService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<SmartOnFhirService>; }