feat: add active hospital catalog API
This commit is contained in:
10
README.md
10
README.md
@@ -183,6 +183,16 @@ GET /api/cpone/database-settings
|
||||
GET /api/cpone/database-settings/{kodeRs}
|
||||
```
|
||||
|
||||
Daftar ringkas rumah sakit aktif dapat diambil tanpa memilih database HIS:
|
||||
|
||||
```http
|
||||
GET /api/cpone/hospitals
|
||||
Authorization: Bearer <your-secure-token>
|
||||
```
|
||||
|
||||
Response hanya memuat `kode_rs`, `nama`, dan `status`; rumah sakit nonaktif tidak
|
||||
ditampilkan.
|
||||
|
||||
Saat startup, service otomatis membuat database `CPONE_DB_DATABASE` beserta
|
||||
tabel `hospitals` dan `hospital_databases`. Tidak ada database RS default; semua
|
||||
koneksi HIS harus ditambahkan lewat API. Akun `CPONE_DB_USERNAME` harus memiliki
|
||||
|
||||
Reference in New Issue
Block a user