@ssecd/jkn
Version:
JKN (BPJS) Bridging API untuk NodeJS
37 lines (36 loc) • 951 B
JavaScript
import { ApotekBaseApi } from './base.js';
export class PelayananObat extends ApotekBaseApi {
/**
* Hapus pelayanan obat
*/
async hapus(data) {
return this.send({
name: this.name + 'Hapus',
path: `/pelayanan/obat/hapus/`,
method: 'DELETE',
headers: { 'Content-Type': 'application/json' },
skipContentTypeHack: true,
data
});
}
/**
* Data daftar pelayanan obat
*/
async daftar(params) {
return this.send({
name: this.name + 'List/Daftar',
path: ['/pelayanan/obat/daftar/:nomorSep', params],
method: 'GET'
});
}
/**
* Riwayat pelayanan obat
*/
async riwayat(params) {
return this.send({
name: this.name + 'Riwayat',
path: ['/riwayatobat/:awal/:akhir/:nomorKartu', params],
method: 'GET'
});
}
}