Jika repository ini membantu pengembangan SIMRS atau sistem rumah sakit, kamu bisa mendukung pengembangan project ini.
Dukungan dari kamu akan membantu:
- pengembangan fitur baru
- update integrasi BPJS
- maintenance repository
- peningkatan dokumentasi
Support project melalui Saweria:
π https://saweria.co/fauzirahman05
Terima kasih untuk semua yang mendukung pengembangan teknologi kesehatan di Indonesia π
Backend API untuk integrasi Sistem Informasi Manajemen Rumah Sakit (SIMRS) dengan layanan BPJS VClaim menggunakan Laravel 12.
Project ini dibuat sebagai fondasi layanan API internal untuk kebutuhan bridging SIMRS seperti:
- pencarian peserta BPJS
- pengelolaan SEP
- monitoring kunjungan
- referensi master BPJS
- integrasi layanan rumah sakit
Repository ini dirancang agar mudah dikembangkan menjadi backend service SIMRS skala besar.
- Integrasi BPJS VClaim V3
- Pencarian data peserta BPJS
- Pencarian dan pengelolaan SEP
- Monitoring kunjungan BPJS
- Monitoring klaim BPJS
- Referensi BPJS:
- Poli
- Diagnosa
- Faskes
- Dokter DPJP
- Provinsi
- Kabupaten
- Kecamatan
- Prosedur
- Format response API konsisten
- Konfigurasi environment terpisah
- PHP 8.2
- Laravel 12
- Laravel Sanctum
- Spatie Permission
- Vite
- SQLite / MySQL
simrs-api/
β
βββ app/
βββ bootstrap/
βββ config/
βββ database/
βββ public/
βββ resources/
βββ routes/
βββ storage/
βββ tests/
β
βββ .env.example
βββ artisan
βββ composer.json
βββ package.json
βββ vite.config.js
Struktur ini mengikuti standar Laravel sehingga memudahkan pengembangan API secara modular.
git clone https://github.com/ahmadfauzirahman99/simrs-api.git
cd simrs-api
git checkout pmaster
composer install
npm install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan serve
Untuk development asset:
npm run dev
Edit file .env
APP_NAME=SIMRS API
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
DB_CONNECTION=sqlite
Konfigurasi BPJS:
BPJS_V3_API_VER=2
BPJS_V3_BASE_URL=URL_BPJS_V3
BPJS_V3_CONS_ID=CONS_ID_BPJS_V3
BPJS_V3_SECRET_KEY=SECRET_KEY_BP
BPJS_V3_USER_KEY=USER_KEY_BPJS_V3
Mode development cepat
composer run dev
Mode manual
php artisan serve
npm run dev
Contoh base URL lokal
http://127.0.0.1:8000/api/v1
Endpoint root
GET /api/v1
Response:
{
"metaData": {
"code": "200",
"message": "Sukses"
},
"response": {
"app": "SIMRS API",
"version": "v1",
"status": "active"
}
}
GET /api/v1
GET /api/v1/bpjs/peserta
Parameter
nomor
tipe
GET /api/v1/bpjs/sep
Parameter
no_sep
GET /api/v1/bpjs/monitoring-kunjungan
Parameter
tanggal
tipe
GET /api/v1/bpjs/monitoring-klaim
Parameter
tanggal
tipe
status
Success response
{
"metaData": {
"code": "200",
"message": "Sukses"
},
"response": {}
}
Error response
{
"metaData": {
"code": "400",
"message": "Pesan error"
},
"response": {}
}
Ahmad Fauzi Rahman
Backend Developer
SIMRS Developer
Healthcare Technology Enthusiast
GitHub:
MIT License
Copyright (c) 2026 Ahmad Fauzi Rahman
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
This project may be used for personal or commercial purposes, including integration with hospital information systems (SIMRS), provided that the original copyright notice and license are retained.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This project is licensed under the MIT License.
You are free to:
- Use this project for personal use
- Use this project for commercial use
- Modify the source code
- Distribute the software
- Integrate with other systems
As long as the original copyright notice and license are included.
Β© 2026 Ahmad Fauzi Rahman