@oystehr/sdk
Version:
Oystehr SDK
35 lines (31 loc) • 1.01 kB
JavaScript
;
var client = require('../../client/client.cjs');
var fhirExt = require('./fhir-ext.cjs');
// AUTOGENERATED -- DO NOT EDIT
class Fhir extends client.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 = fhirExt.search;
create = fhirExt.create;
get = fhirExt.get;
update = fhirExt.update;
patch = fhirExt.patch;
delete = fhirExt.delete;
history = fhirExt.history;
batch = fhirExt.batch;
transaction = fhirExt.transaction;
formatAddress = fhirExt.formatAddress;
formatHumanName = fhirExt.formatHumanName;
}
exports.Fhir = Fhir;
//# sourceMappingURL=fhir.cjs.map