@oystehr/sdk
Version:
Oystehr SDK
33 lines (30 loc) • 1 kB
JavaScript
import { SDKResource } from '../../client/client.js';
import { search, create, get, update, patch, delete as del, history, batch, transaction, formatAddress, formatHumanName } from './fhir-ext.js';
// AUTOGENERATED -- DO NOT EDIT
class Fhir extends SDKResource {
constructor(config) {
super(config);
}
#baseUrlThunk() {
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 = search;
create = create;
get = get;
update = update;
patch = patch;
delete = del;
history = history;
batch = batch;
transaction = transaction;
formatAddress = formatAddress;
formatHumanName = formatHumanName;
}
export { Fhir };
//# sourceMappingURL=fhir.js.map