@oystehr/sdk
Version:
Oystehr SDK
25 lines (24 loc) • 1.37 kB
TypeScript
import { SDKResource } from '../../client/client';
import { OystehrConfig } from '../../config';
import * as ext from './fhir-ext';
export declare class Fhir extends SDKResource {
#private;
constructor(config: OystehrConfig);
/**
* Performs a FHIR search and returns the results as a Bundle resource
* @param options FHIR resource type and FHIR search parameters
* @param request optional OystehrClientRequest object
* @returns FHIR Bundle resource
*/
search: typeof ext.search;
create: typeof ext.create;
get: typeof ext.get;
update: typeof ext.update;
patch: typeof ext.patch;
delete: typeof ext.delete;
history: typeof ext.history;
batch: <BundleContentType extends import("..").FhirResource>(this: SDKResource, input: import("..").BatchInput<BundleContentType>, request?: import("../..").OystehrClientRequest) => Promise<import("../../client/client").FhirFetcherResponse<import("..").Bundle<BundleContentType>>>;
transaction: <BundleContentType extends import("..").FhirResource>(this: SDKResource, input: import("..").BatchInput<BundleContentType>, request?: import("../..").OystehrClientRequest) => Promise<import("../../client/client").FhirFetcherResponse<import("..").Bundle<BundleContentType>>>;
formatAddress: typeof ext.formatAddress;
formatHumanName: typeof ext.formatHumanName;
}