bpjs-bridge 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/dist/__test__/config.d.ts +3 -0
- package/dist/__test__/config.js +12 -0
- package/dist/__test__/pcare.service.test.d.ts +1 -0
- package/dist/__test__/pcare.service.test.js +138 -0
- package/dist/config/BPJSConfig.d.ts +30 -0
- package/dist/config/BPJSConfig.js +2 -0
- package/dist/config/enpoints.d.ts +286 -0
- package/dist/config/enpoints.js +343 -0
- package/dist/core/configHelper.d.ts +15 -0
- package/dist/core/configHelper.js +13 -0
- package/dist/core/decrypt.d.ts +3 -0
- package/dist/core/decrypt.js +64 -0
- package/dist/core/httpClient.d.ts +5 -0
- package/dist/core/httpClient.js +52 -0
- package/dist/core/security.d.ts +9 -0
- package/dist/core/security.js +34 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +22 -0
- package/dist/lib/redis.d.ts +2 -0
- package/dist/lib/redis.js +12 -0
- package/dist/services/fktp.service.d.ts +45 -0
- package/dist/services/fktp.service.js +167 -0
- package/dist/services/pcare/pcare.service.d.ts +73 -0
- package/dist/services/pcare/pcare.service.js +143 -0
- package/dist/types/global.d.ts +17 -0
- package/dist/types/global.js +2 -0
- package/dist/types/globalModle.d.ts +6 -0
- package/dist/types/globalModle.js +12 -0
- package/dist/types/pcare.d.ts +37 -0
- package/dist/types/pcare.js +2 -0
- package/package.json +44 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @newustechnology/bpjs-bridging
|
|
2
|
+
|
|
3
|
+
Library resmi untuk bridging BPJS Kesehatan (PCare, VClaim, Antrean, iCare, Rekam Medis)
|
|
4
|
+
yang sudah modular, type-safe, dan mudah diintegrasikan.
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @newustechnology/bpjs-bridging
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
import { PcareService } from "@newustechnology/bpjs-bridging";
|
|
16
|
+
|
|
17
|
+
const pcare = new PcareService({
|
|
18
|
+
consId: "...",
|
|
19
|
+
secretKey: "...",
|
|
20
|
+
userKey: "...",
|
|
21
|
+
username: "...",
|
|
22
|
+
password: "..."
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const dokter = await pcare.getDokter(0, 10);
|
|
26
|
+
console.log(dokter);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
Features
|
|
32
|
+
|
|
33
|
+
๐ Auto enkripsi/dekripsi AES BPJS
|
|
34
|
+
|
|
35
|
+
๐ Auto generate header signature
|
|
36
|
+
|
|
37
|
+
๐ฆ Modular service: PCare, VClaim, Antrean, iCare
|
|
38
|
+
|
|
39
|
+
๐งช Fully tested with Jest
|
|
40
|
+
|
|
41
|
+
โก Fast, clean, and simple
|
|
42
|
+
|
|
43
|
+
---
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PcareConfig = void 0;
|
|
4
|
+
require("dotenv/config");
|
|
5
|
+
exports.PcareConfig = {
|
|
6
|
+
mode: (process.env.MODE ?? "dev"),
|
|
7
|
+
consId: process.env.CONST_ID ?? "",
|
|
8
|
+
secretKey: process.env.SECRET_KEY ?? "",
|
|
9
|
+
userKey: process.env.USER_KEY ?? "",
|
|
10
|
+
username: process.env.USERNAME ?? "",
|
|
11
|
+
password: process.env.PASSWORD ?? "",
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const redis_1 = require("../lib/redis");
|
|
4
|
+
const pcare_service_1 = require("../services/pcare/pcare.service");
|
|
5
|
+
const config_1 = require("./config");
|
|
6
|
+
// Setup PcareService
|
|
7
|
+
const pcareService = new pcare_service_1.PcareService(config_1.PcareConfig, redis_1.redis);
|
|
8
|
+
describe("PcareService", () => {
|
|
9
|
+
it("should load environment variables", () => {
|
|
10
|
+
console.log(config_1.PcareConfig);
|
|
11
|
+
expect(config_1.PcareConfig).toBeDefined();
|
|
12
|
+
});
|
|
13
|
+
it("should fetch diagnosa data", async () => {
|
|
14
|
+
const response = await pcareService.getDiagnosa("r51", 0, 10);
|
|
15
|
+
expect(response).toEqual(expect.objectContaining({
|
|
16
|
+
count: expect.any(Number), // count harus berupa number
|
|
17
|
+
list: expect.arrayContaining([
|
|
18
|
+
// list harus berupa array
|
|
19
|
+
expect.objectContaining({
|
|
20
|
+
kdDiag: expect.any(String), // kdDiag harus berupa string
|
|
21
|
+
nmDiag: expect.any(String), // nmDiag harus berupa string
|
|
22
|
+
nonSpesialis: expect.any(Boolean), // nonSpesialis harus berupa boolean
|
|
23
|
+
}),
|
|
24
|
+
]),
|
|
25
|
+
}));
|
|
26
|
+
});
|
|
27
|
+
it("should fetch getAlergiJenis 01", async () => {
|
|
28
|
+
const response = await pcareService.getAlergiJenis("01");
|
|
29
|
+
expect(response).toEqual(expect.objectContaining({
|
|
30
|
+
list: expect.arrayContaining([
|
|
31
|
+
// list harus berupa array
|
|
32
|
+
expect.objectContaining({
|
|
33
|
+
kdAlergi: expect.any(String), // kdAlergi harus berupa string
|
|
34
|
+
nmAlergi: expect.any(String), // nmAlergi harus berupa string
|
|
35
|
+
}),
|
|
36
|
+
]),
|
|
37
|
+
}));
|
|
38
|
+
});
|
|
39
|
+
it("should fetch getDokter", async () => {
|
|
40
|
+
const response = await pcareService.getDokter(0, 1);
|
|
41
|
+
expect(response).toEqual(expect.objectContaining({
|
|
42
|
+
count: expect.any(Number),
|
|
43
|
+
list: expect.arrayContaining([
|
|
44
|
+
expect.objectContaining({
|
|
45
|
+
kdDokter: expect.any(String),
|
|
46
|
+
nmDokter: expect.any(String),
|
|
47
|
+
}),
|
|
48
|
+
]),
|
|
49
|
+
}));
|
|
50
|
+
});
|
|
51
|
+
it("should fetch getKesadaran", async () => {
|
|
52
|
+
const response = await pcareService.getKesadaran();
|
|
53
|
+
expect(response).toEqual(expect.objectContaining({
|
|
54
|
+
count: expect.any(Number),
|
|
55
|
+
list: expect.arrayContaining([
|
|
56
|
+
expect.objectContaining({
|
|
57
|
+
kdSadar: expect.any(String),
|
|
58
|
+
nmSadar: expect.any(String),
|
|
59
|
+
}),
|
|
60
|
+
]),
|
|
61
|
+
}));
|
|
62
|
+
});
|
|
63
|
+
it("should fetch getDPHO", async () => {
|
|
64
|
+
const response = await pcareService.getDPHO("a", 0, 1);
|
|
65
|
+
expect(response).toEqual(expect.objectContaining({
|
|
66
|
+
count: expect.any(Number),
|
|
67
|
+
list: expect.arrayContaining([
|
|
68
|
+
expect.objectContaining({
|
|
69
|
+
kdObat: expect.any(String),
|
|
70
|
+
nmObat: expect.any(String),
|
|
71
|
+
sedia: expect.any(Number),
|
|
72
|
+
}),
|
|
73
|
+
]),
|
|
74
|
+
}));
|
|
75
|
+
});
|
|
76
|
+
it("should fetch Poli FKTP", async () => {
|
|
77
|
+
const response = await pcareService.getPiliFKTP(0, 1);
|
|
78
|
+
expect(response).toEqual(expect.objectContaining({
|
|
79
|
+
count: expect.any(Number),
|
|
80
|
+
list: expect.arrayContaining([
|
|
81
|
+
expect.objectContaining({
|
|
82
|
+
kdPoli: expect.any(String),
|
|
83
|
+
nmPoli: expect.any(String),
|
|
84
|
+
poliSakit: expect.any(Boolean),
|
|
85
|
+
}),
|
|
86
|
+
]),
|
|
87
|
+
}));
|
|
88
|
+
});
|
|
89
|
+
it("should fetch Provider Rayonisasi", async () => {
|
|
90
|
+
const response = await pcareService.getProviderRayonisasi(0, 1);
|
|
91
|
+
expect(response).toEqual(expect.objectContaining({
|
|
92
|
+
count: expect.any(Number),
|
|
93
|
+
list: expect.arrayContaining([
|
|
94
|
+
expect.objectContaining({
|
|
95
|
+
kdProvider: expect.any(String),
|
|
96
|
+
nmProvider: expect.any(String),
|
|
97
|
+
}),
|
|
98
|
+
]),
|
|
99
|
+
}));
|
|
100
|
+
});
|
|
101
|
+
it("should fetch Status Pulang", async () => {
|
|
102
|
+
const response = await pcareService.getStatusPulang(false);
|
|
103
|
+
expect(response).toEqual(expect.objectContaining({
|
|
104
|
+
count: expect.any(Number),
|
|
105
|
+
list: expect.arrayContaining([
|
|
106
|
+
expect.objectContaining({
|
|
107
|
+
kdStatusPulang: expect.any(String),
|
|
108
|
+
nmStatusPulang: expect.any(String),
|
|
109
|
+
}),
|
|
110
|
+
]),
|
|
111
|
+
}));
|
|
112
|
+
});
|
|
113
|
+
it("should fetch Referensi Tindakan", async () => {
|
|
114
|
+
const response = await pcareService.getReferensiTindakan("10", 0, 1);
|
|
115
|
+
expect(response).toEqual(expect.objectContaining({
|
|
116
|
+
count: expect.any(Number),
|
|
117
|
+
list: expect.arrayContaining([
|
|
118
|
+
expect.objectContaining({
|
|
119
|
+
kdTindakan: expect.any(String),
|
|
120
|
+
nmTindakan: expect.any(String),
|
|
121
|
+
maxTarif: expect.any(Number),
|
|
122
|
+
withValue: expect.any(Boolean),
|
|
123
|
+
}),
|
|
124
|
+
]),
|
|
125
|
+
}));
|
|
126
|
+
});
|
|
127
|
+
it("should fetch Prognosa", async () => {
|
|
128
|
+
const response = await pcareService.getPrognosa();
|
|
129
|
+
expect(response).toEqual(expect.objectContaining({
|
|
130
|
+
list: expect.arrayContaining([
|
|
131
|
+
expect.objectContaining({
|
|
132
|
+
kdPrognosa: expect.any(String),
|
|
133
|
+
nmPrognosa: expect.any(String),
|
|
134
|
+
}),
|
|
135
|
+
]),
|
|
136
|
+
}));
|
|
137
|
+
});
|
|
138
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export type BPJSBridgeConfig = {
|
|
2
|
+
mode: "dev" | "prod";
|
|
3
|
+
global?: {
|
|
4
|
+
username: string;
|
|
5
|
+
password: string;
|
|
6
|
+
consId: string;
|
|
7
|
+
secretKey: string;
|
|
8
|
+
};
|
|
9
|
+
pcare?: {
|
|
10
|
+
consId?: string;
|
|
11
|
+
secretKey?: string;
|
|
12
|
+
userKey?: string;
|
|
13
|
+
};
|
|
14
|
+
vclaim?: {
|
|
15
|
+
consId?: string;
|
|
16
|
+
secretKey?: string;
|
|
17
|
+
userKey?: string;
|
|
18
|
+
};
|
|
19
|
+
antrol?: {
|
|
20
|
+
consId?: string;
|
|
21
|
+
secretKey?: string;
|
|
22
|
+
userKey?: string;
|
|
23
|
+
};
|
|
24
|
+
icare?: {
|
|
25
|
+
consId?: string;
|
|
26
|
+
secretKey?: string;
|
|
27
|
+
username?: string;
|
|
28
|
+
password?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
export declare const enpoints: readonly [{
|
|
2
|
+
readonly name: "diagnosa";
|
|
3
|
+
readonly endpoint: "diagnosa/{kodediag}/{start}/{limit}";
|
|
4
|
+
readonly method: "GET";
|
|
5
|
+
readonly description: "Get Data Diagnosa dari BPJS PCare";
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "alergi_jenis";
|
|
8
|
+
readonly endpoint: "alergi/jenis/{jenisAlergi}";
|
|
9
|
+
readonly method: "GET";
|
|
10
|
+
readonly description: "Get Data Alergi berdasarkan jenis";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "dokter";
|
|
13
|
+
readonly endpoint: "dokter/{start}/{limit}";
|
|
14
|
+
readonly method: "GET";
|
|
15
|
+
readonly description: "Get Data Dokter dari BPJS PCare";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "kesadaran";
|
|
18
|
+
readonly endpoint: "kesadaran";
|
|
19
|
+
readonly method: "GET";
|
|
20
|
+
readonly description: "Get Data Kesadaran dari BPJS PCare";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "rujukan_kunjungan";
|
|
23
|
+
readonly endpoint: "kunjungan/rujukan/{nomorKunjungan}";
|
|
24
|
+
readonly method: "GET";
|
|
25
|
+
readonly description: "Get Data Rujukan berdasarkan Nomor Kunjungan";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "riwayat_kunjungan";
|
|
28
|
+
readonly endpoint: "kunjungan/peserta/{nomorKartu}";
|
|
29
|
+
readonly method: "GET";
|
|
30
|
+
readonly description: "Get Data Riwayat Kunjungan berdasarkan Nomor Kartu Peserta";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "tambah_kunjungan";
|
|
33
|
+
readonly endpoint: "kunjungan/v1";
|
|
34
|
+
readonly method: "POST";
|
|
35
|
+
readonly description: "Add Data Kunjungan ke BPJS PCare";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "edit_kunjungan";
|
|
38
|
+
readonly endpoint: "kunjungan/v1";
|
|
39
|
+
readonly method: "PUT";
|
|
40
|
+
readonly description: "Edit Data Kunjungan di BPJS PCare";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "hapus_kunjungan";
|
|
43
|
+
readonly endpoint: "kunjungan/{nomorKunjungan}";
|
|
44
|
+
readonly method: "DELETE";
|
|
45
|
+
readonly description: "Delete Data Kunjungan berdasarkan Nomor Kunjungan";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "dpho";
|
|
48
|
+
readonly endpoint: "obat/dpho/{kodeNamaDPHO}/{start}/{limit}";
|
|
49
|
+
readonly method: "GET";
|
|
50
|
+
readonly description: "Get Data DPHO dari BPJS PCare berdasarkan kode atau nama";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "obat_kunjungan";
|
|
53
|
+
readonly endpoint: "obat/kunjungan/{nomorKunjungan}";
|
|
54
|
+
readonly method: "GET";
|
|
55
|
+
readonly description: "Get Data Obat berdasarkan Nomor Kunjungan";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "tambah_obat";
|
|
58
|
+
readonly endpoint: "obat/kunjungan";
|
|
59
|
+
readonly method: "POST";
|
|
60
|
+
readonly description: "Add Data Obat ke BPJS PCare";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "hapus_obat";
|
|
63
|
+
readonly endpoint: "obat/{kdObatSK}/kunjungan/{nomorKunjungan}";
|
|
64
|
+
readonly method: "DELETE";
|
|
65
|
+
readonly description: "Delete Data Obat berdasarkan kdObatSK dan Nomor Kunjungan";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "provider_rayonisasi";
|
|
68
|
+
readonly endpoint: "provider/{start}/{limit}";
|
|
69
|
+
readonly method: "GET";
|
|
70
|
+
readonly description: "Get Data Provider Rayonisasi dari BPJS PCare";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "icare_validate";
|
|
73
|
+
readonly endpoint: "api/pcare/validate";
|
|
74
|
+
readonly method: "POST";
|
|
75
|
+
readonly description: "API Data Riwayat Pelayanan iCare";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "icare_rs_validate";
|
|
78
|
+
readonly endpoint: "api/rs/validate";
|
|
79
|
+
readonly method: "POST";
|
|
80
|
+
readonly description: "API Data Riwayat Pelayanan iCare RS";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "pendaftaran_by_noUrut";
|
|
83
|
+
readonly endpoint: "pendaftaran/noUrut/{noUrut}/tglDaftar/{tglDaftar}";
|
|
84
|
+
readonly method: "GET";
|
|
85
|
+
readonly description: "Get Data Pendaftaran berdasarkan Nomor Urut dan Tanggal Daftar";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "pendaftaran_provider";
|
|
88
|
+
readonly endpoint: "pendaftaran/tglDaftar/{tglDaftar}/{start}/{limit}";
|
|
89
|
+
readonly method: "GET";
|
|
90
|
+
readonly description: "Get Data Pendaftaran berdasarkan tanggal, start, dan limit";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "tambah_pendaftaran";
|
|
93
|
+
readonly endpoint: "pendaftaran";
|
|
94
|
+
readonly method: "POST";
|
|
95
|
+
readonly description: "Add Data Pendaftaran Baru";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "hapus_pendaftaran";
|
|
98
|
+
readonly endpoint: "pendaftaran/peserta/{noKartu}/tglDaftar/{tglDaftar}/noUrut/{noUrut}/kdPoli/{kdPoli}";
|
|
99
|
+
readonly method: "DELETE";
|
|
100
|
+
readonly description: "Delete Data Pendaftaran berdasarkan Nomor Kartu, Tanggal, Urutan, dan Kode Poli";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "peserta_noka";
|
|
103
|
+
readonly endpoint: "peserta/{noKartu}";
|
|
104
|
+
readonly method: "GET";
|
|
105
|
+
readonly description: "Get Data Peserta berdasarkan Nomor Kartu Peserta";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "peserta_nik_noka";
|
|
108
|
+
readonly endpoint: "peserta/{jenisKartu}/{noIdentitas}";
|
|
109
|
+
readonly method: "GET";
|
|
110
|
+
readonly description: "Get Data Peserta berdasarkan Jenis Kartu (NIK/NOKA) dan Nomor Identitas";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "poli_fktp";
|
|
113
|
+
readonly endpoint: "poli/fktp/{start}/{limit}";
|
|
114
|
+
readonly method: "GET";
|
|
115
|
+
readonly description: "Get Data Poli FKTP dari BPJS PCare";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "prognosa";
|
|
118
|
+
readonly endpoint: "prognosa";
|
|
119
|
+
readonly method: "GET";
|
|
120
|
+
readonly description: "Get Data Prognosa dari BPJS PCare";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "status_pulang";
|
|
123
|
+
readonly endpoint: "statuspulang/rawatInap/{rawatInap}";
|
|
124
|
+
readonly method: "GET";
|
|
125
|
+
readonly description: "Get Status Pulang berdasarkan Rawat Inap (true/false)";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "tindakan_kunjungan";
|
|
128
|
+
readonly endpoint: "tindakan/kunjungan/{nomorKunjungan}";
|
|
129
|
+
readonly method: "GET";
|
|
130
|
+
readonly description: "Get Data Tindakan berdasarkan Nomor Kunjungan";
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "referensi_tindakan";
|
|
133
|
+
readonly endpoint: "tindakan/kdTkp/{kdTkp}/{start}/{limit}";
|
|
134
|
+
readonly method: "GET";
|
|
135
|
+
readonly description: "Get Data Referensi Tindakan berdasarkan kdTkp";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "tambah_tindakan";
|
|
138
|
+
readonly endpoint: "tindakan";
|
|
139
|
+
readonly method: "POST";
|
|
140
|
+
readonly description: "Add Data Tindakan";
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "edit_tindakan";
|
|
143
|
+
readonly endpoint: "tindakan";
|
|
144
|
+
readonly method: "PUT";
|
|
145
|
+
readonly description: "Edit Data Tindakan";
|
|
146
|
+
}, {
|
|
147
|
+
readonly name: "hapus_tindakan";
|
|
148
|
+
readonly endpoint: "tindakan/{kdTindakanSK}/kunjungan/{nomorKunjungan}";
|
|
149
|
+
readonly method: "DELETE";
|
|
150
|
+
readonly description: "Delete Data Tindakan berdasarkan kdTindakanSK dan Nomor Kunjungan";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "referensi_spesialis";
|
|
153
|
+
readonly endpoint: "spesialis";
|
|
154
|
+
readonly method: "GET";
|
|
155
|
+
readonly description: "Get Data Referensi Spesialis";
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "referensi_subspesialis";
|
|
158
|
+
readonly endpoint: "spesialis/{kdSpesialis}/subspesialis";
|
|
159
|
+
readonly method: "GET";
|
|
160
|
+
readonly description: "Get Data Referensi Sub Spesialis berdasarkan Kode Spesialis";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "referensi_sarana";
|
|
163
|
+
readonly endpoint: "spesialis/sarana";
|
|
164
|
+
readonly method: "GET";
|
|
165
|
+
readonly description: "Get Data Referensi Sarana";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "referensi_khusus";
|
|
168
|
+
readonly endpoint: "spesialis/khusus";
|
|
169
|
+
readonly method: "GET";
|
|
170
|
+
readonly description: "Get Data Referensi Khusus";
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "rujuk_subspesialis";
|
|
173
|
+
readonly endpoint: "spesialis/rujuk/subspesialis/{kdSubSpesialis}/sarana/{kdSarana}/tglEstRujuk/{tglEstRujuk}";
|
|
174
|
+
readonly method: "GET";
|
|
175
|
+
readonly description: "Get Data Faskes Rujukan Sub Spesialis";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "rujuk_khusus";
|
|
178
|
+
readonly endpoint: "spesialis/rujuk/khusus/{kdKhusus}/noKartu/{noKartu}/tglEstRujuk/{tglEstRujuk}";
|
|
179
|
+
readonly method: "GET";
|
|
180
|
+
readonly description: "Get Data Faskes Rujukan Khusus";
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "rujuk_khusus_subspesialis";
|
|
183
|
+
readonly endpoint: "spesialis/rujuk/khusus/{kdKhusus}/subspesialis/{kdSubSpesialis}/noKartu/{noKartu}/tglEstRujuk/{tglEstRujuk}";
|
|
184
|
+
readonly method: "GET";
|
|
185
|
+
readonly description: "Get Data Faskes Rujukan Khusus untuk THALASEMIA dan HEMOFILI";
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "status_pulang";
|
|
188
|
+
readonly endpoint: "statuspulang/rawatInap/{rawatInap}";
|
|
189
|
+
readonly method: "GET";
|
|
190
|
+
readonly description: "Get Data Status Pulang berdasarkan Rawat Inap (true/false)";
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "mcu_kunjungan";
|
|
193
|
+
readonly endpoint: "MCU/kunjungan/{nomorKunjungan}";
|
|
194
|
+
readonly method: "GET";
|
|
195
|
+
readonly description: "Get Data MCU berdasarkan Nomor Kunjungan";
|
|
196
|
+
}, {
|
|
197
|
+
readonly name: "tambah_mcu";
|
|
198
|
+
readonly endpoint: "MCU";
|
|
199
|
+
readonly method: "POST";
|
|
200
|
+
readonly description: "Add Data MCU ke BPJS PCare";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "edit_mcu";
|
|
203
|
+
readonly endpoint: "MCU";
|
|
204
|
+
readonly method: "PUT";
|
|
205
|
+
readonly description: "Edit Data MCU di BPJS PCare";
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "hapus_mcu";
|
|
208
|
+
readonly endpoint: "MCU/{kdMCU}/kunjungan/{nomorKunjungan}";
|
|
209
|
+
readonly method: "DELETE";
|
|
210
|
+
readonly description: "Delete Data MCU berdasarkan kdMCU dan Nomor Kunjungan";
|
|
211
|
+
}, {
|
|
212
|
+
readonly name: "get_club_prolanis";
|
|
213
|
+
readonly endpoint: "kelompok/club/{kodeJenisKelompok}";
|
|
214
|
+
readonly method: "GET";
|
|
215
|
+
readonly description: "Get Data Club Prolanis berdasarkan Kode Jenis Kelompok (01: Diabetes Melitus, 02: Hipertensi)";
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "get_kegiatan_kelompok";
|
|
218
|
+
readonly endpoint: "kelompok/kegiatan/{tanggal}";
|
|
219
|
+
readonly method: "GET";
|
|
220
|
+
readonly description: "Get Data Kegiatan Kelompok berdasarkan tanggal (format: dd-mm-yyyy)";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "get_peserta_kegiatan_kelompok";
|
|
223
|
+
readonly endpoint: "kelompok/peserta/{eduId}";
|
|
224
|
+
readonly method: "GET";
|
|
225
|
+
readonly description: "Get Data Peserta Kegiatan Kelompok berdasarkan eduId";
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "add_kegiatan_kelompok";
|
|
228
|
+
readonly endpoint: "kelompok/kegiatan";
|
|
229
|
+
readonly method: "POST";
|
|
230
|
+
readonly description: "Add Data Kegiatan Kelompok";
|
|
231
|
+
}, {
|
|
232
|
+
readonly name: "add_peserta_kegiatan_kelompok";
|
|
233
|
+
readonly endpoint: "kelompok/peserta";
|
|
234
|
+
readonly method: "POST";
|
|
235
|
+
readonly description: "Add Data Peserta Kegiatan Kelompok";
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "delete_kegiatan_kelompok";
|
|
238
|
+
readonly endpoint: "kelompok/kegiatan/{eduId}";
|
|
239
|
+
readonly method: "DELETE";
|
|
240
|
+
readonly description: "Delete Data Kegiatan Kelompok berdasarkan eduId";
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "delete_peserta_kegiatan_kelompok";
|
|
243
|
+
readonly endpoint: "kelompok/peserta/{eduId}/{noKartu}";
|
|
244
|
+
readonly method: "DELETE";
|
|
245
|
+
readonly description: "Delete Data Peserta Kegiatan Kelompok berdasarkan eduId dan Nomor Kartu Peserta";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "ref_poli_antrol";
|
|
248
|
+
readonly endpoint: "ref/poli/tanggal/{tanggal}";
|
|
249
|
+
readonly method: "GET";
|
|
250
|
+
readonly description: "Melihat referensi poli pada layanan antrean (WS Antrol)";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "ref_dokter_antrol";
|
|
253
|
+
readonly endpoint: "ref/dokter/kodepoli/{kodepoli}/tanggal/{tanggal}";
|
|
254
|
+
readonly method: "GET";
|
|
255
|
+
readonly description: "Melihat daftar dokter berdasarkan poli dan tanggal (WS Antrol)";
|
|
256
|
+
}, {
|
|
257
|
+
readonly name: "tambah_antrean";
|
|
258
|
+
readonly endpoint: "antrean/add";
|
|
259
|
+
readonly method: "POST";
|
|
260
|
+
readonly description: "Menambah data antrean pasien (WS Antrol)";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "update_status_antrean";
|
|
263
|
+
readonly endpoint: "antrean/panggil";
|
|
264
|
+
readonly method: "POST";
|
|
265
|
+
readonly description: "Update status antrean hadir/tidak hadir (WS Antrol)";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "batal_antrean";
|
|
268
|
+
readonly endpoint: "antrean/batal";
|
|
269
|
+
readonly method: "POST";
|
|
270
|
+
readonly description: "Membatalkan antrean pasien (WS Antrol)";
|
|
271
|
+
}];
|
|
272
|
+
export declare const BaseUrl: {
|
|
273
|
+
prod: {
|
|
274
|
+
url_pcare: string;
|
|
275
|
+
url_icare: string;
|
|
276
|
+
url_vclaim: string;
|
|
277
|
+
url_antrol: string;
|
|
278
|
+
};
|
|
279
|
+
dev: {
|
|
280
|
+
url_icare: string;
|
|
281
|
+
url_pcare: string;
|
|
282
|
+
url_vclaim: string;
|
|
283
|
+
url_antrol: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
export type EndpointName = (typeof enpoints)[number]["name"];
|