UNPKG

@ssecd/jkn

Version:

JKN (BPJS) Bridging API untuk NodeJS

65 lines (64 loc) 1.6 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/${params.keyword}`, method: 'GET' }); } /** * Pencarian data fasilitas kesehatan */ async faskes(params) { return this.send({ name: this.name + 'Fasilitas Kesehatan', path: `/referensi/ppk/${params.jenis}/${params.nama}`, method: 'GET' }); } /** * Pencarian setting apotek */ async settingApotek(params) { return this.send({ name: this.name + 'Setting', path: `/referensi/settingppk/read/${params.kodeApotek}`, method: 'GET' }); } /** * Data spesialistik */ async spesialistik() { return this.send({ name: this.name + 'Spesialistik', path: `/referensi/spesialistik`, method: 'GET' }); } /** * Pencarian data obat */ async obat(param) { const filter = param.filter ?? ''; return this.send({ name: this.name + 'Cari Obat', path: `/referensi/obat/${param.jenis}/${param.tanggal}/${filter}`, method: 'GET' }); } }