UNPKG

@oystehr/sdk

Version:

Oystehr SDK

1 lines 1.76 kB
{"version":3,"file":"fhir.cjs","sources":["../../../../src/resources/classes/fhir.ts"],"sourcesContent":["// AUTOGENERATED -- DO NOT EDIT\n\nimport { SDKResource } from '../../client/client';\nimport { OystehrConfig } from '../../config';\nimport * as ext from './fhir-ext';\n\nexport class Fhir extends SDKResource {\n constructor(config: OystehrConfig) {\n super(config);\n }\n #baseUrlThunk(): string {\n return this.config.services?.['fhirApiUrl'] ?? 'https://fhir-api.zapehr.com';\n }\n /**\n * Performs a FHIR search and returns the results as a Bundle resource\n * @param options FHIR resource type and FHIR search parameters\n * @param request optional OystehrClientRequest object\n * @returns FHIR Bundle resource\n */\n search = ext.search;\n create = ext.create;\n get = ext.get;\n update = ext.update;\n patch = ext.patch;\n delete = ext.delete;\n history = ext.history;\n batch = ext.batch;\n transaction = ext.transaction;\n formatAddress = ext.formatAddress;\n formatHumanName = ext.formatHumanName;\n}\n"],"names":["SDKResource","ext.search","ext.create","ext.get","ext.update","ext.patch","ext.delete","ext.history","ext.batch","ext.transaction","ext.formatAddress","ext.formatHumanName"],"mappings":";;;;;AAAA;AAMM,MAAO,IAAK,SAAQA,kBAAW,CAAA;AACnC,IAAA,WAAA,CAAY,MAAqB,EAAA;QAC/B,KAAK,CAAC,MAAM,CAAC;IACf;IACA,aAAa,GAAA;QACX,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,YAAY,CAAC,IAAI,6BAA6B;IAC9E;AACA;;;;;AAKG;AACH,IAAA,MAAM,GAAGC,cAAU;AACnB,IAAA,MAAM,GAAGC,cAAU;AACnB,IAAA,GAAG,GAAGC,WAAO;AACb,IAAA,MAAM,GAAGC,cAAU;AACnB,IAAA,KAAK,GAAGC,aAAS;AACjB,IAAA,MAAM,GAAGC,cAAU;AACnB,IAAA,OAAO,GAAGC,eAAW;AACrB,IAAA,KAAK,GAAGC,aAAS;AACjB,IAAA,WAAW,GAAGC,mBAAe;AAC7B,IAAA,aAAa,GAAGC,qBAAiB;AACjC,IAAA,eAAe,GAAGC,uBAAmB;AACtC;;;;"}