UNPKG

@ssecd/jkn

Version:

JKN (BPJS) Bridging API untuk NodeJS

64 lines (63 loc) 1.55 kB
import { ApotekBaseApi } from './base.js'; export class Referensi extends ApotekBaseApi { /** * Daftar obat DPHO */ async dpho() { return this.send({ name: this.name + 'DPHO', path: `/referensi/dpho`, method: 'GET' }); } /** * Daftar referensi poli */ async poli(params) { return this.send({ name: this.name + 'Poli', path: ['/referensi/poli/:keyword', params], method: 'GET' }); } /** * Pencarian data fasilitas kesehatan */ async faskes(params) { return this.send({ name: this.name + 'Fasilitas Kesehatan', path: ['/referensi/ppk/:jenis/:nama', params], method: 'GET' }); } /** * Pencarian setting apotek */ async settingApotek(params) { return this.send({ name: this.name + 'Setting', path: ['/referensi/settingppk/read/:kodeApotek', params], method: 'GET' }); } /** * Data spesialistik */ async spesialistik() { return this.send({ name: this.name + 'Spesialistik', path: `/referensi/spesialistik`, method: 'GET' }); } /** * Pencarian data obat */ async obat(params) { return this.send({ name: this.name + 'Cari Obat', path: ['/referensi/obat/:jenis/:tanggal/:filter?', params], method: 'GET' }); } }