feat: add lab package registration endpoint

This commit is contained in:
2026-08-23 21:32:46 +07:00
parent b497012de3
commit 3e5cae4287
9 changed files with 558 additions and 6 deletions

View File

@@ -24,6 +24,10 @@ POST /api/cpone/patients/lab-registration/{regId}/services
Authorization: Bearer <your-secure-token>
Content-Type: application/json
POST /api/cpone/patients/lab-registration/{regId}/packages
Authorization: Bearer <your-secure-token>
Content-Type: application/json
POST /api/cpone/patients/medrec
Authorization: Bearer <your-secure-token>
Content-Type: application/json
@@ -107,6 +111,22 @@ Harga, diskon publik, share, unit cost, layanan multiple, dan spesimen diambil
langsung dari master HIS. Layanan yang sudah ada akan dilewati dan dilaporkan
melalui `skipped_layanan_ids`.
Contoh payload penambahan Paket Dispenser HIS:
```json
{
"paket_id": "DISP-260800011",
"cito": false,
"markup_cito": 0,
"catatan": "",
"channel": "CPONE"
}
```
Paket harus aktif, disetujui, berlaku untuk rawat jalan, dan belum memiliki
layanan yang sama pada registrasi. Request ulang untuk paket yang sudah masuk
bersifat idempoten dan tidak membuat transaksi ganda.
## Config
Copy `.env.example` menjadi `.env`, lalu isi koneksi MySQL: