@oystehr/sdk
Version:
Oystehr SDK
32 lines (29 loc) • 914 B
text/typescript
// AUTOGENERATED -- DO NOT EDIT
import { SDKResource } from '../../client/client';
import { OystehrConfig } from '../../config';
import * as ext from './fhir-ext';
export class Fhir extends SDKResource {
constructor(config: OystehrConfig) {
super(config);
}
#baseUrlThunk(): string {
return this.config.services?.['fhirApiUrl'] ?? 'https://fhir-api.zapehr.com';
}
/**
* 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 = ext.search;
create = ext.create;
get = ext.get;
update = ext.update;
patch = ext.patch;
delete = ext.delete;
history = ext.history;
batch = ext.batch;
transaction = ext.transaction;
formatAddress = ext.formatAddress;
formatHumanName = ext.formatHumanName;
}