UNPKG

@ssecd/jkn

Version:

JKN (BPJS) Bridging API untuk NodeJS

42 lines (41 loc) 1.24 kB
import { AntreanFKTP } from './antrean-fktp.js'; import { Antrean } from './antrean.js'; import { Aplicares } from './aplicares.js'; import { Apotek } from './apotek/index.js'; import { CachedApi } from './base.js'; import { Fetcher } from './fetcher.js'; import { ICare } from './icare.js'; import { PCare } from './pcare/index.js'; import { RekamMedis } from './rekam-medis/index.js'; import { VClaim } from './vclaim/index.js'; export default class JKN extends Fetcher { cache = new CachedApi(this); async invalidateConfig() { this.cache.clear(); await super.invalidateConfig(); } get antrean() { return this.cache.get('antrean', Antrean); } get aplicares() { return this.cache.get('aplicares', Aplicares); } get vclaim() { return VClaim.getInstance(this.cache); } get apotek() { return Apotek.getInstance(this.cache); } get pcare() { return this.cache.get('pcare', PCare); } get antreanFktp() { return this.cache.get('antrean-fktp', AntreanFKTP); } get icare() { return this.cache.get('icare', ICare); } get rekamMedis() { return this.cache.get('rekamMedis', RekamMedis); } }